]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't list obsolete in "other commands" help section
authorStefan Kangas <stefan@marxist.se>
Thu, 21 Jul 2022 06:55:28 +0000 (08:55 +0200)
committerStefan Kangas <stefan@marxist.se>
Thu, 21 Jul 2022 07:23:20 +0000 (09:23 +0200)
* lisp/help-fns.el (help-fns--list-local-commands): Don't list
obsolete commands.

lisp/help-fns.el

index 620b7666f6295a88ec6de8103b1628938d0fbc71..dc64a09f3d8cc350ec70903df0b0d6b0355e81fa 100644 (file)
@@ -2195,6 +2195,8 @@ documentation for the major and minor modes of that buffer."
        (when (and (commandp sym)
                   ;; Ignore aliases.
                   (not (symbolp (symbol-function sym)))
+                  ;; Ignore obsolete commands.
+                  (not (get sym 'byte-obsolete-info))
                   ;; Ignore everything bound.
                   (not (where-is-internal sym nil t))
                   (apply #'derived-mode-p (command-modes sym)))