emacs-diffs
[Top][All Lists]
Advanced

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

scratch/command 69c25ab 1/3: Fix minor mode check


From: Lars Ingebrigtsen
Subject: scratch/command 69c25ab 1/3: Fix minor mode check
Date: Sat, 13 Feb 2021 17:24:41 -0500 (EST)

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

    Fix minor mode check
---
 lisp/simple.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index e01ac33..2ad6eab 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1976,7 +1976,9 @@ BUFFER."
              (buffer-local-value 'major-mode buffer)
              (command-modes symbol))
       ;; It's a minor mode.
-      (seq-intersection (command-modes symbol) minor-modes #'eq)))
+      (seq-intersection (command-modes symbol)
+                        (buffer-local-value 'minor-modes buffer)
+                        #'eq)))
 
 (defun completion-with-mode-p (modes buffer)
   (apply #'provided-mode-derived-p



reply via email to

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