[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21278: char-fold isearch: space and newline still broken
From: |
Kévin Le Gouguec |
Subject: |
bug#21278: char-fold isearch: space and newline still broken |
Date: |
Fri, 10 Sep 2021 15:17:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Augusto Stoffel <arstoffel@gmail.com> writes:
> On Fri, 10 Sep 2021 at 12:57, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>>>> It seems like everybody agrees that the old value was confusing, so I've
>>>> now changed it to [ \t] in Emacs 28.
>>>
>>> Shouldn't it be [ \t]+ instead?
>>
>> Oops. Looks like I'm going for the "most errors in a trivial one-line
>> patch" record here...
>
> For the record, search-whitespace-regexp could have more useful values
> suggested in customize. I can think of:
>
> - not too lax: "[ \\t]+"
> - match across lines: "[ \\t\\n]+"
> - eat punctuation: "\\W+"
> - fuzzy: ".*?"
Seconded. I expect this to be a common customization: when searching
for compound expressions ("regular expression", "environment variable"…)
through prose filled using hard newlines (manpages, info nodes,
docstrings…), I have always found it useful for isearch to treat
newlines as regular whitespace.
If isearch no longer behaves like that by default, I'm sure users would
at least appreciate Customize suggesting some ready-made values.
- bug#21278: char-fold isearch: space and newline still broken, (continued)
- 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, 2021/09/07
- 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 <=
- 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
bug#21278: char-fold isearch: space and newline still broken, Lars Ingebrigtsen, 2021/09/06