From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: master 18b680cfd1: Fix bug#52467 by adding a new custom variable 'display-comint-buffer-action' Date: Fri, 31 Dec 2021 11:38:42 -0500 Organization: disorganization Message-ID: References: <164073060906.21430.4993248796177370312@vcs2.savannah.gnu.org> <20211228223009.6D0BAC002EE@vcs2.savannah.gnu.org> <871r1v8nhf.fsf@gnus.org> <83ilv7jqm7.fsf@gnu.org> <6a9cd581-1630-4a95-62c4-419603561072@gmx.at> <3499cedf-b170-3045-873d-d45d2972ae13@gmx.at> Reply-To: sds@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="30880"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) To: emacs-devel@gnu.org Cancel-Lock: sha1:9GEBKMLsjGmnx1KDnR7//CyZ52w= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 31 17:39:42 2021 Return-path: Envelope-to: ged-emacs-devel@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 1n3KwP-0007oJ-7m for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Dec 2021 17:39:41 +0100 Original-Received: from localhost ([::1]:57772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3KwO-0003rH-7x for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Dec 2021 11:39:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3Kvd-00038y-HL for emacs-devel@gnu.org; Fri, 31 Dec 2021 11:38:53 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:50068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3Kvb-0003Ai-UC for emacs-devel@gnu.org; Fri, 31 Dec 2021 11:38:53 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1n3KvY-0006pk-6O for emacs-devel@gnu.org; Fri, 31 Dec 2021 17:38:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 5.0 requ) HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:283754 Archived-At: > * martin rudalics [2021-12-30 11:25:31 +0100]: > >> ... we need a general new display >> buffer action that preferably (1) reuses a window already showing the >> buffer (2) uses the same window and only then (3) uses another window. >> Maybe Juri has an idea. > > The attached diff should illustrate what I mean here. I cannot imagine a situation where I would want to use the same window (i.e., show the shell buffer in the window from which I called shell). IIUC, your patch will use the current window in some circumstances, and, since you want to use `display-buffer-reuseor-same-window' in `shell'-like functions, I will not be able to avoid that. I would much prefer that we use `pop-to-buffer' or `display-buffer' everywhere (deprecating all those `pop-to-buffer-*' functions) and let the _users_ decide how to display _all_ buffers using the standard `display-buffer-alist' functionality. -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2022 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com https://camera.org https://mideasttruth.com https://honestreporting.com To be popular with ladies one has to be smart, handsome & rich. Or to be a cat.