branch: master commit 32116a296d763748842fc16f4f6e23dff71f790d Author: Dmitry Gutov <dgu...@yandex.ru> Commit: Dmitry Gutov <dgu...@yandex.ru>
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)))