[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 5a360bb206 090/366: Remove conflicting suffix
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 5a360bb206 090/366: Remove conflicting suffix when inserting new suffix |
Date: |
Tue, 25 Jan 2022 18:54:30 -0500 (EST) |
branch: externals/transient
commit 5a360bb206f47421d29c66b60264e6a1adbc6d44
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Remove conflicting suffix when inserting new suffix
When inserting a suffix and another suffix is bound to same key, then
remove the other suffix. I.e. more or less do what `define-key' would
do.
I believe doing that was already the intention before but instead of
actually doing that another binding for the suffix that is being was
removed. So `transient-insert-suffix' could be used to move where in
the popup a suffix appeared, which may be useful in some odd cases,
but isn't what this function is supposed to do.
---
lisp/transient.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 04d6bcbd7b..6f3e95606f 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -872,7 +872,7 @@ example, sets a variable use `define-infix-command' instead.
(mem (transient--layout-member loc prefix)))
(if mem
(progn
- (transient-remove-suffix prefix (plist-get (nth 2 suf) :command))
+ (transient-remove-suffix prefix (plist-get (nth 2 suf) :key))
(cl-ecase action
(insert (setcdr mem (cons (car mem) (cdr mem)))
(setcar mem suf))
- [elpa] externals/transient bbf81297c6 041/366: Prevent infix commands from being added to command-history, (continued)
- [elpa] externals/transient bbf81297c6 041/366: Prevent infix commands from being added to command-history, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient a6295fa7ee 042/366: Declare that prefix and suffix commands are for interactive use only, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 2872b4a661 045/366: transient-init-value: Define for transient-prefix, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient a47ae9499b 049/366: transient-{set, save}: Support exiting the transient, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 9e30038d2d 051/366: transient-set-level: Limit when it is called, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 544b3bb864 057/366: Support automatically disabling incompatible arguments, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 28aac32e82 058/366: Fix previous commit, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 4f7ee36899 060/366: transient-infix-set: Bugfixes, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 7a7c3e15b6 065/366: transient-show-popup: Support even suppressing one-line summary, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient d7a1e81440 067/366: transient-show-popup: Update documentation, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 5a360bb206 090/366: Remove conflicting suffix when inserting new suffix,
Jonas Bernoulli <=
- [elpa] externals/transient 4ce1868e62 091/366: Fix replacing a suffix with another suffix bound to same key, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 52fb9a6c07 093/366: transient--insert-suffix: Cosmetics, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 4adc28538b 069/366: transient--window: Unset when exiting transient, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient af8d725d26 073/366: transient--original-window: New variable, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 4ef8229feb 082/366: transient--buffer-name: New variable, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 9fb3f797f1 103/366: Regenerate manual, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 7b62e01e72 064/366: transient-show-popup: Also show the key that invoked the prefix, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient c7ad1f01f4 080/366: transient--delete-window: Protect against misconfiguration, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient b036789121 078/366: Move require form next to the others, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient f0a7a97d6b 083/366: Fix using set transient value, Jonas Bernoulli, 2022/01/25