* lisp/window.el (display-tex-shell-buffer-action): Add
'inhibit-same-window' to the default action.
:group 'windows
:group 'comint)
-(defcustom display-tex-shell-buffer-action '(display-buffer-in-previous-window)
+(defcustom display-tex-shell-buffer-action '(display-buffer-in-previous-window
+ (inhibit-same-window . t))
"`display-buffer' action for displaying TeX shell buffers."
:type display-buffer--action-custom-type
:risky t