aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2001-10-16 13:07:29 +0000
committerMiles Bader2001-10-16 13:07:29 +0000
commite9d8ddc945bcd14423a471a8de622a7c97abfc20 (patch)
treec26887ff27b2c26a96f78604c779739de0a517fc /src
parenta5979c0e89d170b418e5db4535b6bf6db8fd1514 (diff)
downloademacs-e9d8ddc945bcd14423a471a8de622a7c97abfc20.tar.gz
emacs-e9d8ddc945bcd14423a471a8de622a7c97abfc20.zip
Change doc-string comments to `new style' [w/`doc:' keyword].
Diffstat (limited to 'src')
-rw-r--r--src/fns.c480
1 files changed, 239 insertions, 241 deletions
diff --git a/src/fns.c b/src/fns.c
index e293d446511..9db9672c0d3 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -19,8 +19,6 @@ along with GNU Emacs; see the file COPYING. If not, write to
19the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 19the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20Boston, MA 02111-1307, USA. */ 20Boston, MA 02111-1307, USA. */
21 21
22#define DOC_STRINGS_IN_COMMENTS
23
24#include <config.h> 22#include <config.h>
25 23
26#ifdef HAVE_UNISTD_H 24#ifdef HAVE_UNISTD_H
@@ -76,20 +74,20 @@ extern long time ();
76#endif 74#endif
77 75
78DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0, 76DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0,
79 /* Return the argument unchanged. */ 77 doc: /* Return the argument unchanged. */)
80 (arg)) 78 (arg)
81 Lisp_Object arg; 79 Lisp_Object arg;
82{ 80{
83 return arg; 81 return arg;
84} 82}
85 83
86DEFUN ("random", Frandom, Srandom, 0, 1, 0, 84DEFUN ("random", Frandom, Srandom, 0, 1, 0,
87 /* Return a pseudo-random number. 85 doc: /* Return a pseudo-random number.
88All integers representable in Lisp are equally likely. 86All integers representable in Lisp are equally likely.
89 On most systems, this is 28 bits' worth. 87 On most systems, this is 28 bits' worth.
90With positive integer argument N, return random number in interval [0,N). 88With positive integer argument N, return random number in interval [0,N).
91With argument t, set the random number seed from the current time and pid. */ 89With argument t, set the random number seed from the current time and pid. */)
92 (n)) 90 (n)
93 Lisp_Object n; 91 Lisp_Object n;
94{ 92{
95 EMACS_INT val; 93 EMACS_INT val;
@@ -121,12 +119,12 @@ With argument t, set the random number seed from the current time and pid. */
121/* Random data-structure functions */ 119/* Random data-structure functions */
122 120
123DEFUN ("length", Flength, Slength, 1, 1, 0, 121DEFUN ("length", Flength, Slength, 1, 1, 0,
124 /* Return the length of vector, list or string SEQUENCE. 122 doc: /* Return the length of vector, list or string SEQUENCE.
125A byte-code function object is also allowed. 123A byte-code function object is also allowed.
126If the string contains multibyte characters, this is not the necessarily 124If the string contains multibyte characters, this is not the necessarily
127the number of bytes in the string; it is the number of characters. 125the number of bytes in the string; it is the number of characters.
128To get the number of bytes, use `string-bytes'. */ 126To get the number of bytes, use `string-bytes'. */)
129 (sequence)) 127 (sequence)
130 register Lisp_Object sequence; 128 register Lisp_Object sequence;
131{ 129{
132 register Lisp_Object val; 130 register Lisp_Object val;
@@ -178,11 +176,11 @@ To get the number of bytes, use `string-bytes'. */
178 since it must terminate. */ 176 since it must terminate. */
179 177
180DEFUN ("safe-length", Fsafe_length, Ssafe_length, 1, 1, 0, 178DEFUN ("safe-length", Fsafe_length, Ssafe_length, 1, 1, 0,
181 /* Return the length of a list, but avoid error or infinite loop. 179 doc: /* Return the length of a list, but avoid error or infinite loop.
182This function never gets an error. If LIST is not really a list, 180This function never gets an error. If LIST is not really a list,
183it returns 0. If LIST is circular, it returns a finite value 181it returns 0. If LIST is circular, it returns a finite value
184which is at least the number of distinct elements. */ 182which is at least the number of distinct elements. */)
185 (list)) 183 (list)
186 Lisp_Object list; 184 Lisp_Object list;
187{ 185{
188 Lisp_Object tail, halftail, length; 186 Lisp_Object tail, halftail, length;
@@ -204,9 +202,9 @@ which is at least the number of distinct elements. */
204} 202}
205 203
206DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0, 204DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0,
207 /* Return the number of bytes in STRING. 205 doc: /* Return the number of bytes in STRING.
208If STRING is a multibyte string, this is greater than the length of STRING. */ 206If STRING is a multibyte string, this is greater than the length of STRING. */)
209 (string)) 207 (string)
210 Lisp_Object string; 208 Lisp_Object string;
211{ 209{
212 CHECK_STRING (string, 1); 210 CHECK_STRING (string, 1);
@@ -214,10 +212,10 @@ If STRING is a multibyte string, this is greater than the length of STRING. */
214} 212}
215 213
216DEFUN ("string-equal", Fstring_equal, Sstring_equal, 2, 2, 0, 214DEFUN ("string-equal", Fstring_equal, Sstring_equal, 2, 2, 0,
217 /* Return t if two strings have identical contents. 215 doc: /* Return t if two strings have identical contents.
218Case is significant, but text properties are ignored. 216Case is significant, but text properties are ignored.
219Symbols are also allowed; their print names are used instead. */ 217Symbols are also allowed; their print names are used instead. */)
220 (s1, s2)) 218 (s1, s2)
221 register Lisp_Object s1, s2; 219 register Lisp_Object s1, s2;
222{ 220{
223 if (SYMBOLP (s1)) 221 if (SYMBOLP (s1))
@@ -236,7 +234,7 @@ Symbols are also allowed; their print names are used instead. */
236 234
237DEFUN ("compare-strings", Fcompare_strings, 235DEFUN ("compare-strings", Fcompare_strings,
238 Scompare_strings, 6, 7, 0, 236 Scompare_strings, 6, 7, 0,
239/* Compare the contents of two strings, converting to multibyte if needed. 237doc: /* Compare the contents of two strings, converting to multibyte if needed.
240In string STR1, skip the first START1 characters and stop at END1. 238In string STR1, skip the first START1 characters and stop at END1.
241In string STR2, skip the first START2 characters and stop at END2. 239In string STR2, skip the first START2 characters and stop at END2.
242END1 and END2 default to the full lengths of the respective strings. 240END1 and END2 default to the full lengths of the respective strings.
@@ -248,8 +246,8 @@ The value is t if the strings (or specified portions) match.
248If string STR1 is less, the value is a negative number N; 246If string STR1 is less, the value is a negative number N;
249 - 1 - N is the number of characters that match at the beginning. 247 - 1 - N is the number of characters that match at the beginning.
250If string STR1 is greater, the value is a positive number N; 248If string STR1 is greater, the value is a positive number N;
251 N - 1 is the number of characters that match at the beginning. */ 249 N - 1 is the number of characters that match at the beginning. */)
252 (str1, start1, end1, str2, start2, end2, ignore_case)) 250 (str1, start1, end1, str2, start2, end2, ignore_case)
253 Lisp_Object str1, start1, end1, start2, str2, end2, ignore_case; 251 Lisp_Object str1, start1, end1, start2, str2, end2, ignore_case;
254{ 252{
255 register int end1_char, end2_char; 253 register int end1_char, end2_char;
@@ -338,10 +336,10 @@ If string STR1 is greater, the value is a positive number N;
338} 336}
339 337
340DEFUN ("string-lessp", Fstring_lessp, Sstring_lessp, 2, 2, 0, 338DEFUN ("string-lessp", Fstring_lessp, Sstring_lessp, 2, 2, 0,
341/* Return t if first arg string is less than second in lexicographic order. 339 doc: /* Return t if first arg string is less than second in lexicographic order.
342Case is significant. 340Case is significant.
343Symbols are also allowed; their print names are used instead. */ 341Symbols are also allowed; their print names are used instead. */)
344 (s1, s2)) 342 (s1, s2)
345 register Lisp_Object s1, s2; 343 register Lisp_Object s1, s2;
346{ 344{
347 register int end; 345 register int end;
@@ -409,11 +407,11 @@ concat3 (s1, s2, s3)
409} 407}
410 408
411DEFUN ("append", Fappend, Sappend, 0, MANY, 0, 409DEFUN ("append", Fappend, Sappend, 0, MANY, 0,
412 /* Concatenate all the arguments and make the result a list. 410 doc: /* Concatenate all the arguments and make the result a list.
413The result is a list whose elements are the elements of all the arguments. 411The result is a list whose elements are the elements of all the arguments.
414Each argument may be a list, vector or string. 412Each argument may be a list, vector or string.
415The last argument is not copied, just used as the tail of the new list. */ 413The last argument is not copied, just used as the tail of the new list. */)
416 (nargs, args)) 414 (nargs, args)
417 int nargs; 415 int nargs;
418 Lisp_Object *args; 416 Lisp_Object *args;
419{ 417{
@@ -421,10 +419,10 @@ The last argument is not copied, just used as the tail of the new list. */
421} 419}
422 420
423DEFUN ("concat", Fconcat, Sconcat, 0, MANY, 0, 421DEFUN ("concat", Fconcat, Sconcat, 0, MANY, 0,
424 /* Concatenate all the arguments and make the result a string. 422 doc: /* Concatenate all the arguments and make the result a string.
425The result is a string whose elements are the elements of all the arguments. 423The result is a string whose elements are the elements of all the arguments.
426Each argument may be a string or a list or vector of characters (integers). */ 424Each argument may be a string or a list or vector of characters (integers). */)
427 (nargs, args)) 425 (nargs, args)
428 int nargs; 426 int nargs;
429 Lisp_Object *args; 427 Lisp_Object *args;
430{ 428{
@@ -432,10 +430,10 @@ Each argument may be a string or a list or vector of characters (integers). */
432} 430}
433 431
434DEFUN ("vconcat", Fvconcat, Svconcat, 0, MANY, 0, 432DEFUN ("vconcat", Fvconcat, Svconcat, 0, MANY, 0,
435 /* Concatenate all the arguments and make the result a vector. 433 doc: /* Concatenate all the arguments and make the result a vector.
436The result is a vector whose elements are the elements of all the arguments. 434The result is a vector whose elements are the elements of all the arguments.
437Each argument may be a list, vector or string. */ 435Each argument may be a list, vector or string. */)
438 (nargs, args)) 436 (nargs, args)
439 int nargs; 437 int nargs;
440 Lisp_Object *args; 438 Lisp_Object *args;
441{ 439{
@@ -465,10 +463,10 @@ copy_sub_char_table (arg)
465 463
466 464
467DEFUN ("copy-sequence", Fcopy_sequence, Scopy_sequence, 1, 1, 0, 465DEFUN ("copy-sequence", Fcopy_sequence, Scopy_sequence, 1, 1, 0,
468 /* Return a copy of a list, vector or string. 466 doc: /* Return a copy of a list, vector or string.
469The elements of a list or vector are not copied; they are shared 467The elements of a list or vector are not copied; they are shared
470with the original. */ 468with the original. */)
471 (arg)) 469 (arg)
472 Lisp_Object arg; 470 Lisp_Object arg;
473{ 471{
474 if (NILP (arg)) return arg; 472 if (NILP (arg)) return arg;
@@ -1054,10 +1052,10 @@ string_make_unibyte (string)
1054 1052
1055DEFUN ("string-make-multibyte", Fstring_make_multibyte, Sstring_make_multibyte, 1053DEFUN ("string-make-multibyte", Fstring_make_multibyte, Sstring_make_multibyte,
1056 1, 1, 0, 1054 1, 1, 0,
1057 /* Return the multibyte equivalent of STRING. 1055 doc: /* Return the multibyte equivalent of STRING.
1058The function `unibyte-char-to-multibyte' is used to convert 1056The function `unibyte-char-to-multibyte' is used to convert
1059each unibyte character to a multibyte character. */ 1057each unibyte character to a multibyte character. */)
1060 (string)) 1058 (string)
1061 Lisp_Object string; 1059 Lisp_Object string;
1062{ 1060{
1063 CHECK_STRING (string, 0); 1061 CHECK_STRING (string, 0);
@@ -1067,10 +1065,10 @@ each unibyte character to a multibyte character. */
1067 1065
1068DEFUN ("string-make-unibyte", Fstring_make_unibyte, Sstring_make_unibyte, 1066DEFUN ("string-make-unibyte", Fstring_make_unibyte, Sstring_make_unibyte,
1069 1, 1, 0, 1067 1, 1, 0,
1070 /* Return the unibyte equivalent of STRING. 1068 doc: /* Return the unibyte equivalent of STRING.
1071Multibyte character codes are converted to unibyte 1069Multibyte character codes are converted to unibyte
1072by using just the low 8 bits. */ 1070by using just the low 8 bits. */)
1073 (string)) 1071 (string)
1074 Lisp_Object string; 1072 Lisp_Object string;
1075{ 1073{
1076 CHECK_STRING (string, 0); 1074 CHECK_STRING (string, 0);
@@ -1080,13 +1078,13 @@ by using just the low 8 bits. */
1080 1078
1081DEFUN ("string-as-unibyte", Fstring_as_unibyte, Sstring_as_unibyte, 1079DEFUN ("string-as-unibyte", Fstring_as_unibyte, Sstring_as_unibyte,
1082 1, 1, 0, 1080 1, 1, 0,
1083 /* Return a unibyte string with the same individual bytes as STRING. 1081 doc: /* Return a unibyte string with the same individual bytes as STRING.
1084If STRING is unibyte, the result is STRING itself. 1082If STRING is unibyte, the result is STRING itself.
1085Otherwise it is a newly created string, with no text properties. 1083Otherwise it is a newly created string, with no text properties.
1086If STRING is multibyte and contains a character of charset 1084If STRING is multibyte and contains a character of charset
1087`eight-bit-control' or `eight-bit-graphic', it is converted to the 1085`eight-bit-control' or `eight-bit-graphic', it is converted to the
1088corresponding single byte. */ 1086corresponding single byte. */)
1089 (string)) 1087 (string)
1090 Lisp_Object string; 1088 Lisp_Object string;
1091{ 1089{
1092 CHECK_STRING (string, 0); 1090 CHECK_STRING (string, 0);
@@ -1106,13 +1104,13 @@ corresponding single byte. */
1106 1104
1107DEFUN ("string-as-multibyte", Fstring_as_multibyte, Sstring_as_multibyte, 1105DEFUN ("string-as-multibyte", Fstring_as_multibyte, Sstring_as_multibyte,
1108 1, 1, 0, 1106 1, 1, 0,
1109/* Return a multibyte string with the same individual bytes as STRING. 1107 doc: /* Return a multibyte string with the same individual bytes as STRING.
1110If STRING is multibyte, the result is STRING itself. 1108If STRING is multibyte, the result is STRING itself.
1111Otherwise it is a newly created string, with no text properties. 1109Otherwise it is a newly created string, with no text properties.
1112If STRING is unibyte and contains an individual 8-bit byte (i.e. not 1110If STRING is unibyte and contains an individual 8-bit byte (i.e. not
1113part of a multibyte form), it is converted to the corresponding 1111part of a multibyte form), it is converted to the corresponding
1114multibyte character of charset `eight-bit-control' or `eight-bit-graphic'. */ 1112multibyte character of charset `eight-bit-control' or `eight-bit-graphic'. */)
1115 (string)) 1113 (string)
1116 Lisp_Object string; 1114 Lisp_Object string;
1117{ 1115{
1118 CHECK_STRING (string, 0); 1116 CHECK_STRING (string, 0);
@@ -1138,13 +1136,13 @@ multibyte character of charset `eight-bit-control' or `eight-bit-graphic'. */
1138} 1136}
1139 1137
1140DEFUN ("copy-alist", Fcopy_alist, Scopy_alist, 1, 1, 0, 1138DEFUN ("copy-alist", Fcopy_alist, Scopy_alist, 1, 1, 0,
1141 /* Return a copy of ALIST. 1139 doc: /* Return a copy of ALIST.
1142This is an alist which represents the same mapping from objects to objects, 1140This is an alist which represents the same mapping from objects to objects,
1143but does not share the alist structure with ALIST. 1141but does not share the alist structure with ALIST.
1144The objects mapped (cars and cdrs of elements of the alist) 1142The objects mapped (cars and cdrs of elements of the alist)
1145are shared, however. 1143are shared, however.
1146Elements of ALIST that are not conses are also shared. */ 1144Elements of ALIST that are not conses are also shared. */)
1147 (alist)) 1145 (alist)
1148 Lisp_Object alist; 1146 Lisp_Object alist;
1149{ 1147{
1150 register Lisp_Object tem; 1148 register Lisp_Object tem;
@@ -1165,12 +1163,13 @@ Elements of ALIST that are not conses are also shared. */
1165} 1163}
1166 1164
1167DEFUN ("substring", Fsubstring, Ssubstring, 2, 3, 0, 1165DEFUN ("substring", Fsubstring, Ssubstring, 2, 3, 0,
1168/* Return a substring of STRING, starting at index FROM and ending before TO. 1166 doc: /*
1167Return a substring of STRING, starting at index FROM and ending before TO.
1169TO may be nil or omitted; then the substring runs to the end of STRING. 1168TO may be nil or omitted; then the substring runs to the end of STRING.
1170If FROM or TO is negative, it counts from the end. 1169If FROM or TO is negative, it counts from the end.
1171 1170
1172This function allows vectors as well as strings. */ 1171This function allows vectors as well as strings. */)
1173 (string, from, to)) 1172 (string, from, to)
1174 Lisp_Object string; 1173 Lisp_Object string;
1175 register Lisp_Object from, to; 1174 register Lisp_Object from, to;
1176{ 1175{
@@ -1277,8 +1276,8 @@ substring_both (string, from, from_byte, to, to_byte)
1277} 1276}
1278 1277
1279DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0, 1278DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0,
1280 /* Take cdr N times on LIST, returns the result. */ 1279 doc: /* Take cdr N times on LIST, returns the result. */)
1281 (n, list)) 1280 (n, list)
1282 Lisp_Object n; 1281 Lisp_Object n;
1283 register Lisp_Object list; 1282 register Lisp_Object list;
1284{ 1283{
@@ -1296,17 +1295,17 @@ DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0,
1296} 1295}
1297 1296
1298DEFUN ("nth", Fnth, Snth, 2, 2, 0, 1297DEFUN ("nth", Fnth, Snth, 2, 2, 0,
1299 /* Return the Nth element of LIST. 1298 doc: /* Return the Nth element of LIST.
1300N counts from zero. If LIST is not that long, nil is returned. */ 1299N counts from zero. If LIST is not that long, nil is returned. */)
1301 (n, list)) 1300 (n, list)
1302 Lisp_Object n, list; 1301 Lisp_Object n, list;
1303{ 1302{
1304 return Fcar (Fnthcdr (n, list)); 1303 return Fcar (Fnthcdr (n, list));
1305} 1304}
1306 1305
1307DEFUN ("elt", Felt, Selt, 2, 2, 0, 1306DEFUN ("elt", Felt, Selt, 2, 2, 0,
1308 /* Return element of SEQUENCE at index N. */ 1307 doc: /* Return element of SEQUENCE at index N. */)
1309 (sequence, n)) 1308 (sequence, n)
1310 register Lisp_Object sequence, n; 1309 register Lisp_Object sequence, n;
1311{ 1310{
1312 CHECK_NUMBER (n, 0); 1311 CHECK_NUMBER (n, 0);
@@ -1323,9 +1322,9 @@ DEFUN ("elt", Felt, Selt, 2, 2, 0,
1323} 1322}
1324 1323
1325DEFUN ("member", Fmember, Smember, 2, 2, 0, 1324DEFUN ("member", Fmember, Smember, 2, 2, 0,
1326/* Return non-nil if ELT is an element of LIST. Comparison done with `equal'. 1325doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `equal'.
1327The value is actually the tail of LIST whose car is ELT. */ 1326The value is actually the tail of LIST whose car is ELT. */)
1328 (elt, list)) 1327 (elt, list)
1329 register Lisp_Object elt; 1328 register Lisp_Object elt;
1330 Lisp_Object list; 1329 Lisp_Object list;
1331{ 1330{
@@ -1344,10 +1343,10 @@ The value is actually the tail of LIST whose car is ELT. */
1344} 1343}
1345 1344
1346DEFUN ("memq", Fmemq, Smemq, 2, 2, 0, 1345DEFUN ("memq", Fmemq, Smemq, 2, 2, 0,
1347 /* Return non-nil if ELT is an element of LIST. 1346 doc: /* Return non-nil if ELT is an element of LIST.
1348Comparison done with EQ. The value is actually the tail of LIST 1347Comparison done with EQ. The value is actually the tail of LIST
1349whose car is ELT. */ 1348whose car is ELT. */)
1350 (elt, list)) 1349 (elt, list)
1351 Lisp_Object elt, list; 1350 Lisp_Object elt, list;
1352{ 1351{
1353 while (1) 1352 while (1)
@@ -1374,10 +1373,10 @@ whose car is ELT. */
1374} 1373}
1375 1374
1376DEFUN ("assq", Fassq, Sassq, 2, 2, 0, 1375DEFUN ("assq", Fassq, Sassq, 2, 2, 0,
1377 /* Return non-nil if KEY is `eq' to the car of an element of LIST. 1376 doc: /* Return non-nil if KEY is `eq' to the car of an element of LIST.
1378The value is actually the element of LIST whose car is KEY. 1377The value is actually the element of LIST whose car is KEY.
1379Elements of LIST that are not conses are ignored. */ 1378Elements of LIST that are not conses are ignored. */)
1380 (key, list)) 1379 (key, list)
1381 Lisp_Object key, list; 1380 Lisp_Object key, list;
1382{ 1381{
1383 Lisp_Object result; 1382 Lisp_Object result;
@@ -1431,9 +1430,9 @@ assq_no_quit (key, list)
1431} 1430}
1432 1431
1433DEFUN ("assoc", Fassoc, Sassoc, 2, 2, 0, 1432DEFUN ("assoc", Fassoc, Sassoc, 2, 2, 0,
1434 /* Return non-nil if KEY is `equal' to the car of an element of LIST. 1433 doc: /* Return non-nil if KEY is `equal' to the car of an element of LIST.
1435The value is actually the element of LIST whose car equals KEY. */ 1434The value is actually the element of LIST whose car equals KEY. */)
1436 (key, list)) 1435 (key, list)
1437 Lisp_Object key, list; 1436 Lisp_Object key, list;
1438{ 1437{
1439 Lisp_Object result, car; 1438 Lisp_Object result, car;
@@ -1475,9 +1474,9 @@ The value is actually the element of LIST whose car equals KEY. */
1475} 1474}
1476 1475
1477DEFUN ("rassq", Frassq, Srassq, 2, 2, 0, 1476DEFUN ("rassq", Frassq, Srassq, 2, 2, 0,
1478 /* Return non-nil if KEY is `eq' to the cdr of an element of LIST. 1477 doc: /* Return non-nil if KEY is `eq' to the cdr of an element of LIST.
1479The value is actually the element of LIST whose cdr is KEY. */ 1478The value is actually the element of LIST whose cdr is KEY. */)
1480 (key, list)) 1479 (key, list)
1481 register Lisp_Object key; 1480 register Lisp_Object key;
1482 Lisp_Object list; 1481 Lisp_Object list;
1483{ 1482{
@@ -1517,9 +1516,9 @@ The value is actually the element of LIST whose cdr is KEY. */
1517} 1516}
1518 1517
1519DEFUN ("rassoc", Frassoc, Srassoc, 2, 2, 0, 1518DEFUN ("rassoc", Frassoc, Srassoc, 2, 2, 0,
1520 /* Return non-nil if KEY is `equal' to the cdr of an element of LIST. 1519 doc: /* Return non-nil if KEY is `equal' to the cdr of an element of LIST.
1521The value is actually the element of LIST whose cdr equals KEY. */ 1520The value is actually the element of LIST whose cdr equals KEY. */)
1522 (key, list)) 1521 (key, list)
1523 Lisp_Object key, list; 1522 Lisp_Object key, list;
1524{ 1523{
1525 Lisp_Object result, cdr; 1524 Lisp_Object result, cdr;
@@ -1561,12 +1560,12 @@ The value is actually the element of LIST whose cdr equals KEY. */
1561} 1560}
1562 1561
1563DEFUN ("delq", Fdelq, Sdelq, 2, 2, 0, 1562DEFUN ("delq", Fdelq, Sdelq, 2, 2, 0,
1564 /* Delete by side effect any occurrences of ELT as a member of LIST. 1563 doc: /* Delete by side effect any occurrences of ELT as a member of LIST.
1565The modified LIST is returned. Comparison is done with `eq'. 1564The modified LIST is returned. Comparison is done with `eq'.
1566If the first member of LIST is ELT, there is no way to remove it by side effect; 1565If the first member of LIST is ELT, there is no way to remove it by side effect;
1567therefore, write `(setq foo (delq element foo))' 1566therefore, write `(setq foo (delq element foo))'
1568to be sure of changing the value of `foo'. */ 1567to be sure of changing the value of `foo'. */)
1569 (elt, list)) 1568 (elt, list)
1570 register Lisp_Object elt; 1569 register Lisp_Object elt;
1571 Lisp_Object list; 1570 Lisp_Object list;
1572{ 1571{
@@ -1596,14 +1595,14 @@ to be sure of changing the value of `foo'. */
1596} 1595}
1597 1596
1598DEFUN ("delete", Fdelete, Sdelete, 2, 2, 0, 1597DEFUN ("delete", Fdelete, Sdelete, 2, 2, 0,
1599 /* Delete by side effect any occurrences of ELT as a member of SEQ. 1598 doc: /* Delete by side effect any occurrences of ELT as a member of SEQ.
1600SEQ must be a list, a vector, or a string. 1599SEQ must be a list, a vector, or a string.
1601The modified SEQ is returned. Comparison is done with `equal'. 1600The modified SEQ is returned. Comparison is done with `equal'.
1602If SEQ is not a list, or the first member of SEQ is ELT, deleting it 1601If SEQ is not a list, or the first member of SEQ is ELT, deleting it
1603is not a side effect; it is simply using a different sequence. 1602is not a side effect; it is simply using a different sequence.
1604Therefore, write `(setq foo (delete element foo))' 1603Therefore, write `(setq foo (delete element foo))'
1605to be sure of changing the value of `foo'. */ 1604to be sure of changing the value of `foo'. */)
1606 (elt, seq)) 1605 (elt, seq)
1607 Lisp_Object elt, seq; 1606 Lisp_Object elt, seq;
1608{ 1607{
1609 if (VECTORP (seq)) 1608 if (VECTORP (seq))
@@ -1720,9 +1719,9 @@ to be sure of changing the value of `foo'. */
1720} 1719}
1721 1720
1722DEFUN ("nreverse", Fnreverse, Snreverse, 1, 1, 0, 1721DEFUN ("nreverse", Fnreverse, Snreverse, 1, 1, 0,
1723 /* Reverse LIST by modifying cdr pointers. 1722 doc: /* Reverse LIST by modifying cdr pointers.
1724Returns the beginning of the reversed list. */ 1723Returns the beginning of the reversed list. */)
1725 (list)) 1724 (list)
1726 Lisp_Object list; 1725 Lisp_Object list;
1727{ 1726{
1728 register Lisp_Object prev, tail, next; 1727 register Lisp_Object prev, tail, next;
@@ -1744,9 +1743,9 @@ Returns the beginning of the reversed list. */
1744} 1743}
1745 1744
1746DEFUN ("reverse", Freverse, Sreverse, 1, 1, 0, 1745DEFUN ("reverse", Freverse, Sreverse, 1, 1, 0,
1747 /* Reverse LIST, copying. Returns the beginning of the reversed list. 1746 doc: /* Reverse LIST, copying. Returns the beginning of the reversed list.
1748See also the function `nreverse', which is used more often. */ 1747See also the function `nreverse', which is used more often. */)
1749 (list)) 1748 (list)
1750 Lisp_Object list; 1749 Lisp_Object list;
1751{ 1750{
1752 Lisp_Object new; 1751 Lisp_Object new;
@@ -1761,11 +1760,11 @@ See also the function `nreverse', which is used more often. */
1761Lisp_Object merge (); 1760Lisp_Object merge ();
1762 1761
1763DEFUN ("sort", Fsort, Ssort, 2, 2, 0, 1762DEFUN ("sort", Fsort, Ssort, 2, 2, 0,
1764 /* Sort LIST, stably, comparing elements using PREDICATE. 1763 doc: /* Sort LIST, stably, comparing elements using PREDICATE.
1765Returns the sorted list. LIST is modified by side effects. 1764Returns the sorted list. LIST is modified by side effects.
1766PREDICATE is called with two elements of LIST, and should return t 1765PREDICATE is called with two elements of LIST, and should return t
1767if the first element is "less" than the second. */ 1766if the first element is "less" than the second. */)
1768 (list, predicate)) 1767 (list, predicate)
1769 Lisp_Object list, predicate; 1768 Lisp_Object list, predicate;
1770{ 1769{
1771 Lisp_Object front, back; 1770 Lisp_Object front, back;
@@ -1853,12 +1852,12 @@ merge (org_l1, org_l2, pred)
1853 1852
1854 1853
1855DEFUN ("plist-get", Fplist_get, Splist_get, 2, 2, 0, 1854DEFUN ("plist-get", Fplist_get, Splist_get, 2, 2, 0,
1856 /* Extract a value from a property list. 1855 doc: /* Extract a value from a property list.
1857PLIST is a property list, which is a list of the form 1856PLIST is a property list, which is a list of the form
1858\(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value 1857\(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value
1859corresponding to the given PROP, or nil if PROP is not 1858corresponding to the given PROP, or nil if PROP is not
1860one of the properties on the list. */ 1859one of the properties on the list. */)
1861 (plist, prop)) 1860 (plist, prop)
1862 Lisp_Object plist; 1861 Lisp_Object plist;
1863 Lisp_Object prop; 1862 Lisp_Object prop;
1864{ 1863{
@@ -1884,9 +1883,9 @@ one of the properties on the list. */
1884} 1883}
1885 1884
1886DEFUN ("get", Fget, Sget, 2, 2, 0, 1885DEFUN ("get", Fget, Sget, 2, 2, 0,
1887 /* Return the value of SYMBOL's PROPNAME property. 1886 doc: /* Return the value of SYMBOL's PROPNAME property.
1888This is the last value stored with `(put SYMBOL PROPNAME VALUE)'. */ 1887This is the last value stored with `(put SYMBOL PROPNAME VALUE)'. */)
1889 (symbol, propname)) 1888 (symbol, propname)
1890 Lisp_Object symbol, propname; 1889 Lisp_Object symbol, propname;
1891{ 1890{
1892 CHECK_SYMBOL (symbol, 0); 1891 CHECK_SYMBOL (symbol, 0);
@@ -1894,14 +1893,14 @@ This is the last value stored with `(put SYMBOL PROPNAME VALUE)'. */
1894} 1893}
1895 1894
1896DEFUN ("plist-put", Fplist_put, Splist_put, 3, 3, 0, 1895DEFUN ("plist-put", Fplist_put, Splist_put, 3, 3, 0,
1897 /* Change value in PLIST of PROP to VAL. 1896 doc: /* Change value in PLIST of PROP to VAL.
1898PLIST is a property list, which is a list of the form 1897PLIST is a property list, which is a list of the form
1899\(PROP1 VALUE1 PROP2 VALUE2 ...). PROP is a symbol and VAL is any object. 1898\(PROP1 VALUE1 PROP2 VALUE2 ...). PROP is a symbol and VAL is any object.
1900If PROP is already a property on the list, its value is set to VAL, 1899If PROP is already a property on the list, its value is set to VAL,
1901otherwise the new PROP VAL pair is added. The new plist is returned; 1900otherwise the new PROP VAL pair is added. The new plist is returned;
1902use `(setq x (plist-put x prop val))' to be sure to use the new value. 1901use `(setq x (plist-put x prop val))' to be sure to use the new value.
1903The PLIST is modified by side effects. */ 1902The PLIST is modified by side effects. */)
1904 (plist, prop, val)) 1903 (plist, prop, val)
1905 Lisp_Object plist; 1904 Lisp_Object plist;
1906 register Lisp_Object prop; 1905 register Lisp_Object prop;
1907 Lisp_Object val; 1906 Lisp_Object val;
@@ -1930,9 +1929,9 @@ The PLIST is modified by side effects. */
1930} 1929}
1931 1930
1932DEFUN ("put", Fput, Sput, 3, 3, 0, 1931DEFUN ("put", Fput, Sput, 3, 3, 0,
1933 /* Store SYMBOL's PROPNAME property with value VALUE. 1932 doc: /* Store SYMBOL's PROPNAME property with value VALUE.
1934It can be retrieved with `(get SYMBOL PROPNAME)'. */ 1933It can be retrieved with `(get SYMBOL PROPNAME)'. */)
1935 (symbol, propname, value)) 1934 (symbol, propname, value)
1936 Lisp_Object symbol, propname, value; 1935 Lisp_Object symbol, propname, value;
1937{ 1936{
1938 CHECK_SYMBOL (symbol, 0); 1937 CHECK_SYMBOL (symbol, 0);
@@ -1942,14 +1941,14 @@ It can be retrieved with `(get SYMBOL PROPNAME)'. */
1942} 1941}
1943 1942
1944DEFUN ("equal", Fequal, Sequal, 2, 2, 0, 1943DEFUN ("equal", Fequal, Sequal, 2, 2, 0,
1945 /* Return t if two Lisp objects have similar structure and contents. 1944 doc: /* Return t if two Lisp objects have similar structure and contents.
1946They must have the same data type. 1945They must have the same data type.
1947Conses are compared by comparing the cars and the cdrs. 1946Conses are compared by comparing the cars and the cdrs.
1948Vectors and strings are compared element by element. 1947Vectors and strings are compared element by element.
1949Numbers are compared by value, but integers cannot equal floats. 1948Numbers are compared by value, but integers cannot equal floats.
1950 (Use `=' if you want integers and floats to be able to be equal.) 1949 (Use `=' if you want integers and floats to be able to be equal.)
1951Symbols must match exactly. */ 1950Symbols must match exactly. */)
1952 (o1, o2)) 1951 (o1, o2)
1953 register Lisp_Object o1, o2; 1952 register Lisp_Object o1, o2;
1954{ 1953{
1955 return internal_equal (o1, o2, 0) ? Qt : Qnil; 1954 return internal_equal (o1, o2, 0) ? Qt : Qnil;
@@ -2071,9 +2070,9 @@ internal_equal (o1, o2, depth)
2071extern Lisp_Object Fmake_char_internal (); 2070extern Lisp_Object Fmake_char_internal ();
2072 2071
2073DEFUN ("fillarray", Ffillarray, Sfillarray, 2, 2, 0, 2072DEFUN ("fillarray", Ffillarray, Sfillarray, 2, 2, 0,
2074 /* Store each element of ARRAY with ITEM. 2073 doc: /* Store each element of ARRAY with ITEM.
2075ARRAY is a vector, string, char-table, or bool-vector. */ 2074ARRAY is a vector, string, char-table, or bool-vector. */)
2076 (array, item)) 2075 (array, item)
2077 Lisp_Object array, item; 2076 Lisp_Object array, item;
2078{ 2077{
2079 register int size, index, charval; 2078 register int size, index, charval;
@@ -2142,8 +2141,8 @@ ARRAY is a vector, string, char-table, or bool-vector. */
2142 2141
2143DEFUN ("char-table-subtype", Fchar_table_subtype, Schar_table_subtype, 2142DEFUN ("char-table-subtype", Fchar_table_subtype, Schar_table_subtype,
2144 1, 1, 0, 2143 1, 1, 0,
2145 /* Return the subtype of char-table CHAR-TABLE. The value is a symbol. */ 2144 doc: /* Return the subtype of char-table CHAR-TABLE. The value is a symbol. */)
2146 (char_table)) 2145 (char_table)
2147 Lisp_Object char_table; 2146 Lisp_Object char_table;
2148{ 2147{
2149 CHECK_CHAR_TABLE (char_table, 0); 2148 CHECK_CHAR_TABLE (char_table, 0);
@@ -2153,12 +2152,12 @@ DEFUN ("char-table-subtype", Fchar_table_subtype, Schar_table_subtype,
2153 2152
2154DEFUN ("char-table-parent", Fchar_table_parent, Schar_table_parent, 2153DEFUN ("char-table-parent", Fchar_table_parent, Schar_table_parent,
2155 1, 1, 0, 2154 1, 1, 0,
2156 /* Return the parent char-table of CHAR-TABLE. 2155 doc: /* Return the parent char-table of CHAR-TABLE.
2157The value is either nil or another char-table. 2156The value is either nil or another char-table.
2158If CHAR-TABLE holds nil for a given character, 2157If CHAR-TABLE holds nil for a given character,
2159then the actual applicable value is inherited from the parent char-table 2158then the actual applicable value is inherited from the parent char-table
2160\(or from its parents, if necessary). */ 2159\(or from its parents, if necessary). */)
2161 (char_table)) 2160 (char_table)
2162 Lisp_Object char_table; 2161 Lisp_Object char_table;
2163{ 2162{
2164 CHECK_CHAR_TABLE (char_table, 0); 2163 CHECK_CHAR_TABLE (char_table, 0);
@@ -2168,9 +2167,9 @@ then the actual applicable value is inherited from the parent char-table
2168 2167
2169DEFUN ("set-char-table-parent", Fset_char_table_parent, Sset_char_table_parent, 2168DEFUN ("set-char-table-parent", Fset_char_table_parent, Sset_char_table_parent,
2170 2, 2, 0, 2169 2, 2, 0,
2171 /* Set the parent char-table of CHAR-TABLE to PARENT. 2170 doc: /* Set the parent char-table of CHAR-TABLE to PARENT.
2172PARENT must be either nil or another char-table. */ 2171PARENT must be either nil or another char-table. */)
2173 (char_table, parent)) 2172 (char_table, parent)
2174 Lisp_Object char_table, parent; 2173 Lisp_Object char_table, parent;
2175{ 2174{
2176 Lisp_Object temp; 2175 Lisp_Object temp;
@@ -2193,8 +2192,8 @@ PARENT must be either nil or another char-table. */
2193 2192
2194DEFUN ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot, 2193DEFUN ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot,
2195 2, 2, 0, 2194 2, 2, 0,
2196 /* Return the value of CHAR-TABLE's extra-slot number N. */ 2195 doc: /* Return the value of CHAR-TABLE's extra-slot number N. */)
2197 (char_table, n)) 2196 (char_table, n)
2198 Lisp_Object char_table, n; 2197 Lisp_Object char_table, n;
2199{ 2198{
2200 CHECK_CHAR_TABLE (char_table, 1); 2199 CHECK_CHAR_TABLE (char_table, 1);
@@ -2209,8 +2208,8 @@ DEFUN ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot,
2209DEFUN ("set-char-table-extra-slot", Fset_char_table_extra_slot, 2208DEFUN ("set-char-table-extra-slot", Fset_char_table_extra_slot,
2210 Sset_char_table_extra_slot, 2209 Sset_char_table_extra_slot,
2211 3, 3, 0, 2210 3, 3, 0,
2212 /* Set CHAR-TABLE's extra-slot number N to VALUE. */ 2211 doc: /* Set CHAR-TABLE's extra-slot number N to VALUE. */)
2213 (char_table, n, value)) 2212 (char_table, n, value)
2214 Lisp_Object char_table, n, value; 2213 Lisp_Object char_table, n, value;
2215{ 2214{
2216 CHECK_CHAR_TABLE (char_table, 1); 2215 CHECK_CHAR_TABLE (char_table, 1);
@@ -2224,11 +2223,11 @@ DEFUN ("set-char-table-extra-slot", Fset_char_table_extra_slot,
2224 2223
2225DEFUN ("char-table-range", Fchar_table_range, Schar_table_range, 2224DEFUN ("char-table-range", Fchar_table_range, Schar_table_range,
2226 2, 2, 0, 2225 2, 2, 0,
2227 /* Return the value in CHAR-TABLE for a range of characters RANGE. 2226 doc: /* Return the value in CHAR-TABLE for a range of characters RANGE.
2228RANGE should be nil (for the default value) 2227RANGE should be nil (for the default value)
2229a vector which identifies a character set or a row of a character set, 2228a vector which identifies a character set or a row of a character set,
2230a character set name, or a character code. */ 2229a character set name, or a character code. */)
2231 (char_table, range)) 2230 (char_table, range)
2232 Lisp_Object char_table, range; 2231 Lisp_Object char_table, range;
2233{ 2232{
2234 CHECK_CHAR_TABLE (char_table, 0); 2233 CHECK_CHAR_TABLE (char_table, 0);
@@ -2270,11 +2269,11 @@ a character set name, or a character code. */
2270 2269
2271DEFUN ("set-char-table-range", Fset_char_table_range, Sset_char_table_range, 2270DEFUN ("set-char-table-range", Fset_char_table_range, Sset_char_table_range,
2272 3, 3, 0, 2271 3, 3, 0,
2273 /* Set the value in CHAR-TABLE for a range of characters RANGE to VALUE. 2272 doc: /* Set the value in CHAR-TABLE for a range of characters RANGE to VALUE.
2274RANGE should be t (for all characters), nil (for the default value) 2273RANGE should be t (for all characters), nil (for the default value)
2275a vector which identifies a character set or a row of a character set, 2274a vector which identifies a character set or a row of a character set,
2276a coding system, or a character code. */ 2275a coding system, or a character code. */)
2277 (char_table, range, value)) 2276 (char_table, range, value)
2278 Lisp_Object char_table, range, value; 2277 Lisp_Object char_table, range, value;
2279{ 2278{
2280 int i; 2279 int i;
@@ -2324,10 +2323,10 @@ a coding system, or a character code. */
2324 2323
2325DEFUN ("set-char-table-default", Fset_char_table_default, 2324DEFUN ("set-char-table-default", Fset_char_table_default,
2326 Sset_char_table_default, 3, 3, 0, 2325 Sset_char_table_default, 3, 3, 0,
2327 /* Set the default value in CHAR-TABLE for a generic character CHAR to VALUE. 2326 doc: /* Set the default value in CHAR-TABLE for a generic character CHAR to VALUE.
2328The generic character specifies the group of characters. 2327The generic character specifies the group of characters.
2329See also the documentation of make-char. */ 2328See also the documentation of make-char. */)
2330 (char_table, ch, value)) 2329 (char_table, ch, value)
2331 Lisp_Object char_table, ch, value; 2330 Lisp_Object char_table, ch, value;
2332{ 2331{
2333 int c, charset, code1, code2; 2332 int c, charset, code1, code2;
@@ -2414,9 +2413,8 @@ optimize_sub_char_table (table, chars)
2414} 2413}
2415 2414
2416DEFUN ("optimize-char-table", Foptimize_char_table, Soptimize_char_table, 2415DEFUN ("optimize-char-table", Foptimize_char_table, Soptimize_char_table,
2417 1, 1, 0, 2416 1, 1, 0, doc: /* Optimize char table TABLE. */)
2418 /* Optimize char table TABLE. */ 2417 (table)
2419 (table))
2420 Lisp_Object table; 2418 Lisp_Object table;
2421{ 2419{
2422 Lisp_Object elt; 2420 Lisp_Object elt;
@@ -2523,10 +2521,10 @@ map_char_table (c_function, function, subtable, arg, depth, indices)
2523 2521
2524DEFUN ("map-char-table", Fmap_char_table, Smap_char_table, 2522DEFUN ("map-char-table", Fmap_char_table, Smap_char_table,
2525 2, 2, 0, 2523 2, 2, 0,
2526 /* Call FUNCTION for each (normal and generic) characters in CHAR-TABLE. 2524 doc: /* Call FUNCTION for each (normal and generic) characters in CHAR-TABLE.
2527FUNCTION is called with two arguments--a key and a value. 2525FUNCTION is called with two arguments--a key and a value.
2528The key is always a possible IDX argument to `aref'. */ 2526The key is always a possible IDX argument to `aref'. */)
2529 (function, char_table)) 2527 (function, char_table)
2530 Lisp_Object function, char_table; 2528 Lisp_Object function, char_table;
2531{ 2529{
2532 /* The depth of char table is at most 3. */ 2530 /* The depth of char table is at most 3. */
@@ -2589,9 +2587,9 @@ nconc2 (s1, s2)
2589} 2587}
2590 2588
2591DEFUN ("nconc", Fnconc, Snconc, 0, MANY, 0, 2589DEFUN ("nconc", Fnconc, Snconc, 0, MANY, 0,
2592 /* Concatenate any number of lists by altering them. 2590 doc: /* Concatenate any number of lists by altering them.
2593Only the last argument is not altered, and need not be a list. */ 2591Only the last argument is not altered, and need not be a list. */)
2594 (nargs, args)) 2592 (nargs, args)
2595 int nargs; 2593 int nargs;
2596 Lisp_Object *args; 2594 Lisp_Object *args;
2597{ 2595{
@@ -2718,11 +2716,11 @@ mapcar1 (leni, vals, fn, seq)
2718} 2716}
2719 2717
2720DEFUN ("mapconcat", Fmapconcat, Smapconcat, 3, 3, 0, 2718DEFUN ("mapconcat", Fmapconcat, Smapconcat, 3, 3, 0,
2721 /* Apply FUNCTION to each element of SEQUENCE, and concat the results as strings. 2719 doc: /* Apply FUNCTION to each element of SEQUENCE, and concat the results as strings.
2722In between each pair of results, stick in SEPARATOR. Thus, " " as 2720In between each pair of results, stick in SEPARATOR. Thus, " " as
2723SEPARATOR results in spaces between the values returned by FUNCTION. 2721SEPARATOR results in spaces between the values returned by FUNCTION.
2724SEQUENCE may be a list, a vector, a bool-vector, or a string. */ 2722SEQUENCE may be a list, a vector, a bool-vector, or a string. */)
2725 (function, sequence, separator)) 2723 (function, sequence, separator)
2726 Lisp_Object function, sequence, separator; 2724 Lisp_Object function, sequence, separator;
2727{ 2725{
2728 Lisp_Object len; 2726 Lisp_Object len;
@@ -2753,10 +2751,10 @@ SEQUENCE may be a list, a vector, a bool-vector, or a string. */
2753} 2751}
2754 2752
2755DEFUN ("mapcar", Fmapcar, Smapcar, 2, 2, 0, 2753DEFUN ("mapcar", Fmapcar, Smapcar, 2, 2, 0,
2756 /* Apply FUNCTION to each element of SEQUENCE, and make a list of the results. 2754 doc: /* Apply FUNCTION to each element of SEQUENCE, and make a list of the results.
2757The result is a list just as long as SEQUENCE. 2755The result is a list just as long as SEQUENCE.
2758SEQUENCE may be a list, a vector, a bool-vector, or a string. */ 2756SEQUENCE may be a list, a vector, a bool-vector, or a string. */)
2759 (function, sequence)) 2757 (function, sequence)
2760 Lisp_Object function, sequence; 2758 Lisp_Object function, sequence;
2761{ 2759{
2762 register Lisp_Object len; 2760 register Lisp_Object len;
@@ -2773,10 +2771,10 @@ SEQUENCE may be a list, a vector, a bool-vector, or a string. */
2773} 2771}
2774 2772
2775DEFUN ("mapc", Fmapc, Smapc, 2, 2, 0, 2773DEFUN ("mapc", Fmapc, Smapc, 2, 2, 0,
2776 /* Apply FUNCTION to each element of SEQUENCE for side effects only. 2774 doc: /* Apply FUNCTION to each element of SEQUENCE for side effects only.
2777Unlike `mapcar', don't accumulate the results. Return SEQUENCE. 2775Unlike `mapcar', don't accumulate the results. Return SEQUENCE.
2778SEQUENCE may be a list, a vector, a bool-vector, or a string. */ 2776SEQUENCE may be a list, a vector, a bool-vector, or a string. */)
2779 (function, sequence)) 2777 (function, sequence)
2780 Lisp_Object function, sequence; 2778 Lisp_Object function, sequence;
2781{ 2779{
2782 register int leni; 2780 register int leni;
@@ -2790,7 +2788,7 @@ SEQUENCE may be a list, a vector, a bool-vector, or a string. */
2790/* Anything that calls this function must protect from GC! */ 2788/* Anything that calls this function must protect from GC! */
2791 2789
2792DEFUN ("y-or-n-p", Fy_or_n_p, Sy_or_n_p, 1, 1, 0, 2790DEFUN ("y-or-n-p", Fy_or_n_p, Sy_or_n_p, 1, 1, 0,
2793 /* Ask user a "y or n" question. Return t if answer is "y". 2791 doc: /* Ask user a "y or n" question. Return t if answer is "y".
2794Takes one argument, which is the string to display to ask the question. 2792Takes one argument, which is the string to display to ask the question.
2795It should end in a space; `y-or-n-p' adds `(y or n) ' to it. 2793It should end in a space; `y-or-n-p' adds `(y or n) ' to it.
2796No confirmation of the answer is requested; a single character is enough. 2794No confirmation of the answer is requested; a single character is enough.
@@ -2800,8 +2798,8 @@ for more information. In this case, the useful bindings are `act', `skip',
2800`recenter', and `quit'.\) 2798`recenter', and `quit'.\)
2801 2799
2802Under a windowing system a dialog box will be used if `last-nonmenu-event' 2800Under a windowing system a dialog box will be used if `last-nonmenu-event'
2803is nil and `use-dialog-box' is non-nil. */ 2801is nil and `use-dialog-box' is non-nil. */)
2804 (prompt)) 2802 (prompt)
2805 Lisp_Object prompt; 2803 Lisp_Object prompt;
2806{ 2804{
2807 register Lisp_Object obj, key, def, map; 2805 register Lisp_Object obj, key, def, map;
@@ -2930,15 +2928,15 @@ do_yes_or_no_p (prompt)
2930/* Anything that calls this function must protect from GC! */ 2928/* Anything that calls this function must protect from GC! */
2931 2929
2932DEFUN ("yes-or-no-p", Fyes_or_no_p, Syes_or_no_p, 1, 1, 0, 2930DEFUN ("yes-or-no-p", Fyes_or_no_p, Syes_or_no_p, 1, 1, 0,
2933 /* Ask user a yes-or-no question. Return t if answer is yes. 2931 doc: /* Ask user a yes-or-no question. Return t if answer is yes.
2934Takes one argument, which is the string to display to ask the question. 2932Takes one argument, which is the string to display to ask the question.
2935It should end in a space; `yes-or-no-p' adds `(yes or no) ' to it. 2933It should end in a space; `yes-or-no-p' adds `(yes or no) ' to it.
2936The user must confirm the answer with RET, 2934The user must confirm the answer with RET,
2937and can edit it until it has been confirmed. 2935and can edit it until it has been confirmed.
2938 2936
2939Under a windowing system a dialog box will be used if `last-nonmenu-event' 2937Under a windowing system a dialog box will be used if `last-nonmenu-event'
2940is nil, and `use-dialog-box' is non-nil. */ 2938is nil, and `use-dialog-box' is non-nil. */)
2941 (prompt)) 2939 (prompt)
2942 Lisp_Object prompt; 2940 Lisp_Object prompt;
2943{ 2941{
2944 register Lisp_Object ans; 2942 register Lisp_Object ans;
@@ -2995,7 +2993,7 @@ is nil, and `use-dialog-box' is non-nil. */
2995} 2993}
2996 2994
2997DEFUN ("load-average", Fload_average, Sload_average, 0, 1, 0, 2995DEFUN ("load-average", Fload_average, Sload_average, 0, 1, 0,
2998 /* Return list of 1 minute, 5 minute and 15 minute load averages. 2996 doc: /* Return list of 1 minute, 5 minute and 15 minute load averages.
2999 2997
3000Each of the three load averages is multiplied by 100, then converted 2998Each of the three load averages is multiplied by 100, then converted
3001to integer. 2999to integer.
@@ -3004,8 +3002,8 @@ When USE-FLOATS is non-nil, floats will be used instead of integers.
3004These floats are not multiplied by 100. 3002These floats are not multiplied by 100.
3005 3003
3006If the 5-minute or 15-minute load averages are not available, return a 3004If the 5-minute or 15-minute load averages are not available, return a
3007shortened list, containing only those averages which are available. */ 3005shortened list, containing only those averages which are available. */)
3008 (use_floats)) 3006 (use_floats)
3009 Lisp_Object use_floats; 3007 Lisp_Object use_floats;
3010{ 3008{
3011 double load_ave[3]; 3009 double load_ave[3];
@@ -3030,14 +3028,14 @@ Lisp_Object Vfeatures, Qsubfeatures;
3030extern Lisp_Object Vafter_load_alist; 3028extern Lisp_Object Vafter_load_alist;
3031 3029
3032DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0, 3030DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0,
3033 /* Returns t if FEATURE is present in this Emacs. 3031 doc: /* Returns t if FEATURE is present in this Emacs.
3034 3032
3035Use this to conditionalize execution of lisp code based on the 3033Use this to conditionalize execution of lisp code based on the
3036presence or absence of emacs or environment extensions. 3034presence or absence of emacs or environment extensions.
3037Use `provide' to declare that a feature is available. This function 3035Use `provide' to declare that a feature is available. This function
3038looks at the value of the variable `features'. The optional argument 3036looks at the value of the variable `features'. The optional argument
3039SUBFEATURE can be used to check a specific subfeature of FEATURE. */ 3037SUBFEATURE can be used to check a specific subfeature of FEATURE. */)
3040 (feature, subfeature)) 3038 (feature, subfeature)
3041 Lisp_Object feature, subfeature; 3039 Lisp_Object feature, subfeature;
3042{ 3040{
3043 register Lisp_Object tem; 3041 register Lisp_Object tem;
@@ -3049,10 +3047,10 @@ SUBFEATURE can be used to check a specific subfeature of FEATURE. */
3049} 3047}
3050 3048
3051DEFUN ("provide", Fprovide, Sprovide, 1, 2, 0, 3049DEFUN ("provide", Fprovide, Sprovide, 1, 2, 0,
3052 /* Announce that FEATURE is a feature of the current Emacs. 3050 doc: /* Announce that FEATURE is a feature of the current Emacs.
3053The optional argument SUBFEATURES should be a list of symbols listing 3051The optional argument SUBFEATURES should be a list of symbols listing
3054particular subfeatures supported in this version of FEATURE. */ 3052particular subfeatures supported in this version of FEATURE. */)
3055 (feature, subfeatures)) 3053 (feature, subfeatures)
3056 Lisp_Object feature, subfeatures; 3054 Lisp_Object feature, subfeatures;
3057{ 3055{
3058 register Lisp_Object tem; 3056 register Lisp_Object tem;
@@ -3075,7 +3073,7 @@ particular subfeatures supported in this version of FEATURE. */
3075} 3073}
3076 3074
3077DEFUN ("require", Frequire, Srequire, 1, 3, 0, 3075DEFUN ("require", Frequire, Srequire, 1, 3, 0,
3078 /* If feature FEATURE is not loaded, load it from FILENAME. 3076 doc: /* If feature FEATURE is not loaded, load it from FILENAME.
3079If FEATURE is not a member of the list `features', then the feature 3077If FEATURE is not a member of the list `features', then the feature
3080is not loaded; so load the file FILENAME. 3078is not loaded; so load the file FILENAME.
3081If FILENAME is omitted, the printname of FEATURE is used as the file name, 3079If FILENAME is omitted, the printname of FEATURE is used as the file name,
@@ -3084,8 +3082,8 @@ and `load' will try to load this name appended with the suffix `.elc',
3084If the optional third argument NOERROR is non-nil, 3082If the optional third argument NOERROR is non-nil,
3085then return nil if the file is not found instead of signaling an error. 3083then return nil if the file is not found instead of signaling an error.
3086Normally the return value is FEATURE. 3084Normally the return value is FEATURE.
3087The normal messages at start and end of loading FILENAME are suppressed. */ 3085The normal messages at start and end of loading FILENAME are suppressed. */)
3088 (feature, filename, noerror)) 3086 (feature, filename, noerror)
3089 Lisp_Object feature, filename, noerror; 3087 Lisp_Object feature, filename, noerror;
3090{ 3088{
3091 register Lisp_Object tem; 3089 register Lisp_Object tem;
@@ -3128,13 +3126,13 @@ The normal messages at start and end of loading FILENAME are suppressed. */
3128 for the sole reason of efficiency. */ 3126 for the sole reason of efficiency. */
3129 3127
3130DEFUN ("plist-member", Fplist_member, Splist_member, 2, 2, 0, 3128DEFUN ("plist-member", Fplist_member, Splist_member, 2, 2, 0,
3131 /* Return non-nil if PLIST has the property PROP. 3129 doc: /* Return non-nil if PLIST has the property PROP.
3132PLIST is a property list, which is a list of the form 3130PLIST is a property list, which is a list of the form
3133\(PROP1 VALUE1 PROP2 VALUE2 ...\). PROP is a symbol. 3131\(PROP1 VALUE1 PROP2 VALUE2 ...\). PROP is a symbol.
3134Unlike `plist-get', this allows you to distinguish between a missing 3132Unlike `plist-get', this allows you to distinguish between a missing
3135property and a property with the value nil. 3133property and a property with the value nil.
3136The value is actually the tail of PLIST whose car is PROP. */ 3134The value is actually the tail of PLIST whose car is PROP. */)
3137 (plist, prop)) 3135 (plist, prop)
3138 Lisp_Object plist, prop; 3136 Lisp_Object plist, prop;
3139{ 3137{
3140 while (CONSP (plist) && !EQ (XCAR (plist), prop)) 3138 while (CONSP (plist) && !EQ (XCAR (plist), prop))
@@ -3147,9 +3145,9 @@ The value is actually the tail of PLIST whose car is PROP. */
3147} 3145}
3148 3146
3149DEFUN ("widget-put", Fwidget_put, Swidget_put, 3, 3, 0, 3147DEFUN ("widget-put", Fwidget_put, Swidget_put, 3, 3, 0,
3150 /* In WIDGET, set PROPERTY to VALUE. 3148 doc: /* In WIDGET, set PROPERTY to VALUE.
3151The value can later be retrieved with `widget-get'. */ 3149The value can later be retrieved with `widget-get'. */)
3152 (widget, property, value)) 3150 (widget, property, value)
3153 Lisp_Object widget, property, value; 3151 Lisp_Object widget, property, value;
3154{ 3152{
3155 CHECK_CONS (widget, 1); 3153 CHECK_CONS (widget, 1);
@@ -3158,10 +3156,10 @@ The value can later be retrieved with `widget-get'. */
3158} 3156}
3159 3157
3160DEFUN ("widget-get", Fwidget_get, Swidget_get, 2, 2, 0, 3158DEFUN ("widget-get", Fwidget_get, Swidget_get, 2, 2, 0,
3161 /* In WIDGET, get the value of PROPERTY. 3159 doc: /* In WIDGET, get the value of PROPERTY.
3162The value could either be specified when the widget was created, or 3160The value could either be specified when the widget was created, or
3163later with `widget-put'. */ 3161later with `widget-put'. */)
3164 (widget, property)) 3162 (widget, property)
3165 Lisp_Object widget, property; 3163 Lisp_Object widget, property;
3166{ 3164{
3167 Lisp_Object tmp; 3165 Lisp_Object tmp;
@@ -3185,9 +3183,9 @@ later with `widget-put'. */
3185} 3183}
3186 3184
3187DEFUN ("widget-apply", Fwidget_apply, Swidget_apply, 2, MANY, 0, 3185DEFUN ("widget-apply", Fwidget_apply, Swidget_apply, 2, MANY, 0,
3188 /* Apply the value of WIDGET's PROPERTY to the widget itself. 3186 doc: /* Apply the value of WIDGET's PROPERTY to the widget itself.
3189ARGS are passed as extra arguments to the function. */ 3187ARGS are passed as extra arguments to the function. */)
3190 (nargs, args)) 3188 (nargs, args)
3191 int nargs; 3189 int nargs;
3192 Lisp_Object *args; 3190 Lisp_Object *args;
3193{ 3191{
@@ -3292,11 +3290,11 @@ static int base64_decode_1 P_ ((const char *, char *, int, int, int *));
3292 3290
3293DEFUN ("base64-encode-region", Fbase64_encode_region, Sbase64_encode_region, 3291DEFUN ("base64-encode-region", Fbase64_encode_region, Sbase64_encode_region,
3294 2, 3, "r", 3292 2, 3, "r",
3295 /* Base64-encode the region between BEG and END. 3293 doc: /* Base64-encode the region between BEG and END.
3296Return the length of the encoded text. 3294Return the length of the encoded text.
3297Optional third argument NO-LINE-BREAK means do not break long lines 3295Optional third argument NO-LINE-BREAK means do not break long lines
3298into shorter lines. */ 3296into shorter lines. */)
3299 (beg, end, no_line_break)) 3297 (beg, end, no_line_break)
3300 Lisp_Object beg, end, no_line_break; 3298 Lisp_Object beg, end, no_line_break;
3301{ 3299{
3302 char *encoded; 3300 char *encoded;
@@ -3357,10 +3355,10 @@ into shorter lines. */
3357 3355
3358DEFUN ("base64-encode-string", Fbase64_encode_string, Sbase64_encode_string, 3356DEFUN ("base64-encode-string", Fbase64_encode_string, Sbase64_encode_string,
3359 1, 2, 0, 3357 1, 2, 0,
3360 /* Base64-encode STRING and return the result. 3358 doc: /* Base64-encode STRING and return the result.
3361Optional second argument NO-LINE-BREAK means do not break long lines 3359Optional second argument NO-LINE-BREAK means do not break long lines
3362into shorter lines. */ 3360into shorter lines. */)
3363 (string, no_line_break)) 3361 (string, no_line_break)
3364 Lisp_Object string, no_line_break; 3362 Lisp_Object string, no_line_break;
3365{ 3363{
3366 int allength, length, encoded_length; 3364 int allength, length, encoded_length;
@@ -3499,10 +3497,10 @@ base64_encode_1 (from, to, length, line_break, multibyte)
3499 3497
3500DEFUN ("base64-decode-region", Fbase64_decode_region, Sbase64_decode_region, 3498DEFUN ("base64-decode-region", Fbase64_decode_region, Sbase64_decode_region,
3501 2, 2, "r", 3499 2, 2, "r",
3502 /* Base64-decode the region between BEG and END. 3500 doc: /* Base64-decode the region between BEG and END.
3503Return the length of the decoded text. 3501Return the length of the decoded text.
3504If the region can't be decoded, signal an error and don't modify the buffer. */ 3502If the region can't be decoded, signal an error and don't modify the buffer. */)
3505 (beg, end)) 3503 (beg, end)
3506 Lisp_Object beg, end; 3504 Lisp_Object beg, end;
3507{ 3505{
3508 int ibeg, iend, length, allength; 3506 int ibeg, iend, length, allength;
@@ -3565,8 +3563,8 @@ If the region can't be decoded, signal an error and don't modify the buffer. */
3565 3563
3566DEFUN ("base64-decode-string", Fbase64_decode_string, Sbase64_decode_string, 3564DEFUN ("base64-decode-string", Fbase64_decode_string, Sbase64_decode_string,
3567 1, 1, 0, 3565 1, 1, 0,
3568 /* Base64-decode STRING and return the result. */ 3566 doc: /* Base64-decode STRING and return the result. */)
3569 (string)) 3567 (string)
3570 Lisp_Object string; 3568 Lisp_Object string;
3571{ 3569{
3572 char *decoded; 3570 char *decoded;
@@ -4669,8 +4667,8 @@ sxhash (obj, depth)
4669 4667
4670 4668
4671DEFUN ("sxhash", Fsxhash, Ssxhash, 1, 1, 0, 4669DEFUN ("sxhash", Fsxhash, Ssxhash, 1, 1, 0,
4672 /* Compute a hash code for OBJ and return it as integer. */ 4670 doc: /* Compute a hash code for OBJ and return it as integer. */)
4673 (obj)) 4671 (obj)
4674 Lisp_Object obj; 4672 Lisp_Object obj;
4675{ 4673{
4676 unsigned hash = sxhash (obj, 0);; 4674 unsigned hash = sxhash (obj, 0);;
@@ -4679,7 +4677,7 @@ DEFUN ("sxhash", Fsxhash, Ssxhash, 1, 1, 0,
4679 4677
4680 4678
4681DEFUN ("make-hash-table", Fmake_hash_table, Smake_hash_table, 0, MANY, 0, 4679DEFUN ("make-hash-table", Fmake_hash_table, Smake_hash_table, 0, MANY, 0,
4682 /* Create and return a new hash table. 4680 doc: /* Create and return a new hash table.
4683 4681
4684Arguments are specified as keyword/argument pairs. The following 4682Arguments are specified as keyword/argument pairs. The following
4685arguments are defined: 4683arguments are defined:
@@ -4707,8 +4705,8 @@ returned is a weak table. Key/value pairs are removed from a weak
4707hash table when there are no non-weak references pointing to their 4705hash table when there are no non-weak references pointing to their
4708key, value, one of key or value, or both key and value, depending on 4706key, value, one of key or value, or both key and value, depending on
4709WEAK. WEAK t is equivalent to `key-and-value'. Default value of WEAK 4707WEAK. WEAK t is equivalent to `key-and-value'. Default value of WEAK
4710is nil. */ 4708is nil. */)
4711 (nargs, args)) 4709 (nargs, args)
4712 int nargs; 4710 int nargs;
4713 Lisp_Object *args; 4711 Lisp_Object *args;
4714{ 4712{
@@ -4793,8 +4791,8 @@ is nil. */
4793 4791
4794 4792
4795DEFUN ("copy-hash-table", Fcopy_hash_table, Scopy_hash_table, 1, 1, 0, 4793DEFUN ("copy-hash-table", Fcopy_hash_table, Scopy_hash_table, 1, 1, 0,
4796 /* Return a copy of hash table TABLE. */ 4794 doc: /* Return a copy of hash table TABLE. */)
4797 (table)) 4795 (table)
4798 Lisp_Object table; 4796 Lisp_Object table;
4799{ 4797{
4800 return copy_hash_table (check_hash_table (table)); 4798 return copy_hash_table (check_hash_table (table));
@@ -4802,12 +4800,12 @@ DEFUN ("copy-hash-table", Fcopy_hash_table, Scopy_hash_table, 1, 1, 0,
4802 4800
4803 4801
4804DEFUN ("makehash", Fmakehash, Smakehash, 0, 1, 0, 4802DEFUN ("makehash", Fmakehash, Smakehash, 0, 1, 0,
4805 /* Create a new hash table. 4803 doc: /* Create a new hash table.
4806 4804
4807Optional first argument TEST specifies how to compare keys in the 4805Optional first argument TEST specifies how to compare keys in the
4808table. Predefined tests are `eq', `eql', and `equal'. Default is 4806table. Predefined tests are `eq', `eql', and `equal'. Default is
4809`eql'. New tests can be defined with `define-hash-table-test'. */ 4807`eql'. New tests can be defined with `define-hash-table-test'. */)
4810 (test)) 4808 (test)
4811 Lisp_Object test; 4809 Lisp_Object test;
4812{ 4810{
4813 Lisp_Object args[2]; 4811 Lisp_Object args[2];
@@ -4818,8 +4816,8 @@ table. Predefined tests are `eq', `eql', and `equal'. Default is
4818 4816
4819 4817
4820DEFUN ("hash-table-count", Fhash_table_count, Shash_table_count, 1, 1, 0, 4818DEFUN ("hash-table-count", Fhash_table_count, Shash_table_count, 1, 1, 0,
4821 /* Return the number of elements in TABLE. */ 4819 doc: /* Return the number of elements in TABLE. */)
4822 (table)) 4820 (table)
4823 Lisp_Object table; 4821 Lisp_Object table;
4824{ 4822{
4825 return check_hash_table (table)->count; 4823 return check_hash_table (table)->count;
@@ -4828,8 +4826,8 @@ DEFUN ("hash-table-count", Fhash_table_count, Shash_table_count, 1, 1, 0,
4828 4826
4829DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size, 4827DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size,
4830 Shash_table_rehash_size, 1, 1, 0, 4828 Shash_table_rehash_size, 1, 1, 0,
4831 /* Return the current rehash size of TABLE. */ 4829 doc: /* Return the current rehash size of TABLE. */)
4832 (table)) 4830 (table)
4833 Lisp_Object table; 4831 Lisp_Object table;
4834{ 4832{
4835 return check_hash_table (table)->rehash_size; 4833 return check_hash_table (table)->rehash_size;
@@ -4838,8 +4836,8 @@ DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size,
4838 4836
4839DEFUN ("hash-table-rehash-threshold", Fhash_table_rehash_threshold, 4837DEFUN ("hash-table-rehash-threshold", Fhash_table_rehash_threshold,
4840 Shash_table_rehash_threshold, 1, 1, 0, 4838 Shash_table_rehash_threshold, 1, 1, 0,
4841 /* Return the current rehash threshold of TABLE. */ 4839 doc: /* Return the current rehash threshold of TABLE. */)
4842 (table)) 4840 (table)
4843 Lisp_Object table; 4841 Lisp_Object table;
4844{ 4842{
4845 return check_hash_table (table)->rehash_threshold; 4843 return check_hash_table (table)->rehash_threshold;
@@ -4847,11 +4845,11 @@ DEFUN ("hash-table-rehash-threshold", Fhash_table_rehash_threshold,
4847 4845
4848 4846
4849DEFUN ("hash-table-size", Fhash_table_size, Shash_table_size, 1, 1, 0, 4847DEFUN ("hash-table-size", Fhash_table_size, Shash_table_size, 1, 1, 0,
4850 /* Return the size of TABLE. 4848 doc: /* Return the size of TABLE.
4851The size can be used as an argument to `make-hash-table' to create 4849The size can be used as an argument to `make-hash-table' to create
4852a hash table than can hold as many elements of TABLE holds 4850a hash table than can hold as many elements of TABLE holds
4853without need for resizing. */ 4851without need for resizing. */)
4854 (table)) 4852 (table)
4855 Lisp_Object table; 4853 Lisp_Object table;
4856{ 4854{
4857 struct Lisp_Hash_Table *h = check_hash_table (table); 4855 struct Lisp_Hash_Table *h = check_hash_table (table);
@@ -4860,8 +4858,8 @@ without need for resizing. */
4860 4858
4861 4859
4862DEFUN ("hash-table-test", Fhash_table_test, Shash_table_test, 1, 1, 0, 4860DEFUN ("hash-table-test", Fhash_table_test, Shash_table_test, 1, 1, 0,
4863 /* Return the test TABLE uses. */ 4861 doc: /* Return the test TABLE uses. */)
4864 (table)) 4862 (table)
4865 Lisp_Object table; 4863 Lisp_Object table;
4866{ 4864{
4867 return check_hash_table (table)->test; 4865 return check_hash_table (table)->test;
@@ -4870,8 +4868,8 @@ DEFUN ("hash-table-test", Fhash_table_test, Shash_table_test, 1, 1, 0,
4870 4868
4871DEFUN ("hash-table-weakness", Fhash_table_weakness, Shash_table_weakness, 4869DEFUN ("hash-table-weakness", Fhash_table_weakness, Shash_table_weakness,
4872 1, 1, 0, 4870 1, 1, 0,
4873 /* Return the weakness of TABLE. */ 4871 doc: /* Return the weakness of TABLE. */)
4874 (table)) 4872 (table)
4875 Lisp_Object table; 4873 Lisp_Object table;
4876{ 4874{
4877 return check_hash_table (table)->weak; 4875 return check_hash_table (table)->weak;
@@ -4879,8 +4877,8 @@ DEFUN ("hash-table-weakness", Fhash_table_weakness, Shash_table_weakness,
4879 4877
4880 4878
4881DEFUN ("hash-table-p", Fhash_table_p, Shash_table_p, 1, 1, 0, 4879DEFUN ("hash-table-p", Fhash_table_p, Shash_table_p, 1, 1, 0,
4882 /* Return t if OBJ is a Lisp hash table object. */ 4880 doc: /* Return t if OBJ is a Lisp hash table object. */)
4883 (obj)) 4881 (obj)
4884 Lisp_Object obj; 4882 Lisp_Object obj;
4885{ 4883{
4886 return HASH_TABLE_P (obj) ? Qt : Qnil; 4884 return HASH_TABLE_P (obj) ? Qt : Qnil;
@@ -4888,8 +4886,8 @@ DEFUN ("hash-table-p", Fhash_table_p, Shash_table_p, 1, 1, 0,
4888 4886
4889 4887
4890DEFUN ("clrhash", Fclrhash, Sclrhash, 1, 1, 0, 4888DEFUN ("clrhash", Fclrhash, Sclrhash, 1, 1, 0,
4891 /* Clear hash table TABLE. */ 4889 doc: /* Clear hash table TABLE. */)
4892 (table)) 4890 (table)
4893 Lisp_Object table; 4891 Lisp_Object table;
4894{ 4892{
4895 hash_clear (check_hash_table (table)); 4893 hash_clear (check_hash_table (table));
@@ -4898,9 +4896,9 @@ DEFUN ("clrhash", Fclrhash, Sclrhash, 1, 1, 0,
4898 4896
4899 4897
4900DEFUN ("gethash", Fgethash, Sgethash, 2, 3, 0, 4898DEFUN ("gethash", Fgethash, Sgethash, 2, 3, 0,
4901 /* Look up KEY in TABLE and return its associated value. 4899 doc: /* Look up KEY in TABLE and return its associated value.
4902If KEY is not found, return DFLT which defaults to nil. */ 4900If KEY is not found, return DFLT which defaults to nil. */)
4903 (key, table, dflt)) 4901 (key, table, dflt)
4904 Lisp_Object key, table, dflt; 4902 Lisp_Object key, table, dflt;
4905{ 4903{
4906 struct Lisp_Hash_Table *h = check_hash_table (table); 4904 struct Lisp_Hash_Table *h = check_hash_table (table);
@@ -4910,10 +4908,10 @@ If KEY is not found, return DFLT which defaults to nil. */
4910 4908
4911 4909
4912DEFUN ("puthash", Fputhash, Sputhash, 3, 3, 0, 4910DEFUN ("puthash", Fputhash, Sputhash, 3, 3, 0,
4913 /* Associate KEY with VALUE in hash table TABLE. 4911 doc: /* Associate KEY with VALUE in hash table TABLE.
4914If KEY is already present in table, replace its current value with 4912If KEY is already present in table, replace its current value with
4915VALUE. */ 4913VALUE. */)
4916 (key, value, table)) 4914 (key, value, table)
4917 Lisp_Object key, value, table; 4915 Lisp_Object key, value, table;
4918{ 4916{
4919 struct Lisp_Hash_Table *h = check_hash_table (table); 4917 struct Lisp_Hash_Table *h = check_hash_table (table);
@@ -4931,8 +4929,8 @@ VALUE. */
4931 4929
4932 4930
4933DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0, 4931DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0,
4934 /* Remove KEY from TABLE. */ 4932 doc: /* Remove KEY from TABLE. */)
4935 (key, table)) 4933 (key, table)
4936 Lisp_Object key, table; 4934 Lisp_Object key, table;
4937{ 4935{
4938 struct Lisp_Hash_Table *h = check_hash_table (table); 4936 struct Lisp_Hash_Table *h = check_hash_table (table);
@@ -4942,9 +4940,9 @@ DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0,
4942 4940
4943 4941
4944DEFUN ("maphash", Fmaphash, Smaphash, 2, 2, 0, 4942DEFUN ("maphash", Fmaphash, Smaphash, 2, 2, 0,
4945 /* Call FUNCTION for all entries in hash table TABLE. 4943 doc: /* Call FUNCTION for all entries in hash table TABLE.
4946FUNCTION is called with 2 arguments KEY and VALUE. */ 4944FUNCTION is called with 2 arguments KEY and VALUE. */)
4947 (function, table)) 4945 (function, table)
4948 Lisp_Object function, table; 4946 Lisp_Object function, table;
4949{ 4947{
4950 struct Lisp_Hash_Table *h = check_hash_table (table); 4948 struct Lisp_Hash_Table *h = check_hash_table (table);
@@ -4966,7 +4964,7 @@ FUNCTION is called with 2 arguments KEY and VALUE. */
4966 4964
4967DEFUN ("define-hash-table-test", Fdefine_hash_table_test, 4965DEFUN ("define-hash-table-test", Fdefine_hash_table_test,
4968 Sdefine_hash_table_test, 3, 3, 0, 4966 Sdefine_hash_table_test, 3, 3, 0,
4969 /* Define a new hash table test with name NAME, a symbol. 4967 doc: /* Define a new hash table test with name NAME, a symbol.
4970 4968
4971In hash tables created with NAME specified as test, use TEST to 4969In hash tables created with NAME specified as test, use TEST to
4972compare keys, and HASH for computing hash codes of keys. 4970compare keys, and HASH for computing hash codes of keys.
@@ -4975,8 +4973,8 @@ TEST must be a function taking two arguments and returning non-nil if
4975both arguments are the same. HASH must be a function taking one 4973both arguments are the same. HASH must be a function taking one
4976argument and return an integer that is the hash code of the argument. 4974argument and return an integer that is the hash code of the argument.
4977Hash code computation should use the whole value range of integers, 4975Hash code computation should use the whole value range of integers,
4978including negative integers. */ 4976including negative integers. */)
4979 (name, test, hash)) 4977 (name, test, hash)
4980 Lisp_Object name, test, hash; 4978 Lisp_Object name, test, hash;
4981{ 4979{
4982 return Fput (name, Qhash_table_test, list2 (test, hash)); 4980 return Fput (name, Qhash_table_test, list2 (test, hash));
@@ -4992,7 +4990,7 @@ including negative integers. */
4992#include "coding.h" 4990#include "coding.h"
4993 4991
4994DEFUN ("md5", Fmd5, Smd5, 1, 5, 0, 4992DEFUN ("md5", Fmd5, Smd5, 1, 5, 0,
4995 /* Return MD5 message digest of OBJECT, a buffer or string. 4993 doc: /* Return MD5 message digest of OBJECT, a buffer or string.
4996 4994
4997A message digest is a cryptographic checksum of a document, and the 4995A message digest is a cryptographic checksum of a document, and the
4998algorithm to calculate it is defined in RFC 1321. 4996algorithm to calculate it is defined in RFC 1321.
@@ -5017,8 +5015,8 @@ If OBJECT is a string, the most preferred coding system (see the
5017command `prefer-coding-system') is used. 5015command `prefer-coding-system') is used.
5018 5016
5019If NOERROR is non-nil, silently assume the `raw-text' coding if the 5017If NOERROR is non-nil, silently assume the `raw-text' coding if the
5020guesswork fails. Normally, an error is signaled in such case. */ 5018guesswork fails. Normally, an error is signaled in such case. */)
5021 (object, start, end, coding_system, noerror)) 5019 (object, start, end, coding_system, noerror)
5022 Lisp_Object object, start, end, coding_system, noerror; 5020 Lisp_Object object, start, end, coding_system, noerror;
5023{ 5021{
5024 unsigned char digest[16]; 5022 unsigned char digest[16];
@@ -5273,15 +5271,15 @@ syms_of_fns ()
5273 5271
5274 Fset (Qyes_or_no_p_history, Qnil); 5272 Fset (Qyes_or_no_p_history, Qnil);
5275 5273
5276 DEFVAR_LISP ("features", &Vfeatures 5274 DEFVAR_LISP ("features", &Vfeatures,
5277 /* A list of symbols which are the features of the executing emacs. 5275 doc: /* A list of symbols which are the features of the executing emacs.
5278Used by `featurep' and `require', and altered by `provide'. */); 5276Used by `featurep' and `require', and altered by `provide'. */);
5279 Vfeatures = Qnil; 5277 Vfeatures = Qnil;
5280 Qsubfeatures = intern ("subfeatures"); 5278 Qsubfeatures = intern ("subfeatures");
5281 staticpro (&Qsubfeatures); 5279 staticpro (&Qsubfeatures);
5282 5280
5283 DEFVAR_BOOL ("use-dialog-box", &use_dialog_box 5281 DEFVAR_BOOL ("use-dialog-box", &use_dialog_box,
5284 /* *Non-nil means mouse commands use dialog boxes to ask questions. 5282 doc: /* *Non-nil means mouse commands use dialog boxes to ask questions.
5285This applies to y-or-n and yes-or-no questions asked by commands 5283This applies to y-or-n and yes-or-no questions asked by commands
5286invoked by mouse clicks and mouse menu items. */); 5284invoked by mouse clicks and mouse menu items. */);
5287 use_dialog_box = 1; 5285 use_dialog_box = 1;