unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: 8861@debbugs.gnu.org
Subject: bug#8861: 24.0.50; Isearch: Repeating the last search
Date: Tue, 14 Jun 2011 15:52:30 +0200	[thread overview]
Message-ID: <BANLkTi=uQ_3VsTZAKEF0qRu-g3KitZ1EBA@mail.gmail.com> (raw)
In-Reply-To: <19F65DC210FE45AC84732F8E76A374AA@us.oracle.com>

Hi Drew,

> The highlighting could perhaps be turned off completely in this case, since in
> does not (cannot) correctly indicate only the part of the search string that is
> incorrect.  (But turning it off completely gives the opposite message that there
> is no search failure.)

This doesn't make much sense to me.  I expect that, whenever Isearch
is active, the search string will always be highlighted to reflect the
matched and unmatched parts at every moment, regardless of how that
string has been introduced (char by char, by copy&paste, by "C-s C-s",
...)

> The highlighting as it appears is at least consistent with the rest of Isearch
> behavior in this context.  The search string was not sought incrementally; that
> is, no incremental search built it up.  So there is no notion of the increment
> of it that failed.  If you hit `DEL' (Backspace) at that point, it is not just
> the final `e' that is removed, but all of the search string.

I understand you, but I really disagree.  As I've said before, I'd
expect a consistent behavior with independence of the way the search
string has been built.

I don't see the need to have that double treatment.  IMHO, it is both
more consistent and useful to have a single behavior.  In the example
showed in the OP, if the search string (and the cursor position) was
updated as I suggested, I would have had a more complete/precise
information, since part of my search string did actually have matches
after the point, and that is what I wanted to know.


In short: I find my proposed behavior both (a) Simpler (more
consistent) and (b) More informative (useful) that the current one.


(Just my opinion)

-- 
Dani Moncayo





  reply	other threads:[~2011-06-14 13:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14 12:32 bug#8861: 24.0.50; Isearch: Repeating the last search Dani Moncayo
2011-06-14 13:11 ` Drew Adams
2011-06-14 13:52   ` Dani Moncayo [this message]
2011-06-14 15:20     ` Drew Adams
2011-06-14 17:33     ` Juri Linkov
2011-06-14 18:41       ` Dani Moncayo
2011-06-15  3:11         ` Stefan Monnier
2022-01-27 18:02       ` Lars Ingebrigtsen
2022-01-27 18:15         ` Juri Linkov
2022-01-27 18:58           ` 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='BANLkTi=uQ_3VsTZAKEF0qRu-g3KitZ1EBA@mail.gmail.com' \
    --to=dmoncayo@gmail.com \
    --cc=8861@debbugs.gnu.org \
    --cc=drew.adams@oracle.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).