From: Juri Linkov <juri@jurta.org>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: 10113@debbugs.gnu.org
Subject: bug#10113: 24.0.91; Isearch & `M-e'
Date: Mon, 05 Dec 2011 12:49:43 +0200 [thread overview]
Message-ID: <87sjkz70oo.fsf@mail.jurta.org> (raw)
In-Reply-To: <87fwh0yzj7.fsf@gnu.org> ("Johan \=\?iso-8859-1\?Q\?Bockg\=E5rd\=22\?\= \=\?iso-8859-1\?Q\?'s\?\= message of "Sun, 04 Dec 2011 19:14:52 +0100")
>>> I'll try to express myself better: by default (without touching
>>> `isearch-edit-string'), the "case fold search" behavior can be
>>> switched on/off in two ways:
>>> a. Manually: by typing `M-c'.
>>> b. Automatically (only applies if the previous criterion is "case
>>> insensitive"): based on whether the current search string contains any
>>> uppercase letter or not.
>>>
>>> What I say is that currently (as we are shown) the (b) criterion is
>>> not always re-evaluated, and it should.
>>>
>>> BTW, Stefan agrees on this, and I hope you too :-).
>>
>> True, currently after the first typed upper case letter,
>> case-sensitivity is not re-evaluated anymore.
>>
>> This behavior can be changed with the following patch:
>
> Your patch breaks the `M-c' case.
Yes, this patch makes automatic toggling in both directions:
from case-insensitive to case-sensitive and back from case-sensitive
to case-insensitive.
Without this patch the current behavior is automatic toggling in one
direction: from case-insensitive to case-sensitive (on the first
encountered upper case letter). Toggling back from case-sensitive
to case-insensitive is manual with `M-c', and this choice is remembered
with the value `yes' of `isearch-case-fold-search'.
To remember the user's toggle in the reverse direction (from
case-insensitive to case-sensitive) we need to introduce
a new value of `isearch-case-fold-search' (e.g. `no',
but treating it as a nil value would be quite ugly).
So perhaps instead of that, a better solution would be
to re-evaluate case-sensitivity only in two places:
in `isearch-edit-string' and `isearch-del-char'.
next prev parent reply other threads:[~2011-12-05 10:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 22:44 bug#10113: 24.0.91; Isearch & `M-e' Dani Moncayo
2011-11-22 23:21 ` Juri Linkov
2011-11-23 8:02 ` Dani Moncayo
2011-11-23 14:30 ` Stefan Monnier
2011-11-23 14:56 ` Dani Moncayo
2011-11-23 19:54 ` Stefan Monnier
2011-11-23 21:14 ` Dani Moncayo
2011-11-23 20:20 ` Juri Linkov
2011-11-23 20:59 ` Dani Moncayo
2011-11-23 21:23 ` Juri Linkov
2011-12-01 19:41 ` Stefan Monnier
2011-12-04 18:14 ` Johan Bockgård
2011-12-05 10:49 ` Juri Linkov [this message]
2011-12-05 17:19 ` Richard Stallman
2022-03-21 21:52 ` Lars Ingebrigtsen
2022-03-22 8:47 ` Juri Linkov
2022-03-22 14:12 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sjkz70oo.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=10113@debbugs.gnu.org \
--cc=dmoncayo@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).