]> code.delx.au - gnu-emacs-elpa/commitdiff
Don't generate bogus event in Emacs 24.4
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 1 Feb 2014 02:40:08 +0000 (04:40 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 1 Feb 2014 02:40:08 +0000 (04:40 +0200)
company.el

index 4bccb6beed5cfa69645e5ec6b4983435f48fb7fa..2d680595e33fb814c7d2e4fe9958988dd1c00f2e 100644 (file)
@@ -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 ()