Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 50748a5694e2a9b2aff0b8a4ada7965648208430 1 parent c7abe59
Le Wang authored

Showing 2 changed files with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  iedit-rect.el
  2. 4  iedit.el
4  iedit-rect.el
@@ -93,6 +93,10 @@ Commands:
93 93
   (interactive (when (iedit-region-active)
94 94
                  (list (region-beginning)
95 95
                        (region-end))))
  96
+
  97
+  ;; enforce skip modification once, errors may happen to cause this to be
  98
+  ;; unset.
  99
+  (setq iedit-skip-modification-once t)
96 100
   (if iedit-rectangle-mode
97 101
       (iedit-rectangle-done)
98 102
     (iedit-barf-if-lib-active)
4  iedit.el
@@ -375,6 +375,10 @@ Keymap used within overlays:
375 375
 
376 376
 (defun iedit-start (occurrence-regexp beg end)
377 377
   "Start Iedit mode for the `occurrence-regexp' in the current buffer."
  378
+
  379
+  ;; enforce skip modification once, errors may happen to cause this to be
  380
+  ;; unset.
  381
+  (setq iedit-skip-modification-once t)
378 382
   (setq iedit-unmatched-lines-invisible iedit-unmatched-lines-invisible-default)
379 383
   (setq iedit-initial-region (list beg end))
380 384
   (iedit-start2 occurrence-regexp beg end)

0 notes on commit 50748a5

Please sign in to comment.
Something went wrong with that request. Please try again.