GNU bug report logs - #65347
29.1; Underscore in query replace prevents case-matching

Previous Next

Package: emacs;

Reported by: Spencer Baugh <sbaugh <at> janestreet.com>

Date: Wed, 16 Aug 2023 21:28:02 UTC

Severity: normal

Found in version 29.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Spencer Baugh <sbaugh <at> janestreet.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 65347 <at> debbugs.gnu.org
Subject: bug#65347: 29.1; Underscore in query replace prevents case-matching
Date: Fri, 18 Aug 2023 15:20:21 -0400
>> We look at this from different angles.  As an Emacs maintainer, I
>> would like to see every place that deals with words to honor
>> find-word-boundary-function-table, instead of inventing its own ideas
>> about where a word begins and where it ends.

Yes, that could be good in any case.  It would happen to fix the example
problem, tho only in the specific case where the user has enabled
`superword-mode`.

In my experience, there are enough slightly different circumstances that
it's going to be hard to cover all cases automatically.

Personally (as a user) the functionality I'd prefer is the following:
When the matched string does not have the same capitalization as the search
pattern, I'd like Emacs to guess what should be the capitalization of
the replacement and ask me to confirm its guess.

This solution would not satisfy the "automatically" part, but it would
succeed at the "cover all cases" part, only at the small cost of an
extra RET.


        Stefan





This bug report was last modified 1 year and 277 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.