-
I've been dealing with two The following examples are produced via Elpaca test environment for reproducing bug(elpaca-test
:name "transient"
:dir "/tmp/transient-test"
:interactive t
:early-init
(setq package-enable-at-startup nil
package-quickstart nil
load-prefer-newer t)
:init
(elpaca transient)
(elpaca gptel)
(elpaca magit)
(setq transient-display-buffer-action
'(display-buffer-below-selected))
(tool-bar-mode 0))
(But this problem is independent of magit, see below) Issue 1: Reading from minibuffer in a transient causes extra windows to appear (transient 0.8.3+)screencast_20250215T220929.mp4To reproduce: (setq transient-display-buffer-action '((display-buffer-below-selected))
transient-show-during-minibuffer-read nil) or (setq transient-display-buffer-action '(display-buffer-below-selected)
transient-show-during-minibuffer-read nil) Then set a transient option whose reader uses the minibuffer. Result: An extra window is spawned that has to be cleared manually after exiting the transient. This happens with all transients, see gptel#583 for another example. Issue 2: Bringing up help/a man page from transient causes extra window to appear (transient 0.4.0+)screencast_20250215T221142.mp4The settings are the same as above, but To reproduce, bring up the man page for an option (in this case, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Use this instead: (setq transient-display-buffer-action
'(display-buffer-below-selected
(dedicated . t)
(inhibit-same-window . t))) I've updated (04dab99) the documentation to make it explicit that these alist entries shouldn't be dropped. |
Beta Was this translation helpful? Give feedback.
-
@tarsius There appears to be more to the story. With
I tried running the (transient-define-prefix test-read ()
"TODO"
["Test"
("r" "read" "r"
:class transient-option
:prompt "Pick: "
:reader (lambda (p i h)
(completing-read p '("one" "two" "three")
nil nil i h)))]) The result after running
|
Beta Was this translation helpful? Give feedback.
Use this instead:
I've updated (04dab99) the documentation to make it explicit that these alist entries shouldn't be dropped.