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

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

Re: Removing duplicated lines


From: Yuri Khan
Subject: Re: Removing duplicated lines
Date: Thu, 29 Nov 2012 17:57:45 +0600

On Thu, Nov 29, 2012 at 6:25 PM, Dani Moncayo <dmoncayo@gmail.com> wrote:
>> Shell command on a region: `M-| uniq RET'
>
> 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.

> * 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.



reply via email to

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