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

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

[elpa] externals/agitate a650a4e8e5 2/4: Use vc-checkin-hook instead of


From: ELPA Syncer
Subject: [elpa] externals/agitate a650a4e8e5 2/4: Use vc-checkin-hook instead of advice
Date: Wed, 19 Oct 2022 11:57:17 -0400 (EDT)

branch: externals/agitate
commit a650a4e8e510b5d7dc7f4827a3f7e0d75c2f17a8
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Use vc-checkin-hook instead of advice
---
 agitate.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/agitate.el b/agitate.el
index 4422f6e5b4..f344b869fe 100644
--- a/agitate.el
+++ b/agitate.el
@@ -266,10 +266,10 @@ either with `log-edit-kill-buffer' or `log-edit-done'."
       (progn
         (add-hook 'vc-before-checkin-hook 
#'agitate--log-edit-informative-save-windows)
         (add-hook 'log-edit-hook #'agitate--log-edit-informative-setup)
-        (advice-add #'log-edit-done :after 
#'agitate--log-edit-informative-restore))
+        (add-hook 'vc-checkin-hook #'agitate--log-edit-informative-restore))
     (remove-hook 'vc-before-checkin-hook 
#'agitate--log-edit-informative-save-windows)
     (remove-hook 'log-edit-hook #'agitate--log-edit-informative-setup)
-    (advice-remove #'log-edit-done #'agitate--log-edit-informative-restore)))
+    (remove-hook 'vc-checkin-hook #'agitate--log-edit-informative-restore)))
 
 (defvar agitate--previous-window-configuration nil
   "Store the last window configuration.")



reply via email to

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