From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 00:26:05 2024 Received: (at submit) by debbugs.gnu.org; 29 Sep 2024 04:26:05 +0000 Received: from localhost ([127.0.0.1]:58921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sulVV-0001sR-6q for submit@debbugs.gnu.org; Sun, 29 Sep 2024 00:26:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:43524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sulVS-0001sJ-RI for submit@debbugs.gnu.org; Sun, 29 Sep 2024 00:26:03 -0400 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 1sulUx-0002Ur-AW for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 00:25:31 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sulUv-0002n8-LR for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 00:25:31 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-20b7463dd89so2234735ad.2 for ; Sat, 28 Sep 2024 21:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727583927; x=1728188727; darn=gnu.org; h=content-disposition:mime-version:message-id:subject:to:date:from :from:to:cc:subject:date:message-id:reply-to; bh=itNe5g4vX7BHBlP6ihQIZ42NzZNpfHeRmZpNOutX0MY=; b=l1BboYtcNmtcIKR6GYqBHe3yYhfYeOj2B2JzNcKvYs3Q8mvEcyzscxZEtpULIyy47l MlaRMC1uQmIoVBEiKxfb73Itrsvs44rO7q1kN4Jch0ueDLPbHF7jFx2uvpK7COJjCYvx iHLD1doITkIfYQSPWdKjBeZ1gqVK4DsTifruJj/8Ty8ERYl/jLYjsX+uIyg+ZpBRAUZ1 KJTcTlTejEvuoqTFoMIviwRXktNYjCNAwYZndj/q0csz6sSOWrDxZafzA1YM+MpvvRFk 2p4tWh73qmVUmUamm3vQc/CsCw/rPV143c1G3proRLdqfvjbhXUWruYOKD9jxFF3nubD voAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727583927; x=1728188727; h=content-disposition:mime-version:message-id:subject:to:date:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=itNe5g4vX7BHBlP6ihQIZ42NzZNpfHeRmZpNOutX0MY=; b=uXAqAaiiFPR+QEFQ+gcclmeDVoDwWdB2h75g9PntcXnwKnMrh/X8YE6JdV/W+p2gGW 9YZQqVP8rngQCRGAp90t6KgzruwX6xmeFq9HGkXZchk8+/9BiTaymxTrvnQk0nKipiYz nav7n/o99WSY+JJiqYjDLBVyW3pnx7S8BJQn0ryI/vO3VQUAtvgxvsHfUIa2/Tl7C3UC SQgye8lANSP8/Q+zgUk/RifLdtvYCXo/PoWMEdPYtEX9yrEs3z41OgVNUg+XSlUP+7V2 98b7Onk/aV/v3MbtTijyOnp8C8stCvxKHbT+2zec0PMUwoSlspwooFqrvgG1tGFoxQxe vA2w== X-Gm-Message-State: AOJu0Yyog4hslIhd423J1hDRvWaO6ay4j4sbnJNqkg9wG1Sk6WAhfs1t ZdQW0Ki+oMp5MvpVn04luUv1Gdu2zwcnwpxM+owdR5FrTjqqB5Osi2EpiXS7 X-Google-Smtp-Source: AGHT+IGljcCcujYXx+OBESU3ltwcVgMQ+e6Jffx/f9mWYvHDrX0PVNImWCnrPWy726VjK7aJM7aWUg== X-Received: by 2002:a17:902:d2cf:b0:205:73e5:4d7a with SMTP id d9443c01a7336-20b36cdccd9mr125589045ad.10.1727583927251; Sat, 28 Sep 2024 21:25:27 -0700 (PDT) Received: from debian ([2804:7f0:9182:7899:e9d0:4d27:b321:e053]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b7de1sm3928063b3a.54.2024.09.28.21.25.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 21:25:25 -0700 (PDT) From: Rahul Martim Juliato X-Google-Original-From: Rahul Martim Juliato Date: Sun, 29 Sep 2024 01:25:21 -0300 To: bug-gnu-emacs@gnu.org Subject: 30.0.91; Strange behaviour on switch-to-next-buffer Message-ID: <20240929042521.cgiwkts2ot6ms2tx@debian> X-PGP-Key: https://www.rahuljuliato.com/rahul_pub_key.asc MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mxslp2qb2piylxop" Content-Disposition: inline Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=rahuljuliato@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --mxslp2qb2piylxop Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello there! I just wanted to report something I found a bit strange. I would like some keybindings to jump to the next/previous *non-special* buffer. With these settings: (setq switch-to-prev-buffer-skip-regexp "\*[^*]+\*") (setq switch-to-next-buffer-skip-regexp "\*[^*]+\*") I have the init.el file open, along with the Messages and scratch buffers. When I run (switch-to-next-buffer) or (switch-to-previous-buffer), I get a special buffer. If I run it again, I return to the file, and running it once more takes me to another special buffer. If I open another file, like .bashrc, it works as I initially expected. Now, (switch-to-next-buffer) switches to init.el, and running it again returns me to init.el back and forth, without switching to any more special buffers. It seems that I need to have at least two non-special buffers open. With only one, the switch function probably (I haven't checked) reaches the end of the buffer list without finding a match and returns the last buffer. Should it work this way? If there are no matches, shouldn't it stay on the current buffer and/or display a message like "no next/prev buffer" in the echo area? Thanks! --=20 Rahul Martim Juliato https://www.rahuljuliato.com PGP Fingerprint: 6B68 4353 84E2 2C7E 5A26 B79A C666 FC94 BD7E A483 PGP Public Key : https://www.rahuljuliato.com/rahul_pub_key.asc --mxslp2qb2piylxop Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEa2hDU4TiLH5aJreaxmb8lL1+pIMFAmb41rEACgkQxmb8lL1+ pIPmqQ//YY/vAa/hKZaxMl9n8R2Yd6wg/PMAz5EUvXCoNafheVDxd4d+9xIfQMt3 AcF9oSd9fECmBoqaqwNMDedr5YO6RMo91733V96gfJbB5SJYzyYhRiQaBPgKlkK+ KJbmtJsC7t9WkDvggupPorZCHmiRzbKILmUS7E/T5eBsdZpR+avH/7nM5iXFLyiS OynMd0DuD5zXNWPt++ZaVppkalJ5Y4YRBEUJKXwQM3dxq5y3pRKD9NvqpqvZKyXp rX/3tLUC5CSu7SBglzkTgcfIWX0lmSz8XmIME10OTZQzr2YHydw3eh/apiEyEzWh GLi5s4ie81akXFfgcNMfRxd6WIvFRgiD2sFskNSEEwrXCZLwwp3amnoiAWD8WCEC ikEuh1glmMgXQoilEgMo22iykPYj1Dd6UwcPjm70Rvwq8+4KQvx1m2fTOhnFSDpT MbMUK7TC8J5BXJK0CLvsMwK6iFlBax/WLJHOiYOO2kzgUN5NlTF5UBA0MnPGzP/d ajzigWbDCtgqoKQ0xsTuX2/YYZjE2ADy/pU4n3Ln44Pov2V2f1vBVSwT+ry+muNI ekXXJT/3U7qh0Fy2nBoNpeaaJ7bVeHJhFYfvTH5xsCJcAHZLgETaS+jvcoJBH/A9 5AAdtb5TQ8waPwpfuVPwy+NyueZg1t5zTyBpxyRiRyg/ljZhnAc= =EBCZ -----END PGP SIGNATURE----- --mxslp2qb2piylxop-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 02:24:59 2024 Received: (at 73545) by debbugs.gnu.org; 29 Sep 2024 06:25:00 +0000 Received: from localhost ([127.0.0.1]:34476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sunMZ-0005C6-37 for submit@debbugs.gnu.org; Sun, 29 Sep 2024 02:24:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sunMN-00059r-7y for 73545@debbugs.gnu.org; Sun, 29 Sep 2024 02:24:47 -0400 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 1sumeB-00039g-Sj; Sun, 29 Sep 2024 01:39:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lJOmBNhz9M/PCjbP1cwbYtz/YCetjxo+4GR9rGqrA54=; b=ODhcJ9t7xajr k1uvxB85rJGcx+26Kq4kyi25QdoQYFvhjIjzHVMKcRom6yxiuhYlrC/BTb1ymvcClV5SpXYoxyoU0 UeHgRM0TVvngF3Wl2tPo2Y8dR0ddu1hnwpq9JnNWaLbxf5ALmyWfrQ0ZTw/GujFF9kIV5Ue4eTDUH SLejvYYbuucuDLGJdHp04ABQ1YX3GjA/sitkbhv3WBH8wEh351l9acBSgTMZlS4j4slcW9J0mRiRb DQev2n1mjXdiSsJHY325l3yeLn1tUGjrIxk3WkKTh4KBb+oXenbDV2jS6bosKRa49k7sABAvsYE8j kphw8OnqaBeU12WD15UmVA==; Date: Sun, 29 Sep 2024 08:39:03 +0300 Message-Id: <86y13b3too.fsf@gnu.org> From: Eli Zaretskii To: Rahul Martim Juliato In-Reply-To: <20240929042521.cgiwkts2ot6ms2tx@debian> (message from Rahul Martim Juliato on Sun, 29 Sep 2024 01:25:21 -0300) Subject: Re: bug#73545: 30.0.91; Strange behaviour on switch-to-next-buffer References: <20240929042521.cgiwkts2ot6ms2tx@debian> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73545 Cc: 73545@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Rahul Martim Juliato > Date: Sun, 29 Sep 2024 01:25:21 -0300 > > I just wanted to report something I found a bit strange. > > I would like some keybindings to jump to the next/previous *non-special* > buffer. > > With these settings: > > (setq switch-to-prev-buffer-skip-regexp "\*[^*]+\*") > (setq switch-to-next-buffer-skip-regexp "\*[^*]+\*") > > I have the init.el file open, along with the Messages and scratch > buffers. Did you forget to double the backslashes? From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 08:31:42 2024 Received: (at 73545) by debbugs.gnu.org; 29 Sep 2024 12:31:42 +0000 Received: from localhost ([127.0.0.1]:40217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sut5R-0004me-RC for submit@debbugs.gnu.org; Sun, 29 Sep 2024 08:31:42 -0400 Received: from mail-pf1-f172.google.com ([209.85.210.172]:56656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sut5P-0004lX-6s for 73545@debbugs.gnu.org; Sun, 29 Sep 2024 08:31:39 -0400 Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-71979bf5e7aso2586454b3a.1 for <73545@debbugs.gnu.org>; Sun, 29 Sep 2024 05:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727613002; x=1728217802; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=y40VcJlkcVjRjMHF7j/Qt40q0ebrx8MPrX0cmhQZI38=; b=XDwvLV963GDbcrxEidWlywz4SCCJhjStk0e+jsw0pI2QENDFACi1qdJfNz+MfqDwwa aFh2Ail4TG+o4pJn/LU56nP5IH5gFgYT34Ll0nObyfnhNlVkygbUmQ9XSvvg0ggqbpfX pzcS6CdzxMBzSqW/g2fenNZOXvfB9UnsM6PD0IyfcmAiGRGQ2Lkx8qvmdSLtlLDwdvFu j+WyReTvIAk9SvKea+ALbtfWoevWVmGLPGvNKJA22o1398w+pjcwwWE2/X53GbLpP21O zmbsZ2lMxYyNfOyFwNBV9jPN3sKz8JDj9+QxDa8z9TSZPsH4Skg//sshHeaJD2Gpr+qH 82nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727613002; x=1728217802; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=y40VcJlkcVjRjMHF7j/Qt40q0ebrx8MPrX0cmhQZI38=; b=lP1ipDKByoA8KAb3JN/UZ9eTpiIzEFNN3GeCt0lXQdtkmtwDgEl5QRAsLMpHhHEMgB T3RwyGhZTOaVKi7y8dHkHsZdPBLuApQCpbK9kUZ3vyHLhB8qFRJax1PtNXGbKL6mx4Zc C6c2skPc48EmkFVOzg2ALW+QigBGiU+FtdX4dq3nWj4cXQRex3bTN5CX9m5zPgQABteK xbw003zTBnDAhwWmBe6oBsO6sZf4bk6ri4ZPrOfeBFd/bJelOZTvWa+OJjJMKPzS1lLx ovUVf3h1Ehx2aBqrpD700rdK3hjYYrGn9dPu5SWDM52A78V3SgQ9NwsHOXPr7jbdA57E caTg== X-Gm-Message-State: AOJu0YwxKYB/1eXtWiH9HF3uJ4sfZ+nh6L91kGaBlfiKMkqPK9FVdakg H3T6lUbGtlF3s9Y2TYneL9fnx2RbhkdCVlT+hMQlGsc3Nna70jtM X-Google-Smtp-Source: AGHT+IFRqOcBqxaZOcnQ55C/9D1KlAOkddwAJWbbK0cjgRz8ZEIv+zp8S40twEyCyWiAYsmWYEKWqg== X-Received: by 2002:a05:6a20:d81a:b0:1cf:122b:37d1 with SMTP id adf61e73a8af0-1d4fa6ff534mr11182035637.30.1727613000839; Sun, 29 Sep 2024 05:30:00 -0700 (PDT) Received: from debian ([2804:7f0:9182:7899:e9d0:4d27:b321:e053]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b26539c5asm4470197b3a.210.2024.09.29.05.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Sep 2024 05:30:00 -0700 (PDT) From: Rahul Martim Juliato X-Google-Original-From: Rahul Martim Juliato Date: Sun, 29 Sep 2024 09:29:56 -0300 To: Eli Zaretskii Subject: Re: bug#73545: 30.0.91; Strange behaviour on switch-to-next-buffer Message-ID: <20240929122956.y5hptf3yolu4jmpy@debian> X-PGP-Key: https://www.rahuljuliato.com/rahul_pub_key.asc References: <20240929042521.cgiwkts2ot6ms2tx@debian> <86y13b3too.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="frohrxrjfquu3upn" Content-Disposition: inline In-Reply-To: <86y13b3too.fsf@gnu.org> X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 73545 Cc: 73545@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) --frohrxrjfquu3upn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 29, 2024 at 08:39:03AM +0300, Eli Zaretskii wrote: > > From: Rahul Martim Juliato > > Date: Sun, 29 Sep 2024 01:25:21 -0300 > >=20 > > I just wanted to report something I found a bit strange. > >=20 > > I would like some keybindings to jump to the next/previous *non-special* > > buffer. > >=20 > > With these settings: > >=20 > > (setq switch-to-prev-buffer-skip-regexp "\*[^*]+\*") > > (setq switch-to-next-buffer-skip-regexp "\*[^*]+\*") > >=20 > > I have the init.el file open, along with the Messages and scratch > > buffers. >=20 > Did you forget to double the backslashes? Yep, I forgot it. Strange thing is, it worked without it :/=20 Let me correct it, what I now have is: (setq switch-to-prev-buffer-skip-regexp "\\*[^*]+\\*") And I wrongly added a switch-to-next-buffer-skip-regexp, which does not exist, the switch-to-prev-buffer-skip-regexp variable does it for both prev/next functions. That said, the behaviour is the same as I first described. --=20 Rahul Martim Juliato https://www.rahuljuliato.com PGP Fingerprint: 6B68 4353 84E2 2C7E 5A26 B79A C666 FC94 BD7E A483 PGP Public Key : https://www.rahuljuliato.com/rahul_pub_key.asc --frohrxrjfquu3upn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEa2hDU4TiLH5aJreaxmb8lL1+pIMFAmb5SEQACgkQxmb8lL1+ pINdHw/+PHydGDm3mynJfVQn61yo+xY1jEB4FEWdZ8pxPpJBzo7ok2RpdCek0FJH pbyHMpX7vVMBRcyezapWfHyVYqWD1K8uKusWBqnA7+oxUNXdHD4MqdLiOlIoEyFB ZMMD4GH52TGrYUt2SCez5St4/87Qp9DbcsG0cIaVP+/Ztry+3qmd2ch0RbNY+b3h Fl2z/Ul0lXW076DvroUY4LqhlKKKrQl300DH9IBPUU/zbGF/GhIz9TCSUmD6STqp RmUvpF8ySBCsQx+Q7EC/Rfw1L5/6bM+NcCDrQP2a8fhnKH2sK0QfYzK4zbrFwo49 AT8ymLY89k0WSIuEYq1dtvtRPZfa+n/7MNR5cAwPelz+GaH4VFmnHo/GGxCKkjba m5vU8oVzW2jLtoiSPh0/7MCoo56rJwZF9AIhQ5hQmYb4Zjv6tM16w8zRcUiRVF+x AikYFDR2t0YgbcCF3MLYJTsmW5w9ougBV9kpDvYouwVJCGQcp1q1ztzv1kZEvGEk AH/pElq3SS9sUam3vP3TihjNTW9gpQ+zSavT22XjU0h3hAAxv6IIyUNcj1/avtrl eeIiKtuTwpfz+X+UmCgdoK5R/vyl6eFF6+F/GwpsIYEsFyxthkusl3Nv4MG/EANb +brpo5Lc9OiVZ4r+beqJ0aE/D+rCOPBkNM51YBOdqrzZFpvkvCs= =C1w7 -----END PGP SIGNATURE----- --frohrxrjfquu3upn-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 08:52:00 2024 Received: (at 73545) by debbugs.gnu.org; 29 Sep 2024 12:52:00 +0000 Received: from localhost ([127.0.0.1]:40267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sutP6-0007qJ-13 for submit@debbugs.gnu.org; Sun, 29 Sep 2024 08:52:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sutP4-0007py-8L for 73545@debbugs.gnu.org; Sun, 29 Sep 2024 08:51:58 -0400 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 1sutOT-0002dr-36; Sun, 29 Sep 2024 08:51:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Reti0V+LBmuDdFi7N+OLwSh6JZGF1k8z/NPOQJ+3mXY=; b=luDOOkKqyGeI ZxS5NWLrkXrAvCLNl0MlN03YgXFkK0JoXoxd7rdeVwVeZp4dSxjMQaJCEr1Dr0UUH9vlAb4y0/rEj Un8LXOtFJsvpSXRMa2fu3fd4JY4K4cylIME1B4JX8p6ekBNFGxxFVvogjYv2KW1R+T2B4eTi1Xi+Z D6WjuWzs8Za9AlIJZiJ6livLOROm/5m8R/hsqDANYMVnhZRaqNltRqGL3aZKzxBGhIctIlzYVazLp mj6Qib/gPM31xkyV+UKZeITmXFu+UChZYTAyBSWwTkf+AC6TMePZxV/LaNNoP8pYbVHlVzrC9zDwz fZw0HE7SU35HYtQMaNZysQ==; Date: Sun, 29 Sep 2024 15:51:18 +0300 Message-Id: <86jzeu4o8p.fsf@gnu.org> From: Eli Zaretskii To: Rahul Martim Juliato , martin rudalics In-Reply-To: <20240929122956.y5hptf3yolu4jmpy@debian> (message from Rahul Martim Juliato on Sun, 29 Sep 2024 09:29:56 -0300) Subject: Re: bug#73545: 30.0.91; Strange behaviour on switch-to-next-buffer References: <20240929042521.cgiwkts2ot6ms2tx@debian> <86y13b3too.fsf@gnu.org> <20240929122956.y5hptf3yolu4jmpy@debian> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73545 Cc: 73545@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Rahul Martim Juliato > Date: Sun, 29 Sep 2024 09:29:56 -0300 > Cc: 73545@debbugs.gnu.org > > That said, the behaviour is the same as I first described. If you mean that Emacs switches to a buffer whose name matches switch-to-prev-buffer-skip-regexp when there are no other buffers to show, then this is the intended behavior, I think. Martin, am I right? From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 10:17:56 2024 Received: (at 73545) by debbugs.gnu.org; 29 Sep 2024 14:17:56 +0000 Received: from localhost ([127.0.0.1]:40413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suukF-0000oA-LB for submit@debbugs.gnu.org; Sun, 29 Sep 2024 10:17:55 -0400 Received: from mout.gmx.net ([212.227.15.19]:37495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suukC-0000o4-M7 for 73545@debbugs.gnu.org; Sun, 29 Sep 2024 10:17:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1727619432; x=1728224232; i=rudalics@gmx.at; bh=DT7/sU7qXhXXjBiNU71/SJFAU735IkEtJoqRDdgzFNc=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=lXncvkRf0i/H+SyVdNO7w1ZISEYUkgCZV2tEUiLQSvVthD7zRdBCdgpbRYr/gvUD 3/+m0D9IxiQMu/47WZK6F7HRKjOQkFyYowE3clYVu12ptC/wbiePdrsQqHBXQ8ODz 5ThJeMjYBFjimEGcKpt4PMAnFGxJf3oV1iz+Dl+5GLAxL1BJT69PJn8KHod5SXAil VZfPy4/gQM6Ajl8je1mtrcghWXGKVf7d3GdVwcqBjNdjVkm96il3FNPMAQbiNBHZ1 27ks0yhDSC9qRR7oO7FA4wWAQGx+F+O+QlUE196m2gciegHOmg5qwUShtcuAUjpU8 /W99mLKMlNqx35Ws7w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([213.142.96.222]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M8ygO-1ssBiQ0iQQ-006zyb; Sun, 29 Sep 2024 16:17:12 +0200 Message-ID: <8cfbc823-ad1a-4ad6-90a6-fdf18baac037@gmx.at> Date: Sun, 29 Sep 2024 16:17:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#73545: 30.0.91; Strange behaviour on switch-to-next-buffer To: Eli Zaretskii , Rahul Martim Juliato References: <20240929042521.cgiwkts2ot6ms2tx@debian> <86y13b3too.fsf@gnu.org> <20240929122956.y5hptf3yolu4jmpy@debian> <86jzeu4o8p.fsf@gnu.org> Content-Language: en-US From: martin rudalics In-Reply-To: <86jzeu4o8p.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:jzcaRAPXKmSYfaCmsaUD3PADMuOpDI1h8jg30LPxQXS4qJrPuJ1 wAgR7/Kbd9m5qZc+w7DoKNbPkV6F2bREbmfYxz8nUH2yRgNEqw2ZV2q0Y/cm3x2ieVrCYaK +i7UvdbVRIbeBNcgzTaWCZMJLGzLnOlW42BJPCQzztCmIj1jgOMTXPkTEkvHtnxABt1MLG3 VokwLamXCqRfy4iUDe9/w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:+R978fav09w=;EtlkulK57CLOvkMbab5OKh6VCaA 9SmyWFRfiHALGYYTwPjr4O8Ib+i/CFI/UCAFQ1+vztyFpHk0P7WHMhR56sKcb757DhufFVKLu 3BWOnEDvy5JindAOPq4qtYttn5hmL1bT/DiMFBKli43iH9YWgPQiKvU3Pv/GYPRrGSEoXy/7e LAOhIavbtOtigVTUzWiQafmmRMieCH0gx9CE2U7ycJcu7xT7nRuLBTrS6ChpM1Sx3BEzKm7cL wbL1aHB3iQ5KKNoLmHBkHA93HPBcJuCQYSPwzJn3HJuWQhXPWdEoKWQzJ1qNM9IAoqjPsRo1/ LUnmU50tgTlwmD/itTHOo+lVFdrYgs1GYFh4k3EmPrdCY21zE2idD2d64jr7vdlOrS3mJ3hkq VAwUt2q0Qovl3SyhAk1OFvib5eV2BJSybaBubcjQjsnc8EMThU76TlsTKI8cdWqT9THcaJfDp ys31lgrxKgsDkDHK66vU+vH/67ISVjwyOOz3VS3A9pv0jyZO5vNhKtj7rmDNk9iVtAijb6As5 o2J0cLUsybzmKjI9NySqc19ncMJFyFd7vyqGZ3c0jvPN1dIqzfLmMbSW5xrzfH8pMdEpynH5b 9zJF6e2kskHFtS1VK0565ecaN0I0Q6Y+9P0v3SQ/rRA5CoB9n3bvT06xEYLkM648OyRAwL/Ba aMzMfj3wYS34F4m4IV3OTsQSvLN6fUzn/WPIZ3tbVWzVFH1EI93YWG/Y7DuRTEZfp719wWsfn QvqPyNxBw2Zwu5OcEW5PaUTDbq2suU4WAqVqyTa6vpYs9GJziC6WBN9zRjQS8rSat6KMYl9kP i9JYP8Y0a5I/+UK9FSvslsiQ== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73545 Cc: 73545@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > If you mean that Emacs switches to a buffer whose name matches > switch-to-prev-buffer-skip-regexp when there are no other buffers to > show, then this is the intended behavior, I think. Martin, am I > right? I don't know about 'switch-to-prev-buffer-skip-regexp'. Here I have set 'switch-to-prev-buffer-skip' to the function (defun skip-undisplayed-buffers (_window buffer _bury-or-kill) "Function for `switch-to-prev-buffer-skip'. Skip BUFFER if it has never been displayed before." (zerop (buffer-local-value 'buffer-display-count buffer))) (setq switch-to-prev-buffer-skip 'skip-undisplayed-buffers) Now with emacs -Q evaluate that in *scratch* and do C-x . Gets me "No previous buffer" and *scratch* stays. I think the same should happen if 'switch-to-prev-buffer-skip-regexp' matches *Messages*. What is the value of that variable? martin From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 03 17:20:35 2024 Received: (at 73545) by debbugs.gnu.org; 3 Oct 2024 21:20:35 +0000 Received: from localhost ([127.0.0.1]:33987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swTFT-0004RT-0B for submit@debbugs.gnu.org; Thu, 03 Oct 2024 17:20:35 -0400 Received: from mail-pl1-f176.google.com ([209.85.214.176]:44257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swTFQ-0004RL-R4 for 73545@debbugs.gnu.org; Thu, 03 Oct 2024 17:20:33 -0400 Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-20b6c311f62so13481965ad.0 for <73545@debbugs.gnu.org>; Thu, 03 Oct 2024 14:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727990369; x=1728595169; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=Z+Hp2Wc8ZdnoqMXdfR+0XwzdiTfUNEPQmLRvNNqjLqw=; b=f8nfaOnfD+Fn+Qckk4IpLwzt5NA/WdociMf+0gvgOpmgQfOLOAdLVO46zSZcWkSGXV pYgyv+PqGqdn0eh3q3ejFdnsemLM+KvV2dutLTs9Uu9tXXacEvLCdWhOFqprFWZpBwj6 OdgDOCdS5Iomf+/UtqO5cM5IyYIKybRfQ92Ck4MjEhh8yVVEnRHQ7pqiSHPBs15Iy2xy RKUZ3+uGAGU5YC3Mo9Sja/lqfRqMV/ZJ3ho2kq+WOKxkfblWc2Z6MT0v9t7tMG13mdrr xL8L368LCEnBGiPmlIal4WH7HTp4yZiFWv+s7cpG8diuCc3yiNl7kqaejriyX4d7dapd +YDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727990369; x=1728595169; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Z+Hp2Wc8ZdnoqMXdfR+0XwzdiTfUNEPQmLRvNNqjLqw=; b=Z6hAHFNcfRibbYemWnW40e5DOB+1dvp1Ky7FgjDWvJXabj+HP2lhYH2QHTdQ8o7Ydo Sa8ebtW7KQkH7F4bjpT2323M2evQI7r/htOImmjc8zAvAV2KbwZNr86cQc1IYhGN03XA 4ay1hl99BTFZOJe6hIl6Minsv0rBrCTpWTGiNHomKmSNZV8xV8WH3VbZb3DOEASYpgcZ qq6uqumI+O6pOGhD8HcO/3ws1iEdJVRLMl66ZSbFC5oRguolaHQvfVsludF5ltEFUHKM s82korx2Zy0S6JIQ1N1Z8dhnAqsiNL1FMr+qngPqZmk/5bkGti1RQv93LX7R1ObTXvmi /+lw== X-Forwarded-Encrypted: i=1; AJvYcCUSgyNsJhE8bzl/I7iwqriwfnqigD86d7rTh8fQAfUBbAI0m99VujITjPu0IC7WfXX9h3VbYg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yz6NKbhEzwDWb6FUvqXDn+/Qo66NFH5pBMD/ll8+aiMDAstRC5o F11Z2kjmSfReL2HE9tKaHXni3xoUdG/SyXiD9Q2cPj7sSFkvYruf X-Google-Smtp-Source: AGHT+IHF0jc5lUzj2WVecgBTElcEyY/4QROoWGamCOs4qq3h1a0/yAn2dRs/IWmvDcKwM/zYkc5mbQ== X-Received: by 2002:a17:903:32c4:b0:20b:c258:73af with SMTP id d9443c01a7336-20bff1cd62bmr7082735ad.51.1727990369388; Thu, 03 Oct 2024 14:19:29 -0700 (PDT) Received: from debian ([2804:7f0:9183:8430:461d:9f8f:6ad:6e06]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20bef707154sm12906865ad.280.2024.10.03.14.19.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 14:19:28 -0700 (PDT) From: Rahul Martim Juliato X-Google-Original-From: Rahul Martim Juliato Date: Thu, 3 Oct 2024 18:19:23 -0300 To: martin rudalics Subject: Re: bug#73545: 30.0.91; Strange behaviour on switch-to-next-buffer Message-ID: <20241003211923.yablw6b4bwdydcxk@debian> X-PGP-Key: https://www.rahuljuliato.com/rahul_pub_key.asc 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: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zimhclzppwgtk73s" Content-Disposition: inline In-Reply-To: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73545 Cc: 73545@debbugs.gnu.org, Eli Zaretskii , Rahul Martim Juliato X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --zimhclzppwgtk73s Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 29, 2024 at 05:49:35PM +0200, martin rudalics wrote: > > What > > is the value of that variable? >=20 > Found as: >=20 > (setq switch-to-prev-buffer-skip-regexp "\\*[^*]+\\*") >=20 > And the explanation is this snippet from 'switch-to-prev-buffer': >=20 > (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))) >=20 > 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: >=20 > 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 =E2=80=98switch-to-prev-buffe= r=E2=80=99 and > =E2=80=98switch-to-next-buffer=E2=80=99 (except when there=E2=80=99s= no other buffer to > switch to). >=20 > So if you want to make sure that *Messages* gets always excluded, you > have to specify a function based on that regexp like >=20 > (defun skip-these-buffers (_window buffer _bury-or-kill) > "Function for `switch-to-prev-buffer-skip'." > (string-match "\\*[^*]+\\*" (buffer-name buffer))) >=20 > (setq switch-to-prev-buffer-skip 'skip-these-buffers) >=20 > martin Thanks a lot for the clarification! I just found a bit strange the default behaviour (I guess I am biased by my use case) being this way. The snippet you provided is exactly what I was looking for. I think this is all for this thread :) --=20 Rahul Martim Juliato https://www.rahuljuliato.com PGP Fingerprint: 6B68 4353 84E2 2C7E 5A26 B79A C666 FC94 BD7E A483 PGP Public Key : https://www.rahuljuliato.com/rahul_pub_key.asc --zimhclzppwgtk73s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEa2hDU4TiLH5aJreaxmb8lL1+pIMFAmb/ClsACgkQxmb8lL1+ pINVYQ//TW5ghSdWysuGlNxe40xu4SbBWs7pJwkwbWZF0wM+BYMW6yhsbUYy07Ww LnhJrPfeAWyD1smSXIcNtzeKr9Bmhbxmlv0CbCS+UP/LUy/TxWPx6P8w111wv8HA Dni+LXTiTxHW+rbzjhbPyf9VQcX5mMo/cT7oWmNfpytbYRA4oEZGo5U9SD9JFR+N M0ywcy5QcusXDd8MS4ghBtSIiodxYntFZMF09h+QQhAHMIhszoQXe5+JV6GsfyXN URx24mGHnAmY6SxizLFzrd4d5SEfL3oOIRcG7d5oQ1UE8uLV8VeWLYKQLTJZP4iC LP/bQFPC4ahR5pDaYhUikdydRxL0GVZ/b8+Ry/iSBSHTLhcS2CE1JRu4OJ1EgkZo WQ9D3b/NlxPYgqpG8r07MXzFPwWwF5nUCdPKe9kextQFg9H4G+lpJKA8otspGytj vZxzUKRnkvE7JHOyG2+neG3L+FoU1s1aO0PLPgNcIZ3Fo6w4I+MyV9IFEhzIuC2m WjbmxM0zfzR//mw0J5BZF21UWQu+rWREgiiIOHHOfxfntMUs/Mfv8+5fZfsvYk3S sxIbH/wWVrddWi/Q2gVO46Krb1rCI8m3Px/pzt9YbmPjs/onQpGTKJhsr2XTeOEY RRJlQJd1OQEaIWnCDr5Fmd4EGY+crKfXbHQ6lCA3CnoN4eu0uIc= =7qUJ -----END PGP SIGNATURE----- --zimhclzppwgtk73s-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 04 04:08:08 2024 Received: (at 73545) by debbugs.gnu.org; 4 Oct 2024 08:08:08 +0000 Received: from localhost ([127.0.0.1]:34335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swdM8-0005O0-5f for submit@debbugs.gnu.org; Fri, 04 Oct 2024 04:08:08 -0400 Received: from mout.gmx.net ([212.227.15.15]:35857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swdM6-0005NR-2w for 73545@debbugs.gnu.org; Fri, 04 Oct 2024 04:08:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1728029275; x=1728634075; i=rudalics@gmx.at; bh=v7VqwFV7LBlEiMnTKrCjjhnzK2zu097GVeHcNkvg7Jw=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=enLhZHpPGD4DkUobpvuo86Q7hDbdh7KLV2LLYWlY9fynkTjcVwMC94RewVht96cW zG+ax1i8fRH2fMcHNCb0YfujweWE2oe2lJuZk0q6uMzUjqR0BmoJfNI/Be4Olf7ab qsbvLss2fNUKzIVq6czd/RJNSXLg+Q6ffOp+xr+2f55iUEEZldA0dPuN/VdI+92dl kf4RwRNIueixPHQ6evhhRe3c0EJCwmnHanmJzAiqgnhN40O/MLHLQtOAtr4uRfP4A 0p1w1tXL7cn4QoXf44u/eFwfsK4wk+fH43ddjibUvY0Bup1upwyRpdVbn0slh1jko zs1kFL6uSioe/B6ycA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([46.125.249.89]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M7sHo-1srhOr2tkY-000At3; Fri, 04 Oct 2024 10:07:55 +0200 Message-ID: Date: Fri, 4 Oct 2024 10:07:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#73545: 30.0.91; Strange behaviour on switch-to-next-buffer To: Rahul Martim Juliato References: <20240929042521.cgiwkts2ot6ms2tx@debian> <86y13b3too.fsf@gnu.org> <20240929122956.y5hptf3yolu4jmpy@debian> <86jzeu4o8p.fsf@gnu.org> <8cfbc823-ad1a-4ad6-90a6-fdf18baac037@gmx.at> <20241003211923.yablw6b4bwdydcxk@debian> Content-Language: en-US From: martin rudalics In-Reply-To: <20241003211923.yablw6b4bwdydcxk@debian> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:69UtkVdHj0cfM5KMBycWSqfC4Dfa1ClyB06T0in/5wzCUrBWlCc gBoTtWWadpqtL12CifW8X1xgl8kTlJjhUVkAkqDSa/0k0V+e/qU4n5ktS1kQfEJnqz/YIgc k+BgFqjQ+sAAe0ZYkY1l+RN9P4omTSMGvCm3vUac3Ix6HDa3s5QRz1APfWLQxhUXSVBcH9d 7XOoiexupZq3/wLuZ0bTA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:KDqVXAX4ZmA=;za9cvxuXQG4KGQzGBtofEHx1hpI iOGBqowXGvrvI1drWzBOKiWjPxeVswoCSHzhMp7yn1Ss0Bqhi1UOjAM0mnefmVAEwj3VhH7Sg NHUFPQu3daHnPrKadLbLWUbPvVkauo7eEHsJ2C6Fs2V+fcn7Bn/LatqKwwCyYgFMEk5RxNoRC AT6KvXBN476N5HNRnqEpd/PxKQNF7MSJ+ISNCpOgZXi5CXf7YjBVqXs+mjrK6aTSYij/y+Wsn HZhNIe0KTV+gOmxcfsCND7YUrJ0sYp2miL38M/Yjwg8O4WCjKFV8z1dIglucCCsi7H0fkHKAn RaN7HtPMqOPtzgDLdxqcLW/vS+IhUb1oB8juAG2VpwqVtgBhKrIWfxA476DgqvVyl12DzCQM2 jPxkUvm/sCnsweJ3t5CoAeYhRaNLSXba7XsIIkhE9d279Z2pr8UfQGUlgRqTTA8+acZT3p9VK l0KZFzfyqUQjEn8xAHTrztn+9Hye5wf3iIu6/UrPPR5qTc0ojaN/xd5rA94Mxgt1PuRh3/pWU 1m21gUxmhfDDkhRZN7NfOj/urr1+0Jqb3HG0cfIpyM4OpvuA1874RpQnaUOrc5II5F8/Qfvfh VxScuylIpMJJfumkb6C+6Lly7Ehm9f5NYuf14NA+bCj8R0gGkBY2pwi/x9kUtEGqosYRtF0ya h7clpwgXPCC3dqmq9q7PTzO1AYHJsLvGIqrzbxxMsGdjY1LxKvKM8/6lul565jqmP02YXKsIG tqmgNDb4HX/ikUx/Izd7fGg+mc0FnGrSOhZjTU/ub57a97QGmm/NDoxYl3q6HF3VQkk2Hdyhc 71lrOaAvhUmGR0PCpL+5taJxeBziQZySievLwFdYitLLc= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 73545 Cc: 73545@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > I just found a bit strange the default behaviour (I guess I am biased by > my use case) being this way. Historical reasons. 'switch-to-prev-buffer-skip' appeared in Emacs 27.1 and at that time I decided that if and only if it is a function it will make sure that the buffer is never switched to. More or less to avoid that peoples shoot themselves in their feet. 'switch-to-prev-buffer-skip-regexp' was added in Emacs 29.1 introducing the following design error (which I wouldn't propose to exploit). With emacs -Q do: (setq switch-to-prev-buffer-skip-regexp "\\*[^*]+\\*") (setq switch-to-prev-buffer-skip 'ignore) C-x The fact that 'switch-to-prev-buffer-skip' was set to a function that does nothing makes 'switch-to-prev-buffer-skip-regexp' miraculously work when there are no other buffers left ... 'switch-to-prev-buffer-skip-regexp' should never have been added in the first place. Rather 'switch-to-prev-buffer-skip' should have been given an optional regexp value. But now it's too late to change that. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 05 06:32:14 2024 Received: (at 73545-done) by debbugs.gnu.org; 5 Oct 2024 10:32:14 +0000 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 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 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==; Date: Sat, 05 Oct 2024 13:31:48 +0300 Message-Id: <86jzemx2ln.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-Reply-To: (message from martin rudalics on Sun, 29 Sep 2024 17:49:35 +0200) Subject: Re: bug#73545: 30.0.91; Strange behaviour on switch-to-next-buffer 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 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73545-done Cc: 73545-done@debbugs.gnu.org, rahuljuliato@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From unknown Tue Jun 17 01:47:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 02 Nov 2024 11:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator