emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] fix/viper-undo 2961835: Fix addition of double undo bounda


From: Phillip Lord
Subject: [Emacs-diffs] fix/viper-undo 2961835: Fix addition of double undo boundary
Date: Wed, 18 May 2016 09:13:11 +0000 (UTC)

branch: fix/viper-undo
commit 2961835c86704e09513edd6f1423268bf99bf371
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>

    Fix addition of double undo boundary
    
    Use the undo-boundary function rather than directly manipulating the
    buffer-undo-list.
---
 lisp/emulation/viper-cmd.el |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el
index 0347273..c10943b 100644
--- a/lisp/emulation/viper-cmd.el
+++ b/lisp/emulation/viper-cmd.el
@@ -1714,16 +1714,14 @@ invokes the command before that, etc."
 (defun viper-adjust-undo ()
   (setq undo-auto-disable-boundaries nil)
   (setq viper-undo-needs-adjustment nil)
-  (setq buffer-undo-list
-        (cons nil buffer-undo-list)))
+  (undo-boundary))
 
 
 (defun viper-set-complex-command-for-undo ()
   (when (not viper-undo-needs-adjustment)
     (setq undo-auto-disable-boundaries t)
     (setq viper-undo-needs-adjustment t)
-    (setq buffer-undo-list
-            (cons nil buffer-undo-list))))
+    (undo-boundary)))
 
 ;;; Viper's destructive Command ring utilities
 



reply via email to

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