From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#52467: 29.0.50; Use pop-to-buffer for shell Date: Mon, 27 Dec 2021 10:32:13 +0100 Message-ID: <87zgomieaq.fsf@miha-pc> References: <87sfuorb39.fsf@gnus.org> <87wnjzoa09.fsf@gnus.org> <23f5b9c2-2688-40e3-5b32-94487d33e2ee@yandex.ru> <87h7ay4bhg.fsf@gnus.org> <87a6gnzjhm.fsf@gnus.org> <87v8zb2tdz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21440"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , Theodor Thornhill , 52467@debbugs.gnu.org, Dmitry Gutov To: sds@gnu.org, Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 27 10:27:21 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n1mHp-0005S7-ES for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Dec 2021 10:27:21 +0100 Original-Received: from localhost ([::1]:55434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1mHn-0001Ri-SY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Dec 2021 04:27:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1mHW-0001RU-ND for bug-gnu-emacs@gnu.org; Mon, 27 Dec 2021 04:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1mHW-0004mu-EE for bug-gnu-emacs@gnu.org; Mon, 27 Dec 2021 04:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1mHW-0005Wn-3V for bug-gnu-emacs@gnu.org; Mon, 27 Dec 2021 04:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Dec 2021 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52467 X-GNU-PR-Package: emacs Original-Received: via spool by 52467-submit@debbugs.gnu.org id=B52467.164059719721209 (code B ref 52467); Mon, 27 Dec 2021 09:27:02 +0000 Original-Received: (at 52467) by debbugs.gnu.org; 27 Dec 2021 09:26:37 +0000 Original-Received: from localhost ([127.0.0.1]:42163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1mH7-0005W1-97 for submit@debbugs.gnu.org; Mon, 27 Dec 2021 04:26:37 -0500 Original-Received: from kamnitnik.top ([209.250.245.214]:59690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1mH3-0005Vq-3o for 52467@debbugs.gnu.org; Mon, 27 Dec 2021 04:26:35 -0500 Original-Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id EC1C29CAE6; Mon, 27 Dec 2021 09:26:31 +0000 (UTC) In-Reply-To: <87v8zb2tdz.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223178 Archived-At: Sam Steingold writes: > I think predictability if not the only or even main concern. > > The current behavior is _not_ user-customizable, which is a major > problem for me. I hardly ever want the same buffer displayed _twice_, > especially the *shell* buffer. > > Whatever default behavior you want (and for me it's definitely > reuse-window) should be implemented using a new user variable > `shell-display-buffer-action' that would be used by `shell', > `project-shell', `eshell', &c. It is user configurable through 'display-buffer-alist, see my other reply to this thread. To prevent creation of duplicate windows showing the same shell buffer, do (add-to-list 'display-buffer-alist '("\\`\\*shell\\*" display-buffer-reuse-window)) For old behaviour of popping up a new shell window, do (add-to-list 'display-buffer-alist '("\\`\\*shell\\*" (display-buffer-reuse-window display-buffer-pop-up-window))) The same can be done for eshell, terminal and most other buffers displayed with 'display-buffer-same-window'. > This is not a major change, so I propose that we close this bug by > adding `shell-display-buffer-action' (I can do that), and continue the > discussion of the best default on emacs-devel. I'm personally against adding such an user option. If it were added for M-x shell, eshell and term, the same reasoning could be used to add it for M-x run-scheme, dired, dunnet and all the other places using 'pop-to-buffer-same-window'. This would add up to a lot of variables for little benefit since we can already customize window pop-up behaviour of all these commands with 'display-buffer-alist'. > Thank you.