emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/command e1e8322: Ignore aliases


From: Lars Ingebrigtsen
Subject: scratch/command e1e8322: Ignore aliases
Date: Thu, 11 Feb 2021 13:06:04 -0500 (EST)

branch: scratch/command
commit e1e83227bc410e23477ec96e5a44e1c2db402c47
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Ignore aliases
---
 lisp/help-fns.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 9e35d12..0e2c682 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1837,6 +1837,9 @@ documentation for the major and minor modes of that 
buffer."
     (mapatoms
      (lambda (sym)
        (when (and (commandp sym)
+                  ;; Ignore aliases.
+                  (not (symbolp (symbol-function sym)))
+                  ;; Ignore everything bound.
                   (not (where-is-internal sym))
                   (apply #'derived-mode-p (command-modes sym)))
          (push sym functions))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]