From: MBR <mbr@arlsoft.com>
To: help-gnu-emacs@gnu.org
Subject: In Emacs 27.2, list-matching-lines doesn't seem to respect case-fold-search
Date: Thu, 23 Jun 2022 11:00:56 -0400 [thread overview]
Message-ID: <b80b019d-0cf7-6b2f-47a2-9f6dacf8c533@arlsoft.com> (raw)
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>
next reply other threads:[~2022-06-23 15:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-23 15:00 MBR [this message]
2022-06-23 15:59 ` In Emacs 27.2, list-matching-lines doesn't seem to respect case-fold-search 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=b80b019d-0cf7-6b2f-47a2-9f6dacf8c533@arlsoft.com \
--to=mbr@arlsoft.com \
--cc=help-gnu-emacs@gnu.org \
/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.