diff options
| author | Glenn Morris | 2012-11-12 18:25:59 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-11-12 18:25:59 -0800 |
| commit | f78ee6afc094cdfd6162bfd645836e84875dcddf (patch) | |
| tree | 3a2c4f5d6441e53adadb69ed2af0b64abf3cf239 /doc | |
| parent | b95a9c0cba301ef8f1920a1d123ccd6873c14a63 (diff) | |
| parent | f8705f6e3102454bf1e3213956eb3ac8160ff047 (diff) | |
| download | emacs-f78ee6afc094cdfd6162bfd645836e84875dcddf.tar.gz emacs-f78ee6afc094cdfd6162bfd645836e84875dcddf.zip | |
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 @@ | |||
| 1 | 2012-11-13 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * building.texi (Multithreaded Debugging): gdb-stopped-hooks is | ||
| 4 | actually named gdb-stopped-functions. | ||
| 5 | |||
| 6 | 2012-11-13 Glenn Morris <rgm@gnu.org> | ||
| 7 | |||
| 8 | * misc.texi (Single Shell): Mention async-shell-command-buffer. | ||
| 9 | |||
| 1 | 2012-11-10 Glenn Morris <rgm@gnu.org> | 10 | 2012-11-10 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * misc.texi (Terminal emulator): Rename `term-face' to `term'. | 12 | * 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 | |||
| 1244 | @code{gdb-switch-reasons} to select the stop reasons which will cause | 1244 | @code{gdb-switch-reasons} to select the stop reasons which will cause |
| 1245 | a thread switch. | 1245 | a thread switch. |
| 1246 | 1246 | ||
| 1247 | @vindex gdb-stopped-hooks | 1247 | @vindex gdb-stopped-functions |
| 1248 | The variable @code{gdb-stopped-hooks} allows you to execute your | 1248 | The variable @code{gdb-stopped-functions} allows you to execute your |
| 1249 | functions whenever some thread stops. | 1249 | functions whenever some thread stops. |
| 1250 | 1250 | ||
| 1251 | In non-stop mode, you can switch between different modes for GUD | 1251 | 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. | |||
| 542 | You can also type @kbd{M-&} (@code{async-shell-command}) to execute a | 542 | You can also type @kbd{M-&} (@code{async-shell-command}) to execute a |
| 543 | shell command asynchronously; this is exactly like calling @kbd{M-!} | 543 | shell command asynchronously; this is exactly like calling @kbd{M-!} |
| 544 | with a trailing @samp{&}, except that you do not need the @samp{&}. | 544 | with a trailing @samp{&}, except that you do not need the @samp{&}. |
| 545 | The output buffer for asynchronous shell commands is named | 545 | The default output buffer for asynchronous shell commands is named |
| 546 | @samp{*Async Shell Command*}. Emacs inserts the output into this | 546 | @samp{*Async Shell Command*}. Emacs inserts the output into this |
| 547 | buffer as it comes in, whether or not the buffer is visible in a | 547 | buffer as it comes in, whether or not the buffer is visible in a |
| 548 | window. | 548 | window. |
| 549 | 549 | ||
| 550 | @vindex async-shell-command-buffer | ||
| 551 | If you want to run more than one asynchronous shell command at the | ||
| 552 | same time, they could end up competing for the output buffer. The | ||
| 553 | option @code{async-shell-command-buffer} specifies what to do about | ||
| 554 | this; e.g., whether to rename the pre-existing output buffer, or to | ||
| 555 | use a different buffer for the new command. Consult the variable's | ||
| 556 | documentation for more possibilities. | ||
| 557 | |||
| 550 | @kindex M-| | 558 | @kindex M-| |
| 551 | @findex shell-command-on-region | 559 | @findex shell-command-on-region |
| 552 | @kbd{M-|} (@code{shell-command-on-region}) is like @kbd{M-!}, but | 560 | @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 @@ | |||
| 1 | 2012-11-13 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * variables.texi (Adding Generalized Variables): | ||
| 4 | At least mention gv-define-expander and gv-letplace. | ||
| 5 | |||
| 6 | * debugging.texi (Error Debugging): Mention debug-on-message. | ||
| 7 | (Using Debugger): Mention debugger-bury-or-kill. | ||
| 8 | |||
| 9 | * control.texi (Signaling Errors): | ||
| 10 | * debugging.texi (Error Debugging): | ||
| 11 | * errors.texi (Standard Errors): Add user-error. | ||
| 12 | |||
| 13 | * variables.texi (Adding Generalized Variables): | ||
| 14 | Use standard formatting for common lisp note about setf functions. | ||
| 15 | |||
| 1 | 2012-11-10 Martin Rudalics <rudalics@gmx.at> | 16 | 2012-11-10 Martin Rudalics <rudalics@gmx.at> |
| 2 | 17 | ||
| 3 | * elisp.texi (Top): Add Recombining Windows to menu. | 18 | * 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. | |||
| 824 | @end example | 824 | @end example |
| 825 | @end defun | 825 | @end defun |
| 826 | 826 | ||
| 827 | @cindex user errors, signaling | ||
| 828 | @defun user-error format-string &rest args | ||
| 829 | This function behaves exactly like @code{error}, except that it uses | ||
| 830 | the error symbol @code{user-error} rather than @code{error}. As the | ||
| 831 | name suggests, this is intended to report errors on the part of the | ||
| 832 | user, rather than errors in the code itself. For example, | ||
| 833 | if you try to use the command @code{Info-history-back} (@kbd{l}) to | ||
| 834 | move back beyond the start of your Info browsing history, Emacs | ||
| 835 | signals a @code{user-error}. Such errors do not cause entry to the | ||
| 836 | debugger, even when @code{debug-on-error} is non-@code{nil}. | ||
| 837 | @xref{Error Debugging}. | ||
| 838 | @end defun | ||
| 839 | |||
| 827 | @cindex CL note---no continuable errors | 840 | @cindex CL note---no continuable errors |
| 828 | @quotation | 841 | @quotation |
| 829 | @b{Common Lisp note:} Emacs Lisp has nothing like the Common Lisp | 842 | @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 | |||
| 117 | any of the regular expressions, then that error does not enter the | 117 | any of the regular expressions, then that error does not enter the |
| 118 | debugger. | 118 | debugger. |
| 119 | 119 | ||
| 120 | The normal value of this variable lists several errors that happen | 120 | The normal value of this variable includes @code{user-error}, as well |
| 121 | often during editing but rarely result from bugs in Lisp programs. | 121 | as several errors that happen often during editing but rarely result |
| 122 | However, ``rarely'' is not ``never''; if your program fails with an | 122 | from bugs in Lisp programs. However, ``rarely'' is not ``never''; if |
| 123 | error that matches this list, you may try changing this list to debug | 123 | your program fails with an error that matches this list, you may try |
| 124 | the error. The easiest way is usually to set | 124 | changing this list to debug the error. The easiest way is usually to |
| 125 | @code{debug-ignored-errors} to @code{nil}. | 125 | set @code{debug-ignored-errors} to @code{nil}. |
| 126 | @end defopt | 126 | @end defopt |
| 127 | 127 | ||
| 128 | @defopt eval-expression-debug-on-error | 128 | @defopt eval-expression-debug-on-error |
| @@ -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 |
| @@ -314,6 +322,7 @@ is a message describing the reason that the debugger was invoked (such | |||
| 314 | 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 |
| 315 | error). | 323 | error). |
| 316 | 324 | ||
| 325 | @vindex debugger-bury-or-kill | ||
| 317 | 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, |
| 318 | Debugger mode, in which letters are defined as debugger commands. The | 327 | Debugger mode, in which letters are defined as debugger commands. The |
| 319 | usual Emacs editing commands are available; thus, you can switch windows | 328 | 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, | |||
| 322 | the debugger is a recursive editing level (@pxref{Recursive Editing}) | 331 | the debugger is a recursive editing level (@pxref{Recursive Editing}) |
| 323 | 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 |
| 324 | (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 |
| 325 | 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 |
| 326 | 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.) | ||
| 327 | 340 | ||
| 328 | When the debugger has been entered, the @code{debug-on-error} | 341 | When the debugger has been entered, the @code{debug-on-error} |
| 329 | variable is temporarily set according to | 342 | 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 | |||
| 172 | @item undefined-color | 172 | @item undefined-color |
| 173 | The message is @samp{Undefined color}. @xref{Color Names}. | 173 | The message is @samp{Undefined color}. @xref{Color Names}. |
| 174 | 174 | ||
| 175 | @item user-error | ||
| 176 | The message is the empty string. @xref{Signaling Errors}. | ||
| 177 | |||
| 175 | @item void-function | 178 | @item void-function |
| 176 | The message is @samp{Symbol's function definition is void}. | 179 | The message is @samp{Symbol's function definition is void}. |
| 177 | @xref{Function Cells}. | 180 | @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: | |||
| 2133 | @end example | 2133 | @end example |
| 2134 | @end defmac | 2134 | @end defmac |
| 2135 | 2135 | ||
| 2136 | @c FIXME? Not sure what, if anything, to say about this. | 2136 | @findex gv-define-expander |
| 2137 | @ignore | 2137 | @findex gv-letplace |
| 2138 | @defmac gv-define-expander name handler | 2138 | @c FIXME? Not sure what or how much to say about these. |
| 2139 | This is the most general way to define a new @code{setf} expansion. | 2139 | @c See cl.texi for an example of using gv-letplace. |
| 2140 | @end defmac | 2140 | For more control over the expansion, see the macro @code{gv-define-expander}. |
| 2141 | @end ignore | 2141 | The macro @code{gv-letplace} can be useful in defining macros that |
| 2142 | perform similarly to @code{setf}; for example, the @code{incf} macro | ||
| 2143 | of Common Lisp. Consult the source file @file{gv.el} for more details. | ||
| 2142 | 2144 | ||
| 2143 | @cindex CL note---no @code{setf} functions | 2145 | @cindex CL note---no @code{setf} functions |
| 2144 | Common Lisp defines another way to specify the @code{setf} behavior of | 2146 | @quotation |
| 2145 | a function, namely ``@code{setf} functions'', whose names are lists | 2147 | @b{Common Lisp note:} Common Lisp defines another way to specify the |
| 2146 | @code{(setf @var{name})} rather than symbols. For example, | 2148 | @code{setf} behavior of a function, namely ``@code{setf} functions'', |
| 2147 | @code{(defun (setf foo) @dots{})} defines the function that is used | 2149 | whose names are lists @code{(setf @var{name})} rather than symbols. |
| 2148 | when @code{setf} is applied to @code{foo}. Emacs does not support | 2150 | For example, @code{(defun (setf foo) @dots{})} defines the function |
| 2149 | this. It is a compile-time error to use @code{setf} on a form that | 2151 | that is used when @code{setf} is applied to @code{foo}. Emacs does |
| 2150 | has not already had an appropriate expansion defined. In Common Lisp, | 2152 | not support this. It is a compile-time error to use @code{setf} on a |
| 2151 | this is not an error since the function @code{(setf @var{func})} might | 2153 | form that has not already had an appropriate expansion defined. In |
| 2152 | be defined later. | 2154 | Common Lisp, this is not an error since the function @code{(setf |
| 2155 | @var{func})} might be defined later. | ||
| 2156 | @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 @@ | |||
| 1 | 2012-11-13 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * flymake.texi (Customizable variables) | ||
| 4 | (Highlighting erroneous lines): Mention flymake-error-bitmap, | ||
| 5 | flymake-warning-bitmap, and flymake-fringe-indicator-position. | ||
| 6 | |||
| 1 | 2012-11-12 Vincent Belaïche <vincentb1@users.sourceforge.net> | 7 | 2012-11-12 Vincent Belaïche <vincentb1@users.sourceforge.net> |
| 2 | 8 | ||
| 3 | * ses.texi: Doc for ses-rename-cell, ses-repair-cell-reference-all & ses-range. | 9 | * 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. | |||
| 337 | A custom face for highlighting lines for which at least one warning | 337 | A custom face for highlighting lines for which at least one warning |
| 338 | and no errors have been reported. | 338 | and no errors have been reported. |
| 339 | 339 | ||
| 340 | @item flymake-error-bitmap | ||
| 341 | A bitmap used in the fringe to mark lines for which an error has | ||
| 342 | been reported. | ||
| 343 | |||
| 344 | @item flymake-warning-bitmap | ||
| 345 | A bitmap used in the fringe to mark lines for which a warning has | ||
| 346 | been reported. | ||
| 347 | |||
| 348 | @item flymake-fringe-indicator-position | ||
| 349 | Which fringe (if any) should show the warning/error bitmaps. | ||
| 350 | |||
| 340 | @end table | 351 | @end table |
| 341 | 352 | ||
| 342 | @node Adding support for a new syntax check tool | 353 | @node Adding support for a new syntax check tool |
| @@ -718,6 +729,15 @@ are used: @code{flymake-errline} and | |||
| 718 | @code{flymake-warnline}. Errors belonging outside the current | 729 | @code{flymake-warnline}. Errors belonging outside the current |
| 719 | buffer are considered to belong to line 1 of the current buffer. | 730 | buffer are considered to belong to line 1 of the current buffer. |
| 720 | 731 | ||
| 732 | @c This manual does not use vindex. | ||
| 733 | @c @vindex flymake-fringe-indicator-position | ||
| 734 | @c @vindex flymake-error-bitmap | ||
| 735 | @c @vindex flymake-warning-bitmap | ||
| 736 | If the option @code{flymake-fringe-indicator-position} is non-@code{nil}, | ||
| 737 | errors and warnings are also highlighted in the left or right fringe, | ||
| 738 | using the bitmaps specified by @code{flymake-error-bitmap} | ||
| 739 | and @code{flymake-warning-bitmap}. | ||
| 740 | |||
| 721 | @node Interaction with other modes | 741 | @node Interaction with other modes |
| 722 | @section Interaction with other modes | 742 | @section Interaction with other modes |
| 723 | @cindex Interaction with other modes | 743 | @cindex Interaction with other modes |