aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-12-06 13:30:14 +0000
committerRichard M. Stallman2007-12-06 13:30:14 +0000
commitb2f2cd56b17426c15d3269ad4ba5e2f9c5798ff4 (patch)
tree166b05ff285e32d251387f8dc7bc773cd50ca62b
parent9fb1ba8090da3528de56158a79bd3527d31c7f2f (diff)
downloademacs-b2f2cd56b17426c15d3269ad4ba5e2f9c5798ff4.tar.gz
emacs-b2f2cd56b17426c15d3269ad4ba5e2f9c5798ff4.zip
(describe-function-1): Call ad-get-advice-info only on symbols.
-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