emacs.rst
changeset 798 c5cff695aec7
parent 797 11928bb0b66d
child 799 4052d3b154d8
equal deleted inserted replaced
797:11928bb0b66d 798:c5cff695aec7
    74 
    74 
    75 Select half of the file in a region, and M-x eval-region. Depending on whether
    75 Select half of the file in a region, and M-x eval-region. Depending on whether
    76 that causes the error or not, split this half or the other half again, and
    76 that causes the error or not, split this half or the other half again, and
    77 repeat.
    77 repeat.
    78 
    78 
       
    79 *** Simplified Binary Search.
       
    80 
       
    81 Add (error 'No error until here') in the middle of your file. If you get the
       
    82 error 'No error until here' when reloading the file, move the expression
       
    83 towards the back of the file, otherwise towards the front of the file.
       
    84 
    79 ** Elisp debug tips.
    85 ** Elisp debug tips.
    80 
    86 
    81  - Use a keyboard macro that moves forward one expression (sexp) and evaluates
    87  - Use a keyboard macro that moves forward one expression (sexp) and evaluates
    82    it.
    88    it.
    83  - Try C-x check-parens.
    89  - Try C-x check-parens.
    93   $ emacs --debug-init
    99   $ emacs --debug-init
    94 
   100 
    95 '--debug-init' which binds 'debug-on-error' to 't' while loading the init
   101 '--debug-init' which binds 'debug-on-error' to 't' while loading the init
    96 file, and bypasses the `condition-case' which normally catches errors in the
   102 file, and bypasses the `condition-case' which normally catches errors in the
    97 init file.
   103 init file.
    98 
       
    99 *** Simplified Binary Search.
       
   100 
       
   101 Add (error 'No error until here') in the middle of your file. If you get the
       
   102 error 'No error until here' when reloading the file, move the expression
       
   103 towards the back of the file, otherwise towards the front of the file.
       
   104 
   104 
   105 ** Call tree.
   105 ** Call tree.
   106 
   106 
   107 Before byte compiling file execute
   107 Before byte compiling file execute
   108 
   108