diff options
| author | Juri Linkov | 2024-04-05 19:44:52 +0300 |
|---|---|---|
| committer | Juri Linkov | 2024-04-05 19:44:52 +0300 |
| commit | 4e22ad8cef0710bf5ce3bf99deb8dd6e30d4078c (patch) | |
| tree | 69aeb4df147d2ebc5f24399dda60295f4ff43175 | |
| parent | 6480de5ea74b6b2eeebdaa3bcf9fa8e384ffbab1 (diff) | |
| download | emacs-4e22ad8cef0710bf5ce3bf99deb8dd6e30d4078c.tar.gz emacs-4e22ad8cef0710bf5ce3bf99deb8dd6e30d4078c.zip | |
Mark display-comint-buffer-action as obsolete after adding a category.
* lisp/window.el (display-comint-buffer-action):
Append '(category . comint)' to the default value. Mark as obsolete.
(display-tex-shell-buffer-action):
Append '(category . tex-shell)' to the default value. Mark as obsolete.
(bug#69983)
| -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 | |||
| 303 | It specifies whether the window of the displayed buffer should be | 303 | It specifies whether the window of the displayed buffer should be |
| 304 | selected or deselected at the end of executing the current command. | 304 | selected or deselected at the end of executing the current command. |
| 305 | 305 | ||
| 306 | --- | ||
| 307 | *** User option 'display-comint-buffer-action' is now obsolete. | ||
| 308 | You can use a '(category . comint)' condition in 'display-buffer-alist' | ||
| 309 | to match buffers displayed by comint-related commands. Another | ||
| 310 | user option 'display-tex-shell-buffer-action' is obsolete too | ||
| 311 | for which you can use '(category . tex-shell)'. | ||
| 312 | |||
| 306 | +++ | 313 | +++ |
| 307 | *** New variable 'window-restore-killed-buffer-windows'. | 314 | *** New variable 'window-restore-killed-buffer-windows'. |
| 308 | It specifies how 'set-window-configuration' and 'window-state-put' | 315 | 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 | |||
| 8923 | another window." | 8923 | another window." |
| 8924 | (pop-to-buffer buffer display-buffer--same-window-action norecord)) | 8924 | (pop-to-buffer buffer display-buffer--same-window-action norecord)) |
| 8925 | 8925 | ||
| 8926 | (defcustom display-comint-buffer-action display-buffer--same-window-action | 8926 | (defcustom display-comint-buffer-action |
| 8927 | (append display-buffer--same-window-action '((category . comint))) | ||
| 8927 | "`display-buffer' action for displaying comint buffers." | 8928 | "`display-buffer' action for displaying comint buffers." |
| 8928 | :type display-buffer--action-custom-type | 8929 | :type display-buffer--action-custom-type |
| 8929 | :risky t | 8930 | :risky t |
| @@ -8931,8 +8932,14 @@ another window." | |||
| 8931 | :group 'windows | 8932 | :group 'windows |
| 8932 | :group 'comint) | 8933 | :group 'comint) |
| 8933 | 8934 | ||
| 8935 | (make-obsolete-variable | ||
| 8936 | 'display-comint-buffer-action | ||
| 8937 | "use a `(category . comint)' condition in `display-buffer-alist'." | ||
| 8938 | "30.1") | ||
| 8939 | |||
| 8934 | (defcustom display-tex-shell-buffer-action '(display-buffer-in-previous-window | 8940 | (defcustom display-tex-shell-buffer-action '(display-buffer-in-previous-window |
| 8935 | (inhibit-same-window . t)) | 8941 | (inhibit-same-window . t) |
| 8942 | (category . tex-shell)) | ||
| 8936 | "`display-buffer' action for displaying TeX shell buffers." | 8943 | "`display-buffer' action for displaying TeX shell buffers." |
| 8937 | :type display-buffer--action-custom-type | 8944 | :type display-buffer--action-custom-type |
| 8938 | :risky t | 8945 | :risky t |
| @@ -8940,6 +8947,11 @@ another window." | |||
| 8940 | :group 'windows | 8947 | :group 'windows |
| 8941 | :group 'tex-run) | 8948 | :group 'tex-run) |
| 8942 | 8949 | ||
| 8950 | (make-obsolete-variable | ||
| 8951 | 'display-tex-shell-buffer-action | ||
| 8952 | "use a `(category . tex-shell)' condition in `display-buffer-alist'." | ||
| 8953 | "30.1") | ||
| 8954 | |||
| 8943 | (defun read-buffer-to-switch (prompt) | 8955 | (defun read-buffer-to-switch (prompt) |
| 8944 | "Read the name of a buffer to switch to, prompting with PROMPT. | 8956 | "Read the name of a buffer to switch to, prompting with PROMPT. |
| 8945 | Return the name of the buffer as a string. | 8957 | Return the name of the buffer as a string. |