]> code.delx.au - gnu-emacs/blobdiff - lisp/emulation/viper-init.el
Revert "Fix viper undo breakage from undo-boundary changes"
[gnu-emacs] / lisp / emulation / viper-init.el
index c1e76629477007cdfdfd1379ab21bfe0e00728c6..104245b757192e2748054726d102841a55fae2da 100644 (file)
@@ -370,8 +370,13 @@ Use `\\[viper-set-expert-level]' to change this.")
 ;; VI-style Undo
 
 ;; Used to 'undo' complex commands, such as replace and insert commands.
-(viper-deflocalvar viper-undo-in-complex-command nil)
-(put 'viper-undo-in-complex-command 'permanent-local t)
+(viper-deflocalvar viper-undo-needs-adjustment nil)
+(put 'viper-undo-needs-adjustment 'permanent-local t)
+
+;; A mark that Viper puts on buffer-undo-list.  Marks the beginning of a
+;; complex command that must be undone atomically.  If inserted, it is
+;; erased by viper-change-state-to-vi and viper-repeat.
+(defconst viper-buffer-undo-list-mark 'viper)
 
 (defcustom viper-keep-point-on-undo nil
   "Non-nil means not to move point while undoing commands.