[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/speedrect a472d721c2 04/16: wrap: alias wrapped functio
From: |
ELPA Syncer |
Subject: |
[elpa] externals/speedrect a472d721c2 04/16: wrap: alias wrapped functions (with --speedrect_wrap) for keycast |
Date: |
Tue, 17 Dec 2024 18:59:38 -0500 (EST) |
branch: externals/speedrect
commit a472d721c2ad5d5e16e9c27139f47e0d1449c63e
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
wrap: alias wrapped functions (with --speedrect_wrap) for keycast
---
speedrect.el | 30 +++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/speedrect.el b/speedrect.el
index fade279dda..5bdcd5dcfb 100644
--- a/speedrect.el
+++ b/speedrect.el
@@ -443,19 +443,23 @@ Many/most rectangle commands deactivate mark and exit
commands, and, if custom option `speedrect-continue' is non-nil,
restarts with the same rectangle. If AFTER is non-nil, stash the
rectangle after the command runs, otherwise, stash it before."
- (lambda ()
- (interactive)
- (unless after (speedrect-stash))
- (call-interactively command)
- (when after (speedrect-stash))
- (when speedrect-continue
- (run-at-time 0 nil
- (lambda (buf)
- (with-current-buffer buf
- (activate-mark)
- (rectangle-mark-mode 1)
- (speedrect-recall-last)))
- (current-buffer)))))
+ (let ((func
+ (lambda ()
+ (interactive)
+ (unless after (speedrect-stash))
+ (call-interactively command)
+ (when after (speedrect-stash))
+ (when speedrect-continue
+ (run-at-time 0 nil
+ (lambda (buf)
+ (with-current-buffer buf
+ (activate-mark)
+ (rectangle-mark-mode 1)
+ (speedrect-recall-last)))
+ (current-buffer)))))
+ (name (intern (concat (symbol-name command) "--speedrect_wrap"))))
+ (defalias name func)
+ name))
(defun speedrect-create-bindings ()
"Create the bindings for speedrect."
- [elpa] externals/speedrect updated (8cda38a010 -> c6e5e1fe7e), ELPA Syncer, 2024/12/17
- [elpa] externals/speedrect a472d721c2 04/16: wrap: alias wrapped functions (with --speedrect_wrap) for keycast,
ELPA Syncer <=
- [elpa] externals/speedrect 0150882424 02/16: yank-from-calc: delete existing rectangle first, ELPA Syncer, 2024/12/17
- [elpa] externals/speedrect 9025ae3b49 11/16: Update README.md, ELPA Syncer, 2024/12/17
- [elpa] externals/speedrect 4eb3b6f58e 14/16: Update NEWS.org, ELPA Syncer, 2024/12/17
- [elpa] externals/speedrect 0897b24ef8 03/16: fill-text: ensure filled rectangles is non-ragged and doesn't move, ELPA Syncer, 2024/12/17
- [elpa] externals/speedrect bc67b6bcfe 15/16: Update README.md, ELPA Syncer, 2024/12/17
- [elpa] externals/speedrect 822a77e867 01/16: README: add demo movie and new screenshot, ELPA Syncer, 2024/12/17
- [elpa] externals/speedrect f52088fd72 05/16: recall-last: turn on rectangle mark mode if not already on, ELPA Syncer, 2024/12/17
- [elpa] externals/speedrect 1735612384 06/16: quit: stash rectangle prior to quitting, ELPA Syncer, 2024/12/17
- [elpa] externals/speedrect 2f46cbec96 07/16: multiple-cursors: recall last rectangle rect when completed, ELPA Syncer, 2024/12/17
- [elpa] externals/speedrect 622df66aab 08/16: NEWS: update for v0.7, ELPA Syncer, 2024/12/17