1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00

(describe-function-1): Call ad-get-advice-info only on symbols.

This commit is contained in:
Richard M. Stallman 2007-12-06 13:30:14 +00:00
parent 9fb1ba8090
commit b2f2cd56b1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-12-06 Richard Stallman <rms@gnu.org>
* help-fns.el (describe-function-1): Call ad-get-advice-info
only on symbols.
2007-12-06 Glenn Morris <rgm@gnu.org>
* progmodes/antlr-mode.el (antlr-keyword, antlr-syntax)

View File

@ -252,7 +252,8 @@ face (according to `face-differs-from-default-p')."
;;;###autoload
(defun describe-function-1 (function)
(let* ((advised (and (featurep 'advice) (ad-get-advice-info function)))
(let* ((advised (and (symbolp function) (featurep 'advice)
(ad-get-advice-info function)))
;; If the function is advised, use the symbol that has the
;; real definition, if that symbol is already set up.
(real-function