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.bugs Subject: bug#52467: 29.0.50; Use pop-to-buffer for shell Date: Sun, 26 Dec 2021 12:00:40 -0500 Message-ID: <87v8zb2tdz.fsf@gnu.org> References: <87sfuorb39.fsf@gnus.org> <87wnjzoa09.fsf@gnus.org> <23f5b9c2-2688-40e3-5b32-94487d33e2ee@yandex.ru> <87h7ay4bhg.fsf@gnus.org> <87a6gnzjhm.fsf@gnus.org> 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="34863"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Kangas , Theodor Thornhill , 52467@debbugs.gnu.org, Dmitry Gutov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 26 18:04:40 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 1n1Wwq-0008sk-CB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Dec 2021 18:04:40 +0100 Original-Received: from localhost ([::1]:56952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1Wwo-0007Ti-Gg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Dec 2021 12:04:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1WtK-0004GU-3o for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2021 12:01:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1WtJ-000238-Ns for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2021 12:01:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1WtJ-0003Ts-Ix for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2021 12:01:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Dec 2021 17:01: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.164053805713363 (code B ref 52467); Sun, 26 Dec 2021 17:01:01 +0000 Original-Received: (at 52467) by debbugs.gnu.org; 26 Dec 2021 17:00:57 +0000 Original-Received: from localhost ([127.0.0.1]:41409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1Wt8-0003TH-7M for submit@debbugs.gnu.org; Sun, 26 Dec 2021 12:00:57 -0500 Original-Received: from mail-qt1-f169.google.com ([209.85.160.169]:41733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1Wt5-0003T1-Ng for 52467@debbugs.gnu.org; Sun, 26 Dec 2021 12:00:48 -0500 Original-Received: by mail-qt1-f169.google.com with SMTP id v22so11754480qtx.8 for <52467@debbugs.gnu.org>; Sun, 26 Dec 2021 09:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:in-reply-to:references:user-agent :return-receipt-to:reply-to:date:message-id:mime-version; bh=zEhIHwOcuw/ZW09giKu0Mrz+ZtEmPewRiz86TGUJRw4=; b=CBTE3Y8U4xWXaO7TVpj//8Aj6VcldRbrFsG1ocMuTQUW2eAmDHcPPqfeqtLnedWGGH 0fL/XRj1bPxDATAgvMfwSDXLjzmcAWVfj25dBEugvuXDwVHNo5vfeeKbT4YTgYu9sI3f WekNYIq78fIurBstLLWXj5+Gpp3n5Jxmm1qfYepusKfEaaVjw6y1P09Zvn8w8jd7OWSp BZ24x3SYjCyjJdUDNOyzSiAYJSX5AGKptizGKd7QvZRKoY48vP78Fhm1eG+jzpmD57Sx Ec9A0gFMxxSNZGbFtU8r4vf9aPc6yzj3axIW2mTKGFpWFizZyBlG64IRRk9nLhC2jnf8 MSeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :user-agent:return-receipt-to:reply-to:date:message-id:mime-version; bh=zEhIHwOcuw/ZW09giKu0Mrz+ZtEmPewRiz86TGUJRw4=; b=kAQ+f6TDCDy4Q30c4nw7ekiV4xg6PAa//CAZ3ZqhnOCyFQlLr59ppCc/xe2t1mRqQb TXsia5Tw+38FQLxUSChX1D/a5155iSaBZqGxbo2+srB1bHVQ1Nfrb3loHqzPQUT/KaxQ dHgaWLJWefKTZqDlLHghaiH23TvkV7OP1ny/F6ET00HDORotybAl4a/oojP1jbkdkUHI 48PbAbPrgL3bUXyaMWVhVMSId+NpkW47ABClULQB5PoL9UH1cV0qp4OZISolabF2FLTz kbDjGZHBN8oZ19oqpd5GKmU42RXNfx9nGvty/0bjx14eeDcYjM356qJr5zD8ToPQRkD1 wtzQ== X-Gm-Message-State: AOAM533TruQ1nL2df4asFvDMhNSJR0QRANkdFaos27z/EQwZPwaCPfTC 3xtwoR+CJcALQI2OuGMXTw== X-Google-Smtp-Source: ABdhPJzdziDZtPg06eBXYRzGJ73SC4NMgXPOtKykFbR3Diy5Z7o2mPwG2eZuQZI4le6NEUj9rcrHcw== X-Received: by 2002:a05:622a:64c:: with SMTP id a12mr12071638qtb.312.1640538042076; Sun, 26 Dec 2021 09:00:42 -0800 (PST) Original-Received: from darter (pool-108-30-23-113.nycmny.fios.verizon.net. [108.30.23.113]) by smtp.gmail.com with ESMTPSA id k23sm10657222qtm.49.2021.12.26.09.00.40 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Dec 2021 09:00:41 -0800 (PST) In-Reply-To: <87a6gnzjhm.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 26 Dec 2021 12:35:49 +0100") X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. 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:223156 Archived-At: > * Lars Ingebrigtsen [2021-12-26 12:35:49 +0100]: > > Dmitry Gutov writes: > >> 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. 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. 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. Thank you. -- Sam Steingold (http://sds.podval.org/) on Pop 21.10 (impish) X 11.0.12013000 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com https://camera.org https://iris.org.il https://www.memritv.org MS Windows vs IBM OS/2: Why marketing matters more than technology...