From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/4637 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Sorting predicate names Date: 11 Jan 1996 10:40:19 +0100 Organization: Xmas Exiles Sender: larsi@bjob.no Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035145357 30335 80.91.224.250 (20 Oct 2002 20:22:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:22:37 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by miranova.com (8.7.3/8.6.9) with SMTP id VAA21102 for ; Thu, 11 Jan 1996 21:19:28 -0800 Original-Received: from Norway.EU.net (nic.eunet.no [193.71.1.1]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Fri, 12 Jan 1996 05:54:20 +0100 Original-Received: by Norway.EU.net with UUCP id AA25421 (5.65c/IDA-1.4.4/EUnet/NO for ding@ifi.uio.no); Fri, 12 Jan 1996 05:54:18 +0100 Original-Received: (from larsi@localhost) by redleaf.bbs.no (8.6.12/8.6.9) id SAA01583; Thu, 11 Jan 1996 18:52:58 GMT Original-To: ding@ifi.uio.no Original-Lines: 21 Xref: main.gmane.org gmane.emacs.gnus.general:4637 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:4637 The (thread) sorting predicates currently have names like `gnus-thread-sort-by-number' and `gnus-thread-sort-by-subject', which aren't all that descriptive. To take `gnus-thread-sort-by-subject' as an example -- it takes two threads, picks out the Subject headers, and compares them with `string-lessp'. How about changing the names to things like `gnus-thread-number-lessp' and `gnus-thread-subject-lessp'? Then we could easily have `gnus-thread-number-greaterp' and `gnus-thread-subject-greaterp' to be reverse sorting predicates. Or is this just even more confusing? We would (of course) define the old functions to be aliases for the new functions to preserve backwards compatability. -- Lars Magne Ingebrigtsen * larsi@ifi.uio.no (a red leaf that falls from the purple tree)