[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bind-map 61fe55e097 17/97: Can't simply use cl-pushnew
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bind-map 61fe55e097 17/97: Can't simply use cl-pushnew |
Date: |
Thu, 20 Jan 2022 07:58:59 -0500 (EST) |
branch: elpa/bind-map
commit 61fe55e0974cb8e1bdd4e230603eee832f7d5bcf
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Can't simply use cl-pushnew
because it doesn't fully inspect the keymaps so you can't have two minor
mode keymaps for the same minor-mode. Revert to push, understanding that
we may get some duplication if the same form is called multiple
times (should be rare)
---
bind-map.el | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/bind-map.el b/bind-map.el
index 43da739940..5f0e35d538 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -80,8 +80,6 @@
;;; Code:
-(require 'cl-lib)
-
(defgroup bind-map nil
"Bind personal keymaps in multiple locations."
:group 'emacs)
@@ -150,14 +148,13 @@ Declare a prefix command for MAP named COMMAND-NAME."
(when ',minor-modes
(defvar ,root-map-sym (make-sparse-keymap))
(dolist (mode ',minor-modes)
- (cl-pushnew (cons mode ,root-map-sym) minor-mode-map-alist)))
+ (push (cons mode ,root-map-sym) minor-mode-map-alist)))
(when ',major-modes
(defvar ,root-map-sym (make-sparse-keymap))
(defvar ,major-mode-list '())
(defvar-local ,activate nil)
- (cl-pushnew (cons ',activate ,root-map-sym)
- minor-mode-map-alist)
+ (push (cons ',activate ,root-map-sym) minor-mode-map-alist)
(setq ,major-mode-list (append ,major-mode-list ',major-modes))
(defun ,activate-func ()
(setq ,activate (not (null (member major-mode ,major-mode-list)))))
- [nongnu] branch elpa/bind-map created (now 510a24138d), ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6e19e536fc 03/97: Add link to evil-leader, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map f2f7dfefbd 07/97: Assume :keys and :evil-keys are lists, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 3a2f1d8074 01/97: Initial commit, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 115e0459bf 05/97: Bring back set-keys function, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map d7aee3c6ab 09/97: Note helper funcs in README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map a8a2937ecc 38/97: Minor tweak to previous commit, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map faaa33d909 77/97: Prefer eval-after-load to require for evil funcs, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 61fe55e097 17/97: Can't simply use cl-pushnew,
ELPA Syncer <=
- [nongnu] elpa/bind-map 5508980148 69/97: Account for multiple declarations of the same map, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map b05ea98102 37/97: Add option to use local state maps, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 7d20946692 04/97: Add autoloads, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 7de08fe592 43/97: Move a defvar and reword docstring, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map bb7a8b2258 59/97: Remove declare-function from previous commit, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6d05297e3c 20/97: Add another example and more detail to README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map d47be94d23 63/97: Don't try to bind keys that are nil or "", ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map ebc4c9fb11 34/97: Remove bind-map-kbd hack, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 8ec4516db2 48/97: Remove use of evil-define-key, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map c182707793 41/97: Remove unnecessary helper functions and reorg, ELPA Syncer, 2022/01/20