[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 4ce1868e62 091/366: Fix replacing a suffix wi
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 4ce1868e62 091/366: Fix replacing a suffix with another suffix bound to same key |
Date: |
Tue, 25 Jan 2022 18:54:30 -0500 (EST) |
branch: externals/transient
commit 4ce1868e62d1b3dbb6435303935dfcaca6630d2d
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Fix replacing a suffix with another suffix bound to same key
This mainly concerns `transient-replace-suffix' but is done in a way
that also works when `transient-insert-suffix' is abused to do so.
---
lisp/transient.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 6f3e95606f..57be9ab7f3 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -871,8 +871,11 @@ example, sets a variable use `define-infix-command'
instead.
(let* ((suf (transient--parse-suffix prefix suffix))
(mem (transient--layout-member loc prefix)))
(if mem
- (progn
- (transient-remove-suffix prefix (plist-get (nth 2 suf) :key))
+ (let ((key (plist-get (nth 2 suf) :key)))
+ (if (equal (transient--kbd key)
+ (transient--kbd (plist-get (nth 2 (car mem)) :key)))
+ (setq action 'replace)
+ (transient-remove-suffix prefix key))
(cl-ecase action
(insert (setcdr mem (cons (car mem) (cdr mem)))
(setcar mem suf))
- [elpa] externals/transient a6295fa7ee 042/366: Declare that prefix and suffix commands are for interactive use only, (continued)
- [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, 2022/01/25
- [elpa] externals/transient 4ce1868e62 091/366: Fix replacing a suffix with another suffix bound to same key,
Jonas Bernoulli <=
- [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
- [elpa] externals/transient 8bfa489644 095/366: Support inserting string pseudo suffixes, Jonas Bernoulli, 2022/01/25