[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-surround ee61a65200 144/175: Fix repeating tag change
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-surround ee61a65200 144/175: Fix repeating tag changes |
Date: |
Mon, 9 Oct 2023 13:01:14 -0400 (EDT) |
branch: elpa/evil-surround
commit ee61a652003538675e00042b99fd2c03aa43a746
Author: James N. V. Cash <james.nvc@gmail.com>
Commit: James N. V. Cash <james.nvc@gmail.com>
Fix repeating tag changes
To make repeating tag changes, need to record the output from the reading
the new tag
---
evil-surround.el | 6 ++++--
test/evil-surround-test.el | 10 ++++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/evil-surround.el b/evil-surround.el
index 6a92d082cd..305ccf58d5 100644
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -106,10 +106,12 @@ Each item is of the form (OPERATOR . OPERATION)."
"The previously deleted LEFT region.")
(defun evil-surround-read-from-minibuffer (&rest args)
- (when evil-surround-record-repeat
+ (when (or evil-surround-record-repeat
+ (evil-repeat-recording-p))
(evil-repeat-keystrokes 'post))
(let ((res (apply #'read-from-minibuffer args)))
- (when evil-surround-record-repeat
+ (when (or evil-surround-record-repeat
+ (evil-repeat-recording-p))
(evil-repeat-record res))
res))
diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el
index 0ab98de36e..a93bd7a7c9 100644
--- a/test/evil-surround-test.el
+++ b/test/evil-surround-test.el
@@ -129,6 +129,16 @@
"<span ngModel class=\"foo\" randomAngularDirective #anchor1>Bar</span>"
("cst<p>")
"<p>Bar</p>"))
+ (ert-info ("optionally keep xml attributes: repeating")
+ (evil-test-buffer
+ :visual-start nil
+ :visual-end nil
+ "<div attr=\"foo\">Foo</div><div attr=\"bar\">Bar</div>"
+ (turn-on-evil-surround-mode)
+ ("cst<span")
+ "<span attr=\"foo\">Foo</span><div attr=\"bar\">Bar</div>"
+ ("fB.")
+ "<span attr=\"foo\">Foo</span><span attr=\"bar\">Bar</span>"))
(ert-info ("repeat surrounding")
(evil-test-buffer
"[o]ne two three"
- [nongnu] elpa/evil-surround 15b0b14091 096/175: Add tests, (continued)
- [nongnu] elpa/evil-surround 15b0b14091 096/175: Add tests, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 854e05fffe 098/175: attempt to display travis badge, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 7839abe0e0 109/175: Merge pull request #120 from edkolev/use-examples-as-tests, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 57daf201cd 120/175: add yS test, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 6270ab1830 121/175: Fix repeat when pair is determined by function, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 61e4a4aa5c 124/175: try out new logo scale, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 55c820083a 116/175: Use ‘evil-surround’ as :group for customizable variables, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 01eb3c0e4f 142/175: Remove apparently-unnecessary run-at-time, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 191ad92fb8 155/175: Add support for surrounding with function calls in prefix form, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 4706987bc0 151/175: fix make emacs, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround ee61a65200 144/175: Fix repeating tag changes,
ELPA Syncer <=
- [nongnu] elpa/evil-surround 78b2958546 164/175: Update maintainer for NonGNU ELPA, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround bd98f7f549 175/175: Return an empty range from evil-surround-edit, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround ea14078cb2 171/175: Make car + cdr safe for delete overlays, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround ee19b598ca 019/175: Merge pull request #8 from cofi/master, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 9f2917cfe2 018/175: Mention the buffer local surround pairs in the readme., ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround c42ddb5d1d 023/175: add autoloads, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 31cc1da60c 026/175: Merge pull request #14 from milkypostman/master, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 0c503fc994 033/175: Merge branch 'master' of https://github.com/lyro/evil-surround, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 8b59d17d5c 038/175: Merge pull request #32 from Silex/master, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 77e7cd8de0 045/175: bring back the evil-Surround-region; make it work with yS, also, ELPA Syncer, 2023/10/09