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

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

[elpa] externals/speedrect f52088fd72 05/16: recall-last: turn on rectan


From: ELPA Syncer
Subject: [elpa] externals/speedrect f52088fd72 05/16: recall-last: turn on rectangle mark mode if not already on
Date: Tue, 17 Dec 2024 18:59:38 -0500 (EST)

branch: externals/speedrect
commit f52088fd72b3a9be42eff0e9068a24759d8455d0
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>

    recall-last: turn on rectangle mark mode if not already on
---
 speedrect.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/speedrect.el b/speedrect.el
index 5bdcd5dcfb..a6c6e1d24f 100644
--- a/speedrect.el
+++ b/speedrect.el
@@ -58,6 +58,8 @@ Stored as (POINT-LINE POINT-COL MARK-LINE MARK-COL), where 
....")
 (defun speedrect-recall-last ()
   "Restore last saved rectangle position."
   (interactive)
+  (unless rectangle-mark-mode
+    (rectangle-mark-mode 1))
   (pcase speedrect-last
     (`((,point . ,mark) ,point-crutches ,mark-crutches)
      (set-mark (marker-position mark))



reply via email to

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