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

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

[elpa] externals/vundo 1da75782e0 13/58: Remove inhibit-modification-hoo


From: ELPA Syncer
Subject: [elpa] externals/vundo 1da75782e0 13/58: Remove inhibit-modification-hooks
Date: Fri, 15 Apr 2022 12:58:11 -0400 (EDT)

branch: externals/vundo
commit 1da75782e06a2febdd81c698d9ea15597e6102ba
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    Remove inhibit-modification-hooks
    
    * vundo.el (vundo-quit, vundo-confirm, vundo--move-to-node): Remove.
---
 vundo.el | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/vundo.el b/vundo.el
index df72ed8dbc..acd56deedc 100644
--- a/vundo.el
+++ b/vundo.el
@@ -658,16 +658,14 @@ Roll back changes if `vundo-roll-back-on-quit' is 
non-nil."
       vundo--roll-back-to-this
       vundo--orig-buffer vundo--prev-mod-list))
    (with-current-buffer vundo--orig-buffer
-     (setq-local inhibit-modification-hooks nil
-                 buffer-read-only nil))
+     (setq-local buffer-read-only nil))
    (kill-buffer-and-window)))
 
 (defun vundo-confirm ()
   "Confirm change and close vundo window."
   (interactive)
   (with-current-buffer vundo--orig-buffer
-    (setq-local inhibit-modification-hooks nil
-                buffer-read-only nil))
+    (setq-local buffer-read-only nil))
   (kill-buffer-and-window))
 
 ;;; Traverse undo tree
@@ -748,8 +746,7 @@ after calling this function."
                             undo-list-at-source undo-list-at-dest))
              trimmed)
         (with-current-buffer orig-buffer
-          (setq-local inhibit-modification-hooks t
-                      buffer-read-only t)
+          (setq-local buffer-read-only t)
           ;; 2. Undo. This will undo modifications in PLANNED-UNDO and
           ;; add new entries to ‘buffer-undo-list’.
           (let ((undo-in-progress t))



reply via email to

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