From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37514: PATCH: Add setting to allow switching to an already-visible buffer by default Date: Thu, 26 Sep 2019 10:12:23 +0300 Message-ID: <83d0fnmsyw.fsf@gnu.org> References: <16d6a4fecc8.102faf4a4441777.3062189885757431562@aoeu2code.com> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="10740"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37514@debbugs.gnu.org To: Jefferson Carpenter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 26 09:16:32 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDO0u-0002Yn-Jf for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2019 09:16:32 +0200 Original-Received: from localhost ([::1]:60005 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDO0r-00050c-Pg for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2019 03:16:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54829) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDNxY-0001Ur-TG for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2019 03:13:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDNxX-0000TM-Rj for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2019 03:13:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33799) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDNxX-0000T9-OO for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2019 03:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iDNxV-00031l-Jo for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2019 03:13:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Sep 2019 07:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37514 X-GNU-PR-Package: emacs Original-Received: via spool by 37514-submit@debbugs.gnu.org id=B37514.156948197411622 (code B ref 37514); Thu, 26 Sep 2019 07:13:01 +0000 Original-Received: (at 37514) by debbugs.gnu.org; 26 Sep 2019 07:12:54 +0000 Original-Received: from localhost ([127.0.0.1]:42620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDNxM-00031O-Tp for submit@debbugs.gnu.org; Thu, 26 Sep 2019 03:12:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDNxK-00031B-KG for 37514@debbugs.gnu.org; Thu, 26 Sep 2019 03:12:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iDNxC-0008VM-8q; Thu, 26 Sep 2019 03:12:42 -0400 Original-Received: from [176.228.60.248] (port=2792 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iDNx7-0005cM-Ul; Thu, 26 Sep 2019 03:12:41 -0400 In-reply-to: <16d6a4fecc8.102faf4a4441777.3062189885757431562@aoeu2code.com> (message from Jefferson Carpenter on Wed, 25 Sep 2019 21:24:45 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:167207 Archived-At: > Date: Wed, 25 Sep 2019 21:24:45 +0000 > From: Jefferson Carpenter > > A not-uncommon workflow of mine is to have more than one window looking at the same buffer in several > different places. Often in one of these windows I switch to some other buffer (perhaps a shell) and then want > to switch directly back to the same place I was just looking at in main buffer. However since my main buffer is > already visible in another window, C-x b (switch-to-buffer) does not default to that buffer, but prefers a buffer > that is not already visible. This customization setting allows users to override that behavior so that > switch-to-buffer does not prefer buffers that are not already visible. Why is it important what "C-x b" offers as the default? You can still type the name of the buffer you want and switch to it. FWIW, I use the workflow you mention from time to time, and I never felt the need for such an option, because its effect will be global on the entire session, and I don't want it everywhere. I'd need to reset such an option when I go back to the other workflows, which would be a nuisance. And if the above is somehow still not satisfactory, you can always write a trivial wrapper around switch-to-buffer, which behaves the way you like. Why do we need to canonicalize this in Emacs? Thanks.