]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-function-1): Test function for obsolescence only if it is a
authorMarkus Rost <rost@math.uni-bielefeld.de>
Wed, 31 Jul 2002 22:28:30 +0000 (22:28 +0000)
committerMarkus Rost <rost@math.uni-bielefeld.de>
Wed, 31 Jul 2002 22:28:30 +0000 (22:28 +0000)
symbol.

lisp/help-fns.el

index 7fe85001c3e2332a32d07280f4c842139d4212ba..cdbc13f6781c8e30de277297e2f6bdb0b78685aa 100644 (file)
@@ -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")