aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-09-15 02:35:47 +0000
committerGlenn Morris2009-09-15 02:35:47 +0000
commit273cefaa42993ba487c95a90f0895f8196155a15 (patch)
treeab9693a67744ae2e46029f271854869a114be8ba
parenta9d46b583ef9b1a9bda2cc9b478eaf15f7e61b50 (diff)
downloademacs-273cefaa42993ba487c95a90f0895f8196155a15.tar.gz
emacs-273cefaa42993ba487c95a90f0895f8196155a15.zip
(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).
-rw-r--r--lisp/help-fns.el5
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."
267 "^;;; Generated autoloads from \\(.*\\)" nil t) 267 "^;;; Generated autoloads from \\(.*\\)" nil t)
268 (setq file-name 268 (setq file-name
269 (locate-file 269 (locate-file
270 (match-string-no-properties 1) 270 (file-name-sans-extension
271 load-path nil 'readable)))))))) 271 (match-string-no-properties 1))
272 load-path '(".el" ".elc") 'readable))))))))
272 273
273 (cond 274 (cond
274 ((and (not file-name) (subrp type)) 275 ((and (not file-name) (subrp type))