[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit dbe9e4478b 174/301: Merge pull request #41 from Vifo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit dbe9e4478b 174/301: Merge pull request #41 from Vifon/iedit-replace-occurrences_default-value |
Date: |
Mon, 10 Jan 2022 22:59:00 -0500 (EST) |
branch: elpa/iedit
commit dbe9e4478b97494ceab98c9619a2911d5d5fa496
Merge: 19f35aa1a0 bd3fd44691
Author: victorhge <victorhge@gmail.com>
Commit: victorhge <victorhge@gmail.com>
Merge pull request #41 from Vifon/iedit-replace-occurrences_default-value
Added the default value for iedit-replace-occurrences
---
iedit-lib.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/iedit-lib.el b/iedit-lib.el
index ca4877d0fc..543ebd3301 100644
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -581,16 +581,20 @@ value of `iedit-occurrence-context-lines' is used for
this time."
(iedit-barf-if-buffering)
(iedit-apply-on-occurrences 'downcase-region))
-(defun iedit-replace-occurrences(to-string)
+(defun iedit-replace-occurrences()
"Replace occurrences with STRING.
This function preserves case."
- (interactive "*sReplace with: ")
+ (interactive "*")
(iedit-barf-if-buffering)
(let* ((ov (iedit-find-current-occurrence-overlay))
(offset (- (point) (overlay-start ov)))
(from-string (downcase (buffer-substring-no-properties
(overlay-start ov)
- (overlay-end ov)))))
+ (overlay-end ov))))
+ (to-string (read-string "Replace with: "
+ nil nil
+ from-string
+ nil)))
(iedit-apply-on-occurrences
(lambda (beg end from-string to-string)
(goto-char beg)
- [nongnu] elpa/iedit 64a7905949 138/301: Rewrite iedit-hide-unmatched-lines, (continued)
- [nongnu] elpa/iedit 64a7905949 138/301: Rewrite iedit-hide-unmatched-lines, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit bceb12e17b 139/301: Do not jump to the first occurrence after iedit-restrict-region, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8eb9caaa94 132/301: use real buffer for testing to ease debugging, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8149b66ce6 140/301: Read-only text handling, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 52a7ead70c 135/301: Fix comiler error for extra ")", ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 50748a5694 160/301: ensure iedit-skip-modification-once is t in case of errors, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 060b359afc 142/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 70e6d370fb 194/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 30db1d2ba1 191/301: Remove the key binding to M-[, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3fae24471f 129/301: fix tests to call iedit-rectangle-mode interactively, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit dbe9e4478b 174/301: Merge pull request #41 from Vifon/iedit-replace-occurrences_default-value,
ELPA Syncer <=
- [nongnu] elpa/iedit c742ae4fa6 196/301: Exit iedit when there is no occurrence, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 46d5f65019 154/301: clean up old occurrences when calling from isearch, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c55fcd5bac 189/301: avoid error if iedit-toggle-key-default already bound to iedit-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit adb0d2e92d 179/301: Expand to next occurence ("incremental select"), ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d25b655768 207/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d31bafa97c 171/301: Refactored for easier to show different messages, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 2d9017daea 181/301: Merge pull request #51 from jasminpatry/fix/restrict-current-line-resets-expand, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 048d8417cf 202/301: *** empty log message ***, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit a8ab03848d 158/301: complete iedit-toggle-selection, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c0d108da3b 166/301: make the occurrence the latest kill in the kill ring, ELPA Syncer, 2022/01/10