[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 1a1ae03600 05/38: Remove transient--pre-comma
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 1a1ae03600 05/38: Remove transient--pre-command later |
Date: |
Tue, 11 Jan 2022 05:37:44 -0500 (EST) |
branch: externals/transient
commit 1a1ae036008ef152c7e77acab083133e346b9a67
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Remove transient--pre-command later
Do it alongside the removal of `transient--pre-command' instead of as
early as possible. It just complicates matters if we treat these two
hook functions differently
---
lisp/transient.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index abfff6062d..1d2030cbaa 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1959,7 +1959,6 @@ value. Otherwise return CHILDREN as is."
(transient--timer-cancel)
(transient--pop-keymap 'transient--transient-map)
(transient--pop-keymap 'transient--redisplay-map)
- (remove-hook 'pre-command-hook #'transient--pre-command)
(unless transient--showp
(let ((message-log-max nil))
(message "")))
@@ -1997,8 +1996,8 @@ value. Otherwise return CHILDREN as is."
(unless (> (minibuffer-depth) 1)
(unless transient--exitp
(transient--pop-keymap 'transient--transient-map)
- (transient--pop-keymap 'transient--redisplay-map)
- (remove-hook 'pre-command-hook #'transient--pre-command))
+ (transient--pop-keymap 'transient--redisplay-map))
+ (remove-hook 'pre-command-hook #'transient--pre-command)
(remove-hook 'post-command-hook #'transient--post-command)))
(defun transient--minibuffer-exit ()
@@ -2006,8 +2005,8 @@ value. Otherwise return CHILDREN as is."
(unless (> (minibuffer-depth) 1)
(unless transient--exitp
(transient--push-keymap 'transient--transient-map)
- (transient--push-keymap 'transient--redisplay-map)
- (add-hook 'pre-command-hook #'transient--pre-command))
+ (transient--push-keymap 'transient--redisplay-map))
+ (add-hook 'pre-command-hook #'transient--pre-command)
(add-hook 'post-command-hook #'transient--post-command)))
(defun transient--suspend-override (&optional minibuffer-hooks)
@@ -2041,6 +2040,7 @@ value. Otherwise return CHILDREN as is."
;; The current command could act as a prefix,
;; but decided not to call `transient-setup'.
(prog1 nil (transient--stack-zap))))
+ (remove-hook 'pre-command-hook #'transient--pre-command)
(remove-hook 'minibuffer-setup-hook #'transient--minibuffer-setup)
(remove-hook 'minibuffer-exit-hook #'transient--minibuffer-exit)
(advice-remove 'abort-recursive-edit #'transient--minibuffer-exit)
- [elpa] externals/transient updated (51c50d8c82 -> 3de8d9b256), Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 338f7942a7 01/38: Various debug improvements, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 28491e1f8e 02/38: Properly deal with stealth undefined command, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 1a1ae03600 05/38: Remove transient--pre-command later,
Jonas Bernoulli <=
- [elpa] externals/transient 41521a5c93 12/38: transient--get-predicate-for: Always return a function, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 143a13938c 04/38: transient-infix-read: Always enable-recursive-minibuffers, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 69f42f9e89 15/38: transient--make-predicate-map: Cosmetics, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient e90f7a165e 16/38: Add support for returning from a sub-prefix to the parent prefix, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 714e348296 18/38: No longer always suspend when handle-switch-frame is called, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient c19ff84355 19/38: manual: Rearrange and group options, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 5762bd9a06 22/38: transient-hide-during-minibuffer-read: New option, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 8d8ed1965f 26/38: Hide infix commands from execute-extended-command, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 6103f168aa 28/38: transient--describe-function: Deal with anonymous infix arguments, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 2c9cef1f5a 33/38: Bump copyright years, Jonas Bernoulli, 2022/01/11