From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/4360 Path: main.gmane.org!not-for-mail From: dreschs@mpd.tandem.com (Sten Drescher) Newsgroups: gmane.emacs.gnus.general Subject: Re: Group sorting Date: 11 Dec 1995 10:37:16 -0600 Organization: Tandem Computers Sender: dreschs@mpd.tandem.com Message-ID: <55d99v7e0z.fsf@galil.austnsc.tandem.com> References: <55ka4b8lka.fsf@galil.austnsc.tandem.com> <557n07h36c.fsf@galil.austnsc.tandem.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035145117 29315 80.91.224.250 (20 Oct 2002 20:18:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:18: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.6.11/8.6.9) with ESMTP id JAA04129 for ; Mon, 11 Dec 1995 09:49:25 -0800 Original-Received: from galil.austnsc.tandem.com (argyle.mpd.tandem.com [131.124.250.13]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Mon, 11 Dec 1995 17:35:50 +0100 Original-Received: (from dreschs@localhost) by galil.austnsc.tandem.com (8.7.1/8.7.1) id KAA19730; Mon, 11 Dec 1995 10:37:18 -0600 (CST) Original-To: ding@ifi.uio.no In-Reply-To: larsi@ifi.uio.no's message of 10 Dec 1995 16:16:01 +0100 Original-Lines: 26 Xref: main.gmane.org gmane.emacs.gnus.general:4360 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:4360 larsi@ifi.uio.no (Lars Magne Ingebrigtsen) said: >> Of course, I also want it to take a reasonable amount of time, and >> putting multiple 'keys' in gnus-group-sort-function causes a linear >> increase in the time required, so I'm doing without the level >> sort. ;( Is making a better sort algorithm (passing a list of keys to >> compare rather than individual sorts on each key) on the to-do list? LMI> Nope. Could you illustrate what you had in mind? OK, right now, to get close to what I want, I'd set: (setq gnus-group-sort-function '(gnus-group-sort-by-level gnus-group-sort-by-unread)) This would first do a complete sorting by level, then a complete sorting by unread - 2 complete sorts. I'd want it to work in a single sort - the sort would compare the unread keys, and _only_ if they matched, compare the level keys. I don't know enough elisp to know how (or if) this could be implemented. -- #include /* Sten Drescher */ To get my PGP public key, send me email with your public key and Subject: PGP key exchange Key fingerprint = 90 5F 1D FD A6 7C 84 5E A9 D3 90 16 B2 44 C4 F3