Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Christensen <jdc@uwo.ca>
Cc: Simon Josefsson <jas@extundo.com>, Emacs Gnus-L <ding@gnus.org>
Subject: Re: [PATCH] cvs 2005-10-29 score-mode.el::defvar
Date: Tue, 01 Nov 2005 21:44:56 -0500	[thread overview]
Message-ID: <87ek5zkbtj.fsf@uwo.ca> (raw)
In-Reply-To: <E1EWWRS-0005zz-Hx@cante>

Jari Aalto <jari.aalto@cante.net> writes:

> Dan Christensen wrote:
> 
> | > 2005-10-29 Sat  Jari Aalto  <jari dot aalto A T cante dot net>
> | >
> | >         (gnus-article-sort-by-date-reverse): 7.101 New function.
> | 
> | Can't one reverse any sort function by using a construct like 
> | (not gnus-article-sort-by-date) [from memory]?
>
> If you refer to hook, then a lambda would do. But that would be ugly -
> and remove-hook couldn't be used. A function is much cleaner.

I don't see how a lambda would be needed.  Here's an example from
the sorting section of the info documentation.  

     (setq gnus-thread-sort-functions
           '(gnus-thread-sort-by-number
             gnus-thread-sort-by-subject
             (not gnus-thread-sort-by-total-score)))

The same construct works for gnus-article-sort-functions too.

Following your reasoning, one should add reversed versions of all the
gnus-article-sort* and gnus-thread-sort* functions, but we don't do
this because we have a general purpose way to specify reversed
sorting.

Or am I misunderstanding what your function would be used for?

Dan




  reply	other threads:[~2005-11-02  2:44 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-29  7:31 [PATCH] cvs 2005-10-29 score-mode.el::defvar gnus-score-edit-done-hook Jari Aalto
2005-10-29  9:13 ` Simon Josefsson
2005-10-30 22:27   ` [PATCH] cvs 2005-10-29 score-mode.el::defvar Dan Christensen
2005-10-31  9:59   ` Jari Aalto
2005-11-02  2:44     ` Dan Christensen [this message]
2005-11-02  8:54       ` Simon Josefsson
2005-11-08 15:14         ` gnus-article-sort-*-reverse (was: [PATCH] cvs 2005-10-29 score-mode.el::defvar) Reiner Steib
2005-11-08 15:45           ` gnus-article-sort-*-reverse Romain Francoise
2005-11-08 17:03             ` gnus-article-sort-*-reverse Reiner Steib
2005-11-08 18:56               ` gnus-article-sort-*-reverse Romain Francoise
2005-11-08 19:43                 ` Group parameters and `(not gnus-article-sort-by-date)' (was: gnus-article-sort-*-reverse) Reiner Steib
2005-11-09  6:26                   ` Group parameters and `(not gnus-article-sort-by-date)' Romain Francoise
2005-11-09 16:34                     ` Simon Josefsson
2005-11-09 17:17                       ` Reiner Steib
2005-11-09 18:05                         ` Henrik Enberg
2005-11-09 20:37                           ` Reiner Steib
2005-11-09 23:25                         ` Simon Josefsson
2005-11-10  8:47                           ` Reiner Steib
2005-11-10 18:10                             ` Reiner Steib

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=87ek5zkbtj.fsf@uwo.ca \
    --to=jdc@uwo.ca \
    --cc=ding@gnus.org \
    --cc=jas@extundo.com \
    /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).