diff options
author | Glenn Morris <rgm@gnu.org> | 2012-11-12 18:25:59 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2012-11-12 18:25:59 -0800 |
commit | f78ee6afc094cdfd6162bfd645836e84875dcddf (patch) | |
tree | 3a2c4f5d6441e53adadb69ed2af0b64abf3cf239 /doc | |
parent | b95a9c0cba301ef8f1920a1d123ccd6873c14a63 (diff) | |
parent | f8705f6e3102454bf1e3213956eb3ac8160ff047 (diff) | |
download | emacs-f78ee6afc094cdfd6162bfd645836e84875dcddf.tar.gz |
Merge from emacs-24; up to 2012-11-09T14:45:15Z!dmantipov@yandex.ru
Diffstat (limited to 'doc')
-rw-r--r-- | doc/emacs/ChangeLog | 9 | ||||
-rw-r--r-- | doc/emacs/building.texi | 4 | ||||
-rw-r--r-- | doc/emacs/misc.texi | 10 | ||||
-rw-r--r-- | doc/lispref/ChangeLog | 15 | ||||
-rw-r--r-- | doc/lispref/control.texi | 13 | ||||
-rw-r--r-- | doc/lispref/debugging.texi | 29 | ||||
-rw-r--r-- | doc/lispref/errors.texi | 3 | ||||
-rw-r--r-- | doc/lispref/variables.texi | 34 | ||||
-rw-r--r-- | doc/misc/ChangeLog | 6 | ||||
-rw-r--r-- | doc/misc/flymake.texi | 20 |
10 files changed, 117 insertions, 26 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index f6d536a08d1..fbdb6363b34 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,3 +1,12 @@ +2012-11-13 Chong Yidong <cyd@gnu.org> + + * building.texi (Multithreaded Debugging): gdb-stopped-hooks is + actually named gdb-stopped-functions. + +2012-11-13 Glenn Morris <rgm@gnu.org> + + * misc.texi (Single Shell): Mention async-shell-command-buffer. + 2012-11-10 Glenn Morris <rgm@gnu.org> * misc.texi (Terminal emulator): Rename `term-face' to `term'. diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 3a3630138de..e0ea72902fb 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi @@ -1244,8 +1244,8 @@ depending on the reason which caused the stop. Customize the variable @code{gdb-switch-reasons} to select the stop reasons which will cause a thread switch. -@vindex gdb-stopped-hooks - The variable @code{gdb-stopped-hooks} allows you to execute your +@vindex gdb-stopped-functions + The variable @code{gdb-stopped-functions} allows you to execute your functions whenever some thread stops. In non-stop mode, you can switch between different modes for GUD diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 244920a23ae..1836c1982e6 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -542,11 +542,19 @@ which is impossible to ignore. You can also type @kbd{M-&} (@code{async-shell-command}) to execute a shell command asynchronously; this is exactly like calling @kbd{M-!} with a trailing @samp{&}, except that you do not need the @samp{&}. -The output buffer for asynchronous shell commands is named +The default output buffer for asynchronous shell commands is named @samp{*Async Shell Command*}. Emacs inserts the output into this buffer as it comes in, whether or not the buffer is visible in a window. +@vindex async-shell-command-buffer + If you want to run more than one asynchronous shell command at the +same time, they could end up competing for the output buffer. The +option @code{async-shell-command-buffer} specifies what to do about +this; e.g., whether to rename the pre-existing output buffer, or to +use a different buffer for the new command. Consult the variable's +documentation for more possibilities. + @kindex M-| @findex shell-command-on-region @kbd{M-|} (@code{shell-command-on-region}) is like @kbd{M-!}, but diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 7eb75ceac55..6d6ddf4da9a 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,18 @@ +2012-11-13 Glenn Morris <rgm@gnu.org> + + * variables.texi (Adding Generalized Variables): + At least mention gv-define-expander and gv-letplace. + + * debugging.texi (Error Debugging): Mention debug-on-message. + (Using Debugger): Mention debugger-bury-or-kill. + + * control.texi (Signaling Errors): + * debugging.texi (Error Debugging): + * errors.texi (Standard Errors): Add user-error. + + * variables.texi (Adding Generalized Variables): + Use standard formatting for common lisp note about setf functions. + 2012-11-10 Martin Rudalics <rudalics@gmx.at> * elisp.texi (Top): Add Recombining Windows to menu. diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi index cf393b59c49..489e5cc5b22 100644 --- a/doc/lispref/control.texi +++ b/doc/lispref/control.texi @@ -824,6 +824,19 @@ The function @code{signal} never returns. @end example @end defun +@cindex user errors, signaling +@defun user-error format-string &rest args +This function behaves exactly like @code{error}, except that it uses +the error symbol @code{user-error} rather than @code{error}. As the +name suggests, this is intended to report errors on the part of the +user, rather than errors in the code itself. For example, +if you try to use the command @code{Info-history-back} (@kbd{l}) to +move back beyond the start of your Info browsing history, Emacs +signals a @code{user-error}. Such errors do not cause entry to the +debugger, even when @code{debug-on-error} is non-@code{nil}. +@xref{Error Debugging}. +@end defun + @cindex CL note---no continuable errors @quotation @b{Common Lisp note:} Emacs Lisp has nothing like the Common Lisp diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index 2226db942d1..11532b19781 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi @@ -117,12 +117,12 @@ has any of those condition symbols, or if the error message matches any of the regular expressions, then that error does not enter the debugger. -The normal value of this variable lists several errors that happen -often during editing but rarely result from bugs in Lisp programs. -However, ``rarely'' is not ``never''; if your program fails with an -error that matches this list, you may try changing this list to debug -the error. The easiest way is usually to set -@code{debug-ignored-errors} to @code{nil}. +The normal value of this variable includes @code{user-error}, as well +as several errors that happen often during editing but rarely result +from bugs in Lisp programs. However, ``rarely'' is not ``never''; if +your program fails with an error that matches this list, you may try +changing this list to debug the error. The easiest way is usually to +set @code{debug-ignored-errors} to @code{nil}. @end defopt @defopt eval-expression-debug-on-error @@ -163,6 +163,14 @@ supported values correspond to the signals @code{SIGUSR1} and @code{inhibit-quit} is set and Emacs is not otherwise responding. @end defopt +@cindex message, finding what causes a particular message +@defvar debug-on-message +If you set @code{debug-on-message} to a regular expression, +Emacs will enter the debugger if it displays a matching message in the +echo area. For example, this can be useful when trying to find the +cause of a particular message. +@end defvar + To debug an error that happens during loading of the init file, use the option @samp{--debug-init}. This binds @code{debug-on-error} to @code{t} while loading the init file, and @@ -314,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 @@ -322,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 diff --git a/doc/lispref/errors.texi b/doc/lispref/errors.texi index a57f74d6c86..b92fd9ed665 100644 --- a/doc/lispref/errors.texi +++ b/doc/lispref/errors.texi @@ -172,6 +172,9 @@ The message is @samp{Text is read-only}. This is a subcategory of @item undefined-color The message is @samp{Undefined color}. @xref{Color Names}. +@item user-error +The message is the empty string. @xref{Signaling Errors}. + @item void-function The message is @samp{Symbol's function definition is void}. @xref{Function Cells}. diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index c8451527d4f..dfde3c45c04 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi @@ -2133,20 +2133,24 @@ set. An example of using this macro is: @end example @end defmac -@c FIXME? Not sure what, if anything, to say about this. -@ignore -@defmac gv-define-expander name handler -This is the most general way to define a new @code{setf} expansion. -@end defmac -@end ignore +@findex gv-define-expander +@findex gv-letplace +@c FIXME? Not sure what or how much to say about these. +@c See cl.texi for an example of using gv-letplace. +For more control over the expansion, see the macro @code{gv-define-expander}. +The macro @code{gv-letplace} can be useful in defining macros that +perform similarly to @code{setf}; for example, the @code{incf} macro +of Common Lisp. Consult the source file @file{gv.el} for more details. @cindex CL note---no @code{setf} functions -Common Lisp defines another way to specify the @code{setf} behavior of -a function, namely ``@code{setf} functions'', whose names are lists -@code{(setf @var{name})} rather than symbols. For example, -@code{(defun (setf foo) @dots{})} defines the function that is used -when @code{setf} is applied to @code{foo}. Emacs does not support -this. It is a compile-time error to use @code{setf} on a form that -has not already had an appropriate expansion defined. In Common Lisp, -this is not an error since the function @code{(setf @var{func})} might -be defined later. +@quotation +@b{Common Lisp note:} Common Lisp defines another way to specify the +@code{setf} behavior of a function, namely ``@code{setf} functions'', +whose names are lists @code{(setf @var{name})} rather than symbols. +For example, @code{(defun (setf foo) @dots{})} defines the function +that is used when @code{setf} is applied to @code{foo}. Emacs does +not support this. It is a compile-time error to use @code{setf} on a +form that has not already had an appropriate expansion defined. In +Common Lisp, this is not an error since the function @code{(setf +@var{func})} might be defined later. +@end quotation diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index bfe58fe0a88..7322613e0db 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog @@ -1,3 +1,9 @@ +2012-11-13 Glenn Morris <rgm@gnu.org> + + * flymake.texi (Customizable variables) + (Highlighting erroneous lines): Mention flymake-error-bitmap, + flymake-warning-bitmap, and flymake-fringe-indicator-position. + 2012-11-12 Vincent Belaïche <vincentb1@users.sourceforge.net> * ses.texi: Doc for ses-rename-cell, ses-repair-cell-reference-all & ses-range. diff --git a/doc/misc/flymake.texi b/doc/misc/flymake.texi index 28fb7864f06..4a873490e86 100644 --- a/doc/misc/flymake.texi +++ b/doc/misc/flymake.texi @@ -337,6 +337,17 @@ been reported. A custom face for highlighting lines for which at least one warning and no errors have been reported. +@item flymake-error-bitmap +A bitmap used in the fringe to mark lines for which an error has +been reported. + +@item flymake-warning-bitmap +A bitmap used in the fringe to mark lines for which a warning has +been reported. + +@item flymake-fringe-indicator-position +Which fringe (if any) should show the warning/error bitmaps. + @end table @node Adding support for a new syntax check tool @@ -718,6 +729,15 @@ are used: @code{flymake-errline} and @code{flymake-warnline}. Errors belonging outside the current buffer are considered to belong to line 1 of the current buffer. +@c This manual does not use vindex. +@c @vindex flymake-fringe-indicator-position +@c @vindex flymake-error-bitmap +@c @vindex flymake-warning-bitmap +If the option @code{flymake-fringe-indicator-position} is non-@code{nil}, +errors and warnings are also highlighted in the left or right fringe, +using the bitmaps specified by @code{flymake-error-bitmap} +and @code{flymake-warning-bitmap}. + @node Interaction with other modes @section Interaction with other modes @cindex Interaction with other modes |