|
From: | Le Wang |
Subject: | smarter isearch (was: Re: does emacs support incremental searching for partial matches?) |
Date: | Sat, 26 Feb 2011 18:31:50 +0800 |
On Feb 24, 8:43 am, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> >> (defconst my-isearch-re "[^\n\s\t]*?")
> > or (defconst my-isearch-re "\\S *?")
> > I'm not sure which is clearer.
>
> Many languages set \n to have syntax "close comment" rather thanI just added http://www.emacswiki.org/emacs/FlexIsearch to the wiki.
> "space", in which case \S- does not exclude \n.
>
> Stefan
It's something that I've been thinking about for a while, but I didn't
know how to hook into isearch. I think it's very close to what the OP
wanted.
start searching for input as string, when not found, search for input as regexp, when not found, search for input as flex term
[Prev in Thread] | Current Thread | [Next in Thread] |