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

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

[elpa] 02/30: Use read-kbd-macro instead of kbd as a function.


From: Dmitry Gutov
Subject: [elpa] 02/30: Use read-kbd-macro instead of kbd as a function.
Date: Tue, 14 Oct 2014 22:22:43 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit 3ef3f9350c1a8f046d06c6897a092117be84681e
Author: Jorgen Schaefer <address@hidden>
Date:   Sat Sep 20 22:08:41 2014 +0200

    Use read-kbd-macro instead of kbd as a function.
    
    In Emacs 24.1 and 24.2, kbd was a macro and not a function,
    so that a call like (kbd (format ...)) would fail. Use
    read-kbd-macro instead, which works for all Emacsen in 24.x.
---
 company.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/company.el b/company.el
index fdf09f7..c47c72e 100644
--- a/company.el
+++ b/company.el
@@ -627,7 +627,7 @@ asynchronous call into synchronous.")
     (define-key keymap "\C-s" 'company-search-candidates)
     (define-key keymap "\C-\M-s" 'company-filter-candidates)
     (dotimes (i 10)
-      (define-key keymap (kbd (format "M-%d" i)) 'company-complete-number))
+      (define-key keymap (read-kbd-macro (format "M-%d" i)) 
'company-complete-number))
      keymap)
   "Keymap that is enabled during an active completion.")
 



reply via email to

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