emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#13032: closed (24.3.50; Request: Provide a `delete


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#13032: closed (24.3.50; Request: Provide a `delete-duplicate-lines' command)
Date: Mon, 03 Dec 2012 23:53:02 +0000

Your message dated Tue, 04 Dec 2012 01:49:29 +0200
with message-id <address@hidden>
and subject line Re: bug#13032: 24.3.50; Request: Provide a 
`delete-duplicate-lines' command
has caused the debbugs.gnu.org bug report #13032,
regarding 24.3.50; Request: Provide a `delete-duplicate-lines' command
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
13032: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13032
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; Request: Provide a `delete-duplicate-lines' command Date: Thu, 29 Nov 2012 20:23:16 +0100
Severity: wishlist

Recent versions of MS-Excel and also LibreOffice's Calc have a feature
that I find very useful: the ability of remove duplicate lines from a
given list (range).  I think it would be worth to add such a feature
to Emacs.

That is: provide a function `delete-duplicate-lines' (or some such)
that removes all duplicate lines in the active region and prints in
the echo area a message like "Duplicate lines removed: <n>".

TIA.

PS: There has been some discussion about this in this thread:
http://lists.gnu.org/archive/html/help-gnu-emacs/2012-11/msg00417.html.
 Jambunathan K provided a possible implementation, but it lacks the
message in the echo area (which I think is important).


In GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601)
 of 2012-11-28 on MS-W7-DANI
Bzr revision: 111021 address@hidden
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -Ic:/emacs/libs/libXpm-3.5.10/include -Ic:/emacs/libs/libXpm-3.5.10/src
 -Ic:/emacs/libs/libpng-1.2.37-lib/include -Ic:/emacs/libs/zlib-1.2.5
 -Ic:/emacs/libs/giflib-4.1.4-1-lib/include
 -Ic:/emacs/libs/jpeg-6b-4-lib/include
 -Ic:/emacs/libs/tiff-3.8.2-1-lib/include
 -Ic:/emacs/libs/libxml2-2.7.8-w32-bin/include/libxml2
 -Ic:/emacs/libs/gnutls-3.0.9-w32-bin/include
 -Ic:/emacs/libs/libiconv-1.9.2-1-lib/include'

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

-- 
Dani Moncayo



--- End Message ---
--- Begin Message --- Subject: Re: bug#13032: 24.3.50; Request: Provide a `delete-duplicate-lines' command Date: Tue, 04 Dec 2012 01:49:29 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)
>> The ADJACENT argument is an optimization that doesn't require
>> additional memory (to store previous lines in the cache).
>> This is necessary when the user needs to delete duplicate lines
>> in a large sorted file.
>
> Ah, good point.  I guess that the optimization is twofold: in memory
> and also in performance.  Then, IMO this should be explained in the
> docstring, so that users know that they should use this feature when
> running this command over a large chunk of lines.

Thanks for the suggestion, I added this as well.


--- End Message ---

reply via email to

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