[Top][All Lists]

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

[elpa] master b37cab3 6/8: company-completion-cancelled-hook: Don't remo

From: Dmitry Gutov
Subject: [elpa] master b37cab3 6/8: company-completion-cancelled-hook: Don't remove-hook
Date: Sat, 8 Dec 2018 19:13:05 -0500 (EST)

branch: master
commit b37cab3490a2f3937d5f7c554949c7700acb8f2c
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    company-completion-cancelled-hook: Don't remove-hook
 company-capf.el | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/company-capf.el b/company-capf.el
index 11e3382..311dd24 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -83,11 +83,7 @@ that accompanied the completion table that's currently is 
             #'company-capf--clear-current-data nil t))
 (defun company-capf--clear-current-data (_ignored)
-  (setq company-capf--current-completion-data nil)
-  (remove-hook 'company-completion-cancelled-hook
-               #'company-capf--clear-current-data t)
-  (remove-hook 'company-completion-finished-hook
-               #'company-capf--clear-current-data t))
+  (setq company-capf--current-completion-data nil))
 (defun company-capf (command &optional arg &rest _args)
   "`company-mode' backend using `completion-at-point-functions'."

reply via email to

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