[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient e627d45166 054/366: transient-prefix: Add new
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient e627d45166 054/366: transient-prefix: Add new history-key slot |
Date: |
Tue, 25 Jan 2022 18:54:26 -0500 (EST) |
branch: externals/transient
commit e627d4516602c1a47cd85eb96ea4a3d69f202cfd
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient-prefix: Add new history-key slot
---
lisp/transient.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 47e6175a41..37adcc44cf 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -407,6 +407,7 @@ If `transient-save-history' is nil, then do nothing."
(scope :initarg :scope :initform nil)
(history :initarg :history :initform nil)
(history-pos :initarg :history-pos :initform 0)
+ (history-key :initarg :history-key :initform nil)
(man-page :initarg :man-page :initform nil)
(info-manual :initarg :info-manual :initform nil)
(transient-suffix :initarg :transient-suffix :initform nil)
@@ -2254,8 +2255,11 @@ which is not the same as nil."
;;; History
(cl-defgeneric transient--history-key (obj)
- "Return OBJ's history key."
- (oref obj command))
+ "Return OBJ's history key.
+If the value of the `history-key' slot is non-nil, then return
+that. Otherwise return the value of the `command' slot."
+ (or (oref obj history-key)
+ (oref obj command)))
(defun transient--history-push (&optional slot)
(unless slot
- [elpa] externals/transient 686b7ebc5f 363/366: Fix handling of sub-prefix command that use the minibuffer, (continued)
- [elpa] externals/transient 686b7ebc5f 363/366: Fix handling of sub-prefix command that use the minibuffer, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient cda6a12042 342/366: transient-align-variable-pitch: New option, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient a19faa1c71 364/366: Return to outer prefix when minibuffer is aborted for sub-prefix, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 994616d92f 365/366: manual: Fix version macro and prefer PACKAGE_REVDESC, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 3b4202e8ca 358/366: Silence byte-compiler, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient e85b3e5241 007/366: manual: Fix a typo, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient b155eec353 011/366: transient--suffix-command: Fix doc-string typos, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient ebbe32e14d 028/366: transient--insert-groups: New function, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 70729dd620 043/366: transient-set-level: Disallow 0 as prefix level, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 3668aeb81d 053/366: transient--history-key: New generic function, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient e627d45166 054/366: transient-prefix: Add new history-key slot,
Jonas Bernoulli <=
- [elpa] externals/transient 8a0428e037 056/366: transient-args: Remove unnecessary form, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 47b79754e3 055/366: transient--history-push: Define as generic function, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 61e631aa6d 068/366: transient-history: Fix doc-string quoting, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 2ad749e1fa 081/366: Fix doc-string typo, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 71687ba790 085/366: No longer allow characters as pseudo suffixes, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 62b18fef2b 115/366: transient-mode-line-format: Don't without a window-system, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 75de1f0418 120/366: transient-detect-key-conflicts: But without locking Emacs, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient c59c48530a 122/366: transient--{suspend, resume}-override: New functions, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient ebcad9e6fe 127/366: Use seq instead of dash, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient d49f85a8c1 158/366: Support scroll-bar-toolkit-scroll, Jonas Bernoulli, 2022/01/25