From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#52467: 29.0.50; Use pop-to-buffer for shell Date: Sun, 26 Dec 2021 12:35:49 +0100 Message-ID: <87a6gnzjhm.fsf@gnus.org> References: <87sfuorb39.fsf@gnus.org> <87wnjzoa09.fsf@gnus.org> <23f5b9c2-2688-40e3-5b32-94487d33e2ee@yandex.ru> <87h7ay4bhg.fsf@gnus.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="21890"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Kangas , sds@gnu.org, Theodor Thornhill , 52467@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 26 12:37:13 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 1n1Rpw-0005TK-Hl for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Dec 2021 12:37:12 +0100 Original-Received: from localhost ([::1]:32848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1Rpv-0005vx-DA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Dec 2021 06:37:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1Rpm-0005vo-9O for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2021 06:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56986) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1Rpm-00072c-05 for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2021 06:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1Rpl-0006Jk-Uc for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2021 06:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Dec 2021 11:37:01 +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.164051856224201 (code B ref 52467); Sun, 26 Dec 2021 11:37:01 +0000 Original-Received: (at 52467) by debbugs.gnu.org; 26 Dec 2021 11:36:02 +0000 Original-Received: from localhost ([127.0.0.1]:40299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1Roo-0006IF-Bt for submit@debbugs.gnu.org; Sun, 26 Dec 2021 06:36:02 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:59128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1Rom-0006Hi-8p for 52467@debbugs.gnu.org; Sun, 26 Dec 2021 06:36:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=84AZKtQPPq9SsBNcVvYbeSkikhJSciW7LEYXIhxmH6U=; b=VXYFs7dHjxyfgISIyn7MF9Ta5q O31qokuxC0pz/r3h/Z8T20xkYl3fH58G1nGQ6L0U3/1aadq0WvB5Lh44qVLjjP+PAr3dhiDVwsQBJ NU7OYPM3uPq7KK52qZAfgLxR1vuWtK8ezavF+wWlNacZDYELSxiK8kfXvSrC+IeYSn/g=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n1Roc-0004Sh-Sx; Sun, 26 Dec 2021 12:35:53 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEVWTFCpYWg3MTT/ //+VP7zNAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UMGgsaLhCnYp4AAAEqSURBVCjPbdJBasMwEAXQ iUjAaNWUeO92FeYUpdB9GuJNj5BTiNBFyLInmGY1/FP2j+SkLlQGW88jyaORRR4k+1YyRFTYYArg LJjgwCU3FLWMM4jFKz5z+cC31kgySdJJREThEitMwF+khqWoYpFwgj8TOfsT8AU/clhOELhancNF BW2ORQqi18uVKMRqHMd9wIk+cBs2/gufg4uv79A5cpkBJfW/cJlgWyL3h4rSRb6BHcEkr9g08POW UDb9QR4jwiqXzWICS1GW7298EkNgHS9LmjYcrWROuTXTVj6LmzNn4OjDlrY4PKgPHbupAieeCSw3 xHZhLeLclGip8JqSWq2ysdpqPEslolip1DpHJDFFXoHS0FXIas+SvNTfw9sp3LHa1W4DW6wlP+Oo wtnMVjPkAAAAQnRFWHRjb21tZW50AENSRUFUT1I6IGdkLWpwZWcgdjEuMCAodXNpbmcgSUpHIEpQ RUcgdjgwKSwgcXVhbGl0eSA9IDEwMAqhrIJaAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEyLTI2 VDExOjI2OjQ2KzAwOjAwf7sMEwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMi0yNlQxMToyNjo0 NiswMDowMA7mtK8AAAAASUVORK5CYII= X-Now-Playing: Anne Clark's _R.V.S.P._: "The Last Emotion" In-Reply-To: (Dmitry Gutov's message of "Sun, 26 Dec 2021 02:47:59 +0200") 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:223140 Archived-At: Dmitry Gutov writes: > Or to approach the question from another angle, the difference between > that behavior and the current one is that you can create two windows > that show the same buffer. Do we want that to happen with 'M-x shell' > without prefix? That's how it works today, and it's a simple and predictable way to act for this command. > Overall, pop-to-buffer seems more common than pop-to-buffer-same-window. Well, I think it depends on the command, really. If it's a command that's usually used to pop up a new secondary window while you're still expected to keep on working in the current buffer later, then we pop, otherwise we switch. And `M-x shell' is in the "switch" category -- it's a "new action", not "something I'm doing for a bit before going back to this buffer". > The downside of using it, though, is that the current window is > unlikely to be used even if the buffer is not displayed anywhere else > (the algorithm chooses something like LRU window). Maybe we should > choose a mode of operation where it does use the current window, > unless the buffer is displayed somewhere else. > > Something like > > (pop-to-buffer buffer > '((display-buffer-reuse-window > display-buffer-same-window) > (inhibit-same-window . nil))) I think that's more unpredictable. What happens currently is very regular. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no