aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-11-10 16:58:51 -0800
committerGlenn Morris2012-11-10 16:58:51 -0800
commit164f28b577c860f9a48733952fb5baaf8826eb9d (patch)
tree1741319878fbccdd01d16590ffab5a4a5e10a282
parent6ba6a3e51f72d00d89583b86349b918b5ff3e793 (diff)
downloademacs-164f28b577c860f9a48733952fb5baaf8826eb9d.tar.gz
emacs-164f28b577c860f9a48733952fb5baaf8826eb9d.zip
* doc/lispref/debugging.texi (Error Debugging): Mention debug-on-message.
* etc/NEWS: Related markup.
-rw-r--r--doc/lispref/ChangeLog2
-rw-r--r--doc/lispref/debugging.texi8
-rw-r--r--etc/NEWS1
3 files changed, 11 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index bc48f74401f..0016258bcb5 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,5 +1,7 @@
12012-11-11 Glenn Morris <rgm@gnu.org> 12012-11-11 Glenn Morris <rgm@gnu.org>
2 2
3 * debugging.texi (Error Debugging): Mention debug-on-message.
4
3 * control.texi (Signaling Errors): 5 * control.texi (Signaling Errors):
4 * debugging.texi (Error Debugging): 6 * debugging.texi (Error Debugging):
5 * errors.texi (Standard Errors): Add user-error. 7 * errors.texi (Standard Errors): Add user-error.
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi
index 74000c2ba66..9a43cfeac5d 100644
--- a/doc/lispref/debugging.texi
+++ b/doc/lispref/debugging.texi
@@ -163,6 +163,14 @@ supported values correspond to the signals @code{SIGUSR1} and
163@code{inhibit-quit} is set and Emacs is not otherwise responding. 163@code{inhibit-quit} is set and Emacs is not otherwise responding.
164@end defopt 164@end defopt
165 165
166@cindex message, finding what causes a particular message
167@defvar debug-on-message
168If you set @code{debug-on-message} to a regular expression,
169Emacs will enter the debugger if it displays a matching message in the
170echo area. For example, this can be useful when trying to find the
171cause of a particular message.
172@end defvar
173
166 To debug an error that happens during loading of the init 174 To debug an error that happens during loading of the init
167file, use the option @samp{--debug-init}. This binds 175file, use the option @samp{--debug-init}. This binds
168@code{debug-on-error} to @code{t} while loading the init file, and 176@code{debug-on-error} to @code{t} while loading the init file, and
diff --git a/etc/NEWS b/etc/NEWS
index 6ab23a4239d..42c639ef25b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -806,6 +806,7 @@ These do not trigger the debugger.
806 806
807*** New option `debugger-bury-or-kill'. 807*** New option `debugger-bury-or-kill'.
808 808
809+++
809*** Set `debug-on-message' to enter the debugger when a certain 810*** Set `debug-on-message' to enter the debugger when a certain
810message is displayed in the echo area. This can be useful when trying 811message is displayed in the echo area. This can be useful when trying
811to work out which code is doing something. 812to work out which code is doing something.