]> git.eshelyaron.com Git - emacs.git/commitdiff
bind-key: no vector keys in personal-keybindings
authorNoam Postavsky <npostavs@gmail.com>
Sat, 31 May 2014 18:58:07 +0000 (14:58 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 31 May 2014 19:03:58 +0000 (15:03 -0400)
describe-personal-keybindings requires the key sequences to be stored as
strings.

lisp/use-package/bind-key.el

index 58a36eabeb7ce2e136a14ce23e3340ff93630bbb..bf28e202388534885d4db9f6d3865ee928539613 100644 (file)
@@ -154,7 +154,9 @@ spelled-out keystrokes, e.g., \"C-c C-z\". See documentation of
              (setq personal-keybindings
                    (delq ,entryvar personal-keybindings))))
        (setq personal-keybindings
-             (cons (list (cons ,namevar (quote ,keymap))
+             (cons (list (cons (if (stringp ,namevar) ,namevar
+                                 (key-description ,namevar))
+                               (quote ,keymap))
                          ,command
                          (unless (numberp ,bindingvar) ,bindingvar))
                    personal-keybindings))