dgutov pushed a commit to branch master
in repository elpa.
commit 4c63fddc79ed0d110257b0bc00cf6a80cc198dde
Author: Dmitry Gutov <[email protected]>
Date: Sat Feb 1 04:40:08 2014 +0200
Don't generate bogus event in Emacs 24.4
---
company.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/company.el b/company.el
index 4bccb6b..2d68059 100644
--- a/company.el
+++ b/company.el
@@ -634,6 +634,7 @@ means that `company-mode' is always turned on except in
`message-mode' buffers."
;; Hack:
;; Emacs calculates the active keymaps before reading the event. That means we
;; cannot change the keymap from a timer. So we send a bogus command.
+;; XXX: Seems not to be needed anymore in Emacs 24.4
(defun company-ignore ()
(interactive)
(setq this-command last-command))
@@ -972,7 +973,8 @@ Keywords and function definition names are ignored."
(company-begin-commands t))
(company-begin)
(when company-candidates
- (company-input-noop)
+ (when (version< emacs-version "24.3.50")
+ (company-input-noop))
(company-post-command)))))
(defun company-auto-begin ()