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

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

[elpa] externals/leaf 839d2f0 05/13: fix typo; key -> key*


From: Stefan Monnier
Subject: [elpa] externals/leaf 839d2f0 05/13: fix typo; key -> key*
Date: Wed, 17 Mar 2021 18:45:35 -0400 (EDT)

branch: externals/leaf
commit 839d2f0d2e20e8e0294f9e6061a62f7d43da8158
Author: Naoya Yamashita <conao3@gmail.com>
Commit: Naoya Yamashita <conao3@gmail.com>

    fix typo; key -> key*
---
 leaf-tests.el | 4 ++--
 leaf.el       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/leaf-tests.el b/leaf-tests.el
index aa28961..6d089aa 100644
--- a/leaf-tests.el
+++ b/leaf-tests.el
@@ -2399,10 +2399,10 @@ Example:
          (define-key shell-mode-map [remap backward-sentence] 
'sh-beginning-of-command)))
 
       ((leaf-key (vector 'key-chord ?i ?j) 'undo nil)
-       (let* ((old (lookup-key global-map (vector 'key-chord 105 106)))
+       (let* ((old (lookup-key global-map [key-chord 105 106]))
               (value `(global-map "<key-chord> i j" undo ,(and old (not 
(numberp old)) old) nil)))
          (push value leaf-key-bindlist)
-         (define-key global-map (vector 'key-chord 105 106) 'undo)))
+         (define-key global-map [key-chord 105 106] 'undo)))
 
       ((leaf-key [(control ?x) (control ?f)] 'undo)
        (let* ((old (lookup-key global-map [(control 120) (control 102)]))
diff --git a/leaf.el b/leaf.el
index d88dbb8..c613561 100644
--- a/leaf.el
+++ b/leaf.el
@@ -828,10 +828,10 @@ For example:
          (path     (leaf-this-file))
          (_mvec    (if (vectorp key*) key* (read-kbd-macro key*)))
          (mstr     (if (stringp key*) key* (key-description key*))))
-    `(let* ((old (lookup-key ,mmap ,(if vecp key `(kbd ,key))))
+    `(let* ((old (lookup-key ,mmap ,(if vecp key* `(kbd ,key*))))
             (value ,(list '\` `(,mmap ,mstr ,command* ,',(and old (not 
(numberp old)) old) ,path))))
        (push value leaf-key-bindlist)
-       (define-key ,mmap ,(if vecp key `(kbd ,key)) ',command*))))
+       (define-key ,mmap ,(if vecp key* `(kbd ,key*)) ',command*))))
 
 (defmacro leaf-key* (key command)
   "Similar to `leaf-key', but overrides any mode-specific bindings.



reply via email to

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