1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00

(find-lisp-object-file-name): When looking for autoloaded

variables, also consider the .elc files, since the .el files are
normally gzipped (subsequent code locates the .el.gz from the .elc).
This commit is contained in:
Glenn Morris 2009-09-15 02:35:47 +00:00
parent a9d46b583e
commit 273cefaa42

View File

@ -267,8 +267,9 @@ suitable file is found, return nil."
"^;;; Generated autoloads from \\(.*\\)" nil t)
(setq file-name
(locate-file
(match-string-no-properties 1)
load-path nil 'readable))))))))
(file-name-sans-extension
(match-string-no-properties 1))
load-path '(".el" ".elc") 'readable))))))))
(cond
((and (not file-name) (subrp type))