(Fdelete_other_windows): Set optional_new_start instead of force_start.
[bpt/emacs.git] / lispref / errors.texi
1 @c -*-texinfo-*-
2 @c This is part of the GNU Emacs Lisp Reference Manual.
3 @c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
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
11 @code{error-message} property of the symbol) and a cross reference to a
12 description of how the error can occur.
13
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
16 and the symbol @code{error}. Occasionally it includes additional
17 symbols, which are intermediate classifications, narrower than
18 @code{error} but broader than a single error symbol. For example, all
19 the errors in accessing files have the condition @code{file-error}.
20
21 As a special exception, the error symbol @code{quit} does not have the
22 condition @code{error}, because quitting is not considered an error.
23
24 @xref{Errors}, for an explanation of how errors are generated and
25 handled.
26
27 @table @code
28 @item @var{symbol}
29 @var{string}; @var{reference}.
30
31 @item error
32 @code{"error"}@*
33 @xref{Errors}.
34
35 @item quit
36 @code{"Quit"}@*
37 @xref{Quitting}.
38
39 @item args-out-of-range
40 @code{"Args out of range"}@*
41 @xref{Sequences Arrays Vectors}.
42
43 @item arith-error
44 @code{"Arithmetic error"}@*
45 See @code{/} and @code{%} in @ref{Numbers}.
46
47 @item beginning-of-buffer
48 @code{"Beginning of buffer"}@*
49 @xref{Motion}.
50
51 @item buffer-read-only
52 @code{"Buffer is read-only"}@*
53 @xref{Read Only Buffers}.
54
55 @item cyclic-function-indirection
56 @code{"Symbol's chain of function indirections contains a loop"}@*
57 @xref{Function Indirection}.
58
59 @item end-of-buffer
60 @code{"End of buffer"}@*
61 @xref{Motion}.
62
63 @item end-of-file
64 @code{"End of file during parsing"}@*
65 This is not a @code{file-error}.@*
66 @xref{Input Functions}.
67
68 @item file-error
69 This error and its subcategories do not have error-strings, because the
70 error message is constructed from the data items alone when the error
71 condition @code{file-error} is present.@*
72 @xref{Files}.
73
74 @item file-locked
75 This is a @code{file-error}.@*
76 @xref{File Locks}.
77
78 @item file-already-exists
79 This is a @code{file-error}.@*
80 @xref{Writing to Files}.
81
82 @item file-supersession
83 This is a @code{file-error}.@*
84 @xref{Modification Time}.
85
86 @item invalid-function
87 @code{"Invalid function"}@*
88 @xref{Classifying Lists}.
89
90 @item invalid-read-syntax
91 @code{"Invalid read syntax"}@*
92 @xref{Input Functions}.
93
94 @item invalid-regexp
95 @code{"Invalid regexp"}@*
96 @xref{Regular Expressions}.
97
98 @item no-catch
99 @code{"No catch for tag"}@*
100 @xref{Catch and Throw}.
101
102 @item search-failed
103 @code{"Search failed"}@*
104 @xref{Searching and Matching}.
105
106 @item setting-constant
107 @code{"Attempt to set a constant symbol"}@*
108 The values of the symbols @code{nil} and @code{t}
109 may not be changed.@*
110 @xref{Constant Variables, , Variables that Never Change}.
111
112 @item undefined-color
113 @code{"Undefined color"}@*
114 @xref{Color Names}.
115
116 @item void-function
117 @code{"Symbol's function definition is void"}@*
118 @xref{Function Cells}.
119
120 @item void-variable
121 @code{"Symbol's value as variable is void"}@*
122 @xref{Accessing Variables}.
123
124 @item wrong-number-of-arguments
125 @code{"Wrong number of arguments"}@*
126 @xref{Classifying Lists}.
127
128 @item wrong-type-argument
129 @code{"Wrong type argument"}@*
130 @xref{Type Predicates}.
131 @end table
132
133 These error types, which are all classified as special cases of
134 @code{arith-error}, can occur on certain systems for invalid use of
135 mathematical functions.
136
137 @table @code
138 @item domain-error
139 @code{"Arithmetic domain error"}@*
140 @xref{Math Functions}.
141
142 @item overflow-error
143 @code{"Arithmetic overflow error"}@*
144 @xref{Math Functions}.
145
146 @item range-error
147 @code{"Arithmetic range error"}@*
148 @xref{Math Functions}.
149
150 @item singularity-error
151 @code{"Arithmetic singularity error"}@*
152 @xref{Math Functions}.
153
154 @item underflow-error
155 @code{"Arithmetic underflow error"}@*
156 @xref{Math Functions}.
157 @end table