From: Tim Landscheidt <tim@tim-landscheidt.de>
To: ding@gnus.org
Subject: Re: Set gnus-simplify-subject-functions in group parameters?
Date: Mon, 06 Mar 2017 02:16:07 +0000 [thread overview]
Message-ID: <87shmrjgk8.fsf@passepartout.tim-landscheidt.de> (raw)
In-Reply-To: <877f4ebknb.fsf@marauder.physik.uni-ulm.de>
Reiner Steib <reinersteib+gmane@imap.cc> wrote:
>> Er, first of all, does `gnus-simplify-subject-functions' really
>> work? I tried this,
>> (setq gnus-simplify-subject-functions '(gnus-simplify-subject-re))
>> and confirmed that `gnus-simplify-subject-re' runs. However I
>> can still see "Re: "s in the summary lines. :(
> I guess `gnus-simplify-subject-functions' is used for threading and
> scoring and doesn't influence the display (in summary and article
> buffers). For the latter, `gnus-list-identifiers' might be useful.
Yes, and I do not want to change the display, but just group
together articles that refer to the same "topic".
> With the following code, I can see that the function rs-test is called
> twice for each article (after turning on threading):
> | Generating summary...done
> | No more unseen articles
> | No more unread articles
> | SIMPLIFY: subdomain adressing
> | SIMPLIFY: Test-von-Reiner
> | Generating summary...
> | SIMPLIFY: subdomain adressing
> | SIMPLIFY: Test-von-Reiner
> | Generating summary...done
> | Threading is now on
> (defun rs-test (s) (message "SIMPLIFY: %s" s))
> (setq
> gnus-parameters
> `(;; ...
> ("misc\\.test"
> (gnus-simplify-subject-functions
> '(gnus-simplify-subject-re
> gnus-simplify-whitespace
> rs-test))
> (gnus-summary-line-format "..."))
> ...))
I cannot reproduce this with Gnus v5.13 (GNU Emacs 25.1.1).
If I set:
| (setq gnus-parameters
| '(("^mail\\.wikipedia\\.watchlist\\.dewiki$"
| (gnus-thread-sort-functions '(gnus-thread-sort-by-subject)))))
gnus-thread-sort-functions is gnus-thread-sort-by-subject in
the summary buffer (and the sorting is changed from the de-
fault), so the parameters are read. If I set:
| (setq gnus-parameters
| '(("^mail\\.wikipedia\\.watchlist\\.dewiki$"
| (gnus-simplify-subject-functions
| '(gnus-simplify-subject-re
| gnus-simplify-whitespace
| rs-test)))))
(and gnus-verbose to 99), when entering the group *Messages*
only says:
| Retrieving newsgroup: mail.wikipedia.watchlist.dewiki...
| Fetching headers for mail.wikipedia.watchlist.dewiki...done
| Scoring...done
| Sorting threads...done
| Generating summary...done
and gnus-simplify-subject-functions is still
'(gnus-simplify-subject-re gnus-simplify-whitespace).
Tim
next prev parent reply other threads:[~2017-03-06 2:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-23 13:51 Tim Landscheidt
2017-02-24 1:29 ` Katsumi Yamaoka
2017-02-24 11:10 ` Andreas Schwab
2017-02-25 11:00 ` Reiner Steib
2017-02-27 6:35 ` Katsumi Yamaoka
2017-03-06 2:16 ` Tim Landscheidt [this message]
2017-03-06 2:31 ` Tim Landscheidt
2017-03-16 19:36 ` Tim Landscheidt
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=87shmrjgk8.fsf@passepartout.tim-landscheidt.de \
--to=tim@tim-landscheidt.de \
--cc=ding@gnus.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.
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).