aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/errors.texi
diff options
context:
space:
mode:
authorTom Tromey2012-12-17 07:56:22 -0700
committerTom Tromey2012-12-17 07:56:22 -0700
commit3d6eced1ae51ffd0a782130e7c334052277e2724 (patch)
tree5d1d2ad7cd3374f922886c4a72062511a035c168 /doc/lispref/errors.texi
parentbf69f522a9e135f9aa483cedd53e71e915f2bf75 (diff)
parent7c3d167f48d6262ee4e5512aa50a07ee96bc1509 (diff)
downloademacs-3d6eced1ae51ffd0a782130e7c334052277e2724.tar.gz
emacs-3d6eced1ae51ffd0a782130e7c334052277e2724.zip
merge from trunk
Diffstat (limited to 'doc/lispref/errors.texi')
-rw-r--r--doc/lispref/errors.texi165
1 files changed, 73 insertions, 92 deletions
diff --git a/doc/lispref/errors.texi b/doc/lispref/errors.texi
index a822a2d9608..04c8273cb77 100644
--- a/doc/lispref/errors.texi
+++ b/doc/lispref/errors.texi
@@ -24,7 +24,7 @@ conditions, that means it has none.
24condition @code{error}, because quitting is not considered an error. 24condition @code{error}, because quitting is not considered an error.
25 25
26@c You can grep for "(put 'foo 'error-conditions ...) to find 26@c You can grep for "(put 'foo 'error-conditions ...) to find
27@c examples defined in Lisp. Eg soap-client.el, sasl.el. 27@c examples defined in Lisp. E.g., soap-client.el, sasl.el.
28 Most of these error symbols are defined in C (mainly @file{data.c}), 28 Most of these error symbols are defined in C (mainly @file{data.c}),
29but some are defined in Lisp. For example, the file @file{userlock.el} 29but some are defined in Lisp. For example, the file @file{userlock.el}
30defines the @code{file-locked} and @code{file-supersession} errors. 30defines the @code{file-locked} and @code{file-supersession} errors.
@@ -37,78 +37,69 @@ handled.
37 37
38@table @code 38@table @code
39@item error 39@item error
40@code{"error"}@* 40The message is @samp{error}. @xref{Errors}.
41@xref{Errors}.
42 41
43@item quit 42@item quit
44@code{"Quit"}@* 43The message is @samp{Quit}. @xref{Quitting}.
45@xref{Quitting}.
46 44
47@item args-out-of-range 45@item args-out-of-range
48@code{"Args out of range"}@* 46The message is @samp{Args out of range}. This happens when trying to
49This happens when trying to access an element beyond the range of a 47access an element beyond the range of a sequence, buffer, or other
50sequence or buffer.@* 48container-like object. @xref{Sequences Arrays Vectors}, and
51@xref{Sequences Arrays Vectors}, @xref{Text}. 49@xref{Text}.
52 50
53@item arith-error 51@item arith-error
54@code{"Arithmetic error"}@* 52The message is @samp{Arithmetic error}. This occurs when trying to
53perform integer division by zero. @xref{Numeric Conversions}, and
55@xref{Arithmetic Operations}. 54@xref{Arithmetic Operations}.
56 55
57@item beginning-of-buffer 56@item beginning-of-buffer
58@code{"Beginning of buffer"}@* 57The message is @samp{Beginning of buffer}. @xref{Character Motion}.
59@xref{Character Motion}.
60 58
61@item buffer-read-only 59@item buffer-read-only
62@code{"Buffer is read-only"}@* 60The message is @samp{Buffer is read-only}. @xref{Read Only Buffers}.
63@xref{Read Only Buffers}.
64 61
65@item circular-list 62@item circular-list
66@code{"List contains a loop"}@* 63The message is @samp{List contains a loop}. This happens when a
67This happens when some operations (e.g. resolving face names) 64circular structure is encountered. @xref{Circular Objects}.
68encounter circular structures.@*
69@xref{Circular Objects}.
70 65
71@item cl-assertion-failed 66@item cl-assertion-failed
72@code{"Assertion failed"}@* 67The message is @samp{Assertion failed}. This happens when the
73This happens when the @code{assert} macro fails a test.@* 68@code{cl-assert} macro fails a test. @xref{Assertions,,, cl, Common Lisp
74@xref{Assertions,,, cl, Common Lisp Extensions}. 69Extensions}.
75 70
76@item coding-system-error 71@item coding-system-error
77@code{"Invalid coding system"}@* 72The message is @samp{Invalid coding system}. @xref{Lisp and Coding
78@xref{Lisp and Coding Systems}. 73Systems}.
79 74
80@item cyclic-function-indirection 75@item cyclic-function-indirection
81@code{"Symbol's chain of function indirections contains a loop"}@* 76The message is @samp{Symbol's chain of function indirections contains
82@xref{Function Indirection}. 77a loop}. @xref{Function Indirection}.
83 78
84@item cyclic-variable-indirection 79@item cyclic-variable-indirection
85@code{"Symbol's chain of variable indirections contains a loop"}@* 80The message is @samp{Symbol's chain of variable indirections contains
86@xref{Variable Aliases}. 81a loop}. @xref{Variable Aliases}.
87 82
88@item dbus-error 83@item dbus-error
89@code{"D-Bus error"}@* 84The message is @samp{D-Bus error}. This is only defined if Emacs was
90This is only defined if Emacs was compiled with D-Bus support.@* 85compiled with D-Bus support. @xref{Errors and Events,,, dbus, D-Bus
91@xref{Errors and Events,,, dbus, D-Bus integration in Emacs}. 86integration in Emacs}.
92 87
93@item end-of-buffer 88@item end-of-buffer
94@code{"End of buffer"}@* 89The message is @samp{End of buffer}. @xref{Character Motion}.
95@xref{Character Motion}.
96 90
97@item end-of-file 91@item end-of-file
98@code{"End of file during parsing"}@* 92The message is @samp{End of file during parsing}. Note that this is
99Note that this is not a subcategory of @code{file-error}, 93not a subcategory of @code{file-error}, because it pertains to the
100because it pertains to the Lisp reader, not to file I/O.@* 94Lisp reader, not to file I/O@. @xref{Input Functions}.
101@xref{Input Functions}.
102 95
103@item file-already-exists 96@item file-already-exists
104This is a subcategory of @code{file-error}.@* 97This is a subcategory of @code{file-error}. @xref{Writing to Files}.
105@xref{Writing to Files}.
106 98
107@item file-date-error 99@item file-date-error
108This is a subcategory of @code{file-error}. It occurs when 100This is a subcategory of @code{file-error}. It occurs when
109@code{copy-file} tries and fails to set the last-modification time of 101@code{copy-file} tries and fails to set the last-modification time of
110the output file.@* 102the output file. @xref{Changing Files}.
111@xref{Changing Files}.
112 103
113@item file-error 104@item file-error
114We do not list the error-strings of this error and its subcategories, 105We do not list the error-strings of this error and its subcategories,
@@ -116,122 +107,112 @@ because the error message is normally constructed from the data items
116alone when the error condition @code{file-error} is present. Thus, 107alone when the error condition @code{file-error} is present. Thus,
117the error-strings are not very relevant. However, these error symbols 108the error-strings are not very relevant. However, these error symbols
118do have @code{error-message} properties, and if no data is provided, 109do have @code{error-message} properties, and if no data is provided,
119the @code{error-message} property @emph{is} used.@* 110the @code{error-message} property @emph{is} used. @xref{Files}.
120@xref{Files}.
121 111
122@c jka-compr.el 112@c jka-compr.el
123@item compression-error 113@item compression-error
124This is a subcategory of @code{file-error}, which results from 114This is a subcategory of @code{file-error}, which results from
125problems handling a compressed file.@* 115problems handling a compressed file. @xref{How Programs Do Loading}.
126@xref{How Programs Do Loading}.
127 116
128@c userlock.el 117@c userlock.el
129@item file-locked 118@item file-locked
130This is a subcategory of @code{file-error}.@* 119This is a subcategory of @code{file-error}. @xref{File Locks}.
131@xref{File Locks}.
132 120
133@c userlock.el 121@c userlock.el
134@item file-supersession 122@item file-supersession
135This is a subcategory of @code{file-error}.@* 123This is a subcategory of @code{file-error}. @xref{Modification Time}.
136@xref{Modification Time}.
137 124
138@c net/ange-ftp.el 125@c net/ange-ftp.el
139@item ftp-error 126@item ftp-error
140This is a subcategory of @code{file-error}, which results from problems 127This is a subcategory of @code{file-error}, which results from
141in accessing a remote file using ftp.@* 128problems in accessing a remote file using ftp. @xref{Remote Files,,,
142@xref{Remote Files,,, emacs, The GNU Emacs Manual}. 129emacs, The GNU Emacs Manual}.
143 130
144@item invalid-function 131@item invalid-function
145@code{"Invalid function"}@* 132The message is @samp{Invalid function}. @xref{Function Indirection}.
146@xref{Function Indirection}.
147 133
148@item invalid-read-syntax 134@item invalid-read-syntax
149@code{"Invalid read syntax"}@* 135The message is @samp{Invalid read syntax}. @xref{Printed
150@xref{Printed Representation}. 136Representation}.
151 137
152@item invalid-regexp 138@item invalid-regexp
153@code{"Invalid regexp"}@* 139The message is @samp{Invalid regexp}. @xref{Regular Expressions}.
154@xref{Regular Expressions}.
155 140
156@c simple.el 141@c simple.el
157@item mark-inactive 142@item mark-inactive
158@code{"The mark is not active now"}@* 143The message is @samp{The mark is not active now}. @xref{The Mark}.
159@xref{The Mark}.
160 144
161@item no-catch 145@item no-catch
162@code{"No catch for tag"}@* 146The message is @samp{No catch for tag}. @xref{Catch and Throw}.
163@xref{Catch and Throw}.
164 147
165@ignore 148@ignore
166@c Not actually used for anything? Probably definition should be removed. 149@c Not actually used for anything? Probably definition should be removed.
167@item protected-field 150@item protected-field
168@code{"Attempt to modify a protected field"} 151The message is @samp{Attempt to modify a protected file}.
169@end ignore 152@end ignore
170 153
171@item scan-error 154@item scan-error
172@code{"Scan error"}@* 155The message is @samp{Scan error}. This happens when certain
173This happens when certain syntax-parsing functions 156syntax-parsing functions find invalid syntax or mismatched
174find invalid syntax or mismatched parentheses.@* 157parentheses. @xref{List Motion}, and @xref{Parsing Expressions}.
175@xref{List Motion}, and @ref{Parsing Expressions}.
176 158
177@item search-failed 159@item search-failed
178@code{"Search failed"}@* 160The message is @samp{Search failed}. @xref{Searching and Matching}.
179@xref{Searching and Matching}.
180 161
181@item setting-constant 162@item setting-constant
182@code{"Attempt to set a constant symbol"}@* 163The message is @samp{Attempt to set a constant symbol}. This happens
183The values of the symbols @code{nil} and @code{t}, 164when attempting to assign values to @code{nil}, @code{t}, and keyword
184and any symbols that start with @samp{:}, 165symbols. @xref{Constant Variables}.
185may not be changed.@*
186@xref{Constant Variables, , Variables that Never Change}.
187 166
188@c simple.el 167@c simple.el
189@item text-read-only 168@item text-read-only
190@code{"Text is read-only"}@* 169The message is @samp{Text is read-only}. This is a subcategory of
191This is a subcategory of @code{buffer-read-only}.@* 170@code{buffer-read-only}. @xref{Special Properties}.
192@xref{Special Properties}.
193 171
194@item undefined-color 172@item undefined-color
195@code{"Undefined color"}@* 173The message is @samp{Undefined color}. @xref{Color Names}.
196@xref{Color Names}. 174
175@item user-error
176The message is the empty string. @xref{Signaling Errors}.
197 177
198@item void-function 178@item void-function
199@code{"Symbol's function definition is void"}@* 179The message is @samp{Symbol's function definition is void}.
200@xref{Function Cells}. 180@xref{Function Cells}.
201 181
202@item void-variable 182@item void-variable
203@code{"Symbol's value as variable is void"}@* 183The message is @samp{Symbol's value as variable is void}.
204@xref{Accessing Variables}. 184@xref{Accessing Variables}.
205 185
206@item wrong-number-of-arguments 186@item wrong-number-of-arguments
207@code{"Wrong number of arguments"}@* 187The message is @samp{Wrong number of arguments}. @xref{Classifying
208@xref{Classifying Lists}. 188Lists}.
209 189
210@item wrong-type-argument 190@item wrong-type-argument
211@code{"Wrong type argument"}@* 191The message is @samp{Wrong type argument}. @xref{Type Predicates}.
212@xref{Type Predicates}.
213@end table 192@end table
214 193
194@ignore The following seem to be unused now.
215 The following kinds of error, which are classified as special cases of 195 The following kinds of error, which are classified as special cases of
216@code{arith-error}, can occur on certain systems for invalid use of 196@code{arith-error}, can occur on certain systems for invalid use of
217mathematical functions. @xref{Math Functions}. 197mathematical functions. @xref{Math Functions}.
218 198
219@table @code 199@table @code
220@item domain-error 200@item domain-error
221@code{"Arithmetic domain error"} 201The message is @samp{Arithmetic domain error}.
222 202
223@item overflow-error 203@item overflow-error
224@code{"Arithmetic overflow error"}@* 204The message is @samp{Arithmetic overflow error}. This is a subcategory
225This is a subcategory of @code{domain-error}. 205of @code{domain-error}.
226 206
227@item range-error 207@item range-error
228@code{"Arithmetic range error"} 208The message is @code{Arithmetic range error}.
229 209
230@item singularity-error 210@item singularity-error
231@code{"Arithmetic singularity error"}@* 211The message is @samp{Arithmetic singularity error}. This is a
232This is a subcategory of @code{domain-error}. 212subcategory of @code{domain-error}.
233 213
234@item underflow-error 214@item underflow-error
235@code{"Arithmetic underflow error"}@* 215The message is @samp{Arithmetic underflow error}. This is a
236This is a subcategory of @code{domain-error}. 216subcategory of @code{domain-error}.
237@end table 217@end table
218@end ignore