From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87422 Path: news.gmane.org!.POSTED!not-for-mail From: Tim Landscheidt Newsgroups: gmane.emacs.gnus.general Subject: Re: Set gnus-simplify-subject-functions in group parameters? Date: Mon, 06 Mar 2017 02:16:07 +0000 Organization: http://www.tim-landscheidt.de/ Message-ID: <87shmrjgk8.fsf@passepartout.tim-landscheidt.de> References: <87ino1vwvt.fsf@passepartout.tim-landscheidt.de> <877f4ebknb.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488766652 13950 195.159.176.226 (6 Mar 2017 02:17:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2017 02:17:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m35643@lists.math.uh.edu Mon Mar 06 03:17:28 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckiDD-0002pU-UT for ding-account@gmane.org; Mon, 06 Mar 2017 03:17:24 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id 0b28c939-0213-11e7-b719-b499baa2b07a; Mon, 06 Mar 2017 02:17:27 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1ckiCJ-0004sd-5Z; Sun, 05 Mar 2017 20:16:27 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1ckiCH-0004sA-Hh for ding@lists.math.uh.edu; Sun, 05 Mar 2017 20:16:25 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1ckiCF-0003sg-T4 for ding@lists.math.uh.edu; Sun, 05 Mar 2017 20:16:25 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ckiCE-0006jy-FA for ding@gnus.org; Mon, 06 Mar 2017 03:16:22 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ckiC1-0004NJ-6o for ding@gnus.org; Mon, 06 Mar 2017 03:16:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 72 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:ht9RO/pFM7dv6zl/6HyWJs3aYqs= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87422 Archived-At: Reiner Steib 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