[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/speedrect 2d9bdd37f1 04/12: speedrect-undo: restarting,
From: |
ELPA Syncer |
Subject: |
[elpa] externals/speedrect 2d9bdd37f1 04/12: speedrect-undo: restarting, using no region |
Date: |
Mon, 16 Dec 2024 12:59:28 -0500 (EST) |
branch: externals/speedrect
commit 2d9bdd37f14d7198dc367f5df4a9f0029ee8797e
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
speedrect-undo: restarting, using no region
---
speedrect.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/speedrect.el b/speedrect.el
index 155abbcbb0..c177cfaca7 100644
--- a/speedrect.el
+++ b/speedrect.el
@@ -147,6 +147,11 @@ Note that point and mark will not move beyond the end of
text on their lines."
(speedrect-shift-down (- (or lines 5))))
;;;; Manipulation
+(defun speedrect-undo ()
+ "Undo, temporarily disabling mark."
+ (interactive)
+ (let ((mark-active nil)) (undo)))
+
(defun speedrect-yank-rectangle-dwim ()
"Yank rectangle, but first swap mark and point if needed."
(interactive)
@@ -381,6 +386,7 @@ Numerical:\n
Etc:\n
[f] fill fill text within rectangle (prefix to prompt fill width)
[M] multiple-cursors add cursors at current column
+ [u] undo undo last edit (and restart)
[?] help view this Help buffer
[q] quit exit rectangle-mark-mode")))
@@ -449,6 +455,7 @@ rectangle after the command runs, otherwise, stash it
before."
("n" speedrect-restart)
("l" speedrect-recall-last)
("f" speedrect-fill-text after)
+ ("u" speedrect-undo t)
("M" speedrect-multiple-cursors)
("?" speedrect-transient-map-info)
("q" speedrect-quit))
- [elpa] externals/speedrect updated (0a97e82913 -> 8cda38a010), ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect a3ac64cee9 02/12: docstring: remove outdated advice mention, ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect 2d9bdd37f1 04/12: speedrect-undo: restarting, using no region,
ELPA Syncer <=
- [elpa] externals/speedrect 1935a0266a 06/12: kill-rectangle: new option to preserve space on kill with prefix, ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect cd7e2e71fe 09/12: help tweaks, ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect 14fa816ebb 10/12: Updated NEWS, ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect 06771a6d96 05/12: delete-ws: space-preserving left and right WS-deletion, ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect 896f577d06 08/12: replace-with-rect: move to column first to properly add spaces, ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect 94a9462ccf 03/12: increment: preserve space padding when possible, ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect 61d828134a 01/12: add increment/decrement on +/-, ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect 67bd27132c 07/12: fill: use last killed rectangle if selected rect is fully blank, ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect 8cda38a010 12/12: Update README.md, ELPA Syncer, 2024/12/16
- [elpa] externals/speedrect 50d793aaa1 11/12: README: added help info, ELPA Syncer, 2024/12/16