bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#38539: char-fold-to-regexp and search-whitespace-regexp


From: Lars Ingebrigtsen
Subject: bug#38539: char-fold-to-regexp and search-whitespace-regexp
Date: Fri, 21 Aug 2020 14:07:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

> I don't know but bug#35802 removed let-binding of search-spaces-regexp
> around the char-fold-to-regexp call in isearch-search-fun-default.
> Maybe this is fine, but makes the following slightly more isearch-dependent:
>
> search-whitespace-regexp matches a sequence of whitespace chars
> in isearch, i.e. by entering a space it matches any whitespace.
>
> For example, in *scratch* searching with ‘C-s M-s ' 1 2’
> will match all these lines:
>
> 1 2
> 1  2
> 1 2
> 1  2
>
> It would be natural to expect that when char-fold-symmetric
> is customized to non-nil, searching for ‘C-s M-s ' 1 2’
> will also match the above lines.
>
> After applying this patch, it does.

I think that makes a lot of sense -- you'd expect nonbreaking space and
space to be handled equivalently when char-fold-symmetric is switched on.

I didn't see anybody objecting to the patch, so I think you should just
apply it and see whether anybody has any comments.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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