File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -582,16 +582,20 @@ value of `iedit-occurrence-context-lines' is used for this time."
582
582
(iedit-barf-if-buffering)
583
583
(iedit-apply-on-occurrences 'downcase-region ))
584
584
585
- (defun iedit-replace-occurrences (to-string )
585
+ (defun iedit-replace-occurrences ()
586
586
" Replace occurrences with STRING.
587
587
This function preserves case."
588
- (interactive " *sReplace with: " )
588
+ (interactive " *" )
589
589
(iedit-barf-if-buffering)
590
590
(let* ((ov (iedit-find-current-occurrence-overlay))
591
591
(offset (- (point ) (overlay-start ov)))
592
592
(from-string (downcase (buffer-substring-no-properties
593
593
(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 )))
595
599
(iedit-apply-on-occurrences
596
600
(lambda (beg end from-string to-string )
597
601
(goto-char beg)
You can’t perform that action at this time.
0 commit comments