Don't truncate filenames with "emacs.el" in them
* lisp/emacs-lisp/find-func.el (find-function-search-for-symbol): Avoid false positives when looking for "emacs.el" matches the likes of "emacs.elpa". (Bug#64143)
This commit is contained in:
parent
2591eb1190
commit
7637e361d3
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ The search is done in the source for library LIBRARY."
|
|||
(setq library (substring library 0 (match-beginning 1))))
|
||||
;; Strip extension from .emacs.el to make sure symbol is searched in
|
||||
;; .emacs too.
|
||||
(when (string-match "\\.emacs\\(.el\\)" library)
|
||||
(when (string-match "\\.emacs\\(.el\\)\\'" library)
|
||||
(setq library (substring library 0 (match-beginning 1))))
|
||||
(let* ((filename (find-library-name library))
|
||||
(regexp-symbol (cdr (assq type find-function-regexp-alist))))
|
||||
|
|
Loading…
Add table
Reference in a new issue