[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21278: char-fold isearch: space and newline still broken
From: |
Eli Zaretskii |
Subject: |
bug#21278: char-fold isearch: space and newline still broken |
Date: |
Tue, 07 Sep 2021 09:19:53 +0300 |
> From: Richard Stallman <rms@gnu.org>
> Cc: larsi@gnus.org, 21278@debbugs.gnu.org, bruce.connor.am@gmail.com
> Date: Mon, 06 Sep 2021 23:17:45 -0400
>
> > I think that's because in Mail mode we have:
>
> > (char-syntax ?\n) => 32 ; SPC
>
> > whereas in *scratch*:
>
> > (char-syntax ?\n) => 62 ; >
>
> > And the regexp in search-whitespace-regexp is "\\s-+".
>
> That seems plausible.
>
> I still say it is a bug. Incremental search should not equate
> newline with spaces, at least not by default. It is right to
> treat newline as whitespace in other commands, but not in search.
>
> What would be a good fix? Change the syntax of newline?
> What would be a good choice?
No, I think we should leave the syntax of the newline alone, I bet too
much depends on it.
I think we should change the default value of search-whitespace-regexp
instead. Building such mode-independent features on syntax properties
is IME asking for trouble.
Stefan, WDYT?
- bug#21278: char-fold isearch: space and newline, Lars Ingebrigtsen, 2021/09/04
- bug#21278: char-fold isearch: space and newline still broken, Richard Stallman, 2021/09/05
- bug#21278: char-fold isearch: space and newline still broken, Eli Zaretskii, 2021/09/06
- bug#21278: char-fold isearch: space and newline still broken, Richard Stallman, 2021/09/06
- bug#21278: char-fold isearch: space and newline still broken,
Eli Zaretskii <=
- bug#21278: char-fold isearch: space and newline still broken, Stefan Monnier, 2021/09/07
- bug#21278: char-fold isearch: space and newline still broken, Juri Linkov, 2021/09/09
- bug#21278: char-fold isearch: space and newline still broken, Lars Ingebrigtsen, 2021/09/10
- bug#21278: char-fold isearch: space and newline still broken, Eli Zaretskii, 2021/09/10
- bug#21278: char-fold isearch: space and newline still broken, Lars Ingebrigtsen, 2021/09/10
- bug#21278: char-fold isearch: space and newline still broken, Augusto Stoffel, 2021/09/10
- bug#21278: char-fold isearch: space and newline still broken, Kévin Le Gouguec, 2021/09/10
- bug#21278: char-fold isearch: space and newline still broken, Lars Ingebrigtsen, 2021/09/11
- bug#21278: char-fold isearch: space and newline still broken, Augusto Stoffel, 2021/09/11
- bug#21278: char-fold isearch: space and newline still broken, Lars Ingebrigtsen, 2021/09/13