File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ current `tags-file-name'."
194
194
(setq php-local-manual--completion-table php-table))))
195
195
196
196
(defun php-local-manual-build-table-from-file (filename )
197
+ " Build a table of PHP function names from FILENAME."
197
198
(let ((table (make-vector 1022 0 ))
198
199
(buf (find-file-noselect filename)))
199
200
(with-current-buffer buf
@@ -208,10 +209,11 @@ current `tags-file-name'."
208
209
209
210
(defun php-local-manual-build-table-from-path (path )
210
211
" Return list of PHP function name from `PATH' directory."
211
- (cl-loop for file in (directory-files path nil " ^function\\ ..+\\ .html$" )
212
- if (string-match " \\ .\\ ([-a-zA-Z_0-9]+\\ )\\ .html$" file)
213
- collect (replace-regexp-in-string
214
- " -" " _" (substring file (match-beginning 1 ) (match-end 1 )) t )))
212
+ (save-match-data
213
+ (cl-loop for file in (directory-files path nil " ^function\\ ..+\\ .html$" )
214
+ if (string-match " \\ .\\ ([-a-zA-Z_0-9]+\\ )\\ .html$" file)
215
+ collect (replace-regexp-in-string
216
+ " -" " _" (substring file (match-beginning 1 ) (match-end 1 )) t ))))
215
217
216
218
(provide 'php-local-manual )
217
219
; ;; php-local-manual.el ends here
You can’t perform that action at this time.
0 commit comments