[Top][All Lists]

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

[elpa] 01/07: Use magit-revert-buffer-hook

From: Dmitry Gutov
Subject: [elpa] 01/07: Use magit-revert-buffer-hook
Date: Sun, 10 Aug 2014 16:33:00 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit a311beb2c9f4c8539a5ae14fbee1376620f5380b
Author: Dmitry Gutov <address@hidden>
Date:   Wed Apr 16 16:24:01 2014 +0400

    Use magit-revert-buffer-hook
    Closes #19
    References magit/magit#603
 diff-hl.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/diff-hl.el b/diff-hl.el
index 4b25fc7..450ee9b 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -429,12 +429,14 @@ in the source file, or the last line of the hunk above 
           (add-hook 'find-file-hook 'diff-hl-update t t))
         (add-hook 'vc-checkin-hook 'diff-hl-update nil t)
         (add-hook 'after-revert-hook 'diff-hl-update nil t)
+        (add-hook 'magit-revert-buffer-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)
     (remove-hook 'find-file-hook 'diff-hl-update t)
     (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 'text-scale-mode-hook 'diff-hl-define-bitmaps t)

reply via email to

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