[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 4f0bd45d88 166/366: transient--make-predicate
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 4f0bd45d88 166/366: transient--make-predicate-map: Cosmetics |
Date: |
Tue, 25 Jan 2022 18:54:37 -0500 (EST) |
branch: externals/transient
commit 4f0bd45d88589436a41cf81986fd9bc27f807382
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient--make-predicate-map: Cosmetics
---
lisp/transient.el | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index d5d162fa76..c5dcc687fe 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1444,21 +1444,22 @@ of the corresponding object.")
(dolist (obj transient--suffixes)
(let* ((cmd (transient--suffix-command obj))
(sub-prefix (and (symbolp cmd) (get cmd 'transient--prefix))))
- (if (slot-boundp obj 'transient)
- (define-key map (vector cmd)
- (let ((do (oref obj transient)))
- (pcase do
- (`t (if sub-prefix
- 'transient--do-replace
- 'transient--do-stay))
- (`nil 'transient--do-exit)
- (_ do))))
- (unless (lookup-key transient-predicate-map (vector cmd))
- (define-key map (vector cmd)
- (if sub-prefix
- 'transient--do-replace
- (or (oref transient--prefix transient-suffix)
- 'transient--do-exit)))))))
+ (cond
+ ((slot-boundp obj 'transient)
+ (define-key map (vector cmd)
+ (let ((do (oref obj transient)))
+ (pcase do
+ (`t (if sub-prefix
+ 'transient--do-replace
+ 'transient--do-stay))
+ (`nil 'transient--do-exit)
+ (_ do)))))
+ ((not (lookup-key transient-predicate-map (vector cmd)))
+ (define-key map (vector cmd)
+ (if sub-prefix
+ 'transient--do-replace
+ (or (oref transient--prefix transient-suffix)
+ 'transient--do-exit)))))))
map))
(defun transient--make-redisplay-map ()
- [elpa] externals/transient ff78eddcbf 126/366: Fix indentation, (continued)
- [elpa] externals/transient ff78eddcbf 126/366: Fix indentation, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 970563c54a 129/366: Put transient in extensions custom group, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient c1ae1eecdd 130/366: transient-separator: Extend to window edge in Emacs 27 too, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 81c0772c19 139/366: transient-infix-read: Remove ivy-index property from history element, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 8d31993c62 146/366: manual: Remove some trigger words from LocalWords, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient c8cc9f6d24 147/366: Add .mailmap, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient a269614c69 151/366: Release version 0.2.0, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient c94cff7474 159/366: Fix typo, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient dd0c44cb2d 160/366: Use the package prefix for everything, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 30387690fd 161/366: Autoload functions that users might use without requiring transient, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 4f0bd45d88 166/366: transient--make-predicate-map: Cosmetics,
Jonas Bernoulli <=
- [elpa] externals/transient 9b777fa120 167/366: transient--invalid: New function, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 38fd406eac 168/366: transient--invalid: Emphasize command name, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 769fa4380a 169/366: transient-set-level: Fix edge-case, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient b52c623217 177/366: transient--colorize-key: New function, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 248862c58e 178/366: Add experimental support for semantic coloring, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient dd9c40adc3 180/366: transient-setup: Handle edge-case, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 4d44d08e90 181/366: Tell package.el to compile this library properly, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 53d3885371 182/366: transient--emergency-exit: Show debug message, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 879f45f0c9 184/366: transient--with-emergency-exit: Define earlier, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient a7f6c3c23d 191/366: transient-plist-to-alist: New utility function, Jonas Bernoulli, 2022/01/25