aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-07-21 08:55:28 +0200
committerStefan Kangas2022-07-21 09:23:20 +0200
commitc8a586c1db7fe7c848fe29a01277acdeac8999b1 (patch)
treeaf1b7cf6e52b0871c9dda4224df6d2a77f7391f2
parent46052d1dcbf5beb24cc68195006f958b2d0dbe27 (diff)
downloademacs-c8a586c1db7fe7c848fe29a01277acdeac8999b1.tar.gz
emacs-c8a586c1db7fe7c848fe29a01277acdeac8999b1.zip
Don't list obsolete in "other commands" help section
* lisp/help-fns.el (help-fns--list-local-commands): Don't list obsolete commands.
-rw-r--r--lisp/help-fns.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 620b7666f62..dc64a09f3d8 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -2195,6 +2195,8 @@ documentation for the major and minor modes of that buffer."
2195 (when (and (commandp sym) 2195 (when (and (commandp sym)
2196 ;; Ignore aliases. 2196 ;; Ignore aliases.
2197 (not (symbolp (symbol-function sym))) 2197 (not (symbolp (symbol-function sym)))
2198 ;; Ignore obsolete commands.
2199 (not (get sym 'byte-obsolete-info))
2198 ;; Ignore everything bound. 2200 ;; Ignore everything bound.
2199 (not (where-is-internal sym nil t)) 2201 (not (where-is-internal sym nil t))
2200 (apply #'derived-mode-p (command-modes sym))) 2202 (apply #'derived-mode-p (command-modes sym)))