From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/11223 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.user Subject: Re: per group value of gnus-summary-thread-gathering-function? Date: Thu, 24 Jul 2008 13:21:05 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86y73r9m9a.fsf@lifelogs.com> References: <877ibeasaq.fsf@kobe.laptop> <86iquwepa9.fsf@lifelogs.com> <87ljzrck6a.fsf@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1216924996 18249 80.91.229.12 (24 Jul 2008 18:43:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 18:43:16 +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 20:44:04 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 1KM5nB-0002jl-89 for gegu-info-gnus-english@m.gmane.org; Thu, 24 Jul 2008 20:43:57 +0200 Original-Received: from localhost ([127.0.0.1]:40086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM5mG-00032q-No for gegu-info-gnus-english@m.gmane.org; Thu, 24 Jul 2008 14:43:00 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 55 Original-X-Trace: news.albasani.net ySLrvzRSEmWwcgHT+rXyiZDo9GeScmZCgExP7TtoICiIE9ZXKOdV4k9QGPB3QfUvuuwhNRGAlWWglYMZ74rWY5HYf3FzPz/1qmUvpAYQ9WGBEatDDQ3Hip0vN+OwXcuF Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Thu, 24 Jul 2008 18:16:30 +0000 (UTC) X-User-ID: k1GdIJj9H/Ag6yXQWqitaxh+m72dtGt65YgKnmJVup4= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:IEkf+kJltiAaAtAdgwU6h+iC77w= sha1:HXpRlQEaTz280PlxaXrJAqadzXc= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-NNTP-Posting-Host: OQt+B8vm6kVWPdFlGWVFRY3+8UFJ+yejIm36LKABHcQ= Original-Xref: news.stanford.edu gnu.emacs.gnus:81443 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:11223 Archived-At: On Thu, 24 Jul 2008 19:37:49 +0300 Giorgos Keramidas wrote: GK> 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. GK> Thank you Ted, GK> That sounds like a good idea. GK> I thought adding this to the group parameters was a nice way of making GK> it work, but maybe it's worth trying to patch Gnus and add some sort of GK> wrapper function that dispatches on the group name, i.e.: GK> (setq-default gnus-summary-thread-gathering-function GK> 'keramida-gnus-gather-threads) GK> Then I could add regexp matches to one or two new variables like: GK> (defvar keramida-gnus-thread-function-by-group-map GK> '(("mail\\.foo\\.bar" . gnus-gather-threads-by-subject) GK> ("mail\\..*" . gnus-gather-threads-by-references) GK> (t . gnus-gather-threads-by-references)) GK> "List of (regexp . function) pairs to select a thread-gathering function.") GK> Then with `gnus-summary-exit-hook' I can restore the thread gathering GK> function to a `default' value. I think I'll give this a try. If it GK> seems to work nicely, I will post what I wrote here when I've tested it GK> a bit. I think what you and others want is to modify gnus-posting-styles so it allows a symbol instead of just a static definition. In other words, instead of ((".*" (signature-file "~/.signature") (name "Ted Zlatanov") (organization "Теодор Златанов @ Cienfuegos"))) it could be ((".*" ('gnus-summary-thread-gathering-function 'gnus-gather-threads-by-references) (signature-file "~/.signature") (name "Ted Zlatanov") (organization "Теодор Златанов @ Cienfuegos"))) Am I understanding you correctly? I don't know how hard this change is, if it's the right thing. Ted