Subject: bug#52688: 29.0.50; term / use display-buffer

From: [email-masked]
Date: Mon, 20 Dec 2021 23:55:22 +0100

The function 'term' use actually 'switch-to-buffer'. I think it's better
to let users decide where the window will appear with
'display-buffer-alist' or 'display-buffer-base-action', and so, to use
'display-buffer'.

>From ae03d8bb6e10027334c2dd6c37bd0e8faf74932c Mon Sep 17 00:00:00 2001
From: Dal Blazej <[email-masked]>
Date: Mon, 20 Dec 2021 23:48:11 +0100
Subject: [PATCH] Use display-buffer with term* lisp/term.el (term):

* list/term.el (term): Let users decides which window 'term' will take.
---
 lisp/term.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/term.el b/lisp/term.el
index 698bef08b2..5374815c69 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -1532,7 +1532,7 @@ commands to use in that buffer.
 					     shell-file-name))))
   (set-buffer (make-term "terminal" program))
   (term-char-mode)
-  (switch-to-buffer "*terminal*"))
+  (display-buffer "*terminal*"))
 
 (defun term-exec (buffer name command startfile switches)
   "Start up a process in buffer for term modes.
-- 
2.30.2