emacs-devel
[Top][All Lists]
Advanced

[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: Sun, 26 Aug 2012 12:06:49 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Dani Moncayo <address@hidden> writes:

> IMO, that feature is what the user usually wants in an ordinary search
> (regardless it's incremental or not; even if that search is part of a
> ordinary replace command).
>
> On the other and, in a rexexp search (or regexp search&replace) I
> think that the common case is the opposite: the user normally doesn't
> want that feature.

I committed a change to trunk to make non-regexp isearch match multiple
spaces via search-spaces-regexp.

As for regexp isearch, it seems disruptive to remove the feature now,
since some some users might have grown to rely on it.  So I left regexp
isearch alone (i.e. it still does the multiple spaces matching).

It is now possible to change the variable `search-whitespace-regexp' and
give it a cons cell value, which specifies different behaviors for
ordinary and regexp isearch.



reply via email to

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