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

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

[nongnu] elpa/bind-map 6ba28e31aa 83/97: Revert change to prefix-cmd han


From: ELPA Syncer
Subject: [nongnu] elpa/bind-map 6ba28e31aa 83/97: Revert change to prefix-cmd handling
Date: Thu, 20 Jan 2022 07:59:28 -0500 (EST)

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

    Revert change to prefix-cmd handling
---
 bind-map.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/bind-map.el b/bind-map.el
index 21467cd955..ee00fd3571 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -286,11 +286,9 @@ mode maps. Set up by bind-map.el." map))
      `((defvar ,map (make-sparse-keymap))
        (unless (keymapp ,map)
          (error "bind-map: %s is not a keymap" ',map))
-       (unless (and (boundp ',prefix-cmd)
-                    (fboundp ',prefix-cmd))
-         (defvar ,prefix-cmd nil)
-         (setq ,prefix-cmd ,map)
-         (setf (symbol-function ',prefix-cmd) ,map))
+       (defvar ,prefix-cmd nil)
+       (setq ,prefix-cmd ,map)
+       (setf (symbol-function ',prefix-cmd) ,map)
        (defvar ,root-map (make-sparse-keymap))
        (bind-map-put-map-properties ',map
                                     :root-map ',root-map



reply via email to

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