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

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

[elpa] master 58615cd 10/22: auto-revert-mode integration


From: Dmitry Gutov
Subject: [elpa] master 58615cd 10/22: auto-revert-mode integration
Date: Fri, 02 Jan 2015 23:46:29 +0000

branch: master
commit 58615cdaab280685cc1541708166ec9b570a63ee
Author: Sune Simonsen <address@hidden>
Commit: Sune Simonsen <address@hidden>

    auto-revert-mode integration
    
    Update diff-hl when auto-revert-mode-hook is called.
---
 diff-hl.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/diff-hl.el b/diff-hl.el
index b78c939..8f675a3 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -449,6 +449,7 @@ in the source file, or the last line of the hunk above it."
         ;; doesn't care about changed VC state.
         ;; https://github.com/magit/magit/issues/603
         (add-hook 'magit-revert-buffer-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-define-bitmaps nil t))
     (remove-hook 'after-save-hook 'diff-hl-update t)
     (remove-hook 'after-change-functions 'diff-hl-edit t)
@@ -456,6 +457,7 @@ in the source file, or the last line of the hunk above it."
     (remove-hook 'vc-checkin-hook 'diff-hl-update t)
     (remove-hook 'after-revert-hook 'diff-hl-update t)
     (remove-hook 'magit-revert-buffer-hook 'diff-hl-update t)
+    (remove-hook 'auto-revert-mode-hook 'diff-hl-update t)
     (remove-hook 'text-scale-mode-hook 'diff-hl-define-bitmaps t)
     (diff-hl-remove-overlays)))
 



reply via email to

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