Permalink
Browse files

ensure iedit-skip-modification-once is t in case of errors

  • Loading branch information...
1 parent c7abe59 commit 50748a5694e2a9b2aff0b8a4ada7965648208430 Le Wang committed Feb 9, 2013
Showing with 8 additions and 0 deletions.
  1. +4 −0 iedit-rect.el
  2. +4 −0 iedit.el
View
4 iedit-rect.el
@@ -93,6 +93,10 @@ Commands:
(interactive (when (iedit-region-active)
(list (region-beginning)
(region-end))))
+
+ ;; enforce skip modification once, errors may happen to cause this to be
+ ;; unset.
+ (setq iedit-skip-modification-once t)
(if iedit-rectangle-mode
(iedit-rectangle-done)
(iedit-barf-if-lib-active)
View
4 iedit.el
@@ -375,6 +375,10 @@ Keymap used within overlays:
(defun iedit-start (occurrence-regexp beg end)
"Start Iedit mode for the `occurrence-regexp' in the current buffer."
+
+ ;; enforce skip modification once, errors may happen to cause this to be
+ ;; unset.
+ (setq iedit-skip-modification-once t)
(setq iedit-unmatched-lines-invisible iedit-unmatched-lines-invisible-default)
(setq iedit-initial-region (list beg end))
(iedit-start2 occurrence-regexp beg end)

0 comments on commit 50748a5

Please sign in to comment.