[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/recomplete 9c4245bc1e: Set the mark to the start of the wo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/recomplete 9c4245bc1e: Set the mark to the start of the word that was operated on |
Date: |
Sun, 19 Jan 2025 07:00:47 -0500 (EST) |
branch: elpa/recomplete
commit 9c4245bc1e8961c94e18519528f56c55de1561b2
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Set the mark to the start of the word that was operated on
---
recomplete.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/recomplete.el b/recomplete.el
index f63a8f29cb..c2092abfbe 100644
--- a/recomplete.el
+++ b/recomplete.el
@@ -441,6 +441,10 @@ Argument FN-CACHE stores the result for reuse."
"Utility to replace region from BEG to END with STR.
Return the region replaced."
(declare (important-return-value nil))
+ ;; While not needed for replacement, setting the mark allows
+ ;; the whole word that was replaced to be re-selected (C-x C-x).
+ (set-mark beg)
+
(let ((len (length str))
(i-beg nil)
(i-end nil)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/recomplete 9c4245bc1e: Set the mark to the start of the word that was operated on,
ELPA Syncer <=