From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#37514: PATCH: Add setting to allow switching to an already-visible buffer by default Date: Mon, 07 Oct 2019 21:09:57 +0300 Organization: LINKOV.NET Message-ID: <87muec7saq.fsf@mail.linkov.net> References: <16d6a4fecc8.102faf4a4441777.3062189885757431562@aoeu2code.com> <83d0fnmsyw.fsf@gnu.org> <16d6efdc8de.c1802a0599163.8459852292203240965@aoeu2code.com> <6522557b-5e2c-c488-d5d1-001e2ab5c831@gmx.at> <87eezp9o6j.fsf@gnus.org> <34f8685e-ceef-33ca-e36c-58964415da06@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="145367"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , Jefferson Carpenter , 37514 <37514@debbugs.gnu.org> To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 07 21:02: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 1iHYHA-000bhD-0L for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2019 21:02:32 +0200 Original-Received: from localhost ([::1]:49026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHYH8-0007uE-3R for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2019 15:02:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54946) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHYGi-0007tI-Eh for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 15:02:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHYGh-0006GQ-9X for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 15:02:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHYGh-0006GL-5e for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 15:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iHYGh-000250-2f for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 15:02:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Oct 2019 19:02:03 +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.15704748825960 (code B ref 37514); Mon, 07 Oct 2019 19:02:03 +0000 Original-Received: (at 37514) by debbugs.gnu.org; 7 Oct 2019 19:01:22 +0000 Original-Received: from localhost ([127.0.0.1]:49147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHYG2-0001Xa-9G for submit@debbugs.gnu.org; Mon, 07 Oct 2019 15:01:22 -0400 Original-Received: from brown.birch.relay.mailchannels.net ([23.83.209.23]:32935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHYG0-0001UA-2L for 37514@debbugs.gnu.org; Mon, 07 Oct 2019 15:01:21 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5818C6012B8; Mon, 7 Oct 2019 19:01:18 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com (100-96-14-192.trex.outbound.svc.cluster.local [100.96.14.192]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 23B386010EC; Mon, 7 Oct 2019 19:01:17 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.3); Mon, 07 Oct 2019 19:01:18 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Eyes-Imminent: 299fcaa20766642f_1570474877602_2184623591 X-MC-Loop-Signature: 1570474877602:815127125 X-MC-Ingress-Time: 1570474877599 Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTP id AFF9A81C62; Mon, 7 Oct 2019 12:01:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=a5FFBTMHFiYdJougIttVHoSmSxk=; b= kQoFsPrlnutX1lia24FXGIFW5FcfyFOgfhLXmcwW2eiZv2KcQJlfz5t/bwa8FPgU mXeqIn1Us0cSrH1MWryrAPlHQh1xb21Ob3KphNM4nMyKb/zpJw+xJf8g5GG4+rBl xPJ70CGbUz57K+nWBVuZmcWkSSuCfjdsFosGGELIPEo= Original-Received: from mail.jurta.org (m91-129-99-99.cust.tele2.ee [91.129.99.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTPSA id 8040181C65; Mon, 7 Oct 2019 12:00:46 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a42 In-Reply-To: <34f8685e-ceef-33ca-e36c-58964415da06@gmx.at> (martin rudalics's message of "Mon, 7 Oct 2019 11:26:15 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrheejgdduvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdelledrleelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleelrdelledprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgeptd 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:168578 Archived-At: >>> 'switch-to-prev-buffer' and 'switch-to-next-buffer' are the canonical >>> commands for navigating a specific window's buffer list (here these >>> are bound to and because I don't care for word-like >>> movement). >> >> Hey, those are really useful commands that I didn't know about. >> >> Would it make sense to give them a default key binding? > > Maybe Juri has an idea ... Fortunately we already have several default key bindings for this: C-x , C-x , C-x , C-x , But nevertheless customizability of buffers for the C-x b prompt could be improved. The current gratuitous removing visible buffers from C-x b prompt sometimes makes more harm than good. One example case: 0. emacs -Q 1. C-h e -- this displays *Messages* in another window Now try to show the *scratch* buffer in another window, the most convenient way is: 2. C-x 4 b -- and select the current buffer *scratch* but there is no "*scratch*" in completions of C-x 4 b, because completions doesn't include the current buffer, so need to type the whole string "*scratch* RET". I don't know if a new option in the proposed patch solves this problem as well. Or maybe we need a more general DWIM-like customizable preference of buffers for C-x b like dired-dwim-target that is opposite to the default behavior of C-x b - it prefers visible Dired buffers.