From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61278 Path: news.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] cvs 2005-10-29 score-mode.el::defvar Date: Tue, 01 Nov 2005 21:44:56 -0500 Message-ID: <87ek5zkbtj.fsf@uwo.ca> References: <20051029073128.PUFY9722.fep32-app.kolumbus.fi@cante.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1130900114 26107 80.91.229.2 (2 Nov 2005 02:55:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2005 02:55:14 +0000 (UTC) Cc: Simon Josefsson , Emacs Gnus-L Original-X-From: ding-owner+m9810@lists.math.uh.edu Wed Nov 02 03:55:07 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EX8lM-0004xY-2h for ding-account@gmane.org; Wed, 02 Nov 2005 03:54:09 +0100 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 1EX8l5-0000Lz-00; Tue, 01 Nov 2005 20:53:51 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EX8ce-0000Lu-00 for ding@lists.math.uh.edu; Tue, 01 Nov 2005 20:45:08 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EX8cY-0006ip-JN for ding@lists.math.uh.edu; Tue, 01 Nov 2005 20:45:08 -0600 Original-Received: from v320-146-lb.lb.its.uwo.ca ([129.100.74.146] helo=uwo.ca) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EX8cV-0008FC-00 for ; Wed, 02 Nov 2005 03:44:59 +0100 Original-Received: from groucho.mail.uwo.pri (brutus.mail.uwo.pri [172.29.32.39]) by groucho.mail.uwo.pri (Sun Java System Messaging Server 6.2-1 (built Feb 24 2005)) with ESMTP id <0IPB002633MXEME0@groucho.mail.uwo.pri> for ding@gnus.org; Tue, 01 Nov 2005 21:44:57 -0500 (EST) Original-Received: from localhost ([129.100.75.77]) by groucho.mail.uwo.pri (Sun Java System Messaging Server 6.2-1 (built Feb 24 2005)) with ESMTP id <0IPB004FA3MX7W80@groucho.mail.uwo.pri> for ding@gnus.org; Tue, 01 Nov 2005 21:44:57 -0500 (EST) Original-Received: from jdc by localhost with local (Exim 3.36 #1 (Debian)) id 1EX8cS-0001wQ-00; Tue, 01 Nov 2005 21:44:56 -0500 In-reply-to: Original-To: Jari Aalto Mail-Copies-To: nobody X-Hashcash: 1:22:051102:ding@gnus.org::QwHTVOczyNe/Kfuc:00004aRq X-Hashcash: 1:22:051102:jas@extundo.com::vn+9EmG9uygLF3v/:009zL8 X-Hashcash: 1:22:051102:jari.aalto@cante.net::FQoRMj4E7Bq8idxO:00000000000000000000000000000000000000000NqW6 User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61278 Archived-At: Jari Aalto writes: > Dan Christensen wrote: > > | > 2005-10-29 Sat Jari Aalto > | > > | > (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