commit 7fa2596475670e9f850b9bca51474f8d50b1ca37
parent 1148659a043f117327f242de3713b417f95276ad
Author: Wojciech Siewierski <wojciech@siewierski.eu>
Date: Fri, 3 Mar 2023 07:30:15 +0100
Fix a corner case in the legacy cursors: region no longer required
This prevented the command running in new buffers where mark wasn't
placed anywhere yet. Previously when region wasn't active it didn't
matter where it was, but it needed to exist.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kmacro-x-mc-legacy.el b/kmacro-x-mc-legacy.el
@@ -64,7 +64,8 @@ If HIGHLIGHT is non-nil (or with the prefix argument when using
interactively) highlight the query using `highlight-regexp'.
Use `\\[unhighlight-regexp]' to remove the highlight later."
(interactive "r\nP")
- (unless (and (= start (region-beginning))
+ (unless (and (mark)
+ (= start (region-beginning))
(= end (region-end)))
;; Ensure a consistent behavior when called interactively and when
;; called from Elisp with arguments not being the current region.