unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 13032@debbugs.gnu.org
Subject: bug#13032: 24.3.50; Request: Provide a `delete-duplicate-lines' command
Date: Thu, 29 Nov 2012 22:43:53 +0100	[thread overview]
Message-ID: <CAH8Pv0ipUNOg2=RHrdt6NWt+A=++tZ0KMKkku7zEV-Lh0j01hA@mail.gmail.com> (raw)
In-Reply-To: <CAAeL0SRWa8ztiM1OvsbaZ2CyoLv00-3dhABK+9JVoDG_5kZ=Yw@mail.gmail.com>

> Perhaps you can work from this (not very well tested):

Thank you Juanma.  I've given it a quick try and it seems to work.

I've only seen a minor detail that I don't like: when the command does
nothing (because there are no consecutive duplicate lines), the region
remains active.  But this is a general problem in Emacs which I've
already complained about (bug #10056).  IMO, the mark should be
deactivated after every command that operates on the active region,
without regard to whether the buffer was changed or not.  There could
be some exception, but this should be the general principle.

I'll put your version in my init file for now, while the maintainers
decide whether it is appropriate to add this command to Emacs or not.

Thanks.

-- 
Dani Moncayo





  reply	other threads:[~2012-11-29 21:43 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29 19:23 bug#13032: 24.3.50; Request: Provide a `delete-duplicate-lines' command Dani Moncayo
2012-11-29 20:49 ` Juanma Barranquero
2012-11-29 21:43   ` Dani Moncayo [this message]
2012-11-29 22:45     ` Juanma Barranquero
2012-11-30  0:31 ` Juri Linkov
2012-11-30  0:46   ` Juanma Barranquero
2012-11-30  0:50     ` Juanma Barranquero
2012-11-30  0:57       ` Juri Linkov
2012-11-30  1:02         ` Juanma Barranquero
2012-11-30  1:12     ` Juri Linkov
2012-11-30  7:51       ` Dani Moncayo
2012-12-01  0:34         ` Juri Linkov
2012-12-01  9:08           ` Dani Moncayo
2012-12-01  9:22             ` Dani Moncayo
2012-12-02  0:45             ` Juri Linkov
2012-12-02  9:13               ` Dani Moncayo
2012-12-03 23:49                 ` Juri Linkov
2012-12-04  0:05                   ` Juri Linkov
2012-12-04  9:13                     ` Dani Moncayo
2012-12-04 23:51                       ` Juri Linkov
2012-12-05  8:08                         ` Dani Moncayo
2012-11-30  7:51   ` Dani Moncayo
2012-12-04  7:04     ` Thierry Volpiatto
2012-12-04 14:46       ` Stefan Monnier
2012-12-04 15:02         ` Thierry Volpiatto

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='CAH8Pv0ipUNOg2=RHrdt6NWt+A=++tZ0KMKkku7zEV-Lh0j01hA@mail.gmail.com' \
    --to=dmoncayo@gmail.com \
    --cc=13032@debbugs.gnu.org \
    --cc=lekktu@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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