annotate lispref/errors.texi @ 21653:e95a88dc6110

*** empty log message ***
author Dan Nicolaescu <done@ece.arizona.edu>
date Sat, 18 Apr 1998 20:43:38 +0000
parents 66d807bdc5b4
children 90da2489c498
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2899
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 @c -*-texinfo-*-
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 @c This is part of the GNU Emacs Lisp Reference Manual.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 @c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 @c See the file elisp.texi for copying conditions.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5 @setfilename ../info/errors
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 @node Standard Errors, Standard Buffer-Local Variables, GNU Emacs Internals, Top
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 @appendix Standard Errors
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 Here is the complete list of the error symbols in standard Emacs,
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 grouped by concept. The list includes each symbol's message (on the
7600
8bf07ff6a929 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 2899
diff changeset
11 @code{error-message} property of the symbol) and a cross reference to a
2899
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 description of how the error can occur.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13
7600
8bf07ff6a929 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 2899
diff changeset
14 Each error symbol has an @code{error-conditions} property that is a
8bf07ff6a929 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 2899
diff changeset
15 list of symbols. Normally this list includes the error symbol itself
2899
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 and the symbol @code{error}. Occasionally it includes additional
7600
8bf07ff6a929 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 2899
diff changeset
17 symbols, which are intermediate classifications, narrower than
8bf07ff6a929 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 2899
diff changeset
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
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 As a special exception, the error symbol @code{quit} does not have the
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 condition @code{error}, because quitting is not considered an error.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 @xref{Errors}, for an explanation of how errors are generated and
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 handled.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 @table @code
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 @item @var{symbol}
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 @var{string}; @var{reference}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 @item error
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 @code{"error"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 @xref{Errors}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 @item quit
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 @code{"Quit"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 @xref{Quitting}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 @item args-out-of-range
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 @code{"Args out of range"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43 @xref{Sequences Arrays Vectors}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 @item arith-error
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46 @code{"Arithmetic error"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
47 See @code{/} and @code{%} in @ref{Numbers}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 @item beginning-of-buffer
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50 @code{"Beginning of buffer"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 @xref{Motion}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53 @item buffer-read-only
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54 @code{"Buffer is read-only"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 @xref{Read Only Buffers}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56
12098
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
57 @item cyclic-function-indirection
16736
981e116b4ac6 Minor cleanups for overfull hboxes.
Richard M. Stallman <rms@gnu.org>
parents: 12098
diff changeset
58 @code{"Symbol's chain of function indirections contains a@*
981e116b4ac6 Minor cleanups for overfull hboxes.
Richard M. Stallman <rms@gnu.org>
parents: 12098
diff changeset
59 loop"}@*
12098
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
60 @xref{Function Indirection}.
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
61
2899
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 @item end-of-buffer
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
63 @code{"End of buffer"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64 @xref{Motion}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66 @item end-of-file
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67 @code{"End of file during parsing"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 This is not a @code{file-error}.@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 @xref{Input Functions}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70
21007
66d807bdc5b4 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16736
diff changeset
71 @item file-date-error
66d807bdc5b4 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16736
diff changeset
72 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
73 @code{copy-file} tries and fails to set the last-modification time of
66d807bdc5b4 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16736
diff changeset
74 the output file. @xref{Changing Files}.
66d807bdc5b4 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16736
diff changeset
75
2899
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76 @item file-error
7600
8bf07ff6a929 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 2899
diff changeset
77 This error and its subcategories do not have error-strings, because the
8bf07ff6a929 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 2899
diff changeset
78 error message is constructed from the data items alone when the error
8bf07ff6a929 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 2899
diff changeset
79 condition @code{file-error} is present.@*
2899
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 @xref{Files}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82 @item file-locked
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 This is a @code{file-error}.@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 @xref{File Locks}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 @item file-already-exists
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 This is a @code{file-error}.@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 @xref{Writing to Files}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 @item file-supersession
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 This is a @code{file-error}.@*
7600
8bf07ff6a929 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 2899
diff changeset
92 @xref{Modification Time}.
2899
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 @item invalid-function
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 @code{"Invalid function"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 @xref{Classifying Lists}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98 @item invalid-read-syntax
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 @code{"Invalid read syntax"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 @xref{Input Functions}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 @item invalid-regexp
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 @code{"Invalid regexp"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 @xref{Regular Expressions}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106 @item no-catch
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107 @code{"No catch for tag"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108 @xref{Catch and Throw}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 @item search-failed
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 @code{"Search failed"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112 @xref{Searching and Matching}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114 @item setting-constant
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115 @code{"Attempt to set a constant symbol"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116 The values of the symbols @code{nil} and @code{t}
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117 may not be changed.@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118 @xref{Constant Variables, , Variables that Never Change}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119
12098
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
120 @item undefined-color
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
121 @code{"Undefined color"}@*
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
122 @xref{Color Names}.
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
123
2899
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
124 @item void-function
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
125 @code{"Symbol's function definition is void"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
126 @xref{Function Cells}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
127
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
128 @item void-variable
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129 @code{"Symbol's value as variable is void"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 @xref{Accessing Variables}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132 @item wrong-number-of-arguments
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
133 @code{"Wrong number of arguments"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134 @xref{Classifying Lists}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136 @item wrong-type-argument
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137 @code{"Wrong type argument"}@*
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138 @xref{Type Predicates}.
462fc7e81e6e Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139 @end table
12098
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
140
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
141 These error types, which are all classified as special cases of
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
142 @code{arith-error}, can occur on certain systems for invalid use of
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
143 mathematical functions.
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
144
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
145 @table @code
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
146 @item domain-error
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
147 @code{"Arithmetic domain error"}@*
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
148 @xref{Math Functions}.
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
149
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
150 @item overflow-error
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
151 @code{"Arithmetic overflow error"}@*
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
152 @xref{Math Functions}.
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
153
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
154 @item range-error
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
155 @code{"Arithmetic range error"}@*
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
156 @xref{Math Functions}.
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
157
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
158 @item singularity-error
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
159 @code{"Arithmetic singularity error"}@*
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
160 @xref{Math Functions}.
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
161
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
162 @item underflow-error
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
163 @code{"Arithmetic underflow error"}@*
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
164 @xref{Math Functions}.
a6eb5f12b0f3 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 7600
diff changeset
165 @end table