diff options
| author | Glenn Morris | 2012-11-10 17:16:25 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-11-10 17:16:25 -0800 |
| commit | 57fc0fee5fd12dd5b43323d127fea62040c01c79 (patch) | |
| tree | 7f00e1a6b890d786c36cae199b70f10a48cdea8c | |
| parent | 164f28b577c860f9a48733952fb5baaf8826eb9d (diff) | |
| download | emacs-57fc0fee5fd12dd5b43323d127fea62040c01c79.tar.gz emacs-57fc0fee5fd12dd5b43323d127fea62040c01c79.zip | |
Document debugger-bury-or-kill
* doc/lispref/debugging.texi (Using Debugger): Mention debugger-bury-or-kill.
* lisp/emacs-lisp/debug.el (debugger-bury-or-kill): Doc tweak.
* etc/NEWS: Related edit.
| -rw-r--r-- | doc/lispref/ChangeLog | 1 | ||||
| -rw-r--r-- | doc/lispref/debugging.texi | 9 | ||||
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 6 |
5 files changed, 16 insertions, 6 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 0016258bcb5..9d101722388 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | 2012-11-11 Glenn Morris <rgm@gnu.org> | 1 | 2012-11-11 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * debugging.texi (Error Debugging): Mention debug-on-message. | 3 | * debugging.texi (Error Debugging): Mention debug-on-message. |
| 4 | (Using Debugger): Mention debugger-bury-or-kill. | ||
| 4 | 5 | ||
| 5 | * control.texi (Signaling Errors): | 6 | * control.texi (Signaling Errors): |
| 6 | * debugging.texi (Error Debugging): | 7 | * debugging.texi (Error Debugging): |
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index 9a43cfeac5d..11532b19781 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi | |||
| @@ -322,6 +322,7 @@ is a message describing the reason that the debugger was invoked (such | |||
| 322 | as the error message and associated data, if it was invoked due to an | 322 | as the error message and associated data, if it was invoked due to an |
| 323 | error). | 323 | error). |
| 324 | 324 | ||
| 325 | @vindex debugger-bury-or-kill | ||
| 325 | The backtrace buffer is read-only and uses a special major mode, | 326 | The backtrace buffer is read-only and uses a special major mode, |
| 326 | Debugger mode, in which letters are defined as debugger commands. The | 327 | Debugger mode, in which letters are defined as debugger commands. The |
| 327 | usual Emacs editing commands are available; thus, you can switch windows | 328 | usual Emacs editing commands are available; thus, you can switch windows |
| @@ -330,8 +331,12 @@ switch buffers, visit files, or do any other sort of editing. However, | |||
| 330 | the debugger is a recursive editing level (@pxref{Recursive Editing}) | 331 | the debugger is a recursive editing level (@pxref{Recursive Editing}) |
| 331 | and it is wise to go back to the backtrace buffer and exit the debugger | 332 | and it is wise to go back to the backtrace buffer and exit the debugger |
| 332 | (with the @kbd{q} command) when you are finished with it. Exiting | 333 | (with the @kbd{q} command) when you are finished with it. Exiting |
| 333 | the debugger gets out of the recursive edit and kills the backtrace | 334 | the debugger gets out of the recursive edit and buries the backtrace |
| 334 | buffer. | 335 | buffer. (You can customize what the @kbd{q} command does with the |
| 336 | backtrace buffer by setting the variable @code{debugger-bury-or-kill}. | ||
| 337 | For example, set it to @code{kill} if you prefer to kill the buffer | ||
| 338 | rather than bury it. Consult the variable's documentation for more | ||
| 339 | possibilities.) | ||
| 335 | 340 | ||
| 336 | When the debugger has been entered, the @code{debug-on-error} | 341 | When the debugger has been entered, the @code{debug-on-error} |
| 337 | variable is temporarily set according to | 342 | variable is temporarily set according to |
| @@ -804,7 +804,9 @@ table, but with a different prefix. | |||
| 804 | *** New error type and new function `user-error'. | 804 | *** New error type and new function `user-error'. |
| 805 | These do not trigger the debugger. | 805 | These do not trigger the debugger. |
| 806 | 806 | ||
| 807 | *** New option `debugger-bury-or-kill'. | 807 | +++ |
| 808 | *** New option `debugger-bury-or-kill', saying what to do with the | ||
| 809 | debugger buffer when exiting debug. | ||
| 808 | 810 | ||
| 809 | +++ | 811 | +++ |
| 810 | *** Set `debug-on-message' to enter the debugger when a certain | 812 | *** Set `debug-on-message' to enter the debugger when a certain |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0207a4f903f..d7f86f510c5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-11-11 Glenn Morris <rgm@gnu.org> | 1 | 2012-11-11 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * emacs-lisp/debug.el (debugger-bury-or-kill): Doc tweak. | ||
| 4 | |||
| 3 | * help.el (temp-buffer-max-height): | 5 | * help.el (temp-buffer-max-height): |
| 4 | * window.el (fit-frame-to-buffer, fit-frame-to-buffer-bottom-margin): | 6 | * window.el (fit-frame-to-buffer, fit-frame-to-buffer-bottom-margin): |
| 5 | * emacs-lisp/debug.el (debugger-bury-or-kill): Fix :version. | 7 | * emacs-lisp/debug.el (debugger-bury-or-kill): Fix :version. |
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 1117d11e07e..6be30fc9164 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -49,9 +49,9 @@ the middle is discarded, and just the beginning and end are displayed." | |||
| 49 | :version "21.1") | 49 | :version "21.1") |
| 50 | 50 | ||
| 51 | (defcustom debugger-bury-or-kill 'bury | 51 | (defcustom debugger-bury-or-kill 'bury |
| 52 | "How to proceed with the debugger buffer when exiting `debug'. | 52 | "What to do with the debugger buffer when exiting `debug'. |
| 53 | The value used here affects the behavior of operations on any | 53 | The value affects the behavior of operations on any window |
| 54 | window previously showing the debugger buffer. | 54 | previously showing the debugger buffer. |
| 55 | 55 | ||
| 56 | `nil' means that if its window is not deleted when exiting the | 56 | `nil' means that if its window is not deleted when exiting the |
| 57 | debugger, invoking `switch-to-prev-buffer' will usually show | 57 | debugger, invoking `switch-to-prev-buffer' will usually show |