summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2022-01-11 20:04:30 +0200
committerJuri Linkov <juri@linkov.net>2022-01-11 20:04:30 +0200
commit368b8fe765b451084529fb8021db2a99abf2f65a (patch)
treedc6c640084c8d25ac7d7b99d835178ff188f53f1 /lisp
parentc8ea3f09e09b18b909f5a6c5434185b8dbf2fa63 (diff)
downloademacs-368b8fe765b451084529fb8021db2a99abf2f65a.tar.gz
emacs-368b8fe765b451084529fb8021db2a99abf2f65a.tar.bz2
emacs-368b8fe765b451084529fb8021db2a99abf2f65a.zip
* 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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/window.el16
1 files 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.