# HG changeset patch # User Oleksandr Gavenko # Date 1255684504 -10800 # Node ID 10d0d94eabde00204c107a5077e5ddc47d905171 # Parent 9ae36e91b0d099c80a071ace8dca45ee74dfecd2# Parent a6a5839b742399512c301a7ef03c5ef5950103ca Automated merge with file:///d:\srv\hg-home\admin-doc diff -r a6a5839b7423 -r 10d0d94eabde emacs.rst --- a/emacs.rst Fri Oct 16 12:06:49 2009 +0300 +++ b/emacs.rst Fri Oct 16 12:15:04 2009 +0300 @@ -20,7 +20,7 @@ Execute 'M-x edebug-defun' (also on 'C-u C-M-x') on defun in source code to enable debugging for desired function. When next time this function invoked -you entered to its debugging (jamped to its source code). +you entered to its debugging (jumped to its source code). To start debug execute code which used debugged function. @@ -36,7 +36,7 @@ ** How debug ini file? -When your InitFile has a bug, or when you load external files that cause +When your ini has a bug, or when you load external files that cause errors, the bug is often hard to find, because the Emacs Lisp reader does not know about line numbers and files - it just knows an error happened, and that's it. @@ -71,3 +71,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. +