From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/11221 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.gnus.user Subject: Re: per group value of gnus-summary-thread-gathering-function? Date: Thu, 24 Jul 2008 19:37:49 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <87ljzrck6a.fsf@kobe.laptop> References: <877ibeasaq.fsf@kobe.laptop> <86iquwepa9.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216917629 23589 80.91.229.12 (24 Jul 2008 16:40:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 16:40:29 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Jul 24 18:41:18 2008 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KM3sT-0000vH-9f for gegu-info-gnus-english@m.gmane.org; Thu, 24 Jul 2008 18:41:17 +0200 Original-Received: from localhost ([127.0.0.1]:42155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM3rZ-0005ca-IF for gegu-info-gnus-english@m.gmane.org; Thu, 24 Jul 2008 12:40:21 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) Cancel-Lock: sha1:LVEt/dWxEzLedPxo+ZkY14gE36c= Original-Lines: 32 Original-NNTP-Posting-Host: 77.49.178.184 Original-X-Trace: news.sunsite.dk DXC=?OT9hDYChh_gcbniiOP=_RYSB=nbEKnk[l:4`YVO27`_L^MjWbH?lJH1Tkj\K1@Bmk`CVSZC5QP2; R`; `^ Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.gnus:81441 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:11221 Archived-At: On Wed, 23 Jul 2008 07:52:14 -0500, Ted Zlatanov wrote: > On Tue, 22 Jul 2008 17:48:29 +0300 Giorgos Keramidas wrote: > GK> What is the recommended way of getting different thread gathering > GK> logic for some of the groups? > > I don't know if there's a standard way; I do it in the summary entry > hook based on the newsgroup name. Thank you Ted, That sounds like a good idea. I thought adding this to the group parameters was a nice way of making it work, but maybe it's worth trying to patch Gnus and add some sort of wrapper function that dispatches on the group name, i.e.: (setq-default gnus-summary-thread-gathering-function 'keramida-gnus-gather-threads) Then I could add regexp matches to one or two new variables like: (defvar keramida-gnus-thread-function-by-group-map '(("mail\\.foo\\.bar" . gnus-gather-threads-by-subject) ("mail\\..*" . gnus-gather-threads-by-references) (t . gnus-gather-threads-by-references)) "List of (regexp . function) pairs to select a thread-gathering function.") Then with `gnus-summary-exit-hook' I can restore the thread gathering function to a `default' value. I think I'll give this a try. If it seems to work nicely, I will post what I wrote here when I've tested it a bit.