# HG changeset patch # User Oleksandr Gavenko # Date 1255286162 -10800 # Node ID 5715a5193fd4e1d0571381cea07f5f0cecdddee5 # Parent 80999c1fc49d4d4d5b0b9dac25e6558917a9387a Sort and uniquify lines. diff -r 80999c1fc49d -r 5715a5193fd4 emacs.rst --- a/emacs.rst Sun Oct 04 22:09:01 2009 +0300 +++ b/emacs.rst Sun Oct 11 21:36:02 2009 +0300 @@ -57,3 +57,13 @@ http://en.wikipedia.org/wiki/W3m http://emacs-w3m.namazu.org/ http://www.gnu.org/software/w3/ + +* Tricks. + +** Sort and uniquify lines. + +Select region, type C-u M-| sort -u RET. + +With transient-mark-mode and delete-selection-mode enabled: select region, +type M-| sort -u RET to replace selection with sorted and uniquified lines. +