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

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

[elpa] master 21f3b0f 28/38: Revert "company-input-noop still seems to b


From: Dmitry Gutov
Subject: [elpa] master 21f3b0f 28/38: Revert "company-input-noop still seems to be needed in the terminal"
Date: Sat, 25 Jul 2020 19:51:16 -0400 (EDT)

branch: master
commit 21f3b0fcc135d3222f6f3176955cd9dbb0567ed3
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Revert "company-input-noop still seems to be needed in the terminal"
    
    This reverts commit 7e1ca8e6ee18a2afb16843fdf4e0bde1128d5f4d.
    
    I can't reproduce the problem anymore in Emacs 24.4. Even in the terminal.
---
 company.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/company.el b/company.el
index 7072540..42601d1 100644
--- a/company.el
+++ b/company.el
@@ -858,7 +858,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: Even in Emacs 24.4, seems to be needed in the terminal.
+;; XXX: Seems not to be needed anymore in Emacs 24.4
 (defun company-ignore ()
   (interactive)
   (setq this-command last-command))
@@ -1446,7 +1446,8 @@ prefix match (same case) will be prioritized."
        (eq tick (buffer-chars-modified-tick))
        (eq pos (point))
        (when (company-auto-begin)
-         (company-input-noop)
+         (when (version< emacs-version "24.3.50")
+           (company-input-noop))
          (let ((this-command 'company-idle-begin))
            (company-post-command)))))
 



reply via email to

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