+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)
;;;###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