[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 97ad9d0600 254/301: removed downcasing the from-stri
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 97ad9d0600 254/301: removed downcasing the from-string in iedit-lib.el/iedit-replace-occurrences to allow case sensitivity. |
Date: |
Mon, 10 Jan 2022 22:59:08 -0500 (EST) |
branch: elpa/iedit
commit 97ad9d0600bb923fa4d51eb3f2b796af719beae7
Author: teymuri <ateymuri63@gmail.com>
Commit: Victor <victorhge@gmail.com>
removed downcasing the from-string in
iedit-lib.el/iedit-replace-occurrences to allow case sensitivity.
---
iedit-lib.el | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/iedit-lib.el b/iedit-lib.el
index 88ef3fcbbd..fd1de2fb4f 100644
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -697,9 +697,9 @@ value of `iedit-occurrence-context-lines' is used for this
time."
(iedit-barf-if-buffering)
(iedit-apply-on-occurrences 'downcase-region))
+;;; Don't downcase from-string to allow case freedom!
(defun iedit-replace-occurrences(&optional to-string)
- "Replace occurrences with STRING.
-This function preserves case."
+ "Replace occurrences with STRING."
(interactive "*")
(iedit-barf-if-buffering)
(let* ((ov (iedit-find-current-occurrence-overlay))
@@ -707,7 +707,6 @@ This function preserves case."
(from-string (buffer-substring-no-properties
(overlay-start ov)
(overlay-end ov)))
- (from-string-lowercase (downcase from-string))
(to-string (if (not to-string)
(read-string "Replace with: "
nil nil
@@ -715,11 +714,11 @@ This function preserves case."
nil)
to-string)))
(iedit-apply-on-occurrences
- (lambda (beg end from-string-lowercase to-string)
+ (lambda (beg end from-string to-string)
(goto-char beg)
- (search-forward from-string-lowercase end)
+ (search-forward from-string end)
(replace-match to-string nil))
- from-string-lowercase to-string)
+ from-string to-string)
(goto-char (+ (overlay-start ov) offset))))
(defun iedit-blank-occurrences()
- [nongnu] elpa/iedit b4c7e41049 209/301: More doc for iedit-switch-to-mc-mode, (continued)
- [nongnu] elpa/iedit b4c7e41049 209/301: More doc for iedit-switch-to-mc-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 18b99c1fb4 169/301: Fix compile warning and test case, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit bd3fd44691 173/301: Added the default value for iedit-replace-occurrences, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b73b977839 204/301: Merge branch 'default-occurrence', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 6e6d4bc478 151/301: Merge branch 'master' of https://github.com/mbneedham/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 06bdb68bbf 203/301: Add iedit-switch-to-mc-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b2bffd978c 184/301: Merge pull request #54 from Vifon/iedit-replace-occurences_default-case, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d2f08e8862 163/301: Provide functions to narrow around current-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 27dbbdda0b 162/301: Split iedit-occurrence-update into two functions, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9a40f6fa36 205/301: check if mc present, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 97ad9d0600 254/301: removed downcasing the from-string in iedit-lib.el/iedit-replace-occurrences to allow case sensitivity.,
ELPA Syncer <=
- [nongnu] elpa/iedit 7a3725cd04 267/301: Small optimizations, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 42654ba7ed 266/301: iedit-rect.el: Don't set iedit-initial-string-local, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d335d6842a 183/301: Check if the default keybinding of iedit-mode is taken, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e575cbf569 256/301: Allow adding a incremented number in each occurence, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 796ee5298d 237/301: fix the key conflict with yas-minor-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e1decb37e5 245/301: Fix verion numbers, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f09b675c67 249/301: Add an option 'iedit-auto-narrow', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 44601e01fa 269/301: fix an issue with electric pair, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3f9eed229e 232/301: Allow custom mode-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9c08a48c88 281/301: Remove the workaround for slow c-before-change, ELPA Syncer, 2022/01/10