[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 609dabfdac 02/17: transient-prefix: Add exper
|
From: |
Jonas Bernoulli |
|
Subject: |
[elpa] externals/transient 609dabfdac 02/17: transient-prefix: Add experimental transient-switch-frame slot |
|
Date: |
Tue, 21 Nov 2023 10:17:46 -0500 (EST) |
branch: externals/transient
commit 609dabfdac8a4a08c1e88bea9bf6cd98934ef8d1
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient-prefix: Add experimental transient-switch-frame slot
This is experimental and guaranteed to be changed in not fully (or at
all) backward compatible ways. Only use this at this time if you are
prepared to deal with that.
---
lisp/transient.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 760110163a..8da0242443 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -648,6 +648,7 @@ If `transient-save-history' is nil, then do nothing."
(man-page :initarg :man-page :initform nil)
(transient-suffix :initarg :transient-suffix :initform nil)
(transient-non-suffix :initarg :transient-non-suffix :initform nil)
+ (transient-switch-frame :initarg :transient-switch-frame)
(refresh-suffixes :initarg :refresh-suffixes :initform nil)
(incompatible :initarg :incompatible :initform nil)
(suffix-description :initarg :suffix-description)
@@ -1763,9 +1764,12 @@ of the corresponding object."
(return (eq default t))
(map (make-sparse-keymap)))
(set-keymap-parent map transient-predicate-map)
- (when (memq (transient--resolve-pre-command
- (oref transient--prefix transient-non-suffix))
- '(nil transient--do-warn transient--do-noop))
+ (when (or (and (slot-boundp transient--prefix 'transient-switch-frame)
+ (transient--resolve-pre-command
+ (not (oref transient--prefix transient-switch-frame))))
+ (memq (transient--resolve-pre-command
+ (oref transient--prefix transient-non-suffix))
+ '(nil transient--do-warn transient--do-noop)))
(define-key map [handle-switch-frame] #'transient--do-suspend))
(dolist (obj transient--suffixes)
(let* ((cmd (oref obj command))
- [elpa] externals/transient updated (3cd1de1695 -> 57bb749f98), Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 43e9c16d0c 05/17: Next release will be 0.5.0, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 609dabfdac 02/17: transient-prefix: Add experimental transient-switch-frame slot,
Jonas Bernoulli <=
- [elpa] externals/transient c7daf2d34e 03/17: Make shadowed buffer current when calling a group's hide function, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient d39916a43d 08/17: transient-help: Propertize key binding in message, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 7bb6f670fa 09/17: Move definition of transient button-type, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient a53205c51b 10/17: Move definition of transient--restore-winconf, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 7da468ef9d 07/17: transient-format(around:suffix): Absorb around:infix method, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient c885d12b54 15/17: Move definition of transient-resume-mode-map, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 413f76a783 16/17: Collect most commands in one section, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient fdd0532575 06/17: transient-format(around:suffix): Cosmetics, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient ee26a40301 14/17: Move definition of transient-toggle-common, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 57bb749f98 17/17: Remove obsolete function alias transient--current-buffer after all, Jonas Bernoulli, 2023/11/21