From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73545: 30.0.91; Strange behaviour on switch-to-next-buffer Date: Sat, 05 Oct 2024 13:31:48 +0300 Message-ID: <86jzemx2ln.fsf@gnu.org> References: <20240929042521.cgiwkts2ot6ms2tx@debian> <86y13b3too.fsf@gnu.org> <20240929122956.y5hptf3yolu4jmpy@debian> <86jzeu4o8p.fsf@gnu.org> <8cfbc823-ad1a-4ad6-90a6-fdf18baac037@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6291"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73545-done@debbugs.gnu.org, rahuljuliato@gmail.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 05 12:33:10 2024 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 1sx261-0001NO-Hy for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Oct 2024 12:33:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sx25s-0001VO-1c; Sat, 05 Oct 2024 06:33:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sx25r-0001VE-CZ for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2024 06:32:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sx25r-0003Ov-4Q for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2024 06:32:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=P7kJflxWCr/CwiR5I+7B3AFwRSd+dTly9HTagZ7TvrY=; b=GPrs0zeatRnvglRdOP2kYcwCzBIVGq5axGdPtpTrekaXwmSlUgwLRTf1AXZhDtv30Kt0GYambdcLK5IT4V+cm5KEfcKTPdPMlivxC6xhJlb2H5erX5q5KG7hEmNH6cbsEEef1TUF5uFI0l6irTSmaZ98IR2dR5PZlPvHkQlWScIEaH7GqJ3/2xwJPK4Sr/aVAn6ZfRc3wE7AP9c8EPa6yLDNfqOsf7ttfXU44rSPVr5843QcXqWaA8FJcOG3C3CD6MJx/8ZX7wGyODOHkvUR0zV0vmY317FRzDhI1JivB5H+0oDmCcwRfNH5TCUqoSIwiFReqqKv0FGH2mBdXzXfKA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sx25u-0006GK-FE for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2024 06:33:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Oct 2024 10:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 73545 X-GNU-PR-Package: emacs Mail-Followup-To: 73545@debbugs.gnu.org, eliz@gnu.org, rahuljuliato@gmail.com Original-Received: via spool by 73545-done@debbugs.gnu.org id=D73545.172812433423999 (code D ref 73545); Sat, 05 Oct 2024 10:33:02 +0000 Original-Received: (at 73545-done) by debbugs.gnu.org; 5 Oct 2024 10:32:14 +0000 Original-Received: from localhost ([127.0.0.1]:37344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx257-0006F1-Ky for submit@debbugs.gnu.org; Sat, 05 Oct 2024 06:32:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx255-0006Em-Nd for 73545-done@debbugs.gnu.org; Sat, 05 Oct 2024 06:32:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sx24p-0003LP-2q; Sat, 05 Oct 2024 06:32:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=P7kJflxWCr/CwiR5I+7B3AFwRSd+dTly9HTagZ7TvrY=; b=JF/4+SGiCEcG7lGjY9nF 9msuh/PhZrkNgXd1ilpPTN+C+NTT3grMn7N9CmCG+uFth6kNRfWLW5zsUiOS96Uqm893qMfgS1Ovh KxBS28E7fesUDrVC0vSzrNaT/pq2liccyorctUeu8KyEne8ZtgbjqPVebiroHeIh2CZKV3pv4gQAJ HMQZLlXsFmDGxj9O3cy5gVrvOEZd1Z9QYNpkJWoK/3+InMWFPuMLcrvZWOdFj2whKud7SMLPMnQs6 Y6NjndBsCTbZe+glUn2h7lleQKpPIlSwoQu8yZgtrQeX01G6oDCpQGDy7+LhYXaUgEjMkahqpjMEv a1L+KMIUX9cVqg==; In-Reply-To: (message from martin rudalics on Sun, 29 Sep 2024 17:49:35 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293015 Archived-At: > Date: Sun, 29 Sep 2024 17:49:35 +0200 > From: martin rudalics > Cc: 73545@debbugs.gnu.org > > > What > > is the value of that variable? > > Found as: > > (setq switch-to-prev-buffer-skip-regexp "\\*[^*]+\\*") > > And the explanation is this snippet from 'switch-to-prev-buffer': > > (when (and skipped (not (functionp switch-to-prev-buffer-skip))) > ;; Show first skipped buffer, unless skip was a function. > (setq new-buffer skipped) > (set-window-buffer-start-and-point window new-buffer))) > > That is, if the regexp excludes a specific buffer but > 'switch-to-prev-buffer' didn't find another suitable buffer, it switches > to the first excluded buffer. The Elisp manual is clear about this: > > This user option should be either a regular expression or a list of > regular expressions. Buffers whose names match one of those > regular expressions will be ignored by ‘switch-to-prev-buffer’ and > ‘switch-to-next-buffer’ (except when there’s no other buffer to > switch to). Thanks, I've now added this caveat to the variable's doc string, and I'm therefore closing this bug.