[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 59d602a2e8 05/41: transient--refreshp: New va
|
From: |
Jonas Bernoulli |
|
Subject: |
[elpa] externals/transient 59d602a2e8 05/41: transient--refreshp: New variable |
|
Date: |
Sun, 12 Nov 2023 20:04:07 -0500 (EST) |
branch: externals/transient
commit 59d602a2e8568eaf31c11e9c8e0971c5bf6e86cd
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient--refreshp: New variable
This makes it possible for a command to enable a complete transient
refresh, just for itself.
---
lisp/transient.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index cdd39e4930..213b28ce92 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1409,6 +1409,9 @@ variable instead.")
(defvar transient--helpp nil "Whether help-mode is active.")
(defvar transient--editp nil "Whether edit-mode is active.")
+(defvar transient--refreshp nil
+ "Whether to refresh the transient completely.")
+
(defvar transient--active-infix nil "The active infix awaiting user input.")
(defvar transient--timer nil)
@@ -1869,6 +1872,7 @@ value. Otherwise return CHILDREN as is."
(if name
(setq transient--prefix (transient--init-prefix name params))
(setq name (oref transient--prefix command)))
+ (setq transient--refreshp (oref transient--prefix refresh-suffixes))
(setq transient--layout (or layout (transient--init-suffixes name)))
(setq transient--suffixes (transient--flatten-suffixes transient--layout)))
@@ -2329,7 +2333,7 @@ value. Otherwise return CHILDREN as is."
;; would have to be used to record that a universal
;; argument is in effect.
(not prefix-arg)))
- ((oref transient--prefix refresh-suffixes)
+ (transient--refreshp
(transient--refresh-transient))
((let ((old transient--redisplay-map)
(new (transient--make-redisplay-map)))
- [elpa] externals/transient updated (a8829875b2 -> 3cd1de1695), Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient f769486803 02/41: Tweak some docstrings, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 59d602a2e8 05/41: transient--refreshp: New variable,
Jonas Bernoulli <=
- [elpa] externals/transient 92572454b5 06/41: transient-toggle-level-limit: New command, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 8098d17518 13/41: transient--make-predicate-map: Fix handling of transient-suffix, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 10d590dc55 07/41: transient-echo-arguments: Also echo command keys, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient f43aee1a5e 08/41: transient--suffix-prototype: New function, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 9a7eb0d9a3 09/41: transient--make-predicate-map: Use define-key exclusively, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 67671e1ac0 12/41: transient--make-predicate-map: Rearrange pcase cases, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 5e841bb24b 19/41: transient-infix-set(argument): Replace :around with :after method, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient c6e3891537 21/41: transient-infix-set(argument): Cosmetics, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 425003a44b 22/41: transient-infix-set(argument): Limit to other arguments, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 8d8df0f038 20/41: transient-infix-set(argument): Cosmetics, Jonas Bernoulli, 2023/11/12