diff options
-rw-r--r-- | etc/NEWS | 7 | ||||
-rw-r--r-- | lisp/window.el | 16 |
2 files changed, 21 insertions, 2 deletions
@@ -303,6 +303,13 @@ by adding '(category . symbol)' to the condition part of It specifies whether the window of the displayed buffer should be selected or deselected at the end of executing the current command. +--- +*** User option 'display-comint-buffer-action' is now obsolete. +You can use a '(category . comint)' condition in 'display-buffer-alist' +to match buffers displayed by comint-related commands. Another +user option 'display-tex-shell-buffer-action' is obsolete too +for which you can use '(category . tex-shell)'. + +++ *** New variable 'window-restore-killed-buffer-windows'. It specifies how 'set-window-configuration' and 'window-state-put' diff --git a/lisp/window.el b/lisp/window.el index 3867f6fa6ef..29e7310958b 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -8923,7 +8923,8 @@ currently selected window; otherwise it will be displayed in another window." (pop-to-buffer buffer display-buffer--same-window-action norecord)) -(defcustom display-comint-buffer-action display-buffer--same-window-action +(defcustom display-comint-buffer-action + (append display-buffer--same-window-action '((category . comint))) "`display-buffer' action for displaying comint buffers." :type display-buffer--action-custom-type :risky t @@ -8931,8 +8932,14 @@ another window." :group 'windows :group 'comint) +(make-obsolete-variable + 'display-comint-buffer-action + "use a `(category . comint)' condition in `display-buffer-alist'." + "30.1") + (defcustom display-tex-shell-buffer-action '(display-buffer-in-previous-window - (inhibit-same-window . t)) + (inhibit-same-window . t) + (category . tex-shell)) "`display-buffer' action for displaying TeX shell buffers." :type display-buffer--action-custom-type :risky t @@ -8940,6 +8947,11 @@ another window." :group 'windows :group 'tex-run) +(make-obsolete-variable + 'display-tex-shell-buffer-action + "use a `(category . tex-shell)' condition in `display-buffer-alist'." + "30.1") + (defun read-buffer-to-switch (prompt) "Read the name of a buffer to switch to, prompting with PROMPT. Return the name of the buffer as a string. |