From: Juri Linkov Date: Tue, 11 Jan 2022 18:04:30 +0000 (+0200) Subject: * lisp/window.el (display-comint-buffer-action): Move to the end of file. X-Git-Tag: emacs-29.0.90~3126 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=368b8fe765b451084529fb8021db2a99abf2f65a;p=emacs.git * lisp/window.el (display-comint-buffer-action): Move to the end of file. Move closer to pop-to-buffer-same-window after its default value display-buffer--same-window-action is defined. --- diff --git a/lisp/window.el b/lisp/window.el index 0d8e1813ab1..582600e1c69 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -7474,14 +7474,6 @@ ALIST. See `display-buffer' for details." :version "24.1" :group 'windows) -(defcustom display-comint-buffer-action display-buffer--same-window-action - "`display-buffer' action for displaying comint buffers." - :type display-buffer--action-custom-type - :risky t - :version "29.1" - :group 'windows - :group 'comint) - (defconst display-buffer-fallback-action '((display-buffer--maybe-same-window ;FIXME: why isn't this redundant? display-buffer-reuse-window @@ -8575,6 +8567,14 @@ 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 + "`display-buffer' action for displaying comint buffers." + :type display-buffer--action-custom-type + :risky t + :version "29.1" + :group 'windows + :group 'comint) + (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.