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

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

[elpa] master 32116a2 1/4: Do not use auto-revert-mode-hook


From: Dmitry Gutov
Subject: [elpa] master 32116a2 1/4: Do not use auto-revert-mode-hook
Date: Sun, 7 Jul 2019 19:07:14 -0400 (EDT)

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

    Do not use auto-revert-mode-hook
    
    Fixes #65 (hopefully).
---
 diff-hl.el | 2 --
 1 file changed, 2 deletions(-)

diff --git a/diff-hl.el b/diff-hl.el
index c467729..191a364 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -546,7 +546,6 @@ The value of this variable is a mode line template as in
         ;; Magit versions 2.0-2.3 don't do the above and call this
         ;; instead, but only when they dosn't call `revert-buffer':
         (add-hook 'magit-not-reverted-hook 'diff-hl-update nil t)
-        (add-hook 'auto-revert-mode-hook 'diff-hl-update nil t)
         (add-hook 'text-scale-mode-hook 'diff-hl-maybe-redefine-bitmaps nil t))
     (remove-hook 'after-save-hook 'diff-hl-update t)
     (remove-hook 'after-change-functions 'diff-hl-edit t)
@@ -555,7 +554,6 @@ The value of this variable is a mode line template as in
     (remove-hook 'after-revert-hook 'diff-hl-update t)
     (remove-hook 'magit-revert-buffer-hook 'diff-hl-update t)
     (remove-hook 'magit-not-reverted-hook 'diff-hl-update t)
-    (remove-hook 'auto-revert-mode-hook 'diff-hl-update t)
     (remove-hook 'text-scale-mode-hook 'diff-hl-maybe-redefine-bitmaps t)
     (diff-hl-remove-overlays)))
 



reply via email to

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