From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57783 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.general Subject: Re: sort by reverse date & bbdb Date: Mon, 31 May 2004 18:54:31 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <20040529061606.GA804@ipanel.cn> <87iseerkqy.fsf@dinglei.ipanel.com.cn> Reply-To: Reiner Steib NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086025158 22897 80.91.224.253 (31 May 2004 17:39:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 May 2004 17:39:18 +0000 (UTC) Original-X-From: ding-owner+M6324@lists.math.uh.edu Mon May 31 19:39:08 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BUqke-0006tO-00 for ; Mon, 31 May 2004 19:39:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BUqkQ-0001IZ-00; Mon, 31 May 2004 12:38:54 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BUqkI-0001IT-00 for ding@lists.math.uh.edu; Mon, 31 May 2004 12:38:46 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BUqkG-0004N1-Pc for ding@lists.math.uh.edu; Mon, 31 May 2004 12:38:44 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 2F4643A0058 for ; Mon, 31 May 2004 12:38:42 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BUqkC-00013N-00 for ; Mon, 31 May 2004 19:38:41 +0200 Original-Received: from dialin-145-254-252-185.arcor-ip.net ([145.254.252.185]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 May 2004 19:38:40 +0200 Original-Received: from reiner.steib by dialin-145-254-252-185.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 May 2004 19:38:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dialin-145-254-252-185.arcor-ip.net X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:gxjAxQt4FMaVaIR3/hK9TVujlOk= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57783 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57783 On Sun, May 30 2004, Lloyd Zusman wrote: > Ding Lei writes: [...] > (defun my-gnus-summary-sort-by-date-rev () > (interactive) > (gnus-summary-sort-by-date t)) Using (not gnus-summary-sort-by-date) in `gnus-article-sort-functions' is easier. >> And how do I customize default sorting methods for different groups? >> Thank you! > > You can set up a `gnus-summary-generate-hook', as follows: [...] > (cond > ((string-match "\\(foo\\|bar\\)" gnus-newsgroup-name) > (setq gnus-article-sort-functions '(my-gnus-article-sort-by-date-rev)) > t) You can set `gnus-article-sort-functions' in `gnus-parameters' ... ("foo" (gnus-article-sort-functions '(gnus-article-sort-by-subject gnus-article-sort-by-score))) ... or by customizing a group or a topic: `G c'. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/