Article View: gnu.emacs.gnus
Article #81522Re: Why can't I sort groups alphabetically?
From: Israel Pinkas
Date: Tue, 24 Nov 1992 22:25
Date: Tue, 24 Nov 1992 22:25
30 lines
1688 bytes
1688 bytes
brian@dsm.fordham.edu (Brian Downing) writes:
Well? When I browse killed groups I'd like to be able to sort-lines
on the buffer. Why isn't there a gnus-Group-sort-groups function?
I have the following in my .emacs. Calling gnus-sort-groups sorts the
*Newsgroup* and killed groups alphabetically. To see the sorted list,
press 'g' (gnus-Group-get-new-news) in the *Newsgroup* buffer. The killed
groups will display sorted the next time they are displayed.
-Israel
(defun gnus-sort-groups ()
"Sort newsgroups alphabetically"
(interactive)
(setq gnus-newsrc-assoc
(sort gnus-newsrc-assoc '(lambda (a b) (string< (car a) (car b)))))
(setq gnus-killed-assoc
(sort gnus-killed-assoc '(lambda (a b) (string< (car a) (car b)))))
)
--
Israel Pinkas pinkas@stps18.intel.com 408-765-4210
"Everybody's askaird of death, until it hits you ...
then you don't care" -Archie Bunker
Technical Details
Message-ID:
<PINKAS.92Nov24142549@skywalker.intel.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!inews.Intel.COM!inews!pinkasReferences:
<BRIAN.92Nov23061136@dsm.dsm.fordham.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1016f0,a7dc19c0c86ce79e X-Google-Attributes: gid1016f0,public X-Google-ArrivalTime: 1992-11-24 20:10:42 PST Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!inews.Intel.COM!inews!pinkas From: pinkas@skywalker.intel.com (Israel Pinkas) Newsgroups: gnu.emacs.gnus Subject: Re: Why can't I sort groups alphabetically? Message-ID: <PINKAS.92Nov24142549@skywalker.intel.com> Date: 24 Nov 92 22:25:49 GMT References: <BRIAN.92Nov23061136@dsm.dsm.fordham.edu> Sender: news@inews.Intel.COM (USENET News System) Distribution: gnu Organization: Software Technologies, INTeL Corporation, Santa Clara, CA Lines: 30 In-Reply-To: brian@dsm.fordham.edu's message of 23 Nov 92 11:11:36 GMT Nntp-Posting-Host: skywalker