# HG changeset patch # User Oleksandr Gavenko # Date 1492238517 -10800 # Node ID 754abf10c819d7d5854fadd9aa6a0d1a34138907 # Parent 3afe57643e445e2ee10e4124eab63a024f66e0e4 Fixed wording. diff -r 3afe57643e44 -r 754abf10c819 emacs.rst --- a/emacs.rst Mon Apr 10 14:29:04 2017 +0300 +++ b/emacs.rst Sat Apr 15 09:41:57 2017 +0300 @@ -99,10 +99,9 @@ How debug func? --------------- -Use M-x debug-on-entry and M-x cancel-debug-on-entry to control -which functions will enter the debugger when called. - -When next time that function called automatically loaded debug-mode. +Use ``M-x debug-on-entry`` and ``M-x cancel-debug-on-entry`` to control which +functions will enter the debugger when called. Next time that function loaded in +debug-mode. You can use ``(debug)`` in your function to automatically enter to debugger. @@ -120,8 +119,11 @@ How debug long running command? ------------------------------- -``M-x debug-on-quit RET`` and then just hit ``C-g`` next time it gets ``stuck`` -somewhere. +Remember Emacs elisp interpreter single threaded. To interrupt long running +command press ``C-g``. Sometime it should be typed several times. + +On ``toggle-debug-on-quit`` or ``M-x debug-on-quit RET`` on ``C-g`` Emacs enter +to debug mode. Check if bug in ini file not in Emacs itself. ---------------------------------------------