Mercurial > emacs
changeset 105023:e0d5fc8f7387
(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).
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 15 Sep 2009 02:35:47 +0000 |
parents | af84e9739140 |
children | 3db1f3571655 |
files | lisp/help-fns.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/help-fns.el Tue Sep 15 02:35:22 2009 +0000 +++ b/lisp/help-fns.el Tue Sep 15 02:35:47 2009 +0000 @@ -267,8 +267,9 @@ "^;;; 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))