]> git.eshelyaron.com Git - emacs.git/commitdiff
Document debugger-bury-or-kill
authorGlenn Morris <rgm@gnu.org>
Sun, 11 Nov 2012 01:16:25 +0000 (17:16 -0800)
committerGlenn Morris <rgm@gnu.org>
Sun, 11 Nov 2012 01:16:25 +0000 (17:16 -0800)
* 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.

doc/lispref/ChangeLog
doc/lispref/debugging.texi
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/debug.el

index 0016258bcb5b6b8662d8eb4f09f1008d884fd9bb..9d1017223886dbd19f40def7450c3a85403ed286 100644 (file)
@@ -1,6 +1,7 @@
 2012-11-11  Glenn Morris  <rgm@gnu.org>
 
        * debugging.texi (Error Debugging): Mention debug-on-message.
+       (Using Debugger): Mention debugger-bury-or-kill.
 
        * control.texi (Signaling Errors):
        * debugging.texi (Error Debugging):
index 9a43cfeac5d3ac4c81234406f249a4061cc29498..11532b19781e108f41696e8f6bf4fe3d19d973c7 100644 (file)
@@ -322,6 +322,7 @@ is a message describing the reason that the debugger was invoked (such
 as the error message and associated data, if it was invoked due to an
 error).
 
+@vindex debugger-bury-or-kill
   The backtrace buffer is read-only and uses a special major mode,
 Debugger mode, in which letters are defined as debugger commands.  The
 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,
 the debugger is a recursive editing level (@pxref{Recursive Editing})
 and it is wise to go back to the backtrace buffer and exit the debugger
 (with the @kbd{q} command) when you are finished with it.  Exiting
-the debugger gets out of the recursive edit and kills the backtrace
-buffer.
+the debugger gets out of the recursive edit and buries the backtrace
+buffer.  (You can customize what the @kbd{q} command does with the
+backtrace buffer by setting the variable @code{debugger-bury-or-kill}.
+For example, set it to @code{kill} if you prefer to kill the buffer
+rather than bury it.  Consult the variable's documentation for more
+possibilities.)
 
   When the debugger has been entered, the @code{debug-on-error}
 variable is temporarily set according to
index 42c639ef25bd4d088a67a62ed6b7b85c5d920ac7..26707315da61fb2be59541e1ef3be8dab13b1fa3 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -804,7 +804,9 @@ table, but with a different prefix.
 *** New error type and new function `user-error'.
 These do not trigger the debugger.
 
-*** New option `debugger-bury-or-kill'.
++++
+*** New option `debugger-bury-or-kill', saying what to do with the
+debugger buffer when exiting debug.
 
 +++
 *** Set `debug-on-message' to enter the debugger when a certain
index 0207a4f903f15b177f23f0d4a5b2bd857dded359..d7f86f510c5970d17128d037b27f611b289512fa 100644 (file)
@@ -1,5 +1,7 @@
 2012-11-11  Glenn Morris  <rgm@gnu.org>
 
+       * emacs-lisp/debug.el (debugger-bury-or-kill): Doc tweak.
+
        * help.el (temp-buffer-max-height):
        * window.el (fit-frame-to-buffer, fit-frame-to-buffer-bottom-margin):
        * emacs-lisp/debug.el (debugger-bury-or-kill): Fix :version.
index 1117d11e07e540725b9b210443cf35821e097c99..6be30fc916421cea8367fc89b4eb7081c31913b7 100644 (file)
@@ -49,9 +49,9 @@ the middle is discarded, and just the beginning and end are displayed."
   :version "21.1")
 
 (defcustom debugger-bury-or-kill 'bury
-  "How to proceed with the debugger buffer when exiting `debug'.
-The value used here affects the behavior of operations on any
-window previously showing the debugger buffer.
+  "What to do with the debugger buffer when exiting `debug'.
+The value affects the behavior of operations on any window
+previously showing the debugger buffer.
 
 `nil' means that if its window is not deleted when exiting the
   debugger, invoking `switch-to-prev-buffer' will usually show