|
From: | Thierry Volpiatto |
Subject: | bug#13032: 24.3.50; Request: Provide a `delete-duplicate-lines' command |
Date: | Tue, 04 Dec 2012 16:02:17 +0100 |
User-agent: | Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.90 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> 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
[Prev in Thread] | Current Thread | [Next in Thread] |