aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/help-fns.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b410c68015c..85574e28651 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-12-06 Richard Stallman <rms@gnu.org>
2
3 * help-fns.el (describe-function-1): Call ad-get-advice-info
4 only on symbols.
5
12007-12-06 Glenn Morris <rgm@gnu.org> 62007-12-06 Glenn Morris <rgm@gnu.org>
2 7
3 * progmodes/antlr-mode.el (antlr-keyword, antlr-syntax) 8 * progmodes/antlr-mode.el (antlr-keyword, antlr-syntax)
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 5aa8860ae9d..a8350bf0445 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -252,7 +252,8 @@ face (according to `face-differs-from-default-p')."
252 252
253;;;###autoload 253;;;###autoload
254(defun describe-function-1 (function) 254(defun describe-function-1 (function)
255 (let* ((advised (and (featurep 'advice) (ad-get-advice-info function))) 255 (let* ((advised (and (symbolp function) (featurep 'advice)
256 (ad-get-advice-info function)))
256 ;; If the function is advised, use the symbol that has the 257 ;; If the function is advised, use the symbol that has the
257 ;; real definition, if that symbol is already set up. 258 ;; real definition, if that symbol is already set up.
258 (real-function 259 (real-function