From 368b8fe765b451084529fb8021db2a99abf2f65a Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 11 Jan 2022 20:04:30 +0200 Subject: [PATCH] * 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. --- lisp/window.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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. -- 2.39.2