[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit f79846e639 275/301: Fix issue #117
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit f79846e639 275/301: Fix issue #117 |
Date: |
Mon, 10 Jan 2022 22:59:10 -0500 (EST) |
branch: elpa/iedit
commit f79846e6393813772ed89059452cea7911a9b425
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Victor <victorhge@gmail.com>
Fix issue #117
Use `cl-case` and not `case` and do not quote symbols in `cl-case` clauses.
---
iedit-lib.el | 36 +++++++++++++++++++-----------------
1 file changed, 19 insertions(+), 17 deletions(-)
diff --git a/iedit-lib.el b/iedit-lib.el
index 77846b02df..d5891da554 100755
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -565,10 +565,10 @@ Apply the change to all the other occurrences. "
(iedit-move-conjoined-overlays occurrence)
(when (/= beg end)
;; apply the case pattern on the current occurrence
- (case (overlay-get occurrence 'category)
- ('all-caps
+ (cl-case (overlay-get occurrence 'category)
+ (all-caps
(upcase-region beg end))
- ('cap-initial
+ (cap-initial
(when (= 0 offset) (capitalize-region beg end )))))
(dolist (another-occurrence iedit-occurrences-overlays)
(when (not (eq another-occurrence occurrence))
@@ -579,13 +579,14 @@ Apply the change to all the other occurrences. "
(goto-char beginning)
(insert-and-inherit
;; preserve the case pattern of each occurrence
- (case (overlay-get another-occurrence 'category)
- ('no-change value)
- ('all-caps
- (upcase value))
- ('cap-initial
- (if (= 0 offset) (capitalize value)
- value))))))
+ (cl-case (overlay-get another-occurrence 'category)
+ (no-change value)
+ (all-caps
+ (upcase value))
+ (cap-initial
+ (if (= 0 offset)
+ (capitalize value)
+ value))))))
(iedit-move-conjoined-overlays another-occurrence))))
(when inhibit-modification-hooks
;; run the after change functions only once. It seems OK for c-mode
@@ -986,13 +987,14 @@ modification is not going to be applied to other
occurrences."
(unless (eq beg end) ;; replacement
(goto-char beginning)
(insert-and-inherit
- (case (overlay-get occurrence 'category)
- ('all-caps
- (upcase modified-string))
- ('cap-initial
- (if (= 0 offset) (capitalize
modified-string)
- modified-string))
- (t modified-string))))
+ (cl-case (overlay-get occurrence 'category)
+ (all-caps
+ (upcase modified-string))
+ (cap-initial
+ (if (= 0 offset)
+ (capitalize modified-string)
+ modified-string))
+ (t modified-string))))
(iedit-move-conjoined-overlays occurrence))))
(goto-char (+ (overlay-start ov) offset))))))
(setq iedit-buffering nil)
- [nongnu] elpa/iedit 8219304d9c 051/301: Fix problem when iedit-stop-buffering is called when current point is at any occurrence., (continued)
- [nongnu] elpa/iedit 8219304d9c 051/301: Fix problem when iedit-stop-buffering is called when current point is at any occurrence., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d872cb77e5 058/301: Update comments for restricting, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 75552aa1c8 090/301: Rename, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 33d1b24e04 080/301: Fix compatible with Emacs 22 problem, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ad8fd96f86 215/301: Add support for markup tags, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5b14cc9fca 241/301: Add a demo gif and update document, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 03b647be8b 234/301: Expand or collapse mutiple lines, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 88101571fe 288/301: Make it an option to save occurrence in the kill ring, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ca844b40f4 265/301: Fix package URLs in commentaries, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3a892bac38 277/301: Enhance a test case to compile iedit under clean environment, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f79846e639 275/301: Fix issue #117,
ELPA Syncer <=
- [nongnu] elpa/iedit f74ae491f3 291/301: fix failed test cases, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3bd4c15e3d 301/301: Add license file with GPLv3, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 344ff8de91 299/301: Add iedit-autoloads.el to .gitignore, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f88df1072b 116/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 1bced99a26 109/301: Fix bugs when undo is in progress, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit a5d117a75a 122/301: add test-case for deleting char at end of overlay with mirror at EOB, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 78ac0ea958 105/301: Fix typo, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 6f80f88134 106/301: Differentiate lib keymap and occurrence keymap, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9cfd76f7c2 121/301: Toggle case-sensitive with intial region, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 106185cd95 187/301: Merge branch 'bmag-incremental-select', ELPA Syncer, 2022/01/10