help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delete double lines


From: Chris McMahan
Subject: Re: delete double lines
Date: Fri, 11 Aug 2006 09:34:25 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

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 <first_initiallastname@one.dot.net> 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 <Peter_Dyballa@Web.DE> writes:
>
>> Am 11.08.2006 um 12:41 schrieb <C.Strobl@dlr.de>:
>>
>>> 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
  =================================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]