[Top][All Lists]

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

Re: Interpretation of a space in regexp isearch?

From: Juri Linkov
Subject: Re: Interpretation of a space in regexp isearch?
Date: Thu, 30 Aug 2012 11:54:38 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu)

>> Instead of adding an `isearch-whitespace' flag, I think this is best
>> implemented as a third possible value for `isearch-word', say the
>> symbol `match-any-whitespace'.
> Whoops, `isearch-word' already accepts function values, for purposes of
> symbol searching.  The `isearch-toggle-whitespace' command simply needs
> to set this.  Maybe that's is what you already had in mind.

The problem is that whitespace mode can be active together with regexp mode
and also simultaneously with plain C-s mode.  This is different from
`isearch-word' that is a separate mode mutually exclusive with C-s and C-M-s.
For instance, `isearch-toggle-regexp' sets `isearch-word' to nil, but it
should not disable whitespace mode (it should be disabled only with
the command `isearch-toggle-whitespace').

This is why I tend to implement it more like `isearch-toggle-case-fold'
than `isearch-toggle-word'.

reply via email to

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