[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 69f42f9e89 15/38: transient--make-predicate-m
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 69f42f9e89 15/38: transient--make-predicate-map: Cosmetics |
Date: |
Tue, 11 Jan 2022 05:37:45 -0500 (EST) |
branch: externals/transient
commit 69f42f9e896b0a2b96eebb9c5e0bc0e9e2a13aaa
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient--make-predicate-map: Cosmetics
---
lisp/transient.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index e1f5f38808..9addbafa4c 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1640,7 +1640,7 @@ of the corresponding object.")
(set-keymap-parent map transient-predicate-map)
(dolist (obj transient--suffixes)
(let* ((cmd (oref obj command))
- (sub-prefix (and (symbolp cmd) (get cmd 'transient--prefix)))
+ (sub-prefix (and (symbolp cmd) (get cmd 'transient--prefix) t))
(sym (transient--suffix-symbol cmd)))
(cond
((oref obj inapt)
@@ -1648,13 +1648,13 @@ of the corresponding object.")
((slot-boundp obj 'transient)
(define-key map (vector sym)
(let ((do (oref obj transient)))
- (pcase do
- (`t (cond (sub-prefix #'transient--do-replace)
- ((cl-typep obj 'transient-infix)
- #'transient--do-stay)
- (t #'transient--do-call)))
- (`nil 'transient--do-exit)
- (_ do)))))
+ (pcase (list do sub-prefix)
+ (`(t t) #'transient--do-replace)
+ (`(t nil) (if (cl-typep obj 'transient-infix)
+ #'transient--do-stay
+ #'transient--do-call))
+ (`(nil ,_) #'transient--do-exit)
+ (_ do)))))
((not (lookup-key transient-predicate-map (vector sym)))
(define-key map (vector sym)
(if sub-prefix
- [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, 2022/01/11
- [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 <=
- [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
- [elpa] externals/transient e77d16dd02 03/38: transient--post-command: Avoid needlessly recreating redisplay map, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 79c999d263 06/38: transient--post-exit: New function, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 2e33f96cf0 07/38: transient--post-command: Cosmetics, Jonas Bernoulli, 2022/01/11