Article View: gnu.emacs.bug
Article #99382sorting (feature request)
From: Christopher C. Stacy
Date: Tue, 18 Sep 1990 13:06
Date: Tue, 18 Sep 1990 13:06
19 lines
1829 bytes
1829 bytes
ZMACS has a sort command that I really like, m-x Sort Via Keyboard Macro. When the command runs, it asks you how to get to the beginning of the next record, the start of the field to sort on , the end of the field to sort on, and the end of the current record. For each one of these, it prompts you and opens a keyboard macro that you terminate with c-x ). Ater you have taught it the parameters, it does the sort. This is alot more flexible than sort-columns or sort fields, because there are no built-in constraints on wide a field is or what the delimiters are, or what constitutes a record (it could be more than one line.) I don't use regexps very much, so maybe I could learn to do what I want with sort-regexp-fields, but the keyboard-macro approach is very obvious and doesn't require understanding anything more than the basic Emacs commands I already know. I doubt that I have the time to implement this, but maybe if nobody else does it, I'll bring it up. Meanwhile, I'm mentioning it here, in case someone out there is just looking for a really cool Emacs command to implement. (If you do start working on it, post a message to bug-gnu-emacs to avoid too many duplicate efforts, and please copy me, since I'm not on that list.)
Technical Details
Message-ID:
<9009181306.AA19075@rice-chex>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!AI.MIT.EDU!cstacyShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,d1b5e59328f7d2b2,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-09-18 06:06:25 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!AI.MIT.EDU!cstacy From: cstacy@AI.MIT.EDU (Christopher C. Stacy) Newsgroups: gnu.emacs.bug Subject: sorting (feature request) Message-ID: <9009181306.AA19075@rice-chex> Date: 18 Sep 90 13:06:25 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19 Posted: Tue Sep 18 14:06:25 1990