all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: 10113@debbugs.gnu.org
Subject: bug#10113: 24.0.91; Isearch & `M-e'
Date: Wed, 23 Nov 2011 09:30:15 -0500	[thread overview]
Message-ID: <jwv62ibkjwa.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAH8Pv0i=-0mBUx1S7TahYGBbuE_hDaTB6hdbaLuNNQwHdjuSMg@mail.gmail.com> (Dani Moncayo's message of "Wed, 23 Nov 2011 09:02:27 +0100")

> Because, removing the final "R" via minibuffer should be equivalent to
> do it directly by typing DEL (just after the "R").  After all, the
> final situation is the same in both cases:

I understand what you mean, but I don't think it's important to make the
two behave identically: after all, if you want to DEL behavior, you know
where to find it.

> IOW, after editing the search string in the minibuffer, the Isearch
> should be re-started from the beginning, using the new (edited) search
> string.

That wouldn't always result in the same behavior as what DEL does
(think of the case where you do C-s buffe C-s C-s r C-s M-e DEL RET).
Making it really reproduce the behavior of DEL would require a good bit
more care.
And if we do try to make it behave like you want when the result of M-e
is a prefix of the original string, that will make it behave
inconsistently with the other cases when the result is not a prefix.

Nah, not a good idea.

> In this second case, my reasoning is analogous: Changing the final "R"
> with a "r" via minibuffer should be equivalent to doing that directly
> (typing "DEL r" just after the "R").

> IOW, the case-sensitivity of the Isearch, when it's determined
> _automatically_ (not by typing `M-c'), should be revised after editing
> the search string in the minibuffer, to produce a result consistent
> with the principle I said before.

I could agree here, OTOH.  My reasoning is not "because this is similar
to some earlier state" but rather because I think that there's no reason
to decide that entering an upper case letter should change the state
from "auto" to "ignore-case".  Instead it should stay as "auto" (until
the user explicitly choose a case sensitivity via M-c) and hence the
decision on whether to ignore case should be re-evaluated at every step.
I.e. C-s TOTO M-e C-a C-k foo RET should search for "foo" while
ignoring case.


        Stefan





  reply	other threads:[~2011-11-23 14:30 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 [this message]
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
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv62ibkjwa.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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 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.