diff options
| author | Glenn Morris | 2012-11-10 16:58:51 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-11-10 16:58:51 -0800 |
| commit | 164f28b577c860f9a48733952fb5baaf8826eb9d (patch) | |
| tree | 1741319878fbccdd01d16590ffab5a4a5e10a282 | |
| parent | 6ba6a3e51f72d00d89583b86349b918b5ff3e793 (diff) | |
| download | emacs-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/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/lispref/debugging.texi | 8 | ||||
| -rw-r--r-- | etc/NEWS | 1 |
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 @@ | |||
| 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. | ||
| 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 | ||
| 168 | If you set @code{debug-on-message} to a regular expression, | ||
| 169 | Emacs will enter the debugger if it displays a matching message in the | ||
| 170 | echo area. For example, this can be useful when trying to find the | ||
| 171 | cause 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 |
| 167 | file, use the option @samp{--debug-init}. This binds | 175 | file, 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 |
| @@ -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 |
| 810 | message is displayed in the echo area. This can be useful when trying | 811 | message is displayed in the echo area. This can be useful when trying |
| 811 | to work out which code is doing something. | 812 | to work out which code is doing something. |