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

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

Re: Removing duplicated lines


From: Dani Moncayo
Subject: Re: Removing duplicated lines
Date: Thu, 29 Nov 2012 13:07:51 +0100

>> Thanks, but this is not exactly what I'd like, because:
>> * It depends on a shell command, which might not be available
>> (specially under MS-Windows).
>
> True. But if you have Emacs on Windows, you can (should?) also have
> UnxUtils or GnuWin32 or Cygwin or msys.

Maybe.  IMO, the operation is simple and common enough to deserve and
implementation inside Emacs, so that no external utility is required.
And Emacs already have similar commands like `sort-lines' which could
have been delegated also to external tools.

>> * It shows the compacted region in the echo area (and therefore also
>> in the *Messages* buffer), but I'd like the command to modify the
>> region in-place (and show some message in the echo area like "nn
>> duplicated lines removed").
>
> To modify in-place, prefix with C-u.

Indeed, thanks!

-- 
Dani Moncayo



reply via email to

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