unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
To: Augusto Stoffel <arstoffel@gmail.com>
Cc: 21278@debbugs.gnu.org, rms@gnu.org, bruce.connor.am@gmail.com,
	juri@linkov.net, monnier@iro.umontreal.ca,
	Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#21278: char-fold isearch: space and newline still broken
Date: Fri, 10 Sep 2021 15:17:19 +0200	[thread overview]
Message-ID: <87h7esefj4.fsf@gmail.com> (raw)
In-Reply-To: <87v938ej9i.fsf@gmail.com> (Augusto Stoffel's message of "Fri, 10 Sep 2021 13:56:41 +0200")

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.





  reply	other threads:[~2021-09-10 13:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-17  5:04 bug#21278: 25.0.50; char-fold search is a screw, and I can't see how to disable Richard Stallman
2015-08-18 21:48 ` Artur Malabarba
2015-08-19 22:20   ` Juri Linkov
2015-08-19 22:59     ` Artur Malabarba
2021-09-04  7:04 ` bug#21278: char-fold isearch: space and newline Lars Ingebrigtsen
2021-09-06  3:09   ` bug#21278: char-fold isearch: space and newline still broken Richard Stallman
2021-09-06  5:59     ` Eli Zaretskii
2021-09-07  3:17       ` Richard Stallman
2021-09-07  6:19         ` Eli Zaretskii
2021-09-07 12:36           ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-09 17:32             ` Juri Linkov
2021-09-10 10:28               ` Lars Ingebrigtsen
2021-09-10 10:54                 ` Eli Zaretskii
2021-09-10 10:57                   ` Lars Ingebrigtsen
2021-09-10 11:56                     ` Augusto Stoffel
2021-09-10 13:17                       ` Kévin Le Gouguec [this message]
2021-09-11 12:12                       ` Lars Ingebrigtsen
2021-09-11 12:52                         ` Augusto Stoffel
2021-09-13  7:26                           ` Lars Ingebrigtsen
2021-09-06  8:32     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7esefj4.fsf@gmail.com \
    --to=kevin.legouguec@gmail.com \
    --cc=21278@debbugs.gnu.org \
    --cc=arstoffel@gmail.com \
    --cc=bruce.connor.am@gmail.com \
    --cc=juri@linkov.net \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).