From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Sort data in buffer. Date: Thu, 6 Sep 2007 11:48:01 +0200 Message-ID: <5B437196-BB92-4E3D-8946-1BA203190301@Web.DE> References: <711a73df0709060210w622da220xc18a8772b14ab90b@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1189072132 9425 80.91.229.12 (6 Sep 2007 09:48:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2007 09:48:52 +0000 (UTC) Cc: emac To: "Dave Pawson" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 11:48:51 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ITDyi-0000qs-C4 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Sep 2007 11:48:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITDyg-00066Y-KF for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Sep 2007 05:48:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITDy4-0005u0-1s for help-gnu-emacs@gnu.org; Thu, 06 Sep 2007 05:48:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITDy0-0005rg-VU for help-gnu-emacs@gnu.org; Thu, 06 Sep 2007 05:48:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITDy0-0005rL-KK for help-gnu-emacs@gnu.org; Thu, 06 Sep 2007 05:48:04 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITDy0-0001YS-5A for help-gnu-emacs@gnu.org; Thu, 06 Sep 2007 05:48:04 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 9B7829BBE5D7; Thu, 6 Sep 2007 11:48:03 +0200 (CEST) Original-Received: from [89.58.87.24] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1ITDxz-00010o-00; Thu, 06 Sep 2007 11:48:03 +0200 In-Reply-To: <711a73df0709060210w622da220xc18a8772b14ab90b@mail.gmail.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18PmexAp1pXNc4uiz2uIYZd6/iNgII9FH9Zs5ip shQGwM9Tp3GBrZ+n2V8iSqc2T7kauo9Go4mmCOGr1YGGTqKV5t aRWd1/AZhEI+jlE6aasg== X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47275 Archived-At: Am 06.09.2007 um 11:10 schrieb Dave Pawson: > I.e. not really simple text. I want to sort it alphabetically =20 > (ASCII based say), > and I can't find out how? There are three functions: =95 sort-lines =95 sort-regexp-fields =95 shell-command-on-region, which offers to use some command = (chain) =20 from your system. The second option seems to be the most promising: you can mask out =20 characters or character classes before sorting the remains. -- Greetings Pete Never be led astray onto the path of virtue