[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Isearch: always try to find longest successful prefix [was: move to
From: |
Juri Linkov |
Subject: |
Re: Isearch: always try to find longest successful prefix [was: move to fail position in Isearch edit] |
Date: |
Tue, 11 Nov 2008 19:32:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) |
> You'll notice that this would be a lot handier if Isearch always started out
> (and resumed after Isearch edit) by treating the search string incrementally.
>
> For example, suppose you search again with a previous search string `aaxbbb'
> by
> hitting `C-s C-s' in a buffer where there is no match for `aaxbbb' but there
> are
> matches for `aa'.
>
> Isearch fails immediately, showing the entire search string, `aaxbbb', as a
> failed match by highlighting it. If, however, you had typed `aaxbbb' to a
> fresh
> `C-s', then the `aa' match would be located, and the failure highlighting
> would
> correctly reflect the `aa' prefix match success and the `xbbb' suffix match
> failure.
We could try implementing the idea suggested by Stefan in
http://thread.gmane.org/gmane.emacs.devel/74539/focus=74634
to iteratively remove the last char until a search succeeds.
--
Juri Linkov
http://www.jurta.org/emacs/