diff options
| author | Richard M. Stallman | 2007-12-06 13:30:14 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-12-06 13:30:14 +0000 |
| commit | b2f2cd56b17426c15d3269ad4ba5e2f9c5798ff4 (patch) | |
| tree | 166b05ff285e32d251387f8dc7bc773cd50ca62b | |
| parent | 9fb1ba8090da3528de56158a79bd3527d31c7f2f (diff) | |
| download | emacs-b2f2cd56b17426c15d3269ad4ba5e2f9c5798ff4.tar.gz emacs-b2f2cd56b17426c15d3269ad4ba5e2f9c5798ff4.zip | |
(describe-function-1): Call ad-get-advice-info only on symbols.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/help-fns.el | 3 |
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 @@ | |||
| 1 | 2007-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 | |||
| 1 | 2007-12-06 Glenn Morris <rgm@gnu.org> | 6 | 2007-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 |