Subject: bug#13032: 24.3.50; Request: Provide a `delete-duplicate-lines' command

From: Thierry Volpiatto <[email-masked]>
Date: Tue, 04 Dec 2012 16:02:17 +0100

Stefan Monnier <[email-masked]> writes:

>>       (let ((lines (helm-fast-remove-dups
>>                     (split-string (buffer-string) "\n" t)
>>                     :test 'equal)))
>>         (delete-region (point-min) (point-max))
>>         (loop for l in lines do (insert (concat l "\n")))))))
>
> The inconvenient with this version is that any overlays/markers will
> be lost, and the buffer will be marked as modified even if there were no
> duplicate lines.
Ok, was just for info on a fast alternative without such enhancements.

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997