From b9d8233998965b6d8206bfd0643d25377a1f018f Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 3 Jul 2012 09:12:22 +0200 Subject: [PATCH] Fixes: debbugs:11848 * help-fns.el (describe-function-1): Only call help-fns--autoloaded-p when we have a file name. --- lisp/ChangeLog | 5 +++++ lisp/help-fns.el | 1 + 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dd136f5b053..6a9e648f1cc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-07-03 Andreas Schwab + + * help-fns.el (describe-function-1): Only call + help-fns--autoloaded-p when we have a file name. (Bug#11848) + 2012-07-03 Chong Yidong * xml.el: Protect parser against XML bombs. 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 " -- 2.39.5