[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
smarter isearch (was: Re: does emacs support incremental searching for p
smarter isearch (was: Re: does emacs support incremental searching for partial matches?)
Sat, 26 Feb 2011 18:31:50 +0800
On Sat, Feb 26, 2011 at 11:22 AM, jpkotta <address@hidden>
On Feb 24, 8:43 am, Stefan Monnier <address@hidden
> >> (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.
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
This looks interesting. Maybe you can add an additional level of search between word and flex - treat the search string as regexp. This way I can map C-s to flex search (right now it's mapped to isearch-forward-regexp).
start searching for input as string, when not found, search for input as regexp, when not found, search for input as flex term
- smarter isearch (was: Re: does emacs support incremental searching for partial matches?),
Le Wang <=