[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interpretation of a space in regexp isearch?

From: Chong Yidong
Subject: Re: Interpretation of a space in regexp isearch?
Date: Thu, 30 Aug 2012 16:19:10 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Juri Linkov <address@hidden> writes:

> It would be better to reimplement it in isearch exactly the same way
> as `isearch-word' is implemented because these two are similar
> features.
> A new `isearch-whitespace' toggled by `M-s SPC' could construct a regexp
> like in `word-search-regexp' and search it with `re-search-forward' in
> `isearch-search-fun-default'.  This will provide flexibility to solve
> related problems.

I think this is a good idea.

I'd like the whitespace munging to be enabled for C-s, unless the user
disables it by customizing `search-whitespace-regexp' (or whatever
variable we decide on).  So `isearch-forward' itself should pass the
relevant flag to `isearch-mode'.

Instead of adding an `isearch-whitespace' flag, I think this is best
implemented as a third possible value for `isearch-word', say the symbol

reply via email to

[Prev in Thread] Current Thread [Next in Thread]