From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61259 Path: news.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] cvs 2005-10-29 gnus-sum.el::gnus-article-sort-by-date-reverse (NEW) Date: Sat, 29 Oct 2005 11:05:52 +0300 Message-ID: <20051029080552.CVPH15053.fep30-app.kolumbus.fi@cante.net> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1130573278 26539 80.91.229.2 (29 Oct 2005 08:07:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2005 08:07:58 +0000 (UTC) Original-X-From: ding-owner+m9791@lists.math.uh.edu Sat Oct 29 10:07:48 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVljY-0003gI-F5 for ding-account@gmane.org; Sat, 29 Oct 2005 10:06:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EVljU-0001kp-00; Sat, 29 Oct 2005 03:06:32 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EVliu-0001kk-00 for ding@lists.math.uh.edu; Sat, 29 Oct 2005 03:05:56 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EVlir-00053N-LW for ding@lists.math.uh.edu; Sat, 29 Oct 2005 03:05:56 -0500 Original-Received: from fep30-0.kolumbus.fi ([193.229.0.32] helo=fep30-app.kolumbus.fi) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EVliq-0006JD-00 for ; Sat, 29 Oct 2005 10:05:52 +0200 Original-Received: from cante.net ([81.197.0.130]) by fep30-app.kolumbus.fi with ESMTP id <20051029080552.CVPH15053.fep30-app.kolumbus.fi@cante.net> for ; Sat, 29 Oct 2005 11:05:52 +0300 Original-To: Emacs Gnus-L X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61259 Archived-At: To put newest articles first is quite common for RSS feeds, so I though this function would come handy. Then you can simply do this inside `gnus-summary-mode-hook' for certain groups. (setq 'gnus-article-sort-functions 'gnus-article-sort-by-date-reverse) I'll send patch for gnus.texi in separate mail. - - - - - - - - - - - - - - - - - - - - - - - - 2005-10-29 Sat Jari Aalto (gnus-article-sort-by-date-reverse): 7.101 New function. === modified file 'gnus-sum.el' --- gnus-sum.el +++ gnus-sum.el @@ -4630,6 +4630,10 @@ (gnus-date-get-time (mail-header-date h1)) (gnus-date-get-time (mail-header-date h2)))) +(defsubst gnus-article-sort-by-date-reverse (h1 h2) + "Sort articles in reverse order by root article date." + (gnus-article-sort-by-date h2 h1)) + (defun gnus-thread-sort-by-date (h1 h2) "Sort threads by root article date." (gnus-article-sort-by-date