mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-12 16:23:57 +00:00
(describe-function-1): Test function for obsolescence only if it is a
symbol.
This commit is contained in:
parent
c43008c44a
commit
32d9a725a5
@ -307,7 +307,10 @@ Return (USAGE . DOC) or nil if there's no usage info."
|
||||
(setq doc (cdr usage)) (car usage))
|
||||
(t "[Missing arglist. Please make a bug report.]")))
|
||||
(terpri)
|
||||
(let ((obsolete (get function 'byte-obsolete-info)))
|
||||
(let ((obsolete (and
|
||||
;; function might be a lambda construct.
|
||||
(symbolp function)
|
||||
(get function 'byte-obsolete-info))))
|
||||
(when obsolete
|
||||
(terpri)
|
||||
(princ "This function is obsolete")
|
||||
|
Loading…
Reference in New Issue
Block a user