diff options
author | Glenn Morris <rgm@gnu.org> | 2009-09-15 02:35:47 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2009-09-15 02:35:47 +0000 |
commit | 273cefaa42993ba487c95a90f0895f8196155a15 (patch) | |
tree | ab9693a67744ae2e46029f271854869a114be8ba /lisp/help-fns.el | |
parent | a9d46b583ef9b1a9bda2cc9b478eaf15f7e61b50 (diff) | |
download | emacs-273cefaa42993ba487c95a90f0895f8196155a15.tar.gz |
(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).
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r-- | lisp/help-fns.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index de60cd5fea2..2425310cd93 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -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)) |