Skip to content

Commit b95c351

Browse files
committed
Merge branch 'master' of github.com:victorhge/iedit
2 parents a55fcae + dbe9e44 commit b95c351

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

iedit-lib.el

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,16 +582,20 @@ value of `iedit-occurrence-context-lines' is used for this time."
582582
(iedit-barf-if-buffering)
583583
(iedit-apply-on-occurrences 'downcase-region))
584584

585-
(defun iedit-replace-occurrences(to-string)
585+
(defun iedit-replace-occurrences()
586586
"Replace occurrences with STRING.
587587
This function preserves case."
588-
(interactive "*sReplace with: ")
588+
(interactive "*")
589589
(iedit-barf-if-buffering)
590590
(let* ((ov (iedit-find-current-occurrence-overlay))
591591
(offset (- (point) (overlay-start ov)))
592592
(from-string (downcase (buffer-substring-no-properties
593593
(overlay-start ov)
594-
(overlay-end ov)))))
594+
(overlay-end ov))))
595+
(to-string (read-string "Replace with: "
596+
nil nil
597+
from-string
598+
nil)))
595599
(iedit-apply-on-occurrences
596600
(lambda (beg end from-string to-string)
597601
(goto-char beg)

0 commit comments

Comments
 (0)