From 3ef3f9350c1a8f046d06c6897a092117be84681e Mon Sep 17 00:00:00 2001 From: Jorgen Schaefer Date: Sat, 20 Sep 2014 22:08:41 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/company.el b/company.el index fdf09f770..c47c72e4b 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.") -- 2.39.2