Gnus development mailing list
 help / color / mirror / Atom feed
From: Jari Aalto <jari.aalto@cante.net>
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	[thread overview]
Message-ID: <20051029080552.CVPH15053.fep30-app.kolumbus.fi@cante.net> (raw)


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  <jari dot aalto A T cante dot net>

        (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





             reply	other threads:[~2005-10-29  8:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-29  8:05 Jari Aalto [this message]
2006-04-13  8:01 ` Lars Magne Ingebrigtsen
2006-04-13  8:05   ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051029080552.CVPH15053.fep30-app.kolumbus.fi@cante.net \
    --to=jari.aalto@cante.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).