Mercurial > emacs
annotate lispref/errors.texi @ 60793:de810f6e8193
(Wheeled Mice): Mouse wheel support on by default.
Document mouse-wheel-progressive speed.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 21 Mar 2005 18:16:34 +0000 |
parents | d2c60b264fa8 |
children | 99e9892a51d9 |
rev | line source |
---|---|
2899 | 1 @c -*-texinfo-*- |
2 @c This is part of the GNU Emacs Lisp Reference Manual. | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
38581
diff
changeset
|
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1999 Free Software Foundation, Inc. |
2899 | 4 @c See the file elisp.texi for copying conditions. |
5 @setfilename ../info/errors | |
6 @node Standard Errors, Standard Buffer-Local Variables, GNU Emacs Internals, Top | |
7 @appendix Standard Errors | |
8 | |
9 Here is the complete list of the error symbols in standard Emacs, | |
10 grouped by concept. The list includes each symbol's message (on the | |
7600 | 11 @code{error-message} property of the symbol) and a cross reference to a |
2899 | 12 description of how the error can occur. |
13 | |
7600 | 14 Each error symbol has an @code{error-conditions} property that is a |
15 list of symbols. Normally this list includes the error symbol itself | |
2899 | 16 and the symbol @code{error}. Occasionally it includes additional |
7600 | 17 symbols, which are intermediate classifications, narrower than |
18 @code{error} but broader than a single error symbol. For example, all | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
19 the errors in accessing files have the condition @code{file-error}. If |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
20 we do not say here that a certain error symbol has additional error |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
21 conditions, that means it has none. |
2899 | 22 |
23 As a special exception, the error symbol @code{quit} does not have the | |
24 condition @code{error}, because quitting is not considered an error. | |
25 | |
26 @xref{Errors}, for an explanation of how errors are generated and | |
27 handled. | |
28 | |
29 @table @code | |
30 @item @var{symbol} | |
31 @var{string}; @var{reference}. | |
32 | |
33 @item error | |
34 @code{"error"}@* | |
35 @xref{Errors}. | |
36 | |
37 @item quit | |
38 @code{"Quit"}@* | |
39 @xref{Quitting}. | |
40 | |
41 @item args-out-of-range | |
42 @code{"Args out of range"}@* | |
43 @xref{Sequences Arrays Vectors}. | |
44 | |
45 @item arith-error | |
46 @code{"Arithmetic error"}@* | |
47 See @code{/} and @code{%} in @ref{Numbers}. | |
48 | |
49 @item beginning-of-buffer | |
50 @code{"Beginning of buffer"}@* | |
51 @xref{Motion}. | |
52 | |
53 @item buffer-read-only | |
54 @code{"Buffer is read-only"}@* | |
55 @xref{Read Only Buffers}. | |
56 | |
26288 | 57 @item coding-system-error |
58 @code{"Invalid coding system"}@* | |
59 @xref{Coding Systems}. | |
60 | |
12098 | 61 @item cyclic-function-indirection |
22267
dfac7398266b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
22252
diff
changeset
|
62 @code{"Symbol's chain of function indirections\@* contains a loop"}@* |
12098 | 63 @xref{Function Indirection}. |
64 | |
54724
d2c60b264fa8
* variables.texi (Variable Aliases): Mention
Jesper Harder <harder@ifa.au.dk>
parents:
53454
diff
changeset
|
65 @item cyclic-variable-indirection |
d2c60b264fa8
* variables.texi (Variable Aliases): Mention
Jesper Harder <harder@ifa.au.dk>
parents:
53454
diff
changeset
|
66 @code{"Symbol's chain of variable indirections contains a loop"}@* |
d2c60b264fa8
* variables.texi (Variable Aliases): Mention
Jesper Harder <harder@ifa.au.dk>
parents:
53454
diff
changeset
|
67 @xref{Variable Aliases}. |
d2c60b264fa8
* variables.texi (Variable Aliases): Mention
Jesper Harder <harder@ifa.au.dk>
parents:
53454
diff
changeset
|
68 |
2899 | 69 @item end-of-buffer |
70 @code{"End of buffer"}@* | |
71 @xref{Motion}. | |
72 | |
73 @item end-of-file | |
74 @code{"End of file during parsing"}@* | |
25751
467b88fab665
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
22267
diff
changeset
|
75 Note that this is not a subcategory of @code{file-error}, |
53454
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
76 because it pertains to the Lisp reader, not to file I/O.@* |
2899 | 77 @xref{Input Functions}. |
78 | |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
79 @item file-already-exists |
25751
467b88fab665
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
22267
diff
changeset
|
80 This is a subcategory of @code{file-error}.@* |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
81 @xref{Writing to Files}. |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
82 |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
83 @item file-date-error |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
84 This is a subcategory of @code{file-error}. It occurs when |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
85 @code{copy-file} tries and fails to set the last-modification time of |
53454
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
86 the output file.@* |
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
87 @xref{Changing Files}. |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
88 |
2899 | 89 @item file-error |
53454
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
90 We do not list the error-strings of this error and its subcategories, |
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
91 because the error message is normally constructed from the data items |
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
92 alone when the error condition @code{file-error} is present. Thus, |
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
93 the error-strings are not very relevant. However, these error symbols |
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
94 do have @code{error-message} properties, and if no data is provided, |
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
95 the @code{error-message} property @emph{is} used.@* |
2899 | 96 @xref{Files}. |
97 | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
38581
diff
changeset
|
98 @item file-locked |
25751
467b88fab665
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
22267
diff
changeset
|
99 This is a subcategory of @code{file-error}.@* |
2899 | 100 @xref{File Locks}. |
101 | |
102 @item file-supersession | |
25751
467b88fab665
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
22267
diff
changeset
|
103 This is a subcategory of @code{file-error}.@* |
7600 | 104 @xref{Modification Time}. |
2899 | 105 |
26288 | 106 @item ftp-error |
107 This is a subcategory of @code{file-error}, which results from problems | |
108 in accessing a remote file using ftp.@* | |
38581 | 109 @xref{Remote Files,,, emacs, The GNU Emacs Manual}. |
26288 | 110 |
2899 | 111 @item invalid-function |
112 @code{"Invalid function"}@* | |
113 @xref{Classifying Lists}. | |
114 | |
115 @item invalid-read-syntax | |
116 @code{"Invalid read syntax"}@* | |
117 @xref{Input Functions}. | |
118 | |
119 @item invalid-regexp | |
120 @code{"Invalid regexp"}@* | |
121 @xref{Regular Expressions}. | |
122 | |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
123 @item mark-inactive |
53454
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
124 @code{"The mark is not active now"}@* |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
125 @xref{The Mark}. |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
126 |
2899 | 127 @item no-catch |
128 @code{"No catch for tag"}@* | |
129 @xref{Catch and Throw}. | |
130 | |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
131 @item scan-error |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
132 @code{"Scan error"}@* |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
133 This happens when certain syntax-parsing functions |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
134 find invalid syntax or mismatched parentheses.@* |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
135 @xref{List Motion}, and @ref{Parsing Expressions}. |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
136 |
2899 | 137 @item search-failed |
138 @code{"Search failed"}@* | |
139 @xref{Searching and Matching}. | |
140 | |
141 @item setting-constant | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
38581
diff
changeset
|
142 @code{"Attempt to set a constant symbol"}@* |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
143 The values of the symbols @code{nil} and @code{t}, |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
144 and any symbols that start with @samp{:}, |
2899 | 145 may not be changed.@* |
146 @xref{Constant Variables, , Variables that Never Change}. | |
147 | |
26288 | 148 @item text-read-only |
149 @code{"Text is read-only"}@* | |
53454
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
150 This is a subcategory of @code{buffer-read-only}.@* |
26288 | 151 @xref{Special Properties}. |
152 | |
12098 | 153 @item undefined-color |
154 @code{"Undefined color"}@* | |
155 @xref{Color Names}. | |
156 | |
2899 | 157 @item void-function |
158 @code{"Symbol's function definition is void"}@* | |
159 @xref{Function Cells}. | |
160 | |
161 @item void-variable | |
162 @code{"Symbol's value as variable is void"}@* | |
163 @xref{Accessing Variables}. | |
164 | |
165 @item wrong-number-of-arguments | |
166 @code{"Wrong number of arguments"}@* | |
167 @xref{Classifying Lists}. | |
168 | |
169 @item wrong-type-argument | |
170 @code{"Wrong type argument"}@* | |
171 @xref{Type Predicates}. | |
172 @end table | |
12098 | 173 |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
174 These kinds of error, which are classified as special cases of |
12098 | 175 @code{arith-error}, can occur on certain systems for invalid use of |
176 mathematical functions. | |
177 | |
178 @table @code | |
179 @item domain-error | |
180 @code{"Arithmetic domain error"}@* | |
181 @xref{Math Functions}. | |
182 | |
183 @item overflow-error | |
184 @code{"Arithmetic overflow error"}@* | |
53454
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
185 This is a subcategory of @code{domain-error}.@* |
12098 | 186 @xref{Math Functions}. |
187 | |
188 @item range-error | |
189 @code{"Arithmetic range error"}@* | |
190 @xref{Math Functions}. | |
191 | |
192 @item singularity-error | |
193 @code{"Arithmetic singularity error"}@* | |
53454
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
194 This is a subcategory of @code{domain-error}.@* |
12098 | 195 @xref{Math Functions}. |
196 | |
197 @item underflow-error | |
198 @code{"Arithmetic underflow error"}@* | |
53454
bedee14106b1
(Standard Errors): Various small corrections and additions.
Luc Teirlinck <teirllm@auburn.edu>
parents:
52401
diff
changeset
|
199 This is a subcategory of @code{domain-error}.@* |
12098 | 200 @xref{Math Functions}. |
201 @end table | |
52401 | 202 |
203 @ignore | |
204 arch-tag: 717c6048-5d9d-4c7d-9a62-df57390b6f19 | |
205 @end ignore |