From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Rahul Martim Juliato <rahuljuliato@gmail.com>
Cc: 73545@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>
Subject: bug#73545: 30.0.91; Strange behaviour on switch-to-next-buffer
Date: Fri, 4 Oct 2024 10:07:47 +0200 [thread overview]
Message-ID: <ae1616a1-40ef-4918-8d2e-508c1d8b495f@gmx.at> (raw)
In-Reply-To: <20241003211923.yablw6b4bwdydcxk@debian>
> 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 <left>
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
next prev parent reply other threads:[~2024-10-04 8:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-29 4:25 bug#73545: 30.0.91; Strange behaviour on switch-to-next-buffer Rahul Martim Juliato
2024-09-29 5:39 ` Eli Zaretskii
2024-09-29 12:29 ` Rahul Martim Juliato
2024-09-29 12:51 ` Eli Zaretskii
2024-09-29 14:17 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <d5a2e607-d1c7-4f8d-b7e0-cde2c3d5009b@gmx.at>
2024-10-03 21:19 ` Rahul Martim Juliato
2024-10-04 8:07 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-10-05 10:31 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ae1616a1-40ef-4918-8d2e-508c1d8b495f@gmx.at \
--to=bug-gnu-emacs@gnu.org \
--cc=73545@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=rahuljuliato@gmail.com \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.