;; 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))
(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 ()