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#19070: 25.0.50; Provide a user option that filters the buffer list for `switch-to-next-buffer' Date: Thu, 12 May 2022 03:35:32 +0200 Message-ID: <87r14z353v.fsf@gnus.org> References: <6ccbf136-5fc1-4b95-ab58-67ad51619fe8@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8638"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 19070@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 12 03:36:12 2022 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 1noxkQ-00022x-FV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 03:36:10 +0200 Original-Received: from localhost ([::1]:55046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noxkP-0005Po-FC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 21:36:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noxkI-0005Mx-Df for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 21:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44997) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noxkH-00055e-Ut for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 21:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noxkH-0004zn-PB for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 21:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 May 2022 01:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19070 X-GNU-PR-Package: emacs Original-Received: via spool by 19070-submit@debbugs.gnu.org id=B19070.165231934619143 (code B ref 19070); Thu, 12 May 2022 01:36:01 +0000 Original-Received: (at 19070) by debbugs.gnu.org; 12 May 2022 01:35:46 +0000 Original-Received: from localhost ([127.0.0.1]:38889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noxk1-0004yf-Sx for submit@debbugs.gnu.org; Wed, 11 May 2022 21:35:46 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:47580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noxk0-0004yH-Ny for 19070@debbugs.gnu.org; Wed, 11 May 2022 21:35:45 -0400 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=L2Iqa4WdrbNd9HNugnZa5c1OGF8bPG436YVHubBHqzM=; b=TlM5aYqJ/GC+Qyn3SI+xc/5j/c ODRg3pFC4eVRqBwbzVnl6Bow1ydUTf4VG9+RJgh4dDdNsgD2PMwnu4p2LtbyjHhlElfDbn45rEc9Z Hn7AXVGQ+xPHqflrXR5lLFe1gkU4OItKKkWamFAJTEJgbhvpXQ0CRC2nR910n5T513A8=; 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 1noxjq-0006en-08; Thu, 12 May 2022 03:35:36 +0200 X-Now-Playing: Section 25's _The Key of Dreams_: "Visitation" In-Reply-To: <6ccbf136-5fc1-4b95-ab58-67ad51619fe8@default> (Drew Adams's message of "Sun, 16 Nov 2014 08:38:32 -0800 (PST)") 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:231997 Archived-At: Drew Adams writes: > Provide a user option with a regexp value that filters the buffers (by > name) that are cycled through by `next-buffer' and `previous-buffer'. > Buffer names matching the regexp would be excluded. Emacs 27.1 added switch-to-prev-buffer-skip, but didn't include a simple regexp form, and I agree that such a simple form is usually what people want. (I know you can achieve some of this stuff by making windows dedicated, too, but that's another complication.) > Or the option could be a cons, with one part determining whether the > regexp is used to exclude or include and the other part being the > regexp. I see the charm, but for complex setups like that, I think using dedicated windows would be the thing. So I've now added switch-to-prev-buffer-skip-regexp to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no