emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/bind-map 281a56c332 16/97: Fix major-mode-list


From: ELPA Syncer
Subject: [nongnu] elpa/bind-map 281a56c332 16/97: Fix major-mode-list
Date: Thu, 20 Jan 2022 07:58:58 -0500 (EST)

branch: elpa/bind-map
commit 281a56c332ff1b2720927edbf0c17d6309bb361e
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>

    Fix major-mode-list
---
 bind-map.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bind-map.el b/bind-map.el
index dfb6c0d9ce..43da739940 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -158,7 +158,7 @@ Declare a prefix command for MAP named COMMAND-NAME."
          (defvar-local ,activate nil)
          (cl-pushnew (cons ',activate ,root-map-sym)
                      minor-mode-map-alist)
-         (nconc ,major-mode-list ',major-modes)
+         (setq ,major-mode-list (append ,major-mode-list ',major-modes))
          (defun ,activate-func ()
            (setq ,activate (not (null (member major-mode ,major-mode-list)))))
          (add-hook 'after-change-major-mode-hook ',activate-func))



reply via email to

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