From f628df72a1cbcfb8f1a49503f5018c61f1a8cd10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K?= Date: Mon, 12 Mar 2018 15:52:53 +0100 Subject: [PATCH] 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)