From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87423 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:31:40 +0000 Organization: http://www.tim-landscheidt.de/ Message-ID: <87o9xfjfub.fsf@passepartout.tim-landscheidt.de> References: <87ino1vwvt.fsf@passepartout.tim-landscheidt.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1488767537 25951 195.159.176.226 (6 Mar 2017 02:32:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2017 02:32:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m35644@lists.math.uh.edu Mon Mar 06 03:32:13 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048035.atla03.us.yomura.com ([107.189.48.35]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckiRV-0005zh-KB for ding-account@gmane.org; Mon, 06 Mar 2017 03:32:09 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048035.atla03.us.yomura.com (Halon) with ESMTPS id 1b740bf2-0215-11e7-b156-b499baabecb2; Mon, 06 Mar 2017 02:32:14 +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 1ckiRP-00052R-2x; Sun, 05 Mar 2017 20:32:03 -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 1ckiRN-00051p-EX for ding@lists.math.uh.edu; Sun, 05 Mar 2017 20:32:01 -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 1ckiRL-0003wR-Du for ding@lists.math.uh.edu; Sun, 05 Mar 2017 20:32:01 -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 1ckiRK-0006uH-0D for ding@gnus.org; Mon, 06 Mar 2017 03:31:58 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ckiR7-0003Qo-OH for ding@gnus.org; Mon, 06 Mar 2017 03:31:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 34 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:yAIH7CNPJ42HqogEYUYHU1ptJbA= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87423 Archived-At: Katsumi Yamaoka wrote: > […] >> How can I set gnus-simplify-subject-functions for a group to >> a different value? > If it works, something like the following will probably work: > (defun my-gnus-simplify-subject () > (setq gnus-simplify-subject-functions > (cond ((string-equal "nnfolder:foo.bar" gnus-newsgroup-name) > '(tl-watchlist-subject-munger)) > ((string-match "\\`nnimap:foo\\." gnus-newsgroup-name) > '(tl-subject-filter-2)) > (t nil)))) > (add-hook 'gnus-select-group-hook 'my-gnus-simplify-subject) > (string-equal "nnfolder:foo.bar" ...) matches the group. > (string-match "\\`nnimap:foo\\." ...) matches the groups of which > the group names begin with "nnimap:foo." . > The last (t nil) must be there. Thanks, I'll try (something like) that. > Unfortunately Gnus isn't designed assuming > `gnus-simplify-subject-functions' to be a group parameter, IIUC. What is the difference between "good" and "bad" group para- meters in Lisp? I. e., why does gnus-thread-sort-functions work, but gnus-simplify-subject-functions does not? Tim