emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/multiple-cursors f628df7 408/434: Always call `mark` with


From: ELPA Syncer
Subject: [nongnu] elpa/multiple-cursors f628df7 408/434: Always call `mark` with `mark-even-if-inactive` set to t
Date: Sat, 7 Aug 2021 09:21:10 -0400 (EDT)

branch: elpa/multiple-cursors
commit f628df72a1cbcfb8f1a49503f5018c61f1a8cd10
Author: Michał K <k.michal@zoho.com>
Commit: Michał K <k.michal@zoho.com>

    Always call `mark` with `mark-even-if-inactive` set to t
---
 multiple-cursors-core.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index d448617..2e3babc 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -154,7 +154,9 @@ highlights the entire width of the window."
 (defun mc/store-current-state-in-overlay (o)
   "Store relevant info about point and mark in the given overlay."
   (overlay-put o 'point (set-marker (make-marker) (point)))
-  (overlay-put o 'mark (set-marker (make-marker) (mark)))
+  (overlay-put o 'mark (set-marker (make-marker)
+                                  (let ((mark-even-if-inactive t))
+                                    (mark))))
   (dolist (var mc/cursor-specific-vars)
     (when (boundp var) (overlay-put o var (symbol-value var))))
   o)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]