Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@lewang
Collaborator

I noticed some times at the entry points modified iedit-skip-modification-once1 is nil which causes all kinds of strange errors.

I've used this patch for a little over a month, and it doesn't seem to have any bad side effects.

@victorhge victorhge merged commit a6d8568 into victorhge:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 9, 2013
This page is out of date. Refresh to see the latest.
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)
Something went wrong with that request. Please try again.