summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2012-07-03 09:12:22 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2012-07-03 09:12:22 +0200
commitb9d8233998965b6d8206bfd0643d25377a1f018f (patch)
tree01588302392d4bb6d0faa1bcd5606ce7438e1c9f /lisp/help-fns.el
parenta76e6535dc91d65de27f194861a5aa21e9b26365 (diff)
downloademacs-b9d8233998965b6d8206bfd0643d25377a1f018f.tar.gz
emacs-b9d8233998965b6d8206bfd0643d25377a1f018f.tar.bz2
emacs-b9d8233998965b6d8206bfd0643d25377a1f018f.zip
Fixes: debbugs:11848
* help-fns.el (describe-function-1): Only call help-fns--autoloaded-p when we have a file name.
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 52f1fe26056..387b65fe243 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -444,6 +444,7 @@ FILE is the file where FUNCTION was probably defined."
(beg (if (and (or (byte-code-function-p def)
(keymapp def)
(memq (car-safe def) '(macro lambda closure)))
+ file-name
(help-fns--autoloaded-p function file-name))
(if (commandp def)
"an interactive autoloaded "