* In Emacs 27.2, list-matching-lines doesn't seem to respect case-fold-search
@ 2022-06-23 15:00 MBR
2022-06-23 15:59 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: MBR @ 2022-06-23 15:00 UTC (permalink / raw)
To: help-gnu-emacs
A year or two ago I replaced my old MacBook with a new one, so I had to
reinstall Emacs. I'd been running Emacs 24.3.1 on the old laptop. The
latest stable version at the time I put the new one into service was
Emacs 27.2, so I installed that on my new computer. Ever since then,
several bits of basic Emacs functionality that I regularly depend on
have changed or stopped working properly, or are now exhibiting
undesired behavior. (E.G. toggle-read-only-mode stopped working, and I
only just discovered that that's because it was renamed to
read-only-mode. I really don't understand why toggle-read-only-mode
couldn't have been retained as an alias for read-only-mode, just like
delete-non-matching-lines was turned into an alias when that function
was renamed to keep-matching-lines. But that's not the question I'm
seeking an answer to with this post.)
The really annoying change that I'm asking about today has to do with
the variable case-fold-search and the function list-matching-lines. In
all previous versions of Emacs, going back to at least the early '90s,
setting case-fold-search to either tor nil affected the case sensitivity
of all the search functionality I regularly use, which includes:
* isearch-forward(bound to C-s),
* isearch-forward-regexp(bound to M-C-s),
* query-replace(bound to M-%),
* query-replace-regexp,
* list-matching-lines,
* delete-matching-lines, and
* delete-non-matching-lines
But now, setting case-fold-searchdoesn't affect the case sensitivity of
list-matching-lines, even though it still affects all the other search
functions I listed above.
Does anyone here have any idea why list-matching-lines no longer does a
case-insensitive search when case-fold-searchis set to t?
Mark Rosenthal
mbr@arlsoft.com <mailto:mbr@arlsoft.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: In Emacs 27.2, list-matching-lines doesn't seem to respect case-fold-search
2022-06-23 15:00 In Emacs 27.2, list-matching-lines doesn't seem to respect case-fold-search MBR
@ 2022-06-23 15:59 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2022-06-23 15:59 UTC (permalink / raw)
To: help-gnu-emacs
> From: MBR <mbr@arlsoft.com>
> Date: Thu, 23 Jun 2022 11:00:56 -0400
>
> But now, setting case-fold-search doesn't affect the case sensitivity of
> list-matching-lines, even though it still affects all the other search
> functions I listed above.
Please report this is a bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-23 15:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-23 15:00 In Emacs 27.2, list-matching-lines doesn't seem to respect case-fold-search MBR
2022-06-23 15:59 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).