Variable: transient-display-buffer-action
transient-display-buffer-action is a customizable variable defined in
transient.el.
Value
(display-buffer-in-side-window
(side . bottom)
(dedicated . t)
(inhibit-same-window . t))
Documentation
The action used to display transient's menu buffer.
The transient menu buffer is displayed in a window using
(display-buffer BUFFER transient-display-buffer-action)
The value of this option has the form (FUNCTION . ALIST), where FUNCTION is a function or a list of functions. Each such function should accept two arguments: a buffer to display and an alist of the same form as ALIST. See info node (elisp)Choosing Window for details.
The default is:
(display-buffer-in-side-window
(side . bottom)
(dedicated . t)
(inhibit-same-window . t))
This displays the window at the bottom of the selected frame. For alternatives see info node (elisp)Display Action Functions and info node (elisp)Buffer Display Action Alists.
When you switch to a different ACTION, you should keep the ALIST
entries for dedicated and inhibit-same-window in most cases.
Do not drop them because you are unsure whether they are needed;
if you are unsure, then keep them.
Note that the buffer that was current before the transient buffer
is shown should remain the current buffer. Many suffix commands
act on the thing at point, if appropriate, and if the transient
buffer became the current buffer, then that would change what is
at point. To that effect inhibit-same-window ensures that the
selected window is not used to show the transient buffer.
The use of a horizontal split to display the menu window can lead to incompatibilities and is thus discouraged. Transient tries to mitigate such issue but cannot proactively deal with all possible configurations and combinations of third-party packages.
It may be possible to display the window in another frame, but whether that works in practice depends on the window-manager. If the window manager selects the new window (Emacs frame), then that unfortunately changes which buffer is current.
If you change the value of this option, then you might also
want to change the value of transient-mode-line-format.
This variable was added, or its default value changed, in transient version 0.7.5.
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(defcustom transient-display-buffer-action
'(display-buffer-in-side-window
(side . bottom)
(dedicated . t)
(inhibit-same-window . t))
"The action used to display transient's menu buffer.
The transient menu buffer is displayed in a window using
(display-buffer BUFFER transient-display-buffer-action)
The value of this option has the form (FUNCTION . ALIST),
where FUNCTION is a function or a list of functions. Each such
function should accept two arguments: a buffer to display and an
alist of the same form as ALIST. See info node `(elisp)Choosing
Window' for details.
The default is:
(display-buffer-in-side-window
(side . bottom)
(dedicated . t)
(inhibit-same-window . t))
This displays the window at the bottom of the selected frame.
For alternatives see info node `(elisp)Display Action Functions'
and info node `(elisp)Buffer Display Action Alists'.
When you switch to a different ACTION, you should keep the ALIST
entries for `dedicated' and `inhibit-same-window' in most cases.
Do not drop them because you are unsure whether they are needed;
if you are unsure, then keep them.
Note that the buffer that was current before the transient buffer
is shown should remain the current buffer. Many suffix commands
act on the thing at point, if appropriate, and if the transient
buffer became the current buffer, then that would change what is
at point. To that effect `inhibit-same-window' ensures that the
selected window is not used to show the transient buffer.
The use of a horizontal split to display the menu window can lead
to incompatibilities and is thus discouraged. Transient tries to
mitigate such issue but cannot proactively deal with all possible
configurations and combinations of third-party packages.
It may be possible to display the window in another frame, but
whether that works in practice depends on the window-manager.
If the window manager selects the new window (Emacs frame),
then that unfortunately changes which buffer is current.
If you change the value of this option, then you might also
want to change the value of `transient-mode-line-format'."
:package-version '(transient . "0.7.5")
:group 'transient
:type '(cons (choice function (repeat :tag "Functions" function))
alist))