From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: delete double lines Date: Fri, 11 Aug 2006 09:34:25 -0400 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: <9773EFADA4FF6C43A49824D50B1539A701628962@exbe04.intra.dlr.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1155303750 12597 80.91.229.2 (11 Aug 2006 13:42:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2006 13:42:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 11 15:42:30 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GBXHC-0008Li-MC for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Aug 2006 15:42:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBXHC-0004Pi-1I for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Aug 2006 09:42:14 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader2.panix.com 1155303308 28428 166.84.1.5 (11 Aug 2006 13:35:08 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Fri, 11 Aug 2006 13:35:08 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:CPQASXZHm42uOC2nqhCgq6GekZQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:140975 Original-To: help-gnu-emacs@gnu.org 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:36600 Archived-At: Oops! sort-lines doesn't uniquify... Cygwin has a sort function that handles the -u switch, but it means installing the entire cygwin environment. - Chris Chris McMahan writes: > M-x sort-lines to get the same results. > > If you only want to sort part of the buffer, just highlight the region > you want sorted and execute the same function. > > I use this quite frequently! > > - Chris > > Peter Dyballa writes: > >> Am 11.08.2006 um 12:41 schrieb : >> >>> is there any solution for delete double lines with emacs commands >>> (or macros)? >>> >> >> What about shell-command-on-region? And the shell command is 'sort -u'. >> >> -- >> Mit friedvollen Grüßen >> >> Pete >> >> “Computers are good at following instructions, but not at reading >> your mind.” >> - D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9 -- (. .) =ooO=(_)=Ooo===================================== Chris McMahan | first_initiallastname@one.dot.net =================================================