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

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

[elpa] master 34d2802 24/42: No need to remove diff-hl-edit from hooks


From: Dmitry Gutov
Subject: [elpa] master 34d2802 24/42: No need to remove diff-hl-edit from hooks
Date: Wed, 09 Sep 2015 19:03:39 +0000

branch: master
commit 34d2802acaad29daf42a7e2fcc3943aa8de9a282
Author: PythonNut <address@hidden>
Commit: PythonNut <address@hidden>

    No need to remove diff-hl-edit from hooks
---
 diff-hl-flydiff.el |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/diff-hl-flydiff.el b/diff-hl-flydiff.el
index c1cfe64..d3b5c01 100644
--- a/diff-hl-flydiff.el
+++ b/diff-hl-flydiff.el
@@ -182,7 +182,6 @@ This requires the external program `diff' to be in your 
`exec-path'."
       (advice-add 'diff-hl-changes :override #'diff-hl-flydiff/changes)
       (advice-add 'diff-hl-overlay-modified :override #'ignored)
 
-      (remove-hook 'after-change-functions #'diff-hl-edit t)
       (setq diff-hl-flydiff-timer
         (run-with-idle-timer 0.3 t #'diff-hl-update t)))
 
@@ -190,8 +189,6 @@ This requires the external program `diff' to be in your 
`exec-path'."
     (advice-remove 'diff-hl-changes #'diff-hl-flydiff/changes)
     (advice-remove 'diff-hl-overlay-modified #'ignored)
 
-    (cancel-timer diff-hl-flydiff-timer)
-    (when diff-hl-mode
-      (add-hook 'after-change-functions 'diff-hl-edit nil t))))
+    (cancel-timer diff-hl-flydiff-timer)))
 
 (provide 'diff-hl-flydiff)



reply via email to

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