From: Simon Josefsson <jas@extundo.com>
Subject: Re: Gathering very loose threads
Date: Thu, 16 May 2002 16:58:12 +0200 [thread overview]
Message-ID: <iluelgcuol7.fsf@latte.josefsson.org> (raw)
In-Reply-To: <wtnn0v0dwfr.fsf@licia.dtek.chalmers.se> (Jonas Steverud's message of "Thu, 16 May 2002 16:00:40 +0200")
Jonas Steverud <d4jonas@dtek.chalmers.se> writes:
> Simon Josefsson <jas@extundo.com> writes:
>
>> Does this work as a member of gnus-simplify-subject-functions?
>
> There are already a function for this; gnus-simplify-whitespace.
I believe that function only removes excessive whitespace, not all
whitespace. Compare
(gnus-simplify-whitespace " foo bar ")
"foo bar"
with
((lambda (str)
(with-temp-buffer
(insert str)
(goto-char (point-min))
(while (re-search-forward " +" nil t)
(replace-match ""))
(buffer-string)))
" foo bar ")
"foobar"
The latter looks generally useful, so I added it as
gnus-simplify-all-whitespace. Perhaps it should even be used by
default (whitespace in Subject: is rarely useful for threading
purposes), but I'll leave it for someone else to make that patch.
prev parent reply other threads:[~2002-05-16 14:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-15 10:00 Niklas Morberg
2002-05-15 12:13 ` odd nnir error Bill White
2002-05-18 19:01 ` Kai Großjohann
2002-05-15 12:54 ` Gathering very loose threads Simon Josefsson
2002-05-15 14:31 ` Niklas Morberg
[not found] ` <wtnn0v0dwfr.fsf@licia.dtek.chalmers.se>
2002-05-16 14:58 ` Simon Josefsson [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=iluelgcuol7.fsf@latte.josefsson.org \
--to=jas@extundo.com \
/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.
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 NNTP newsgroup(s).