unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Removing duplicated lines
Date: Thu, 29 Nov 2012 13:07:51 +0100	[thread overview]
Message-ID: <CAH8Pv0gdzJFfrSVowbDsMjQASNvHsr6ay4vD_-yRjR9cLo4WmA@mail.gmail.com> (raw)
In-Reply-To: <CAP_d_8WmdS=4cumNO69Z0JKF5zySR2WOhvZAF6eLuws7bic+rQ@mail.gmail.com>

>> 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	other threads:[~2012-11-29 12:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.14043.1354186273.855.help-gnu-emacs@gnu.org>
2012-11-29 11:06 ` Removing duplicated lines Sebastien Vauban
2012-11-29 11:25   ` Dani Moncayo
2012-11-29 11:57     ` Yuri Khan
2012-11-29 12:07       ` Dani Moncayo [this message]
     [not found]     ` <mailman.14047.1354190273.855.help-gnu-emacs@gnu.org>
2013-07-03 12:13       ` naisanza
2012-11-29 11:31   ` Yuri Khan
2013-07-03 12:14   ` naisanza
2012-11-29 10:50 Dani Moncayo
2012-11-29 12:12 ` Jambunathan K
2012-11-29 12:18   ` Dani Moncayo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH8Pv0gdzJFfrSVowbDsMjQASNvHsr6ay4vD_-yRjR9cLo4WmA@mail.gmail.com \
    --to=dmoncayo@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=yuri.v.khan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).