aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-08 14:25:08 -0700
committerDan Nicolaescu2010-07-08 14:25:08 -0700
commit5842a27bbfb7efa6872824e501bc7ec98b631553 (patch)
treed173899af9cbed9d90d94cfc710e6ecc06dd1f6b /src
parent71c44c04bb996abe77db8efd88255fde06532b10 (diff)
downloademacs-5842a27bbfb7efa6872824e501bc7ec98b631553.tar.gz
emacs-5842a27bbfb7efa6872824e501bc7ec98b631553.zip
Convert DEFUNs to standard C.
* src/alloc.c: Convert DEFUNs to standard C. * src/buffer.c: * src/bytecode.c: * src/callint.c: * src/callproc.c: * src/casefiddle.c: * src/casetab.c: * src/category.c: * src/character.c: * src/charset.c: * src/chartab.c: * src/cmds.c: * src/coding.c: * src/composite.c: * src/data.c: * src/dbusbind.c: * src/dired.c: * src/dispnew.c: * src/doc.c: * src/dosfns.c: * src/editfns.c: * src/emacs.c: * src/eval.c: * src/fileio.c: * src/filelock.c: * src/floatfns.c: * src/fns.c: * src/font.c: * src/fontset.c: * src/frame.c: * src/fringe.c: * src/image.c: * src/indent.c: * src/insdel.c: * src/keyboard.c: * src/keymap.c: * src/lread.c: * src/macros.c: * src/marker.c: * src/menu.c: * src/minibuf.c: * src/msdos.c: * src/nsfns.m: * src/nsmenu.m: * src/nsselect.m: * src/print.c: * src/process.c: * src/search.c: * src/sound.c: * src/syntax.c: * src/term.c: * src/terminal.c: * src/textprop.c: * src/undo.c: * src/w16select.c: * src/w32console.c: * src/w32fns.c: * src/w32font.c: * src/w32menu.c: * src/w32proc.c: * src/w32select.c: * src/window.c: * src/xdisp.c: * src/xfaces.c: * src/xfns.c: * src/xmenu.c: * src/xselect.c: * src/xsettings.c: * src/xsmfns.c: Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog73
-rw-r--r--src/alloc.c43
-rw-r--r--src/buffer.c138
-rw-r--r--src/bytecode.c3
-rw-r--r--src/callint.c9
-rw-r--r--src/callproc.c11
-rw-r--r--src/casefiddle.c33
-rw-r--r--src/casetab.c13
-rw-r--r--src/category.c36
-rw-r--r--src/character.c37
-rw-r--r--src/charset.c67
-rw-r--r--src/chartab.c33
-rw-r--r--src/cmds.c24
-rw-r--r--src/coding.c101
-rw-r--r--src/composite.c12
-rw-r--r--src/data.c290
-rw-r--r--src/dbusbind.c33
-rw-r--r--src/dired.c18
-rw-r--r--src/dispnew.c34
-rw-r--r--src/doc.c12
-rw-r--r--src/dosfns.c25
-rw-r--r--src/editfns.c220
-rw-r--r--src/emacs.c14
-rw-r--r--src/eval.c125
-rw-r--r--src/fileio.c135
-rw-r--r--src/filelock.c8
-rw-r--r--src/floatfns.c126
-rw-r--r--src/fns.c268
-rw-r--r--src/font.c74
-rw-r--r--src/fontset.c22
-rw-r--r--src/frame.c123
-rw-r--r--src/fringe.c12
-rw-r--r--src/image.c24
-rw-r--r--src/indent.c17
-rw-r--r--src/insdel.c2
-rw-r--r--src/keyboard.c85
-rw-r--r--src/keymap.c95
-rw-r--r--src/lread.c43
-rw-r--r--src/macros.c17
-rw-r--r--src/marker.c21
-rw-r--r--src/menu.c3
-rw-r--r--src/minibuf.c67
-rw-r--r--src/msdos.c13
-rw-r--r--src/nsfns.m112
-rw-r--r--src/nsmenu.m7
-rw-r--r--src/nsselect.m24
-rw-r--r--src/print.c30
-rw-r--r--src/process.c185
-rw-r--r--src/search.c60
-rw-r--r--src/sound.c3
-rw-r--r--src/syntax.c57
-rw-r--r--src/term.c25
-rw-r--r--src/terminal.c26
-rw-r--r--src/textprop.c60
-rw-r--r--src/undo.c5
-rw-r--r--src/w16select.c9
-rw-r--r--src/w32console.c10
-rw-r--r--src/w32fns.c123
-rw-r--r--src/w32font.c3
-rw-r--r--src/w32menu.c5
-rw-r--r--src/w32proc.c49
-rw-r--r--src/w32select.c9
-rw-r--r--src/window.c231
-rw-r--r--src/xdisp.c34
-rw-r--r--src/xfaces.c94
-rw-r--r--src/xfns.c99
-rw-r--r--src/xmenu.c11
-rw-r--r--src/xselect.c34
-rw-r--r--src/xsettings.c6
-rw-r--r--src/xsmfns.c3
70 files changed, 1354 insertions, 2519 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 137d723dfae..97e9f6897d8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,76 @@
12010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * alloc.c: Convert DEFUNs to standard C.
4 * buffer.c:
5 * bytecode.c:
6 * callint.c:
7 * callproc.c:
8 * casefiddle.c:
9 * casetab.c:
10 * category.c:
11 * character.c:
12 * charset.c:
13 * chartab.c:
14 * cmds.c:
15 * coding.c:
16 * composite.c:
17 * data.c:
18 * dbusbind.c:
19 * dired.c:
20 * dispnew.c:
21 * doc.c:
22 * dosfns.c:
23 * editfns.c:
24 * emacs.c:
25 * eval.c:
26 * fileio.c:
27 * filelock.c:
28 * floatfns.c:
29 * fns.c:
30 * font.c:
31 * fontset.c:
32 * frame.c:
33 * fringe.c:
34 * image.c:
35 * indent.c:
36 * insdel.c:
37 * keyboard.c:
38 * keymap.c:
39 * lread.c:
40 * macros.c:
41 * marker.c:
42 * menu.c:
43 * minibuf.c:
44 * msdos.c:
45 * nsfns.m:
46 * nsmenu.m:
47 * nsselect.m:
48 * print.c:
49 * process.c:
50 * search.c:
51 * sound.c:
52 * syntax.c:
53 * term.c:
54 * terminal.c:
55 * textprop.c:
56 * undo.c:
57 * w16select.c:
58 * w32console.c:
59 * w32fns.c:
60 * w32font.c:
61 * w32menu.c:
62 * w32proc.c:
63 * w32select.c:
64 * window.c:
65 * xdisp.c:
66 * xfaces.c:
67 * xfns.c:
68 * xmenu.c:
69 * xselect.c:
70 * xsettings.c:
71 * xsmfns.c: Likewise.
72
73
12010-07-08 Eli Zaretskii <eliz@gnu.org> 742010-07-08 Eli Zaretskii <eliz@gnu.org>
2 75
3 * process.c (kbd_is_on_hold, hold_keyboard_input) 76 * process.c (kbd_is_on_hold, hold_keyboard_input)
diff --git a/src/alloc.c b/src/alloc.c
index 62b6e449831..2a15fd0d63d 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2250,8 +2250,7 @@ DEFUN ("make-string", Fmake_string, Smake_string, 2, 2, 0,
2250 doc: /* Return a newly created string of length LENGTH, with INIT in each element. 2250 doc: /* Return a newly created string of length LENGTH, with INIT in each element.
2251LENGTH must be an integer. 2251LENGTH must be an integer.
2252INIT must be an integer that represents a character. */) 2252INIT must be an integer that represents a character. */)
2253 (length, init) 2253 (Lisp_Object length, Lisp_Object init)
2254 Lisp_Object length, init;
2255{ 2254{
2256 register Lisp_Object val; 2255 register Lisp_Object val;
2257 register unsigned char *p, *end; 2256 register unsigned char *p, *end;
@@ -2294,8 +2293,7 @@ INIT must be an integer that represents a character. */)
2294DEFUN ("make-bool-vector", Fmake_bool_vector, Smake_bool_vector, 2, 2, 0, 2293DEFUN ("make-bool-vector", Fmake_bool_vector, Smake_bool_vector, 2, 2, 0,
2295 doc: /* Return a new bool-vector of length LENGTH, using INIT for each element. 2294 doc: /* Return a new bool-vector of length LENGTH, using INIT for each element.
2296LENGTH must be a number. INIT matters only in whether it is t or nil. */) 2295LENGTH must be a number. INIT matters only in whether it is t or nil. */)
2297 (length, init) 2296 (Lisp_Object length, Lisp_Object init)
2298 Lisp_Object length, init;
2299{ 2297{
2300 register Lisp_Object val; 2298 register Lisp_Object val;
2301 struct Lisp_Bool_Vector *p; 2299 struct Lisp_Bool_Vector *p;
@@ -2687,8 +2685,7 @@ free_cons (struct Lisp_Cons *ptr)
2687 2685
2688DEFUN ("cons", Fcons, Scons, 2, 2, 0, 2686DEFUN ("cons", Fcons, Scons, 2, 2, 0,
2689 doc: /* Create a new cons, give it CAR and CDR as components, and return it. */) 2687 doc: /* Create a new cons, give it CAR and CDR as components, and return it. */)
2690 (car, cdr) 2688 (Lisp_Object car, Lisp_Object cdr)
2691 Lisp_Object car, cdr;
2692{ 2689{
2693 register Lisp_Object val; 2690 register Lisp_Object val;
2694 2691
@@ -2783,9 +2780,7 @@ DEFUN ("list", Flist, Slist, 0, MANY, 0,
2783 doc: /* Return a newly created list with specified arguments as elements. 2780 doc: /* Return a newly created list with specified arguments as elements.
2784Any number of arguments, even zero arguments, are allowed. 2781Any number of arguments, even zero arguments, are allowed.
2785usage: (list &rest OBJECTS) */) 2782usage: (list &rest OBJECTS) */)
2786 (nargs, args) 2783 (int nargs, register Lisp_Object *args)
2787 int nargs;
2788 register Lisp_Object *args;
2789{ 2784{
2790 register Lisp_Object val; 2785 register Lisp_Object val;
2791 val = Qnil; 2786 val = Qnil;
@@ -2801,8 +2796,7 @@ usage: (list &rest OBJECTS) */)
2801 2796
2802DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0, 2797DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0,
2803 doc: /* Return a newly created list of length LENGTH, with each element being INIT. */) 2798 doc: /* Return a newly created list of length LENGTH, with each element being INIT. */)
2804 (length, init) 2799 (register Lisp_Object length, Lisp_Object init)
2805 register Lisp_Object length, init;
2806{ 2800{
2807 register Lisp_Object val; 2801 register Lisp_Object val;
2808 register int size; 2802 register int size;
@@ -2979,8 +2973,7 @@ allocate_process (void)
2979DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, 2973DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0,
2980 doc: /* Return a newly created vector of length LENGTH, with each element being INIT. 2974 doc: /* Return a newly created vector of length LENGTH, with each element being INIT.
2981See also the function `vector'. */) 2975See also the function `vector'. */)
2982 (length, init) 2976 (register Lisp_Object length, Lisp_Object init)
2983 register Lisp_Object length, init;
2984{ 2977{
2985 Lisp_Object vector; 2978 Lisp_Object vector;
2986 register EMACS_INT sizei; 2979 register EMACS_INT sizei;
@@ -3003,9 +2996,7 @@ DEFUN ("vector", Fvector, Svector, 0, MANY, 0,
3003 doc: /* Return a newly created vector with specified arguments as elements. 2996 doc: /* Return a newly created vector with specified arguments as elements.
3004Any number of arguments, even zero arguments, are allowed. 2997Any number of arguments, even zero arguments, are allowed.
3005usage: (vector &rest OBJECTS) */) 2998usage: (vector &rest OBJECTS) */)
3006 (nargs, args) 2999 (register int nargs, Lisp_Object *args)
3007 register int nargs;
3008 Lisp_Object *args;
3009{ 3000{
3010 register Lisp_Object len, val; 3001 register Lisp_Object len, val;
3011 register int index; 3002 register int index;
@@ -3027,9 +3018,7 @@ stack size, (optional) doc string, and (optional) interactive spec.
3027The first four arguments are required; at most six have any 3018The first four arguments are required; at most six have any
3028significance. 3019significance.
3029usage: (make-byte-code ARGLIST BYTE-CODE CONSTANTS DEPTH &optional DOCSTRING INTERACTIVE-SPEC &rest ELEMENTS) */) 3020usage: (make-byte-code ARGLIST BYTE-CODE CONSTANTS DEPTH &optional DOCSTRING INTERACTIVE-SPEC &rest ELEMENTS) */)
3030 (nargs, args) 3021 (register int nargs, Lisp_Object *args)
3031 register int nargs;
3032 Lisp_Object *args;
3033{ 3022{
3034 register Lisp_Object len, val; 3023 register Lisp_Object len, val;
3035 register int index; 3024 register int index;
@@ -3111,8 +3100,7 @@ init_symbol (void)
3111DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0, 3100DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0,
3112 doc: /* Return a newly allocated uninterned symbol whose name is NAME. 3101 doc: /* Return a newly allocated uninterned symbol whose name is NAME.
3113Its value and function definition are void, and its property list is nil. */) 3102Its value and function definition are void, and its property list is nil. */)
3114 (name) 3103 (Lisp_Object name)
3115 Lisp_Object name;
3116{ 3104{
3117 register Lisp_Object val; 3105 register Lisp_Object val;
3118 register struct Lisp_Symbol *p; 3106 register struct Lisp_Symbol *p;
@@ -3273,7 +3261,7 @@ make_save_value (void *pointer, int integer)
3273 3261
3274DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0, 3262DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0,
3275 doc: /* Return a newly allocated marker which does not point at any place. */) 3263 doc: /* Return a newly allocated marker which does not point at any place. */)
3276 () 3264 (void)
3277{ 3265{
3278 register Lisp_Object val; 3266 register Lisp_Object val;
3279 register struct Lisp_Marker *p; 3267 register struct Lisp_Marker *p;
@@ -4002,7 +3990,7 @@ static double avg_live;
4002 3990
4003DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "", 3991DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "",
4004 doc: /* Show information about live and zombie objects. */) 3992 doc: /* Show information about live and zombie objects. */)
4005 () 3993 (void)
4006{ 3994{
4007 Lisp_Object args[8], zombie_list = Qnil; 3995 Lisp_Object args[8], zombie_list = Qnil;
4008 int i; 3996 int i;
@@ -4796,8 +4784,7 @@ DEFUN ("purecopy", Fpurecopy, Spurecopy, 1, 1, 0,
4796 doc: /* Make a copy of object OBJ in pure storage. 4784 doc: /* Make a copy of object OBJ in pure storage.
4797Recursively copies contents of vectors and cons cells. 4785Recursively copies contents of vectors and cons cells.
4798Does not copy symbols. Copies strings without text properties. */) 4786Does not copy symbols. Copies strings without text properties. */)
4799 (obj) 4787 (register Lisp_Object obj)
4800 register Lisp_Object obj;
4801{ 4788{
4802 if (NILP (Vpurify_flag)) 4789 if (NILP (Vpurify_flag))
4803 return obj; 4790 return obj;
@@ -4898,7 +4885,7 @@ Garbage collection happens automatically if you cons more than
4898 (USED-STRINGS . FREE-STRINGS)) 4885 (USED-STRINGS . FREE-STRINGS))
4899However, if there was overflow in pure space, `garbage-collect' 4886However, if there was overflow in pure space, `garbage-collect'
4900returns nil, because real GC can't be done. */) 4887returns nil, because real GC can't be done. */)
4901 () 4888 (void)
4902{ 4889{
4903 register struct specbinding *bind; 4890 register struct specbinding *bind;
4904 struct catchtag *catch; 4891 struct catchtag *catch;
@@ -6115,7 +6102,7 @@ DEFUN ("memory-limit", Fmemory_limit, Smemory_limit, 0, 0, 0,
6115 doc: /* Return the address of the last byte Emacs has allocated, divided by 1024. 6102 doc: /* Return the address of the last byte Emacs has allocated, divided by 1024.
6116This may be helpful in debugging Emacs's memory usage. 6103This may be helpful in debugging Emacs's memory usage.
6117We divide the value by 1024 to make sure it fits in a Lisp integer. */) 6104We divide the value by 1024 to make sure it fits in a Lisp integer. */)
6118 () 6105 (void)
6119{ 6106{
6120 Lisp_Object end; 6107 Lisp_Object end;
6121 6108
@@ -6137,7 +6124,7 @@ objects consed.
6137MISCS include overlays, markers, and some internal types. 6124MISCS include overlays, markers, and some internal types.
6138Frames, windows, buffers, and subprocesses count as vectors 6125Frames, windows, buffers, and subprocesses count as vectors
6139 (but the contents of a buffer's text do not count here). */) 6126 (but the contents of a buffer's text do not count here). */)
6140 () 6127 (void)
6141{ 6128{
6142 Lisp_Object consed[8]; 6129 Lisp_Object consed[8];
6143 6130
diff --git a/src/buffer.c b/src/buffer.c
index b8f19e96c43..46e1b90ac34 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -190,8 +190,7 @@ nsberror (Lisp_Object spec)
190DEFUN ("buffer-live-p", Fbuffer_live_p, Sbuffer_live_p, 1, 1, 0, 190DEFUN ("buffer-live-p", Fbuffer_live_p, Sbuffer_live_p, 1, 1, 0,
191 doc: /* Return non-nil if OBJECT is a buffer which has not been killed. 191 doc: /* Return non-nil if OBJECT is a buffer which has not been killed.
192Value is nil if OBJECT is not a buffer or if it has been killed. */) 192Value is nil if OBJECT is not a buffer or if it has been killed. */)
193 (object) 193 (Lisp_Object object)
194 Lisp_Object object;
195{ 194{
196 return ((BUFFERP (object) && ! NILP (XBUFFER (object)->name)) 195 return ((BUFFERP (object) && ! NILP (XBUFFER (object)->name))
197 ? Qt : Qnil); 196 ? Qt : Qnil);
@@ -202,8 +201,7 @@ DEFUN ("buffer-list", Fbuffer_list, Sbuffer_list, 0, 1, 0,
202If the optional arg FRAME is a frame, we return the buffer list 201If the optional arg FRAME is a frame, we return the buffer list
203in the proper order for that frame: the buffers in FRAME's `buffer-list' 202in the proper order for that frame: the buffers in FRAME's `buffer-list'
204frame parameter come first, followed by the rest of the buffers. */) 203frame parameter come first, followed by the rest of the buffers. */)
205 (frame) 204 (Lisp_Object frame)
206 Lisp_Object frame;
207{ 205{
208 Lisp_Object general; 206 Lisp_Object general;
209 general = Fmapcar (Qcdr, Vbuffer_alist); 207 general = Fmapcar (Qcdr, Vbuffer_alist);
@@ -266,8 +264,7 @@ DEFUN ("get-buffer", Fget_buffer, Sget_buffer, 1, 1, 0,
266BUFFER-OR-NAME must be either a string or a buffer. If BUFFER-OR-NAME 264BUFFER-OR-NAME must be either a string or a buffer. If BUFFER-OR-NAME
267is a string and there is no buffer with that name, return nil. If 265is a string and there is no buffer with that name, return nil. If
268BUFFER-OR-NAME is a buffer, return it as given. */) 266BUFFER-OR-NAME is a buffer, return it as given. */)
269 (buffer_or_name) 267 (register Lisp_Object buffer_or_name)
270 register Lisp_Object buffer_or_name;
271{ 268{
272 if (BUFFERP (buffer_or_name)) 269 if (BUFFERP (buffer_or_name))
273 return buffer_or_name; 270 return buffer_or_name;
@@ -281,8 +278,7 @@ DEFUN ("get-file-buffer", Fget_file_buffer, Sget_file_buffer, 1, 1, 0,
281The buffer's `buffer-file-name' must match exactly the expansion of FILENAME. 278The buffer's `buffer-file-name' must match exactly the expansion of FILENAME.
282If there is no such live buffer, return nil. 279If there is no such live buffer, return nil.
283See also `find-buffer-visiting'. */) 280See also `find-buffer-visiting'. */)
284 (filename) 281 (register Lisp_Object filename)
285 register Lisp_Object filename;
286{ 282{
287 register Lisp_Object tail, buf, tem; 283 register Lisp_Object tail, buf, tem;
288 Lisp_Object handler; 284 Lisp_Object handler;
@@ -337,8 +333,7 @@ buffer does not keep undo information.
337 333
338If BUFFER-OR-NAME is a buffer instead of a string, return it as given, 334If BUFFER-OR-NAME is a buffer instead of a string, return it as given,
339even if it is dead. The return value is never nil. */) 335even if it is dead. The return value is never nil. */)
340 (buffer_or_name) 336 (register Lisp_Object buffer_or_name)
341 register Lisp_Object buffer_or_name;
342{ 337{
343 register Lisp_Object buffer, name; 338 register Lisp_Object buffer, name;
344 register struct buffer *b; 339 register struct buffer *b;
@@ -533,8 +528,7 @@ NAME should be a string which is not the name of an existing buffer.
533Optional argument CLONE non-nil means preserve BASE-BUFFER's state, 528Optional argument CLONE non-nil means preserve BASE-BUFFER's state,
534such as major and minor modes, in the indirect buffer. 529such as major and minor modes, in the indirect buffer.
535CLONE nil means the indirect buffer's state is reset to default values. */) 530CLONE nil means the indirect buffer's state is reset to default values. */)
536 (base_buffer, name, clone) 531 (Lisp_Object base_buffer, Lisp_Object name, Lisp_Object clone)
537 Lisp_Object base_buffer, name, clone;
538{ 532{
539 Lisp_Object buf, tem; 533 Lisp_Object buf, tem;
540 struct buffer *b; 534 struct buffer *b;
@@ -829,8 +823,7 @@ Otherwise modify name by appending `<NUMBER>', incrementing NUMBER
829\(starting at 2) until an unused name is found, and then return that name. 823\(starting at 2) until an unused name is found, and then return that name.
830Optional second argument IGNORE specifies a name that is okay to use (if 824Optional second argument IGNORE specifies a name that is okay to use (if
831it is in the sequence to be tried) even if a buffer with that name exists. */) 825it is in the sequence to be tried) even if a buffer with that name exists. */)
832 (name, ignore) 826 (register Lisp_Object name, Lisp_Object ignore)
833 register Lisp_Object name, ignore;
834{ 827{
835 register Lisp_Object gentemp, tem; 828 register Lisp_Object gentemp, tem;
836 int count; 829 int count;
@@ -864,8 +857,7 @@ DEFUN ("buffer-name", Fbuffer_name, Sbuffer_name, 0, 1, 0,
864 doc: /* Return the name of BUFFER, as a string. 857 doc: /* Return the name of BUFFER, as a string.
865BUFFER defaults to the current buffer. 858BUFFER defaults to the current buffer.
866Return nil if BUFFER has been killed. */) 859Return nil if BUFFER has been killed. */)
867 (buffer) 860 (register Lisp_Object buffer)
868 register Lisp_Object buffer;
869{ 861{
870 if (NILP (buffer)) 862 if (NILP (buffer))
871 return current_buffer->name; 863 return current_buffer->name;
@@ -876,8 +868,7 @@ Return nil if BUFFER has been killed. */)
876DEFUN ("buffer-file-name", Fbuffer_file_name, Sbuffer_file_name, 0, 1, 0, 868DEFUN ("buffer-file-name", Fbuffer_file_name, Sbuffer_file_name, 0, 1, 0,
877 doc: /* Return name of file BUFFER is visiting, or nil if none. 869 doc: /* Return name of file BUFFER is visiting, or nil if none.
878No argument or nil as argument means use the current buffer. */) 870No argument or nil as argument means use the current buffer. */)
879 (buffer) 871 (register Lisp_Object buffer)
880 register Lisp_Object buffer;
881{ 872{
882 if (NILP (buffer)) 873 if (NILP (buffer))
883 return current_buffer->filename; 874 return current_buffer->filename;
@@ -890,8 +881,7 @@ DEFUN ("buffer-base-buffer", Fbuffer_base_buffer, Sbuffer_base_buffer,
890 doc: /* Return the base buffer of indirect buffer BUFFER. 881 doc: /* Return the base buffer of indirect buffer BUFFER.
891If BUFFER is not indirect, return nil. 882If BUFFER is not indirect, return nil.
892BUFFER defaults to the current buffer. */) 883BUFFER defaults to the current buffer. */)
893 (buffer) 884 (register Lisp_Object buffer)
894 register Lisp_Object buffer;
895{ 885{
896 struct buffer *base; 886 struct buffer *base;
897 Lisp_Object base_buffer; 887 Lisp_Object base_buffer;
@@ -915,9 +905,7 @@ DEFUN ("buffer-local-value", Fbuffer_local_value,
915 doc: /* Return the value of VARIABLE in BUFFER. 905 doc: /* Return the value of VARIABLE in BUFFER.
916If VARIABLE does not have a buffer-local binding in BUFFER, the value 906If VARIABLE does not have a buffer-local binding in BUFFER, the value
917is the default binding of the variable. */) 907is the default binding of the variable. */)
918 (variable, buffer) 908 (register Lisp_Object variable, register Lisp_Object buffer)
919 register Lisp_Object variable;
920 register Lisp_Object buffer;
921{ 909{
922 register struct buffer *buf; 910 register struct buffer *buf;
923 register Lisp_Object result; 911 register Lisp_Object result;
@@ -1015,8 +1003,7 @@ Most elements look like (SYMBOL . VALUE), describing one variable.
1015For a symbol that is locally unbound, just the symbol appears in the value. 1003For a symbol that is locally unbound, just the symbol appears in the value.
1016Note that storing new VALUEs in these elements doesn't change the variables. 1004Note that storing new VALUEs in these elements doesn't change the variables.
1017No argument or nil as argument means use current buffer as BUFFER. */) 1005No argument or nil as argument means use current buffer as BUFFER. */)
1018 (buffer) 1006 (register Lisp_Object buffer)
1019 register Lisp_Object buffer;
1020{ 1007{
1021 register struct buffer *buf; 1008 register struct buffer *buf;
1022 register Lisp_Object result; 1009 register Lisp_Object result;
@@ -1058,8 +1045,7 @@ DEFUN ("buffer-modified-p", Fbuffer_modified_p, Sbuffer_modified_p,
1058 0, 1, 0, 1045 0, 1, 0,
1059 doc: /* Return t if BUFFER was modified since its file was last read or saved. 1046 doc: /* Return t if BUFFER was modified since its file was last read or saved.
1060No argument or nil as argument means use current buffer as BUFFER. */) 1047No argument or nil as argument means use current buffer as BUFFER. */)
1061 (buffer) 1048 (register Lisp_Object buffer)
1062 register Lisp_Object buffer;
1063{ 1049{
1064 register struct buffer *buf; 1050 register struct buffer *buf;
1065 if (NILP (buffer)) 1051 if (NILP (buffer))
@@ -1077,8 +1063,7 @@ DEFUN ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p,
1077 1, 1, 0, 1063 1, 1, 0,
1078 doc: /* Mark current buffer as modified or unmodified according to FLAG. 1064 doc: /* Mark current buffer as modified or unmodified according to FLAG.
1079A non-nil FLAG means mark the buffer modified. */) 1065A non-nil FLAG means mark the buffer modified. */)
1080 (flag) 1066 (register Lisp_Object flag)
1081 register Lisp_Object flag;
1082{ 1067{
1083 register int already; 1068 register int already;
1084 register Lisp_Object fn; 1069 register Lisp_Object fn;
@@ -1147,8 +1132,7 @@ DEFUN ("restore-buffer-modified-p", Frestore_buffer_modified_p,
1147 doc: /* Like `set-buffer-modified-p', with a difference concerning redisplay. 1132 doc: /* Like `set-buffer-modified-p', with a difference concerning redisplay.
1148It is not ensured that mode lines will be updated to show the modified 1133It is not ensured that mode lines will be updated to show the modified
1149state of the current buffer. Use with care. */) 1134state of the current buffer. Use with care. */)
1150 (flag) 1135 (Lisp_Object flag)
1151 Lisp_Object flag;
1152{ 1136{
1153#ifdef CLASH_DETECTION 1137#ifdef CLASH_DETECTION
1154 Lisp_Object fn; 1138 Lisp_Object fn;
@@ -1178,8 +1162,7 @@ DEFUN ("buffer-modified-tick", Fbuffer_modified_tick, Sbuffer_modified_tick,
1178Each buffer has a tick counter which is incremented each time the 1162Each buffer has a tick counter which is incremented each time the
1179text in that buffer is changed. It wraps around occasionally. 1163text in that buffer is changed. It wraps around occasionally.
1180No argument or nil as argument means use current buffer as BUFFER. */) 1164No argument or nil as argument means use current buffer as BUFFER. */)
1181 (buffer) 1165 (register Lisp_Object buffer)
1182 register Lisp_Object buffer;
1183{ 1166{
1184 register struct buffer *buf; 1167 register struct buffer *buf;
1185 if (NILP (buffer)) 1168 if (NILP (buffer))
@@ -1203,8 +1186,7 @@ values returned by two individual calls of `buffer-chars-modified-tick',
1203you can tell whether a character change occurred in that buffer in 1186you can tell whether a character change occurred in that buffer in
1204between these calls. No argument or nil as argument means use current 1187between these calls. No argument or nil as argument means use current
1205buffer as BUFFER. */) 1188buffer as BUFFER. */)
1206 (buffer) 1189 (register Lisp_Object buffer)
1207 register Lisp_Object buffer;
1208{ 1190{
1209 register struct buffer *buf; 1191 register struct buffer *buf;
1210 if (NILP (buffer)) 1192 if (NILP (buffer))
@@ -1230,8 +1212,7 @@ If UNIQUE is non-nil, come up with a new name using
1230Interactively, you can set UNIQUE with a prefix argument. 1212Interactively, you can set UNIQUE with a prefix argument.
1231We return the name we actually gave the buffer. 1213We return the name we actually gave the buffer.
1232This does not change the name of the visited file (if any). */) 1214This does not change the name of the visited file (if any). */)
1233 (newname, unique) 1215 (register Lisp_Object newname, Lisp_Object unique)
1234 register Lisp_Object newname, unique;
1235{ 1216{
1236 register Lisp_Object tem, buf; 1217 register Lisp_Object tem, buf;
1237 1218
@@ -1278,8 +1259,7 @@ If the optional third argument FRAME is non-nil, use that frame's
1278buffer list instead of the selected frame's buffer list. 1259buffer list instead of the selected frame's buffer list.
1279If no other buffer exists, the buffer `*scratch*' is returned. 1260If no other buffer exists, the buffer `*scratch*' is returned.
1280If BUFFER is omitted or nil, some interesting buffer is returned. */) 1261If BUFFER is omitted or nil, some interesting buffer is returned. */)
1281 (buffer, visible_ok, frame) 1262 (register Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame)
1282 register Lisp_Object buffer, visible_ok, frame;
1283{ 1263{
1284 Lisp_Object Fset_buffer_major_mode (Lisp_Object buffer); 1264 Lisp_Object Fset_buffer_major_mode (Lisp_Object buffer);
1285 register Lisp_Object tail, buf, notsogood, tem, pred, add_ons; 1265 register Lisp_Object tail, buf, notsogood, tem, pred, add_ons;
@@ -1350,8 +1330,7 @@ DEFUN ("buffer-enable-undo", Fbuffer_enable_undo, Sbuffer_enable_undo,
1350 0, 1, "", 1330 0, 1, "",
1351 doc: /* Start keeping undo information for buffer BUFFER. 1331 doc: /* Start keeping undo information for buffer BUFFER.
1352No argument or nil as argument means do this for the current buffer. */) 1332No argument or nil as argument means do this for the current buffer. */)
1353 (buffer) 1333 (register Lisp_Object buffer)
1354 register Lisp_Object buffer;
1355{ 1334{
1356 Lisp_Object real_buffer; 1335 Lisp_Object real_buffer;
1357 1336
@@ -1392,8 +1371,7 @@ is running.
1392 1371
1393Any processes that have this buffer as the `process-buffer' are killed 1372Any processes that have this buffer as the `process-buffer' are killed
1394with SIGHUP. */) 1373with SIGHUP. */)
1395 (buffer_or_name) 1374 (Lisp_Object buffer_or_name)
1396 Lisp_Object buffer_or_name;
1397{ 1375{
1398 Lisp_Object buffer; 1376 Lisp_Object buffer;
1399 register struct buffer *b; 1377 register struct buffer *b;
@@ -1682,8 +1660,7 @@ For the *scratch* buffer, use `initial-major-mode', otherwise choose a mode
1682according to `default-major-mode'. 1660according to `default-major-mode'.
1683Use this function before selecting the buffer, since it may need to inspect 1661Use this function before selecting the buffer, since it may need to inspect
1684the current buffer's major mode. */) 1662the current buffer's major mode. */)
1685 (buffer) 1663 (Lisp_Object buffer)
1686 Lisp_Object buffer;
1687{ 1664{
1688 int count; 1665 int count;
1689 Lisp_Object function; 1666 Lisp_Object function;
@@ -1770,8 +1747,7 @@ its buffer, use `pop-to-buffer' for displaying the buffer.
1770WARNING: This is NOT the way to work on another buffer temporarily 1747WARNING: This is NOT the way to work on another buffer temporarily
1771within a Lisp program! Use `set-buffer' instead. That avoids 1748within a Lisp program! Use `set-buffer' instead. That avoids
1772messing with the window-buffer correspondences. */) 1749messing with the window-buffer correspondences. */)
1773 (buffer_or_name, norecord) 1750 (Lisp_Object buffer_or_name, Lisp_Object norecord)
1774 Lisp_Object buffer_or_name, norecord;
1775{ 1751{
1776 if (EQ (buffer_or_name, Fwindow_buffer (selected_window))) 1752 if (EQ (buffer_or_name, Fwindow_buffer (selected_window)))
1777 { 1753 {
@@ -1800,7 +1776,7 @@ messing with the window-buffer correspondences. */)
1800 1776
1801DEFUN ("current-buffer", Fcurrent_buffer, Scurrent_buffer, 0, 0, 0, 1777DEFUN ("current-buffer", Fcurrent_buffer, Scurrent_buffer, 0, 0, 0,
1802 doc: /* Return the current buffer as a Lisp object. */) 1778 doc: /* Return the current buffer as a Lisp object. */)
1803 () 1779 (void)
1804{ 1780{
1805 register Lisp_Object buf; 1781 register Lisp_Object buf;
1806 XSETBUFFER (buf, current_buffer); 1782 XSETBUFFER (buf, current_buffer);
@@ -1986,8 +1962,7 @@ also `save-excursion' when you want to make a buffer current
1986temporarily. This function does not display the buffer, so its effect 1962temporarily. This function does not display the buffer, so its effect
1987ends when the current command terminates. Use `switch-to-buffer' or 1963ends when the current command terminates. Use `switch-to-buffer' or
1988`pop-to-buffer' to switch buffers permanently. */) 1964`pop-to-buffer' to switch buffers permanently. */)
1989 (buffer_or_name) 1965 (register Lisp_Object buffer_or_name)
1990 register Lisp_Object buffer_or_name;
1991{ 1966{
1992 register Lisp_Object buffer; 1967 register Lisp_Object buffer;
1993 buffer = Fget_buffer (buffer_or_name); 1968 buffer = Fget_buffer (buffer_or_name);
@@ -2012,7 +1987,7 @@ set_buffer_if_live (Lisp_Object buffer)
2012DEFUN ("barf-if-buffer-read-only", Fbarf_if_buffer_read_only, 1987DEFUN ("barf-if-buffer-read-only", Fbarf_if_buffer_read_only,
2013 Sbarf_if_buffer_read_only, 0, 0, 0, 1988 Sbarf_if_buffer_read_only, 0, 0, 0,
2014 doc: /* Signal a `buffer-read-only' error if the current buffer is read-only. */) 1989 doc: /* Signal a `buffer-read-only' error if the current buffer is read-only. */)
2015 () 1990 (void)
2016{ 1991{
2017 if (!NILP (current_buffer->read_only) 1992 if (!NILP (current_buffer->read_only)
2018 && NILP (Vinhibit_read_only)) 1993 && NILP (Vinhibit_read_only))
@@ -2032,8 +2007,7 @@ from the selected window if it is displayed there. If the selected
2032window is dedicated to its buffer, delete that window if there are other 2007window is dedicated to its buffer, delete that window if there are other
2033windows on the same frame. If the selected window is the only window on 2008windows on the same frame. If the selected window is the only window on
2034its frame, iconify that frame. */) 2009its frame, iconify that frame. */)
2035 (buffer_or_name) 2010 (register Lisp_Object buffer_or_name)
2036 register Lisp_Object buffer_or_name;
2037{ 2011{
2038 Lisp_Object buffer; 2012 Lisp_Object buffer;
2039 2013
@@ -2087,7 +2061,7 @@ DEFUN ("erase-buffer", Ferase_buffer, Serase_buffer, 0, 0, "*",
2087 doc: /* Delete the entire contents of the current buffer. 2061 doc: /* Delete the entire contents of the current buffer.
2088Any narrowing restriction in effect (see `narrow-to-region') is removed, 2062Any narrowing restriction in effect (see `narrow-to-region') is removed,
2089so the buffer is truly empty after this. */) 2063so the buffer is truly empty after this. */)
2090 () 2064 (void)
2091{ 2065{
2092 Fwiden (); 2066 Fwiden ();
2093 2067
@@ -2161,8 +2135,7 @@ extern void r_alloc_reset_variable (POINTER_TYPE *, POINTER_TYPE *);
2161DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text, 2135DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text,
2162 1, 1, 0, 2136 1, 1, 0,
2163 doc: /* Swap the text between current buffer and BUFFER. */) 2137 doc: /* Swap the text between current buffer and BUFFER. */)
2164 (buffer) 2138 (Lisp_Object buffer)
2165 Lisp_Object buffer;
2166{ 2139{
2167 struct buffer *other_buffer; 2140 struct buffer *other_buffer;
2168 CHECK_BUFFER (buffer); 2141 CHECK_BUFFER (buffer);
@@ -2300,8 +2273,7 @@ If FLAG is `to', this makes the buffer a multibyte buffer by changing
2300all eight-bit bytes to eight-bit characters. 2273all eight-bit bytes to eight-bit characters.
2301If the multibyte flag was really changed, undo information of the 2274If the multibyte flag was really changed, undo information of the
2302current buffer is cleared. */) 2275current buffer is cleared. */)
2303 (flag) 2276 (Lisp_Object flag)
2304 Lisp_Object flag;
2305{ 2277{
2306 struct Lisp_Marker *tail, *markers; 2278 struct Lisp_Marker *tail, *markers;
2307 struct buffer *other; 2279 struct buffer *other;
@@ -2599,7 +2571,7 @@ a non-nil `permanent-local' property are not eliminated by this function.
2599 2571
2600The first thing this function does is run 2572The first thing this function does is run
2601the normal hook `change-major-mode-hook'. */) 2573the normal hook `change-major-mode-hook'. */)
2602 () 2574 (void)
2603{ 2575{
2604 if (!NILP (Vrun_hooks)) 2576 if (!NILP (Vrun_hooks))
2605 call1 (Vrun_hooks, Qchange_major_mode_hook); 2577 call1 (Vrun_hooks, Qchange_major_mode_hook);
@@ -3700,8 +3672,7 @@ fix_overlays_before (struct buffer *bp, EMACS_INT prev, EMACS_INT pos)
3700 3672
3701DEFUN ("overlayp", Foverlayp, Soverlayp, 1, 1, 0, 3673DEFUN ("overlayp", Foverlayp, Soverlayp, 1, 1, 0,
3702 doc: /* Return t if OBJECT is an overlay. */) 3674 doc: /* Return t if OBJECT is an overlay. */)
3703 (object) 3675 (Lisp_Object object)
3704 Lisp_Object object;
3705{ 3676{
3706 return (OVERLAYP (object) ? Qt : Qnil); 3677 return (OVERLAYP (object) ? Qt : Qnil);
3707} 3678}
@@ -3716,9 +3687,7 @@ for the front of the overlay advance when text is inserted there
3716The fifth arg REAR-ADVANCE, if non-nil, makes the marker 3687The fifth arg REAR-ADVANCE, if non-nil, makes the marker
3717for the rear of the overlay advance when text is inserted there 3688for the rear of the overlay advance when text is inserted there
3718\(which means the text *is* included in the overlay). */) 3689\(which means the text *is* included in the overlay). */)
3719 (beg, end, buffer, front_advance, rear_advance) 3690 (Lisp_Object beg, Lisp_Object end, Lisp_Object buffer, Lisp_Object front_advance, Lisp_Object rear_advance)
3720 Lisp_Object beg, end, buffer;
3721 Lisp_Object front_advance, rear_advance;
3722{ 3691{
3723 Lisp_Object overlay; 3692 Lisp_Object overlay;
3724 struct buffer *b; 3693 struct buffer *b;
@@ -3838,8 +3807,7 @@ DEFUN ("move-overlay", Fmove_overlay, Smove_overlay, 3, 4, 0,
3838If BUFFER is omitted, leave OVERLAY in the same buffer it inhabits now. 3807If BUFFER is omitted, leave OVERLAY in the same buffer it inhabits now.
3839If BUFFER is omitted, and OVERLAY is in no buffer, put it in the current 3808If BUFFER is omitted, and OVERLAY is in no buffer, put it in the current
3840buffer. */) 3809buffer. */)
3841 (overlay, beg, end, buffer) 3810 (Lisp_Object overlay, Lisp_Object beg, Lisp_Object end, Lisp_Object buffer)
3842 Lisp_Object overlay, beg, end, buffer;
3843{ 3811{
3844 struct buffer *b, *ob; 3812 struct buffer *b, *ob;
3845 Lisp_Object obuffer; 3813 Lisp_Object obuffer;
@@ -3948,8 +3916,7 @@ buffer. */)
3948 3916
3949DEFUN ("delete-overlay", Fdelete_overlay, Sdelete_overlay, 1, 1, 0, 3917DEFUN ("delete-overlay", Fdelete_overlay, Sdelete_overlay, 1, 1, 0,
3950 doc: /* Delete the overlay OVERLAY from its buffer. */) 3918 doc: /* Delete the overlay OVERLAY from its buffer. */)
3951 (overlay) 3919 (Lisp_Object overlay)
3952 Lisp_Object overlay;
3953{ 3920{
3954 Lisp_Object buffer; 3921 Lisp_Object buffer;
3955 struct buffer *b; 3922 struct buffer *b;
@@ -3989,8 +3956,7 @@ DEFUN ("delete-overlay", Fdelete_overlay, Sdelete_overlay, 1, 1, 0,
3989 3956
3990DEFUN ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0, 3957DEFUN ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0,
3991 doc: /* Return the position at which OVERLAY starts. */) 3958 doc: /* Return the position at which OVERLAY starts. */)
3992 (overlay) 3959 (Lisp_Object overlay)
3993 Lisp_Object overlay;
3994{ 3960{
3995 CHECK_OVERLAY (overlay); 3961 CHECK_OVERLAY (overlay);
3996 3962
@@ -3999,8 +3965,7 @@ DEFUN ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0,
3999 3965
4000DEFUN ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0, 3966DEFUN ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0,
4001 doc: /* Return the position at which OVERLAY ends. */) 3967 doc: /* Return the position at which OVERLAY ends. */)
4002 (overlay) 3968 (Lisp_Object overlay)
4003 Lisp_Object overlay;
4004{ 3969{
4005 CHECK_OVERLAY (overlay); 3970 CHECK_OVERLAY (overlay);
4006 3971
@@ -4010,8 +3975,7 @@ DEFUN ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0,
4010DEFUN ("overlay-buffer", Foverlay_buffer, Soverlay_buffer, 1, 1, 0, 3975DEFUN ("overlay-buffer", Foverlay_buffer, Soverlay_buffer, 1, 1, 0,
4011 doc: /* Return the buffer OVERLAY belongs to. 3976 doc: /* Return the buffer OVERLAY belongs to.
4012Return nil if OVERLAY has been deleted. */) 3977Return nil if OVERLAY has been deleted. */)
4013 (overlay) 3978 (Lisp_Object overlay)
4014 Lisp_Object overlay;
4015{ 3979{
4016 CHECK_OVERLAY (overlay); 3980 CHECK_OVERLAY (overlay);
4017 3981
@@ -4022,8 +3986,7 @@ DEFUN ("overlay-properties", Foverlay_properties, Soverlay_properties, 1, 1, 0,
4022 doc: /* Return a list of the properties on OVERLAY. 3986 doc: /* Return a list of the properties on OVERLAY.
4023This is a copy of OVERLAY's plist; modifying its conses has no effect on 3987This is a copy of OVERLAY's plist; modifying its conses has no effect on
4024OVERLAY. */) 3988OVERLAY. */)
4025 (overlay) 3989 (Lisp_Object overlay)
4026 Lisp_Object overlay;
4027{ 3990{
4028 CHECK_OVERLAY (overlay); 3991 CHECK_OVERLAY (overlay);
4029 3992
@@ -4033,8 +3996,7 @@ OVERLAY. */)
4033 3996
4034DEFUN ("overlays-at", Foverlays_at, Soverlays_at, 1, 1, 0, 3997DEFUN ("overlays-at", Foverlays_at, Soverlays_at, 1, 1, 0,
4035 doc: /* Return a list of the overlays that contain the character at POS. */) 3998 doc: /* Return a list of the overlays that contain the character at POS. */)
4036 (pos) 3999 (Lisp_Object pos)
4037 Lisp_Object pos;
4038{ 4000{
4039 int noverlays; 4001 int noverlays;
4040 Lisp_Object *overlay_vec; 4002 Lisp_Object *overlay_vec;
@@ -4066,8 +4028,7 @@ and also contained within the specified region.
4066Empty overlays are included in the result if they are located at BEG, 4028Empty overlays are included in the result if they are located at BEG,
4067between BEG and END, or at END provided END denotes the position at the 4029between BEG and END, or at END provided END denotes the position at the
4068end of the buffer. */) 4030end of the buffer. */)
4069 (beg, end) 4031 (Lisp_Object beg, Lisp_Object end)
4070 Lisp_Object beg, end;
4071{ 4032{
4072 int noverlays; 4033 int noverlays;
4073 Lisp_Object *overlay_vec; 4034 Lisp_Object *overlay_vec;
@@ -4097,8 +4058,7 @@ DEFUN ("next-overlay-change", Fnext_overlay_change, Snext_overlay_change,
4097 doc: /* Return the next position after POS where an overlay starts or ends. 4058 doc: /* Return the next position after POS where an overlay starts or ends.
4098If there are no overlay boundaries from POS to (point-max), 4059If there are no overlay boundaries from POS to (point-max),
4099the value is (point-max). */) 4060the value is (point-max). */)
4100 (pos) 4061 (Lisp_Object pos)
4101 Lisp_Object pos;
4102{ 4062{
4103 int noverlays; 4063 int noverlays;
4104 EMACS_INT endpos; 4064 EMACS_INT endpos;
@@ -4139,8 +4099,7 @@ DEFUN ("previous-overlay-change", Fprevious_overlay_change,
4139 doc: /* Return the previous position before POS where an overlay starts or ends. 4099 doc: /* Return the previous position before POS where an overlay starts or ends.
4140If there are no overlay boundaries from (point-min) to POS, 4100If there are no overlay boundaries from (point-min) to POS,
4141the value is (point-min). */) 4101the value is (point-min). */)
4142 (pos) 4102 (Lisp_Object pos)
4143 Lisp_Object pos;
4144{ 4103{
4145 int noverlays; 4104 int noverlays;
4146 EMACS_INT prevpos; 4105 EMACS_INT prevpos;
@@ -4176,7 +4135,7 @@ the cdr has all the overlays after the overlay center.
4176Recentering overlays moves overlays between these lists. 4135Recentering overlays moves overlays between these lists.
4177The lists you get are copies, so that changing them has no effect. 4136The lists you get are copies, so that changing them has no effect.
4178However, the overlays you get are the real objects that the buffer uses. */) 4137However, the overlays you get are the real objects that the buffer uses. */)
4179 () 4138 (void)
4180{ 4139{
4181 struct Lisp_Overlay *ol; 4140 struct Lisp_Overlay *ol;
4182 Lisp_Object before = Qnil, after = Qnil, tmp; 4141 Lisp_Object before = Qnil, after = Qnil, tmp;
@@ -4197,8 +4156,7 @@ DEFUN ("overlay-recenter", Foverlay_recenter, Soverlay_recenter, 1, 1, 0,
4197 doc: /* Recenter the overlays of the current buffer around position POS. 4156 doc: /* Recenter the overlays of the current buffer around position POS.
4198That makes overlay lookup faster for positions near POS (but perhaps slower 4157That makes overlay lookup faster for positions near POS (but perhaps slower
4199for positions far away from POS). */) 4158for positions far away from POS). */)
4200 (pos) 4159 (Lisp_Object pos)
4201 Lisp_Object pos;
4202{ 4160{
4203 CHECK_NUMBER_COERCE_MARKER (pos); 4161 CHECK_NUMBER_COERCE_MARKER (pos);
4204 4162
@@ -4208,8 +4166,7 @@ for positions far away from POS). */)
4208 4166
4209DEFUN ("overlay-get", Foverlay_get, Soverlay_get, 2, 2, 0, 4167DEFUN ("overlay-get", Foverlay_get, Soverlay_get, 2, 2, 0,
4210 doc: /* Get the property of overlay OVERLAY with property name PROP. */) 4168 doc: /* Get the property of overlay OVERLAY with property name PROP. */)
4211 (overlay, prop) 4169 (Lisp_Object overlay, Lisp_Object prop)
4212 Lisp_Object overlay, prop;
4213{ 4170{
4214 CHECK_OVERLAY (overlay); 4171 CHECK_OVERLAY (overlay);
4215 return lookup_char_property (XOVERLAY (overlay)->plist, prop, 0); 4172 return lookup_char_property (XOVERLAY (overlay)->plist, prop, 0);
@@ -4217,8 +4174,7 @@ DEFUN ("overlay-get", Foverlay_get, Soverlay_get, 2, 2, 0,
4217 4174
4218DEFUN ("overlay-put", Foverlay_put, Soverlay_put, 3, 3, 0, 4175DEFUN ("overlay-put", Foverlay_put, Soverlay_put, 3, 3, 0,
4219 doc: /* Set one property of overlay OVERLAY: give property PROP value VALUE. */) 4176 doc: /* Set one property of overlay OVERLAY: give property PROP value VALUE. */)
4220 (overlay, prop, value) 4177 (Lisp_Object overlay, Lisp_Object prop, Lisp_Object value)
4221 Lisp_Object overlay, prop, value;
4222{ 4178{
4223 Lisp_Object tail, buffer; 4179 Lisp_Object tail, buffer;
4224 int changed; 4180 int changed;
diff --git a/src/bytecode.c b/src/bytecode.c
index 679fc60a1a7..88ac509e4ba 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -403,8 +403,7 @@ The first argument, BYTESTR, is a string of byte code;
403the second, VECTOR, a vector of constants; 403the second, VECTOR, a vector of constants;
404the third, MAXDEPTH, the maximum stack depth used in this function. 404the third, MAXDEPTH, the maximum stack depth used in this function.
405If the third argument is incorrect, Emacs may crash. */) 405If the third argument is incorrect, Emacs may crash. */)
406 (bytestr, vector, maxdepth) 406 (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth)
407 Lisp_Object bytestr, vector, maxdepth;
408{ 407{
409 int count = SPECPDL_INDEX (); 408 int count = SPECPDL_INDEX ();
410#ifdef BYTE_CODE_METER 409#ifdef BYTE_CODE_METER
diff --git a/src/callint.c b/src/callint.c
index 4a011b55b91..3d4782e7bd6 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -131,8 +131,7 @@ If the string begins with `^' and `shift-select-mode' is non-nil,
131You may use `@', `*', and `^' together. They are processed in the 131You may use `@', `*', and `^' together. They are processed in the
132 order that they appear, before reading any arguments. 132 order that they appear, before reading any arguments.
133usage: (interactive &optional ARGS) */) 133usage: (interactive &optional ARGS) */)
134 (args) 134 (Lisp_Object args)
135 Lisp_Object args;
136{ 135{
137 return Qnil; 136 return Qnil;
138} 137}
@@ -263,8 +262,7 @@ Optional third arg KEYS, if given, specifies the sequence of events to
263supply, as a vector, if the command inquires which events were used to 262supply, as a vector, if the command inquires which events were used to
264invoke it. If KEYS is omitted or nil, the return value of 263invoke it. If KEYS is omitted or nil, the return value of
265`this-command-keys-vector' is used. */) 264`this-command-keys-vector' is used. */)
266 (function, record_flag, keys) 265 (Lisp_Object function, Lisp_Object record_flag, Lisp_Object keys)
267 Lisp_Object function, record_flag, keys;
268{ 266{
269 Lisp_Object *args, *visargs; 267 Lisp_Object *args, *visargs;
270 Lisp_Object specs; 268 Lisp_Object specs;
@@ -872,8 +870,7 @@ DEFUN ("prefix-numeric-value", Fprefix_numeric_value, Sprefix_numeric_value,
872 doc: /* Return numeric meaning of raw prefix argument RAW. 870 doc: /* Return numeric meaning of raw prefix argument RAW.
873A raw prefix argument is what you get from `(interactive "P")'. 871A raw prefix argument is what you get from `(interactive "P")'.
874Its numeric meaning is what you would get from `(interactive "p")'. */) 872Its numeric meaning is what you would get from `(interactive "p")'. */)
875 (raw) 873 (Lisp_Object raw)
876 Lisp_Object raw;
877{ 874{
878 Lisp_Object val; 875 Lisp_Object val;
879 876
diff --git a/src/callproc.c b/src/callproc.c
index 733cdee3499..674243f50de 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -215,9 +215,7 @@ and returns a numeric exit status or a signal description string.
215If you quit, the process is killed with SIGINT, or SIGKILL if you quit again. 215If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.
216 216
217usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) 217usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
218 (nargs, args) 218 (int nargs, register Lisp_Object *args)
219 int nargs;
220 register Lisp_Object *args;
221{ 219{
222 Lisp_Object infile, buffer, current_dir, path; 220 Lisp_Object infile, buffer, current_dir, path;
223 int display_p; 221 int display_p;
@@ -877,9 +875,7 @@ and returns a numeric exit status or a signal description string.
877If you quit, the process is killed with SIGINT, or SIGKILL if you quit again. 875If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.
878 876
879usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &rest ARGS) */) 877usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &rest ARGS) */)
880 (nargs, args) 878 (int nargs, register Lisp_Object *args)
881 int nargs;
882 register Lisp_Object *args;
883{ 879{
884 struct gcpro gcpro1; 880 struct gcpro gcpro1;
885 Lisp_Object filename_string; 881 Lisp_Object filename_string;
@@ -1383,8 +1379,7 @@ This function searches `process-environment' for VARIABLE.
1383If optional parameter ENV is a list, then search this list instead of 1379If optional parameter ENV is a list, then search this list instead of
1384`process-environment', and return t when encountering a negative entry 1380`process-environment', and return t when encountering a negative entry
1385\(an entry for a variable with no value). */) 1381\(an entry for a variable with no value). */)
1386 (variable, env) 1382 (Lisp_Object variable, Lisp_Object env)
1387 Lisp_Object variable, env;
1388{ 1383{
1389 char *value; 1384 char *value;
1390 int valuelen; 1385 int valuelen;
diff --git a/src/casefiddle.c b/src/casefiddle.c
index b9667efe2bb..9545cf697a8 100644
--- a/src/casefiddle.c
+++ b/src/casefiddle.c
@@ -153,8 +153,7 @@ DEFUN ("upcase", Fupcase, Supcase, 1, 1, 0,
153The argument may be a character or string. The result has the same type. 153The argument may be a character or string. The result has the same type.
154The argument object is not altered--the value is a copy. 154The argument object is not altered--the value is a copy.
155See also `capitalize', `downcase' and `upcase-initials'. */) 155See also `capitalize', `downcase' and `upcase-initials'. */)
156 (obj) 156 (Lisp_Object obj)
157 Lisp_Object obj;
158{ 157{
159 return casify_object (CASE_UP, obj); 158 return casify_object (CASE_UP, obj);
160} 159}
@@ -163,8 +162,7 @@ DEFUN ("downcase", Fdowncase, Sdowncase, 1, 1, 0,
163 doc: /* Convert argument to lower case and return that. 162 doc: /* Convert argument to lower case and return that.
164The argument may be a character or string. The result has the same type. 163The argument may be a character or string. The result has the same type.
165The argument object is not altered--the value is a copy. */) 164The argument object is not altered--the value is a copy. */)
166 (obj) 165 (Lisp_Object obj)
167 Lisp_Object obj;
168{ 166{
169 return casify_object (CASE_DOWN, obj); 167 return casify_object (CASE_DOWN, obj);
170} 168}
@@ -175,8 +173,7 @@ This means that each word's first character is upper case
175and the rest is lower case. 173and the rest is lower case.
176The argument may be a character or string. The result has the same type. 174The argument may be a character or string. The result has the same type.
177The argument object is not altered--the value is a copy. */) 175The argument object is not altered--the value is a copy. */)
178 (obj) 176 (Lisp_Object obj)
179 Lisp_Object obj;
180{ 177{
181 return casify_object (CASE_CAPITALIZE, obj); 178 return casify_object (CASE_CAPITALIZE, obj);
182} 179}
@@ -188,8 +185,7 @@ DEFUN ("upcase-initials", Fupcase_initials, Supcase_initials, 1, 1, 0,
188Do not change the other letters of each word. 185Do not change the other letters of each word.
189The argument may be a character or string. The result has the same type. 186The argument may be a character or string. The result has the same type.
190The argument object is not altered--the value is a copy. */) 187The argument object is not altered--the value is a copy. */)
191 (obj) 188 (Lisp_Object obj)
192 Lisp_Object obj;
193{ 189{
194 return casify_object (CASE_CAPITALIZE_UP, obj); 190 return casify_object (CASE_CAPITALIZE_UP, obj);
195} 191}
@@ -306,8 +302,7 @@ These arguments specify the starting and ending character numbers of
306the region to operate on. When used as a command, the text between 302the region to operate on. When used as a command, the text between
307point and the mark is operated on. 303point and the mark is operated on.
308See also `capitalize-region'. */) 304See also `capitalize-region'. */)
309 (beg, end) 305 (Lisp_Object beg, Lisp_Object end)
310 Lisp_Object beg, end;
311{ 306{
312 casify_region (CASE_UP, beg, end); 307 casify_region (CASE_UP, beg, end);
313 return Qnil; 308 return Qnil;
@@ -318,8 +313,7 @@ DEFUN ("downcase-region", Fdowncase_region, Sdowncase_region, 2, 2, "r",
318These arguments specify the starting and ending character numbers of 313These arguments specify the starting and ending character numbers of
319the region to operate on. When used as a command, the text between 314the region to operate on. When used as a command, the text between
320point and the mark is operated on. */) 315point and the mark is operated on. */)
321 (beg, end) 316 (Lisp_Object beg, Lisp_Object end)
322 Lisp_Object beg, end;
323{ 317{
324 casify_region (CASE_DOWN, beg, end); 318 casify_region (CASE_DOWN, beg, end);
325 return Qnil; 319 return Qnil;
@@ -331,8 +325,7 @@ Capitalized form means each word's first character is upper case
331and the rest of it is lower case. 325and the rest of it is lower case.
332In programs, give two arguments, the starting and ending 326In programs, give two arguments, the starting and ending
333character positions to operate on. */) 327character positions to operate on. */)
334 (beg, end) 328 (Lisp_Object beg, Lisp_Object end)
335 Lisp_Object beg, end;
336{ 329{
337 casify_region (CASE_CAPITALIZE, beg, end); 330 casify_region (CASE_CAPITALIZE, beg, end);
338 return Qnil; 331 return Qnil;
@@ -346,8 +339,7 @@ DEFUN ("upcase-initials-region", Fupcase_initials_region,
346Subsequent letters of each word are not changed. 339Subsequent letters of each word are not changed.
347In programs, give two arguments, the starting and ending 340In programs, give two arguments, the starting and ending
348character positions to operate on. */) 341character positions to operate on. */)
349 (beg, end) 342 (Lisp_Object beg, Lisp_Object end)
350 Lisp_Object beg, end;
351{ 343{
352 casify_region (CASE_CAPITALIZE_UP, beg, end); 344 casify_region (CASE_CAPITALIZE_UP, beg, end);
353 return Qnil; 345 return Qnil;
@@ -376,8 +368,7 @@ DEFUN ("upcase-word", Fupcase_word, Supcase_word, 1, 1, "p",
376 doc: /* Convert following word (or ARG words) to upper case, moving over. 368 doc: /* Convert following word (or ARG words) to upper case, moving over.
377With negative argument, convert previous words but do not move. 369With negative argument, convert previous words but do not move.
378See also `capitalize-word'. */) 370See also `capitalize-word'. */)
379 (arg) 371 (Lisp_Object arg)
380 Lisp_Object arg;
381{ 372{
382 Lisp_Object beg, end; 373 Lisp_Object beg, end;
383 EMACS_INT newpoint; 374 EMACS_INT newpoint;
@@ -391,8 +382,7 @@ See also `capitalize-word'. */)
391DEFUN ("downcase-word", Fdowncase_word, Sdowncase_word, 1, 1, "p", 382DEFUN ("downcase-word", Fdowncase_word, Sdowncase_word, 1, 1, "p",
392 doc: /* Convert following word (or ARG words) to lower case, moving over. 383 doc: /* Convert following word (or ARG words) to lower case, moving over.
393With negative argument, convert previous words but do not move. */) 384With negative argument, convert previous words but do not move. */)
394 (arg) 385 (Lisp_Object arg)
395 Lisp_Object arg;
396{ 386{
397 Lisp_Object beg, end; 387 Lisp_Object beg, end;
398 EMACS_INT newpoint; 388 EMACS_INT newpoint;
@@ -408,8 +398,7 @@ DEFUN ("capitalize-word", Fcapitalize_word, Scapitalize_word, 1, 1, "p",
408This gives the word(s) a first character in upper case 398This gives the word(s) a first character in upper case
409and the rest lower case. 399and the rest lower case.
410With negative argument, capitalize previous words but do not move. */) 400With negative argument, capitalize previous words but do not move. */)
411 (arg) 401 (Lisp_Object arg)
412 Lisp_Object arg;
413{ 402{
414 Lisp_Object beg, end; 403 Lisp_Object beg, end;
415 EMACS_INT newpoint; 404 EMACS_INT newpoint;
diff --git a/src/casetab.c b/src/casetab.c
index fc7e32e6462..eed6e22087f 100644
--- a/src/casetab.c
+++ b/src/casetab.c
@@ -41,8 +41,7 @@ static void shuffle (Lisp_Object table, Lisp_Object c, Lisp_Object elt);
41DEFUN ("case-table-p", Fcase_table_p, Scase_table_p, 1, 1, 0, 41DEFUN ("case-table-p", Fcase_table_p, Scase_table_p, 1, 1, 0,
42 doc: /* Return t if OBJECT is a case table. 42 doc: /* Return t if OBJECT is a case table.
43See `set-case-table' for more information on these data structures. */) 43See `set-case-table' for more information on these data structures. */)
44 (object) 44 (Lisp_Object object)
45 Lisp_Object object;
46{ 45{
47 Lisp_Object up, canon, eqv; 46 Lisp_Object up, canon, eqv;
48 47
@@ -71,7 +70,7 @@ check_case_table (Lisp_Object obj)
71 70
72DEFUN ("current-case-table", Fcurrent_case_table, Scurrent_case_table, 0, 0, 0, 71DEFUN ("current-case-table", Fcurrent_case_table, Scurrent_case_table, 0, 0, 0,
73 doc: /* Return the case table of the current buffer. */) 72 doc: /* Return the case table of the current buffer. */)
74 () 73 (void)
75{ 74{
76 return current_buffer->downcase_table; 75 return current_buffer->downcase_table;
77} 76}
@@ -79,7 +78,7 @@ DEFUN ("current-case-table", Fcurrent_case_table, Scurrent_case_table, 0, 0, 0,
79DEFUN ("standard-case-table", Fstandard_case_table, Sstandard_case_table, 0, 0, 0, 78DEFUN ("standard-case-table", Fstandard_case_table, Sstandard_case_table, 0, 0, 0,
80 doc: /* Return the standard case table. 79 doc: /* Return the standard case table.
81This is the one used for new buffers. */) 80This is the one used for new buffers. */)
82 () 81 (void)
83{ 82{
84 return Vascii_downcase_table; 83 return Vascii_downcase_table;
85} 84}
@@ -103,8 +102,7 @@ CANONICALIZE maps each character to a canonical equivalent;
103EQUIVALENCES is a map that cyclicly permutes each equivalence class 102EQUIVALENCES is a map that cyclicly permutes each equivalence class
104 (of characters with the same canonical equivalent); it may be nil, 103 (of characters with the same canonical equivalent); it may be nil,
105 in which case it is deduced from CANONICALIZE. */) 104 in which case it is deduced from CANONICALIZE. */)
106 (table) 105 (Lisp_Object table)
107 Lisp_Object table;
108{ 106{
109 return set_case_table (table, 0); 107 return set_case_table (table, 0);
110} 108}
@@ -112,8 +110,7 @@ EQUIVALENCES is a map that cyclicly permutes each equivalence class
112DEFUN ("set-standard-case-table", Fset_standard_case_table, Sset_standard_case_table, 1, 1, 0, 110DEFUN ("set-standard-case-table", Fset_standard_case_table, Sset_standard_case_table, 1, 1, 0,
113 doc: /* Select a new standard case table for new buffers. 111 doc: /* Select a new standard case table for new buffers.
114See `set-case-table' for more info on case tables. */) 112See `set-case-table' for more info on case tables. */)
115 (table) 113 (Lisp_Object table)
116 Lisp_Object table;
117{ 114{
118 return set_case_table (table, 1); 115 return set_case_table (table, 1);
119} 116}
diff --git a/src/category.c b/src/category.c
index ead142da008..5c38f351d01 100644
--- a/src/category.c
+++ b/src/category.c
@@ -89,8 +89,7 @@ DEFUN ("make-category-set", Fmake_category_set, Smake_category_set, 1, 1, 0,
89CATEGORIES is a string of category mnemonics. 89CATEGORIES is a string of category mnemonics.
90The value is a bool-vector which has t at the indices corresponding to 90The value is a bool-vector which has t at the indices corresponding to
91those categories. */) 91those categories. */)
92 (categories) 92 (Lisp_Object categories)
93 Lisp_Object categories;
94{ 93{
95 Lisp_Object val; 94 Lisp_Object val;
96 int len; 95 int len;
@@ -126,8 +125,7 @@ should be a terse text (preferably less than 16 characters),
126and the rest lines should be the full description. 125and the rest lines should be the full description.
127The category is defined only in category table TABLE, which defaults to 126The category is defined only in category table TABLE, which defaults to
128the current buffer's category table. */) 127the current buffer's category table. */)
129 (category, docstring, table) 128 (Lisp_Object category, Lisp_Object docstring, Lisp_Object table)
130 Lisp_Object category, docstring, table;
131{ 129{
132 CHECK_CATEGORY (category); 130 CHECK_CATEGORY (category);
133 CHECK_STRING (docstring); 131 CHECK_STRING (docstring);
@@ -146,8 +144,7 @@ DEFUN ("category-docstring", Fcategory_docstring, Scategory_docstring, 1, 2, 0,
146 doc: /* Return the documentation string of CATEGORY, as defined in TABLE. 144 doc: /* Return the documentation string of CATEGORY, as defined in TABLE.
147TABLE should be a category table and defaults to the current buffer's 145TABLE should be a category table and defaults to the current buffer's
148category table. */) 146category table. */)
149 (category, table) 147 (Lisp_Object category, Lisp_Object table)
150 Lisp_Object category, table;
151{ 148{
152 CHECK_CATEGORY (category); 149 CHECK_CATEGORY (category);
153 table = check_category_table (table); 150 table = check_category_table (table);
@@ -161,8 +158,7 @@ DEFUN ("get-unused-category", Fget_unused_category, Sget_unused_category,
161If no category remains available, return nil. 158If no category remains available, return nil.
162The optional argument TABLE specifies which category table to modify; 159The optional argument TABLE specifies which category table to modify;
163it defaults to the current buffer's category table. */) 160it defaults to the current buffer's category table. */)
164 (table) 161 (Lisp_Object table)
165 Lisp_Object table;
166{ 162{
167 int i; 163 int i;
168 164
@@ -180,8 +176,7 @@ it defaults to the current buffer's category table. */)
180 176
181DEFUN ("category-table-p", Fcategory_table_p, Scategory_table_p, 1, 1, 0, 177DEFUN ("category-table-p", Fcategory_table_p, Scategory_table_p, 1, 1, 0,
182 doc: /* Return t if ARG is a category table. */) 178 doc: /* Return t if ARG is a category table. */)
183 (arg) 179 (Lisp_Object arg)
184 Lisp_Object arg;
185{ 180{
186 if (CHAR_TABLE_P (arg) 181 if (CHAR_TABLE_P (arg)
187 && EQ (XCHAR_TABLE (arg)->purpose, Qcategory_table)) 182 && EQ (XCHAR_TABLE (arg)->purpose, Qcategory_table))
@@ -206,7 +201,7 @@ check_category_table (Lisp_Object table)
206DEFUN ("category-table", Fcategory_table, Scategory_table, 0, 0, 0, 201DEFUN ("category-table", Fcategory_table, Scategory_table, 0, 0, 0,
207 doc: /* Return the current category table. 202 doc: /* Return the current category table.
208This is the one specified by the current buffer. */) 203This is the one specified by the current buffer. */)
209 () 204 (void)
210{ 205{
211 return current_buffer->category_table; 206 return current_buffer->category_table;
212} 207}
@@ -215,7 +210,7 @@ DEFUN ("standard-category-table", Fstandard_category_table,
215 Sstandard_category_table, 0, 0, 0, 210 Sstandard_category_table, 0, 0, 0,
216 doc: /* Return the standard category table. 211 doc: /* Return the standard category table.
217This is the one used for new buffers. */) 212This is the one used for new buffers. */)
218 () 213 (void)
219{ 214{
220 return Vstandard_category_table; 215 return Vstandard_category_table;
221} 216}
@@ -255,8 +250,7 @@ DEFUN ("copy-category-table", Fcopy_category_table, Scopy_category_table,
255 0, 1, 0, 250 0, 1, 0,
256 doc: /* Construct a new category table and return it. 251 doc: /* Construct a new category table and return it.
257It is a copy of the TABLE, which defaults to the standard category table. */) 252It is a copy of the TABLE, which defaults to the standard category table. */)
258 (table) 253 (Lisp_Object table)
259 Lisp_Object table;
260{ 254{
261 if (!NILP (table)) 255 if (!NILP (table))
262 check_category_table (table); 256 check_category_table (table);
@@ -269,7 +263,7 @@ It is a copy of the TABLE, which defaults to the standard category table. */)
269DEFUN ("make-category-table", Fmake_category_table, Smake_category_table, 263DEFUN ("make-category-table", Fmake_category_table, Smake_category_table,
270 0, 0, 0, 264 0, 0, 0,
271 doc: /* Construct a new and empty category table and return it. */) 265 doc: /* Construct a new and empty category table and return it. */)
272 () 266 (void)
273{ 267{
274 Lisp_Object val; 268 Lisp_Object val;
275 int i; 269 int i;
@@ -286,8 +280,7 @@ DEFUN ("make-category-table", Fmake_category_table, Smake_category_table,
286DEFUN ("set-category-table", Fset_category_table, Sset_category_table, 1, 1, 0, 280DEFUN ("set-category-table", Fset_category_table, Sset_category_table, 1, 1, 0,
287 doc: /* Specify TABLE as the category table for the current buffer. 281 doc: /* Specify TABLE as the category table for the current buffer.
288Return TABLE. */) 282Return TABLE. */)
289 (table) 283 (Lisp_Object table)
290 Lisp_Object table;
291{ 284{
292 int idx; 285 int idx;
293 table = check_category_table (table); 286 table = check_category_table (table);
@@ -308,8 +301,7 @@ char_category_set (int c)
308DEFUN ("char-category-set", Fchar_category_set, Schar_category_set, 1, 1, 0, 301DEFUN ("char-category-set", Fchar_category_set, Schar_category_set, 1, 1, 0,
309 doc: /* Return the category set of CHAR. 302 doc: /* Return the category set of CHAR.
310usage: (char-category-set CHAR) */) 303usage: (char-category-set CHAR) */)
311 (ch) 304 (Lisp_Object ch)
312 Lisp_Object ch;
313{ 305{
314 CHECK_NUMBER (ch); 306 CHECK_NUMBER (ch);
315 return CATEGORY_SET (XFASTINT (ch)); 307 return CATEGORY_SET (XFASTINT (ch));
@@ -321,8 +313,7 @@ DEFUN ("category-set-mnemonics", Fcategory_set_mnemonics,
321CATEGORY-SET is a bool-vector, and the categories \"in\" it are those 313CATEGORY-SET is a bool-vector, and the categories \"in\" it are those
322that are indexes where t occurs in the bool-vector. 314that are indexes where t occurs in the bool-vector.
323The return value is a string containing those same categories. */) 315The return value is a string containing those same categories. */)
324 (category_set) 316 (Lisp_Object category_set)
325 Lisp_Object category_set;
326{ 317{
327 int i, j; 318 int i, j;
328 char str[96]; 319 char str[96];
@@ -361,8 +352,7 @@ CHARACTER can be either a single character or a cons representing the
361lower and upper ends of an inclusive character range to modify. 352lower and upper ends of an inclusive character range to modify.
362If optional fourth argument RESET is non-nil, 353If optional fourth argument RESET is non-nil,
363then delete CATEGORY from the category set instead of adding it. */) 354then delete CATEGORY from the category set instead of adding it. */)
364 (character, category, table, reset) 355 (Lisp_Object character, Lisp_Object category, Lisp_Object table, Lisp_Object reset)
365 Lisp_Object character, category, table, reset;
366{ 356{
367 Lisp_Object set_value; /* Actual value to be set in category sets. */ 357 Lisp_Object set_value; /* Actual value to be set in category sets. */
368 Lisp_Object category_set; 358 Lisp_Object category_set;
diff --git a/src/character.c b/src/character.c
index 648c5a291d2..470157b36ed 100644
--- a/src/character.c
+++ b/src/character.c
@@ -288,15 +288,14 @@ multibyte_char_to_unibyte_safe (int c)
288 288
289DEFUN ("characterp", Fcharacterp, Scharacterp, 1, 2, 0, 289DEFUN ("characterp", Fcharacterp, Scharacterp, 1, 2, 0,
290 doc: /* Return non-nil if OBJECT is a character. */) 290 doc: /* Return non-nil if OBJECT is a character. */)
291 (object, ignore) 291 (Lisp_Object object, Lisp_Object ignore)
292 Lisp_Object object, ignore;
293{ 292{
294 return (CHARACTERP (object) ? Qt : Qnil); 293 return (CHARACTERP (object) ? Qt : Qnil);
295} 294}
296 295
297DEFUN ("max-char", Fmax_char, Smax_char, 0, 0, 0, 296DEFUN ("max-char", Fmax_char, Smax_char, 0, 0, 0,
298 doc: /* Return the character of the maximum code. */) 297 doc: /* Return the character of the maximum code. */)
299 () 298 (void)
300{ 299{
301 return make_number (MAX_CHAR); 300 return make_number (MAX_CHAR);
302} 301}
@@ -304,8 +303,7 @@ DEFUN ("max-char", Fmax_char, Smax_char, 0, 0, 0,
304DEFUN ("unibyte-char-to-multibyte", Funibyte_char_to_multibyte, 303DEFUN ("unibyte-char-to-multibyte", Funibyte_char_to_multibyte,
305 Sunibyte_char_to_multibyte, 1, 1, 0, 304 Sunibyte_char_to_multibyte, 1, 1, 0,
306 doc: /* Convert the byte CH to multibyte character. */) 305 doc: /* Convert the byte CH to multibyte character. */)
307 (ch) 306 (Lisp_Object ch)
308 Lisp_Object ch;
309{ 307{
310 int c; 308 int c;
311 309
@@ -321,8 +319,7 @@ DEFUN ("multibyte-char-to-unibyte", Fmultibyte_char_to_unibyte,
321 Smultibyte_char_to_unibyte, 1, 1, 0, 319 Smultibyte_char_to_unibyte, 1, 1, 0,
322 doc: /* Convert the multibyte character CH to a byte. 320 doc: /* Convert the multibyte character CH to a byte.
323If the multibyte character does not represent a byte, return -1. */) 321If the multibyte character does not represent a byte, return -1. */)
324 (ch) 322 (Lisp_Object ch)
325 Lisp_Object ch;
326{ 323{
327 int cm; 324 int cm;
328 325
@@ -343,8 +340,7 @@ DEFUN ("char-bytes", Fchar_bytes, Schar_bytes, 1, 1, 0,
343 doc: /* Return 1 regardless of the argument CHAR. 340 doc: /* Return 1 regardless of the argument CHAR.
344This is now an obsolete function. We keep it just for backward compatibility. 341This is now an obsolete function. We keep it just for backward compatibility.
345usage: (char-bytes CHAR) */) 342usage: (char-bytes CHAR) */)
346 (ch) 343 (Lisp_Object ch)
347 Lisp_Object ch;
348{ 344{
349 CHECK_CHARACTER (ch); 345 CHECK_CHARACTER (ch);
350 return make_number (1); 346 return make_number (1);
@@ -355,8 +351,7 @@ DEFUN ("char-width", Fchar_width, Schar_width, 1, 1, 0,
355The width is measured by how many columns it occupies on the screen. 351The width is measured by how many columns it occupies on the screen.
356Tab is taken to occupy `tab-width' columns. 352Tab is taken to occupy `tab-width' columns.
357usage: (char-width CHAR) */) 353usage: (char-width CHAR) */)
358 (ch) 354 (Lisp_Object ch)
359 Lisp_Object ch;
360{ 355{
361 Lisp_Object disp; 356 Lisp_Object disp;
362 int c, width; 357 int c, width;
@@ -527,8 +522,7 @@ only the base leading-code is considered; the validity of
527the following bytes is not checked. Tabs in STRING are always 522the following bytes is not checked. Tabs in STRING are always
528taken to occupy `tab-width' columns. 523taken to occupy `tab-width' columns.
529usage: (string-width STRING) */) 524usage: (string-width STRING) */)
530 (str) 525 (Lisp_Object str)
531 Lisp_Object str;
532{ 526{
533 Lisp_Object val; 527 Lisp_Object val;
534 528
@@ -541,8 +535,7 @@ DEFUN ("char-direction", Fchar_direction, Schar_direction, 1, 1, 0,
541 doc: /* Return the direction of CHAR. 535 doc: /* Return the direction of CHAR.
542The returned value is 0 for left-to-right and 1 for right-to-left. 536The returned value is 0 for left-to-right and 1 for right-to-left.
543usage: (char-direction CHAR) */) 537usage: (char-direction CHAR) */)
544 (ch) 538 (Lisp_Object ch)
545 Lisp_Object ch;
546{ 539{
547 int c; 540 int c;
548 541
@@ -922,9 +915,7 @@ DEFUN ("string", Fstring, Sstring, 0, MANY, 0,
922 doc: /* 915 doc: /*
923Concatenate all the argument characters and make the result a string. 916Concatenate all the argument characters and make the result a string.
924usage: (string &rest CHARACTERS) */) 917usage: (string &rest CHARACTERS) */)
925 (n, args) 918 (int n, Lisp_Object *args)
926 int n;
927 Lisp_Object *args;
928{ 919{
929 int i, c; 920 int i, c;
930 unsigned char *buf, *p; 921 unsigned char *buf, *p;
@@ -949,9 +940,7 @@ usage: (string &rest CHARACTERS) */)
949DEFUN ("unibyte-string", Funibyte_string, Sunibyte_string, 0, MANY, 0, 940DEFUN ("unibyte-string", Funibyte_string, Sunibyte_string, 0, MANY, 0,
950 doc: /* Concatenate all the argument bytes and make the result a unibyte string. 941 doc: /* Concatenate all the argument bytes and make the result a unibyte string.
951usage: (unibyte-string &rest BYTES) */) 942usage: (unibyte-string &rest BYTES) */)
952 (n, args) 943 (int n, Lisp_Object *args)
953 int n;
954 Lisp_Object *args;
955{ 944{
956 int i, c; 945 int i, c;
957 unsigned char *buf, *p; 946 unsigned char *buf, *p;
@@ -981,8 +970,7 @@ DEFUN ("char-resolve-modifiers", Fchar_resolve_modifiers,
981The value is a character with modifiers resolved into the character 970The value is a character with modifiers resolved into the character
982code. Unresolved modifiers are kept in the value. 971code. Unresolved modifiers are kept in the value.
983usage: (char-resolve-modifiers CHAR) */) 972usage: (char-resolve-modifiers CHAR) */)
984 (character) 973 (Lisp_Object character)
985 Lisp_Object character;
986{ 974{
987 int c; 975 int c;
988 976
@@ -1001,8 +989,7 @@ non-nil, is an index of a target character in the string.
1001 989
1002If the current buffer (or STRING) is multibyte, and the target 990If the current buffer (or STRING) is multibyte, and the target
1003character is not ASCII nor 8-bit character, an error is signalled. */) 991character is not ASCII nor 8-bit character, an error is signalled. */)
1004 (position, string) 992 (Lisp_Object position, Lisp_Object string)
1005 Lisp_Object position, string;
1006{ 993{
1007 int c; 994 int c;
1008 EMACS_INT pos; 995 EMACS_INT pos;
diff --git a/src/charset.c b/src/charset.c
index 718b5197471..31112c81cdc 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -663,8 +663,7 @@ load_charset (struct charset *charset, int control_flag)
663 663
664DEFUN ("charsetp", Fcharsetp, Scharsetp, 1, 1, 0, 664DEFUN ("charsetp", Fcharsetp, Scharsetp, 1, 1, 0,
665 doc: /* Return non-nil if and only if OBJECT is a charset.*/) 665 doc: /* Return non-nil if and only if OBJECT is a charset.*/)
666 (object) 666 (Lisp_Object object)
667 Lisp_Object object;
668{ 667{
669 return (CHARSETP (object) ? Qt : Qnil); 668 return (CHARSETP (object) ? Qt : Qnil);
670} 669}
@@ -830,8 +829,7 @@ characters contained in CHARSET.
830 829
831The optional 4th and 5th arguments FROM-CODE and TO-CODE specify the 830The optional 4th and 5th arguments FROM-CODE and TO-CODE specify the
832range of code points (in CHARSET) of target characters. */) 831range of code points (in CHARSET) of target characters. */)
833 (function, charset, arg, from_code, to_code) 832 (Lisp_Object function, Lisp_Object charset, Lisp_Object arg, Lisp_Object from_code, Lisp_Object to_code)
834 Lisp_Object function, charset, arg, from_code, to_code;
835{ 833{
836 struct charset *cs; 834 struct charset *cs;
837 unsigned from, to; 835 unsigned from, to;
@@ -869,9 +867,7 @@ DEFUN ("define-charset-internal", Fdefine_charset_internal,
869 Sdefine_charset_internal, charset_arg_max, MANY, 0, 867 Sdefine_charset_internal, charset_arg_max, MANY, 0,
870 doc: /* For internal use only. 868 doc: /* For internal use only.
871usage: (define-charset-internal ...) */) 869usage: (define-charset-internal ...) */)
872 (nargs, args) 870 (int nargs, Lisp_Object *args)
873 int nargs;
874 Lisp_Object *args;
875{ 871{
876 /* Charset attr vector. */ 872 /* Charset attr vector. */
877 Lisp_Object attrs; 873 Lisp_Object attrs;
@@ -1342,8 +1338,7 @@ define_charset_internal (Lisp_Object name,
1342DEFUN ("define-charset-alias", Fdefine_charset_alias, 1338DEFUN ("define-charset-alias", Fdefine_charset_alias,
1343 Sdefine_charset_alias, 2, 2, 0, 1339 Sdefine_charset_alias, 2, 2, 0,
1344 doc: /* Define ALIAS as an alias for charset CHARSET. */) 1340 doc: /* Define ALIAS as an alias for charset CHARSET. */)
1345 (alias, charset) 1341 (Lisp_Object alias, Lisp_Object charset)
1346 Lisp_Object alias, charset;
1347{ 1342{
1348 Lisp_Object attr; 1343 Lisp_Object attr;
1349 1344
@@ -1356,8 +1351,7 @@ DEFUN ("define-charset-alias", Fdefine_charset_alias,
1356 1351
1357DEFUN ("charset-plist", Fcharset_plist, Scharset_plist, 1, 1, 0, 1352DEFUN ("charset-plist", Fcharset_plist, Scharset_plist, 1, 1, 0,
1358 doc: /* Return the property list of CHARSET. */) 1353 doc: /* Return the property list of CHARSET. */)
1359 (charset) 1354 (Lisp_Object charset)
1360 Lisp_Object charset;
1361{ 1355{
1362 Lisp_Object attrs; 1356 Lisp_Object attrs;
1363 1357
@@ -1368,8 +1362,7 @@ DEFUN ("charset-plist", Fcharset_plist, Scharset_plist, 1, 1, 0,
1368 1362
1369DEFUN ("set-charset-plist", Fset_charset_plist, Sset_charset_plist, 2, 2, 0, 1363DEFUN ("set-charset-plist", Fset_charset_plist, Sset_charset_plist, 2, 2, 0,
1370 doc: /* Set CHARSET's property list to PLIST. */) 1364 doc: /* Set CHARSET's property list to PLIST. */)
1371 (charset, plist) 1365 (Lisp_Object charset, Lisp_Object plist)
1372 Lisp_Object charset, plist;
1373{ 1366{
1374 Lisp_Object attrs; 1367 Lisp_Object attrs;
1375 1368
@@ -1389,8 +1382,7 @@ the same meaning as the `:unify-map' attribute in the function
1389`define-charset' (which see). 1382`define-charset' (which see).
1390 1383
1391Optional third argument DEUNIFY, if non-nil, means to de-unify CHARSET. */) 1384Optional third argument DEUNIFY, if non-nil, means to de-unify CHARSET. */)
1392 (charset, unify_map, deunify) 1385 (Lisp_Object charset, Lisp_Object unify_map, Lisp_Object deunify)
1393 Lisp_Object charset, unify_map, deunify;
1394{ 1386{
1395 int id; 1387 int id;
1396 struct charset *cs; 1388 struct charset *cs;
@@ -1445,8 +1437,7 @@ CHARS is the number of characters in a dimension: 94 or 96.
1445This final char is for private use, thus the range is `0' (48) .. `?' (63). 1437This final char is for private use, thus the range is `0' (48) .. `?' (63).
1446If there's no unused final char for the specified kind of charset, 1438If there's no unused final char for the specified kind of charset,
1447return nil. */) 1439return nil. */)
1448 (dimension, chars) 1440 (Lisp_Object dimension, Lisp_Object chars)
1449 Lisp_Object dimension, chars;
1450{ 1441{
1451 int final_char; 1442 int final_char;
1452 1443
@@ -1485,8 +1476,7 @@ DEFUN ("declare-equiv-charset", Fdeclare_equiv_charset, Sdeclare_equiv_charset,
1485On decoding by an ISO-2022 base coding system, when a charset 1476On decoding by an ISO-2022 base coding system, when a charset
1486specified by DIMENSION, CHARS, and FINAL-CHAR is designated, behave as 1477specified by DIMENSION, CHARS, and FINAL-CHAR is designated, behave as
1487if CHARSET is designated instead. */) 1478if CHARSET is designated instead. */)
1488 (dimension, chars, final_char, charset) 1479 (Lisp_Object dimension, Lisp_Object chars, Lisp_Object final_char, Lisp_Object charset)
1489 Lisp_Object dimension, chars, final_char, charset;
1490{ 1480{
1491 int id; 1481 int id;
1492 int chars_flag; 1482 int chars_flag;
@@ -1584,8 +1574,7 @@ Optional arg TABLE if non-nil is a translation table to look up.
1584 1574
1585If the current buffer is unibyte, the returned list may contain 1575If the current buffer is unibyte, the returned list may contain
1586only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) 1576only `ascii', `eight-bit-control', and `eight-bit-graphic'. */)
1587 (beg, end, table) 1577 (Lisp_Object beg, Lisp_Object end, Lisp_Object table)
1588 Lisp_Object beg, end, table;
1589{ 1578{
1590 Lisp_Object charsets; 1579 Lisp_Object charsets;
1591 EMACS_INT from, from_byte, to, stop, stop_byte; 1580 EMACS_INT from, from_byte, to, stop, stop_byte;
@@ -1636,8 +1625,7 @@ Optional arg TABLE if non-nil is a translation table to look up.
1636 1625
1637If STR is unibyte, the returned list may contain 1626If STR is unibyte, the returned list may contain
1638only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) 1627only `ascii', `eight-bit-control', and `eight-bit-graphic'. */)
1639 (str, table) 1628 (Lisp_Object str, Lisp_Object table)
1640 Lisp_Object str, table;
1641{ 1629{
1642 Lisp_Object charsets; 1630 Lisp_Object charsets;
1643 int i; 1631 int i;
@@ -1888,8 +1876,7 @@ CODE-POINT may be a cons (HIGHER-16-BIT-VALUE . LOWER-16-BIT-VALUE).
1888 1876
1889Optional argument RESTRICTION specifies a way to map the pair of CCS 1877Optional argument RESTRICTION specifies a way to map the pair of CCS
1890and CODE-POINT to a character. Currently not supported and just ignored. */) 1878and CODE-POINT to a character. Currently not supported and just ignored. */)
1891 (charset, code_point, restriction) 1879 (Lisp_Object charset, Lisp_Object code_point, Lisp_Object restriction)
1892 Lisp_Object charset, code_point, restriction;
1893{ 1880{
1894 int c, id; 1881 int c, id;
1895 unsigned code; 1882 unsigned code;
@@ -1919,8 +1906,7 @@ Return nil if CHARSET doesn't include CH.
1919 1906
1920Optional argument RESTRICTION specifies a way to map CH to a 1907Optional argument RESTRICTION specifies a way to map CH to a
1921code-point in CCS. Currently not supported and just ignored. */) 1908code-point in CCS. Currently not supported and just ignored. */)
1922 (ch, charset, restriction) 1909 (Lisp_Object ch, Lisp_Object charset, Lisp_Object restriction)
1923 Lisp_Object ch, charset, restriction;
1924{ 1910{
1925 int id; 1911 int id;
1926 unsigned code; 1912 unsigned code;
@@ -1945,8 +1931,7 @@ DEFUN ("make-char", Fmake_char, Smake_char, 1, 5, 0,
1945CODE1 through CODE4 are optional, but if you don't supply sufficient 1931CODE1 through CODE4 are optional, but if you don't supply sufficient
1946position codes, it is assumed that the minimum code in each dimension 1932position codes, it is assumed that the minimum code in each dimension
1947is specified. */) 1933is specified. */)
1948 (charset, code1, code2, code3, code4) 1934 (Lisp_Object charset, Lisp_Object code1, Lisp_Object code2, Lisp_Object code3, Lisp_Object code4)
1949 Lisp_Object charset, code1, code2, code3, code4;
1950{ 1935{
1951 int id, dimension; 1936 int id, dimension;
1952 struct charset *charsetp; 1937 struct charset *charsetp;
@@ -2062,8 +2047,7 @@ DEFUN ("split-char", Fsplit_char, Ssplit_char, 1, 1, 0,
2062The charset is decided by the current priority order of charsets. 2047The charset is decided by the current priority order of charsets.
2063A position-code is a byte value of each dimension of the code-point of 2048A position-code is a byte value of each dimension of the code-point of
2064CH in the charset. */) 2049CH in the charset. */)
2065 (ch) 2050 (Lisp_Object ch)
2066 Lisp_Object ch;
2067{ 2051{
2068 struct charset *charset; 2052 struct charset *charset;
2069 int c, dimension; 2053 int c, dimension;
@@ -2093,8 +2077,7 @@ DEFUN ("char-charset", Fchar_charset, Schar_charset, 1, 2, 0,
2093If optional 2nd arg RESTRICTION is non-nil, it is a list of charsets 2077If optional 2nd arg RESTRICTION is non-nil, it is a list of charsets
2094from which to find the charset. It may also be a coding system. In 2078from which to find the charset. It may also be a coding system. In
2095that case, find the charset from what supported by that coding system. */) 2079that case, find the charset from what supported by that coding system. */)
2096 (ch, restriction) 2080 (Lisp_Object ch, Lisp_Object restriction)
2097 Lisp_Object ch, restriction;
2098{ 2081{
2099 struct charset *charset; 2082 struct charset *charset;
2100 2083
@@ -2132,8 +2115,7 @@ DEFUN ("charset-after", Fcharset_after, Scharset_after, 0, 1, 0,
2132Return charset of a character in the current buffer at position POS. 2115Return charset of a character in the current buffer at position POS.
2133If POS is nil, it defauls to the current point. 2116If POS is nil, it defauls to the current point.
2134If POS is out of range, the value is nil. */) 2117If POS is out of range, the value is nil. */)
2135 (pos) 2118 (Lisp_Object pos)
2136 Lisp_Object pos;
2137{ 2119{
2138 Lisp_Object ch; 2120 Lisp_Object ch;
2139 struct charset *charset; 2121 struct charset *charset;
@@ -2155,8 +2137,7 @@ by their DIMENSION, CHARS, and FINAL-CHAR,
2155whereas Emacs distinguishes them by charset symbol. 2137whereas Emacs distinguishes them by charset symbol.
2156See the documentation of the function `charset-info' for the meanings of 2138See the documentation of the function `charset-info' for the meanings of
2157DIMENSION, CHARS, and FINAL-CHAR. */) 2139DIMENSION, CHARS, and FINAL-CHAR. */)
2158 (dimension, chars, final_char) 2140 (Lisp_Object dimension, Lisp_Object chars, Lisp_Object final_char)
2159 Lisp_Object dimension, chars, final_char;
2160{ 2141{
2161 int id; 2142 int id;
2162 int chars_flag; 2143 int chars_flag;
@@ -2175,7 +2156,7 @@ DEFUN ("clear-charset-maps", Fclear_charset_maps, Sclear_charset_maps,
2175Internal use only. 2156Internal use only.
2176Clear temporary charset mapping tables. 2157Clear temporary charset mapping tables.
2177It should be called only from temacs invoked for dumping. */) 2158It should be called only from temacs invoked for dumping. */)
2178 () 2159 (void)
2179{ 2160{
2180 if (temp_charset_work) 2161 if (temp_charset_work)
2181 { 2162 {
@@ -2193,8 +2174,7 @@ DEFUN ("charset-priority-list", Fcharset_priority_list,
2193 Scharset_priority_list, 0, 1, 0, 2174 Scharset_priority_list, 0, 1, 0,
2194 doc: /* Return the list of charsets ordered by priority. 2175 doc: /* Return the list of charsets ordered by priority.
2195HIGHESTP non-nil means just return the highest priority one. */) 2176HIGHESTP non-nil means just return the highest priority one. */)
2196 (highestp) 2177 (Lisp_Object highestp)
2197 Lisp_Object highestp;
2198{ 2178{
2199 Lisp_Object val = Qnil, list = Vcharset_ordered_list; 2179 Lisp_Object val = Qnil, list = Vcharset_ordered_list;
2200 2180
@@ -2213,9 +2193,7 @@ DEFUN ("set-charset-priority", Fset_charset_priority, Sset_charset_priority,
2213 1, MANY, 0, 2193 1, MANY, 0,
2214 doc: /* Assign higher priority to the charsets given as arguments. 2194 doc: /* Assign higher priority to the charsets given as arguments.
2215usage: (set-charset-priority &rest charsets) */) 2195usage: (set-charset-priority &rest charsets) */)
2216 (nargs, args) 2196 (int nargs, Lisp_Object *args)
2217 int nargs;
2218 Lisp_Object *args;
2219{ 2197{
2220 Lisp_Object new_head, old_list, arglist[2]; 2198 Lisp_Object new_head, old_list, arglist[2];
2221 Lisp_Object list_2022, list_emacs_mule; 2199 Lisp_Object list_2022, list_emacs_mule;
@@ -2267,8 +2245,7 @@ DEFUN ("charset-id-internal", Fcharset_id_internal, Scharset_id_internal,
2267 0, 1, 0, 2245 0, 1, 0,
2268 doc: /* Internal use only. 2246 doc: /* Internal use only.
2269Return charset identification number of CHARSET. */) 2247Return charset identification number of CHARSET. */)
2270 (charset) 2248 (Lisp_Object charset)
2271 Lisp_Object charset;
2272{ 2249{
2273 int id; 2250 int id;
2274 2251
diff --git a/src/chartab.c b/src/chartab.c
index ddbb0057d8b..fddd8a3d406 100644
--- a/src/chartab.c
+++ b/src/chartab.c
@@ -62,8 +62,7 @@ PURPOSE should be a symbol. If it has a `char-table-extra-slots'
62property, the property's value should be an integer between 0 and 10 62property, the property's value should be an integer between 0 and 10
63that specifies how many extra slots the char-table has. Otherwise, 63that specifies how many extra slots the char-table has. Otherwise,
64the char-table has no extra slot. */) 64the char-table has no extra slot. */)
65 (purpose, init) 65 (register Lisp_Object purpose, Lisp_Object init)
66 register Lisp_Object purpose, init;
67{ 66{
68 Lisp_Object vector; 67 Lisp_Object vector;
69 Lisp_Object n; 68 Lisp_Object n;
@@ -452,8 +451,7 @@ DEFUN ("char-table-subtype", Fchar_table_subtype, Schar_table_subtype,
452 1, 1, 0, 451 1, 1, 0,
453 doc: /* 452 doc: /*
454Return the subtype of char-table CHAR-TABLE. The value is a symbol. */) 453Return the subtype of char-table CHAR-TABLE. The value is a symbol. */)
455 (char_table) 454 (Lisp_Object char_table)
456 Lisp_Object char_table;
457{ 455{
458 CHECK_CHAR_TABLE (char_table); 456 CHECK_CHAR_TABLE (char_table);
459 457
@@ -467,8 +465,7 @@ The value is either nil or another char-table.
467If CHAR-TABLE holds nil for a given character, 465If CHAR-TABLE holds nil for a given character,
468then the actual applicable value is inherited from the parent char-table 466then the actual applicable value is inherited from the parent char-table
469\(or from its parents, if necessary). */) 467\(or from its parents, if necessary). */)
470 (char_table) 468 (Lisp_Object char_table)
471 Lisp_Object char_table;
472{ 469{
473 CHECK_CHAR_TABLE (char_table); 470 CHECK_CHAR_TABLE (char_table);
474 471
@@ -479,8 +476,7 @@ DEFUN ("set-char-table-parent", Fset_char_table_parent, Sset_char_table_parent,
479 2, 2, 0, 476 2, 2, 0,
480 doc: /* Set the parent char-table of CHAR-TABLE to PARENT. 477 doc: /* Set the parent char-table of CHAR-TABLE to PARENT.
481Return PARENT. PARENT must be either nil or another char-table. */) 478Return PARENT. PARENT must be either nil or another char-table. */)
482 (char_table, parent) 479 (Lisp_Object char_table, Lisp_Object parent)
483 Lisp_Object char_table, parent;
484{ 480{
485 Lisp_Object temp; 481 Lisp_Object temp;
486 482
@@ -503,8 +499,7 @@ Return PARENT. PARENT must be either nil or another char-table. */)
503DEFUN ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot, 499DEFUN ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot,
504 2, 2, 0, 500 2, 2, 0,
505 doc: /* Return the value of CHAR-TABLE's extra-slot number N. */) 501 doc: /* Return the value of CHAR-TABLE's extra-slot number N. */)
506 (char_table, n) 502 (Lisp_Object char_table, Lisp_Object n)
507 Lisp_Object char_table, n;
508{ 503{
509 CHECK_CHAR_TABLE (char_table); 504 CHECK_CHAR_TABLE (char_table);
510 CHECK_NUMBER (n); 505 CHECK_NUMBER (n);
@@ -519,8 +514,7 @@ DEFUN ("set-char-table-extra-slot", Fset_char_table_extra_slot,
519 Sset_char_table_extra_slot, 514 Sset_char_table_extra_slot,
520 3, 3, 0, 515 3, 3, 0,
521 doc: /* Set CHAR-TABLE's extra-slot number N to VALUE. */) 516 doc: /* Set CHAR-TABLE's extra-slot number N to VALUE. */)
522 (char_table, n, value) 517 (Lisp_Object char_table, Lisp_Object n, Lisp_Object value)
523 Lisp_Object char_table, n, value;
524{ 518{
525 CHECK_CHAR_TABLE (char_table); 519 CHECK_CHAR_TABLE (char_table);
526 CHECK_NUMBER (n); 520 CHECK_NUMBER (n);
@@ -536,8 +530,7 @@ DEFUN ("char-table-range", Fchar_table_range, Schar_table_range,
536 doc: /* Return the value in CHAR-TABLE for a range of characters RANGE. 530 doc: /* Return the value in CHAR-TABLE for a range of characters RANGE.
537RANGE should be nil (for the default value), 531RANGE should be nil (for the default value),
538a cons of character codes (for characters in the range), or a character code. */) 532a cons of character codes (for characters in the range), or a character code. */)
539 (char_table, range) 533 (Lisp_Object char_table, Lisp_Object range)
540 Lisp_Object char_table, range;
541{ 534{
542 Lisp_Object val; 535 Lisp_Object val;
543 CHECK_CHAR_TABLE (char_table); 536 CHECK_CHAR_TABLE (char_table);
@@ -567,8 +560,7 @@ DEFUN ("set-char-table-range", Fset_char_table_range, Sset_char_table_range,
567RANGE should be t (for all characters), nil (for the default value), 560RANGE should be t (for all characters), nil (for the default value),
568a cons of character codes (for characters in the range), 561a cons of character codes (for characters in the range),
569or a character code. Return VALUE. */) 562or a character code. Return VALUE. */)
570 (char_table, range, value) 563 (Lisp_Object char_table, Lisp_Object range, Lisp_Object value)
571 Lisp_Object char_table, range, value;
572{ 564{
573 CHECK_CHAR_TABLE (char_table); 565 CHECK_CHAR_TABLE (char_table);
574 if (EQ (range, Qt)) 566 if (EQ (range, Qt))
@@ -600,8 +592,7 @@ DEFUN ("set-char-table-default", Fset_char_table_default,
600 Sset_char_table_default, 3, 3, 0, 592 Sset_char_table_default, 3, 3, 0,
601 doc: /* 593 doc: /*
602This function is obsolete and has no effect. */) 594This function is obsolete and has no effect. */)
603 (char_table, ch, value) 595 (Lisp_Object char_table, Lisp_Object ch, Lisp_Object value)
604 Lisp_Object char_table, ch, value;
605{ 596{
606 return Qnil; 597 return Qnil;
607} 598}
@@ -653,8 +644,7 @@ DEFUN ("optimize-char-table", Foptimize_char_table, Soptimize_char_table,
653 doc: /* Optimize CHAR-TABLE. 644 doc: /* Optimize CHAR-TABLE.
654TEST is the comparison function used to decide whether two entries are 645TEST is the comparison function used to decide whether two entries are
655equivalent and can be merged. It defaults to `equal'. */) 646equivalent and can be merged. It defaults to `equal'. */)
656 (char_table, test) 647 (Lisp_Object char_table, Lisp_Object test)
657 Lisp_Object char_table, test;
658{ 648{
659 Lisp_Object elt; 649 Lisp_Object elt;
660 int i; 650 int i;
@@ -866,8 +856,7 @@ Call FUNCTION for each character in CHAR-TABLE that has non-nil value.
866FUNCTION is called with two arguments--a key and a value. 856FUNCTION is called with two arguments--a key and a value.
867The key is a character code or a cons of character codes specifying a 857The key is a character code or a cons of character codes specifying a
868range of characters that have the same value. */) 858range of characters that have the same value. */)
869 (function, char_table) 859 (Lisp_Object function, Lisp_Object char_table)
870 Lisp_Object function, char_table;
871{ 860{
872 CHECK_CHAR_TABLE (char_table); 861 CHECK_CHAR_TABLE (char_table);
873 862
diff --git a/src/cmds.c b/src/cmds.c
index 2bea5a6f10c..81f975a9885 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -48,8 +48,7 @@ extern Lisp_Object Vtranslation_table_for_input;
48 48
49DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, 49DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0,
50 doc: /* Return buffer position N characters after (before if N negative) point. */) 50 doc: /* Return buffer position N characters after (before if N negative) point. */)
51 (n) 51 (Lisp_Object n)
52 Lisp_Object n;
53{ 52{
54 CHECK_NUMBER (n); 53 CHECK_NUMBER (n);
55 54
@@ -63,8 +62,7 @@ On reaching end or beginning of buffer, stop and signal error.
63Depending on the bidirectional context, the movement may be to the 62Depending on the bidirectional context, the movement may be to the
64right or to the left on the screen. This is in contrast with 63right or to the left on the screen. This is in contrast with
65\\[right-char], which see. */) 64\\[right-char], which see. */)
66 (n) 65 (Lisp_Object n)
67 Lisp_Object n;
68{ 66{
69 if (NILP (n)) 67 if (NILP (n))
70 XSETFASTINT (n, 1); 68 XSETFASTINT (n, 1);
@@ -103,8 +101,7 @@ On attempt to pass beginning or end of buffer, stop and signal error.
103Depending on the bidirectional context, the movement may be to the 101Depending on the bidirectional context, the movement may be to the
104right or to the left on the screen. This is in contrast with 102right or to the left on the screen. This is in contrast with
105\\[left-char], which see. */) 103\\[left-char], which see. */)
106 (n) 104 (Lisp_Object n)
107 Lisp_Object n;
108{ 105{
109 if (NILP (n)) 106 if (NILP (n))
110 XSETFASTINT (n, 1); 107 XSETFASTINT (n, 1);
@@ -123,8 +120,7 @@ Returns the count of lines left to move. If moving forward,
123that is N - number of lines moved; if backward, N + number moved. 120that is N - number of lines moved; if backward, N + number moved.
124With positive N, a non-empty line at the end counts as one line 121With positive N, a non-empty line at the end counts as one line
125successfully moved (for the return value). */) 122successfully moved (for the return value). */)
126 (n) 123 (Lisp_Object n)
127 Lisp_Object n;
128{ 124{
129 int opoint = PT, opoint_byte = PT_BYTE; 125 int opoint = PT, opoint_byte = PT_BYTE;
130 int pos, pos_byte; 126 int pos, pos_byte;
@@ -173,8 +169,7 @@ does not move. To ignore field boundaries bind
173`inhibit-field-text-motion' to t, or use the `forward-line' function 169`inhibit-field-text-motion' to t, or use the `forward-line' function
174instead. For instance, `(forward-line 0)' does the same thing as 170instead. For instance, `(forward-line 0)' does the same thing as
175`(beginning-of-line)', except that it ignores field boundaries. */) 171`(beginning-of-line)', except that it ignores field boundaries. */)
176 (n) 172 (Lisp_Object n)
177 Lisp_Object n;
178{ 173{
179 if (NILP (n)) 174 if (NILP (n))
180 XSETFASTINT (n, 1); 175 XSETFASTINT (n, 1);
@@ -197,8 +192,7 @@ point to a different line than the original, unconstrained result. If
197N is nil or 1, and a rear-sticky field ends at point, the point does 192N is nil or 1, and a rear-sticky field ends at point, the point does
198not move. To ignore field boundaries bind `inhibit-field-text-motion' 193not move. To ignore field boundaries bind `inhibit-field-text-motion'
199to t. */) 194to t. */)
200 (n) 195 (Lisp_Object n)
201 Lisp_Object n;
202{ 196{
203 int newpos; 197 int newpos;
204 198
@@ -243,8 +237,7 @@ Interactively, N is the prefix arg, and KILLFLAG is set if
243N was explicitly specified. 237N was explicitly specified.
244 238
245The command `delete-forward' is preferable for interactive use. */) 239The command `delete-forward' is preferable for interactive use. */)
246 (n, killflag) 240 (Lisp_Object n, Lisp_Object killflag)
247 Lisp_Object n, killflag;
248{ 241{
249 int pos; 242 int pos;
250 243
@@ -286,8 +279,7 @@ Before insertion, `expand-abbrev' is executed if the inserted character does
286not have word syntax and the previous character in the buffer does. 279not have word syntax and the previous character in the buffer does.
287After insertion, the value of `auto-fill-function' is called if the 280After insertion, the value of `auto-fill-function' is called if the
288`auto-fill-chars' table has a non-nil value for the inserted character. */) 281`auto-fill-chars' table has a non-nil value for the inserted character. */)
289 (n) 282 (Lisp_Object n)
290 Lisp_Object n;
291{ 283{
292 int remove_boundary = 1; 284 int remove_boundary = 1;
293 CHECK_NUMBER (n); 285 CHECK_NUMBER (n);
diff --git a/src/coding.c b/src/coding.c
index 989fd70b497..44fb992d1a8 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -8091,8 +8091,7 @@ DEFUN ("coding-system-p", Fcoding_system_p, Scoding_system_p, 1, 1, 0,
8091 doc: /* Return t if OBJECT is nil or a coding-system. 8091 doc: /* Return t if OBJECT is nil or a coding-system.
8092See the documentation of `define-coding-system' for information 8092See the documentation of `define-coding-system' for information
8093about coding-system objects. */) 8093about coding-system objects. */)
8094 (object) 8094 (Lisp_Object object)
8095 Lisp_Object object;
8096{ 8095{
8097 if (NILP (object) 8096 if (NILP (object)
8098 || CODING_SYSTEM_ID (object) >= 0) 8097 || CODING_SYSTEM_ID (object) >= 0)
@@ -8106,8 +8105,7 @@ about coding-system objects. */)
8106DEFUN ("read-non-nil-coding-system", Fread_non_nil_coding_system, 8105DEFUN ("read-non-nil-coding-system", Fread_non_nil_coding_system,
8107 Sread_non_nil_coding_system, 1, 1, 0, 8106 Sread_non_nil_coding_system, 1, 1, 0,
8108 doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. */) 8107 doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. */)
8109 (prompt) 8108 (Lisp_Object prompt)
8110 Lisp_Object prompt;
8111{ 8109{
8112 Lisp_Object val; 8110 Lisp_Object val;
8113 do 8111 do
@@ -8124,8 +8122,7 @@ DEFUN ("read-coding-system", Fread_coding_system, Sread_coding_system, 1, 2, 0,
8124If the user enters null input, return second argument DEFAULT-CODING-SYSTEM. 8122If the user enters null input, return second argument DEFAULT-CODING-SYSTEM.
8125Ignores case when completing coding systems (all Emacs coding systems 8123Ignores case when completing coding systems (all Emacs coding systems
8126are lower-case). */) 8124are lower-case). */)
8127 (prompt, default_coding_system) 8125 (Lisp_Object prompt, Lisp_Object default_coding_system)
8128 Lisp_Object prompt, default_coding_system;
8129{ 8126{
8130 Lisp_Object val; 8127 Lisp_Object val;
8131 int count = SPECPDL_INDEX (); 8128 int count = SPECPDL_INDEX ();
@@ -8146,8 +8143,7 @@ DEFUN ("check-coding-system", Fcheck_coding_system, Scheck_coding_system,
8146If valid, return CODING-SYSTEM, else signal a `coding-system-error' error. 8143If valid, return CODING-SYSTEM, else signal a `coding-system-error' error.
8147It is valid if it is nil or a symbol defined as a coding system by the 8144It is valid if it is nil or a symbol defined as a coding system by the
8148function `define-coding-system'. */) 8145function `define-coding-system'. */)
8149 (coding_system) 8146 (Lisp_Object coding_system)
8150 Lisp_Object coding_system;
8151{ 8147{
8152 Lisp_Object define_form; 8148 Lisp_Object define_form;
8153 8149
@@ -8499,8 +8495,7 @@ format.
8499 8495
8500If optional argument HIGHEST is non-nil, return the coding system of 8496If optional argument HIGHEST is non-nil, return the coding system of
8501highest priority. */) 8497highest priority. */)
8502 (start, end, highest) 8498 (Lisp_Object start, Lisp_Object end, Lisp_Object highest)
8503 Lisp_Object start, end, highest;
8504{ 8499{
8505 int from, to; 8500 int from, to;
8506 int from_byte, to_byte; 8501 int from_byte, to_byte;
@@ -8538,8 +8533,7 @@ format.
8538 8533
8539If optional argument HIGHEST is non-nil, return the coding system of 8534If optional argument HIGHEST is non-nil, return the coding system of
8540highest priority. */) 8535highest priority. */)
8541 (string, highest) 8536 (Lisp_Object string, Lisp_Object highest)
8542 Lisp_Object string, highest;
8543{ 8537{
8544 CHECK_STRING (string); 8538 CHECK_STRING (string);
8545 8539
@@ -8581,8 +8575,7 @@ DEFUN ("find-coding-systems-region-internal",
8581 Ffind_coding_systems_region_internal, 8575 Ffind_coding_systems_region_internal,
8582 Sfind_coding_systems_region_internal, 2, 3, 0, 8576 Sfind_coding_systems_region_internal, 2, 3, 0,
8583 doc: /* Internal use only. */) 8577 doc: /* Internal use only. */)
8584 (start, end, exclude) 8578 (Lisp_Object start, Lisp_Object end, Lisp_Object exclude)
8585 Lisp_Object start, end, exclude;
8586{ 8579{
8587 Lisp_Object coding_attrs_list, safe_codings; 8580 Lisp_Object coding_attrs_list, safe_codings;
8588 EMACS_INT start_byte, end_byte; 8581 EMACS_INT start_byte, end_byte;
@@ -8715,8 +8708,7 @@ list of positions.
8715If optional 5th argument STRING is non-nil, it is a string to search 8708If optional 5th argument STRING is non-nil, it is a string to search
8716for un-encodable characters. In that case, START and END are indexes 8709for un-encodable characters. In that case, START and END are indexes
8717to the string. */) 8710to the string. */)
8718 (start, end, coding_system, count, string) 8711 (Lisp_Object start, Lisp_Object end, Lisp_Object coding_system, Lisp_Object count, Lisp_Object string)
8719 Lisp_Object start, end, coding_system, count, string;
8720{ 8712{
8721 int n; 8713 int n;
8722 struct coding_system coding; 8714 struct coding_system coding;
@@ -8831,8 +8823,7 @@ buffer positions. END is ignored.
8831 8823
8832If the current buffer (or START if it is a string) is unibyte, the value 8824If the current buffer (or START if it is a string) is unibyte, the value
8833is nil. */) 8825is nil. */)
8834 (start, end, coding_system_list) 8826 (Lisp_Object start, Lisp_Object end, Lisp_Object coding_system_list)
8835 Lisp_Object start, end, coding_system_list;
8836{ 8827{
8837 Lisp_Object list; 8828 Lisp_Object list;
8838 EMACS_INT start_byte, end_byte; 8829 EMACS_INT start_byte, end_byte;
@@ -8998,8 +8989,7 @@ If DESTINATION is t, the decoded text is returned.
8998This function sets `last-coding-system-used' to the precise coding system 8989This function sets `last-coding-system-used' to the precise coding system
8999used (which may be different from CODING-SYSTEM if CODING-SYSTEM is 8990used (which may be different from CODING-SYSTEM if CODING-SYSTEM is
9000not fully specified.) */) 8991not fully specified.) */)
9001 (start, end, coding_system, destination) 8992 (Lisp_Object start, Lisp_Object end, Lisp_Object coding_system, Lisp_Object destination)
9002 Lisp_Object start, end, coding_system, destination;
9003{ 8993{
9004 return code_convert_region (start, end, coding_system, destination, 0, 0); 8994 return code_convert_region (start, end, coding_system, destination, 0, 0);
9005} 8995}
@@ -9021,8 +9011,7 @@ If DESTINATION is t, the encoded text is returned.
9021This function sets `last-coding-system-used' to the precise coding system 9011This function sets `last-coding-system-used' to the precise coding system
9022used (which may be different from CODING-SYSTEM if CODING-SYSTEM is 9012used (which may be different from CODING-SYSTEM if CODING-SYSTEM is
9023not fully specified.) */) 9013not fully specified.) */)
9024 (start, end, coding_system, destination) 9014 (Lisp_Object start, Lisp_Object end, Lisp_Object coding_system, Lisp_Object destination)
9025 Lisp_Object start, end, coding_system, destination;
9026{ 9015{
9027 return code_convert_region (start, end, coding_system, destination, 1, 0); 9016 return code_convert_region (start, end, coding_system, destination, 1, 0);
9028} 9017}
@@ -9099,8 +9088,7 @@ case, the return value is the length of the decoded text.
9099This function sets `last-coding-system-used' to the precise coding system 9088This function sets `last-coding-system-used' to the precise coding system
9100used (which may be different from CODING-SYSTEM if CODING-SYSTEM is 9089used (which may be different from CODING-SYSTEM if CODING-SYSTEM is
9101not fully specified.) */) 9090not fully specified.) */)
9102 (string, coding_system, nocopy, buffer) 9091 (Lisp_Object string, Lisp_Object coding_system, Lisp_Object nocopy, Lisp_Object buffer)
9103 Lisp_Object string, coding_system, nocopy, buffer;
9104{ 9092{
9105 return code_convert_string (string, coding_system, buffer, 9093 return code_convert_string (string, coding_system, buffer,
9106 0, ! NILP (nocopy), 0); 9094 0, ! NILP (nocopy), 0);
@@ -9120,8 +9108,7 @@ case, the return value is the length of the encoded text.
9120This function sets `last-coding-system-used' to the precise coding system 9108This function sets `last-coding-system-used' to the precise coding system
9121used (which may be different from CODING-SYSTEM if CODING-SYSTEM is 9109used (which may be different from CODING-SYSTEM if CODING-SYSTEM is
9122not fully specified.) */) 9110not fully specified.) */)
9123 (string, coding_system, nocopy, buffer) 9111 (Lisp_Object string, Lisp_Object coding_system, Lisp_Object nocopy, Lisp_Object buffer)
9124 Lisp_Object string, coding_system, nocopy, buffer;
9125{ 9112{
9126 return code_convert_string (string, coding_system, buffer, 9113 return code_convert_string (string, coding_system, buffer,
9127 1, ! NILP (nocopy), 1); 9114 1, ! NILP (nocopy), 1);
@@ -9131,8 +9118,7 @@ not fully specified.) */)
9131DEFUN ("decode-sjis-char", Fdecode_sjis_char, Sdecode_sjis_char, 1, 1, 0, 9118DEFUN ("decode-sjis-char", Fdecode_sjis_char, Sdecode_sjis_char, 1, 1, 0,
9132 doc: /* Decode a Japanese character which has CODE in shift_jis encoding. 9119 doc: /* Decode a Japanese character which has CODE in shift_jis encoding.
9133Return the corresponding character. */) 9120Return the corresponding character. */)
9134 (code) 9121 (Lisp_Object code)
9135 Lisp_Object code;
9136{ 9122{
9137 Lisp_Object spec, attrs, val; 9123 Lisp_Object spec, attrs, val;
9138 struct charset *charset_roman, *charset_kanji, *charset_kana, *charset; 9124 struct charset *charset_roman, *charset_kanji, *charset_kana, *charset;
@@ -9179,8 +9165,7 @@ Return the corresponding character. */)
9179DEFUN ("encode-sjis-char", Fencode_sjis_char, Sencode_sjis_char, 1, 1, 0, 9165DEFUN ("encode-sjis-char", Fencode_sjis_char, Sencode_sjis_char, 1, 1, 0,
9180 doc: /* Encode a Japanese character CH to shift_jis encoding. 9166 doc: /* Encode a Japanese character CH to shift_jis encoding.
9181Return the corresponding code in SJIS. */) 9167Return the corresponding code in SJIS. */)
9182 (ch) 9168 (Lisp_Object ch)
9183 Lisp_Object ch;
9184{ 9169{
9185 Lisp_Object spec, attrs, charset_list; 9170 Lisp_Object spec, attrs, charset_list;
9186 int c; 9171 int c;
@@ -9208,8 +9193,7 @@ Return the corresponding code in SJIS. */)
9208DEFUN ("decode-big5-char", Fdecode_big5_char, Sdecode_big5_char, 1, 1, 0, 9193DEFUN ("decode-big5-char", Fdecode_big5_char, Sdecode_big5_char, 1, 1, 0,
9209 doc: /* Decode a Big5 character which has CODE in BIG5 coding system. 9194 doc: /* Decode a Big5 character which has CODE in BIG5 coding system.
9210Return the corresponding character. */) 9195Return the corresponding character. */)
9211 (code) 9196 (Lisp_Object code)
9212 Lisp_Object code;
9213{ 9197{
9214 Lisp_Object spec, attrs, val; 9198 Lisp_Object spec, attrs, val;
9215 struct charset *charset_roman, *charset_big5, *charset; 9199 struct charset *charset_roman, *charset_big5, *charset;
@@ -9247,8 +9231,7 @@ Return the corresponding character. */)
9247DEFUN ("encode-big5-char", Fencode_big5_char, Sencode_big5_char, 1, 1, 0, 9231DEFUN ("encode-big5-char", Fencode_big5_char, Sencode_big5_char, 1, 1, 0,
9248 doc: /* Encode the Big5 character CH to BIG5 coding system. 9232 doc: /* Encode the Big5 character CH to BIG5 coding system.
9249Return the corresponding character code in Big5. */) 9233Return the corresponding character code in Big5. */)
9250 (ch) 9234 (Lisp_Object ch)
9251 Lisp_Object ch;
9252{ 9235{
9253 Lisp_Object spec, attrs, charset_list; 9236 Lisp_Object spec, attrs, charset_list;
9254 struct charset *charset; 9237 struct charset *charset;
@@ -9275,9 +9258,7 @@ Return the corresponding character code in Big5. */)
9275DEFUN ("set-terminal-coding-system-internal", Fset_terminal_coding_system_internal, 9258DEFUN ("set-terminal-coding-system-internal", Fset_terminal_coding_system_internal,
9276 Sset_terminal_coding_system_internal, 1, 2, 0, 9259 Sset_terminal_coding_system_internal, 1, 2, 0,
9277 doc: /* Internal use only. */) 9260 doc: /* Internal use only. */)
9278 (coding_system, terminal) 9261 (Lisp_Object coding_system, Lisp_Object terminal)
9279 Lisp_Object coding_system;
9280 Lisp_Object terminal;
9281{ 9262{
9282 struct coding_system *terminal_coding = TERMINAL_TERMINAL_CODING (get_terminal (terminal, 1)); 9263 struct coding_system *terminal_coding = TERMINAL_TERMINAL_CODING (get_terminal (terminal, 1));
9283 CHECK_SYMBOL (coding_system); 9264 CHECK_SYMBOL (coding_system);
@@ -9295,8 +9276,7 @@ DEFUN ("set-safe-terminal-coding-system-internal",
9295 Fset_safe_terminal_coding_system_internal, 9276 Fset_safe_terminal_coding_system_internal,
9296 Sset_safe_terminal_coding_system_internal, 1, 1, 0, 9277 Sset_safe_terminal_coding_system_internal, 1, 1, 0,
9297 doc: /* Internal use only. */) 9278 doc: /* Internal use only. */)
9298 (coding_system) 9279 (Lisp_Object coding_system)
9299 Lisp_Object coding_system;
9300{ 9280{
9301 CHECK_SYMBOL (coding_system); 9281 CHECK_SYMBOL (coding_system);
9302 setup_coding_system (Fcheck_coding_system (coding_system), 9282 setup_coding_system (Fcheck_coding_system (coding_system),
@@ -9313,8 +9293,7 @@ DEFUN ("terminal-coding-system", Fterminal_coding_system,
9313 doc: /* Return coding system specified for terminal output on the given terminal. 9293 doc: /* Return coding system specified for terminal output on the given terminal.
9314TERMINAL may be a terminal object, a frame, or nil for the selected 9294TERMINAL may be a terminal object, a frame, or nil for the selected
9315frame's terminal device. */) 9295frame's terminal device. */)
9316 (terminal) 9296 (Lisp_Object terminal)
9317 Lisp_Object terminal;
9318{ 9297{
9319 struct coding_system *terminal_coding 9298 struct coding_system *terminal_coding
9320 = TERMINAL_TERMINAL_CODING (get_terminal (terminal, 1)); 9299 = TERMINAL_TERMINAL_CODING (get_terminal (terminal, 1));
@@ -9327,9 +9306,7 @@ frame's terminal device. */)
9327DEFUN ("set-keyboard-coding-system-internal", Fset_keyboard_coding_system_internal, 9306DEFUN ("set-keyboard-coding-system-internal", Fset_keyboard_coding_system_internal,
9328 Sset_keyboard_coding_system_internal, 1, 2, 0, 9307 Sset_keyboard_coding_system_internal, 1, 2, 0,
9329 doc: /* Internal use only. */) 9308 doc: /* Internal use only. */)
9330 (coding_system, terminal) 9309 (Lisp_Object coding_system, Lisp_Object terminal)
9331 Lisp_Object coding_system;
9332 Lisp_Object terminal;
9333{ 9310{
9334 struct terminal *t = get_terminal (terminal, 1); 9311 struct terminal *t = get_terminal (terminal, 1);
9335 CHECK_SYMBOL (coding_system); 9312 CHECK_SYMBOL (coding_system);
@@ -9347,8 +9324,7 @@ DEFUN ("set-keyboard-coding-system-internal", Fset_keyboard_coding_system_intern
9347DEFUN ("keyboard-coding-system", 9324DEFUN ("keyboard-coding-system",
9348 Fkeyboard_coding_system, Skeyboard_coding_system, 0, 1, 0, 9325 Fkeyboard_coding_system, Skeyboard_coding_system, 0, 1, 0,
9349 doc: /* Return coding system specified for decoding keyboard input. */) 9326 doc: /* Return coding system specified for decoding keyboard input. */)
9350 (terminal) 9327 (Lisp_Object terminal)
9351 Lisp_Object terminal;
9352{ 9328{
9353 return CODING_ID_NAME (TERMINAL_KEYBOARD_CODING 9329 return CODING_ID_NAME (TERMINAL_KEYBOARD_CODING
9354 (get_terminal (terminal, 1))->id); 9330 (get_terminal (terminal, 1))->id);
@@ -9396,9 +9372,7 @@ function to call for FILENAME, that function should examine the
9396contents of BUFFER instead of reading the file. 9372contents of BUFFER instead of reading the file.
9397 9373
9398usage: (find-operation-coding-system OPERATION ARGUMENTS...) */) 9374usage: (find-operation-coding-system OPERATION ARGUMENTS...) */)
9399 (nargs, args) 9375 (int nargs, Lisp_Object *args)
9400 int nargs;
9401 Lisp_Object *args;
9402{ 9376{
9403 Lisp_Object operation, target_idx, target, val; 9377 Lisp_Object operation, target_idx, target, val;
9404 register Lisp_Object chain; 9378 register Lisp_Object chain;
@@ -9474,9 +9448,7 @@ If multiple coding systems belong to the same category,
9474all but the first one are ignored. 9448all but the first one are ignored.
9475 9449
9476usage: (set-coding-system-priority &rest coding-systems) */) 9450usage: (set-coding-system-priority &rest coding-systems) */)
9477 (nargs, args) 9451 (int nargs, Lisp_Object *args)
9478 int nargs;
9479 Lisp_Object *args;
9480{ 9452{
9481 int i, j; 9453 int i, j;
9482 int changed[coding_category_max]; 9454 int changed[coding_category_max];
@@ -9536,8 +9508,7 @@ The list contains a subset of coding systems; i.e. coding systems
9536assigned to each coding category (see `coding-category-list'). 9508assigned to each coding category (see `coding-category-list').
9537 9509
9538HIGHESTP non-nil means just return the highest priority one. */) 9510HIGHESTP non-nil means just return the highest priority one. */)
9539 (highestp) 9511 (Lisp_Object highestp)
9540 Lisp_Object highestp;
9541{ 9512{
9542 int i; 9513 int i;
9543 Lisp_Object val; 9514 Lisp_Object val;
@@ -9583,9 +9554,7 @@ DEFUN ("define-coding-system-internal", Fdefine_coding_system_internal,
9583 Sdefine_coding_system_internal, coding_arg_max, MANY, 0, 9554 Sdefine_coding_system_internal, coding_arg_max, MANY, 0,
9584 doc: /* For internal use only. 9555 doc: /* For internal use only.
9585usage: (define-coding-system-internal ...) */) 9556usage: (define-coding-system-internal ...) */)
9586 (nargs, args) 9557 (int nargs, Lisp_Object *args)
9587 int nargs;
9588 Lisp_Object *args;
9589{ 9558{
9590 Lisp_Object name; 9559 Lisp_Object name;
9591 Lisp_Object spec_vec; /* [ ATTRS ALIASE EOL_TYPE ] */ 9560 Lisp_Object spec_vec; /* [ ATTRS ALIASE EOL_TYPE ] */
@@ -10114,8 +10083,7 @@ usage: (define-coding-system-internal ...) */)
10114DEFUN ("coding-system-put", Fcoding_system_put, Scoding_system_put, 10083DEFUN ("coding-system-put", Fcoding_system_put, Scoding_system_put,
10115 3, 3, 0, 10084 3, 3, 0,
10116 doc: /* Change value in CODING-SYSTEM's property list PROP to VAL. */) 10085 doc: /* Change value in CODING-SYSTEM's property list PROP to VAL. */)
10117 (coding_system, prop, val) 10086 (Lisp_Object coding_system, Lisp_Object prop, Lisp_Object val)
10118 Lisp_Object coding_system, prop, val;
10119{ 10087{
10120 Lisp_Object spec, attrs; 10088 Lisp_Object spec, attrs;
10121 10089
@@ -10171,8 +10139,7 @@ DEFUN ("coding-system-put", Fcoding_system_put, Scoding_system_put,
10171DEFUN ("define-coding-system-alias", Fdefine_coding_system_alias, 10139DEFUN ("define-coding-system-alias", Fdefine_coding_system_alias,
10172 Sdefine_coding_system_alias, 2, 2, 0, 10140 Sdefine_coding_system_alias, 2, 2, 0,
10173 doc: /* Define ALIAS as an alias for CODING-SYSTEM. */) 10141 doc: /* Define ALIAS as an alias for CODING-SYSTEM. */)
10174 (alias, coding_system) 10142 (Lisp_Object alias, Lisp_Object coding_system)
10175 Lisp_Object alias, coding_system;
10176{ 10143{
10177 Lisp_Object spec, aliases, eol_type, val; 10144 Lisp_Object spec, aliases, eol_type, val;
10178 10145
@@ -10212,8 +10179,7 @@ DEFUN ("coding-system-base", Fcoding_system_base, Scoding_system_base,
10212 1, 1, 0, 10179 1, 1, 0,
10213 doc: /* Return the base of CODING-SYSTEM. 10180 doc: /* Return the base of CODING-SYSTEM.
10214Any alias or subsidiary coding system is not a base coding system. */) 10181Any alias or subsidiary coding system is not a base coding system. */)
10215 (coding_system) 10182 (Lisp_Object coding_system)
10216 Lisp_Object coding_system;
10217{ 10183{
10218 Lisp_Object spec, attrs; 10184 Lisp_Object spec, attrs;
10219 10185
@@ -10227,8 +10193,7 @@ Any alias or subsidiary coding system is not a base coding system. */)
10227DEFUN ("coding-system-plist", Fcoding_system_plist, Scoding_system_plist, 10193DEFUN ("coding-system-plist", Fcoding_system_plist, Scoding_system_plist,
10228 1, 1, 0, 10194 1, 1, 0,
10229 doc: "Return the property list of CODING-SYSTEM.") 10195 doc: "Return the property list of CODING-SYSTEM.")
10230 (coding_system) 10196 (Lisp_Object coding_system)
10231 Lisp_Object coding_system;
10232{ 10197{
10233 Lisp_Object spec, attrs; 10198 Lisp_Object spec, attrs;
10234 10199
@@ -10243,8 +10208,7 @@ DEFUN ("coding-system-plist", Fcoding_system_plist, Scoding_system_plist,
10243DEFUN ("coding-system-aliases", Fcoding_system_aliases, Scoding_system_aliases, 10208DEFUN ("coding-system-aliases", Fcoding_system_aliases, Scoding_system_aliases,
10244 1, 1, 0, 10209 1, 1, 0,
10245 doc: /* Return the list of aliases of CODING-SYSTEM. */) 10210 doc: /* Return the list of aliases of CODING-SYSTEM. */)
10246 (coding_system) 10211 (Lisp_Object coding_system)
10247 Lisp_Object coding_system;
10248{ 10212{
10249 Lisp_Object spec; 10213 Lisp_Object spec;
10250 10214
@@ -10265,8 +10229,7 @@ and CR respectively.
10265A vector value indicates that a format of end-of-line should be 10229A vector value indicates that a format of end-of-line should be
10266detected automatically. Nth element of the vector is the subsidiary 10230detected automatically. Nth element of the vector is the subsidiary
10267coding system whose eol-type is N. */) 10231coding system whose eol-type is N. */)
10268 (coding_system) 10232 (Lisp_Object coding_system)
10269 Lisp_Object coding_system;
10270{ 10233{
10271 Lisp_Object spec, eol_type; 10234 Lisp_Object spec, eol_type;
10272 int n; 10235 int n;
diff --git a/src/composite.c b/src/composite.c
index f7b0211ecb8..4568698619f 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -1758,8 +1758,7 @@ where
1758 1758
1759If GLYPH is nil, the remaining elements of the glyph-string vector 1759If GLYPH is nil, the remaining elements of the glyph-string vector
1760should be ignored. */) 1760should be ignored. */)
1761 (from, to, font_object, string) 1761 (Lisp_Object from, Lisp_Object to, Lisp_Object font_object, Lisp_Object string)
1762 Lisp_Object font_object, from, to, string;
1763{ 1762{
1764 Lisp_Object gstring, header; 1763 Lisp_Object gstring, header;
1765 EMACS_INT frompos, topos; 1764 EMACS_INT frompos, topos;
@@ -1804,8 +1803,7 @@ DEFUN ("compose-region-internal", Fcompose_region_internal,
1804Compose text in the region between START and END. 1803Compose text in the region between START and END.
1805Optional 3rd and 4th arguments are COMPONENTS and MODIFICATION-FUNC 1804Optional 3rd and 4th arguments are COMPONENTS and MODIFICATION-FUNC
1806for the composition. See `compose-region' for more details. */) 1805for the composition. See `compose-region' for more details. */)
1807 (start, end, components, modification_func) 1806 (Lisp_Object start, Lisp_Object end, Lisp_Object components, Lisp_Object modification_func)
1808 Lisp_Object start, end, components, modification_func;
1809{ 1807{
1810 validate_region (&start, &end); 1808 validate_region (&start, &end);
1811 if (!NILP (components) 1809 if (!NILP (components)
@@ -1825,8 +1823,7 @@ DEFUN ("compose-string-internal", Fcompose_string_internal,
1825Compose text between indices START and END of STRING. 1823Compose text between indices START and END of STRING.
1826Optional 4th and 5th arguments are COMPONENTS and MODIFICATION-FUNC 1824Optional 4th and 5th arguments are COMPONENTS and MODIFICATION-FUNC
1827for the composition. See `compose-string' for more details. */) 1825for the composition. See `compose-string' for more details. */)
1828 (string, start, end, components, modification_func) 1826 (Lisp_Object string, Lisp_Object start, Lisp_Object end, Lisp_Object components, Lisp_Object modification_func)
1829 Lisp_Object string, start, end, components, modification_func;
1830{ 1827{
1831 CHECK_STRING (string); 1828 CHECK_STRING (string);
1832 CHECK_NUMBER (start); 1829 CHECK_NUMBER (start);
@@ -1847,8 +1844,7 @@ DEFUN ("find-composition-internal", Ffind_composition_internal,
1847 1844
1848Return information about composition at or nearest to position POS. 1845Return information about composition at or nearest to position POS.
1849See `find-composition' for more details. */) 1846See `find-composition' for more details. */)
1850 (pos, limit, string, detail_p) 1847 (Lisp_Object pos, Lisp_Object limit, Lisp_Object string, Lisp_Object detail_p)
1851 Lisp_Object pos, limit, string, detail_p;
1852{ 1848{
1853 Lisp_Object prop, tail, gstring; 1849 Lisp_Object prop, tail, gstring;
1854 EMACS_INT start, end, from, to; 1850 EMACS_INT start, end, from, to;
diff --git a/src/data.c b/src/data.c
index cde6e9538b9..152a888da5d 100644
--- a/src/data.c
+++ b/src/data.c
@@ -154,8 +154,7 @@ sign_extend_lisp_int (EMACS_INT num)
154 154
155DEFUN ("eq", Feq, Seq, 2, 2, 0, 155DEFUN ("eq", Feq, Seq, 2, 2, 0,
156 doc: /* Return t if the two args are the same Lisp object. */) 156 doc: /* Return t if the two args are the same Lisp object. */)
157 (obj1, obj2) 157 (Lisp_Object obj1, Lisp_Object obj2)
158 Lisp_Object obj1, obj2;
159{ 158{
160 if (EQ (obj1, obj2)) 159 if (EQ (obj1, obj2))
161 return Qt; 160 return Qt;
@@ -164,8 +163,7 @@ DEFUN ("eq", Feq, Seq, 2, 2, 0,
164 163
165DEFUN ("null", Fnull, Snull, 1, 1, 0, 164DEFUN ("null", Fnull, Snull, 1, 1, 0,
166 doc: /* Return t if OBJECT is nil. */) 165 doc: /* Return t if OBJECT is nil. */)
167 (object) 166 (Lisp_Object object)
168 Lisp_Object object;
169{ 167{
170 if (NILP (object)) 168 if (NILP (object))
171 return Qt; 169 return Qt;
@@ -176,8 +174,7 @@ DEFUN ("type-of", Ftype_of, Stype_of, 1, 1, 0,
176 doc: /* Return a symbol representing the type of OBJECT. 174 doc: /* Return a symbol representing the type of OBJECT.
177The symbol returned names the object's basic type; 175The symbol returned names the object's basic type;
178for example, (type-of 1) returns `integer'. */) 176for example, (type-of 1) returns `integer'. */)
179 (object) 177 (Lisp_Object object)
180 Lisp_Object object;
181{ 178{
182 switch (XTYPE (object)) 179 switch (XTYPE (object))
183 { 180 {
@@ -244,8 +241,7 @@ for example, (type-of 1) returns `integer'. */)
244 241
245DEFUN ("consp", Fconsp, Sconsp, 1, 1, 0, 242DEFUN ("consp", Fconsp, Sconsp, 1, 1, 0,
246 doc: /* Return t if OBJECT is a cons cell. */) 243 doc: /* Return t if OBJECT is a cons cell. */)
247 (object) 244 (Lisp_Object object)
248 Lisp_Object object;
249{ 245{
250 if (CONSP (object)) 246 if (CONSP (object))
251 return Qt; 247 return Qt;
@@ -254,8 +250,7 @@ DEFUN ("consp", Fconsp, Sconsp, 1, 1, 0,
254 250
255DEFUN ("atom", Fatom, Satom, 1, 1, 0, 251DEFUN ("atom", Fatom, Satom, 1, 1, 0,
256 doc: /* Return t if OBJECT is not a cons cell. This includes nil. */) 252 doc: /* Return t if OBJECT is not a cons cell. This includes nil. */)
257 (object) 253 (Lisp_Object object)
258 Lisp_Object object;
259{ 254{
260 if (CONSP (object)) 255 if (CONSP (object))
261 return Qnil; 256 return Qnil;
@@ -265,8 +260,7 @@ DEFUN ("atom", Fatom, Satom, 1, 1, 0,
265DEFUN ("listp", Flistp, Slistp, 1, 1, 0, 260DEFUN ("listp", Flistp, Slistp, 1, 1, 0,
266 doc: /* Return t if OBJECT is a list, that is, a cons cell or nil. 261 doc: /* Return t if OBJECT is a list, that is, a cons cell or nil.
267Otherwise, return nil. */) 262Otherwise, return nil. */)
268 (object) 263 (Lisp_Object object)
269 Lisp_Object object;
270{ 264{
271 if (CONSP (object) || NILP (object)) 265 if (CONSP (object) || NILP (object))
272 return Qt; 266 return Qt;
@@ -275,8 +269,7 @@ Otherwise, return nil. */)
275 269
276DEFUN ("nlistp", Fnlistp, Snlistp, 1, 1, 0, 270DEFUN ("nlistp", Fnlistp, Snlistp, 1, 1, 0,
277 doc: /* Return t if OBJECT is not a list. Lists include nil. */) 271 doc: /* Return t if OBJECT is not a list. Lists include nil. */)
278 (object) 272 (Lisp_Object object)
279 Lisp_Object object;
280{ 273{
281 if (CONSP (object) || NILP (object)) 274 if (CONSP (object) || NILP (object))
282 return Qnil; 275 return Qnil;
@@ -285,8 +278,7 @@ DEFUN ("nlistp", Fnlistp, Snlistp, 1, 1, 0,
285 278
286DEFUN ("symbolp", Fsymbolp, Ssymbolp, 1, 1, 0, 279DEFUN ("symbolp", Fsymbolp, Ssymbolp, 1, 1, 0,
287 doc: /* Return t if OBJECT is a symbol. */) 280 doc: /* Return t if OBJECT is a symbol. */)
288 (object) 281 (Lisp_Object object)
289 Lisp_Object object;
290{ 282{
291 if (SYMBOLP (object)) 283 if (SYMBOLP (object))
292 return Qt; 284 return Qt;
@@ -299,8 +291,7 @@ DEFUN ("keywordp", Fkeywordp, Skeywordp, 1, 1, 0,
299 doc: /* Return t if OBJECT is a keyword. 291 doc: /* Return t if OBJECT is a keyword.
300This means that it is a symbol with a print name beginning with `:' 292This means that it is a symbol with a print name beginning with `:'
301interned in the initial obarray. */) 293interned in the initial obarray. */)
302 (object) 294 (Lisp_Object object)
303 Lisp_Object object;
304{ 295{
305 if (SYMBOLP (object) 296 if (SYMBOLP (object)
306 && SREF (SYMBOL_NAME (object), 0) == ':' 297 && SREF (SYMBOL_NAME (object), 0) == ':'
@@ -311,8 +302,7 @@ interned in the initial obarray. */)
311 302
312DEFUN ("vectorp", Fvectorp, Svectorp, 1, 1, 0, 303DEFUN ("vectorp", Fvectorp, Svectorp, 1, 1, 0,
313 doc: /* Return t if OBJECT is a vector. */) 304 doc: /* Return t if OBJECT is a vector. */)
314 (object) 305 (Lisp_Object object)
315 Lisp_Object object;
316{ 306{
317 if (VECTORP (object)) 307 if (VECTORP (object))
318 return Qt; 308 return Qt;
@@ -321,8 +311,7 @@ DEFUN ("vectorp", Fvectorp, Svectorp, 1, 1, 0,
321 311
322DEFUN ("stringp", Fstringp, Sstringp, 1, 1, 0, 312DEFUN ("stringp", Fstringp, Sstringp, 1, 1, 0,
323 doc: /* Return t if OBJECT is a string. */) 313 doc: /* Return t if OBJECT is a string. */)
324 (object) 314 (Lisp_Object object)
325 Lisp_Object object;
326{ 315{
327 if (STRINGP (object)) 316 if (STRINGP (object))
328 return Qt; 317 return Qt;
@@ -332,8 +321,7 @@ DEFUN ("stringp", Fstringp, Sstringp, 1, 1, 0,
332DEFUN ("multibyte-string-p", Fmultibyte_string_p, Smultibyte_string_p, 321DEFUN ("multibyte-string-p", Fmultibyte_string_p, Smultibyte_string_p,
333 1, 1, 0, 322 1, 1, 0,
334 doc: /* Return t if OBJECT is a multibyte string. */) 323 doc: /* Return t if OBJECT is a multibyte string. */)
335 (object) 324 (Lisp_Object object)
336 Lisp_Object object;
337{ 325{
338 if (STRINGP (object) && STRING_MULTIBYTE (object)) 326 if (STRINGP (object) && STRING_MULTIBYTE (object))
339 return Qt; 327 return Qt;
@@ -342,8 +330,7 @@ DEFUN ("multibyte-string-p", Fmultibyte_string_p, Smultibyte_string_p,
342 330
343DEFUN ("char-table-p", Fchar_table_p, Schar_table_p, 1, 1, 0, 331DEFUN ("char-table-p", Fchar_table_p, Schar_table_p, 1, 1, 0,
344 doc: /* Return t if OBJECT is a char-table. */) 332 doc: /* Return t if OBJECT is a char-table. */)
345 (object) 333 (Lisp_Object object)
346 Lisp_Object object;
347{ 334{
348 if (CHAR_TABLE_P (object)) 335 if (CHAR_TABLE_P (object))
349 return Qt; 336 return Qt;
@@ -353,8 +340,7 @@ DEFUN ("char-table-p", Fchar_table_p, Schar_table_p, 1, 1, 0,
353DEFUN ("vector-or-char-table-p", Fvector_or_char_table_p, 340DEFUN ("vector-or-char-table-p", Fvector_or_char_table_p,
354 Svector_or_char_table_p, 1, 1, 0, 341 Svector_or_char_table_p, 1, 1, 0,
355 doc: /* Return t if OBJECT is a char-table or vector. */) 342 doc: /* Return t if OBJECT is a char-table or vector. */)
356 (object) 343 (Lisp_Object object)
357 Lisp_Object object;
358{ 344{
359 if (VECTORP (object) || CHAR_TABLE_P (object)) 345 if (VECTORP (object) || CHAR_TABLE_P (object))
360 return Qt; 346 return Qt;
@@ -363,8 +349,7 @@ DEFUN ("vector-or-char-table-p", Fvector_or_char_table_p,
363 349
364DEFUN ("bool-vector-p", Fbool_vector_p, Sbool_vector_p, 1, 1, 0, 350DEFUN ("bool-vector-p", Fbool_vector_p, Sbool_vector_p, 1, 1, 0,
365 doc: /* Return t if OBJECT is a bool-vector. */) 351 doc: /* Return t if OBJECT is a bool-vector. */)
366 (object) 352 (Lisp_Object object)
367 Lisp_Object object;
368{ 353{
369 if (BOOL_VECTOR_P (object)) 354 if (BOOL_VECTOR_P (object))
370 return Qt; 355 return Qt;
@@ -373,8 +358,7 @@ DEFUN ("bool-vector-p", Fbool_vector_p, Sbool_vector_p, 1, 1, 0,
373 358
374DEFUN ("arrayp", Farrayp, Sarrayp, 1, 1, 0, 359DEFUN ("arrayp", Farrayp, Sarrayp, 1, 1, 0,
375 doc: /* Return t if OBJECT is an array (string or vector). */) 360 doc: /* Return t if OBJECT is an array (string or vector). */)
376 (object) 361 (Lisp_Object object)
377 Lisp_Object object;
378{ 362{
379 if (ARRAYP (object)) 363 if (ARRAYP (object))
380 return Qt; 364 return Qt;
@@ -383,8 +367,7 @@ DEFUN ("arrayp", Farrayp, Sarrayp, 1, 1, 0,
383 367
384DEFUN ("sequencep", Fsequencep, Ssequencep, 1, 1, 0, 368DEFUN ("sequencep", Fsequencep, Ssequencep, 1, 1, 0,
385 doc: /* Return t if OBJECT is a sequence (list or array). */) 369 doc: /* Return t if OBJECT is a sequence (list or array). */)
386 (object) 370 (register Lisp_Object object)
387 register Lisp_Object object;
388{ 371{
389 if (CONSP (object) || NILP (object) || ARRAYP (object)) 372 if (CONSP (object) || NILP (object) || ARRAYP (object))
390 return Qt; 373 return Qt;
@@ -393,8 +376,7 @@ DEFUN ("sequencep", Fsequencep, Ssequencep, 1, 1, 0,
393 376
394DEFUN ("bufferp", Fbufferp, Sbufferp, 1, 1, 0, 377DEFUN ("bufferp", Fbufferp, Sbufferp, 1, 1, 0,
395 doc: /* Return t if OBJECT is an editor buffer. */) 378 doc: /* Return t if OBJECT is an editor buffer. */)
396 (object) 379 (Lisp_Object object)
397 Lisp_Object object;
398{ 380{
399 if (BUFFERP (object)) 381 if (BUFFERP (object))
400 return Qt; 382 return Qt;
@@ -403,8 +385,7 @@ DEFUN ("bufferp", Fbufferp, Sbufferp, 1, 1, 0,
403 385
404DEFUN ("markerp", Fmarkerp, Smarkerp, 1, 1, 0, 386DEFUN ("markerp", Fmarkerp, Smarkerp, 1, 1, 0,
405 doc: /* Return t if OBJECT is a marker (editor pointer). */) 387 doc: /* Return t if OBJECT is a marker (editor pointer). */)
406 (object) 388 (Lisp_Object object)
407 Lisp_Object object;
408{ 389{
409 if (MARKERP (object)) 390 if (MARKERP (object))
410 return Qt; 391 return Qt;
@@ -413,8 +394,7 @@ DEFUN ("markerp", Fmarkerp, Smarkerp, 1, 1, 0,
413 394
414DEFUN ("subrp", Fsubrp, Ssubrp, 1, 1, 0, 395DEFUN ("subrp", Fsubrp, Ssubrp, 1, 1, 0,
415 doc: /* Return t if OBJECT is a built-in function. */) 396 doc: /* Return t if OBJECT is a built-in function. */)
416 (object) 397 (Lisp_Object object)
417 Lisp_Object object;
418{ 398{
419 if (SUBRP (object)) 399 if (SUBRP (object))
420 return Qt; 400 return Qt;
@@ -424,8 +404,7 @@ DEFUN ("subrp", Fsubrp, Ssubrp, 1, 1, 0,
424DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p, 404DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p,
425 1, 1, 0, 405 1, 1, 0,
426 doc: /* Return t if OBJECT is a byte-compiled function object. */) 406 doc: /* Return t if OBJECT is a byte-compiled function object. */)
427 (object) 407 (Lisp_Object object)
428 Lisp_Object object;
429{ 408{
430 if (COMPILEDP (object)) 409 if (COMPILEDP (object))
431 return Qt; 410 return Qt;
@@ -434,8 +413,7 @@ DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p,
434 413
435DEFUN ("char-or-string-p", Fchar_or_string_p, Schar_or_string_p, 1, 1, 0, 414DEFUN ("char-or-string-p", Fchar_or_string_p, Schar_or_string_p, 1, 1, 0,
436 doc: /* Return t if OBJECT is a character or a string. */) 415 doc: /* Return t if OBJECT is a character or a string. */)
437 (object) 416 (register Lisp_Object object)
438 register Lisp_Object object;
439{ 417{
440 if (CHARACTERP (object) || STRINGP (object)) 418 if (CHARACTERP (object) || STRINGP (object))
441 return Qt; 419 return Qt;
@@ -444,8 +422,7 @@ DEFUN ("char-or-string-p", Fchar_or_string_p, Schar_or_string_p, 1, 1, 0,
444 422
445DEFUN ("integerp", Fintegerp, Sintegerp, 1, 1, 0, 423DEFUN ("integerp", Fintegerp, Sintegerp, 1, 1, 0,
446 doc: /* Return t if OBJECT is an integer. */) 424 doc: /* Return t if OBJECT is an integer. */)
447 (object) 425 (Lisp_Object object)
448 Lisp_Object object;
449{ 426{
450 if (INTEGERP (object)) 427 if (INTEGERP (object))
451 return Qt; 428 return Qt;
@@ -454,8 +431,7 @@ DEFUN ("integerp", Fintegerp, Sintegerp, 1, 1, 0,
454 431
455DEFUN ("integer-or-marker-p", Finteger_or_marker_p, Sinteger_or_marker_p, 1, 1, 0, 432DEFUN ("integer-or-marker-p", Finteger_or_marker_p, Sinteger_or_marker_p, 1, 1, 0,
456 doc: /* Return t if OBJECT is an integer or a marker (editor pointer). */) 433 doc: /* Return t if OBJECT is an integer or a marker (editor pointer). */)
457 (object) 434 (register Lisp_Object object)
458 register Lisp_Object object;
459{ 435{
460 if (MARKERP (object) || INTEGERP (object)) 436 if (MARKERP (object) || INTEGERP (object))
461 return Qt; 437 return Qt;
@@ -464,8 +440,7 @@ DEFUN ("integer-or-marker-p", Finteger_or_marker_p, Sinteger_or_marker_p, 1, 1,
464 440
465DEFUN ("natnump", Fnatnump, Snatnump, 1, 1, 0, 441DEFUN ("natnump", Fnatnump, Snatnump, 1, 1, 0,
466 doc: /* Return t if OBJECT is a nonnegative integer. */) 442 doc: /* Return t if OBJECT is a nonnegative integer. */)
467 (object) 443 (Lisp_Object object)
468 Lisp_Object object;
469{ 444{
470 if (NATNUMP (object)) 445 if (NATNUMP (object))
471 return Qt; 446 return Qt;
@@ -474,8 +449,7 @@ DEFUN ("natnump", Fnatnump, Snatnump, 1, 1, 0,
474 449
475DEFUN ("numberp", Fnumberp, Snumberp, 1, 1, 0, 450DEFUN ("numberp", Fnumberp, Snumberp, 1, 1, 0,
476 doc: /* Return t if OBJECT is a number (floating point or integer). */) 451 doc: /* Return t if OBJECT is a number (floating point or integer). */)
477 (object) 452 (Lisp_Object object)
478 Lisp_Object object;
479{ 453{
480 if (NUMBERP (object)) 454 if (NUMBERP (object))
481 return Qt; 455 return Qt;
@@ -486,8 +460,7 @@ DEFUN ("numberp", Fnumberp, Snumberp, 1, 1, 0,
486DEFUN ("number-or-marker-p", Fnumber_or_marker_p, 460DEFUN ("number-or-marker-p", Fnumber_or_marker_p,
487 Snumber_or_marker_p, 1, 1, 0, 461 Snumber_or_marker_p, 1, 1, 0,
488 doc: /* Return t if OBJECT is a number or a marker. */) 462 doc: /* Return t if OBJECT is a number or a marker. */)
489 (object) 463 (Lisp_Object object)
490 Lisp_Object object;
491{ 464{
492 if (NUMBERP (object) || MARKERP (object)) 465 if (NUMBERP (object) || MARKERP (object))
493 return Qt; 466 return Qt;
@@ -496,8 +469,7 @@ DEFUN ("number-or-marker-p", Fnumber_or_marker_p,
496 469
497DEFUN ("floatp", Ffloatp, Sfloatp, 1, 1, 0, 470DEFUN ("floatp", Ffloatp, Sfloatp, 1, 1, 0,
498 doc: /* Return t if OBJECT is a floating point number. */) 471 doc: /* Return t if OBJECT is a floating point number. */)
499 (object) 472 (Lisp_Object object)
500 Lisp_Object object;
501{ 473{
502 if (FLOATP (object)) 474 if (FLOATP (object))
503 return Qt; 475 return Qt;
@@ -513,16 +485,14 @@ Error if arg is not nil and not a cons cell. See also `car-safe'.
513 485
514See Info node `(elisp)Cons Cells' for a discussion of related basic 486See Info node `(elisp)Cons Cells' for a discussion of related basic
515Lisp concepts such as car, cdr, cons cell and list. */) 487Lisp concepts such as car, cdr, cons cell and list. */)
516 (list) 488 (register Lisp_Object list)
517 register Lisp_Object list;
518{ 489{
519 return CAR (list); 490 return CAR (list);
520} 491}
521 492
522DEFUN ("car-safe", Fcar_safe, Scar_safe, 1, 1, 0, 493DEFUN ("car-safe", Fcar_safe, Scar_safe, 1, 1, 0,
523 doc: /* Return the car of OBJECT if it is a cons cell, or else nil. */) 494 doc: /* Return the car of OBJECT if it is a cons cell, or else nil. */)
524 (object) 495 (Lisp_Object object)
525 Lisp_Object object;
526{ 496{
527 return CAR_SAFE (object); 497 return CAR_SAFE (object);
528} 498}
@@ -533,24 +503,21 @@ Error if arg is not nil and not a cons cell. See also `cdr-safe'.
533 503
534See Info node `(elisp)Cons Cells' for a discussion of related basic 504See Info node `(elisp)Cons Cells' for a discussion of related basic
535Lisp concepts such as cdr, car, cons cell and list. */) 505Lisp concepts such as cdr, car, cons cell and list. */)
536 (list) 506 (register Lisp_Object list)
537 register Lisp_Object list;
538{ 507{
539 return CDR (list); 508 return CDR (list);
540} 509}
541 510
542DEFUN ("cdr-safe", Fcdr_safe, Scdr_safe, 1, 1, 0, 511DEFUN ("cdr-safe", Fcdr_safe, Scdr_safe, 1, 1, 0,
543 doc: /* Return the cdr of OBJECT if it is a cons cell, or else nil. */) 512 doc: /* Return the cdr of OBJECT if it is a cons cell, or else nil. */)
544 (object) 513 (Lisp_Object object)
545 Lisp_Object object;
546{ 514{
547 return CDR_SAFE (object); 515 return CDR_SAFE (object);
548} 516}
549 517
550DEFUN ("setcar", Fsetcar, Ssetcar, 2, 2, 0, 518DEFUN ("setcar", Fsetcar, Ssetcar, 2, 2, 0,
551 doc: /* Set the car of CELL to be NEWCAR. Returns NEWCAR. */) 519 doc: /* Set the car of CELL to be NEWCAR. Returns NEWCAR. */)
552 (cell, newcar) 520 (register Lisp_Object cell, Lisp_Object newcar)
553 register Lisp_Object cell, newcar;
554{ 521{
555 CHECK_CONS (cell); 522 CHECK_CONS (cell);
556 CHECK_IMPURE (cell); 523 CHECK_IMPURE (cell);
@@ -560,8 +527,7 @@ DEFUN ("setcar", Fsetcar, Ssetcar, 2, 2, 0,
560 527
561DEFUN ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0, 528DEFUN ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0,
562 doc: /* Set the cdr of CELL to be NEWCDR. Returns NEWCDR. */) 529 doc: /* Set the cdr of CELL to be NEWCDR. Returns NEWCDR. */)
563 (cell, newcdr) 530 (register Lisp_Object cell, Lisp_Object newcdr)
564 register Lisp_Object cell, newcdr;
565{ 531{
566 CHECK_CONS (cell); 532 CHECK_CONS (cell);
567 CHECK_IMPURE (cell); 533 CHECK_IMPURE (cell);
@@ -573,8 +539,7 @@ DEFUN ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0,
573 539
574DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0, 540DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0,
575 doc: /* Return t if SYMBOL's value is not void. */) 541 doc: /* Return t if SYMBOL's value is not void. */)
576 (symbol) 542 (register Lisp_Object symbol)
577 register Lisp_Object symbol;
578{ 543{
579 Lisp_Object valcontents; 544 Lisp_Object valcontents;
580 struct Lisp_Symbol *sym; 545 struct Lisp_Symbol *sym;
@@ -612,8 +577,7 @@ DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0,
612 577
613DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0, 578DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0,
614 doc: /* Return t if SYMBOL's function definition is not void. */) 579 doc: /* Return t if SYMBOL's function definition is not void. */)
615 (symbol) 580 (register Lisp_Object symbol)
616 register Lisp_Object symbol;
617{ 581{
618 CHECK_SYMBOL (symbol); 582 CHECK_SYMBOL (symbol);
619 return (EQ (XSYMBOL (symbol)->function, Qunbound) ? Qnil : Qt); 583 return (EQ (XSYMBOL (symbol)->function, Qunbound) ? Qnil : Qt);
@@ -622,8 +586,7 @@ DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0,
622DEFUN ("makunbound", Fmakunbound, Smakunbound, 1, 1, 0, 586DEFUN ("makunbound", Fmakunbound, Smakunbound, 1, 1, 0,
623 doc: /* Make SYMBOL's value be void. 587 doc: /* Make SYMBOL's value be void.
624Return SYMBOL. */) 588Return SYMBOL. */)
625 (symbol) 589 (register Lisp_Object symbol)
626 register Lisp_Object symbol;
627{ 590{
628 CHECK_SYMBOL (symbol); 591 CHECK_SYMBOL (symbol);
629 if (SYMBOL_CONSTANT_P (symbol)) 592 if (SYMBOL_CONSTANT_P (symbol))
@@ -635,8 +598,7 @@ Return SYMBOL. */)
635DEFUN ("fmakunbound", Ffmakunbound, Sfmakunbound, 1, 1, 0, 598DEFUN ("fmakunbound", Ffmakunbound, Sfmakunbound, 1, 1, 0,
636 doc: /* Make SYMBOL's function definition be void. 599 doc: /* Make SYMBOL's function definition be void.
637Return SYMBOL. */) 600Return SYMBOL. */)
638 (symbol) 601 (register Lisp_Object symbol)
639 register Lisp_Object symbol;
640{ 602{
641 CHECK_SYMBOL (symbol); 603 CHECK_SYMBOL (symbol);
642 if (NILP (symbol) || EQ (symbol, Qt)) 604 if (NILP (symbol) || EQ (symbol, Qt))
@@ -647,8 +609,7 @@ Return SYMBOL. */)
647 609
648DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0, 610DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0,
649 doc: /* Return SYMBOL's function definition. Error if that is void. */) 611 doc: /* Return SYMBOL's function definition. Error if that is void. */)
650 (symbol) 612 (register Lisp_Object symbol)
651 register Lisp_Object symbol;
652{ 613{
653 CHECK_SYMBOL (symbol); 614 CHECK_SYMBOL (symbol);
654 if (!EQ (XSYMBOL (symbol)->function, Qunbound)) 615 if (!EQ (XSYMBOL (symbol)->function, Qunbound))
@@ -658,8 +619,7 @@ DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0,
658 619
659DEFUN ("symbol-plist", Fsymbol_plist, Ssymbol_plist, 1, 1, 0, 620DEFUN ("symbol-plist", Fsymbol_plist, Ssymbol_plist, 1, 1, 0,
660 doc: /* Return SYMBOL's property list. */) 621 doc: /* Return SYMBOL's property list. */)
661 (symbol) 622 (register Lisp_Object symbol)
662 register Lisp_Object symbol;
663{ 623{
664 CHECK_SYMBOL (symbol); 624 CHECK_SYMBOL (symbol);
665 return XSYMBOL (symbol)->plist; 625 return XSYMBOL (symbol)->plist;
@@ -667,8 +627,7 @@ DEFUN ("symbol-plist", Fsymbol_plist, Ssymbol_plist, 1, 1, 0,
667 627
668DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0, 628DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0,
669 doc: /* Return SYMBOL's name, a string. */) 629 doc: /* Return SYMBOL's name, a string. */)
670 (symbol) 630 (register Lisp_Object symbol)
671 register Lisp_Object symbol;
672{ 631{
673 register Lisp_Object name; 632 register Lisp_Object name;
674 633
@@ -679,8 +638,7 @@ DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0,
679 638
680DEFUN ("fset", Ffset, Sfset, 2, 2, 0, 639DEFUN ("fset", Ffset, Sfset, 2, 2, 0,
681 doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. */) 640 doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. */)
682 (symbol, definition) 641 (register Lisp_Object symbol, Lisp_Object definition)
683 register Lisp_Object symbol, definition;
684{ 642{
685 register Lisp_Object function; 643 register Lisp_Object function;
686 644
@@ -714,8 +672,7 @@ Associates the function with the current load file, if any.
714The optional third argument DOCSTRING specifies the documentation string 672The optional third argument DOCSTRING specifies the documentation string
715for SYMBOL; if it is omitted or nil, SYMBOL uses the documentation string 673for SYMBOL; if it is omitted or nil, SYMBOL uses the documentation string
716determined by DEFINITION. */) 674determined by DEFINITION. */)
717 (symbol, definition, docstring) 675 (register Lisp_Object symbol, Lisp_Object definition, Lisp_Object docstring)
718 register Lisp_Object symbol, definition, docstring;
719{ 676{
720 CHECK_SYMBOL (symbol); 677 CHECK_SYMBOL (symbol);
721 if (CONSP (XSYMBOL (symbol)->function) 678 if (CONSP (XSYMBOL (symbol)->function)
@@ -730,8 +687,7 @@ determined by DEFINITION. */)
730 687
731DEFUN ("setplist", Fsetplist, Ssetplist, 2, 2, 0, 688DEFUN ("setplist", Fsetplist, Ssetplist, 2, 2, 0,
732 doc: /* Set SYMBOL's property list to NEWPLIST, and return NEWPLIST. */) 689 doc: /* Set SYMBOL's property list to NEWPLIST, and return NEWPLIST. */)
733 (symbol, newplist) 690 (register Lisp_Object symbol, Lisp_Object newplist)
734 register Lisp_Object symbol, newplist;
735{ 691{
736 CHECK_SYMBOL (symbol); 692 CHECK_SYMBOL (symbol);
737 XSYMBOL (symbol)->plist = newplist; 693 XSYMBOL (symbol)->plist = newplist;
@@ -744,8 +700,7 @@ SUBR must be a built-in function.
744The returned value is a pair (MIN . MAX). MIN is the minimum number 700The returned value is a pair (MIN . MAX). MIN is the minimum number
745of args. MAX is the maximum number or the symbol `many', for a 701of args. MAX is the maximum number or the symbol `many', for a
746function with `&rest' args, or `unevalled' for a special form. */) 702function with `&rest' args, or `unevalled' for a special form. */)
747 (subr) 703 (Lisp_Object subr)
748 Lisp_Object subr;
749{ 704{
750 short minargs, maxargs; 705 short minargs, maxargs;
751 CHECK_SUBR (subr); 706 CHECK_SUBR (subr);
@@ -762,8 +717,7 @@ function with `&rest' args, or `unevalled' for a special form. */)
762DEFUN ("subr-name", Fsubr_name, Ssubr_name, 1, 1, 0, 717DEFUN ("subr-name", Fsubr_name, Ssubr_name, 1, 1, 0,
763 doc: /* Return name of subroutine SUBR. 718 doc: /* Return name of subroutine SUBR.
764SUBR must be a built-in function. */) 719SUBR must be a built-in function. */)
765 (subr) 720 (Lisp_Object subr)
766 Lisp_Object subr;
767{ 721{
768 const char *name; 722 const char *name;
769 CHECK_SUBR (subr); 723 CHECK_SUBR (subr);
@@ -775,8 +729,7 @@ DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0,
775 doc: /* Return the interactive form of CMD or nil if none. 729 doc: /* Return the interactive form of CMD or nil if none.
776If CMD is not a command, the return value is nil. 730If CMD is not a command, the return value is nil.
777Value, if non-nil, is a list \(interactive SPEC). */) 731Value, if non-nil, is a list \(interactive SPEC). */)
778 (cmd) 732 (Lisp_Object cmd)
779 Lisp_Object cmd;
780{ 733{
781 Lisp_Object fun = indirect_function (cmd); /* Check cycles. */ 734 Lisp_Object fun = indirect_function (cmd); /* Check cycles. */
782 735
@@ -868,8 +821,7 @@ If OBJECT is a symbol, follow all variable indirections and return the final
868variable. If OBJECT is not a symbol, just return it. 821variable. If OBJECT is not a symbol, just return it.
869Signal a cyclic-variable-indirection error if there is a loop in the 822Signal a cyclic-variable-indirection error if there is a loop in the
870variable chain of symbols. */) 823variable chain of symbols. */)
871 (object) 824 (Lisp_Object object)
872 Lisp_Object object;
873{ 825{
874 if (SYMBOLP (object)) 826 if (SYMBOLP (object))
875 XSETSYMBOL (object, indirect_variable (XSYMBOL (object))); 827 XSETSYMBOL (object, indirect_variable (XSYMBOL (object)));
@@ -1124,8 +1076,7 @@ find_symbol_value (Lisp_Object symbol)
1124 1076
1125DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0, 1077DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0,
1126 doc: /* Return SYMBOL's value. Error if that is void. */) 1078 doc: /* Return SYMBOL's value. Error if that is void. */)
1127 (symbol) 1079 (Lisp_Object symbol)
1128 Lisp_Object symbol;
1129{ 1080{
1130 Lisp_Object val; 1081 Lisp_Object val;
1131 1082
@@ -1138,8 +1089,7 @@ DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0,
1138 1089
1139DEFUN ("set", Fset, Sset, 2, 2, 0, 1090DEFUN ("set", Fset, Sset, 2, 2, 0,
1140 doc: /* Set SYMBOL's value to NEWVAL, and return NEWVAL. */) 1091 doc: /* Set SYMBOL's value to NEWVAL, and return NEWVAL. */)
1141 (symbol, newval) 1092 (register Lisp_Object symbol, Lisp_Object newval)
1142 register Lisp_Object symbol, newval;
1143{ 1093{
1144 set_internal (symbol, newval, Qnil, 0); 1094 set_internal (symbol, newval, Qnil, 0);
1145 return newval; 1095 return newval;
@@ -1387,8 +1337,7 @@ DEFUN ("default-boundp", Fdefault_boundp, Sdefault_boundp, 1, 1, 0,
1387 doc: /* Return t if SYMBOL has a non-void default value. 1337 doc: /* Return t if SYMBOL has a non-void default value.
1388This is the value that is seen in buffers that do not have their own values 1338This is the value that is seen in buffers that do not have their own values
1389for this variable. */) 1339for this variable. */)
1390 (symbol) 1340 (Lisp_Object symbol)
1391 Lisp_Object symbol;
1392{ 1341{
1393 register Lisp_Object value; 1342 register Lisp_Object value;
1394 1343
@@ -1401,8 +1350,7 @@ DEFUN ("default-value", Fdefault_value, Sdefault_value, 1, 1, 0,
1401This is the value that is seen in buffers that do not have their own values 1350This is the value that is seen in buffers that do not have their own values
1402for this variable. The default value is meaningful for variables with 1351for this variable. The default value is meaningful for variables with
1403local bindings in certain buffers. */) 1352local bindings in certain buffers. */)
1404 (symbol) 1353 (Lisp_Object symbol)
1405 Lisp_Object symbol;
1406{ 1354{
1407 register Lisp_Object value; 1355 register Lisp_Object value;
1408 1356
@@ -1417,8 +1365,7 @@ DEFUN ("set-default", Fset_default, Sset_default, 2, 2, 0,
1417 doc: /* Set SYMBOL's default value to VALUE. SYMBOL and VALUE are evaluated. 1365 doc: /* Set SYMBOL's default value to VALUE. SYMBOL and VALUE are evaluated.
1418The default value is seen in buffers that do not have their own values 1366The default value is seen in buffers that do not have their own values
1419for this variable. */) 1367for this variable. */)
1420 (symbol, value) 1368 (Lisp_Object symbol, Lisp_Object value)
1421 Lisp_Object symbol, value;
1422{ 1369{
1423 struct Lisp_Symbol *sym; 1370 struct Lisp_Symbol *sym;
1424 1371
@@ -1497,8 +1444,7 @@ This sets each VAR's default value to the corresponding VALUE.
1497The VALUE for the Nth VAR can refer to the new default values 1444The VALUE for the Nth VAR can refer to the new default values
1498of previous VARs. 1445of previous VARs.
1499usage: (setq-default [VAR VALUE]...) */) 1446usage: (setq-default [VAR VALUE]...) */)
1500 (args) 1447 (Lisp_Object args)
1501 Lisp_Object args;
1502{ 1448{
1503 register Lisp_Object args_left; 1449 register Lisp_Object args_left;
1504 register Lisp_Object val, symbol; 1450 register Lisp_Object val, symbol;
@@ -1572,8 +1518,7 @@ In most cases it is better to use `make-local-variable',
1572which makes a variable local in just one buffer. 1518which makes a variable local in just one buffer.
1573 1519
1574The function `default-value' gets the default value and `set-default' sets it. */) 1520The function `default-value' gets the default value and `set-default' sets it. */)
1575 (variable) 1521 (register Lisp_Object variable)
1576 register Lisp_Object variable;
1577{ 1522{
1578 struct Lisp_Symbol *sym; 1523 struct Lisp_Symbol *sym;
1579 struct Lisp_Buffer_Local_Value *blv = NULL; 1524 struct Lisp_Buffer_Local_Value *blv = NULL;
@@ -1650,8 +1595,7 @@ See also `make-variable-buffer-local'.
1650 1595
1651Do not use `make-local-variable' to make a hook variable buffer-local. 1596Do not use `make-local-variable' to make a hook variable buffer-local.
1652Instead, use `add-hook' and specify t for the LOCAL argument. */) 1597Instead, use `add-hook' and specify t for the LOCAL argument. */)
1653 (variable) 1598 (register Lisp_Object variable)
1654 register Lisp_Object variable;
1655{ 1599{
1656 register Lisp_Object tem; 1600 register Lisp_Object tem;
1657 int forwarded; 1601 int forwarded;
@@ -1752,8 +1696,7 @@ DEFUN ("kill-local-variable", Fkill_local_variable, Skill_local_variable,
1752 1, 1, "vKill Local Variable: ", 1696 1, 1, "vKill Local Variable: ",
1753 doc: /* Make VARIABLE no longer have a separate value in the current buffer. 1697 doc: /* Make VARIABLE no longer have a separate value in the current buffer.
1754From now on the default value will apply in this buffer. Return VARIABLE. */) 1698From now on the default value will apply in this buffer. Return VARIABLE. */)
1755 (variable) 1699 (register Lisp_Object variable)
1756 register Lisp_Object variable;
1757{ 1700{
1758 register Lisp_Object tem; 1701 register Lisp_Object tem;
1759 struct Lisp_Buffer_Local_Value *blv; 1702 struct Lisp_Buffer_Local_Value *blv;
@@ -1841,8 +1784,7 @@ is to set the VARIABLE frame parameter of that frame. See
1841Note that since Emacs 23.1, variables cannot be both buffer-local and 1784Note that since Emacs 23.1, variables cannot be both buffer-local and
1842frame-local any more (buffer-local bindings used to take precedence over 1785frame-local any more (buffer-local bindings used to take precedence over
1843frame-local bindings). */) 1786frame-local bindings). */)
1844 (variable) 1787 (register Lisp_Object variable)
1845 register Lisp_Object variable;
1846{ 1788{
1847 int forwarded; 1789 int forwarded;
1848 union Lisp_Val_Fwd valcontents; 1790 union Lisp_Val_Fwd valcontents;
@@ -1897,8 +1839,7 @@ DEFUN ("local-variable-p", Flocal_variable_p, Slocal_variable_p,
1897 1, 2, 0, 1839 1, 2, 0,
1898 doc: /* Non-nil if VARIABLE has a local binding in buffer BUFFER. 1840 doc: /* Non-nil if VARIABLE has a local binding in buffer BUFFER.
1899BUFFER defaults to the current buffer. */) 1841BUFFER defaults to the current buffer. */)
1900 (variable, buffer) 1842 (register Lisp_Object variable, Lisp_Object buffer)
1901 register Lisp_Object variable, buffer;
1902{ 1843{
1903 register struct buffer *buf; 1844 register struct buffer *buf;
1904 struct Lisp_Symbol *sym; 1845 struct Lisp_Symbol *sym;
@@ -1962,8 +1903,7 @@ while it does not have a `let'-style binding that was made in BUFFER,
1962will produce a buffer local binding. See Info node 1903will produce a buffer local binding. See Info node
1963`(elisp)Creating Buffer-Local'. 1904`(elisp)Creating Buffer-Local'.
1964BUFFER defaults to the current buffer. */) 1905BUFFER defaults to the current buffer. */)
1965 (variable, buffer) 1906 (register Lisp_Object variable, Lisp_Object buffer)
1966 register Lisp_Object variable, buffer;
1967{ 1907{
1968 struct Lisp_Symbol *sym; 1908 struct Lisp_Symbol *sym;
1969 1909
@@ -1996,8 +1936,7 @@ DEFUN ("variable-binding-locus", Fvariable_binding_locus, Svariable_binding_locu
1996If the current binding is buffer-local, the value is the current buffer. 1936If the current binding is buffer-local, the value is the current buffer.
1997If the current binding is frame-local, the value is the selected frame. 1937If the current binding is frame-local, the value is the selected frame.
1998If the current binding is global (the default), the value is nil. */) 1938If the current binding is global (the default), the value is nil. */)
1999 (variable) 1939 (register Lisp_Object variable)
2000 register Lisp_Object variable;
2001{ 1940{
2002 struct Lisp_Symbol *sym; 1941 struct Lisp_Symbol *sym;
2003 1942
@@ -2047,9 +1986,7 @@ value, like `symbol-value'.
2047 1986
2048TERMINAL may be a terminal object, a frame, or nil (meaning the 1987TERMINAL may be a terminal object, a frame, or nil (meaning the
2049selected frame's terminal device). */) 1988selected frame's terminal device). */)
2050 (symbol, terminal) 1989 (Lisp_Object symbol, Lisp_Object terminal)
2051 Lisp_Object symbol;
2052 Lisp_Object terminal;
2053{ 1990{
2054 Lisp_Object result; 1991 Lisp_Object result;
2055 struct terminal *t = get_terminal (terminal, 1); 1992 struct terminal *t = get_terminal (terminal, 1);
@@ -2066,10 +2003,7 @@ binding, like `set'.
2066 2003
2067TERMINAL may be a terminal object, a frame, or nil (meaning the 2004TERMINAL may be a terminal object, a frame, or nil (meaning the
2068selected frame's terminal device). */) 2005selected frame's terminal device). */)
2069 (symbol, terminal, value) 2006 (Lisp_Object symbol, Lisp_Object terminal, Lisp_Object value)
2070 Lisp_Object symbol;
2071 Lisp_Object terminal;
2072 Lisp_Object value;
2073{ 2007{
2074 Lisp_Object result; 2008 Lisp_Object result;
2075 struct terminal *t = get_terminal (terminal, 1); 2009 struct terminal *t = get_terminal (terminal, 1);
@@ -2122,9 +2056,7 @@ If the final symbol in the chain is unbound, signal a void-function error.
2122Optional arg NOERROR non-nil means to return nil instead of signalling. 2056Optional arg NOERROR non-nil means to return nil instead of signalling.
2123Signal a cyclic-function-indirection error if there is a loop in the 2057Signal a cyclic-function-indirection error if there is a loop in the
2124function chain of symbols. */) 2058function chain of symbols. */)
2125 (object, noerror) 2059 (register Lisp_Object object, Lisp_Object noerror)
2126 register Lisp_Object object;
2127 Lisp_Object noerror;
2128{ 2060{
2129 Lisp_Object result; 2061 Lisp_Object result;
2130 2062
@@ -2148,9 +2080,7 @@ DEFUN ("aref", Faref, Saref, 2, 2, 0,
2148 doc: /* Return the element of ARRAY at index IDX. 2080 doc: /* Return the element of ARRAY at index IDX.
2149ARRAY may be a vector, a string, a char-table, a bool-vector, 2081ARRAY may be a vector, a string, a char-table, a bool-vector,
2150or a byte-code object. IDX starts at 0. */) 2082or a byte-code object. IDX starts at 0. */)
2151 (array, idx) 2083 (register Lisp_Object array, Lisp_Object idx)
2152 register Lisp_Object array;
2153 Lisp_Object idx;
2154{ 2084{
2155 register int idxval; 2085 register int idxval;
2156 2086
@@ -2204,9 +2134,7 @@ DEFUN ("aset", Faset, Saset, 3, 3, 0,
2204 doc: /* Store into the element of ARRAY at index IDX the value NEWELT. 2134 doc: /* Store into the element of ARRAY at index IDX the value NEWELT.
2205Return NEWELT. ARRAY may be a vector, a string, a char-table or a 2135Return NEWELT. ARRAY may be a vector, a string, a char-table or a
2206bool-vector. IDX starts at 0. */) 2136bool-vector. IDX starts at 0. */)
2207 (array, idx, newelt) 2137 (register Lisp_Object array, Lisp_Object idx, Lisp_Object newelt)
2208 register Lisp_Object array;
2209 Lisp_Object idx, newelt;
2210{ 2138{
2211 register int idxval; 2139 register int idxval;
2212 2140
@@ -2360,24 +2288,21 @@ arithcompare (Lisp_Object num1, Lisp_Object num2, enum comparison comparison)
2360 2288
2361DEFUN ("=", Feqlsign, Seqlsign, 2, 2, 0, 2289DEFUN ("=", Feqlsign, Seqlsign, 2, 2, 0,
2362 doc: /* Return t if two args, both numbers or markers, are equal. */) 2290 doc: /* Return t if two args, both numbers or markers, are equal. */)
2363 (num1, num2) 2291 (register Lisp_Object num1, Lisp_Object num2)
2364 register Lisp_Object num1, num2;
2365{ 2292{
2366 return arithcompare (num1, num2, equal); 2293 return arithcompare (num1, num2, equal);
2367} 2294}
2368 2295
2369DEFUN ("<", Flss, Slss, 2, 2, 0, 2296DEFUN ("<", Flss, Slss, 2, 2, 0,
2370 doc: /* Return t if first arg is less than second arg. Both must be numbers or markers. */) 2297 doc: /* Return t if first arg is less than second arg. Both must be numbers or markers. */)
2371 (num1, num2) 2298 (register Lisp_Object num1, Lisp_Object num2)
2372 register Lisp_Object num1, num2;
2373{ 2299{
2374 return arithcompare (num1, num2, less); 2300 return arithcompare (num1, num2, less);
2375} 2301}
2376 2302
2377DEFUN (">", Fgtr, Sgtr, 2, 2, 0, 2303DEFUN (">", Fgtr, Sgtr, 2, 2, 0,
2378 doc: /* Return t if first arg is greater than second arg. Both must be numbers or markers. */) 2304 doc: /* Return t if first arg is greater than second arg. Both must be numbers or markers. */)
2379 (num1, num2) 2305 (register Lisp_Object num1, Lisp_Object num2)
2380 register Lisp_Object num1, num2;
2381{ 2306{
2382 return arithcompare (num1, num2, grtr); 2307 return arithcompare (num1, num2, grtr);
2383} 2308}
@@ -2385,8 +2310,7 @@ DEFUN (">", Fgtr, Sgtr, 2, 2, 0,
2385DEFUN ("<=", Fleq, Sleq, 2, 2, 0, 2310DEFUN ("<=", Fleq, Sleq, 2, 2, 0,
2386 doc: /* Return t if first arg is less than or equal to second arg. 2311 doc: /* Return t if first arg is less than or equal to second arg.
2387Both must be numbers or markers. */) 2312Both must be numbers or markers. */)
2388 (num1, num2) 2313 (register Lisp_Object num1, Lisp_Object num2)
2389 register Lisp_Object num1, num2;
2390{ 2314{
2391 return arithcompare (num1, num2, less_or_equal); 2315 return arithcompare (num1, num2, less_or_equal);
2392} 2316}
@@ -2394,24 +2318,21 @@ Both must be numbers or markers. */)
2394DEFUN (">=", Fgeq, Sgeq, 2, 2, 0, 2318DEFUN (">=", Fgeq, Sgeq, 2, 2, 0,
2395 doc: /* Return t if first arg is greater than or equal to second arg. 2319 doc: /* Return t if first arg is greater than or equal to second arg.
2396Both must be numbers or markers. */) 2320Both must be numbers or markers. */)
2397 (num1, num2) 2321 (register Lisp_Object num1, Lisp_Object num2)
2398 register Lisp_Object num1, num2;
2399{ 2322{
2400 return arithcompare (num1, num2, grtr_or_equal); 2323 return arithcompare (num1, num2, grtr_or_equal);
2401} 2324}
2402 2325
2403DEFUN ("/=", Fneq, Sneq, 2, 2, 0, 2326DEFUN ("/=", Fneq, Sneq, 2, 2, 0,
2404 doc: /* Return t if first arg is not equal to second arg. Both must be numbers or markers. */) 2327 doc: /* Return t if first arg is not equal to second arg. Both must be numbers or markers. */)
2405 (num1, num2) 2328 (register Lisp_Object num1, Lisp_Object num2)
2406 register Lisp_Object num1, num2;
2407{ 2329{
2408 return arithcompare (num1, num2, notequal); 2330 return arithcompare (num1, num2, notequal);
2409} 2331}
2410 2332
2411DEFUN ("zerop", Fzerop, Szerop, 1, 1, 0, 2333DEFUN ("zerop", Fzerop, Szerop, 1, 1, 0,
2412 doc: /* Return t if NUMBER is zero. */) 2334 doc: /* Return t if NUMBER is zero. */)
2413 (number) 2335 (register Lisp_Object number)
2414 register Lisp_Object number;
2415{ 2336{
2416 CHECK_NUMBER_OR_FLOAT (number); 2337 CHECK_NUMBER_OR_FLOAT (number);
2417 2338
@@ -2460,8 +2381,7 @@ DEFUN ("number-to-string", Fnumber_to_string, Snumber_to_string, 1, 1, 0,
2460 doc: /* Return the decimal representation of NUMBER as a string. 2381 doc: /* Return the decimal representation of NUMBER as a string.
2461Uses a minus sign if negative. 2382Uses a minus sign if negative.
2462NUMBER may be an integer or a floating point number. */) 2383NUMBER may be an integer or a floating point number. */)
2463 (number) 2384 (Lisp_Object number)
2464 Lisp_Object number;
2465{ 2385{
2466 char buffer[VALBITS]; 2386 char buffer[VALBITS];
2467 2387
@@ -2512,8 +2432,7 @@ It ignores leading spaces and tabs, and all trailing chars.
2512If BASE, interpret STRING as a number in that base. If BASE isn't 2432If BASE, interpret STRING as a number in that base. If BASE isn't
2513present, base 10 is used. BASE must be between 2 and 16 (inclusive). 2433present, base 10 is used. BASE must be between 2 and 16 (inclusive).
2514If the base used is not 10, STRING is always parsed as integer. */) 2434If the base used is not 10, STRING is always parsed as integer. */)
2515 (string, base) 2435 (register Lisp_Object string, Lisp_Object base)
2516 register Lisp_Object string, base;
2517{ 2436{
2518 register unsigned char *p; 2437 register unsigned char *p;
2519 register int b; 2438 register int b;
@@ -2732,9 +2651,7 @@ float_arith_driver (double accum, register int argnum, enum arithop code, int na
2732DEFUN ("+", Fplus, Splus, 0, MANY, 0, 2651DEFUN ("+", Fplus, Splus, 0, MANY, 0,
2733 doc: /* Return sum of any number of arguments, which are numbers or markers. 2652 doc: /* Return sum of any number of arguments, which are numbers or markers.
2734usage: (+ &rest NUMBERS-OR-MARKERS) */) 2653usage: (+ &rest NUMBERS-OR-MARKERS) */)
2735 (nargs, args) 2654 (int nargs, Lisp_Object *args)
2736 int nargs;
2737 Lisp_Object *args;
2738{ 2655{
2739 return arith_driver (Aadd, nargs, args); 2656 return arith_driver (Aadd, nargs, args);
2740} 2657}
@@ -2744,9 +2661,7 @@ DEFUN ("-", Fminus, Sminus, 0, MANY, 0,
2744With one arg, negates it. With more than one arg, 2661With one arg, negates it. With more than one arg,
2745subtracts all but the first from the first. 2662subtracts all but the first from the first.
2746usage: (- &optional NUMBER-OR-MARKER &rest MORE-NUMBERS-OR-MARKERS) */) 2663usage: (- &optional NUMBER-OR-MARKER &rest MORE-NUMBERS-OR-MARKERS) */)
2747 (nargs, args) 2664 (int nargs, Lisp_Object *args)
2748 int nargs;
2749 Lisp_Object *args;
2750{ 2665{
2751 return arith_driver (Asub, nargs, args); 2666 return arith_driver (Asub, nargs, args);
2752} 2667}
@@ -2754,9 +2669,7 @@ usage: (- &optional NUMBER-OR-MARKER &rest MORE-NUMBERS-OR-MARKERS) */)
2754DEFUN ("*", Ftimes, Stimes, 0, MANY, 0, 2669DEFUN ("*", Ftimes, Stimes, 0, MANY, 0,
2755 doc: /* Return product of any number of arguments, which are numbers or markers. 2670 doc: /* Return product of any number of arguments, which are numbers or markers.
2756usage: (* &rest NUMBERS-OR-MARKERS) */) 2671usage: (* &rest NUMBERS-OR-MARKERS) */)
2757 (nargs, args) 2672 (int nargs, Lisp_Object *args)
2758 int nargs;
2759 Lisp_Object *args;
2760{ 2673{
2761 return arith_driver (Amult, nargs, args); 2674 return arith_driver (Amult, nargs, args);
2762} 2675}
@@ -2765,9 +2678,7 @@ DEFUN ("/", Fquo, Squo, 2, MANY, 0,
2765 doc: /* Return first argument divided by all the remaining arguments. 2678 doc: /* Return first argument divided by all the remaining arguments.
2766The arguments must be numbers or markers. 2679The arguments must be numbers or markers.
2767usage: (/ DIVIDEND DIVISOR &rest DIVISORS) */) 2680usage: (/ DIVIDEND DIVISOR &rest DIVISORS) */)
2768 (nargs, args) 2681 (int nargs, Lisp_Object *args)
2769 int nargs;
2770 Lisp_Object *args;
2771{ 2682{
2772 int argnum; 2683 int argnum;
2773 for (argnum = 2; argnum < nargs; argnum++) 2684 for (argnum = 2; argnum < nargs; argnum++)
@@ -2779,8 +2690,7 @@ usage: (/ DIVIDEND DIVISOR &rest DIVISORS) */)
2779DEFUN ("%", Frem, Srem, 2, 2, 0, 2690DEFUN ("%", Frem, Srem, 2, 2, 0,
2780 doc: /* Return remainder of X divided by Y. 2691 doc: /* Return remainder of X divided by Y.
2781Both must be integers or markers. */) 2692Both must be integers or markers. */)
2782 (x, y) 2693 (register Lisp_Object x, Lisp_Object y)
2783 register Lisp_Object x, y;
2784{ 2694{
2785 Lisp_Object val; 2695 Lisp_Object val;
2786 2696
@@ -2821,8 +2731,7 @@ DEFUN ("mod", Fmod, Smod, 2, 2, 0,
2821 doc: /* Return X modulo Y. 2731 doc: /* Return X modulo Y.
2822The result falls between zero (inclusive) and Y (exclusive). 2732The result falls between zero (inclusive) and Y (exclusive).
2823Both X and Y must be numbers or markers. */) 2733Both X and Y must be numbers or markers. */)
2824 (x, y) 2734 (register Lisp_Object x, Lisp_Object y)
2825 register Lisp_Object x, y;
2826{ 2735{
2827 Lisp_Object val; 2736 Lisp_Object val;
2828 EMACS_INT i1, i2; 2737 EMACS_INT i1, i2;
@@ -2853,9 +2762,7 @@ DEFUN ("max", Fmax, Smax, 1, MANY, 0,
2853 doc: /* Return largest of all the arguments (which must be numbers or markers). 2762 doc: /* Return largest of all the arguments (which must be numbers or markers).
2854The value is always a number; markers are converted to numbers. 2763The value is always a number; markers are converted to numbers.
2855usage: (max NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */) 2764usage: (max NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */)
2856 (nargs, args) 2765 (int nargs, Lisp_Object *args)
2857 int nargs;
2858 Lisp_Object *args;
2859{ 2766{
2860 return arith_driver (Amax, nargs, args); 2767 return arith_driver (Amax, nargs, args);
2861} 2768}
@@ -2864,9 +2771,7 @@ DEFUN ("min", Fmin, Smin, 1, MANY, 0,
2864 doc: /* Return smallest of all the arguments (which must be numbers or markers). 2771 doc: /* Return smallest of all the arguments (which must be numbers or markers).
2865The value is always a number; markers are converted to numbers. 2772The value is always a number; markers are converted to numbers.
2866usage: (min NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */) 2773usage: (min NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */)
2867 (nargs, args) 2774 (int nargs, Lisp_Object *args)
2868 int nargs;
2869 Lisp_Object *args;
2870{ 2775{
2871 return arith_driver (Amin, nargs, args); 2776 return arith_driver (Amin, nargs, args);
2872} 2777}
@@ -2875,9 +2780,7 @@ DEFUN ("logand", Flogand, Slogand, 0, MANY, 0,
2875 doc: /* Return bitwise-and of all the arguments. 2780 doc: /* Return bitwise-and of all the arguments.
2876Arguments may be integers, or markers converted to integers. 2781Arguments may be integers, or markers converted to integers.
2877usage: (logand &rest INTS-OR-MARKERS) */) 2782usage: (logand &rest INTS-OR-MARKERS) */)
2878 (nargs, args) 2783 (int nargs, Lisp_Object *args)
2879 int nargs;
2880 Lisp_Object *args;
2881{ 2784{
2882 return arith_driver (Alogand, nargs, args); 2785 return arith_driver (Alogand, nargs, args);
2883} 2786}
@@ -2886,9 +2789,7 @@ DEFUN ("logior", Flogior, Slogior, 0, MANY, 0,
2886 doc: /* Return bitwise-or of all the arguments. 2789 doc: /* Return bitwise-or of all the arguments.
2887Arguments may be integers, or markers converted to integers. 2790Arguments may be integers, or markers converted to integers.
2888usage: (logior &rest INTS-OR-MARKERS) */) 2791usage: (logior &rest INTS-OR-MARKERS) */)
2889 (nargs, args) 2792 (int nargs, Lisp_Object *args)
2890 int nargs;
2891 Lisp_Object *args;
2892{ 2793{
2893 return arith_driver (Alogior, nargs, args); 2794 return arith_driver (Alogior, nargs, args);
2894} 2795}
@@ -2897,9 +2798,7 @@ DEFUN ("logxor", Flogxor, Slogxor, 0, MANY, 0,
2897 doc: /* Return bitwise-exclusive-or of all the arguments. 2798 doc: /* Return bitwise-exclusive-or of all the arguments.
2898Arguments may be integers, or markers converted to integers. 2799Arguments may be integers, or markers converted to integers.
2899usage: (logxor &rest INTS-OR-MARKERS) */) 2800usage: (logxor &rest INTS-OR-MARKERS) */)
2900 (nargs, args) 2801 (int nargs, Lisp_Object *args)
2901 int nargs;
2902 Lisp_Object *args;
2903{ 2802{
2904 return arith_driver (Alogxor, nargs, args); 2803 return arith_driver (Alogxor, nargs, args);
2905} 2804}
@@ -2908,8 +2807,7 @@ DEFUN ("ash", Fash, Sash, 2, 2, 0,
2908 doc: /* Return VALUE with its bits shifted left by COUNT. 2807 doc: /* Return VALUE with its bits shifted left by COUNT.
2909If COUNT is negative, shifting is actually to the right. 2808If COUNT is negative, shifting is actually to the right.
2910In this case, the sign bit is duplicated. */) 2809In this case, the sign bit is duplicated. */)
2911 (value, count) 2810 (register Lisp_Object value, Lisp_Object count)
2912 register Lisp_Object value, count;
2913{ 2811{
2914 register Lisp_Object val; 2812 register Lisp_Object val;
2915 2813
@@ -2931,8 +2829,7 @@ DEFUN ("lsh", Flsh, Slsh, 2, 2, 0,
2931 doc: /* Return VALUE with its bits shifted left by COUNT. 2829 doc: /* Return VALUE with its bits shifted left by COUNT.
2932If COUNT is negative, shifting is actually to the right. 2830If COUNT is negative, shifting is actually to the right.
2933In this case, zeros are shifted in on the left. */) 2831In this case, zeros are shifted in on the left. */)
2934 (value, count) 2832 (register Lisp_Object value, Lisp_Object count)
2935 register Lisp_Object value, count;
2936{ 2833{
2937 register Lisp_Object val; 2834 register Lisp_Object val;
2938 2835
@@ -2953,8 +2850,7 @@ In this case, zeros are shifted in on the left. */)
2953DEFUN ("1+", Fadd1, Sadd1, 1, 1, 0, 2850DEFUN ("1+", Fadd1, Sadd1, 1, 1, 0,
2954 doc: /* Return NUMBER plus one. NUMBER may be a number or a marker. 2851 doc: /* Return NUMBER plus one. NUMBER may be a number or a marker.
2955Markers are converted to integers. */) 2852Markers are converted to integers. */)
2956 (number) 2853 (register Lisp_Object number)
2957 register Lisp_Object number;
2958{ 2854{
2959 CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number); 2855 CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number);
2960 2856
@@ -2968,8 +2864,7 @@ Markers are converted to integers. */)
2968DEFUN ("1-", Fsub1, Ssub1, 1, 1, 0, 2864DEFUN ("1-", Fsub1, Ssub1, 1, 1, 0,
2969 doc: /* Return NUMBER minus one. NUMBER may be a number or a marker. 2865 doc: /* Return NUMBER minus one. NUMBER may be a number or a marker.
2970Markers are converted to integers. */) 2866Markers are converted to integers. */)
2971 (number) 2867 (register Lisp_Object number)
2972 register Lisp_Object number;
2973{ 2868{
2974 CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number); 2869 CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number);
2975 2870
@@ -2982,8 +2877,7 @@ Markers are converted to integers. */)
2982 2877
2983DEFUN ("lognot", Flognot, Slognot, 1, 1, 0, 2878DEFUN ("lognot", Flognot, Slognot, 1, 1, 0,
2984 doc: /* Return the bitwise complement of NUMBER. NUMBER must be an integer. */) 2879 doc: /* Return the bitwise complement of NUMBER. NUMBER must be an integer. */)
2985 (number) 2880 (register Lisp_Object number)
2986 register Lisp_Object number;
2987{ 2881{
2988 CHECK_NUMBER (number); 2882 CHECK_NUMBER (number);
2989 XSETINT (number, ~XINT (number)); 2883 XSETINT (number, ~XINT (number));
@@ -2994,7 +2888,7 @@ DEFUN ("byteorder", Fbyteorder, Sbyteorder, 0, 0, 0,
2994 doc: /* Return the byteorder for the machine. 2888 doc: /* Return the byteorder for the machine.
2995Returns 66 (ASCII uppercase B) for big endian machines or 108 (ASCII 2889Returns 66 (ASCII uppercase B) for big endian machines or 108 (ASCII
2996lowercase l) for small endian machines. */) 2890lowercase l) for small endian machines. */)
2997 () 2891 (void)
2998{ 2892{
2999 unsigned i = 0x04030201; 2893 unsigned i = 0x04030201;
3000 int order = *(char *)&i == 1 ? 108 : 66; 2894 int order = *(char *)&i == 1 ? 108 : 66;
diff --git a/src/dbusbind.c b/src/dbusbind.c
index 7edda947c0d..005b04950b9 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -821,8 +821,7 @@ xd_remove_watch (DBusWatch *watch, void *data)
821DEFUN ("dbus-init-bus", Fdbus_init_bus, Sdbus_init_bus, 1, 1, 0, 821DEFUN ("dbus-init-bus", Fdbus_init_bus, Sdbus_init_bus, 1, 1, 0,
822 doc: /* Initialize connection to D-Bus BUS. 822 doc: /* Initialize connection to D-Bus BUS.
823This is an internal function, it shall not be used outside dbus.el. */) 823This is an internal function, it shall not be used outside dbus.el. */)
824 (bus) 824 (Lisp_Object bus)
825 Lisp_Object bus;
826{ 825{
827 DBusConnection *connection; 826 DBusConnection *connection;
828 827
@@ -847,8 +846,7 @@ This is an internal function, it shall not be used outside dbus.el. */)
847DEFUN ("dbus-get-unique-name", Fdbus_get_unique_name, Sdbus_get_unique_name, 846DEFUN ("dbus-get-unique-name", Fdbus_get_unique_name, Sdbus_get_unique_name,
848 1, 1, 0, 847 1, 1, 0,
849 doc: /* Return the unique name of Emacs registered at D-Bus BUS. */) 848 doc: /* Return the unique name of Emacs registered at D-Bus BUS. */)
850 (bus) 849 (Lisp_Object bus)
851 Lisp_Object bus;
852{ 850{
853 DBusConnection *connection; 851 DBusConnection *connection;
854 const char *name; 852 const char *name;
@@ -936,9 +934,7 @@ object is returned instead of a list containing this single Lisp object.
936 => "i686" 934 => "i686"
937 935
938usage: (dbus-call-method BUS SERVICE PATH INTERFACE METHOD &optional :timeout TIMEOUT &rest ARGS) */) 936usage: (dbus-call-method BUS SERVICE PATH INTERFACE METHOD &optional :timeout TIMEOUT &rest ARGS) */)
939 (nargs, args) 937 (int nargs, register Lisp_Object *args)
940 int nargs;
941 register Lisp_Object *args;
942{ 938{
943 Lisp_Object bus, service, path, interface, method; 939 Lisp_Object bus, service, path, interface, method;
944 Lisp_Object result; 940 Lisp_Object result;
@@ -1120,9 +1116,7 @@ Example:
1120 -| i686 1116 -| i686
1121 1117
1122usage: (dbus-call-method-asynchronously BUS SERVICE PATH INTERFACE METHOD HANDLER &optional :timeout TIMEOUT &rest ARGS) */) 1118usage: (dbus-call-method-asynchronously BUS SERVICE PATH INTERFACE METHOD HANDLER &optional :timeout TIMEOUT &rest ARGS) */)
1123 (nargs, args) 1119 (int nargs, register Lisp_Object *args)
1124 int nargs;
1125 register Lisp_Object *args;
1126{ 1120{
1127 Lisp_Object bus, service, path, interface, method, handler; 1121 Lisp_Object bus, service, path, interface, method, handler;
1128 Lisp_Object result; 1122 Lisp_Object result;
@@ -1250,9 +1244,7 @@ DEFUN ("dbus-method-return-internal", Fdbus_method_return_internal,
1250This is an internal function, it shall not be used outside dbus.el. 1244This is an internal function, it shall not be used outside dbus.el.
1251 1245
1252usage: (dbus-method-return-internal BUS SERIAL SERVICE &rest ARGS) */) 1246usage: (dbus-method-return-internal BUS SERIAL SERVICE &rest ARGS) */)
1253 (nargs, args) 1247 (int nargs, register Lisp_Object *args)
1254 int nargs;
1255 register Lisp_Object *args;
1256{ 1248{
1257 Lisp_Object bus, serial, service; 1249 Lisp_Object bus, serial, service;
1258 struct gcpro gcpro1, gcpro2, gcpro3; 1250 struct gcpro gcpro1, gcpro2, gcpro3;
@@ -1344,9 +1336,7 @@ DEFUN ("dbus-method-error-internal", Fdbus_method_error_internal,
1344This is an internal function, it shall not be used outside dbus.el. 1336This is an internal function, it shall not be used outside dbus.el.
1345 1337
1346usage: (dbus-method-error-internal BUS SERIAL SERVICE &rest ARGS) */) 1338usage: (dbus-method-error-internal BUS SERIAL SERVICE &rest ARGS) */)
1347 (nargs, args) 1339 (int nargs, register Lisp_Object *args)
1348 int nargs;
1349 register Lisp_Object *args;
1350{ 1340{
1351 Lisp_Object bus, serial, service; 1341 Lisp_Object bus, serial, service;
1352 struct gcpro gcpro1, gcpro2, gcpro3; 1342 struct gcpro gcpro1, gcpro2, gcpro3;
@@ -1461,9 +1451,7 @@ Example:
1461 "org.gnu.Emacs.FileManager" "FileModified" "/home/albinus/.emacs") 1451 "org.gnu.Emacs.FileManager" "FileModified" "/home/albinus/.emacs")
1462 1452
1463usage: (dbus-send-signal BUS SERVICE PATH INTERFACE SIGNAL &rest ARGS) */) 1453usage: (dbus-send-signal BUS SERVICE PATH INTERFACE SIGNAL &rest ARGS) */)
1464 (nargs, args) 1454 (int nargs, register Lisp_Object *args)
1465 int nargs;
1466 register Lisp_Object *args;
1467{ 1455{
1468 Lisp_Object bus, service, path, interface, signal; 1456 Lisp_Object bus, service, path, interface, signal;
1469 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; 1457 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5;
@@ -1803,9 +1791,7 @@ INTERFACE, SIGNAL and HANDLER must not be nil. Example:
1803`dbus-unregister-object' for removing the registration. 1791`dbus-unregister-object' for removing the registration.
1804 1792
1805usage: (dbus-register-signal BUS SERVICE PATH INTERFACE SIGNAL HANDLER &rest ARGS) */) 1793usage: (dbus-register-signal BUS SERVICE PATH INTERFACE SIGNAL HANDLER &rest ARGS) */)
1806 (nargs, args) 1794 (int nargs, register Lisp_Object *args)
1807 int nargs;
1808 register Lisp_Object *args;
1809{ 1795{
1810 Lisp_Object bus, service, path, interface, signal, handler; 1796 Lisp_Object bus, service, path, interface, signal, handler;
1811 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5, gcpro6; 1797 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5, gcpro6;
@@ -1927,8 +1913,7 @@ interface offered by SERVICE. It must provide METHOD. HANDLER is a
1927Lisp function to be called when a method call is received. It must 1913Lisp function to be called when a method call is received. It must
1928accept the input arguments of METHOD. The return value of HANDLER is 1914accept the input arguments of METHOD. The return value of HANDLER is
1929used for composing the returning D-Bus message. */) 1915used for composing the returning D-Bus message. */)
1930 (bus, service, path, interface, method, handler) 1916 (Lisp_Object bus, Lisp_Object service, Lisp_Object path, Lisp_Object interface, Lisp_Object method, Lisp_Object handler)
1931 Lisp_Object bus, service, path, interface, method, handler;
1932{ 1917{
1933 Lisp_Object key, key1, value; 1918 Lisp_Object key, key1, value;
1934 DBusConnection *connection; 1919 DBusConnection *connection;
diff --git a/src/dired.c b/src/dired.c
index cbff34302b9..cdb4545e81c 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -366,8 +366,7 @@ If MATCH is non-nil, mention only file names that match the regexp MATCH.
366If NOSORT is non-nil, the list is not sorted--its order is unpredictable. 366If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
367 Otherwise, the list returned is sorted with `string-lessp'. 367 Otherwise, the list returned is sorted with `string-lessp'.
368 NOSORT is useful if you plan to sort the result yourself. */) 368 NOSORT is useful if you plan to sort the result yourself. */)
369 (directory, full, match, nosort) 369 (Lisp_Object directory, Lisp_Object full, Lisp_Object match, Lisp_Object nosort)
370 Lisp_Object directory, full, match, nosort;
371{ 370{
372 Lisp_Object handler; 371 Lisp_Object handler;
373 directory = Fexpand_file_name (directory, Qnil); 372 directory = Fexpand_file_name (directory, Qnil);
@@ -395,8 +394,7 @@ ID-FORMAT specifies the preferred format of attributes uid and gid, see
395`file-attributes' for further documentation. 394`file-attributes' for further documentation.
396On MS-Windows, performance depends on `w32-get-true-file-attributes', 395On MS-Windows, performance depends on `w32-get-true-file-attributes',
397which see. */) 396which see. */)
398 (directory, full, match, nosort, id_format) 397 (Lisp_Object directory, Lisp_Object full, Lisp_Object match, Lisp_Object nosort, Lisp_Object id_format)
399 Lisp_Object directory, full, match, nosort, id_format;
400{ 398{
401 Lisp_Object handler; 399 Lisp_Object handler;
402 directory = Fexpand_file_name (directory, Qnil); 400 directory = Fexpand_file_name (directory, Qnil);
@@ -427,8 +425,7 @@ completion (in absolute form) and ignore it if PREDICATE returns nil.
427 425
428This function ignores some of the possible completions as 426This function ignores some of the possible completions as
429determined by the variable `completion-ignored-extensions', which see. */) 427determined by the variable `completion-ignored-extensions', which see. */)
430 (file, directory, predicate) 428 (Lisp_Object file, Lisp_Object directory, Lisp_Object predicate)
431 Lisp_Object file, directory, predicate;
432{ 429{
433 Lisp_Object handler; 430 Lisp_Object handler;
434 431
@@ -451,8 +448,7 @@ DEFUN ("file-name-all-completions", Ffile_name_all_completions,
451 Sfile_name_all_completions, 2, 2, 0, 448 Sfile_name_all_completions, 2, 2, 0,
452 doc: /* Return a list of all completions of file name FILE in directory DIRECTORY. 449 doc: /* Return a list of all completions of file name FILE in directory DIRECTORY.
453These are all file names in directory DIRECTORY which begin with FILE. */) 450These are all file names in directory DIRECTORY which begin with FILE. */)
454 (file, directory) 451 (Lisp_Object file, Lisp_Object directory)
455 Lisp_Object file, directory;
456{ 452{
457 Lisp_Object handler; 453 Lisp_Object handler;
458 454
@@ -959,8 +955,7 @@ which see.
959 955
960On some FAT-based filesystems, only the date of last access is recorded, 956On some FAT-based filesystems, only the date of last access is recorded,
961so last access time will always be midnight of that day. */) 957so last access time will always be midnight of that day. */)
962 (filename, id_format) 958 (Lisp_Object filename, Lisp_Object id_format)
963 Lisp_Object filename, id_format;
964{ 959{
965 Lisp_Object values[12]; 960 Lisp_Object values[12];
966 Lisp_Object encoded; 961 Lisp_Object encoded;
@@ -1082,8 +1077,7 @@ so last access time will always be midnight of that day. */)
1082DEFUN ("file-attributes-lessp", Ffile_attributes_lessp, Sfile_attributes_lessp, 2, 2, 0, 1077DEFUN ("file-attributes-lessp", Ffile_attributes_lessp, Sfile_attributes_lessp, 2, 2, 0,
1083 doc: /* Return t if first arg file attributes list is less than second. 1078 doc: /* Return t if first arg file attributes list is less than second.
1084Comparison is in lexicographic order and case is significant. */) 1079Comparison is in lexicographic order and case is significant. */)
1085 (f1, f2) 1080 (Lisp_Object f1, Lisp_Object f2)
1086 Lisp_Object f1, f2;
1087{ 1081{
1088 return Fstring_lessp (Fcar (f1), Fcar (f2)); 1082 return Fstring_lessp (Fcar (f1), Fcar (f2));
1089} 1083}
diff --git a/src/dispnew.c b/src/dispnew.c
index 7c0009e570a..eda7244ad54 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -413,7 +413,7 @@ add_frame_display_history (f, paused_p)
413DEFUN ("dump-redisplay-history", Fdump_redisplay_history, 413DEFUN ("dump-redisplay-history", Fdump_redisplay_history,
414 Sdump_redisplay_history, 0, 0, "", 414 Sdump_redisplay_history, 0, 0, "",
415 doc: /* Dump redisplay history to stderr. */) 415 doc: /* Dump redisplay history to stderr. */)
416 () 416 (void)
417{ 417{
418 int i; 418 int i;
419 419
@@ -3244,8 +3244,7 @@ window_to_frame_hpos (w, hpos)
3244 3244
3245DEFUN ("redraw-frame", Fredraw_frame, Sredraw_frame, 1, 1, 0, 3245DEFUN ("redraw-frame", Fredraw_frame, Sredraw_frame, 1, 1, 0,
3246 doc: /* Clear frame FRAME and output again what is supposed to appear on it. */) 3246 doc: /* Clear frame FRAME and output again what is supposed to appear on it. */)
3247 (frame) 3247 (Lisp_Object frame)
3248 Lisp_Object frame;
3249{ 3248{
3250 struct frame *f; 3249 struct frame *f;
3251 3250
@@ -3292,7 +3291,7 @@ redraw_frame (struct frame *f)
3292 3291
3293DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "", 3292DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "",
3294 doc: /* Clear and redisplay all visible frames. */) 3293 doc: /* Clear and redisplay all visible frames. */)
3295 () 3294 (void)
3296{ 3295{
3297 Lisp_Object tail, frame; 3296 Lisp_Object tail, frame;
3298 3297
@@ -5855,8 +5854,7 @@ DEFUN ("open-termscript", Fopen_termscript, Sopen_termscript,
5855 1, 1, "FOpen termscript file: ", 5854 1, 1, "FOpen termscript file: ",
5856 doc: /* Start writing all terminal output to FILE as well as the terminal. 5855 doc: /* Start writing all terminal output to FILE as well as the terminal.
5857FILE = nil means just close any termscript file currently open. */) 5856FILE = nil means just close any termscript file currently open. */)
5858 (file) 5857 (Lisp_Object file)
5859 Lisp_Object file;
5860{ 5858{
5861 struct tty_display_info *tty; 5859 struct tty_display_info *tty;
5862 5860
@@ -5894,9 +5892,7 @@ Optional parameter TERMINAL specifies the tty terminal device to use.
5894It may be a terminal object, a frame, or nil for the terminal used by 5892It may be a terminal object, a frame, or nil for the terminal used by
5895the currently selected frame. In batch mode, STRING is sent to stdout 5893the currently selected frame. In batch mode, STRING is sent to stdout
5896when TERMINAL is nil. */) 5894when TERMINAL is nil. */)
5897 (string, terminal) 5895 (Lisp_Object string, Lisp_Object terminal)
5898 Lisp_Object string;
5899 Lisp_Object terminal;
5900{ 5896{
5901 struct terminal *t = get_terminal (terminal, 1); 5897 struct terminal *t = get_terminal (terminal, 1);
5902 FILE *out; 5898 FILE *out;
@@ -5937,8 +5933,7 @@ DEFUN ("ding", Fding, Sding, 0, 1, 0,
5937 doc: /* Beep, or flash the screen. 5933 doc: /* Beep, or flash the screen.
5938Also, unless an argument is given, 5934Also, unless an argument is given,
5939terminate any keyboard macro currently executing. */) 5935terminate any keyboard macro currently executing. */)
5940 (arg) 5936 (Lisp_Object arg)
5941 Lisp_Object arg;
5942{ 5937{
5943 if (!NILP (arg)) 5938 if (!NILP (arg))
5944 { 5939 {
@@ -5977,8 +5972,7 @@ fraction of a second. Optional second arg MILLISECONDS specifies an
5977additional wait period, in milliseconds; this may be useful if your 5972additional wait period, in milliseconds; this may be useful if your
5978Emacs was built without floating point support. 5973Emacs was built without floating point support.
5979\(Not all operating systems support waiting for a fraction of a second.) */) 5974\(Not all operating systems support waiting for a fraction of a second.) */)
5980 (seconds, milliseconds) 5975 (Lisp_Object seconds, Lisp_Object milliseconds)
5981 Lisp_Object seconds, milliseconds;
5982{ 5976{
5983 int sec, usec; 5977 int sec, usec;
5984 5978
@@ -6082,8 +6076,7 @@ DEFUN ("redisplay", Fredisplay, Sredisplay, 0, 1, 0,
6082If optional arg FORCE is non-nil or `redisplay-dont-pause' is non-nil, 6076If optional arg FORCE is non-nil or `redisplay-dont-pause' is non-nil,
6083perform a full redisplay even if input is available. 6077perform a full redisplay even if input is available.
6084Return t if redisplay was performed, nil otherwise. */) 6078Return t if redisplay was performed, nil otherwise. */)
6085 (force) 6079 (Lisp_Object force)
6086 Lisp_Object force;
6087{ 6080{
6088 int count; 6081 int count;
6089 6082
@@ -6127,8 +6120,7 @@ the current state.
6127 6120
6128If VARIABLE is nil, an internal variable is used. Users should not 6121If VARIABLE is nil, an internal variable is used. Users should not
6129pass nil for VARIABLE. */) 6122pass nil for VARIABLE. */)
6130 (variable) 6123 (Lisp_Object variable)
6131 Lisp_Object variable;
6132{ 6124{
6133 Lisp_Object state, tail, frame, buf; 6125 Lisp_Object state, tail, frame, buf;
6134 Lisp_Object *vecp, *end; 6126 Lisp_Object *vecp, *end;
@@ -6454,8 +6446,7 @@ DEFUN ("internal-show-cursor", Finternal_show_cursor,
6454WINDOW nil means use the selected window. SHOW non-nil means 6446WINDOW nil means use the selected window. SHOW non-nil means
6455show a cursor in WINDOW in the next redisplay. SHOW nil means 6447show a cursor in WINDOW in the next redisplay. SHOW nil means
6456don't show a cursor. */) 6448don't show a cursor. */)
6457 (window, show) 6449 (Lisp_Object window, Lisp_Object show)
6458 Lisp_Object window, show;
6459{ 6450{
6460 /* Don't change cursor state while redisplaying. This could confuse 6451 /* Don't change cursor state while redisplaying. This could confuse
6461 output routines. */ 6452 output routines. */
@@ -6477,8 +6468,7 @@ DEFUN ("internal-show-cursor-p", Finternal_show_cursor_p,
6477 Sinternal_show_cursor_p, 0, 1, 0, 6468 Sinternal_show_cursor_p, 0, 1, 0,
6478 doc: /* Value is non-nil if next redisplay will display a cursor in WINDOW. 6469 doc: /* Value is non-nil if next redisplay will display a cursor in WINDOW.
6479WINDOW nil or omitted means report on the selected window. */) 6470WINDOW nil or omitted means report on the selected window. */)
6480 (window) 6471 (Lisp_Object window)
6481 Lisp_Object window;
6482{ 6472{
6483 struct window *w; 6473 struct window *w;
6484 6474
@@ -6494,7 +6484,7 @@ WINDOW nil or omitted means report on the selected window. */)
6494DEFUN ("last-nonminibuffer-frame", Flast_nonminibuf_frame, 6484DEFUN ("last-nonminibuffer-frame", Flast_nonminibuf_frame,
6495 Slast_nonminibuf_frame, 0, 0, 0, 6485 Slast_nonminibuf_frame, 0, 0, 0,
6496 doc: /* Value is last nonminibuffer frame. */) 6486 doc: /* Value is last nonminibuffer frame. */)
6497 () 6487 (void)
6498{ 6488{
6499 Lisp_Object frame = Qnil; 6489 Lisp_Object frame = Qnil;
6500 6490
diff --git a/src/doc.c b/src/doc.c
index ce4c1ddda6a..a8f6217c4ce 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -341,8 +341,7 @@ DEFUN ("documentation", Fdocumentation, Sdocumentation, 1, 2, 0,
341 doc: /* Return the documentation string of FUNCTION. 341 doc: /* Return the documentation string of FUNCTION.
342Unless a non-nil second argument RAW is given, the 342Unless a non-nil second argument RAW is given, the
343string is passed through `substitute-command-keys'. */) 343string is passed through `substitute-command-keys'. */)
344 (function, raw) 344 (Lisp_Object function, Lisp_Object raw)
345 Lisp_Object function, raw;
346{ 345{
347 Lisp_Object fun; 346 Lisp_Object fun;
348 Lisp_Object funcar; 347 Lisp_Object funcar;
@@ -469,8 +468,7 @@ Third argument RAW omitted or nil means pass the result through
469This differs from `get' in that it can refer to strings stored in the 468This differs from `get' in that it can refer to strings stored in the
470`etc/DOC' file; and that it evaluates documentation properties that 469`etc/DOC' file; and that it evaluates documentation properties that
471aren't strings. */) 470aren't strings. */)
472 (symbol, prop, raw) 471 (Lisp_Object symbol, Lisp_Object prop, Lisp_Object raw)
473 Lisp_Object symbol, prop, raw;
474{ 472{
475 int try_reload = 1; 473 int try_reload = 1;
476 Lisp_Object tem; 474 Lisp_Object tem;
@@ -558,8 +556,7 @@ The function takes one argument, FILENAME, a string;
558it specifies the file name (without a directory) of the DOC file. 556it specifies the file name (without a directory) of the DOC file.
559That file is found in `../etc' now; later, when the dumped Emacs is run, 557That file is found in `../etc' now; later, when the dumped Emacs is run,
560the same file name is found in the `doc-directory'. */) 558the same file name is found in the `doc-directory'. */)
561 (filename) 559 (Lisp_Object filename)
562 Lisp_Object filename;
563{ 560{
564 int fd; 561 int fd;
565 char buf[1024 + 1]; 562 char buf[1024 + 1];
@@ -707,8 +704,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
707 704
708Returns original STRING if no substitutions were made. Otherwise, 705Returns original STRING if no substitutions were made. Otherwise,
709a new string, without any text properties, is returned. */) 706a new string, without any text properties, is returned. */)
710 (string) 707 (Lisp_Object string)
711 Lisp_Object string;
712{ 708{
713 unsigned char *buf; 709 unsigned char *buf;
714 int changed = 0; 710 int changed = 0;
diff --git a/src/dosfns.c b/src/dosfns.c
index e31f25203e9..5be0a363da8 100644
--- a/src/dosfns.c
+++ b/src/dosfns.c
@@ -55,8 +55,7 @@ Return the updated REGISTER vector.
55INTERRUPT should be an integer in the range 0 to 255. 55INTERRUPT should be an integer in the range 0 to 255.
56REGISTERS should be a vector produced by `make-register' and 56REGISTERS should be a vector produced by `make-register' and
57`set-register-value'. */) 57`set-register-value'. */)
58 (interrupt, registers) 58 (Lisp_Object interrupt, Lisp_Object registers)
59 Lisp_Object interrupt, registers;
60{ 59{
61 register int i; 60 register int i;
62 int no; 61 int no;
@@ -97,8 +96,7 @@ REGISTERS should be a vector produced by `make-register' and
97DEFUN ("msdos-memget", Fdos_memget, Sdos_memget, 2, 2, 0, 96DEFUN ("msdos-memget", Fdos_memget, Sdos_memget, 2, 2, 0,
98 doc: /* Read DOS memory at offset ADDRESS into VECTOR. 97 doc: /* Read DOS memory at offset ADDRESS into VECTOR.
99Return the updated VECTOR. */) 98Return the updated VECTOR. */)
100 (address, vector) 99 (Lisp_Object address, Lisp_Object vector)
101 Lisp_Object address, vector;
102{ 100{
103 register int i; 101 register int i;
104 int offs, len; 102 int offs, len;
@@ -122,8 +120,7 @@ Return the updated VECTOR. */)
122 120
123DEFUN ("msdos-memput", Fdos_memput, Sdos_memput, 2, 2, 0, 121DEFUN ("msdos-memput", Fdos_memput, Sdos_memput, 2, 2, 0,
124 doc: /* Write DOS memory at offset ADDRESS from VECTOR. */) 122 doc: /* Write DOS memory at offset ADDRESS from VECTOR. */)
125 (address, vector) 123 (Lisp_Object address, Lisp_Object vector)
126 Lisp_Object address, vector;
127{ 124{
128 register int i; 125 register int i;
129 int offs, len; 126 int offs, len;
@@ -153,8 +150,7 @@ DEFUN ("msdos-set-keyboard", Fmsdos_set_keyboard, Smsdos_set_keyboard, 1, 2, 0,
153If the optional argument ALLKEYS is non-nil, the keyboard is mapped for 150If the optional argument ALLKEYS is non-nil, the keyboard is mapped for
154all keys; otherwise it is only used when the ALT key is pressed. 151all keys; otherwise it is only used when the ALT key is pressed.
155The current keyboard layout is available in dos-keyboard-code. */) 152The current keyboard layout is available in dos-keyboard-code. */)
156 (country_code, allkeys) 153 (Lisp_Object country_code, Lisp_Object allkeys)
157 Lisp_Object country_code, allkeys;
158{ 154{
159 CHECK_NUMBER (country_code); 155 CHECK_NUMBER (country_code);
160 if (!dos_set_keyboard (XINT (country_code), !NILP (allkeys))) 156 if (!dos_set_keyboard (XINT (country_code), !NILP (allkeys)))
@@ -168,7 +164,7 @@ The current keyboard layout is available in dos-keyboard-code. */)
168 164
169DEFUN ("msdos-mouse-p", Fmsdos_mouse_p, Smsdos_mouse_p, 0, 0, 0, 165DEFUN ("msdos-mouse-p", Fmsdos_mouse_p, Smsdos_mouse_p, 0, 0, 0,
170 doc: /* Report whether a mouse is present. */) 166 doc: /* Report whether a mouse is present. */)
171 () 167 (void)
172{ 168{
173 if (have_mouse) 169 if (have_mouse)
174 return Qt; 170 return Qt;
@@ -179,7 +175,7 @@ DEFUN ("msdos-mouse-p", Fmsdos_mouse_p, Smsdos_mouse_p, 0, 0, 0,
179 175
180DEFUN ("msdos-mouse-init", Fmsdos_mouse_init, Smsdos_mouse_init, 0, 0, "", 176DEFUN ("msdos-mouse-init", Fmsdos_mouse_init, Smsdos_mouse_init, 0, 0, "",
181 doc: /* Initialize and enable mouse if available. */) 177 doc: /* Initialize and enable mouse if available. */)
182 () 178 (void)
183{ 179{
184 if (have_mouse) 180 if (have_mouse)
185 { 181 {
@@ -192,7 +188,7 @@ DEFUN ("msdos-mouse-init", Fmsdos_mouse_init, Smsdos_mouse_init, 0, 0, "",
192 188
193DEFUN ("msdos-mouse-enable", Fmsdos_mouse_enable, Smsdos_mouse_enable, 0, 0, "", 189DEFUN ("msdos-mouse-enable", Fmsdos_mouse_enable, Smsdos_mouse_enable, 0, 0, "",
194 doc: /* Enable mouse if available. */) 190 doc: /* Enable mouse if available. */)
195 () 191 (void)
196{ 192{
197 if (have_mouse) 193 if (have_mouse)
198 { 194 {
@@ -204,7 +200,7 @@ DEFUN ("msdos-mouse-enable", Fmsdos_mouse_enable, Smsdos_mouse_enable, 0, 0, "",
204 200
205DEFUN ("msdos-mouse-disable", Fmsdos_mouse_disable, Smsdos_mouse_disable, 0, 0, "", 201DEFUN ("msdos-mouse-disable", Fmsdos_mouse_disable, Smsdos_mouse_disable, 0, 0, "",
206 doc: /* Disable mouse if available. */) 202 doc: /* Disable mouse if available. */)
207 () 203 (void)
208{ 204{
209 mouse_off (); 205 mouse_off ();
210 if (have_mouse) have_mouse = -1; 206 if (have_mouse) have_mouse = -1;
@@ -214,7 +210,7 @@ DEFUN ("msdos-mouse-disable", Fmsdos_mouse_disable, Smsdos_mouse_disable, 0, 0,
214DEFUN ("insert-startup-screen", Finsert_startup_screen, Sinsert_startup_screen, 0, 0, "", 210DEFUN ("insert-startup-screen", Finsert_startup_screen, Sinsert_startup_screen, 0, 0, "",
215 doc: /* Insert copy of screen contents prior to starting Emacs. 211 doc: /* Insert copy of screen contents prior to starting Emacs.
216Return nil if startup screen is not available. */) 212Return nil if startup screen is not available. */)
217 () 213 (void)
218{ 214{
219 char *s; 215 char *s;
220 int rows, cols, i, j; 216 int rows, cols, i, j;
@@ -509,8 +505,7 @@ Value is a list of floats (TOTAL FREE AVAIL), where TOTAL is the total
509storage of the file system, FREE is the free storage, and AVAIL is the 505storage of the file system, FREE is the free storage, and AVAIL is the
510storage available to a non-superuser. All 3 numbers are in bytes. 506storage available to a non-superuser. All 3 numbers are in bytes.
511If the underlying system call fails, value is nil. */) 507If the underlying system call fails, value is nil. */)
512 (filename) 508 (Lisp_Object filename)
513 Lisp_Object filename;
514{ 509{
515 struct statfs stfs; 510 struct statfs stfs;
516 Lisp_Object encoded, value; 511 Lisp_Object encoded, value;
diff --git a/src/editfns.c b/src/editfns.c
index ba27d4a76e0..fe493162c01 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -209,8 +209,7 @@ init_editfns (void)
209DEFUN ("char-to-string", Fchar_to_string, Schar_to_string, 1, 1, 0, 209DEFUN ("char-to-string", Fchar_to_string, Schar_to_string, 1, 1, 0,
210 doc: /* Convert arg CHAR to a string containing that character. 210 doc: /* Convert arg CHAR to a string containing that character.
211usage: (char-to-string CHAR) */) 211usage: (char-to-string CHAR) */)
212 (character) 212 (Lisp_Object character)
213 Lisp_Object character;
214{ 213{
215 int len; 214 int len;
216 unsigned char str[MAX_MULTIBYTE_LENGTH]; 215 unsigned char str[MAX_MULTIBYTE_LENGTH];
@@ -223,8 +222,7 @@ usage: (char-to-string CHAR) */)
223 222
224DEFUN ("byte-to-string", Fbyte_to_string, Sbyte_to_string, 1, 1, 0, 223DEFUN ("byte-to-string", Fbyte_to_string, Sbyte_to_string, 1, 1, 0,
225 doc: /* Convert arg BYTE to a string containing that byte. */) 224 doc: /* Convert arg BYTE to a string containing that byte. */)
226 (byte) 225 (Lisp_Object byte)
227 Lisp_Object byte;
228{ 226{
229 unsigned char b; 227 unsigned char b;
230 CHECK_NUMBER (byte); 228 CHECK_NUMBER (byte);
@@ -235,8 +233,7 @@ DEFUN ("byte-to-string", Fbyte_to_string, Sbyte_to_string, 1, 1, 0,
235DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0, 233DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0,
236 doc: /* Convert arg STRING to a character, the first character of that string. 234 doc: /* Convert arg STRING to a character, the first character of that string.
237A multibyte character is handled correctly. */) 235A multibyte character is handled correctly. */)
238 (string) 236 (register Lisp_Object string)
239 register Lisp_Object string;
240{ 237{
241 register Lisp_Object val; 238 register Lisp_Object val;
242 CHECK_STRING (string); 239 CHECK_STRING (string);
@@ -264,7 +261,7 @@ buildmark (int charpos, int bytepos)
264DEFUN ("point", Fpoint, Spoint, 0, 0, 0, 261DEFUN ("point", Fpoint, Spoint, 0, 0, 0,
265 doc: /* Return value of point, as an integer. 262 doc: /* Return value of point, as an integer.
266Beginning of buffer is position (point-min). */) 263Beginning of buffer is position (point-min). */)
267 () 264 (void)
268{ 265{
269 Lisp_Object temp; 266 Lisp_Object temp;
270 XSETFASTINT (temp, PT); 267 XSETFASTINT (temp, PT);
@@ -273,7 +270,7 @@ Beginning of buffer is position (point-min). */)
273 270
274DEFUN ("point-marker", Fpoint_marker, Spoint_marker, 0, 0, 0, 271DEFUN ("point-marker", Fpoint_marker, Spoint_marker, 0, 0, 0,
275 doc: /* Return value of point, as a marker object. */) 272 doc: /* Return value of point, as a marker object. */)
276 () 273 (void)
277{ 274{
278 return buildmark (PT, PT_BYTE); 275 return buildmark (PT, PT_BYTE);
279} 276}
@@ -294,8 +291,7 @@ DEFUN ("goto-char", Fgoto_char, Sgoto_char, 1, 1, "NGoto char: ",
294Beginning of buffer is position (point-min), end is (point-max). 291Beginning of buffer is position (point-min), end is (point-max).
295 292
296The return value is POSITION. */) 293The return value is POSITION. */)
297 (position) 294 (register Lisp_Object position)
298 register Lisp_Object position;
299{ 295{
300 int pos; 296 int pos;
301 297
@@ -347,14 +343,14 @@ region_limit (int beginningp)
347 343
348DEFUN ("region-beginning", Fregion_beginning, Sregion_beginning, 0, 0, 0, 344DEFUN ("region-beginning", Fregion_beginning, Sregion_beginning, 0, 0, 0,
349 doc: /* Return position of beginning of region, as an integer. */) 345 doc: /* Return position of beginning of region, as an integer. */)
350 () 346 (void)
351{ 347{
352 return region_limit (1); 348 return region_limit (1);
353} 349}
354 350
355DEFUN ("region-end", Fregion_end, Sregion_end, 0, 0, 0, 351DEFUN ("region-end", Fregion_end, Sregion_end, 0, 0, 0,
356 doc: /* Return position of end of region, as an integer. */) 352 doc: /* Return position of end of region, as an integer. */)
357 () 353 (void)
358{ 354{
359 return region_limit (0); 355 return region_limit (0);
360} 356}
@@ -363,7 +359,7 @@ DEFUN ("mark-marker", Fmark_marker, Smark_marker, 0, 0, 0,
363 doc: /* Return this buffer's mark, as a marker object. 359 doc: /* Return this buffer's mark, as a marker object.
364Watch out! Moving this marker changes the mark position. 360Watch out! Moving this marker changes the mark position.
365If you set the marker not to point anywhere, the buffer will have no mark. */) 361If you set the marker not to point anywhere, the buffer will have no mark. */)
366 () 362 (void)
367{ 363{
368 return current_buffer->mark; 364 return current_buffer->mark;
369} 365}
@@ -639,8 +635,7 @@ DEFUN ("delete-field", Fdelete_field, Sdelete_field, 0, 1, 0,
639 doc: /* Delete the field surrounding POS. 635 doc: /* Delete the field surrounding POS.
640A field is a region of text with the same `field' property. 636A field is a region of text with the same `field' property.
641If POS is nil, the value of point is used for POS. */) 637If POS is nil, the value of point is used for POS. */)
642 (pos) 638 (Lisp_Object pos)
643 Lisp_Object pos;
644{ 639{
645 int beg, end; 640 int beg, end;
646 find_field (pos, Qnil, Qnil, &beg, Qnil, &end); 641 find_field (pos, Qnil, Qnil, &beg, Qnil, &end);
@@ -653,8 +648,7 @@ DEFUN ("field-string", Ffield_string, Sfield_string, 0, 1, 0,
653 doc: /* Return the contents of the field surrounding POS as a string. 648 doc: /* Return the contents of the field surrounding POS as a string.
654A field is a region of text with the same `field' property. 649A field is a region of text with the same `field' property.
655If POS is nil, the value of point is used for POS. */) 650If POS is nil, the value of point is used for POS. */)
656 (pos) 651 (Lisp_Object pos)
657 Lisp_Object pos;
658{ 652{
659 int beg, end; 653 int beg, end;
660 find_field (pos, Qnil, Qnil, &beg, Qnil, &end); 654 find_field (pos, Qnil, Qnil, &beg, Qnil, &end);
@@ -665,8 +659,7 @@ DEFUN ("field-string-no-properties", Ffield_string_no_properties, Sfield_string_
665 doc: /* Return the contents of the field around POS, without text properties. 659 doc: /* Return the contents of the field around POS, without text properties.
666A field is a region of text with the same `field' property. 660A field is a region of text with the same `field' property.
667If POS is nil, the value of point is used for POS. */) 661If POS is nil, the value of point is used for POS. */)
668 (pos) 662 (Lisp_Object pos)
669 Lisp_Object pos;
670{ 663{
671 int beg, end; 664 int beg, end;
672 find_field (pos, Qnil, Qnil, &beg, Qnil, &end); 665 find_field (pos, Qnil, Qnil, &beg, Qnil, &end);
@@ -681,8 +674,7 @@ If ESCAPE-FROM-EDGE is non-nil and POS is at the beginning of its
681field, then the beginning of the *previous* field is returned. 674field, then the beginning of the *previous* field is returned.
682If LIMIT is non-nil, it is a buffer position; if the beginning of the field 675If LIMIT is non-nil, it is a buffer position; if the beginning of the field
683is before LIMIT, then LIMIT will be returned instead. */) 676is before LIMIT, then LIMIT will be returned instead. */)
684 (pos, escape_from_edge, limit) 677 (Lisp_Object pos, Lisp_Object escape_from_edge, Lisp_Object limit)
685 Lisp_Object pos, escape_from_edge, limit;
686{ 678{
687 int beg; 679 int beg;
688 find_field (pos, escape_from_edge, limit, &beg, Qnil, 0); 680 find_field (pos, escape_from_edge, limit, &beg, Qnil, 0);
@@ -697,8 +689,7 @@ If ESCAPE-FROM-EDGE is non-nil and POS is at the end of its field,
697then the end of the *following* field is returned. 689then the end of the *following* field is returned.
698If LIMIT is non-nil, it is a buffer position; if the end of the field 690If LIMIT is non-nil, it is a buffer position; if the end of the field
699is after LIMIT, then LIMIT will be returned instead. */) 691is after LIMIT, then LIMIT will be returned instead. */)
700 (pos, escape_from_edge, limit) 692 (Lisp_Object pos, Lisp_Object escape_from_edge, Lisp_Object limit)
701 Lisp_Object pos, escape_from_edge, limit;
702{ 693{
703 int end; 694 int end;
704 find_field (pos, escape_from_edge, Qnil, 0, limit, &end); 695 find_field (pos, escape_from_edge, Qnil, 0, limit, &end);
@@ -732,9 +723,7 @@ If the optional argument INHIBIT-CAPTURE-PROPERTY is non-nil, and OLD-POS has
732a non-nil property of that name, then any field boundaries are ignored. 723a non-nil property of that name, then any field boundaries are ignored.
733 724
734Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil. */) 725Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil. */)
735 (new_pos, old_pos, escape_from_edge, only_in_line, inhibit_capture_property) 726 (Lisp_Object new_pos, Lisp_Object old_pos, Lisp_Object escape_from_edge, Lisp_Object only_in_line, Lisp_Object inhibit_capture_property)
736 Lisp_Object new_pos, old_pos;
737 Lisp_Object escape_from_edge, only_in_line, inhibit_capture_property;
738{ 727{
739 /* If non-zero, then the original point, before re-positioning. */ 728 /* If non-zero, then the original point, before re-positioning. */
740 int orig_point = 0; 729 int orig_point = 0;
@@ -829,8 +818,7 @@ starts at point, the scan stops as soon as it starts. To ignore field
829boundaries bind `inhibit-field-text-motion' to t. 818boundaries bind `inhibit-field-text-motion' to t.
830 819
831This function does not move point. */) 820This function does not move point. */)
832 (n) 821 (Lisp_Object n)
833 Lisp_Object n;
834{ 822{
835 int orig, orig_byte, end; 823 int orig, orig_byte, end;
836 int count = SPECPDL_INDEX (); 824 int count = SPECPDL_INDEX ();
@@ -868,8 +856,7 @@ at point, the scan stops as soon as it starts. To ignore field
868boundaries bind `inhibit-field-text-motion' to t. 856boundaries bind `inhibit-field-text-motion' to t.
869 857
870This function does not move point. */) 858This function does not move point. */)
871 (n) 859 (Lisp_Object n)
872 Lisp_Object n;
873{ 860{
874 int end_pos; 861 int end_pos;
875 int orig = PT; 862 int orig = PT;
@@ -1000,8 +987,7 @@ If you only want to save the current buffer but not point nor mark,
1000then just use `save-current-buffer', or even `with-current-buffer'. 987then just use `save-current-buffer', or even `with-current-buffer'.
1001 988
1002usage: (save-excursion &rest BODY) */) 989usage: (save-excursion &rest BODY) */)
1003 (args) 990 (Lisp_Object args)
1004 Lisp_Object args;
1005{ 991{
1006 register Lisp_Object val; 992 register Lisp_Object val;
1007 int count = SPECPDL_INDEX (); 993 int count = SPECPDL_INDEX ();
@@ -1016,8 +1002,7 @@ DEFUN ("save-current-buffer", Fsave_current_buffer, Ssave_current_buffer, 0, UNE
1016 doc: /* Save the current buffer; execute BODY; restore the current buffer. 1002 doc: /* Save the current buffer; execute BODY; restore the current buffer.
1017Executes BODY just like `progn'. 1003Executes BODY just like `progn'.
1018usage: (save-current-buffer &rest BODY) */) 1004usage: (save-current-buffer &rest BODY) */)
1019 (args) 1005 (Lisp_Object args)
1020 Lisp_Object args;
1021{ 1006{
1022 Lisp_Object val; 1007 Lisp_Object val;
1023 int count = SPECPDL_INDEX (); 1008 int count = SPECPDL_INDEX ();
@@ -1031,8 +1016,7 @@ usage: (save-current-buffer &rest BODY) */)
1031DEFUN ("buffer-size", Fbufsize, Sbufsize, 0, 1, 0, 1016DEFUN ("buffer-size", Fbufsize, Sbufsize, 0, 1, 0,
1032 doc: /* Return the number of characters in the current buffer. 1017 doc: /* Return the number of characters in the current buffer.
1033If BUFFER, return the number of characters in that buffer instead. */) 1018If BUFFER, return the number of characters in that buffer instead. */)
1034 (buffer) 1019 (Lisp_Object buffer)
1035 Lisp_Object buffer;
1036{ 1020{
1037 if (NILP (buffer)) 1021 if (NILP (buffer))
1038 return make_number (Z - BEG); 1022 return make_number (Z - BEG);
@@ -1047,7 +1031,7 @@ If BUFFER, return the number of characters in that buffer instead. */)
1047DEFUN ("point-min", Fpoint_min, Spoint_min, 0, 0, 0, 1031DEFUN ("point-min", Fpoint_min, Spoint_min, 0, 0, 0,
1048 doc: /* Return the minimum permissible value of point in the current buffer. 1032 doc: /* Return the minimum permissible value of point in the current buffer.
1049This is 1, unless narrowing (a buffer restriction) is in effect. */) 1033This is 1, unless narrowing (a buffer restriction) is in effect. */)
1050 () 1034 (void)
1051{ 1035{
1052 Lisp_Object temp; 1036 Lisp_Object temp;
1053 XSETFASTINT (temp, BEGV); 1037 XSETFASTINT (temp, BEGV);
@@ -1057,7 +1041,7 @@ This is 1, unless narrowing (a buffer restriction) is in effect. */)
1057DEFUN ("point-min-marker", Fpoint_min_marker, Spoint_min_marker, 0, 0, 0, 1041DEFUN ("point-min-marker", Fpoint_min_marker, Spoint_min_marker, 0, 0, 0,
1058 doc: /* Return a marker to the minimum permissible value of point in this buffer. 1042 doc: /* Return a marker to the minimum permissible value of point in this buffer.
1059This is the beginning, unless narrowing (a buffer restriction) is in effect. */) 1043This is the beginning, unless narrowing (a buffer restriction) is in effect. */)
1060 () 1044 (void)
1061{ 1045{
1062 return buildmark (BEGV, BEGV_BYTE); 1046 return buildmark (BEGV, BEGV_BYTE);
1063} 1047}
@@ -1066,7 +1050,7 @@ DEFUN ("point-max", Fpoint_max, Spoint_max, 0, 0, 0,
1066 doc: /* Return the maximum permissible value of point in the current buffer. 1050 doc: /* Return the maximum permissible value of point in the current buffer.
1067This is (1+ (buffer-size)), unless narrowing (a buffer restriction) 1051This is (1+ (buffer-size)), unless narrowing (a buffer restriction)
1068is in effect, in which case it is less. */) 1052is in effect, in which case it is less. */)
1069 () 1053 (void)
1070{ 1054{
1071 Lisp_Object temp; 1055 Lisp_Object temp;
1072 XSETFASTINT (temp, ZV); 1056 XSETFASTINT (temp, ZV);
@@ -1077,7 +1061,7 @@ DEFUN ("point-max-marker", Fpoint_max_marker, Spoint_max_marker, 0, 0, 0,
1077 doc: /* Return a marker to the maximum permissible value of point in this buffer. 1061 doc: /* Return a marker to the maximum permissible value of point in this buffer.
1078This is (1+ (buffer-size)), unless narrowing (a buffer restriction) 1062This is (1+ (buffer-size)), unless narrowing (a buffer restriction)
1079is in effect, in which case it is less. */) 1063is in effect, in which case it is less. */)
1080 () 1064 (void)
1081{ 1065{
1082 return buildmark (ZV, ZV_BYTE); 1066 return buildmark (ZV, ZV_BYTE);
1083} 1067}
@@ -1085,7 +1069,7 @@ is in effect, in which case it is less. */)
1085DEFUN ("gap-position", Fgap_position, Sgap_position, 0, 0, 0, 1069DEFUN ("gap-position", Fgap_position, Sgap_position, 0, 0, 0,
1086 doc: /* Return the position of the gap, in the current buffer. 1070 doc: /* Return the position of the gap, in the current buffer.
1087See also `gap-size'. */) 1071See also `gap-size'. */)
1088 () 1072 (void)
1089{ 1073{
1090 Lisp_Object temp; 1074 Lisp_Object temp;
1091 XSETFASTINT (temp, GPT); 1075 XSETFASTINT (temp, GPT);
@@ -1095,7 +1079,7 @@ See also `gap-size'. */)
1095DEFUN ("gap-size", Fgap_size, Sgap_size, 0, 0, 0, 1079DEFUN ("gap-size", Fgap_size, Sgap_size, 0, 0, 0,
1096 doc: /* Return the size of the current buffer's gap. 1080 doc: /* Return the size of the current buffer's gap.
1097See also `gap-position'. */) 1081See also `gap-position'. */)
1098 () 1082 (void)
1099{ 1083{
1100 Lisp_Object temp; 1084 Lisp_Object temp;
1101 XSETFASTINT (temp, GAP_SIZE); 1085 XSETFASTINT (temp, GAP_SIZE);
@@ -1105,8 +1089,7 @@ See also `gap-position'. */)
1105DEFUN ("position-bytes", Fposition_bytes, Sposition_bytes, 1, 1, 0, 1089DEFUN ("position-bytes", Fposition_bytes, Sposition_bytes, 1, 1, 0,
1106 doc: /* Return the byte position for character position POSITION. 1090 doc: /* Return the byte position for character position POSITION.
1107If POSITION is out of range, the value is nil. */) 1091If POSITION is out of range, the value is nil. */)
1108 (position) 1092 (Lisp_Object position)
1109 Lisp_Object position;
1110{ 1093{
1111 CHECK_NUMBER_COERCE_MARKER (position); 1094 CHECK_NUMBER_COERCE_MARKER (position);
1112 if (XINT (position) < BEG || XINT (position) > Z) 1095 if (XINT (position) < BEG || XINT (position) > Z)
@@ -1117,8 +1100,7 @@ If POSITION is out of range, the value is nil. */)
1117DEFUN ("byte-to-position", Fbyte_to_position, Sbyte_to_position, 1, 1, 0, 1100DEFUN ("byte-to-position", Fbyte_to_position, Sbyte_to_position, 1, 1, 0,
1118 doc: /* Return the character position for byte position BYTEPOS. 1101 doc: /* Return the character position for byte position BYTEPOS.
1119If BYTEPOS is out of range, the value is nil. */) 1102If BYTEPOS is out of range, the value is nil. */)
1120 (bytepos) 1103 (Lisp_Object bytepos)
1121 Lisp_Object bytepos;
1122{ 1104{
1123 CHECK_NUMBER (bytepos); 1105 CHECK_NUMBER (bytepos);
1124 if (XINT (bytepos) < BEG_BYTE || XINT (bytepos) > Z_BYTE) 1106 if (XINT (bytepos) < BEG_BYTE || XINT (bytepos) > Z_BYTE)
@@ -1129,7 +1111,7 @@ If BYTEPOS is out of range, the value is nil. */)
1129DEFUN ("following-char", Ffollowing_char, Sfollowing_char, 0, 0, 0, 1111DEFUN ("following-char", Ffollowing_char, Sfollowing_char, 0, 0, 0,
1130 doc: /* Return the character following point, as a number. 1112 doc: /* Return the character following point, as a number.
1131At the end of the buffer or accessible region, return 0. */) 1113At the end of the buffer or accessible region, return 0. */)
1132 () 1114 (void)
1133{ 1115{
1134 Lisp_Object temp; 1116 Lisp_Object temp;
1135 if (PT >= ZV) 1117 if (PT >= ZV)
@@ -1142,7 +1124,7 @@ At the end of the buffer or accessible region, return 0. */)
1142DEFUN ("preceding-char", Fprevious_char, Sprevious_char, 0, 0, 0, 1124DEFUN ("preceding-char", Fprevious_char, Sprevious_char, 0, 0, 0,
1143 doc: /* Return the character preceding point, as a number. 1125 doc: /* Return the character preceding point, as a number.
1144At the beginning of the buffer or accessible region, return 0. */) 1126At the beginning of the buffer or accessible region, return 0. */)
1145 () 1127 (void)
1146{ 1128{
1147 Lisp_Object temp; 1129 Lisp_Object temp;
1148 if (PT <= BEGV) 1130 if (PT <= BEGV)
@@ -1161,7 +1143,7 @@ At the beginning of the buffer or accessible region, return 0. */)
1161DEFUN ("bobp", Fbobp, Sbobp, 0, 0, 0, 1143DEFUN ("bobp", Fbobp, Sbobp, 0, 0, 0,
1162 doc: /* Return t if point is at the beginning of the buffer. 1144 doc: /* Return t if point is at the beginning of the buffer.
1163If the buffer is narrowed, this means the beginning of the narrowed part. */) 1145If the buffer is narrowed, this means the beginning of the narrowed part. */)
1164 () 1146 (void)
1165{ 1147{
1166 if (PT == BEGV) 1148 if (PT == BEGV)
1167 return Qt; 1149 return Qt;
@@ -1171,7 +1153,7 @@ If the buffer is narrowed, this means the beginning of the narrowed part. */)
1171DEFUN ("eobp", Feobp, Seobp, 0, 0, 0, 1153DEFUN ("eobp", Feobp, Seobp, 0, 0, 0,
1172 doc: /* Return t if point is at the end of the buffer. 1154 doc: /* Return t if point is at the end of the buffer.
1173If the buffer is narrowed, this means the end of the narrowed part. */) 1155If the buffer is narrowed, this means the end of the narrowed part. */)
1174 () 1156 (void)
1175{ 1157{
1176 if (PT == ZV) 1158 if (PT == ZV)
1177 return Qt; 1159 return Qt;
@@ -1180,7 +1162,7 @@ If the buffer is narrowed, this means the end of the narrowed part. */)
1180 1162
1181DEFUN ("bolp", Fbolp, Sbolp, 0, 0, 0, 1163DEFUN ("bolp", Fbolp, Sbolp, 0, 0, 0,
1182 doc: /* Return t if point is at the beginning of a line. */) 1164 doc: /* Return t if point is at the beginning of a line. */)
1183 () 1165 (void)
1184{ 1166{
1185 if (PT == BEGV || FETCH_BYTE (PT_BYTE - 1) == '\n') 1167 if (PT == BEGV || FETCH_BYTE (PT_BYTE - 1) == '\n')
1186 return Qt; 1168 return Qt;
@@ -1190,7 +1172,7 @@ DEFUN ("bolp", Fbolp, Sbolp, 0, 0, 0,
1190DEFUN ("eolp", Feolp, Seolp, 0, 0, 0, 1172DEFUN ("eolp", Feolp, Seolp, 0, 0, 0,
1191 doc: /* Return t if point is at the end of a line. 1173 doc: /* Return t if point is at the end of a line.
1192`End of a line' includes point being at the end of the buffer. */) 1174`End of a line' includes point being at the end of the buffer. */)
1193 () 1175 (void)
1194{ 1176{
1195 if (PT == ZV || FETCH_BYTE (PT_BYTE) == '\n') 1177 if (PT == ZV || FETCH_BYTE (PT_BYTE) == '\n')
1196 return Qt; 1178 return Qt;
@@ -1201,8 +1183,7 @@ DEFUN ("char-after", Fchar_after, Schar_after, 0, 1, 0,
1201 doc: /* Return character in current buffer at position POS. 1183 doc: /* Return character in current buffer at position POS.
1202POS is an integer or a marker and defaults to point. 1184POS is an integer or a marker and defaults to point.
1203If POS is out of range, the value is nil. */) 1185If POS is out of range, the value is nil. */)
1204 (pos) 1186 (Lisp_Object pos)
1205 Lisp_Object pos;
1206{ 1187{
1207 register int pos_byte; 1188 register int pos_byte;
1208 1189
@@ -1234,8 +1215,7 @@ DEFUN ("char-before", Fchar_before, Schar_before, 0, 1, 0,
1234 doc: /* Return character in current buffer preceding position POS. 1215 doc: /* Return character in current buffer preceding position POS.
1235POS is an integer or a marker and defaults to point. 1216POS is an integer or a marker and defaults to point.
1236If POS is out of range, the value is nil. */) 1217If POS is out of range, the value is nil. */)
1237 (pos) 1218 (Lisp_Object pos)
1238 Lisp_Object pos;
1239{ 1219{
1240 register Lisp_Object val; 1220 register Lisp_Object val;
1241 register int pos_byte; 1221 register int pos_byte;
@@ -1284,8 +1264,7 @@ that determines the value of this function.
1284 1264
1285If optional argument UID is an integer or a float, return the login name 1265If optional argument UID is an integer or a float, return the login name
1286of the user with that uid, or nil if there is no such user. */) 1266of the user with that uid, or nil if there is no such user. */)
1287 (uid) 1267 (Lisp_Object uid)
1288 Lisp_Object uid;
1289{ 1268{
1290 struct passwd *pw; 1269 struct passwd *pw;
1291 uid_t id; 1270 uid_t id;
@@ -1311,7 +1290,7 @@ DEFUN ("user-real-login-name", Fuser_real_login_name, Suser_real_login_name,
1311 doc: /* Return the name of the user's real uid, as a string. 1290 doc: /* Return the name of the user's real uid, as a string.
1312This ignores the environment variables LOGNAME and USER, so it differs from 1291This ignores the environment variables LOGNAME and USER, so it differs from
1313`user-login-name' when running under `su'. */) 1292`user-login-name' when running under `su'. */)
1314 () 1293 (void)
1315{ 1294{
1316 /* Set up the user name info if we didn't do it before. 1295 /* Set up the user name info if we didn't do it before.
1317 (That can happen if Emacs is dumpable 1296 (That can happen if Emacs is dumpable
@@ -1324,7 +1303,7 @@ This ignores the environment variables LOGNAME and USER, so it differs from
1324DEFUN ("user-uid", Fuser_uid, Suser_uid, 0, 0, 0, 1303DEFUN ("user-uid", Fuser_uid, Suser_uid, 0, 0, 0,
1325 doc: /* Return the effective uid of Emacs. 1304 doc: /* Return the effective uid of Emacs.
1326Value is an integer or a float, depending on the value. */) 1305Value is an integer or a float, depending on the value. */)
1327 () 1306 (void)
1328{ 1307{
1329 /* Assignment to EMACS_INT stops GCC whining about limited range of 1308 /* Assignment to EMACS_INT stops GCC whining about limited range of
1330 data type. */ 1309 data type. */
@@ -1340,7 +1319,7 @@ Value is an integer or a float, depending on the value. */)
1340DEFUN ("user-real-uid", Fuser_real_uid, Suser_real_uid, 0, 0, 0, 1319DEFUN ("user-real-uid", Fuser_real_uid, Suser_real_uid, 0, 0, 0,
1341 doc: /* Return the real uid of Emacs. 1320 doc: /* Return the real uid of Emacs.
1342Value is an integer or a float, depending on the value. */) 1321Value is an integer or a float, depending on the value. */)
1343 () 1322 (void)
1344{ 1323{
1345 /* Assignment to EMACS_INT stops GCC whining about limited range of 1324 /* Assignment to EMACS_INT stops GCC whining about limited range of
1346 data type. */ 1325 data type. */
@@ -1362,8 +1341,7 @@ If optional argument UID is an integer or float, return the full name
1362of the user with that uid, or nil if there is no such user. 1341of the user with that uid, or nil if there is no such user.
1363If UID is a string, return the full name of the user with that login 1342If UID is a string, return the full name of the user with that login
1364name, or nil if there is no such user. */) 1343name, or nil if there is no such user. */)
1365 (uid) 1344 (Lisp_Object uid)
1366 Lisp_Object uid;
1367{ 1345{
1368 struct passwd *pw; 1346 struct passwd *pw;
1369 register unsigned char *p, *q; 1347 register unsigned char *p, *q;
@@ -1419,7 +1397,7 @@ name, or nil if there is no such user. */)
1419 1397
1420DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0, 1398DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0,
1421 doc: /* Return the host name of the machine you are running on, as a string. */) 1399 doc: /* Return the host name of the machine you are running on, as a string. */)
1422 () 1400 (void)
1423{ 1401{
1424 return Vsystem_name; 1402 return Vsystem_name;
1425} 1403}
@@ -1446,7 +1424,7 @@ get_operating_system_release (void)
1446 1424
1447DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0, 1425DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0,
1448 doc: /* Return the process ID of Emacs, as an integer. */) 1426 doc: /* Return the process ID of Emacs, as an integer. */)
1449 () 1427 (void)
1450{ 1428{
1451 return make_number (getpid ()); 1429 return make_number (getpid ());
1452} 1430}
@@ -1460,7 +1438,7 @@ count.
1460 1438
1461The microsecond count is zero on systems that do not provide 1439The microsecond count is zero on systems that do not provide
1462resolution finer than a second. */) 1440resolution finer than a second. */)
1463 () 1441 (void)
1464{ 1442{
1465 EMACS_TIME t; 1443 EMACS_TIME t;
1466 1444
@@ -1481,7 +1459,7 @@ count.
1481On systems that can't determine the run time, `get-internal-run-time' 1459On systems that can't determine the run time, `get-internal-run-time'
1482does the same thing as `current-time'. The microsecond count is zero 1460does the same thing as `current-time'. The microsecond count is zero
1483on systems that do not provide resolution finer than a second. */) 1461on systems that do not provide resolution finer than a second. */)
1484 () 1462 (void)
1485{ 1463{
1486#ifdef HAVE_GETRUSAGE 1464#ifdef HAVE_GETRUSAGE
1487 struct rusage usage; 1465 struct rusage usage;
@@ -1572,8 +1550,7 @@ have the form (HIGH . LOW), but this is considered obsolete.
1572WARNING: Since the result is floating point, it may not be exact. 1550WARNING: Since the result is floating point, it may not be exact.
1573If precise time stamps are required, use either `current-time', 1551If precise time stamps are required, use either `current-time',
1574or (if you need time as a string) `format-time-string'. */) 1552or (if you need time as a string) `format-time-string'. */)
1575 (specified_time) 1553 (Lisp_Object specified_time)
1576 Lisp_Object specified_time;
1577{ 1554{
1578 time_t sec; 1555 time_t sec;
1579 int usec; 1556 int usec;
@@ -1683,8 +1660,7 @@ The modifiers are `E' and `O'. For certain characters X,
1683%OX is like %X, but uses the locale's number symbols. 1660%OX is like %X, but uses the locale's number symbols.
1684 1661
1685For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". */) 1662For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". */)
1686 (format_string, time, universal) 1663 (Lisp_Object format_string, Lisp_Object time, Lisp_Object universal)
1687 Lisp_Object format_string, time, universal;
1688{ 1664{
1689 time_t value; 1665 time_t value;
1690 int size; 1666 int size;
@@ -1751,8 +1727,7 @@ where 0 is Sunday. DST is t if daylight saving time is in effect,
1751otherwise nil. ZONE is an integer indicating the number of seconds 1727otherwise nil. ZONE is an integer indicating the number of seconds
1752east of Greenwich. (Note that Common Lisp has different meanings for 1728east of Greenwich. (Note that Common Lisp has different meanings for
1753DOW and ZONE.) */) 1729DOW and ZONE.) */)
1754 (specified_time) 1730 (Lisp_Object specified_time)
1755 Lisp_Object specified_time;
1756{ 1731{
1757 time_t time_spec; 1732 time_t time_spec;
1758 struct tm save_tm; 1733 struct tm save_tm;
@@ -1812,9 +1787,7 @@ Years before 1970 are not guaranteed to work. On some systems,
1812year values as low as 1901 do work. 1787year values as low as 1901 do work.
1813 1788
1814usage: (encode-time SECOND MINUTE HOUR DAY MONTH YEAR &optional ZONE) */) 1789usage: (encode-time SECOND MINUTE HOUR DAY MONTH YEAR &optional ZONE) */)
1815 (nargs, args) 1790 (int nargs, register Lisp_Object *args)
1816 int nargs;
1817 register Lisp_Object *args;
1818{ 1791{
1819 time_t time; 1792 time_t time;
1820 struct tm tm; 1793 struct tm tm;
@@ -1900,8 +1873,7 @@ current time. The argument should have the form (HIGH LOW . IGNORED).
1900Thus, you can use times obtained from `current-time' and from 1873Thus, you can use times obtained from `current-time' and from
1901`file-attributes'. SPECIFIED-TIME can also have the form (HIGH . LOW), 1874`file-attributes'. SPECIFIED-TIME can also have the form (HIGH . LOW),
1902but this is considered obsolete. */) 1875but this is considered obsolete. */)
1903 (specified_time) 1876 (Lisp_Object specified_time)
1904 Lisp_Object specified_time;
1905{ 1877{
1906 time_t value; 1878 time_t value;
1907 struct tm *tm; 1879 struct tm *tm;
@@ -1963,8 +1935,7 @@ have the form (HIGH . LOW), but this is considered obsolete.
1963Some operating systems cannot provide all this information to Emacs; 1935Some operating systems cannot provide all this information to Emacs;
1964in this case, `current-time-zone' returns a list containing nil for 1936in this case, `current-time-zone' returns a list containing nil for
1965the data it can't find. */) 1937the data it can't find. */)
1966 (specified_time) 1938 (Lisp_Object specified_time)
1967 Lisp_Object specified_time;
1968{ 1939{
1969 time_t value; 1940 time_t value;
1970 struct tm *t; 1941 struct tm *t;
@@ -2028,8 +1999,7 @@ DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0,
2028 doc: /* Set the local time zone using TZ, a string specifying a time zone rule. 1999 doc: /* Set the local time zone using TZ, a string specifying a time zone rule.
2029If TZ is nil, use implementation-defined default time zone information. 2000If TZ is nil, use implementation-defined default time zone information.
2030If TZ is t, use Universal Time. */) 2001If TZ is t, use Universal Time. */)
2031 (tz) 2002 (Lisp_Object tz)
2032 Lisp_Object tz;
2033{ 2003{
2034 char *tzstring; 2004 char *tzstring;
2035 2005
@@ -2225,9 +2195,7 @@ buffer; to accomplish this, apply `string-as-multibyte' to the string
2225and insert the result. 2195and insert the result.
2226 2196
2227usage: (insert &rest ARGS) */) 2197usage: (insert &rest ARGS) */)
2228 (nargs, args) 2198 (int nargs, register Lisp_Object *args)
2229 int nargs;
2230 register Lisp_Object *args;
2231{ 2199{
2232 general_insert_function (insert, insert_from_string, 0, nargs, args); 2200 general_insert_function (insert, insert_from_string, 0, nargs, args);
2233 return Qnil; 2201 return Qnil;
@@ -2246,9 +2214,7 @@ If the current buffer is unibyte, multibyte strings are converted
2246to unibyte for insertion. 2214to unibyte for insertion.
2247 2215
2248usage: (insert-and-inherit &rest ARGS) */) 2216usage: (insert-and-inherit &rest ARGS) */)
2249 (nargs, args) 2217 (int nargs, register Lisp_Object *args)
2250 int nargs;
2251 register Lisp_Object *args;
2252{ 2218{
2253 general_insert_function (insert_and_inherit, insert_from_string, 1, 2219 general_insert_function (insert_and_inherit, insert_from_string, 1,
2254 nargs, args); 2220 nargs, args);
@@ -2265,9 +2231,7 @@ If the current buffer is unibyte, multibyte strings are converted
2265to unibyte for insertion. 2231to unibyte for insertion.
2266 2232
2267usage: (insert-before-markers &rest ARGS) */) 2233usage: (insert-before-markers &rest ARGS) */)
2268 (nargs, args) 2234 (int nargs, register Lisp_Object *args)
2269 int nargs;
2270 register Lisp_Object *args;
2271{ 2235{
2272 general_insert_function (insert_before_markers, 2236 general_insert_function (insert_before_markers,
2273 insert_from_string_before_markers, 0, 2237 insert_from_string_before_markers, 0,
@@ -2286,9 +2250,7 @@ If the current buffer is unibyte, multibyte strings are converted
2286to unibyte for insertion. 2250to unibyte for insertion.
2287 2251
2288usage: (insert-before-markers-and-inherit &rest ARGS) */) 2252usage: (insert-before-markers-and-inherit &rest ARGS) */)
2289 (nargs, args) 2253 (int nargs, register Lisp_Object *args)
2290 int nargs;
2291 register Lisp_Object *args;
2292{ 2254{
2293 general_insert_function (insert_before_markers_and_inherit, 2255 general_insert_function (insert_before_markers_and_inherit,
2294 insert_from_string_before_markers, 1, 2256 insert_from_string_before_markers, 1,
@@ -2301,8 +2263,7 @@ DEFUN ("insert-char", Finsert_char, Sinsert_char, 2, 3, 0,
2301Point, and before-insertion markers, are relocated as in the function `insert'. 2263Point, and before-insertion markers, are relocated as in the function `insert'.
2302The optional third arg INHERIT, if non-nil, says to inherit text properties 2264The optional third arg INHERIT, if non-nil, says to inherit text properties
2303from adjoining text, if those properties are sticky. */) 2265from adjoining text, if those properties are sticky. */)
2304 (character, count, inherit) 2266 (Lisp_Object character, Lisp_Object count, Lisp_Object inherit)
2305 Lisp_Object character, count, inherit;
2306{ 2267{
2307 register unsigned char *string; 2268 register unsigned char *string;
2308 register int strlen; 2269 register int strlen;
@@ -2354,8 +2315,7 @@ corresponding eight-bit character is inserted.
2354Point, and before-insertion markers, are relocated as in the function `insert'. 2315Point, and before-insertion markers, are relocated as in the function `insert'.
2355The optional third arg INHERIT, if non-nil, says to inherit text properties 2316The optional third arg INHERIT, if non-nil, says to inherit text properties
2356from adjoining text, if those properties are sticky. */) 2317from adjoining text, if those properties are sticky. */)
2357 (byte, count, inherit) 2318 (Lisp_Object byte, Lisp_Object count, Lisp_Object inherit)
2358 Lisp_Object byte, count, inherit;
2359{ 2319{
2360 CHECK_NUMBER (byte); 2320 CHECK_NUMBER (byte);
2361 if (XINT (byte) < 0 || XINT (byte) > 255) 2321 if (XINT (byte) < 0 || XINT (byte) > 255)
@@ -2477,8 +2437,7 @@ The string returned is multibyte if the buffer is multibyte.
2477This function copies the text properties of that part of the buffer 2437This function copies the text properties of that part of the buffer
2478into the result string; if you don't want the text properties, 2438into the result string; if you don't want the text properties,
2479use `buffer-substring-no-properties' instead. */) 2439use `buffer-substring-no-properties' instead. */)
2480 (start, end) 2440 (Lisp_Object start, Lisp_Object end)
2481 Lisp_Object start, end;
2482{ 2441{
2483 register int b, e; 2442 register int b, e;
2484 2443
@@ -2494,8 +2453,7 @@ DEFUN ("buffer-substring-no-properties", Fbuffer_substring_no_properties,
2494 doc: /* Return the characters of part of the buffer, without the text properties. 2453 doc: /* Return the characters of part of the buffer, without the text properties.
2495The two arguments START and END are character positions; 2454The two arguments START and END are character positions;
2496they can be in either order. */) 2455they can be in either order. */)
2497 (start, end) 2456 (Lisp_Object start, Lisp_Object end)
2498 Lisp_Object start, end;
2499{ 2457{
2500 register int b, e; 2458 register int b, e;
2501 2459
@@ -2510,7 +2468,7 @@ DEFUN ("buffer-string", Fbuffer_string, Sbuffer_string, 0, 0, 0,
2510 doc: /* Return the contents of the current buffer as a string. 2468 doc: /* Return the contents of the current buffer as a string.
2511If narrowing is in effect, this function returns only the visible part 2469If narrowing is in effect, this function returns only the visible part
2512of the buffer. */) 2470of the buffer. */)
2513 () 2471 (void)
2514{ 2472{
2515 return make_buffer_string (BEGV, ZV, 1); 2473 return make_buffer_string (BEGV, ZV, 1);
2516} 2474}
@@ -2521,8 +2479,7 @@ DEFUN ("insert-buffer-substring", Finsert_buffer_substring, Sinsert_buffer_subst
2521BUFFER may be a buffer or a buffer name. 2479BUFFER may be a buffer or a buffer name.
2522Arguments START and END are character positions specifying the substring. 2480Arguments START and END are character positions specifying the substring.
2523They default to the values of (point-min) and (point-max) in BUFFER. */) 2481They default to the values of (point-min) and (point-max) in BUFFER. */)
2524 (buffer, start, end) 2482 (Lisp_Object buffer, Lisp_Object start, Lisp_Object end)
2525 Lisp_Object buffer, start, end;
2526{ 2483{
2527 register int b, e, temp; 2484 register int b, e, temp;
2528 register struct buffer *bp, *obuf; 2485 register struct buffer *bp, *obuf;
@@ -2575,8 +2532,7 @@ That makes six args in all, three for each substring.
2575 2532
2576The value of `case-fold-search' in the current buffer 2533The value of `case-fold-search' in the current buffer
2577determines whether case is significant or ignored. */) 2534determines whether case is significant or ignored. */)
2578 (buffer1, start1, end1, buffer2, start2, end2) 2535 (Lisp_Object buffer1, Lisp_Object start1, Lisp_Object end1, Lisp_Object buffer2, Lisp_Object start2, Lisp_Object end2)
2579 Lisp_Object buffer1, start1, end1, buffer2, start2, end2;
2580{ 2536{
2581 register int begp1, endp1, begp2, endp2, temp; 2537 register int begp1, endp1, begp2, endp2, temp;
2582 register struct buffer *bp1, *bp2; 2538 register struct buffer *bp1, *bp2;
@@ -2743,8 +2699,7 @@ DEFUN ("subst-char-in-region", Fsubst_char_in_region,
2743If optional arg NOUNDO is non-nil, don't record this change for undo 2699If optional arg NOUNDO is non-nil, don't record this change for undo
2744and don't mark the buffer as really changed. 2700and don't mark the buffer as really changed.
2745Both characters must have the same length of multi-byte form. */) 2701Both characters must have the same length of multi-byte form. */)
2746 (start, end, fromchar, tochar, noundo) 2702 (Lisp_Object start, Lisp_Object end, Lisp_Object fromchar, Lisp_Object tochar, Lisp_Object noundo)
2747 Lisp_Object start, end, fromchar, tochar, noundo;
2748{ 2703{
2749 register int pos, pos_byte, stop, i, len, end_byte; 2704 register int pos, pos_byte, stop, i, len, end_byte;
2750 /* Keep track of the first change in the buffer: 2705 /* Keep track of the first change in the buffer:
@@ -2985,10 +2940,7 @@ From START to END, translate characters according to TABLE.
2985TABLE is a string or a char-table; the Nth character in it is the 2940TABLE is a string or a char-table; the Nth character in it is the
2986mapping for the character with code N. 2941mapping for the character with code N.
2987It returns the number of characters changed. */) 2942It returns the number of characters changed. */)
2988 (start, end, table) 2943 (Lisp_Object start, Lisp_Object end, register Lisp_Object table)
2989 Lisp_Object start;
2990 Lisp_Object end;
2991 register Lisp_Object table;
2992{ 2944{
2993 register unsigned char *tt; /* Trans table. */ 2945 register unsigned char *tt; /* Trans table. */
2994 register int nc; /* New character. */ 2946 register int nc; /* New character. */
@@ -3154,8 +3106,7 @@ DEFUN ("delete-region", Fdelete_region, Sdelete_region, 2, 2, "r",
3154 3106
3155When called from a program, expects two arguments, 3107When called from a program, expects two arguments,
3156positions (integers or markers) specifying the stretch to be deleted. */) 3108positions (integers or markers) specifying the stretch to be deleted. */)
3157 (start, end) 3109 (Lisp_Object start, Lisp_Object end)
3158 Lisp_Object start, end;
3159{ 3110{
3160 validate_region (&start, &end); 3111 validate_region (&start, &end);
3161 del_range (XINT (start), XINT (end)); 3112 del_range (XINT (start), XINT (end));
@@ -3165,8 +3116,7 @@ positions (integers or markers) specifying the stretch to be deleted. */)
3165DEFUN ("delete-and-extract-region", Fdelete_and_extract_region, 3116DEFUN ("delete-and-extract-region", Fdelete_and_extract_region,
3166 Sdelete_and_extract_region, 2, 2, 0, 3117 Sdelete_and_extract_region, 2, 2, 0,
3167 doc: /* Delete the text between START and END and return it. */) 3118 doc: /* Delete the text between START and END and return it. */)
3168 (start, end) 3119 (Lisp_Object start, Lisp_Object end)
3169 Lisp_Object start, end;
3170{ 3120{
3171 validate_region (&start, &end); 3121 validate_region (&start, &end);
3172 if (XINT (start) == XINT (end)) 3122 if (XINT (start) == XINT (end))
@@ -3177,7 +3127,7 @@ DEFUN ("delete-and-extract-region", Fdelete_and_extract_region,
3177DEFUN ("widen", Fwiden, Swiden, 0, 0, "", 3127DEFUN ("widen", Fwiden, Swiden, 0, 0, "",
3178 doc: /* Remove restrictions (narrowing) from current buffer. 3128 doc: /* Remove restrictions (narrowing) from current buffer.
3179This allows the buffer's full text to be seen and edited. */) 3129This allows the buffer's full text to be seen and edited. */)
3180 () 3130 (void)
3181{ 3131{
3182 if (BEG != BEGV || Z != ZV) 3132 if (BEG != BEGV || Z != ZV)
3183 current_buffer->clip_changed = 1; 3133 current_buffer->clip_changed = 1;
@@ -3198,8 +3148,7 @@ See also `save-restriction'.
3198 3148
3199When calling from a program, pass two arguments; positions (integers 3149When calling from a program, pass two arguments; positions (integers
3200or markers) bounding the text that should remain visible. */) 3150or markers) bounding the text that should remain visible. */)
3201 (start, end) 3151 (register Lisp_Object start, Lisp_Object end)
3202 register Lisp_Object start, end;
3203{ 3152{
3204 CHECK_NUMBER_COERCE_MARKER (start); 3153 CHECK_NUMBER_COERCE_MARKER (start);
3205 CHECK_NUMBER_COERCE_MARKER (end); 3154 CHECK_NUMBER_COERCE_MARKER (end);
@@ -3332,8 +3281,7 @@ use `save-excursion' outermost:
3332 (save-excursion (save-restriction ...)) 3281 (save-excursion (save-restriction ...))
3333 3282
3334usage: (save-restriction &rest BODY) */) 3283usage: (save-restriction &rest BODY) */)
3335 (body) 3284 (Lisp_Object body)
3336 Lisp_Object body;
3337{ 3285{
3338 register Lisp_Object val; 3286 register Lisp_Object val;
3339 int count = SPECPDL_INDEX (); 3287 int count = SPECPDL_INDEX ();
@@ -3366,9 +3314,7 @@ any existing message; this lets the minibuffer contents show. See
3366also `current-message'. 3314also `current-message'.
3367 3315
3368usage: (message FORMAT-STRING &rest ARGS) */) 3316usage: (message FORMAT-STRING &rest ARGS) */)
3369 (nargs, args) 3317 (int nargs, Lisp_Object *args)
3370 int nargs;
3371 Lisp_Object *args;
3372{ 3318{
3373 if (NILP (args[0]) 3319 if (NILP (args[0])
3374 || (STRINGP (args[0]) 3320 || (STRINGP (args[0])
@@ -3396,9 +3342,7 @@ If the first argument is nil or the empty string, clear any existing
3396message; let the minibuffer contents show. 3342message; let the minibuffer contents show.
3397 3343
3398usage: (message-box FORMAT-STRING &rest ARGS) */) 3344usage: (message-box FORMAT-STRING &rest ARGS) */)
3399 (nargs, args) 3345 (int nargs, Lisp_Object *args)
3400 int nargs;
3401 Lisp_Object *args;
3402{ 3346{
3403 if (NILP (args[0])) 3347 if (NILP (args[0]))
3404 { 3348 {
@@ -3458,9 +3402,7 @@ If the first argument is nil or the empty string, clear any existing
3458message; let the minibuffer contents show. 3402message; let the minibuffer contents show.
3459 3403
3460usage: (message-or-box FORMAT-STRING &rest ARGS) */) 3404usage: (message-or-box FORMAT-STRING &rest ARGS) */)
3461 (nargs, args) 3405 (int nargs, Lisp_Object *args)
3462 int nargs;
3463 Lisp_Object *args;
3464{ 3406{
3465#ifdef HAVE_MENUS 3407#ifdef HAVE_MENUS
3466 if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) 3408 if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
@@ -3472,7 +3414,7 @@ usage: (message-or-box FORMAT-STRING &rest ARGS) */)
3472 3414
3473DEFUN ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0, 3415DEFUN ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0,
3474 doc: /* Return the string currently displayed in the echo area, or nil if none. */) 3416 doc: /* Return the string currently displayed in the echo area, or nil if none. */)
3475 () 3417 (void)
3476{ 3418{
3477 return current_message (); 3419 return current_message ();
3478} 3420}
@@ -3484,9 +3426,7 @@ First argument is the string to copy.
3484Remaining arguments form a sequence of PROPERTY VALUE pairs for text 3426Remaining arguments form a sequence of PROPERTY VALUE pairs for text
3485properties to add to the result. 3427properties to add to the result.
3486usage: (propertize STRING &rest PROPERTIES) */) 3428usage: (propertize STRING &rest PROPERTIES) */)
3487 (nargs, args) 3429 (int nargs, Lisp_Object *args)
3488 int nargs;
3489 Lisp_Object *args;
3490{ 3430{
3491 Lisp_Object properties, string; 3431 Lisp_Object properties, string;
3492 struct gcpro gcpro1, gcpro2; 3432 struct gcpro gcpro1, gcpro2;
@@ -3568,9 +3508,7 @@ decimal point itself is omitted. For %s and %S, the precision
3568specifier truncates the string to the given width. 3508specifier truncates the string to the given width.
3569 3509
3570usage: (format STRING &rest OBJECTS) */) 3510usage: (format STRING &rest OBJECTS) */)
3571 (nargs, args) 3511 (int nargs, register Lisp_Object *args)
3572 int nargs;
3573 register Lisp_Object *args;
3574{ 3512{
3575 register int n; /* The number of the next arg to substitute */ 3513 register int n; /* The number of the next arg to substitute */
3576 register int total; /* An estimate of the final length */ 3514 register int total; /* An estimate of the final length */
@@ -4186,8 +4124,7 @@ DEFUN ("char-equal", Fchar_equal, Schar_equal, 2, 2, 0,
4186 doc: /* Return t if two characters match, optionally ignoring case. 4124 doc: /* Return t if two characters match, optionally ignoring case.
4187Both arguments must be characters (i.e. integers). 4125Both arguments must be characters (i.e. integers).
4188Case is ignored if `case-fold-search' is non-nil in the current buffer. */) 4126Case is ignored if `case-fold-search' is non-nil in the current buffer. */)
4189 (c1, c2) 4127 (register Lisp_Object c1, Lisp_Object c2)
4190 register Lisp_Object c1, c2;
4191{ 4128{
4192 int i1, i2; 4129 int i1, i2;
4193 /* Check they're chars, not just integers, otherwise we could get array 4130 /* Check they're chars, not just integers, otherwise we could get array
@@ -4313,8 +4250,7 @@ Optional fifth arg LEAVE-MARKERS, if non-nil, means don't update
4313any markers that happen to be located in the regions. 4250any markers that happen to be located in the regions.
4314 4251
4315Transposing beyond buffer boundaries is an error. */) 4252Transposing beyond buffer boundaries is an error. */)
4316 (startr1, endr1, startr2, endr2, leave_markers) 4253 (Lisp_Object startr1, Lisp_Object endr1, Lisp_Object startr2, Lisp_Object endr2, Lisp_Object leave_markers)
4317 Lisp_Object startr1, endr1, startr2, endr2, leave_markers;
4318{ 4254{
4319 register EMACS_INT start1, end1, start2, end2; 4255 register EMACS_INT start1, end1, start2, end2;
4320 EMACS_INT start1_byte, start2_byte, len1_byte, len2_byte; 4256 EMACS_INT start1_byte, start2_byte, len1_byte, len2_byte;
diff --git a/src/emacs.c b/src/emacs.c
index cccfb02f1ef..92d8b82cbd7 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -585,7 +585,7 @@ init_cmdargs (int argc, char **argv, int skip_args)
585DEFUN ("invocation-name", Finvocation_name, Sinvocation_name, 0, 0, 0, 585DEFUN ("invocation-name", Finvocation_name, Sinvocation_name, 0, 0, 0,
586 doc: /* Return the program name that was used to run Emacs. 586 doc: /* Return the program name that was used to run Emacs.
587Any directory names are omitted. */) 587Any directory names are omitted. */)
588 () 588 (void)
589{ 589{
590 return Fcopy_sequence (Vinvocation_name); 590 return Fcopy_sequence (Vinvocation_name);
591} 591}
@@ -593,7 +593,7 @@ Any directory names are omitted. */)
593DEFUN ("invocation-directory", Finvocation_directory, Sinvocation_directory, 593DEFUN ("invocation-directory", Finvocation_directory, Sinvocation_directory,
594 0, 0, 0, 594 0, 0, 0,
595 doc: /* Return the directory name in which the Emacs executable was located. */) 595 doc: /* Return the directory name in which the Emacs executable was located. */)
596 () 596 (void)
597{ 597{
598 return Fcopy_sequence (Vinvocation_directory); 598 return Fcopy_sequence (Vinvocation_directory);
599} 599}
@@ -2074,8 +2074,7 @@ If ARG is a string, stuff it as keyboard input.
2074The value of `kill-emacs-hook', if not void, 2074The value of `kill-emacs-hook', if not void,
2075is a list of functions (of no args), 2075is a list of functions (of no args),
2076all of which are called before Emacs is actually killed. */) 2076all of which are called before Emacs is actually killed. */)
2077 (arg) 2077 (Lisp_Object arg)
2078 Lisp_Object arg;
2079{ 2078{
2080 struct gcpro gcpro1; 2079 struct gcpro gcpro1;
2081 2080
@@ -2205,8 +2204,7 @@ Take symbols from SYMFILE (presumably the file you executed to run Emacs).
2205This is used in the file `loadup.el' when building Emacs. 2204This is used in the file `loadup.el' when building Emacs.
2206 2205
2207You must run Emacs in batch mode in order to dump it. */) 2206You must run Emacs in batch mode in order to dump it. */)
2208 (filename, symfile) 2207 (Lisp_Object filename, Lisp_Object symfile)
2209 Lisp_Object filename, symfile;
2210{ 2208{
2211 extern char my_edata[]; 2209 extern char my_edata[];
2212 Lisp_Object tem; 2210 Lisp_Object tem;
@@ -2409,7 +2407,7 @@ decode_env_path (evarname, defalt)
2409DEFUN ("daemonp", Fdaemonp, Sdaemonp, 0, 0, 0, 2407DEFUN ("daemonp", Fdaemonp, Sdaemonp, 0, 0, 0,
2410 doc: /* Return non-nil if the current emacs process is a daemon. 2408 doc: /* Return non-nil if the current emacs process is a daemon.
2411If the daemon was given a name argument, return that name. */) 2409If the daemon was given a name argument, return that name. */)
2412 () 2410 (void)
2413{ 2411{
2414 if (IS_DAEMON) 2412 if (IS_DAEMON)
2415 if (daemon_name) 2413 if (daemon_name)
@@ -2424,7 +2422,7 @@ DEFUN ("daemon-initialized", Fdaemon_initialized, Sdaemon_initialized, 0, 0, 0,
2424 doc: /* Mark the Emacs daemon as being initialized. 2422 doc: /* Mark the Emacs daemon as being initialized.
2425This finishes the daemonization process by doing the other half of detaching 2423This finishes the daemonization process by doing the other half of detaching
2426from the parent process and its tty file descriptors. */) 2424from the parent process and its tty file descriptors. */)
2427 () 2425 (void)
2428{ 2426{
2429 int nfd; 2427 int nfd;
2430 2428
diff --git a/src/eval.c b/src/eval.c
index 47c46fcbfdf..fa65a5f0d6e 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -296,8 +296,7 @@ DEFUN ("or", For, Sor, 0, UNEVALLED, 0,
296The remaining args are not evalled at all. 296The remaining args are not evalled at all.
297If all args return nil, return nil. 297If all args return nil, return nil.
298usage: (or CONDITIONS...) */) 298usage: (or CONDITIONS...) */)
299 (args) 299 (Lisp_Object args)
300 Lisp_Object args;
301{ 300{
302 register Lisp_Object val = Qnil; 301 register Lisp_Object val = Qnil;
303 struct gcpro gcpro1; 302 struct gcpro gcpro1;
@@ -321,8 +320,7 @@ DEFUN ("and", Fand, Sand, 0, UNEVALLED, 0,
321The remaining args are not evalled at all. 320The remaining args are not evalled at all.
322If no arg yields nil, return the last arg's value. 321If no arg yields nil, return the last arg's value.
323usage: (and CONDITIONS...) */) 322usage: (and CONDITIONS...) */)
324 (args) 323 (Lisp_Object args)
325 Lisp_Object args;
326{ 324{
327 register Lisp_Object val = Qt; 325 register Lisp_Object val = Qt;
328 struct gcpro gcpro1; 326 struct gcpro gcpro1;
@@ -347,8 +345,7 @@ Returns the value of THEN or the value of the last of the ELSE's.
347THEN must be one expression, but ELSE... can be zero or more expressions. 345THEN must be one expression, but ELSE... can be zero or more expressions.
348If COND yields nil, and there are no ELSE's, the value is nil. 346If COND yields nil, and there are no ELSE's, the value is nil.
349usage: (if COND THEN ELSE...) */) 347usage: (if COND THEN ELSE...) */)
350 (args) 348 (Lisp_Object args)
351 Lisp_Object args;
352{ 349{
353 register Lisp_Object cond; 350 register Lisp_Object cond;
354 struct gcpro gcpro1; 351 struct gcpro gcpro1;
@@ -372,8 +369,7 @@ If no clause succeeds, cond returns nil.
372If a clause has one element, as in (CONDITION), 369If a clause has one element, as in (CONDITION),
373CONDITION's value if non-nil is returned from the cond-form. 370CONDITION's value if non-nil is returned from the cond-form.
374usage: (cond CLAUSES...) */) 371usage: (cond CLAUSES...) */)
375 (args) 372 (Lisp_Object args)
376 Lisp_Object args;
377{ 373{
378 register Lisp_Object clause, val; 374 register Lisp_Object clause, val;
379 struct gcpro gcpro1; 375 struct gcpro gcpro1;
@@ -400,8 +396,7 @@ usage: (cond CLAUSES...) */)
400DEFUN ("progn", Fprogn, Sprogn, 0, UNEVALLED, 0, 396DEFUN ("progn", Fprogn, Sprogn, 0, UNEVALLED, 0,
401 doc: /* Eval BODY forms sequentially and return value of last one. 397 doc: /* Eval BODY forms sequentially and return value of last one.
402usage: (progn BODY...) */) 398usage: (progn BODY...) */)
403 (args) 399 (Lisp_Object args)
404 Lisp_Object args;
405{ 400{
406 register Lisp_Object val = Qnil; 401 register Lisp_Object val = Qnil;
407 struct gcpro gcpro1; 402 struct gcpro gcpro1;
@@ -423,8 +418,7 @@ DEFUN ("prog1", Fprog1, Sprog1, 1, UNEVALLED, 0,
423The value of FIRST is saved during the evaluation of the remaining args, 418The value of FIRST is saved during the evaluation of the remaining args,
424whose values are discarded. 419whose values are discarded.
425usage: (prog1 FIRST BODY...) */) 420usage: (prog1 FIRST BODY...) */)
426 (args) 421 (Lisp_Object args)
427 Lisp_Object args;
428{ 422{
429 Lisp_Object val; 423 Lisp_Object val;
430 register Lisp_Object args_left; 424 register Lisp_Object args_left;
@@ -457,8 +451,7 @@ DEFUN ("prog2", Fprog2, Sprog2, 2, UNEVALLED, 0,
457The value of FORM2 is saved during the evaluation of the 451The value of FORM2 is saved during the evaluation of the
458remaining args, whose values are discarded. 452remaining args, whose values are discarded.
459usage: (prog2 FORM1 FORM2 BODY...) */) 453usage: (prog2 FORM1 FORM2 BODY...) */)
460 (args) 454 (Lisp_Object args)
461 Lisp_Object args;
462{ 455{
463 Lisp_Object val; 456 Lisp_Object val;
464 register Lisp_Object args_left; 457 register Lisp_Object args_left;
@@ -497,8 +490,7 @@ The second VAL is not computed until after the first SYM is set, and so on;
497each VAL can use the new value of variables set earlier in the `setq'. 490each VAL can use the new value of variables set earlier in the `setq'.
498The return value of the `setq' form is the value of the last VAL. 491The return value of the `setq' form is the value of the last VAL.
499usage: (setq [SYM VAL]...) */) 492usage: (setq [SYM VAL]...) */)
500 (args) 493 (Lisp_Object args)
501 Lisp_Object args;
502{ 494{
503 register Lisp_Object args_left; 495 register Lisp_Object args_left;
504 register Lisp_Object val, sym; 496 register Lisp_Object val, sym;
@@ -526,8 +518,7 @@ usage: (setq [SYM VAL]...) */)
526DEFUN ("quote", Fquote, Squote, 1, UNEVALLED, 0, 518DEFUN ("quote", Fquote, Squote, 1, UNEVALLED, 0,
527 doc: /* Return the argument, without evaluating it. `(quote x)' yields `x'. 519 doc: /* Return the argument, without evaluating it. `(quote x)' yields `x'.
528usage: (quote ARG) */) 520usage: (quote ARG) */)
529 (args) 521 (Lisp_Object args)
530 Lisp_Object args;
531{ 522{
532 if (!NILP (Fcdr (args))) 523 if (!NILP (Fcdr (args)))
533 xsignal2 (Qwrong_number_of_arguments, Qquote, Flength (args)); 524 xsignal2 (Qwrong_number_of_arguments, Qquote, Flength (args));
@@ -539,8 +530,7 @@ DEFUN ("function", Ffunction, Sfunction, 1, UNEVALLED, 0,
539In byte compilation, `function' causes its argument to be compiled. 530In byte compilation, `function' causes its argument to be compiled.
540`quote' cannot do that. 531`quote' cannot do that.
541usage: (function ARG) */) 532usage: (function ARG) */)
542 (args) 533 (Lisp_Object args)
543 Lisp_Object args;
544{ 534{
545 if (!NILP (Fcdr (args))) 535 if (!NILP (Fcdr (args)))
546 xsignal2 (Qwrong_number_of_arguments, Qfunction, Flength (args)); 536 xsignal2 (Qwrong_number_of_arguments, Qfunction, Flength (args));
@@ -565,7 +555,7 @@ To test whether your function was called with `call-interactively',
565either (i) add an extra optional argument and give it an `interactive' 555either (i) add an extra optional argument and give it an `interactive'
566spec that specifies non-nil unconditionally (such as \"p\"); or (ii) 556spec that specifies non-nil unconditionally (such as \"p\"); or (ii)
567use `called-interactively-p'. */) 557use `called-interactively-p'. */)
568 () 558 (void)
569{ 559{
570 return (INTERACTIVE && interactive_p (1)) ? Qt : Qnil; 560 return (INTERACTIVE && interactive_p (1)) ? Qt : Qnil;
571} 561}
@@ -591,8 +581,7 @@ function-modifying features. Instead of using this, it is sometimes
591cleaner to give your function an extra optional argument whose 581cleaner to give your function an extra optional argument whose
592`interactive' spec specifies non-nil unconditionally (\"p\" is a good 582`interactive' spec specifies non-nil unconditionally (\"p\" is a good
593way to do this), or via (not (or executing-kbd-macro noninteractive)). */) 583way to do this), or via (not (or executing-kbd-macro noninteractive)). */)
594 (kind) 584 (Lisp_Object kind)
595 Lisp_Object kind;
596{ 585{
597 return ((INTERACTIVE || !EQ (kind, intern ("interactive"))) 586 return ((INTERACTIVE || !EQ (kind, intern ("interactive")))
598 && interactive_p (1)) ? Qt : Qnil; 587 && interactive_p (1)) ? Qt : Qnil;
@@ -653,8 +642,7 @@ DEFUN ("defun", Fdefun, Sdefun, 2, UNEVALLED, 0,
653The definition is (lambda ARGLIST [DOCSTRING] BODY...). 642The definition is (lambda ARGLIST [DOCSTRING] BODY...).
654See also the function `interactive'. 643See also the function `interactive'.
655usage: (defun NAME ARGLIST [DOCSTRING] BODY...) */) 644usage: (defun NAME ARGLIST [DOCSTRING] BODY...) */)
656 (args) 645 (Lisp_Object args)
657 Lisp_Object args;
658{ 646{
659 register Lisp_Object fn_name; 647 register Lisp_Object fn_name;
660 register Lisp_Object defn; 648 register Lisp_Object defn;
@@ -697,8 +685,7 @@ The elements can look like this:
697 Set NAME's `doc-string-elt' property to ELT. 685 Set NAME's `doc-string-elt' property to ELT.
698 686
699usage: (defmacro NAME ARGLIST [DOCSTRING] [DECL] BODY...) */) 687usage: (defmacro NAME ARGLIST [DOCSTRING] [DECL] BODY...) */)
700 (args) 688 (Lisp_Object args)
701 Lisp_Object args;
702{ 689{
703 register Lisp_Object fn_name; 690 register Lisp_Object fn_name;
704 register Lisp_Object defn; 691 register Lisp_Object defn;
@@ -756,8 +743,7 @@ or of the variable at the end of the chain of aliases, if BASE-VARIABLE is
756itself an alias. If NEW-ALIAS is bound, and BASE-VARIABLE is not, 743itself an alias. If NEW-ALIAS is bound, and BASE-VARIABLE is not,
757then the value of BASE-VARIABLE is set to that of NEW-ALIAS. 744then the value of BASE-VARIABLE is set to that of NEW-ALIAS.
758The return value is BASE-VARIABLE. */) 745The return value is BASE-VARIABLE. */)
759 (new_alias, base_variable, docstring) 746 (Lisp_Object new_alias, Lisp_Object base_variable, Lisp_Object docstring)
760 Lisp_Object new_alias, base_variable, docstring;
761{ 747{
762 struct Lisp_Symbol *sym; 748 struct Lisp_Symbol *sym;
763 749
@@ -828,8 +814,7 @@ load a file defining variables, with this form or with `defconst' or
828for these variables. \(`defconst' and `defcustom' behave similarly in 814for these variables. \(`defconst' and `defcustom' behave similarly in
829this respect.) 815this respect.)
830usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */) 816usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */)
831 (args) 817 (Lisp_Object args)
832 Lisp_Object args;
833{ 818{
834 register Lisp_Object sym, tem, tail; 819 register Lisp_Object sym, tem, tail;
835 820
@@ -901,8 +886,7 @@ If SYMBOL has a local binding, then this form sets the local binding's
901value. However, you should normally not make local bindings for 886value. However, you should normally not make local bindings for
902variables defined with this form. 887variables defined with this form.
903usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */) 888usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */)
904 (args) 889 (Lisp_Object args)
905 Lisp_Object args;
906{ 890{
907 register Lisp_Object sym, tem; 891 register Lisp_Object sym, tem;
908 892
@@ -950,8 +934,7 @@ A variable is a user variable if
950\(3) it is an alias for another user variable. 934\(3) it is an alias for another user variable.
951Return nil if VARIABLE is an alias and there is a loop in the 935Return nil if VARIABLE is an alias and there is a loop in the
952chain of symbols. */) 936chain of symbols. */)
953 (variable) 937 (Lisp_Object variable)
954 Lisp_Object variable;
955{ 938{
956 Lisp_Object documentation; 939 Lisp_Object documentation;
957 940
@@ -998,8 +981,7 @@ Each element of VARLIST is a symbol (which is bound to nil)
998or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM). 981or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM).
999Each VALUEFORM can refer to the symbols already bound by this VARLIST. 982Each VALUEFORM can refer to the symbols already bound by this VARLIST.
1000usage: (let* VARLIST BODY...) */) 983usage: (let* VARLIST BODY...) */)
1001 (args) 984 (Lisp_Object args)
1002 Lisp_Object args;
1003{ 985{
1004 Lisp_Object varlist, val, elt; 986 Lisp_Object varlist, val, elt;
1005 int count = SPECPDL_INDEX (); 987 int count = SPECPDL_INDEX ();
@@ -1035,8 +1017,7 @@ Each element of VARLIST is a symbol (which is bound to nil)
1035or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM). 1017or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM).
1036All the VALUEFORMs are evalled before any symbols are bound. 1018All the VALUEFORMs are evalled before any symbols are bound.
1037usage: (let VARLIST BODY...) */) 1019usage: (let VARLIST BODY...) */)
1038 (args) 1020 (Lisp_Object args)
1039 Lisp_Object args;
1040{ 1021{
1041 Lisp_Object *temps, tem; 1022 Lisp_Object *temps, tem;
1042 register Lisp_Object elt, varlist; 1023 register Lisp_Object elt, varlist;
@@ -1089,8 +1070,7 @@ DEFUN ("while", Fwhile, Swhile, 1, UNEVALLED, 0,
1089The order of execution is thus TEST, BODY, TEST, BODY and so on 1070The order of execution is thus TEST, BODY, TEST, BODY and so on
1090until TEST returns nil. 1071until TEST returns nil.
1091usage: (while TEST BODY...) */) 1072usage: (while TEST BODY...) */)
1092 (args) 1073 (Lisp_Object args)
1093 Lisp_Object args;
1094{ 1074{
1095 Lisp_Object test, body; 1075 Lisp_Object test, body;
1096 struct gcpro gcpro1, gcpro2; 1076 struct gcpro gcpro1, gcpro2;
@@ -1117,9 +1097,7 @@ in place of FORM. When a non-macro-call results, it is returned.
1117 1097
1118The second optional arg ENVIRONMENT specifies an environment of macro 1098The second optional arg ENVIRONMENT specifies an environment of macro
1119definitions to shadow the loaded ones for use in file byte-compilation. */) 1099definitions to shadow the loaded ones for use in file byte-compilation. */)
1120 (form, environment) 1100 (Lisp_Object form, Lisp_Object environment)
1121 Lisp_Object form;
1122 Lisp_Object environment;
1123{ 1101{
1124 /* With cleanups from Hallvard Furuseth. */ 1102 /* With cleanups from Hallvard Furuseth. */
1125 register Lisp_Object expander, sym, def, tem; 1103 register Lisp_Object expander, sym, def, tem;
@@ -1197,8 +1175,7 @@ Within BODY, a call to `throw' with the same TAG exits BODY and this `catch'.
1197If no throw happens, `catch' returns the value of the last BODY form. 1175If no throw happens, `catch' returns the value of the last BODY form.
1198If a throw happens, it specifies the value to return from `catch'. 1176If a throw happens, it specifies the value to return from `catch'.
1199usage: (catch TAG BODY...) */) 1177usage: (catch TAG BODY...) */)
1200 (args) 1178 (Lisp_Object args)
1201 Lisp_Object args;
1202{ 1179{
1203 register Lisp_Object tag; 1180 register Lisp_Object tag;
1204 struct gcpro gcpro1; 1181 struct gcpro gcpro1;
@@ -1311,8 +1288,7 @@ unwind_to_catch (struct catchtag *catch, Lisp_Object value)
1311DEFUN ("throw", Fthrow, Sthrow, 2, 2, 0, 1288DEFUN ("throw", Fthrow, Sthrow, 2, 2, 0,
1312 doc: /* Throw to the catch for TAG and return VALUE from it. 1289 doc: /* Throw to the catch for TAG and return VALUE from it.
1313Both TAG and VALUE are evalled. */) 1290Both TAG and VALUE are evalled. */)
1314 (tag, value) 1291 (register Lisp_Object tag, Lisp_Object value)
1315 register Lisp_Object tag, value;
1316{ 1292{
1317 register struct catchtag *c; 1293 register struct catchtag *c;
1318 1294
@@ -1332,8 +1308,7 @@ If BODYFORM completes normally, its value is returned
1332after executing the UNWINDFORMS. 1308after executing the UNWINDFORMS.
1333If BODYFORM exits nonlocally, the UNWINDFORMS are executed anyway. 1309If BODYFORM exits nonlocally, the UNWINDFORMS are executed anyway.
1334usage: (unwind-protect BODYFORM UNWINDFORMS...) */) 1310usage: (unwind-protect BODYFORM UNWINDFORMS...) */)
1335 (args) 1311 (Lisp_Object args)
1336 Lisp_Object args;
1337{ 1312{
1338 Lisp_Object val; 1313 Lisp_Object val;
1339 int count = SPECPDL_INDEX (); 1314 int count = SPECPDL_INDEX ();
@@ -1373,8 +1348,7 @@ expression.
1373 1348
1374See also the function `signal' for more info. 1349See also the function `signal' for more info.
1375usage: (condition-case VAR BODYFORM &rest HANDLERS) */) 1350usage: (condition-case VAR BODYFORM &rest HANDLERS) */)
1376 (args) 1351(Lisp_Object args)
1377 Lisp_Object args;
1378{ 1352{
1379 register Lisp_Object bodyform, handlers; 1353 register Lisp_Object bodyform, handlers;
1380 volatile Lisp_Object var; 1354 volatile Lisp_Object var;
@@ -1661,8 +1635,7 @@ See Info anchor `(elisp)Definition of signal' for some details on how this
1661error message is constructed. 1635error message is constructed.
1662If the signal is handled, DATA is made available to the handler. 1636If the signal is handled, DATA is made available to the handler.
1663See also the function `condition-case'. */) 1637See also the function `condition-case'. */)
1664 (error_symbol, data) 1638 (Lisp_Object error_symbol, Lisp_Object data)
1665 Lisp_Object error_symbol, data;
1666{ 1639{
1667 /* When memory is full, ERROR-SYMBOL is nil, 1640 /* When memory is full, ERROR-SYMBOL is nil,
1668 and DATA is (REAL-ERROR-SYMBOL . REAL-DATA). 1641 and DATA is (REAL-ERROR-SYMBOL . REAL-DATA).
@@ -2085,8 +2058,7 @@ Also, a symbol satisfies `commandp' if its function definition does so.
2085 2058
2086If the optional argument FOR-CALL-INTERACTIVELY is non-nil, 2059If the optional argument FOR-CALL-INTERACTIVELY is non-nil,
2087then strings and vectors are not accepted. */) 2060then strings and vectors are not accepted. */)
2088 (function, for_call_interactively) 2061 (Lisp_Object function, Lisp_Object for_call_interactively)
2089 Lisp_Object function, for_call_interactively;
2090{ 2062{
2091 register Lisp_Object fun; 2063 register Lisp_Object fun;
2092 register Lisp_Object funcar; 2064 register Lisp_Object funcar;
@@ -2150,8 +2122,7 @@ Third through fifth args give info about the real definition.
2150They default to nil. 2122They default to nil.
2151If FUNCTION is already defined other than as an autoload, 2123If FUNCTION is already defined other than as an autoload,
2152this does nothing and returns nil. */) 2124this does nothing and returns nil. */)
2153 (function, file, docstring, interactive, type) 2125 (Lisp_Object function, Lisp_Object file, Lisp_Object docstring, Lisp_Object interactive, Lisp_Object type)
2154 Lisp_Object function, file, docstring, interactive, type;
2155{ 2126{
2156 CHECK_SYMBOL (function); 2127 CHECK_SYMBOL (function);
2157 CHECK_STRING (file); 2128 CHECK_STRING (file);
@@ -2252,8 +2223,7 @@ do_autoload (Lisp_Object fundef, Lisp_Object funname)
2252 2223
2253DEFUN ("eval", Feval, Seval, 1, 1, 0, 2224DEFUN ("eval", Feval, Seval, 1, 1, 0,
2254 doc: /* Evaluate FORM and return its value. */) 2225 doc: /* Evaluate FORM and return its value. */)
2255 (form) 2226 (Lisp_Object form)
2256 Lisp_Object form;
2257{ 2227{
2258 Lisp_Object fun, val, original_fun, original_args; 2228 Lisp_Object fun, val, original_fun, original_args;
2259 Lisp_Object funcar; 2229 Lisp_Object funcar;
@@ -2463,9 +2433,7 @@ DEFUN ("apply", Fapply, Sapply, 2, MANY, 0,
2463Then return the value FUNCTION returns. 2433Then return the value FUNCTION returns.
2464Thus, (apply '+ 1 2 '(3 4)) returns 10. 2434Thus, (apply '+ 1 2 '(3 4)) returns 10.
2465usage: (apply FUNCTION &rest ARGUMENTS) */) 2435usage: (apply FUNCTION &rest ARGUMENTS) */)
2466 (nargs, args) 2436 (int nargs, Lisp_Object *args)
2467 int nargs;
2468 Lisp_Object *args;
2469{ 2437{
2470 register int i, numargs; 2438 register int i, numargs;
2471 register Lisp_Object spread_arg; 2439 register Lisp_Object spread_arg;
@@ -2564,9 +2532,7 @@ hook; they should use `run-mode-hooks' instead.
2564Do not use `make-local-variable' to make a hook variable buffer-local. 2532Do not use `make-local-variable' to make a hook variable buffer-local.
2565Instead, use `add-hook' and specify t for the LOCAL argument. 2533Instead, use `add-hook' and specify t for the LOCAL argument.
2566usage: (run-hooks &rest HOOKS) */) 2534usage: (run-hooks &rest HOOKS) */)
2567 (nargs, args) 2535 (int nargs, Lisp_Object *args)
2568 int nargs;
2569 Lisp_Object *args;
2570{ 2536{
2571 Lisp_Object hook[1]; 2537 Lisp_Object hook[1];
2572 register int i; 2538 register int i;
@@ -2595,9 +2561,7 @@ as that may change.
2595Do not use `make-local-variable' to make a hook variable buffer-local. 2561Do not use `make-local-variable' to make a hook variable buffer-local.
2596Instead, use `add-hook' and specify t for the LOCAL argument. 2562Instead, use `add-hook' and specify t for the LOCAL argument.
2597usage: (run-hook-with-args HOOK &rest ARGS) */) 2563usage: (run-hook-with-args HOOK &rest ARGS) */)
2598 (nargs, args) 2564 (int nargs, Lisp_Object *args)
2599 int nargs;
2600 Lisp_Object *args;
2601{ 2565{
2602 return run_hook_with_args (nargs, args, to_completion); 2566 return run_hook_with_args (nargs, args, to_completion);
2603} 2567}
@@ -2617,9 +2581,7 @@ However, if they all return nil, we return nil.
2617Do not use `make-local-variable' to make a hook variable buffer-local. 2581Do not use `make-local-variable' to make a hook variable buffer-local.
2618Instead, use `add-hook' and specify t for the LOCAL argument. 2582Instead, use `add-hook' and specify t for the LOCAL argument.
2619usage: (run-hook-with-args-until-success HOOK &rest ARGS) */) 2583usage: (run-hook-with-args-until-success HOOK &rest ARGS) */)
2620 (nargs, args) 2584 (int nargs, Lisp_Object *args)
2621 int nargs;
2622 Lisp_Object *args;
2623{ 2585{
2624 return run_hook_with_args (nargs, args, until_success); 2586 return run_hook_with_args (nargs, args, until_success);
2625} 2587}
@@ -2638,9 +2600,7 @@ Then we return nil. However, if they all return non-nil, we return non-nil.
2638Do not use `make-local-variable' to make a hook variable buffer-local. 2600Do not use `make-local-variable' to make a hook variable buffer-local.
2639Instead, use `add-hook' and specify t for the LOCAL argument. 2601Instead, use `add-hook' and specify t for the LOCAL argument.
2640usage: (run-hook-with-args-until-failure HOOK &rest ARGS) */) 2602usage: (run-hook-with-args-until-failure HOOK &rest ARGS) */)
2641 (nargs, args) 2603 (int nargs, Lisp_Object *args)
2642 int nargs;
2643 Lisp_Object *args;
2644{ 2604{
2645 return run_hook_with_args (nargs, args, until_failure); 2605 return run_hook_with_args (nargs, args, until_failure);
2646} 2606}
@@ -2946,9 +2906,7 @@ DEFUN ("funcall", Ffuncall, Sfuncall, 1, MANY, 0,
2946Return the value that function returns. 2906Return the value that function returns.
2947Thus, (funcall 'cons 'x 'y) returns (x . y). 2907Thus, (funcall 'cons 'x 'y) returns (x . y).
2948usage: (funcall FUNCTION &rest ARGUMENTS) */) 2908usage: (funcall FUNCTION &rest ARGUMENTS) */)
2949 (nargs, args) 2909 (int nargs, Lisp_Object *args)
2950 int nargs;
2951 Lisp_Object *args;
2952{ 2910{
2953 Lisp_Object fun, original_fun; 2911 Lisp_Object fun, original_fun;
2954 Lisp_Object funcar; 2912 Lisp_Object funcar;
@@ -3223,8 +3181,7 @@ funcall_lambda (Lisp_Object fun, int nargs, register Lisp_Object *arg_vector)
3223DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode, 3181DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode,
3224 1, 1, 0, 3182 1, 1, 0,
3225 doc: /* If byte-compiled OBJECT is lazy-loaded, fetch it now. */) 3183 doc: /* If byte-compiled OBJECT is lazy-loaded, fetch it now. */)
3226 (object) 3184 (Lisp_Object object)
3227 Lisp_Object object;
3228{ 3185{
3229 Lisp_Object tem; 3186 Lisp_Object tem;
3230 3187
@@ -3456,8 +3413,7 @@ unbind_to (int count, Lisp_Object value)
3456DEFUN ("backtrace-debug", Fbacktrace_debug, Sbacktrace_debug, 2, 2, 0, 3413DEFUN ("backtrace-debug", Fbacktrace_debug, Sbacktrace_debug, 2, 2, 0,
3457 doc: /* Set the debug-on-exit flag of eval frame LEVEL levels down to FLAG. 3414 doc: /* Set the debug-on-exit flag of eval frame LEVEL levels down to FLAG.
3458The debugger is entered when that frame exits, if the flag is non-nil. */) 3415The debugger is entered when that frame exits, if the flag is non-nil. */)
3459 (level, flag) 3416 (Lisp_Object level, Lisp_Object flag)
3460 Lisp_Object level, flag;
3461{ 3417{
3462 register struct backtrace *backlist = backtrace_list; 3418 register struct backtrace *backlist = backtrace_list;
3463 register int i; 3419 register int i;
@@ -3478,7 +3434,7 @@ The debugger is entered when that frame exits, if the flag is non-nil. */)
3478DEFUN ("backtrace", Fbacktrace, Sbacktrace, 0, 0, "", 3434DEFUN ("backtrace", Fbacktrace, Sbacktrace, 0, 0, "",
3479 doc: /* Print a trace of Lisp function calls currently active. 3435 doc: /* Print a trace of Lisp function calls currently active.
3480Output stream used is value of `standard-output'. */) 3436Output stream used is value of `standard-output'. */)
3481 () 3437 (void)
3482{ 3438{
3483 register struct backtrace *backlist = backtrace_list; 3439 register struct backtrace *backlist = backtrace_list;
3484 register int i; 3440 register int i;
@@ -3543,8 +3499,7 @@ A &rest arg is represented as the tail of the list ARG-VALUES.
3543FUNCTION is whatever was supplied as car of evaluated list, 3499FUNCTION is whatever was supplied as car of evaluated list,
3544or a lambda expression for macro calls. 3500or a lambda expression for macro calls.
3545If NFRAMES is more than the number of frames, the value is nil. */) 3501If NFRAMES is more than the number of frames, the value is nil. */)
3546 (nframes) 3502 (Lisp_Object nframes)
3547 Lisp_Object nframes;
3548{ 3503{
3549 register struct backtrace *backlist = backtrace_list; 3504 register struct backtrace *backlist = backtrace_list;
3550 register int i; 3505 register int i;
diff --git a/src/fileio.c b/src/fileio.c
index ee2dc9fa52a..7c0921a0e39 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -346,8 +346,7 @@ If OPERATION equals `inhibit-file-name-operation', then we ignore
346any handlers that are members of `inhibit-file-name-handlers', 346any handlers that are members of `inhibit-file-name-handlers',
347but we still do run any other handlers. This lets handlers 347but we still do run any other handlers. This lets handlers
348use the standard functions without calling themselves recursively. */) 348use the standard functions without calling themselves recursively. */)
349 (filename, operation) 349 (Lisp_Object filename, Lisp_Object operation)
350 Lisp_Object filename, operation;
351{ 350{
352 /* This function must not munge the match data. */ 351 /* This function must not munge the match data. */
353 Lisp_Object chain, inhibited_handlers, result; 352 Lisp_Object chain, inhibited_handlers, result;
@@ -403,8 +402,7 @@ DEFUN ("file-name-directory", Ffile_name_directory, Sfile_name_directory,
403Return nil if FILENAME does not include a directory. 402Return nil if FILENAME does not include a directory.
404Otherwise return a directory name. 403Otherwise return a directory name.
405Given a Unix syntax file name, returns a string ending in slash. */) 404Given a Unix syntax file name, returns a string ending in slash. */)
406 (filename) 405 (Lisp_Object filename)
407 Lisp_Object filename;
408{ 406{
409#ifndef DOS_NT 407#ifndef DOS_NT
410 register const unsigned char *beg; 408 register const unsigned char *beg;
@@ -478,8 +476,7 @@ DEFUN ("file-name-nondirectory", Ffile_name_nondirectory,
478For example, in a Unix-syntax file name, 476For example, in a Unix-syntax file name,
479this is everything after the last slash, 477this is everything after the last slash,
480or the entire name if it contains no slash. */) 478or the entire name if it contains no slash. */)
481 (filename) 479 (Lisp_Object filename)
482 Lisp_Object filename;
483{ 480{
484 register const unsigned char *beg, *p, *end; 481 register const unsigned char *beg, *p, *end;
485 Lisp_Object handler; 482 Lisp_Object handler;
@@ -519,8 +516,7 @@ If FILENAME refers to a file which is not accessible from a local process,
519then this should return nil. 516then this should return nil.
520The `call-process' and `start-process' functions use this function to 517The `call-process' and `start-process' functions use this function to
521get a current directory to run processes in. */) 518get a current directory to run processes in. */)
522 (filename) 519 (Lisp_Object filename)
523 Lisp_Object filename;
524{ 520{
525 Lisp_Object handler; 521 Lisp_Object handler;
526 522
@@ -569,8 +565,7 @@ a directory is different from its name as a file.
569The result can be used as the value of `default-directory' 565The result can be used as the value of `default-directory'
570or passed as second argument to `expand-file-name'. 566or passed as second argument to `expand-file-name'.
571For a Unix-syntax file name, just appends a slash. */) 567For a Unix-syntax file name, just appends a slash. */)
572 (file) 568 (Lisp_Object file)
573 Lisp_Object file;
574{ 569{
575 char *buf; 570 char *buf;
576 Lisp_Object handler; 571 Lisp_Object handler;
@@ -628,8 +623,7 @@ This is the name of the file that holds the data for the directory DIRECTORY.
628This operation exists because a directory is also a file, but its name as 623This operation exists because a directory is also a file, but its name as
629a directory is different from its name as a file. 624a directory is different from its name as a file.
630In Unix-syntax, this function just removes the final slash. */) 625In Unix-syntax, this function just removes the final slash. */)
631 (directory) 626 (Lisp_Object directory)
632 Lisp_Object directory;
633{ 627{
634 char *buf; 628 char *buf;
635 Lisp_Object handler; 629 Lisp_Object handler;
@@ -801,8 +795,7 @@ probably use `make-temp-file' instead, except in three circumstances:
801* If you are creating the file in the user's home directory. 795* If you are creating the file in the user's home directory.
802* If you are creating a directory rather than an ordinary file. 796* If you are creating a directory rather than an ordinary file.
803* If you are taking special precautions as `make-temp-file' does. */) 797* If you are taking special precautions as `make-temp-file' does. */)
804 (prefix) 798 (Lisp_Object prefix)
805 Lisp_Object prefix;
806{ 799{
807 return make_temp_name (prefix, 0); 800 return make_temp_name (prefix, 0);
808} 801}
@@ -827,8 +820,7 @@ non-intuitive results for the root directory; for instance,
827\(expand-file-name ".." "/") returns "/..". For this reason, use 820\(expand-file-name ".." "/") returns "/..". For this reason, use
828(directory-file-name (file-name-directory dirname)) to traverse a 821(directory-file-name (file-name-directory dirname)) to traverse a
829filesystem tree, not (expand-file-name ".." dirname). */) 822filesystem tree, not (expand-file-name ".." dirname). */)
830 (name, default_directory) 823 (Lisp_Object name, Lisp_Object default_directory)
831 Lisp_Object name, default_directory;
832{ 824{
833 /* These point to SDATA and need to be careful with string-relocation 825 /* These point to SDATA and need to be careful with string-relocation
834 during GC (via DECODE_FILE). */ 826 during GC (via DECODE_FILE). */
@@ -1613,8 +1605,7 @@ the entire variable name in braces.
1613If `/~' appears, all of FILENAME through that `/' is discarded. 1605If `/~' appears, all of FILENAME through that `/' is discarded.
1614If `//' appears, everything up to and including the first of 1606If `//' appears, everything up to and including the first of
1615those `/' is discarded. */) 1607those `/' is discarded. */)
1616 (filename) 1608 (Lisp_Object filename)
1617 Lisp_Object filename;
1618{ 1609{
1619 unsigned char *nm; 1610 unsigned char *nm;
1620 1611
@@ -1905,9 +1896,7 @@ uid and gid of FILE to NEWNAME.
1905 1896
1906If PRESERVE-SELINUX-CONTEXT is non-nil and SELinux is enabled 1897If PRESERVE-SELINUX-CONTEXT is non-nil and SELinux is enabled
1907on the system, we copy the SELinux context of FILE to NEWNAME. */) 1898on the system, we copy the SELinux context of FILE to NEWNAME. */)
1908 (file, newname, ok_if_already_exists, keep_time, preserve_uid_gid, preserve_selinux_context) 1899 (Lisp_Object file, Lisp_Object newname, Lisp_Object ok_if_already_exists, Lisp_Object keep_time, Lisp_Object preserve_uid_gid, Lisp_Object preserve_selinux_context)
1909 Lisp_Object file, newname, ok_if_already_exists, keep_time;
1910 Lisp_Object preserve_uid_gid, preserve_selinux_context;
1911{ 1900{
1912 int ifd, ofd, n; 1901 int ifd, ofd, n;
1913 char buf[16 * 1024]; 1902 char buf[16 * 1024];
@@ -2118,8 +2107,7 @@ on the system, we copy the SELinux context of FILE to NEWNAME. */)
2118DEFUN ("make-directory-internal", Fmake_directory_internal, 2107DEFUN ("make-directory-internal", Fmake_directory_internal,
2119 Smake_directory_internal, 1, 1, 0, 2108 Smake_directory_internal, 1, 1, 0,
2120 doc: /* Create a new directory named DIRECTORY. */) 2109 doc: /* Create a new directory named DIRECTORY. */)
2121 (directory) 2110 (Lisp_Object directory)
2122 Lisp_Object directory;
2123{ 2111{
2124 const unsigned char *dir; 2112 const unsigned char *dir;
2125 Lisp_Object handler; 2113 Lisp_Object handler;
@@ -2149,8 +2137,7 @@ DEFUN ("make-directory-internal", Fmake_directory_internal,
2149DEFUN ("delete-directory-internal", Fdelete_directory_internal, 2137DEFUN ("delete-directory-internal", Fdelete_directory_internal,
2150 Sdelete_directory_internal, 1, 1, 0, 2138 Sdelete_directory_internal, 1, 1, 0,
2151 doc: /* Delete the directory named DIRECTORY. Does not follow symlinks. */) 2139 doc: /* Delete the directory named DIRECTORY. Does not follow symlinks. */)
2152 (directory) 2140 (Lisp_Object directory)
2153 Lisp_Object directory;
2154{ 2141{
2155 const unsigned char *dir; 2142 const unsigned char *dir;
2156 Lisp_Object handler; 2143 Lisp_Object handler;
@@ -2180,9 +2167,7 @@ TRASH non-nil means to trash the file instead of deleting, provided
2180 2167
2181When called interactively, TRASH is t if no prefix argument is given. 2168When called interactively, TRASH is t if no prefix argument is given.
2182With a prefix argument, TRASH is nil. */) 2169With a prefix argument, TRASH is nil. */)
2183 (filename, trash) 2170 (Lisp_Object filename, Lisp_Object trash)
2184 Lisp_Object filename;
2185 Lisp_Object trash;
2186{ 2171{
2187 Lisp_Object handler; 2172 Lisp_Object handler;
2188 Lisp_Object encoded_file; 2173 Lisp_Object encoded_file;
@@ -2238,8 +2223,7 @@ Signals a `file-already-exists' error if a file NEWNAME already exists
2238unless optional third argument OK-IF-ALREADY-EXISTS is non-nil. 2223unless optional third argument OK-IF-ALREADY-EXISTS is non-nil.
2239A number as third arg means request confirmation if NEWNAME already exists. 2224A number as third arg means request confirmation if NEWNAME already exists.
2240This is what happens in interactive use with M-x. */) 2225This is what happens in interactive use with M-x. */)
2241 (file, newname, ok_if_already_exists) 2226 (Lisp_Object file, Lisp_Object newname, Lisp_Object ok_if_already_exists)
2242 Lisp_Object file, newname, ok_if_already_exists;
2243{ 2227{
2244 Lisp_Object handler; 2228 Lisp_Object handler;
2245 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; 2229 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5;
@@ -2336,8 +2320,7 @@ Signals a `file-already-exists' error if a file NEWNAME already exists
2336unless optional third argument OK-IF-ALREADY-EXISTS is non-nil. 2320unless optional third argument OK-IF-ALREADY-EXISTS is non-nil.
2337A number as third arg means request confirmation if NEWNAME already exists. 2321A number as third arg means request confirmation if NEWNAME already exists.
2338This is what happens in interactive use with M-x. */) 2322This is what happens in interactive use with M-x. */)
2339 (file, newname, ok_if_already_exists) 2323 (Lisp_Object file, Lisp_Object newname, Lisp_Object ok_if_already_exists)
2340 Lisp_Object file, newname, ok_if_already_exists;
2341{ 2324{
2342 Lisp_Object handler; 2325 Lisp_Object handler;
2343 Lisp_Object encoded_file, encoded_newname; 2326 Lisp_Object encoded_file, encoded_newname;
@@ -2392,8 +2375,7 @@ Signals a `file-already-exists' error if a file LINKNAME already exists
2392unless optional third argument OK-IF-ALREADY-EXISTS is non-nil. 2375unless optional third argument OK-IF-ALREADY-EXISTS is non-nil.
2393A number as third arg means request confirmation if LINKNAME already exists. 2376A number as third arg means request confirmation if LINKNAME already exists.
2394This happens for interactive use with M-x. */) 2377This happens for interactive use with M-x. */)
2395 (filename, linkname, ok_if_already_exists) 2378 (Lisp_Object filename, Lisp_Object linkname, Lisp_Object ok_if_already_exists)
2396 Lisp_Object filename, linkname, ok_if_already_exists;
2397{ 2379{
2398 Lisp_Object handler; 2380 Lisp_Object handler;
2399 Lisp_Object encoded_filename, encoded_linkname; 2381 Lisp_Object encoded_filename, encoded_linkname;
@@ -2468,8 +2450,7 @@ DEFUN ("file-name-absolute-p", Ffile_name_absolute_p, Sfile_name_absolute_p,
2468 1, 1, 0, 2450 1, 1, 0,
2469 doc: /* Return t if file FILENAME specifies an absolute file name. 2451 doc: /* Return t if file FILENAME specifies an absolute file name.
2470On Unix, this is a name starting with a `/' or a `~'. */) 2452On Unix, this is a name starting with a `/' or a `~'. */)
2471 (filename) 2453 (Lisp_Object filename)
2472 Lisp_Object filename;
2473{ 2454{
2474 CHECK_STRING (filename); 2455 CHECK_STRING (filename);
2475 return file_name_absolute_p (SDATA (filename)) ? Qt : Qnil; 2456 return file_name_absolute_p (SDATA (filename)) ? Qt : Qnil;
@@ -2528,8 +2509,7 @@ DEFUN ("file-exists-p", Ffile_exists_p, Sfile_exists_p, 1, 1, 0,
2528See also `file-readable-p' and `file-attributes'. 2509See also `file-readable-p' and `file-attributes'.
2529This returns nil for a symlink to a nonexistent file. 2510This returns nil for a symlink to a nonexistent file.
2530Use `file-symlink-p' to test for such links. */) 2511Use `file-symlink-p' to test for such links. */)
2531 (filename) 2512 (Lisp_Object filename)
2532 Lisp_Object filename;
2533{ 2513{
2534 Lisp_Object absname; 2514 Lisp_Object absname;
2535 Lisp_Object handler; 2515 Lisp_Object handler;
@@ -2552,8 +2532,7 @@ Use `file-symlink-p' to test for such links. */)
2552DEFUN ("file-executable-p", Ffile_executable_p, Sfile_executable_p, 1, 1, 0, 2532DEFUN ("file-executable-p", Ffile_executable_p, Sfile_executable_p, 1, 1, 0,
2553 doc: /* Return t if FILENAME can be executed by you. 2533 doc: /* Return t if FILENAME can be executed by you.
2554For a directory, this means you can access files in that directory. */) 2534For a directory, this means you can access files in that directory. */)
2555 (filename) 2535 (Lisp_Object filename)
2556 Lisp_Object filename;
2557{ 2536{
2558 Lisp_Object absname; 2537 Lisp_Object absname;
2559 Lisp_Object handler; 2538 Lisp_Object handler;
@@ -2575,8 +2554,7 @@ For a directory, this means you can access files in that directory. */)
2575DEFUN ("file-readable-p", Ffile_readable_p, Sfile_readable_p, 1, 1, 0, 2554DEFUN ("file-readable-p", Ffile_readable_p, Sfile_readable_p, 1, 1, 0,
2576 doc: /* Return t if file FILENAME exists and you can read it. 2555 doc: /* Return t if file FILENAME exists and you can read it.
2577See also `file-exists-p' and `file-attributes'. */) 2556See also `file-exists-p' and `file-attributes'. */)
2578 (filename) 2557 (Lisp_Object filename)
2579 Lisp_Object filename;
2580{ 2558{
2581 Lisp_Object absname; 2559 Lisp_Object absname;
2582 Lisp_Object handler; 2560 Lisp_Object handler;
@@ -2625,8 +2603,7 @@ See also `file-exists-p' and `file-attributes'. */)
2625 on the RT/PC. */ 2603 on the RT/PC. */
2626DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0, 2604DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0,
2627 doc: /* Return t if file FILENAME can be written or created by you. */) 2605 doc: /* Return t if file FILENAME can be written or created by you. */)
2628 (filename) 2606 (Lisp_Object filename)
2629 Lisp_Object filename;
2630{ 2607{
2631 Lisp_Object absname, dir, encoded; 2608 Lisp_Object absname, dir, encoded;
2632 Lisp_Object handler; 2609 Lisp_Object handler;
@@ -2670,8 +2647,7 @@ DEFUN ("access-file", Faccess_file, Saccess_file, 2, 2, 0,
2670 doc: /* Access file FILENAME, and get an error if that does not work. 2647 doc: /* Access file FILENAME, and get an error if that does not work.
2671The second argument STRING is used in the error message. 2648The second argument STRING is used in the error message.
2672If there is no error, returns nil. */) 2649If there is no error, returns nil. */)
2673 (filename, string) 2650 (Lisp_Object filename, Lisp_Object string)
2674 Lisp_Object filename, string;
2675{ 2651{
2676 Lisp_Object handler, encoded_filename, absname; 2652 Lisp_Object handler, encoded_filename, absname;
2677 int fd; 2653 int fd;
@@ -2704,8 +2680,7 @@ Otherwise it returns nil.
2704 2680
2705This function returns t when given the name of a symlink that 2681This function returns t when given the name of a symlink that
2706points to a nonexistent file. */) 2682points to a nonexistent file. */)
2707 (filename) 2683 (Lisp_Object filename)
2708 Lisp_Object filename;
2709{ 2684{
2710 Lisp_Object handler; 2685 Lisp_Object handler;
2711 2686
@@ -2769,8 +2744,7 @@ DEFUN ("file-directory-p", Ffile_directory_p, Sfile_directory_p, 1, 1, 0,
2769 doc: /* Return t if FILENAME names an existing directory. 2744 doc: /* Return t if FILENAME names an existing directory.
2770Symbolic links to directories count as directories. 2745Symbolic links to directories count as directories.
2771See `file-symlink-p' to distinguish symlinks. */) 2746See `file-symlink-p' to distinguish symlinks. */)
2772 (filename) 2747 (Lisp_Object filename)
2773 Lisp_Object filename;
2774{ 2748{
2775 register Lisp_Object absname; 2749 register Lisp_Object absname;
2776 struct stat st; 2750 struct stat st;
@@ -2799,8 +2773,7 @@ directory as a buffer's current directory, this predicate must return true.
2799A directory name spec may be given instead; then the value is t 2773A directory name spec may be given instead; then the value is t
2800if the directory so specified exists and really is a readable and 2774if the directory so specified exists and really is a readable and
2801searchable directory. */) 2775searchable directory. */)
2802 (filename) 2776 (Lisp_Object filename)
2803 Lisp_Object filename;
2804{ 2777{
2805 Lisp_Object handler; 2778 Lisp_Object handler;
2806 int tem; 2779 int tem;
@@ -2824,8 +2797,7 @@ DEFUN ("file-regular-p", Ffile_regular_p, Sfile_regular_p, 1, 1, 0,
2824This is the sort of file that holds an ordinary stream of data bytes. 2797This is the sort of file that holds an ordinary stream of data bytes.
2825Symbolic links to regular files count as regular files. 2798Symbolic links to regular files count as regular files.
2826See `file-symlink-p' to distinguish symlinks. */) 2799See `file-symlink-p' to distinguish symlinks. */)
2827 (filename) 2800 (Lisp_Object filename)
2828 Lisp_Object filename;
2829{ 2801{
2830 register Lisp_Object absname; 2802 register Lisp_Object absname;
2831 struct stat st; 2803 struct stat st;
@@ -2867,8 +2839,7 @@ DEFUN ("file-selinux-context", Ffile_selinux_context,
2867 doc: /* Return SELinux context of file named FILENAME, 2839 doc: /* Return SELinux context of file named FILENAME,
2868as a list ("user", "role", "type", "range"). Return (nil, nil, nil, nil) 2840as a list ("user", "role", "type", "range"). Return (nil, nil, nil, nil)
2869if file does not exist, is not accessible, or SELinux is disabled */) 2841if file does not exist, is not accessible, or SELinux is disabled */)
2870 (filename) 2842 (Lisp_Object filename)
2871 Lisp_Object filename;
2872{ 2843{
2873 Lisp_Object absname; 2844 Lisp_Object absname;
2874 Lisp_Object values[4]; 2845 Lisp_Object values[4];
@@ -2923,8 +2894,7 @@ DEFUN ("set-file-selinux-context", Fset_file_selinux_context,
2923 doc: /* Set SELinux context of file named FILENAME to CONTEXT 2894 doc: /* Set SELinux context of file named FILENAME to CONTEXT
2924as a list ("user", "role", "type", "range"). Has no effect if SELinux 2895as a list ("user", "role", "type", "range"). Has no effect if SELinux
2925is disabled. */) 2896is disabled. */)
2926 (filename, context) 2897 (Lisp_Object filename, Lisp_Object context)
2927 Lisp_Object filename, context;
2928{ 2898{
2929 Lisp_Object absname, encoded_absname; 2899 Lisp_Object absname, encoded_absname;
2930 Lisp_Object handler; 2900 Lisp_Object handler;
@@ -2999,8 +2969,7 @@ is disabled. */)
2999DEFUN ("file-modes", Ffile_modes, Sfile_modes, 1, 1, 0, 2969DEFUN ("file-modes", Ffile_modes, Sfile_modes, 1, 1, 0,
3000 doc: /* Return mode bits of file named FILENAME, as an integer. 2970 doc: /* Return mode bits of file named FILENAME, as an integer.
3001Return nil, if file does not exist or is not accessible. */) 2971Return nil, if file does not exist or is not accessible. */)
3002 (filename) 2972 (Lisp_Object filename)
3003 Lisp_Object filename;
3004{ 2973{
3005 Lisp_Object absname; 2974 Lisp_Object absname;
3006 struct stat st; 2975 struct stat st;
@@ -3030,8 +2999,7 @@ Only the 12 low bits of MODE are used.
3030 2999
3031Interactively, mode bits are read by `read-file-modes', which accepts 3000Interactively, mode bits are read by `read-file-modes', which accepts
3032symbolic notation, like the `chmod' command from GNU Coreutils. */) 3001symbolic notation, like the `chmod' command from GNU Coreutils. */)
3033 (filename, mode) 3002 (Lisp_Object filename, Lisp_Object mode)
3034 Lisp_Object filename, mode;
3035{ 3003{
3036 Lisp_Object absname, encoded_absname; 3004 Lisp_Object absname, encoded_absname;
3037 Lisp_Object handler; 3005 Lisp_Object handler;
@@ -3057,8 +3025,7 @@ DEFUN ("set-default-file-modes", Fset_default_file_modes, Sset_default_file_mode
3057 doc: /* Set the file permission bits for newly created files. 3025 doc: /* Set the file permission bits for newly created files.
3058The argument MODE should be an integer; only the low 9 bits are used. 3026The argument MODE should be an integer; only the low 9 bits are used.
3059This setting is inherited by subprocesses. */) 3027This setting is inherited by subprocesses. */)
3060 (mode) 3028 (Lisp_Object mode)
3061 Lisp_Object mode;
3062{ 3029{
3063 CHECK_NUMBER (mode); 3030 CHECK_NUMBER (mode);
3064 3031
@@ -3070,7 +3037,7 @@ This setting is inherited by subprocesses. */)
3070DEFUN ("default-file-modes", Fdefault_file_modes, Sdefault_file_modes, 0, 0, 0, 3037DEFUN ("default-file-modes", Fdefault_file_modes, Sdefault_file_modes, 0, 0, 0,
3071 doc: /* Return the default file protection for created files. 3038 doc: /* Return the default file protection for created files.
3072The value is an integer. */) 3039The value is an integer. */)
3073 () 3040 (void)
3074{ 3041{
3075 int realmask; 3042 int realmask;
3076 Lisp_Object value; 3043 Lisp_Object value;
@@ -3090,8 +3057,7 @@ Set both access and modification times.
3090Return t on success, else nil. 3057Return t on success, else nil.
3091Use the current time if TIME is nil. TIME is in the format of 3058Use the current time if TIME is nil. TIME is in the format of
3092`current-time'. */) 3059`current-time'. */)
3093 (filename, time) 3060 (Lisp_Object filename, Lisp_Object time)
3094 Lisp_Object filename, time;
3095{ 3061{
3096 Lisp_Object absname, encoded_absname; 3062 Lisp_Object absname, encoded_absname;
3097 Lisp_Object handler; 3063 Lisp_Object handler;
@@ -3138,7 +3104,7 @@ Use the current time if TIME is nil. TIME is in the format of
3138#ifdef HAVE_SYNC 3104#ifdef HAVE_SYNC
3139DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "", 3105DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "",
3140 doc: /* Tell Unix to finish all pending disk updates. */) 3106 doc: /* Tell Unix to finish all pending disk updates. */)
3141 () 3107 (void)
3142{ 3108{
3143 sync (); 3109 sync ();
3144 return Qnil; 3110 return Qnil;
@@ -3150,8 +3116,7 @@ DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_
3150 doc: /* Return t if file FILE1 is newer than file FILE2. 3116 doc: /* Return t if file FILE1 is newer than file FILE2.
3151If FILE1 does not exist, the answer is nil; 3117If FILE1 does not exist, the answer is nil;
3152otherwise, if FILE2 does not exist, the answer is t. */) 3118otherwise, if FILE2 does not exist, the answer is t. */)
3153 (file1, file2) 3119 (Lisp_Object file1, Lisp_Object file2)
3154 Lisp_Object file1, file2;
3155{ 3120{
3156 Lisp_Object absname1, absname2; 3121 Lisp_Object absname1, absname2;
3157 struct stat st; 3122 struct stat st;
@@ -3300,8 +3265,7 @@ the number of characters that replace previous buffer contents.
3300This function does code conversion according to the value of 3265This function does code conversion according to the value of
3301`coding-system-for-read' or `file-coding-system-alist', and sets the 3266`coding-system-for-read' or `file-coding-system-alist', and sets the
3302variable `last-coding-system-used' to the coding system actually used. */) 3267variable `last-coding-system-used' to the coding system actually used. */)
3303 (filename, visit, beg, end, replace) 3268 (Lisp_Object filename, Lisp_Object visit, Lisp_Object beg, Lisp_Object end, Lisp_Object replace)
3304 Lisp_Object filename, visit, beg, end, replace;
3305{ 3269{
3306 struct stat st; 3270 struct stat st;
3307 register int fd; 3271 register int fd;
@@ -4580,8 +4544,7 @@ This does code conversion according to the value of
4580 4544
4581This calls `write-region-annotate-functions' at the start, and 4545This calls `write-region-annotate-functions' at the start, and
4582`write-region-post-annotation-function' at the end. */) 4546`write-region-post-annotation-function' at the end. */)
4583 (start, end, filename, append, visit, lockname, mustbenew) 4547 (Lisp_Object start, Lisp_Object end, Lisp_Object filename, Lisp_Object append, Lisp_Object visit, Lisp_Object lockname, Lisp_Object mustbenew)
4584 Lisp_Object start, end, filename, append, visit, lockname, mustbenew;
4585{ 4548{
4586 register int desc; 4549 register int desc;
4587 int failure; 4550 int failure;
@@ -4886,8 +4849,7 @@ Lisp_Object merge (Lisp_Object, Lisp_Object, Lisp_Object);
4886 4849
4887DEFUN ("car-less-than-car", Fcar_less_than_car, Scar_less_than_car, 2, 2, 0, 4850DEFUN ("car-less-than-car", Fcar_less_than_car, Scar_less_than_car, 2, 2, 0,
4888 doc: /* Return t if (car A) is numerically less than (car B). */) 4851 doc: /* Return t if (car A) is numerically less than (car B). */)
4889 (a, b) 4852 (Lisp_Object a, Lisp_Object b)
4890 Lisp_Object a, b;
4891{ 4853{
4892 return Flss (Fcar (a), Fcar (b)); 4854 return Flss (Fcar (a), Fcar (b));
4893} 4855}
@@ -5114,8 +5076,7 @@ DEFUN ("verify-visited-file-modtime", Fverify_visited_file_modtime,
5114 doc: /* Return t if last mod time of BUF's visited file matches what BUF records. 5076 doc: /* Return t if last mod time of BUF's visited file matches what BUF records.
5115This means that the file has not been changed since it was visited or saved. 5077This means that the file has not been changed since it was visited or saved.
5116See Info node `(elisp)Modification Time' for more details. */) 5078See Info node `(elisp)Modification Time' for more details. */)
5117 (buf) 5079 (Lisp_Object buf)
5118 Lisp_Object buf;
5119{ 5080{
5120 struct buffer *b; 5081 struct buffer *b;
5121 struct stat st; 5082 struct stat st;
@@ -5161,7 +5122,7 @@ DEFUN ("clear-visited-file-modtime", Fclear_visited_file_modtime,
5161 Sclear_visited_file_modtime, 0, 0, 0, 5122 Sclear_visited_file_modtime, 0, 0, 0,
5162 doc: /* Clear out records of last mod time of visited file. 5123 doc: /* Clear out records of last mod time of visited file.
5163Next attempt to save will certainly not complain of a discrepancy. */) 5124Next attempt to save will certainly not complain of a discrepancy. */)
5164 () 5125 (void)
5165{ 5126{
5166 current_buffer->modtime = 0; 5127 current_buffer->modtime = 0;
5167 current_buffer->modtime_size = -1; 5128 current_buffer->modtime_size = -1;
@@ -5175,7 +5136,7 @@ The value is a list of the form (HIGH LOW), like the time values
5175that `file-attributes' returns. If the current buffer has no recorded 5136that `file-attributes' returns. If the current buffer has no recorded
5176file modification time, this function returns 0. 5137file modification time, this function returns 0.
5177See Info node `(elisp)Modification Time' for more details. */) 5138See Info node `(elisp)Modification Time' for more details. */)
5178 () 5139 (void)
5179{ 5140{
5180 if (! current_buffer->modtime) 5141 if (! current_buffer->modtime)
5181 return make_number (0); 5142 return make_number (0);
@@ -5190,8 +5151,7 @@ or if the file itself has been changed for some known benign reason.
5190An argument specifies the modification time value to use 5151An argument specifies the modification time value to use
5191\(instead of that of the visited file), in the form of a list 5152\(instead of that of the visited file), in the form of a list
5192\(HIGH . LOW) or (HIGH LOW). */) 5153\(HIGH . LOW) or (HIGH LOW). */)
5193 (time_list) 5154 (Lisp_Object time_list)
5194 Lisp_Object time_list;
5195{ 5155{
5196 if (!NILP (time_list)) 5156 if (!NILP (time_list))
5197 { 5157 {
@@ -5337,8 +5297,7 @@ Normally we run the normal hook `auto-save-hook' before saving.
5337 5297
5338A non-nil NO-MESSAGE argument means do not print any message if successful. 5298A non-nil NO-MESSAGE argument means do not print any message if successful.
5339A non-nil CURRENT-ONLY argument means save only current buffer. */) 5299A non-nil CURRENT-ONLY argument means save only current buffer. */)
5340 (no_message, current_only) 5300 (Lisp_Object no_message, Lisp_Object current_only)
5341 Lisp_Object no_message, current_only;
5342{ 5301{
5343 struct buffer *old = current_buffer, *b; 5302 struct buffer *old = current_buffer, *b;
5344 Lisp_Object tail, buf; 5303 Lisp_Object tail, buf;
@@ -5539,7 +5498,7 @@ DEFUN ("set-buffer-auto-saved", Fset_buffer_auto_saved,
5539 Sset_buffer_auto_saved, 0, 0, 0, 5498 Sset_buffer_auto_saved, 0, 0, 0,
5540 doc: /* Mark current buffer as auto-saved with its current text. 5499 doc: /* Mark current buffer as auto-saved with its current text.
5541No auto-save file will be written until the buffer changes again. */) 5500No auto-save file will be written until the buffer changes again. */)
5542 () 5501 (void)
5543{ 5502{
5544 /* FIXME: This should not be called in indirect buffers, since 5503 /* FIXME: This should not be called in indirect buffers, since
5545 they're not autosaved. */ 5504 they're not autosaved. */
@@ -5552,7 +5511,7 @@ No auto-save file will be written until the buffer changes again. */)
5552DEFUN ("clear-buffer-auto-save-failure", Fclear_buffer_auto_save_failure, 5511DEFUN ("clear-buffer-auto-save-failure", Fclear_buffer_auto_save_failure,
5553 Sclear_buffer_auto_save_failure, 0, 0, 0, 5512 Sclear_buffer_auto_save_failure, 0, 0, 0,
5554 doc: /* Clear any record of a recent auto-save failure in the current buffer. */) 5513 doc: /* Clear any record of a recent auto-save failure in the current buffer. */)
5555 () 5514 (void)
5556{ 5515{
5557 current_buffer->auto_save_failure_time = -1; 5516 current_buffer->auto_save_failure_time = -1;
5558 return Qnil; 5517 return Qnil;
@@ -5564,7 +5523,7 @@ DEFUN ("recent-auto-save-p", Frecent_auto_save_p, Srecent_auto_save_p,
5564More precisely, if it has been auto-saved since last read from or saved 5523More precisely, if it has been auto-saved since last read from or saved
5565in the visited file. If the buffer has no visited file, 5524in the visited file. If the buffer has no visited file,
5566then any auto-save counts as "recent". */) 5525then any auto-save counts as "recent". */)
5567 () 5526 (void)
5568{ 5527{
5569 /* FIXME: maybe we should return nil for indirect buffers since 5528 /* FIXME: maybe we should return nil for indirect buffers since
5570 they're never autosaved. */ 5529 they're never autosaved. */
@@ -5578,7 +5537,7 @@ DEFUN ("next-read-file-uses-dialog-p", Fnext_read_file_uses_dialog_p,
5578 doc: /* Return t if a call to `read-file-name' will use a dialog. 5537 doc: /* Return t if a call to `read-file-name' will use a dialog.
5579The return value is only relevant for a call to `read-file-name' that happens 5538The return value is only relevant for a call to `read-file-name' that happens
5580before any other event (mouse or keypress) is handled. */) 5539before any other event (mouse or keypress) is handled. */)
5581 () 5540 (void)
5582{ 5541{
5583#if defined (USE_MOTIF) || defined (HAVE_NTGUI) || defined (USE_GTK) 5542#if defined (USE_MOTIF) || defined (HAVE_NTGUI) || defined (USE_GTK)
5584 if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) 5543 if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
diff --git a/src/filelock.c b/src/filelock.c
index 0ed236f8cc2..8eb6060e531 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -665,8 +665,7 @@ DEFUN ("lock-buffer", Flock_buffer, Slock_buffer,
665 doc: /* Lock FILE, if current buffer is modified. 665 doc: /* Lock FILE, if current buffer is modified.
666FILE defaults to current buffer's visited file, 666FILE defaults to current buffer's visited file,
667or else nothing is done if current buffer isn't visiting a file. */) 667or else nothing is done if current buffer isn't visiting a file. */)
668 (file) 668 (Lisp_Object file)
669 Lisp_Object file;
670{ 669{
671 if (NILP (file)) 670 if (NILP (file))
672 file = current_buffer->file_truename; 671 file = current_buffer->file_truename;
@@ -683,7 +682,7 @@ DEFUN ("unlock-buffer", Funlock_buffer, Sunlock_buffer,
683 doc: /* Unlock the file visited in the current buffer. 682 doc: /* Unlock the file visited in the current buffer.
684If the buffer is not modified, this does nothing because the file 683If the buffer is not modified, this does nothing because the file
685should not be locked in that case. */) 684should not be locked in that case. */)
686 () 685 (void)
687{ 686{
688 if (SAVE_MODIFF < MODIFF 687 if (SAVE_MODIFF < MODIFF
689 && STRINGP (current_buffer->file_truename)) 688 && STRINGP (current_buffer->file_truename))
@@ -705,8 +704,7 @@ DEFUN ("file-locked-p", Ffile_locked_p, Sfile_locked_p, 1, 1, 0,
705 doc: /* Return a value indicating whether FILENAME is locked. 704 doc: /* Return a value indicating whether FILENAME is locked.
706The value is nil if the FILENAME is not locked, 705The value is nil if the FILENAME is not locked,
707t if it is locked by you, else a string saying which user has locked it. */) 706t if it is locked by you, else a string saying which user has locked it. */)
708 (filename) 707 (Lisp_Object filename)
709 Lisp_Object filename;
710{ 708{
711 Lisp_Object ret; 709 Lisp_Object ret;
712 register char *lfname; 710 register char *lfname;
diff --git a/src/floatfns.c b/src/floatfns.c
index 96a89337c75..64dc308c7dd 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -206,8 +206,7 @@ extract_float (num)
206 206
207DEFUN ("acos", Facos, Sacos, 1, 1, 0, 207DEFUN ("acos", Facos, Sacos, 1, 1, 0,
208 doc: /* Return the inverse cosine of ARG. */) 208 doc: /* Return the inverse cosine of ARG. */)
209 (arg) 209 (register Lisp_Object arg)
210 register Lisp_Object arg;
211{ 210{
212 double d = extract_float (arg); 211 double d = extract_float (arg);
213#ifdef FLOAT_CHECK_DOMAIN 212#ifdef FLOAT_CHECK_DOMAIN
@@ -220,8 +219,7 @@ DEFUN ("acos", Facos, Sacos, 1, 1, 0,
220 219
221DEFUN ("asin", Fasin, Sasin, 1, 1, 0, 220DEFUN ("asin", Fasin, Sasin, 1, 1, 0,
222 doc: /* Return the inverse sine of ARG. */) 221 doc: /* Return the inverse sine of ARG. */)
223 (arg) 222 (register Lisp_Object arg)
224 register Lisp_Object arg;
225{ 223{
226 double d = extract_float (arg); 224 double d = extract_float (arg);
227#ifdef FLOAT_CHECK_DOMAIN 225#ifdef FLOAT_CHECK_DOMAIN
@@ -238,8 +236,7 @@ If only one argument Y is given, return the inverse tangent of Y.
238If two arguments Y and X are given, return the inverse tangent of Y 236If two arguments Y and X are given, return the inverse tangent of Y
239divided by X, i.e. the angle in radians between the vector (X, Y) 237divided by X, i.e. the angle in radians between the vector (X, Y)
240and the x-axis. */) 238and the x-axis. */)
241 (y, x) 239 (register Lisp_Object y, Lisp_Object x)
242 register Lisp_Object y, x;
243{ 240{
244 double d = extract_float (y); 241 double d = extract_float (y);
245 242
@@ -256,8 +253,7 @@ and the x-axis. */)
256 253
257DEFUN ("cos", Fcos, Scos, 1, 1, 0, 254DEFUN ("cos", Fcos, Scos, 1, 1, 0,
258 doc: /* Return the cosine of ARG. */) 255 doc: /* Return the cosine of ARG. */)
259 (arg) 256 (register Lisp_Object arg)
260 register Lisp_Object arg;
261{ 257{
262 double d = extract_float (arg); 258 double d = extract_float (arg);
263 IN_FLOAT (d = cos (d), "cos", arg); 259 IN_FLOAT (d = cos (d), "cos", arg);
@@ -266,8 +262,7 @@ DEFUN ("cos", Fcos, Scos, 1, 1, 0,
266 262
267DEFUN ("sin", Fsin, Ssin, 1, 1, 0, 263DEFUN ("sin", Fsin, Ssin, 1, 1, 0,
268 doc: /* Return the sine of ARG. */) 264 doc: /* Return the sine of ARG. */)
269 (arg) 265 (register Lisp_Object arg)
270 register Lisp_Object arg;
271{ 266{
272 double d = extract_float (arg); 267 double d = extract_float (arg);
273 IN_FLOAT (d = sin (d), "sin", arg); 268 IN_FLOAT (d = sin (d), "sin", arg);
@@ -276,8 +271,7 @@ DEFUN ("sin", Fsin, Ssin, 1, 1, 0,
276 271
277DEFUN ("tan", Ftan, Stan, 1, 1, 0, 272DEFUN ("tan", Ftan, Stan, 1, 1, 0,
278 doc: /* Return the tangent of ARG. */) 273 doc: /* Return the tangent of ARG. */)
279 (arg) 274 (register Lisp_Object arg)
280 register Lisp_Object arg;
281{ 275{
282 double d = extract_float (arg); 276 double d = extract_float (arg);
283 double c = cos (d); 277 double c = cos (d);
@@ -292,8 +286,7 @@ DEFUN ("tan", Ftan, Stan, 1, 1, 0,
292#if defined HAVE_ISNAN && defined HAVE_COPYSIGN 286#if defined HAVE_ISNAN && defined HAVE_COPYSIGN
293DEFUN ("isnan", Fisnan, Sisnan, 1, 1, 0, 287DEFUN ("isnan", Fisnan, Sisnan, 1, 1, 0,
294 doc: /* Return non nil iff argument X is a NaN. */) 288 doc: /* Return non nil iff argument X is a NaN. */)
295 (x) 289 (Lisp_Object x)
296 Lisp_Object x;
297{ 290{
298 CHECK_FLOAT (x); 291 CHECK_FLOAT (x);
299 return isnan (XFLOAT_DATA (x)) ? Qt : Qnil; 292 return isnan (XFLOAT_DATA (x)) ? Qt : Qnil;
@@ -302,8 +295,7 @@ DEFUN ("isnan", Fisnan, Sisnan, 1, 1, 0,
302DEFUN ("copysign", Fcopysign, Scopysign, 1, 2, 0, 295DEFUN ("copysign", Fcopysign, Scopysign, 1, 2, 0,
303 doc: /* Copy sign of X2 to value of X1, and return the result. 296 doc: /* Copy sign of X2 to value of X1, and return the result.
304Cause an error if X1 or X2 is not a float. */) 297Cause an error if X1 or X2 is not a float. */)
305 (x1, x2) 298 (Lisp_Object x1, Lisp_Object x2)
306 Lisp_Object x1, x2;
307{ 299{
308 double f1, f2; 300 double f1, f2;
309 301
@@ -326,8 +318,7 @@ and an integral exponent EXP for 2, such that:
326 318
327The function returns the cons cell (SGNFCAND . EXP). 319The function returns the cons cell (SGNFCAND . EXP).
328If X is zero, both parts (SGNFCAND and EXP) are zero. */) 320If X is zero, both parts (SGNFCAND and EXP) are zero. */)
329 (x) 321 (Lisp_Object x)
330 Lisp_Object x;
331{ 322{
332 double f = XFLOATINT (x); 323 double f = XFLOATINT (x);
333 324
@@ -345,8 +336,7 @@ DEFUN ("ldexp", Fldexp, Sldexp, 1, 2, 0,
345 doc: /* Construct number X from significand SGNFCAND and exponent EXP. 336 doc: /* Construct number X from significand SGNFCAND and exponent EXP.
346Returns the floating point value resulting from multiplying SGNFCAND 337Returns the floating point value resulting from multiplying SGNFCAND
347(the significand) by 2 raised to the power of EXP (the exponent). */) 338(the significand) by 2 raised to the power of EXP (the exponent). */)
348 (sgnfcand, exp) 339 (Lisp_Object sgnfcand, Lisp_Object exp)
349 Lisp_Object sgnfcand, exp;
350{ 340{
351 CHECK_NUMBER (exp); 341 CHECK_NUMBER (exp);
352 return make_float (ldexp (XFLOATINT (sgnfcand), XINT (exp))); 342 return make_float (ldexp (XFLOATINT (sgnfcand), XINT (exp)));
@@ -357,8 +347,7 @@ Returns the floating point value resulting from multiplying SGNFCAND
357 347
358DEFUN ("bessel-j0", Fbessel_j0, Sbessel_j0, 1, 1, 0, 348DEFUN ("bessel-j0", Fbessel_j0, Sbessel_j0, 1, 1, 0,
359 doc: /* Return the bessel function j0 of ARG. */) 349 doc: /* Return the bessel function j0 of ARG. */)
360 (arg) 350 (register Lisp_Object arg)
361 register Lisp_Object arg;
362{ 351{
363 double d = extract_float (arg); 352 double d = extract_float (arg);
364 IN_FLOAT (d = j0 (d), "bessel-j0", arg); 353 IN_FLOAT (d = j0 (d), "bessel-j0", arg);
@@ -367,8 +356,7 @@ DEFUN ("bessel-j0", Fbessel_j0, Sbessel_j0, 1, 1, 0,
367 356
368DEFUN ("bessel-j1", Fbessel_j1, Sbessel_j1, 1, 1, 0, 357DEFUN ("bessel-j1", Fbessel_j1, Sbessel_j1, 1, 1, 0,
369 doc: /* Return the bessel function j1 of ARG. */) 358 doc: /* Return the bessel function j1 of ARG. */)
370 (arg) 359 (register Lisp_Object arg)
371 register Lisp_Object arg;
372{ 360{
373 double d = extract_float (arg); 361 double d = extract_float (arg);
374 IN_FLOAT (d = j1 (d), "bessel-j1", arg); 362 IN_FLOAT (d = j1 (d), "bessel-j1", arg);
@@ -378,8 +366,7 @@ DEFUN ("bessel-j1", Fbessel_j1, Sbessel_j1, 1, 1, 0,
378DEFUN ("bessel-jn", Fbessel_jn, Sbessel_jn, 2, 2, 0, 366DEFUN ("bessel-jn", Fbessel_jn, Sbessel_jn, 2, 2, 0,
379 doc: /* Return the order N bessel function output jn of ARG. 367 doc: /* Return the order N bessel function output jn of ARG.
380The first arg (the order) is truncated to an integer. */) 368The first arg (the order) is truncated to an integer. */)
381 (n, arg) 369 (register Lisp_Object n, Lisp_Object arg)
382 register Lisp_Object n, arg;
383{ 370{
384 int i1 = extract_float (n); 371 int i1 = extract_float (n);
385 double f2 = extract_float (arg); 372 double f2 = extract_float (arg);
@@ -390,8 +377,7 @@ The first arg (the order) is truncated to an integer. */)
390 377
391DEFUN ("bessel-y0", Fbessel_y0, Sbessel_y0, 1, 1, 0, 378DEFUN ("bessel-y0", Fbessel_y0, Sbessel_y0, 1, 1, 0,
392 doc: /* Return the bessel function y0 of ARG. */) 379 doc: /* Return the bessel function y0 of ARG. */)
393 (arg) 380 (register Lisp_Object arg)
394 register Lisp_Object arg;
395{ 381{
396 double d = extract_float (arg); 382 double d = extract_float (arg);
397 IN_FLOAT (d = y0 (d), "bessel-y0", arg); 383 IN_FLOAT (d = y0 (d), "bessel-y0", arg);
@@ -400,8 +386,7 @@ DEFUN ("bessel-y0", Fbessel_y0, Sbessel_y0, 1, 1, 0,
400 386
401DEFUN ("bessel-y1", Fbessel_y1, Sbessel_y1, 1, 1, 0, 387DEFUN ("bessel-y1", Fbessel_y1, Sbessel_y1, 1, 1, 0,
402 doc: /* Return the bessel function y1 of ARG. */) 388 doc: /* Return the bessel function y1 of ARG. */)
403 (arg) 389 (register Lisp_Object arg)
404 register Lisp_Object arg;
405{ 390{
406 double d = extract_float (arg); 391 double d = extract_float (arg);
407 IN_FLOAT (d = y1 (d), "bessel-y0", arg); 392 IN_FLOAT (d = y1 (d), "bessel-y0", arg);
@@ -411,8 +396,7 @@ DEFUN ("bessel-y1", Fbessel_y1, Sbessel_y1, 1, 1, 0,
411DEFUN ("bessel-yn", Fbessel_yn, Sbessel_yn, 2, 2, 0, 396DEFUN ("bessel-yn", Fbessel_yn, Sbessel_yn, 2, 2, 0,
412 doc: /* Return the order N bessel function output yn of ARG. 397 doc: /* Return the order N bessel function output yn of ARG.
413The first arg (the order) is truncated to an integer. */) 398The first arg (the order) is truncated to an integer. */)
414 (n, arg) 399 (register Lisp_Object n, Lisp_Object arg)
415 register Lisp_Object n, arg;
416{ 400{
417 int i1 = extract_float (n); 401 int i1 = extract_float (n);
418 double f2 = extract_float (arg); 402 double f2 = extract_float (arg);
@@ -427,8 +411,7 @@ The first arg (the order) is truncated to an integer. */)
427 411
428DEFUN ("erf", Ferf, Serf, 1, 1, 0, 412DEFUN ("erf", Ferf, Serf, 1, 1, 0,
429 doc: /* Return the mathematical error function of ARG. */) 413 doc: /* Return the mathematical error function of ARG. */)
430 (arg) 414 (register Lisp_Object arg)
431 register Lisp_Object arg;
432{ 415{
433 double d = extract_float (arg); 416 double d = extract_float (arg);
434 IN_FLOAT (d = erf (d), "erf", arg); 417 IN_FLOAT (d = erf (d), "erf", arg);
@@ -437,8 +420,7 @@ DEFUN ("erf", Ferf, Serf, 1, 1, 0,
437 420
438DEFUN ("erfc", Ferfc, Serfc, 1, 1, 0, 421DEFUN ("erfc", Ferfc, Serfc, 1, 1, 0,
439 doc: /* Return the complementary error function of ARG. */) 422 doc: /* Return the complementary error function of ARG. */)
440 (arg) 423 (register Lisp_Object arg)
441 register Lisp_Object arg;
442{ 424{
443 double d = extract_float (arg); 425 double d = extract_float (arg);
444 IN_FLOAT (d = erfc (d), "erfc", arg); 426 IN_FLOAT (d = erfc (d), "erfc", arg);
@@ -447,8 +429,7 @@ DEFUN ("erfc", Ferfc, Serfc, 1, 1, 0,
447 429
448DEFUN ("log-gamma", Flog_gamma, Slog_gamma, 1, 1, 0, 430DEFUN ("log-gamma", Flog_gamma, Slog_gamma, 1, 1, 0,
449 doc: /* Return the log gamma of ARG. */) 431 doc: /* Return the log gamma of ARG. */)
450 (arg) 432 (register Lisp_Object arg)
451 register Lisp_Object arg;
452{ 433{
453 double d = extract_float (arg); 434 double d = extract_float (arg);
454 IN_FLOAT (d = lgamma (d), "log-gamma", arg); 435 IN_FLOAT (d = lgamma (d), "log-gamma", arg);
@@ -457,8 +438,7 @@ DEFUN ("log-gamma", Flog_gamma, Slog_gamma, 1, 1, 0,
457 438
458DEFUN ("cube-root", Fcube_root, Scube_root, 1, 1, 0, 439DEFUN ("cube-root", Fcube_root, Scube_root, 1, 1, 0,
459 doc: /* Return the cube root of ARG. */) 440 doc: /* Return the cube root of ARG. */)
460 (arg) 441 (register Lisp_Object arg)
461 register Lisp_Object arg;
462{ 442{
463 double d = extract_float (arg); 443 double d = extract_float (arg);
464#ifdef HAVE_CBRT 444#ifdef HAVE_CBRT
@@ -476,8 +456,7 @@ DEFUN ("cube-root", Fcube_root, Scube_root, 1, 1, 0,
476 456
477DEFUN ("exp", Fexp, Sexp, 1, 1, 0, 457DEFUN ("exp", Fexp, Sexp, 1, 1, 0,
478 doc: /* Return the exponential base e of ARG. */) 458 doc: /* Return the exponential base e of ARG. */)
479 (arg) 459 (register Lisp_Object arg)
480 register Lisp_Object arg;
481{ 460{
482 double d = extract_float (arg); 461 double d = extract_float (arg);
483#ifdef FLOAT_CHECK_DOMAIN 462#ifdef FLOAT_CHECK_DOMAIN
@@ -493,8 +472,7 @@ DEFUN ("exp", Fexp, Sexp, 1, 1, 0,
493 472
494DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0, 473DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0,
495 doc: /* Return the exponential ARG1 ** ARG2. */) 474 doc: /* Return the exponential ARG1 ** ARG2. */)
496 (arg1, arg2) 475 (register Lisp_Object arg1, Lisp_Object arg2)
497 register Lisp_Object arg1, arg2;
498{ 476{
499 double f1, f2, f3; 477 double f1, f2, f3;
500 478
@@ -552,8 +530,7 @@ DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0,
552DEFUN ("log", Flog, Slog, 1, 2, 0, 530DEFUN ("log", Flog, Slog, 1, 2, 0,
553 doc: /* Return the natural logarithm of ARG. 531 doc: /* Return the natural logarithm of ARG.
554If the optional argument BASE is given, return log ARG using that base. */) 532If the optional argument BASE is given, return log ARG using that base. */)
555 (arg, base) 533 (register Lisp_Object arg, Lisp_Object base)
556 register Lisp_Object arg, base;
557{ 534{
558 double d = extract_float (arg); 535 double d = extract_float (arg);
559 536
@@ -581,8 +558,7 @@ If the optional argument BASE is given, return log ARG using that base. */)
581 558
582DEFUN ("log10", Flog10, Slog10, 1, 1, 0, 559DEFUN ("log10", Flog10, Slog10, 1, 1, 0,
583 doc: /* Return the logarithm base 10 of ARG. */) 560 doc: /* Return the logarithm base 10 of ARG. */)
584 (arg) 561 (register Lisp_Object arg)
585 register Lisp_Object arg;
586{ 562{
587 double d = extract_float (arg); 563 double d = extract_float (arg);
588#ifdef FLOAT_CHECK_DOMAIN 564#ifdef FLOAT_CHECK_DOMAIN
@@ -595,8 +571,7 @@ DEFUN ("log10", Flog10, Slog10, 1, 1, 0,
595 571
596DEFUN ("sqrt", Fsqrt, Ssqrt, 1, 1, 0, 572DEFUN ("sqrt", Fsqrt, Ssqrt, 1, 1, 0,
597 doc: /* Return the square root of ARG. */) 573 doc: /* Return the square root of ARG. */)
598 (arg) 574 (register Lisp_Object arg)
599 register Lisp_Object arg;
600{ 575{
601 double d = extract_float (arg); 576 double d = extract_float (arg);
602#ifdef FLOAT_CHECK_DOMAIN 577#ifdef FLOAT_CHECK_DOMAIN
@@ -611,8 +586,7 @@ DEFUN ("sqrt", Fsqrt, Ssqrt, 1, 1, 0,
611 586
612DEFUN ("acosh", Facosh, Sacosh, 1, 1, 0, 587DEFUN ("acosh", Facosh, Sacosh, 1, 1, 0,
613 doc: /* Return the inverse hyperbolic cosine of ARG. */) 588 doc: /* Return the inverse hyperbolic cosine of ARG. */)
614 (arg) 589 (register Lisp_Object arg)
615 register Lisp_Object arg;
616{ 590{
617 double d = extract_float (arg); 591 double d = extract_float (arg);
618#ifdef FLOAT_CHECK_DOMAIN 592#ifdef FLOAT_CHECK_DOMAIN
@@ -629,8 +603,7 @@ DEFUN ("acosh", Facosh, Sacosh, 1, 1, 0,
629 603
630DEFUN ("asinh", Fasinh, Sasinh, 1, 1, 0, 604DEFUN ("asinh", Fasinh, Sasinh, 1, 1, 0,
631 doc: /* Return the inverse hyperbolic sine of ARG. */) 605 doc: /* Return the inverse hyperbolic sine of ARG. */)
632 (arg) 606 (register Lisp_Object arg)
633 register Lisp_Object arg;
634{ 607{
635 double d = extract_float (arg); 608 double d = extract_float (arg);
636#ifdef HAVE_INVERSE_HYPERBOLIC 609#ifdef HAVE_INVERSE_HYPERBOLIC
@@ -643,8 +616,7 @@ DEFUN ("asinh", Fasinh, Sasinh, 1, 1, 0,
643 616
644DEFUN ("atanh", Fatanh, Satanh, 1, 1, 0, 617DEFUN ("atanh", Fatanh, Satanh, 1, 1, 0,
645 doc: /* Return the inverse hyperbolic tangent of ARG. */) 618 doc: /* Return the inverse hyperbolic tangent of ARG. */)
646 (arg) 619 (register Lisp_Object arg)
647 register Lisp_Object arg;
648{ 620{
649 double d = extract_float (arg); 621 double d = extract_float (arg);
650#ifdef FLOAT_CHECK_DOMAIN 622#ifdef FLOAT_CHECK_DOMAIN
@@ -661,8 +633,7 @@ DEFUN ("atanh", Fatanh, Satanh, 1, 1, 0,
661 633
662DEFUN ("cosh", Fcosh, Scosh, 1, 1, 0, 634DEFUN ("cosh", Fcosh, Scosh, 1, 1, 0,
663 doc: /* Return the hyperbolic cosine of ARG. */) 635 doc: /* Return the hyperbolic cosine of ARG. */)
664 (arg) 636 (register Lisp_Object arg)
665 register Lisp_Object arg;
666{ 637{
667 double d = extract_float (arg); 638 double d = extract_float (arg);
668#ifdef FLOAT_CHECK_DOMAIN 639#ifdef FLOAT_CHECK_DOMAIN
@@ -675,8 +646,7 @@ DEFUN ("cosh", Fcosh, Scosh, 1, 1, 0,
675 646
676DEFUN ("sinh", Fsinh, Ssinh, 1, 1, 0, 647DEFUN ("sinh", Fsinh, Ssinh, 1, 1, 0,
677 doc: /* Return the hyperbolic sine of ARG. */) 648 doc: /* Return the hyperbolic sine of ARG. */)
678 (arg) 649 (register Lisp_Object arg)
679 register Lisp_Object arg;
680{ 650{
681 double d = extract_float (arg); 651 double d = extract_float (arg);
682#ifdef FLOAT_CHECK_DOMAIN 652#ifdef FLOAT_CHECK_DOMAIN
@@ -689,8 +659,7 @@ DEFUN ("sinh", Fsinh, Ssinh, 1, 1, 0,
689 659
690DEFUN ("tanh", Ftanh, Stanh, 1, 1, 0, 660DEFUN ("tanh", Ftanh, Stanh, 1, 1, 0,
691 doc: /* Return the hyperbolic tangent of ARG. */) 661 doc: /* Return the hyperbolic tangent of ARG. */)
692 (arg) 662 (register Lisp_Object arg)
693 register Lisp_Object arg;
694{ 663{
695 double d = extract_float (arg); 664 double d = extract_float (arg);
696 IN_FLOAT (d = tanh (d), "tanh", arg); 665 IN_FLOAT (d = tanh (d), "tanh", arg);
@@ -700,8 +669,7 @@ DEFUN ("tanh", Ftanh, Stanh, 1, 1, 0,
700 669
701DEFUN ("abs", Fabs, Sabs, 1, 1, 0, 670DEFUN ("abs", Fabs, Sabs, 1, 1, 0,
702 doc: /* Return the absolute value of ARG. */) 671 doc: /* Return the absolute value of ARG. */)
703 (arg) 672 (register Lisp_Object arg)
704 register Lisp_Object arg;
705{ 673{
706 CHECK_NUMBER_OR_FLOAT (arg); 674 CHECK_NUMBER_OR_FLOAT (arg);
707 675
@@ -715,8 +683,7 @@ DEFUN ("abs", Fabs, Sabs, 1, 1, 0,
715 683
716DEFUN ("float", Ffloat, Sfloat, 1, 1, 0, 684DEFUN ("float", Ffloat, Sfloat, 1, 1, 0,
717 doc: /* Return the floating point number equal to ARG. */) 685 doc: /* Return the floating point number equal to ARG. */)
718 (arg) 686 (register Lisp_Object arg)
719 register Lisp_Object arg;
720{ 687{
721 CHECK_NUMBER_OR_FLOAT (arg); 688 CHECK_NUMBER_OR_FLOAT (arg);
722 689
@@ -729,8 +696,7 @@ DEFUN ("float", Ffloat, Sfloat, 1, 1, 0,
729DEFUN ("logb", Flogb, Slogb, 1, 1, 0, 696DEFUN ("logb", Flogb, Slogb, 1, 1, 0,
730 doc: /* Returns largest integer <= the base 2 log of the magnitude of ARG. 697 doc: /* Returns largest integer <= the base 2 log of the magnitude of ARG.
731This is the same as the exponent of a float. */) 698This is the same as the exponent of a float. */)
732 (arg) 699 (Lisp_Object arg)
733 Lisp_Object arg;
734{ 700{
735 Lisp_Object val; 701 Lisp_Object val;
736 EMACS_INT value; 702 EMACS_INT value;
@@ -891,8 +857,7 @@ DEFUN ("ceiling", Fceiling, Sceiling, 1, 2, 0,
891 doc: /* Return the smallest integer no less than ARG. 857 doc: /* Return the smallest integer no less than ARG.
892This rounds the value towards +inf. 858This rounds the value towards +inf.
893With optional DIVISOR, return the smallest integer no less than ARG/DIVISOR. */) 859With optional DIVISOR, return the smallest integer no less than ARG/DIVISOR. */)
894 (arg, divisor) 860 (Lisp_Object arg, Lisp_Object divisor)
895 Lisp_Object arg, divisor;
896{ 861{
897 return rounding_driver (arg, divisor, ceil, ceiling2, "ceiling"); 862 return rounding_driver (arg, divisor, ceil, ceiling2, "ceiling");
898} 863}
@@ -901,8 +866,7 @@ DEFUN ("floor", Ffloor, Sfloor, 1, 2, 0,
901 doc: /* Return the largest integer no greater than ARG. 866 doc: /* Return the largest integer no greater than ARG.
902This rounds the value towards -inf. 867This rounds the value towards -inf.
903With optional DIVISOR, return the largest integer no greater than ARG/DIVISOR. */) 868With optional DIVISOR, return the largest integer no greater than ARG/DIVISOR. */)
904 (arg, divisor) 869 (Lisp_Object arg, Lisp_Object divisor)
905 Lisp_Object arg, divisor;
906{ 870{
907 return rounding_driver (arg, divisor, floor, floor2, "floor"); 871 return rounding_driver (arg, divisor, floor, floor2, "floor");
908} 872}
@@ -915,8 +879,7 @@ Rounding a value equidistant between two integers may choose the
915integer closer to zero, or it may prefer an even integer, depending on 879integer closer to zero, or it may prefer an even integer, depending on
916your machine. For example, \(round 2.5\) can return 3 on some 880your machine. For example, \(round 2.5\) can return 3 on some
917systems, but 2 on others. */) 881systems, but 2 on others. */)
918 (arg, divisor) 882 (Lisp_Object arg, Lisp_Object divisor)
919 Lisp_Object arg, divisor;
920{ 883{
921 return rounding_driver (arg, divisor, emacs_rint, round2, "round"); 884 return rounding_driver (arg, divisor, emacs_rint, round2, "round");
922} 885}
@@ -925,8 +888,7 @@ DEFUN ("truncate", Ftruncate, Struncate, 1, 2, 0,
925 doc: /* Truncate a floating point number to an int. 888 doc: /* Truncate a floating point number to an int.
926Rounds ARG toward zero. 889Rounds ARG toward zero.
927With optional DIVISOR, truncate ARG/DIVISOR. */) 890With optional DIVISOR, truncate ARG/DIVISOR. */)
928 (arg, divisor) 891 (Lisp_Object arg, Lisp_Object divisor)
929 Lisp_Object arg, divisor;
930{ 892{
931 return rounding_driver (arg, divisor, double_identity, truncate2, 893 return rounding_driver (arg, divisor, double_identity, truncate2,
932 "truncate"); 894 "truncate");
@@ -956,8 +918,7 @@ fmod_float (Lisp_Object x, Lisp_Object y)
956DEFUN ("fceiling", Ffceiling, Sfceiling, 1, 1, 0, 918DEFUN ("fceiling", Ffceiling, Sfceiling, 1, 1, 0,
957 doc: /* Return the smallest integer no less than ARG, as a float. 919 doc: /* Return the smallest integer no less than ARG, as a float.
958\(Round toward +inf.\) */) 920\(Round toward +inf.\) */)
959 (arg) 921 (register Lisp_Object arg)
960 register Lisp_Object arg;
961{ 922{
962 double d = extract_float (arg); 923 double d = extract_float (arg);
963 IN_FLOAT (d = ceil (d), "fceiling", arg); 924 IN_FLOAT (d = ceil (d), "fceiling", arg);
@@ -967,8 +928,7 @@ DEFUN ("fceiling", Ffceiling, Sfceiling, 1, 1, 0,
967DEFUN ("ffloor", Fffloor, Sffloor, 1, 1, 0, 928DEFUN ("ffloor", Fffloor, Sffloor, 1, 1, 0,
968 doc: /* Return the largest integer no greater than ARG, as a float. 929 doc: /* Return the largest integer no greater than ARG, as a float.
969\(Round towards -inf.\) */) 930\(Round towards -inf.\) */)
970 (arg) 931 (register Lisp_Object arg)
971 register Lisp_Object arg;
972{ 932{
973 double d = extract_float (arg); 933 double d = extract_float (arg);
974 IN_FLOAT (d = floor (d), "ffloor", arg); 934 IN_FLOAT (d = floor (d), "ffloor", arg);
@@ -977,8 +937,7 @@ DEFUN ("ffloor", Fffloor, Sffloor, 1, 1, 0,
977 937
978DEFUN ("fround", Ffround, Sfround, 1, 1, 0, 938DEFUN ("fround", Ffround, Sfround, 1, 1, 0,
979 doc: /* Return the nearest integer to ARG, as a float. */) 939 doc: /* Return the nearest integer to ARG, as a float. */)
980 (arg) 940 (register Lisp_Object arg)
981 register Lisp_Object arg;
982{ 941{
983 double d = extract_float (arg); 942 double d = extract_float (arg);
984 IN_FLOAT (d = emacs_rint (d), "fround", arg); 943 IN_FLOAT (d = emacs_rint (d), "fround", arg);
@@ -988,8 +947,7 @@ DEFUN ("fround", Ffround, Sfround, 1, 1, 0,
988DEFUN ("ftruncate", Fftruncate, Sftruncate, 1, 1, 0, 947DEFUN ("ftruncate", Fftruncate, Sftruncate, 1, 1, 0,
989 doc: /* Truncate a floating point number to an integral float value. 948 doc: /* Truncate a floating point number to an integral float value.
990Rounds the value toward zero. */) 949Rounds the value toward zero. */)
991 (arg) 950 (register Lisp_Object arg)
992 register Lisp_Object arg;
993{ 951{
994 double d = extract_float (arg); 952 double d = extract_float (arg);
995 if (d >= 0.0) 953 if (d >= 0.0)
diff --git a/src/fns.c b/src/fns.c
index 240c0834800..42e7a715f76 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -85,8 +85,7 @@ extern long time ();
85 85
86DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0, 86DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0,
87 doc: /* Return the argument unchanged. */) 87 doc: /* Return the argument unchanged. */)
88 (arg) 88 (Lisp_Object arg)
89 Lisp_Object arg;
90{ 89{
91 return arg; 90 return arg;
92} 91}
@@ -98,8 +97,7 @@ All integers representable in Lisp are equally likely.
98With positive integer LIMIT, return random number in interval [0,LIMIT). 97With positive integer LIMIT, return random number in interval [0,LIMIT).
99With argument t, set the random number seed from the current time and pid. 98With argument t, set the random number seed from the current time and pid.
100Other values of LIMIT are ignored. */) 99Other values of LIMIT are ignored. */)
101 (limit) 100 (Lisp_Object limit)
102 Lisp_Object limit;
103{ 101{
104 EMACS_INT val; 102 EMACS_INT val;
105 Lisp_Object lispy_val; 103 Lisp_Object lispy_val;
@@ -135,8 +133,7 @@ A byte-code function object is also allowed.
135If the string contains multibyte characters, this is not necessarily 133If the string contains multibyte characters, this is not necessarily
136the number of bytes in the string; it is the number of characters. 134the number of bytes in the string; it is the number of characters.
137To get the number of bytes, use `string-bytes'. */) 135To get the number of bytes, use `string-bytes'. */)
138 (sequence) 136 (register Lisp_Object sequence)
139 register Lisp_Object sequence;
140{ 137{
141 register Lisp_Object val; 138 register Lisp_Object val;
142 register int i; 139 register int i;
@@ -186,8 +183,7 @@ DEFUN ("safe-length", Fsafe_length, Ssafe_length, 1, 1, 0,
186This function never gets an error. If LIST is not really a list, 183This function never gets an error. If LIST is not really a list,
187it returns 0. If LIST is circular, it returns a finite value 184it returns 0. If LIST is circular, it returns a finite value
188which is at least the number of distinct elements. */) 185which is at least the number of distinct elements. */)
189 (list) 186 (Lisp_Object list)
190 Lisp_Object list;
191{ 187{
192 Lisp_Object tail, halftail, length; 188 Lisp_Object tail, halftail, length;
193 int len = 0; 189 int len = 0;
@@ -210,8 +206,7 @@ which is at least the number of distinct elements. */)
210DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0, 206DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0,
211 doc: /* Return the number of bytes in STRING. 207 doc: /* Return the number of bytes in STRING.
212If STRING is multibyte, this may be greater than the length of STRING. */) 208If STRING is multibyte, this may be greater than the length of STRING. */)
213 (string) 209 (Lisp_Object string)
214 Lisp_Object string;
215{ 210{
216 CHECK_STRING (string); 211 CHECK_STRING (string);
217 return make_number (SBYTES (string)); 212 return make_number (SBYTES (string));
@@ -221,8 +216,7 @@ DEFUN ("string-equal", Fstring_equal, Sstring_equal, 2, 2, 0,
221 doc: /* Return t if two strings have identical contents. 216 doc: /* Return t if two strings have identical contents.
222Case is significant, but text properties are ignored. 217Case is significant, but text properties are ignored.
223Symbols are also allowed; their print names are used instead. */) 218Symbols are also allowed; their print names are used instead. */)
224 (s1, s2) 219 (register Lisp_Object s1, Lisp_Object s2)
225 register Lisp_Object s1, s2;
226{ 220{
227 if (SYMBOLP (s1)) 221 if (SYMBOLP (s1))
228 s1 = SYMBOL_NAME (s1); 222 s1 = SYMBOL_NAME (s1);
@@ -253,8 +247,7 @@ If string STR1 is less, the value is a negative number N;
253 - 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.
254If string STR1 is greater, the value is a positive number N; 248If string STR1 is greater, the value is a positive number N;
255 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. */)
256 (str1, start1, end1, str2, start2, end2, ignore_case) 250 (Lisp_Object str1, Lisp_Object start1, Lisp_Object end1, Lisp_Object str2, Lisp_Object start2, Lisp_Object end2, Lisp_Object ignore_case)
257 Lisp_Object str1, start1, end1, start2, str2, end2, ignore_case;
258{ 251{
259 register int end1_char, end2_char; 252 register int end1_char, end2_char;
260 register int i1, i1_byte, i2, i2_byte; 253 register int i1, i1_byte, i2, i2_byte;
@@ -345,8 +338,7 @@ DEFUN ("string-lessp", Fstring_lessp, Sstring_lessp, 2, 2, 0,
345 doc: /* Return t if first arg string is less than second in lexicographic order. 338 doc: /* Return t if first arg string is less than second in lexicographic order.
346Case is significant. 339Case is significant.
347Symbols are also allowed; their print names are used instead. */) 340Symbols are also allowed; their print names are used instead. */)
348 (s1, s2) 341 (register Lisp_Object s1, Lisp_Object s2)
349 register Lisp_Object s1, s2;
350{ 342{
351 register int end; 343 register int end;
352 register int i1, i1_byte, i2, i2_byte; 344 register int i1, i1_byte, i2, i2_byte;
@@ -415,9 +407,7 @@ The result is a list whose elements are the elements of all the arguments.
415Each argument may be a list, vector or string. 407Each argument may be a list, vector or string.
416The last argument is not copied, just used as the tail of the new list. 408The last argument is not copied, just used as the tail of the new list.
417usage: (append &rest SEQUENCES) */) 409usage: (append &rest SEQUENCES) */)
418 (nargs, args) 410 (int nargs, Lisp_Object *args)
419 int nargs;
420 Lisp_Object *args;
421{ 411{
422 return concat (nargs, args, Lisp_Cons, 1); 412 return concat (nargs, args, Lisp_Cons, 1);
423} 413}
@@ -427,9 +417,7 @@ DEFUN ("concat", Fconcat, Sconcat, 0, MANY, 0,
427The result is a string whose elements are the elements of all the arguments. 417The result is a string whose elements are the elements of all the arguments.
428Each argument may be a string or a list or vector of characters (integers). 418Each argument may be a string or a list or vector of characters (integers).
429usage: (concat &rest SEQUENCES) */) 419usage: (concat &rest SEQUENCES) */)
430 (nargs, args) 420 (int nargs, Lisp_Object *args)
431 int nargs;
432 Lisp_Object *args;
433{ 421{
434 return concat (nargs, args, Lisp_String, 0); 422 return concat (nargs, args, Lisp_String, 0);
435} 423}
@@ -439,9 +427,7 @@ DEFUN ("vconcat", Fvconcat, Svconcat, 0, MANY, 0,
439The result is a vector whose elements are the elements of all the arguments. 427The result is a vector whose elements are the elements of all the arguments.
440Each argument may be a list, vector or string. 428Each argument may be a list, vector or string.
441usage: (vconcat &rest SEQUENCES) */) 429usage: (vconcat &rest SEQUENCES) */)
442 (nargs, args) 430 (int nargs, Lisp_Object *args)
443 int nargs;
444 Lisp_Object *args;
445{ 431{
446 return concat (nargs, args, Lisp_Vectorlike, 0); 432 return concat (nargs, args, Lisp_Vectorlike, 0);
447} 433}
@@ -451,8 +437,7 @@ DEFUN ("copy-sequence", Fcopy_sequence, Scopy_sequence, 1, 1, 0,
451 doc: /* Return a copy of a list, vector, string or char-table. 437 doc: /* Return a copy of a list, vector, string or char-table.
452The elements of a list or vector are not copied; they are shared 438The elements of a list or vector are not copied; they are shared
453with the original. */) 439with the original. */)
454 (arg) 440 (Lisp_Object arg)
455 Lisp_Object arg;
456{ 441{
457 if (NILP (arg)) return arg; 442 if (NILP (arg)) return arg;
458 443
@@ -998,8 +983,7 @@ or entirely ASCII, it is returned unchanged. In particular, when
998STRING is unibyte and entirely ASCII, the returned string is unibyte. 983STRING is unibyte and entirely ASCII, the returned string is unibyte.
999\(When the characters are all ASCII, Emacs primitives will treat the 984\(When the characters are all ASCII, Emacs primitives will treat the
1000string the same way whether it is unibyte or multibyte.) */) 985string the same way whether it is unibyte or multibyte.) */)
1001 (string) 986 (Lisp_Object string)
1002 Lisp_Object string;
1003{ 987{
1004 CHECK_STRING (string); 988 CHECK_STRING (string);
1005 989
@@ -1013,8 +997,7 @@ Multibyte character codes are converted to unibyte according to
1013`nonascii-translation-table' or, if that is nil, `nonascii-insert-offset'. 997`nonascii-translation-table' or, if that is nil, `nonascii-insert-offset'.
1014If the lookup in the translation table fails, this function takes just 998If the lookup in the translation table fails, this function takes just
1015the low 8 bits of each character. */) 999the low 8 bits of each character. */)
1016 (string) 1000 (Lisp_Object string)
1017 Lisp_Object string;
1018{ 1001{
1019 CHECK_STRING (string); 1002 CHECK_STRING (string);
1020 1003
@@ -1028,8 +1011,7 @@ If STRING is unibyte, the result is STRING itself.
1028Otherwise it is a newly created string, with no text properties. 1011Otherwise it is a newly created string, with no text properties.
1029If STRING is multibyte and contains a character of charset 1012If STRING is multibyte and contains a character of charset
1030`eight-bit', it is converted to the corresponding single byte. */) 1013`eight-bit', it is converted to the corresponding single byte. */)
1031 (string) 1014 (Lisp_Object string)
1032 Lisp_Object string;
1033{ 1015{
1034 CHECK_STRING (string); 1016 CHECK_STRING (string);
1035 1017
@@ -1061,8 +1043,7 @@ Beware, this often doesn't really do what you think it does.
1061It is similar to (decode-coding-string STRING 'utf-8-emacs). 1043It is similar to (decode-coding-string STRING 'utf-8-emacs).
1062If you're not sure, whether to use `string-as-multibyte' or 1044If you're not sure, whether to use `string-as-multibyte' or
1063`string-to-multibyte', use `string-to-multibyte'. */) 1045`string-to-multibyte', use `string-to-multibyte'. */)
1064 (string) 1046 (Lisp_Object string)
1065 Lisp_Object string;
1066{ 1047{
1067 CHECK_STRING (string); 1048 CHECK_STRING (string);
1068 1049
@@ -1097,8 +1078,7 @@ the corresponding multibyte character of charset `eight-bit'.
1097This differs from `string-as-multibyte' by converting each byte of a correct 1078This differs from `string-as-multibyte' by converting each byte of a correct
1098utf-8 sequence to an eight-bit character, not just bytes that don't form a 1079utf-8 sequence to an eight-bit character, not just bytes that don't form a
1099correct sequence. */) 1080correct sequence. */)
1100 (string) 1081 (Lisp_Object string)
1101 Lisp_Object string;
1102{ 1082{
1103 CHECK_STRING (string); 1083 CHECK_STRING (string);
1104 1084
@@ -1113,8 +1093,7 @@ Otherwise it is a newly created string, with no text properties,
1113where each `eight-bit' character is converted to the corresponding byte. 1093where each `eight-bit' character is converted to the corresponding byte.
1114If STRING contains a non-ASCII, non-`eight-bit' character, 1094If STRING contains a non-ASCII, non-`eight-bit' character,
1115an error is signaled. */) 1095an error is signaled. */)
1116 (string) 1096 (Lisp_Object string)
1117 Lisp_Object string;
1118{ 1097{
1119 CHECK_STRING (string); 1098 CHECK_STRING (string);
1120 1099
@@ -1140,8 +1119,7 @@ but does not share the alist structure with ALIST.
1140The objects mapped (cars and cdrs of elements of the alist) 1119The objects mapped (cars and cdrs of elements of the alist)
1141are shared, however. 1120are shared, however.
1142Elements of ALIST that are not conses are also shared. */) 1121Elements of ALIST that are not conses are also shared. */)
1143 (alist) 1122 (Lisp_Object alist)
1144 Lisp_Object alist;
1145{ 1123{
1146 register Lisp_Object tem; 1124 register Lisp_Object tem;
1147 1125
@@ -1171,9 +1149,7 @@ to the end of STRING.
1171The STRING argument may also be a vector. In that case, the return 1149The STRING argument may also be a vector. In that case, the return
1172value is a new vector that contains the elements between index FROM 1150value is a new vector that contains the elements between index FROM
1173\(inclusive) and index TO (exclusive) of that vector argument. */) 1151\(inclusive) and index TO (exclusive) of that vector argument. */)
1174 (string, from, to) 1152 (Lisp_Object string, register Lisp_Object from, Lisp_Object to)
1175 Lisp_Object string;
1176 register Lisp_Object from, to;
1177{ 1153{
1178 Lisp_Object res; 1154 Lisp_Object res;
1179 int size; 1155 int size;
@@ -1242,9 +1218,7 @@ If FROM is nil or omitted, the substring starts at the beginning of STRING.
1242If FROM or TO is negative, it counts from the end. 1218If FROM or TO is negative, it counts from the end.
1243 1219
1244With one argument, just copy STRING without its properties. */) 1220With one argument, just copy STRING without its properties. */)
1245 (string, from, to) 1221 (Lisp_Object string, register Lisp_Object from, Lisp_Object to)
1246 Lisp_Object string;
1247 register Lisp_Object from, to;
1248{ 1222{
1249 int size, size_byte; 1223 int size, size_byte;
1250 int from_char, to_char; 1224 int from_char, to_char;
@@ -1331,9 +1305,7 @@ substring_both (Lisp_Object string, int from, int from_byte, int to, int to_byte
1331 1305
1332DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0, 1306DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0,
1333 doc: /* Take cdr N times on LIST, returns the result. */) 1307 doc: /* Take cdr N times on LIST, returns the result. */)
1334 (n, list) 1308 (Lisp_Object n, Lisp_Object list)
1335 Lisp_Object n;
1336 register Lisp_Object list;
1337{ 1309{
1338 register int i, num; 1310 register int i, num;
1339 CHECK_NUMBER (n); 1311 CHECK_NUMBER (n);
@@ -1350,16 +1322,14 @@ DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0,
1350DEFUN ("nth", Fnth, Snth, 2, 2, 0, 1322DEFUN ("nth", Fnth, Snth, 2, 2, 0,
1351 doc: /* Return the Nth element of LIST. 1323 doc: /* Return the Nth element of LIST.
1352N counts from zero. If LIST is not that long, nil is returned. */) 1324N counts from zero. If LIST is not that long, nil is returned. */)
1353 (n, list) 1325 (Lisp_Object n, Lisp_Object list)
1354 Lisp_Object n, list;
1355{ 1326{
1356 return Fcar (Fnthcdr (n, list)); 1327 return Fcar (Fnthcdr (n, list));
1357} 1328}
1358 1329
1359DEFUN ("elt", Felt, Selt, 2, 2, 0, 1330DEFUN ("elt", Felt, Selt, 2, 2, 0,
1360 doc: /* Return element of SEQUENCE at index N. */) 1331 doc: /* Return element of SEQUENCE at index N. */)
1361 (sequence, n) 1332 (register Lisp_Object sequence, Lisp_Object n)
1362 register Lisp_Object sequence, n;
1363{ 1333{
1364 CHECK_NUMBER (n); 1334 CHECK_NUMBER (n);
1365 if (CONSP (sequence) || NILP (sequence)) 1335 if (CONSP (sequence) || NILP (sequence))
@@ -1373,9 +1343,7 @@ DEFUN ("elt", Felt, Selt, 2, 2, 0,
1373DEFUN ("member", Fmember, Smember, 2, 2, 0, 1343DEFUN ("member", Fmember, Smember, 2, 2, 0,
1374doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `equal'. 1344doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `equal'.
1375The value is actually the tail of LIST whose car is ELT. */) 1345The value is actually the tail of LIST whose car is ELT. */)
1376 (elt, list) 1346 (register Lisp_Object elt, Lisp_Object list)
1377 register Lisp_Object elt;
1378 Lisp_Object list;
1379{ 1347{
1380 register Lisp_Object tail; 1348 register Lisp_Object tail;
1381 for (tail = list; CONSP (tail); tail = XCDR (tail)) 1349 for (tail = list; CONSP (tail); tail = XCDR (tail))
@@ -1393,8 +1361,7 @@ The value is actually the tail of LIST whose car is ELT. */)
1393DEFUN ("memq", Fmemq, Smemq, 2, 2, 0, 1361DEFUN ("memq", Fmemq, Smemq, 2, 2, 0,
1394doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eq'. 1362doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eq'.
1395The value is actually the tail of LIST whose car is ELT. */) 1363The value is actually the tail of LIST whose car is ELT. */)
1396 (elt, list) 1364 (register Lisp_Object elt, Lisp_Object list)
1397 register Lisp_Object elt, list;
1398{ 1365{
1399 while (1) 1366 while (1)
1400 { 1367 {
@@ -1420,9 +1387,7 @@ The value is actually the tail of LIST whose car is ELT. */)
1420DEFUN ("memql", Fmemql, Smemql, 2, 2, 0, 1387DEFUN ("memql", Fmemql, Smemql, 2, 2, 0,
1421doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eql'. 1388doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eql'.
1422The value is actually the tail of LIST whose car is ELT. */) 1389The value is actually the tail of LIST whose car is ELT. */)
1423 (elt, list) 1390 (register Lisp_Object elt, Lisp_Object list)
1424 register Lisp_Object elt;
1425 Lisp_Object list;
1426{ 1391{
1427 register Lisp_Object tail; 1392 register Lisp_Object tail;
1428 1393
@@ -1445,8 +1410,7 @@ DEFUN ("assq", Fassq, Sassq, 2, 2, 0,
1445 doc: /* Return non-nil if KEY is `eq' to the car of an element of LIST. 1410 doc: /* Return non-nil if KEY is `eq' to the car of an element of LIST.
1446The value is actually the first element of LIST whose car is KEY. 1411The value is actually the first element of LIST whose car is KEY.
1447Elements of LIST that are not conses are ignored. */) 1412Elements of LIST that are not conses are ignored. */)
1448 (key, list) 1413 (Lisp_Object key, Lisp_Object list)
1449 Lisp_Object key, list;
1450{ 1414{
1451 while (1) 1415 while (1)
1452 { 1416 {
@@ -1491,8 +1455,7 @@ assq_no_quit (Lisp_Object key, Lisp_Object list)
1491DEFUN ("assoc", Fassoc, Sassoc, 2, 2, 0, 1455DEFUN ("assoc", Fassoc, Sassoc, 2, 2, 0,
1492 doc: /* Return non-nil if KEY is `equal' to the car of an element of LIST. 1456 doc: /* Return non-nil if KEY is `equal' to the car of an element of LIST.
1493The value is actually the first element of LIST whose car equals KEY. */) 1457The value is actually the first element of LIST whose car equals KEY. */)
1494 (key, list) 1458 (Lisp_Object key, Lisp_Object list)
1495 Lisp_Object key, list;
1496{ 1459{
1497 Lisp_Object car; 1460 Lisp_Object car;
1498 1461
@@ -1543,9 +1506,7 @@ assoc_no_quit (Lisp_Object key, Lisp_Object list)
1543DEFUN ("rassq", Frassq, Srassq, 2, 2, 0, 1506DEFUN ("rassq", Frassq, Srassq, 2, 2, 0,
1544 doc: /* Return non-nil if KEY is `eq' to the cdr of an element of LIST. 1507 doc: /* Return non-nil if KEY is `eq' to the cdr of an element of LIST.
1545The value is actually the first element of LIST whose cdr is KEY. */) 1508The value is actually the first element of LIST whose cdr is KEY. */)
1546 (key, list) 1509 (register Lisp_Object key, Lisp_Object list)
1547 register Lisp_Object key;
1548 Lisp_Object list;
1549{ 1510{
1550 while (1) 1511 while (1)
1551 { 1512 {
@@ -1576,8 +1537,7 @@ The value is actually the first element of LIST whose cdr is KEY. */)
1576DEFUN ("rassoc", Frassoc, Srassoc, 2, 2, 0, 1537DEFUN ("rassoc", Frassoc, Srassoc, 2, 2, 0,
1577 doc: /* Return non-nil if KEY is `equal' to the cdr of an element of LIST. 1538 doc: /* Return non-nil if KEY is `equal' to the cdr of an element of LIST.
1578The value is actually the first element of LIST whose cdr equals KEY. */) 1539The value is actually the first element of LIST whose cdr equals KEY. */)
1579 (key, list) 1540 (Lisp_Object key, Lisp_Object list)
1580 Lisp_Object key, list;
1581{ 1541{
1582 Lisp_Object cdr; 1542 Lisp_Object cdr;
1583 1543
@@ -1616,9 +1576,7 @@ The modified LIST is returned. Comparison is done with `eq'.
1616If the first member of LIST is ELT, there is no way to remove it by side effect; 1576If the first member of LIST is ELT, there is no way to remove it by side effect;
1617therefore, write `(setq foo (delq element foo))' 1577therefore, write `(setq foo (delq element foo))'
1618to be sure of changing the value of `foo'. */) 1578to be sure of changing the value of `foo'. */)
1619 (elt, list) 1579 (register Lisp_Object elt, Lisp_Object list)
1620 register Lisp_Object elt;
1621 Lisp_Object list;
1622{ 1580{
1623 register Lisp_Object tail, prev; 1581 register Lisp_Object tail, prev;
1624 register Lisp_Object tem; 1582 register Lisp_Object tem;
@@ -1652,8 +1610,7 @@ If SEQ is not a list, or the first member of SEQ is ELT, deleting it
1652is not a side effect; it is simply using a different sequence. 1610is not a side effect; it is simply using a different sequence.
1653Therefore, write `(setq foo (delete element foo))' 1611Therefore, write `(setq foo (delete element foo))'
1654to be sure of changing the value of `foo'. */) 1612to be sure of changing the value of `foo'. */)
1655 (elt, seq) 1613 (Lisp_Object elt, Lisp_Object seq)
1656 Lisp_Object elt, seq;
1657{ 1614{
1658 if (VECTORP (seq)) 1615 if (VECTORP (seq))
1659 { 1616 {
@@ -1768,8 +1725,7 @@ to be sure of changing the value of `foo'. */)
1768DEFUN ("nreverse", Fnreverse, Snreverse, 1, 1, 0, 1725DEFUN ("nreverse", Fnreverse, Snreverse, 1, 1, 0,
1769 doc: /* Reverse LIST by modifying cdr pointers. 1726 doc: /* Reverse LIST by modifying cdr pointers.
1770Return the reversed list. */) 1727Return the reversed list. */)
1771 (list) 1728 (Lisp_Object list)
1772 Lisp_Object list;
1773{ 1729{
1774 register Lisp_Object prev, tail, next; 1730 register Lisp_Object prev, tail, next;
1775 1731
@@ -1791,8 +1747,7 @@ Return the reversed list. */)
1791DEFUN ("reverse", Freverse, Sreverse, 1, 1, 0, 1747DEFUN ("reverse", Freverse, Sreverse, 1, 1, 0,
1792 doc: /* Reverse LIST, copying. Return the reversed list. 1748 doc: /* Reverse LIST, copying. Return the reversed list.
1793See also the function `nreverse', which is used more often. */) 1749See also the function `nreverse', which is used more often. */)
1794 (list) 1750 (Lisp_Object list)
1795 Lisp_Object list;
1796{ 1751{
1797 Lisp_Object new; 1752 Lisp_Object new;
1798 1753
@@ -1812,8 +1767,7 @@ DEFUN ("sort", Fsort, Ssort, 2, 2, 0,
1812Returns the sorted list. LIST is modified by side effects. 1767Returns the sorted list. LIST is modified by side effects.
1813PREDICATE is called with two elements of LIST, and should return non-nil 1768PREDICATE is called with two elements of LIST, and should return non-nil
1814if the first element should sort before the second. */) 1769if the first element should sort before the second. */)
1815 (list, predicate) 1770 (Lisp_Object list, Lisp_Object predicate)
1816 Lisp_Object list, predicate;
1817{ 1771{
1818 Lisp_Object front, back; 1772 Lisp_Object front, back;
1819 register Lisp_Object len, tem; 1773 register Lisp_Object len, tem;
@@ -1905,9 +1859,7 @@ PLIST is a property list, which is a list of the form
1905\(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value 1859\(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value
1906corresponding to the given PROP, or nil if PROP is not one of the 1860corresponding to the given PROP, or nil if PROP is not one of the
1907properties on the list. This function never signals an error. */) 1861properties on the list. This function never signals an error. */)
1908 (plist, prop) 1862 (Lisp_Object plist, Lisp_Object prop)
1909 Lisp_Object plist;
1910 Lisp_Object prop;
1911{ 1863{
1912 Lisp_Object tail, halftail; 1864 Lisp_Object tail, halftail;
1913 1865
@@ -1937,8 +1889,7 @@ properties on the list. This function never signals an error. */)
1937DEFUN ("get", Fget, Sget, 2, 2, 0, 1889DEFUN ("get", Fget, Sget, 2, 2, 0,
1938 doc: /* Return the value of SYMBOL's PROPNAME property. 1890 doc: /* Return the value of SYMBOL's PROPNAME property.
1939This is the last value stored with `(put SYMBOL PROPNAME VALUE)'. */) 1891This is the last value stored with `(put SYMBOL PROPNAME VALUE)'. */)
1940 (symbol, propname) 1892 (Lisp_Object symbol, Lisp_Object propname)
1941 Lisp_Object symbol, propname;
1942{ 1893{
1943 CHECK_SYMBOL (symbol); 1894 CHECK_SYMBOL (symbol);
1944 return Fplist_get (XSYMBOL (symbol)->plist, propname); 1895 return Fplist_get (XSYMBOL (symbol)->plist, propname);
@@ -1952,10 +1903,7 @@ If PROP is already a property on the list, its value is set to VAL,
1952otherwise the new PROP VAL pair is added. The new plist is returned; 1903otherwise the new PROP VAL pair is added. The new plist is returned;
1953use `(setq x (plist-put x prop val))' to be sure to use the new value. 1904use `(setq x (plist-put x prop val))' to be sure to use the new value.
1954The PLIST is modified by side effects. */) 1905The PLIST is modified by side effects. */)
1955 (plist, prop, val) 1906 (Lisp_Object plist, register Lisp_Object prop, Lisp_Object val)
1956 Lisp_Object plist;
1957 register Lisp_Object prop;
1958 Lisp_Object val;
1959{ 1907{
1960 register Lisp_Object tail, prev; 1908 register Lisp_Object tail, prev;
1961 Lisp_Object newcell; 1909 Lisp_Object newcell;
@@ -1983,8 +1931,7 @@ The PLIST is modified by side effects. */)
1983DEFUN ("put", Fput, Sput, 3, 3, 0, 1931DEFUN ("put", Fput, Sput, 3, 3, 0,
1984 doc: /* Store SYMBOL's PROPNAME property with value VALUE. 1932 doc: /* Store SYMBOL's PROPNAME property with value VALUE.
1985It can be retrieved with `(get SYMBOL PROPNAME)'. */) 1933It can be retrieved with `(get SYMBOL PROPNAME)'. */)
1986 (symbol, propname, value) 1934 (Lisp_Object symbol, Lisp_Object propname, Lisp_Object value)
1987 Lisp_Object symbol, propname, value;
1988{ 1935{
1989 CHECK_SYMBOL (symbol); 1936 CHECK_SYMBOL (symbol);
1990 XSYMBOL (symbol)->plist 1937 XSYMBOL (symbol)->plist
@@ -1998,9 +1945,7 @@ PLIST is a property list, which is a list of the form
1998\(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value 1945\(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value
1999corresponding to the given PROP, or nil if PROP is not 1946corresponding to the given PROP, or nil if PROP is not
2000one of the properties on the list. */) 1947one of the properties on the list. */)
2001 (plist, prop) 1948 (Lisp_Object plist, Lisp_Object prop)
2002 Lisp_Object plist;
2003 Lisp_Object prop;
2004{ 1949{
2005 Lisp_Object tail; 1950 Lisp_Object tail;
2006 1951
@@ -2027,10 +1972,7 @@ If PROP is already a property on the list, its value is set to VAL,
2027otherwise the new PROP VAL pair is added. The new plist is returned; 1972otherwise the new PROP VAL pair is added. The new plist is returned;
2028use `(setq x (lax-plist-put x prop val))' to be sure to use the new value. 1973use `(setq x (lax-plist-put x prop val))' to be sure to use the new value.
2029The PLIST is modified by side effects. */) 1974The PLIST is modified by side effects. */)
2030 (plist, prop, val) 1975 (Lisp_Object plist, register Lisp_Object prop, Lisp_Object val)
2031 Lisp_Object plist;
2032 register Lisp_Object prop;
2033 Lisp_Object val;
2034{ 1976{
2035 register Lisp_Object tail, prev; 1977 register Lisp_Object tail, prev;
2036 Lisp_Object newcell; 1978 Lisp_Object newcell;
@@ -2058,8 +2000,7 @@ The PLIST is modified by side effects. */)
2058DEFUN ("eql", Feql, Seql, 2, 2, 0, 2000DEFUN ("eql", Feql, Seql, 2, 2, 0,
2059 doc: /* Return t if the two args are the same Lisp object. 2001 doc: /* Return t if the two args are the same Lisp object.
2060Floating-point numbers of equal value are `eql', but they may not be `eq'. */) 2002Floating-point numbers of equal value are `eql', but they may not be `eq'. */)
2061 (obj1, obj2) 2003 (Lisp_Object obj1, Lisp_Object obj2)
2062 Lisp_Object obj1, obj2;
2063{ 2004{
2064 if (FLOATP (obj1)) 2005 if (FLOATP (obj1))
2065 return internal_equal (obj1, obj2, 0, 0) ? Qt : Qnil; 2006 return internal_equal (obj1, obj2, 0, 0) ? Qt : Qnil;
@@ -2075,8 +2016,7 @@ Vectors and strings are compared element by element.
2075Numbers are compared by value, but integers cannot equal floats. 2016Numbers are compared by value, but integers cannot equal floats.
2076 (Use `=' if you want integers and floats to be able to be equal.) 2017 (Use `=' if you want integers and floats to be able to be equal.)
2077Symbols must match exactly. */) 2018Symbols must match exactly. */)
2078 (o1, o2) 2019 (register Lisp_Object o1, Lisp_Object o2)
2079 register Lisp_Object o1, o2;
2080{ 2020{
2081 return internal_equal (o1, o2, 0, 0) ? Qt : Qnil; 2021 return internal_equal (o1, o2, 0, 0) ? Qt : Qnil;
2082} 2022}
@@ -2085,8 +2025,7 @@ DEFUN ("equal-including-properties", Fequal_including_properties, Sequal_includi
2085 doc: /* Return t if two Lisp objects have similar structure and contents. 2025 doc: /* Return t if two Lisp objects have similar structure and contents.
2086This is like `equal' except that it compares the text properties 2026This is like `equal' except that it compares the text properties
2087of strings. (`equal' ignores text properties.) */) 2027of strings. (`equal' ignores text properties.) */)
2088 (o1, o2) 2028 (register Lisp_Object o1, Lisp_Object o2)
2089 register Lisp_Object o1, o2;
2090{ 2029{
2091 return internal_equal (o1, o2, 0, 1) ? Qt : Qnil; 2030 return internal_equal (o1, o2, 0, 1) ? Qt : Qnil;
2092} 2031}
@@ -2220,8 +2159,7 @@ internal_equal (register Lisp_Object o1, register Lisp_Object o2, int depth, int
2220DEFUN ("fillarray", Ffillarray, Sfillarray, 2, 2, 0, 2159DEFUN ("fillarray", Ffillarray, Sfillarray, 2, 2, 0,
2221 doc: /* Store each element of ARRAY with ITEM. 2160 doc: /* Store each element of ARRAY with ITEM.
2222ARRAY is a vector, string, char-table, or bool-vector. */) 2161ARRAY is a vector, string, char-table, or bool-vector. */)
2223 (array, item) 2162 (Lisp_Object array, Lisp_Object item)
2224 Lisp_Object array, item;
2225{ 2163{
2226 register int size, index, charval; 2164 register int size, index, charval;
2227 if (VECTORP (array)) 2165 if (VECTORP (array))
@@ -2295,8 +2233,7 @@ DEFUN ("clear-string", Fclear_string, Sclear_string,
2295 1, 1, 0, 2233 1, 1, 0,
2296 doc: /* Clear the contents of STRING. 2234 doc: /* Clear the contents of STRING.
2297This makes STRING unibyte and may change its length. */) 2235This makes STRING unibyte and may change its length. */)
2298 (string) 2236 (Lisp_Object string)
2299 Lisp_Object string;
2300{ 2237{
2301 int len; 2238 int len;
2302 CHECK_STRING (string); 2239 CHECK_STRING (string);
@@ -2321,9 +2258,7 @@ DEFUN ("nconc", Fnconc, Snconc, 0, MANY, 0,
2321 doc: /* Concatenate any number of lists by altering them. 2258 doc: /* Concatenate any number of lists by altering them.
2322Only the last argument is not altered, and need not be a list. 2259Only the last argument is not altered, and need not be a list.
2323usage: (nconc &rest LISTS) */) 2260usage: (nconc &rest LISTS) */)
2324 (nargs, args) 2261 (int nargs, Lisp_Object *args)
2325 int nargs;
2326 Lisp_Object *args;
2327{ 2262{
2328 register int argnum; 2263 register int argnum;
2329 register Lisp_Object tail, tem, val; 2264 register Lisp_Object tail, tem, val;
@@ -2444,8 +2379,7 @@ DEFUN ("mapconcat", Fmapconcat, Smapconcat, 3, 3, 0,
2444In between each pair of results, stick in SEPARATOR. Thus, " " as 2379In between each pair of results, stick in SEPARATOR. Thus, " " as
2445SEPARATOR results in spaces between the values returned by FUNCTION. 2380SEPARATOR results in spaces between the values returned by FUNCTION.
2446SEQUENCE may be a list, a vector, a bool-vector, or a string. */) 2381SEQUENCE may be a list, a vector, a bool-vector, or a string. */)
2447 (function, sequence, separator) 2382 (Lisp_Object function, Lisp_Object sequence, Lisp_Object separator)
2448 Lisp_Object function, sequence, separator;
2449{ 2383{
2450 Lisp_Object len; 2384 Lisp_Object len;
2451 register int leni; 2385 register int leni;
@@ -2485,8 +2419,7 @@ DEFUN ("mapcar", Fmapcar, Smapcar, 2, 2, 0,
2485 doc: /* Apply FUNCTION to each element of SEQUENCE, and make a list of the results. 2419 doc: /* Apply FUNCTION to each element of SEQUENCE, and make a list of the results.
2486The result is a list just as long as SEQUENCE. 2420The result is a list just as long as SEQUENCE.
2487SEQUENCE may be a list, a vector, a bool-vector, or a string. */) 2421SEQUENCE may be a list, a vector, a bool-vector, or a string. */)
2488 (function, sequence) 2422 (Lisp_Object function, Lisp_Object sequence)
2489 Lisp_Object function, sequence;
2490{ 2423{
2491 register Lisp_Object len; 2424 register Lisp_Object len;
2492 register int leni; 2425 register int leni;
@@ -2513,8 +2446,7 @@ DEFUN ("mapc", Fmapc, Smapc, 2, 2, 0,
2513 doc: /* Apply FUNCTION to each element of SEQUENCE for side effects only. 2446 doc: /* Apply FUNCTION to each element of SEQUENCE for side effects only.
2514Unlike `mapcar', don't accumulate the results. Return SEQUENCE. 2447Unlike `mapcar', don't accumulate the results. Return SEQUENCE.
2515SEQUENCE may be a list, a vector, a bool-vector, or a string. */) 2448SEQUENCE may be a list, a vector, a bool-vector, or a string. */)
2516 (function, sequence) 2449 (Lisp_Object function, Lisp_Object sequence)
2517 Lisp_Object function, sequence;
2518{ 2450{
2519 register int leni; 2451 register int leni;
2520 2452
@@ -2540,8 +2472,7 @@ for more information. In this case, the useful bindings are `act', `skip',
2540 2472
2541Under a windowing system a dialog box will be used if `last-nonmenu-event' 2473Under a windowing system a dialog box will be used if `last-nonmenu-event'
2542is nil and `use-dialog-box' is non-nil. */) 2474is nil and `use-dialog-box' is non-nil. */)
2543 (prompt) 2475 (Lisp_Object prompt)
2544 Lisp_Object prompt;
2545{ 2476{
2546 register Lisp_Object obj, key, def, map; 2477 register Lisp_Object obj, key, def, map;
2547 register int answer; 2478 register int answer;
@@ -2689,8 +2620,7 @@ and can edit it until it has been confirmed.
2689 2620
2690Under a windowing system a dialog box will be used if `last-nonmenu-event' 2621Under a windowing system a dialog box will be used if `last-nonmenu-event'
2691is nil, and `use-dialog-box' is non-nil. */) 2622is nil, and `use-dialog-box' is non-nil. */)
2692 (prompt) 2623 (Lisp_Object prompt)
2693 Lisp_Object prompt;
2694{ 2624{
2695 register Lisp_Object ans; 2625 register Lisp_Object ans;
2696 Lisp_Object args[2]; 2626 Lisp_Object args[2];
@@ -2762,8 +2692,7 @@ An error is thrown if the load average can't be obtained. In some
2762cases making it work would require Emacs being installed setuid or 2692cases making it work would require Emacs being installed setuid or
2763setgid so that it can read kernel information, and that usually isn't 2693setgid so that it can read kernel information, and that usually isn't
2764advisable. */) 2694advisable. */)
2765 (use_floats) 2695 (Lisp_Object use_floats)
2766 Lisp_Object use_floats;
2767{ 2696{
2768 double load_ave[3]; 2697 double load_ave[3];
2769 int loads = getloadavg (load_ave, 3); 2698 int loads = getloadavg (load_ave, 3);
@@ -2794,8 +2723,7 @@ presence or absence of Emacs or environment extensions.
2794Use `provide' to declare that a feature is available. This function 2723Use `provide' to declare that a feature is available. This function
2795looks at the value of the variable `features'. The optional argument 2724looks at the value of the variable `features'. The optional argument
2796SUBFEATURE can be used to check a specific subfeature of FEATURE. */) 2725SUBFEATURE can be used to check a specific subfeature of FEATURE. */)
2797 (feature, subfeature) 2726 (Lisp_Object feature, Lisp_Object subfeature)
2798 Lisp_Object feature, subfeature;
2799{ 2727{
2800 register Lisp_Object tem; 2728 register Lisp_Object tem;
2801 CHECK_SYMBOL (feature); 2729 CHECK_SYMBOL (feature);
@@ -2809,8 +2737,7 @@ DEFUN ("provide", Fprovide, Sprovide, 1, 2, 0,
2809 doc: /* Announce that FEATURE is a feature of the current Emacs. 2737 doc: /* Announce that FEATURE is a feature of the current Emacs.
2810The optional argument SUBFEATURES should be a list of symbols listing 2738The optional argument SUBFEATURES should be a list of symbols listing
2811particular subfeatures supported in this version of FEATURE. */) 2739particular subfeatures supported in this version of FEATURE. */)
2812 (feature, subfeatures) 2740 (Lisp_Object feature, Lisp_Object subfeatures)
2813 Lisp_Object feature, subfeatures;
2814{ 2741{
2815 register Lisp_Object tem; 2742 register Lisp_Object tem;
2816 CHECK_SYMBOL (feature); 2743 CHECK_SYMBOL (feature);
@@ -2856,8 +2783,7 @@ If the optional third argument NOERROR is non-nil,
2856then return nil if the file is not found instead of signaling an error. 2783then return nil if the file is not found instead of signaling an error.
2857Normally the return value is FEATURE. 2784Normally the return value is FEATURE.
2858The normal messages at start and end of loading FILENAME are suppressed. */) 2785The normal messages at start and end of loading FILENAME are suppressed. */)
2859 (feature, filename, noerror) 2786 (Lisp_Object feature, Lisp_Object filename, Lisp_Object noerror)
2860 Lisp_Object feature, filename, noerror;
2861{ 2787{
2862 register Lisp_Object tem; 2788 register Lisp_Object tem;
2863 struct gcpro gcpro1, gcpro2; 2789 struct gcpro gcpro1, gcpro2;
@@ -2952,8 +2878,7 @@ PLIST is a property list, which is a list of the form
2952Unlike `plist-get', this allows you to distinguish between a missing 2878Unlike `plist-get', this allows you to distinguish between a missing
2953property and a property with the value nil. 2879property and a property with the value nil.
2954The value is actually the tail of PLIST whose car is PROP. */) 2880The value is actually the tail of PLIST whose car is PROP. */)
2955 (plist, prop) 2881 (Lisp_Object plist, Lisp_Object prop)
2956 Lisp_Object plist, prop;
2957{ 2882{
2958 while (CONSP (plist) && !EQ (XCAR (plist), prop)) 2883 while (CONSP (plist) && !EQ (XCAR (plist), prop))
2959 { 2884 {
@@ -2967,8 +2892,7 @@ The value is actually the tail of PLIST whose car is PROP. */)
2967DEFUN ("widget-put", Fwidget_put, Swidget_put, 3, 3, 0, 2892DEFUN ("widget-put", Fwidget_put, Swidget_put, 3, 3, 0,
2968 doc: /* In WIDGET, set PROPERTY to VALUE. 2893 doc: /* In WIDGET, set PROPERTY to VALUE.
2969The value can later be retrieved with `widget-get'. */) 2894The value can later be retrieved with `widget-get'. */)
2970 (widget, property, value) 2895 (Lisp_Object widget, Lisp_Object property, Lisp_Object value)
2971 Lisp_Object widget, property, value;
2972{ 2896{
2973 CHECK_CONS (widget); 2897 CHECK_CONS (widget);
2974 XSETCDR (widget, Fplist_put (XCDR (widget), property, value)); 2898 XSETCDR (widget, Fplist_put (XCDR (widget), property, value));
@@ -2979,8 +2903,7 @@ DEFUN ("widget-get", Fwidget_get, Swidget_get, 2, 2, 0,
2979 doc: /* In WIDGET, get the value of PROPERTY. 2903 doc: /* In WIDGET, get the value of PROPERTY.
2980The value could either be specified when the widget was created, or 2904The value could either be specified when the widget was created, or
2981later with `widget-put'. */) 2905later with `widget-put'. */)
2982 (widget, property) 2906 (Lisp_Object widget, Lisp_Object property)
2983 Lisp_Object widget, property;
2984{ 2907{
2985 Lisp_Object tmp; 2908 Lisp_Object tmp;
2986 2909
@@ -3006,9 +2929,7 @@ DEFUN ("widget-apply", Fwidget_apply, Swidget_apply, 2, MANY, 0,
3006 doc: /* Apply the value of WIDGET's PROPERTY to the widget itself. 2929 doc: /* Apply the value of WIDGET's PROPERTY to the widget itself.
3007ARGS are passed as extra arguments to the function. 2930ARGS are passed as extra arguments to the function.
3008usage: (widget-apply WIDGET PROPERTY &rest ARGS) */) 2931usage: (widget-apply WIDGET PROPERTY &rest ARGS) */)
3009 (nargs, args) 2932 (int nargs, Lisp_Object *args)
3010 int nargs;
3011 Lisp_Object *args;
3012{ 2933{
3013 /* This function can GC. */ 2934 /* This function can GC. */
3014 Lisp_Object newargs[3]; 2935 Lisp_Object newargs[3];
@@ -3047,8 +2968,7 @@ If the system can't provide such information through a call to
3047See also Info node `(libc)Locales'. 2968See also Info node `(libc)Locales'.
3048 2969
3049The data read from the system are decoded using `locale-coding-system'. */) 2970The data read from the system are decoded using `locale-coding-system'. */)
3050 (item) 2971 (Lisp_Object item)
3051 Lisp_Object item;
3052{ 2972{
3053 char *str = NULL; 2973 char *str = NULL;
3054#ifdef HAVE_LANGINFO_CODESET 2974#ifdef HAVE_LANGINFO_CODESET
@@ -3202,8 +3122,7 @@ DEFUN ("base64-encode-region", Fbase64_encode_region, Sbase64_encode_region,
3202Return the length of the encoded text. 3122Return the length of the encoded text.
3203Optional third argument NO-LINE-BREAK means do not break long lines 3123Optional third argument NO-LINE-BREAK means do not break long lines
3204into shorter lines. */) 3124into shorter lines. */)
3205 (beg, end, no_line_break) 3125 (Lisp_Object beg, Lisp_Object end, Lisp_Object no_line_break)
3206 Lisp_Object beg, end, no_line_break;
3207{ 3126{
3208 char *encoded; 3127 char *encoded;
3209 int allength, length; 3128 int allength, length;
@@ -3262,8 +3181,7 @@ DEFUN ("base64-encode-string", Fbase64_encode_string, Sbase64_encode_string,
3262 doc: /* Base64-encode STRING and return the result. 3181 doc: /* Base64-encode STRING and return the result.
3263Optional second argument NO-LINE-BREAK means do not break long lines 3182Optional second argument NO-LINE-BREAK means do not break long lines
3264into shorter lines. */) 3183into shorter lines. */)
3265 (string, no_line_break) 3184 (Lisp_Object string, Lisp_Object no_line_break)
3266 Lisp_Object string, no_line_break;
3267{ 3185{
3268 int allength, length, encoded_length; 3186 int allength, length, encoded_length;
3269 char *encoded; 3187 char *encoded;
@@ -3401,8 +3319,7 @@ DEFUN ("base64-decode-region", Fbase64_decode_region, Sbase64_decode_region,
3401 doc: /* Base64-decode the region between BEG and END. 3319 doc: /* Base64-decode the region between BEG and END.
3402Return the length of the decoded text. 3320Return the length of the decoded text.
3403If the region can't be decoded, signal an error and don't modify the buffer. */) 3321If the region can't be decoded, signal an error and don't modify the buffer. */)
3404 (beg, end) 3322 (Lisp_Object beg, Lisp_Object end)
3405 Lisp_Object beg, end;
3406{ 3323{
3407 int ibeg, iend, length, allength; 3324 int ibeg, iend, length, allength;
3408 char *decoded; 3325 char *decoded;
@@ -3462,8 +3379,7 @@ If the region can't be decoded, signal an error and don't modify the buffer. */
3462DEFUN ("base64-decode-string", Fbase64_decode_string, Sbase64_decode_string, 3379DEFUN ("base64-decode-string", Fbase64_decode_string, Sbase64_decode_string,
3463 1, 1, 0, 3380 1, 1, 0,
3464 doc: /* Base64-decode STRING and return the result. */) 3381 doc: /* Base64-decode STRING and return the result. */)
3465 (string) 3382 (Lisp_Object string)
3466 Lisp_Object string;
3467{ 3383{
3468 char *decoded; 3384 char *decoded;
3469 int length, decoded_length; 3385 int length, decoded_length;
@@ -4497,8 +4413,7 @@ sxhash (Lisp_Object obj, int depth)
4497 4413
4498DEFUN ("sxhash", Fsxhash, Ssxhash, 1, 1, 0, 4414DEFUN ("sxhash", Fsxhash, Ssxhash, 1, 1, 0,
4499 doc: /* Compute a hash code for OBJ and return it as integer. */) 4415 doc: /* Compute a hash code for OBJ and return it as integer. */)
4500 (obj) 4416 (Lisp_Object obj)
4501 Lisp_Object obj;
4502{ 4417{
4503 unsigned hash = sxhash (obj, 0); 4418 unsigned hash = sxhash (obj, 0);
4504 return make_number (hash); 4419 return make_number (hash);
@@ -4537,9 +4452,7 @@ WEAK. WEAK t is equivalent to `key-and-value'. Default value of WEAK
4537is nil. 4452is nil.
4538 4453
4539usage: (make-hash-table &rest KEYWORD-ARGS) */) 4454usage: (make-hash-table &rest KEYWORD-ARGS) */)
4540 (nargs, args) 4455 (int nargs, Lisp_Object *args)
4541 int nargs;
4542 Lisp_Object *args;
4543{ 4456{
4544 Lisp_Object test, size, rehash_size, rehash_threshold, weak; 4457 Lisp_Object test, size, rehash_size, rehash_threshold, weak;
4545 Lisp_Object user_test, user_hash; 4458 Lisp_Object user_test, user_hash;
@@ -4616,8 +4529,7 @@ usage: (make-hash-table &rest KEYWORD-ARGS) */)
4616 4529
4617DEFUN ("copy-hash-table", Fcopy_hash_table, Scopy_hash_table, 1, 1, 0, 4530DEFUN ("copy-hash-table", Fcopy_hash_table, Scopy_hash_table, 1, 1, 0,
4618 doc: /* Return a copy of hash table TABLE. */) 4531 doc: /* Return a copy of hash table TABLE. */)
4619 (table) 4532 (Lisp_Object table)
4620 Lisp_Object table;
4621{ 4533{
4622 return copy_hash_table (check_hash_table (table)); 4534 return copy_hash_table (check_hash_table (table));
4623} 4535}
@@ -4625,8 +4537,7 @@ DEFUN ("copy-hash-table", Fcopy_hash_table, Scopy_hash_table, 1, 1, 0,
4625 4537
4626DEFUN ("hash-table-count", Fhash_table_count, Shash_table_count, 1, 1, 0, 4538DEFUN ("hash-table-count", Fhash_table_count, Shash_table_count, 1, 1, 0,
4627 doc: /* Return the number of elements in TABLE. */) 4539 doc: /* Return the number of elements in TABLE. */)
4628 (table) 4540 (Lisp_Object table)
4629 Lisp_Object table;
4630{ 4541{
4631 return make_number (check_hash_table (table)->count); 4542 return make_number (check_hash_table (table)->count);
4632} 4543}
@@ -4635,8 +4546,7 @@ DEFUN ("hash-table-count", Fhash_table_count, Shash_table_count, 1, 1, 0,
4635DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size, 4546DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size,
4636 Shash_table_rehash_size, 1, 1, 0, 4547 Shash_table_rehash_size, 1, 1, 0,
4637 doc: /* Return the current rehash size of TABLE. */) 4548 doc: /* Return the current rehash size of TABLE. */)
4638 (table) 4549 (Lisp_Object table)
4639 Lisp_Object table;
4640{ 4550{
4641 return check_hash_table (table)->rehash_size; 4551 return check_hash_table (table)->rehash_size;
4642} 4552}
@@ -4645,8 +4555,7 @@ DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size,
4645DEFUN ("hash-table-rehash-threshold", Fhash_table_rehash_threshold, 4555DEFUN ("hash-table-rehash-threshold", Fhash_table_rehash_threshold,
4646 Shash_table_rehash_threshold, 1, 1, 0, 4556 Shash_table_rehash_threshold, 1, 1, 0,
4647 doc: /* Return the current rehash threshold of TABLE. */) 4557 doc: /* Return the current rehash threshold of TABLE. */)
4648 (table) 4558 (Lisp_Object table)
4649 Lisp_Object table;
4650{ 4559{
4651 return check_hash_table (table)->rehash_threshold; 4560 return check_hash_table (table)->rehash_threshold;
4652} 4561}
@@ -4657,8 +4566,7 @@ DEFUN ("hash-table-size", Fhash_table_size, Shash_table_size, 1, 1, 0,
4657The size can be used as an argument to `make-hash-table' to create 4566The size can be used as an argument to `make-hash-table' to create
4658a hash table than can hold as many elements of TABLE holds 4567a hash table than can hold as many elements of TABLE holds
4659without need for resizing. */) 4568without need for resizing. */)
4660 (table) 4569 (Lisp_Object table)
4661 Lisp_Object table;
4662{ 4570{
4663 struct Lisp_Hash_Table *h = check_hash_table (table); 4571 struct Lisp_Hash_Table *h = check_hash_table (table);
4664 return make_number (HASH_TABLE_SIZE (h)); 4572 return make_number (HASH_TABLE_SIZE (h));
@@ -4667,8 +4575,7 @@ without need for resizing. */)
4667 4575
4668DEFUN ("hash-table-test", Fhash_table_test, Shash_table_test, 1, 1, 0, 4576DEFUN ("hash-table-test", Fhash_table_test, Shash_table_test, 1, 1, 0,
4669 doc: /* Return the test TABLE uses. */) 4577 doc: /* Return the test TABLE uses. */)
4670 (table) 4578 (Lisp_Object table)
4671 Lisp_Object table;
4672{ 4579{
4673 return check_hash_table (table)->test; 4580 return check_hash_table (table)->test;
4674} 4581}
@@ -4677,8 +4584,7 @@ DEFUN ("hash-table-test", Fhash_table_test, Shash_table_test, 1, 1, 0,
4677DEFUN ("hash-table-weakness", Fhash_table_weakness, Shash_table_weakness, 4584DEFUN ("hash-table-weakness", Fhash_table_weakness, Shash_table_weakness,
4678 1, 1, 0, 4585 1, 1, 0,
4679 doc: /* Return the weakness of TABLE. */) 4586 doc: /* Return the weakness of TABLE. */)
4680 (table) 4587 (Lisp_Object table)
4681 Lisp_Object table;
4682{ 4588{
4683 return check_hash_table (table)->weak; 4589 return check_hash_table (table)->weak;
4684} 4590}
@@ -4686,8 +4592,7 @@ DEFUN ("hash-table-weakness", Fhash_table_weakness, Shash_table_weakness,
4686 4592
4687DEFUN ("hash-table-p", Fhash_table_p, Shash_table_p, 1, 1, 0, 4593DEFUN ("hash-table-p", Fhash_table_p, Shash_table_p, 1, 1, 0,
4688 doc: /* Return t if OBJ is a Lisp hash table object. */) 4594 doc: /* Return t if OBJ is a Lisp hash table object. */)
4689 (obj) 4595 (Lisp_Object obj)
4690 Lisp_Object obj;
4691{ 4596{
4692 return HASH_TABLE_P (obj) ? Qt : Qnil; 4597 return HASH_TABLE_P (obj) ? Qt : Qnil;
4693} 4598}
@@ -4695,8 +4600,7 @@ DEFUN ("hash-table-p", Fhash_table_p, Shash_table_p, 1, 1, 0,
4695 4600
4696DEFUN ("clrhash", Fclrhash, Sclrhash, 1, 1, 0, 4601DEFUN ("clrhash", Fclrhash, Sclrhash, 1, 1, 0,
4697 doc: /* Clear hash table TABLE and return it. */) 4602 doc: /* Clear hash table TABLE and return it. */)
4698 (table) 4603 (Lisp_Object table)
4699 Lisp_Object table;
4700{ 4604{
4701 hash_clear (check_hash_table (table)); 4605 hash_clear (check_hash_table (table));
4702 /* Be compatible with XEmacs. */ 4606 /* Be compatible with XEmacs. */
@@ -4707,8 +4611,7 @@ DEFUN ("clrhash", Fclrhash, Sclrhash, 1, 1, 0,
4707DEFUN ("gethash", Fgethash, Sgethash, 2, 3, 0, 4611DEFUN ("gethash", Fgethash, Sgethash, 2, 3, 0,
4708 doc: /* Look up KEY in TABLE and return its associated value. 4612 doc: /* Look up KEY in TABLE and return its associated value.
4709If KEY is not found, return DFLT which defaults to nil. */) 4613If KEY is not found, return DFLT which defaults to nil. */)
4710 (key, table, dflt) 4614 (Lisp_Object key, Lisp_Object table, Lisp_Object dflt)
4711 Lisp_Object key, table, dflt;
4712{ 4615{
4713 struct Lisp_Hash_Table *h = check_hash_table (table); 4616 struct Lisp_Hash_Table *h = check_hash_table (table);
4714 int i = hash_lookup (h, key, NULL); 4617 int i = hash_lookup (h, key, NULL);
@@ -4720,8 +4623,7 @@ DEFUN ("puthash", Fputhash, Sputhash, 3, 3, 0,
4720 doc: /* Associate KEY with VALUE in hash table TABLE. 4623 doc: /* Associate KEY with VALUE in hash table TABLE.
4721If KEY is already present in table, replace its current value with 4624If KEY is already present in table, replace its current value with
4722VALUE. */) 4625VALUE. */)
4723 (key, value, table) 4626 (Lisp_Object key, Lisp_Object value, Lisp_Object table)
4724 Lisp_Object key, value, table;
4725{ 4627{
4726 struct Lisp_Hash_Table *h = check_hash_table (table); 4628 struct Lisp_Hash_Table *h = check_hash_table (table);
4727 int i; 4629 int i;
@@ -4739,8 +4641,7 @@ VALUE. */)
4739 4641
4740DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0, 4642DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0,
4741 doc: /* Remove KEY from TABLE. */) 4643 doc: /* Remove KEY from TABLE. */)
4742 (key, table) 4644 (Lisp_Object key, Lisp_Object table)
4743 Lisp_Object key, table;
4744{ 4645{
4745 struct Lisp_Hash_Table *h = check_hash_table (table); 4646 struct Lisp_Hash_Table *h = check_hash_table (table);
4746 hash_remove_from_table (h, key); 4647 hash_remove_from_table (h, key);
@@ -4751,8 +4652,7 @@ DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0,
4751DEFUN ("maphash", Fmaphash, Smaphash, 2, 2, 0, 4652DEFUN ("maphash", Fmaphash, Smaphash, 2, 2, 0,
4752 doc: /* Call FUNCTION for all entries in hash table TABLE. 4653 doc: /* Call FUNCTION for all entries in hash table TABLE.
4753FUNCTION is called with two arguments, KEY and VALUE. */) 4654FUNCTION is called with two arguments, KEY and VALUE. */)
4754 (function, table) 4655 (Lisp_Object function, Lisp_Object table)
4755 Lisp_Object function, table;
4756{ 4656{
4757 struct Lisp_Hash_Table *h = check_hash_table (table); 4657 struct Lisp_Hash_Table *h = check_hash_table (table);
4758 Lisp_Object args[3]; 4658 Lisp_Object args[3];
@@ -4783,8 +4683,7 @@ both arguments are the same. HASH must be a function taking one
4783argument and return an integer that is the hash code of the argument. 4683argument and return an integer that is the hash code of the argument.
4784Hash code computation should use the whole value range of integers, 4684Hash code computation should use the whole value range of integers,
4785including negative integers. */) 4685including negative integers. */)
4786 (name, test, hash) 4686 (Lisp_Object name, Lisp_Object test, Lisp_Object hash)
4787 Lisp_Object name, test, hash;
4788{ 4687{
4789 return Fput (name, Qhash_table_test, list2 (test, hash)); 4688 return Fput (name, Qhash_table_test, list2 (test, hash));
4790} 4689}
@@ -4824,8 +4723,7 @@ command `prefer-coding-system') is used.
4824 4723
4825If NOERROR is non-nil, silently assume the `raw-text' coding if the 4724If NOERROR is non-nil, silently assume the `raw-text' coding if the
4826guesswork fails. Normally, an error is signaled in such case. */) 4725guesswork fails. Normally, an error is signaled in such case. */)
4827 (object, start, end, coding_system, noerror) 4726 (Lisp_Object object, Lisp_Object start, Lisp_Object end, Lisp_Object coding_system, Lisp_Object noerror)
4828 Lisp_Object object, start, end, coding_system, noerror;
4829{ 4727{
4830 unsigned char digest[16]; 4728 unsigned char digest[16];
4831 unsigned char value[33]; 4729 unsigned char value[33];
diff --git a/src/font.c b/src/font.c
index a1b38eaabe5..42a61a5eccd 100644
--- a/src/font.c
+++ b/src/font.c
@@ -3925,8 +3925,7 @@ Return nil otherwise.
3925Optional 2nd argument EXTRA-TYPE, if non-nil, specifies to check 3925Optional 2nd argument EXTRA-TYPE, if non-nil, specifies to check
3926which kind of font it is. It must be one of `font-spec', `font-entity', 3926which kind of font it is. It must be one of `font-spec', `font-entity',
3927`font-object'. */) 3927`font-object'. */)
3928 (object, extra_type) 3928 (Lisp_Object object, Lisp_Object extra_type)
3929 Lisp_Object object, extra_type;
3930{ 3929{
3931 if (NILP (extra_type)) 3930 if (NILP (extra_type))
3932 return (FONTP (object) ? Qt : Qnil); 3931 return (FONTP (object) ? Qt : Qnil);
@@ -4004,9 +4003,7 @@ be an OpenType font, and whose GPOS table of `thai' script's default
4004language system must contain `mark' feature. 4003language system must contain `mark' feature.
4005 4004
4006usage: (font-spec ARGS...) */) 4005usage: (font-spec ARGS...) */)
4007 (nargs, args) 4006 (int nargs, Lisp_Object *args)
4008 int nargs;
4009 Lisp_Object *args;
4010{ 4007{
4011 Lisp_Object spec = font_make_spec (); 4008 Lisp_Object spec = font_make_spec ();
4012 int i; 4009 int i;
@@ -4047,8 +4044,7 @@ usage: (font-spec ARGS...) */)
4047 4044
4048DEFUN ("copy-font-spec", Fcopy_font_spec, Scopy_font_spec, 1, 1, 0, 4045DEFUN ("copy-font-spec", Fcopy_font_spec, Scopy_font_spec, 1, 1, 0,
4049 doc: /* Return a copy of FONT as a font-spec. */) 4046 doc: /* Return a copy of FONT as a font-spec. */)
4050 (font) 4047 (Lisp_Object font)
4051 Lisp_Object font;
4052{ 4048{
4053 Lisp_Object new_spec, tail, prev, extra; 4049 Lisp_Object new_spec, tail, prev, extra;
4054 int i; 4050 int i;
@@ -4076,8 +4072,7 @@ DEFUN ("merge-font-spec", Fmerge_font_spec, Smerge_font_spec, 2, 2, 0,
4076 doc: /* Merge font-specs FROM and TO, and return a new font-spec. 4072 doc: /* Merge font-specs FROM and TO, and return a new font-spec.
4077Every specified properties in FROM override the corresponding 4073Every specified properties in FROM override the corresponding
4078properties in TO. */) 4074properties in TO. */)
4079 (from, to) 4075 (Lisp_Object from, Lisp_Object to)
4080 Lisp_Object from, to;
4081{ 4076{
4082 Lisp_Object extra, tail; 4077 Lisp_Object extra, tail;
4083 int i; 4078 int i;
@@ -4111,8 +4106,7 @@ KEY must be one of these symbols:
4111See the documentation of `font-spec' for their meanings. 4106See the documentation of `font-spec' for their meanings.
4112If FONT is a font-entity or font-object, the value of :script may be 4107If FONT is a font-entity or font-object, the value of :script may be
4113a list of scripts that are supported by the font. */) 4108a list of scripts that are supported by the font. */)
4114 (font, key) 4109 (Lisp_Object font, Lisp_Object key)
4115 Lisp_Object font, key;
4116{ 4110{
4117 int idx; 4111 int idx;
4118 4112
@@ -4142,8 +4136,7 @@ may be omitted from the list if they are not specified by FONT.
4142 4136
4143The optional argument FRAME specifies the frame that the face attributes 4137The optional argument FRAME specifies the frame that the face attributes
4144are to be displayed on. If omitted, the selected frame is used. */) 4138are to be displayed on. If omitted, the selected frame is used. */)
4145 (font, frame) 4139 (Lisp_Object font, Lisp_Object frame)
4146 Lisp_Object font, frame;
4147{ 4140{
4148 struct frame *f; 4141 struct frame *f;
4149 Lisp_Object plist[10]; 4142 Lisp_Object plist[10];
@@ -4217,8 +4210,7 @@ are to be displayed on. If omitted, the selected frame is used. */)
4217 4210
4218DEFUN ("font-put", Ffont_put, Sfont_put, 3, 3, 0, 4211DEFUN ("font-put", Ffont_put, Sfont_put, 3, 3, 0,
4219 doc: /* Set one property of FONT-SPEC: give property PROP value VAL. */) 4212 doc: /* Set one property of FONT-SPEC: give property PROP value VAL. */)
4220 (font_spec, prop, val) 4213 (Lisp_Object font_spec, Lisp_Object prop, Lisp_Object val)
4221 Lisp_Object font_spec, prop, val;
4222{ 4214{
4223 int idx; 4215 int idx;
4224 4216
@@ -4238,8 +4230,7 @@ Optional 3rd argument NUM, if non-nil, limits the number of returned fonts.
4238Optional 4th argument PREFER, if non-nil, is a font-spec to 4230Optional 4th argument PREFER, if non-nil, is a font-spec to
4239control the order of the returned list. Fonts are sorted by 4231control the order of the returned list. Fonts are sorted by
4240how close they are to PREFER. */) 4232how close they are to PREFER. */)
4241 (font_spec, frame, num, prefer) 4233 (Lisp_Object font_spec, Lisp_Object frame, Lisp_Object num, Lisp_Object prefer)
4242 Lisp_Object font_spec, frame, num, prefer;
4243{ 4234{
4244 Lisp_Object vec, list; 4235 Lisp_Object vec, list;
4245 int n = 0; 4236 int n = 0;
@@ -4288,8 +4279,7 @@ how close they are to PREFER. */)
4288DEFUN ("font-family-list", Ffont_family_list, Sfont_family_list, 0, 1, 0, 4279DEFUN ("font-family-list", Ffont_family_list, Sfont_family_list, 0, 1, 0,
4289 doc: /* List available font families on the current frame. 4280 doc: /* List available font families on the current frame.
4290Optional argument FRAME, if non-nil, specifies the target frame. */) 4281Optional argument FRAME, if non-nil, specifies the target frame. */)
4291 (frame) 4282 (Lisp_Object frame)
4292 Lisp_Object frame;
4293{ 4283{
4294 FRAME_PTR f; 4284 FRAME_PTR f;
4295 struct font_driver_list *driver_list; 4285 struct font_driver_list *driver_list;
@@ -4318,8 +4308,7 @@ Optional argument FRAME, if non-nil, specifies the target frame. */)
4318DEFUN ("find-font", Ffind_font, Sfind_font, 1, 2, 0, 4308DEFUN ("find-font", Ffind_font, Sfind_font, 1, 2, 0,
4319 doc: /* Return a font-entity matching with FONT-SPEC on the current frame. 4309 doc: /* Return a font-entity matching with FONT-SPEC on the current frame.
4320Optional 2nd argument FRAME, if non-nil, specifies the target frame. */) 4310Optional 2nd argument FRAME, if non-nil, specifies the target frame. */)
4321 (font_spec, frame) 4311 (Lisp_Object font_spec, Lisp_Object frame)
4322 Lisp_Object font_spec, frame;
4323{ 4312{
4324 Lisp_Object val = Flist_fonts (font_spec, frame, make_number (1), Qnil); 4313 Lisp_Object val = Flist_fonts (font_spec, frame, make_number (1), Qnil);
4325 4314
@@ -4334,8 +4323,7 @@ FONT is a font-spec, font-entity, or font-object.
4334If the name is too long for XLFD (maximum 255 chars), return nil. 4323If the name is too long for XLFD (maximum 255 chars), return nil.
4335If the 2nd optional arg FOLD-WILDCARDS is non-nil, 4324If the 2nd optional arg FOLD-WILDCARDS is non-nil,
4336the consecutive wildcards are folded to one. */) 4325the consecutive wildcards are folded to one. */)
4337 (font, fold_wildcards) 4326 (Lisp_Object font, Lisp_Object fold_wildcards)
4338 Lisp_Object font, fold_wildcards;
4339{ 4327{
4340 char name[256]; 4328 char name[256];
4341 int pixel_size = 0; 4329 int pixel_size = 0;
@@ -4375,7 +4363,7 @@ the consecutive wildcards are folded to one. */)
4375 4363
4376DEFUN ("clear-font-cache", Fclear_font_cache, Sclear_font_cache, 0, 0, 0, 4364DEFUN ("clear-font-cache", Fclear_font_cache, Sclear_font_cache, 0, 0, 0,
4377 doc: /* Clear font cache. */) 4365 doc: /* Clear font cache. */)
4378 () 4366 (void)
4379{ 4367{
4380 Lisp_Object list, frame; 4368 Lisp_Object list, frame;
4381 4369
@@ -4436,8 +4424,7 @@ header of the glyph-string.
4436 4424
4437If the shaping was successful, the value is GSTRING itself or a newly 4425If the shaping was successful, the value is GSTRING itself or a newly
4438created glyph-string. Otherwise, the value is nil. */) 4426created glyph-string. Otherwise, the value is nil. */)
4439 (gstring) 4427 (Lisp_Object gstring)
4440 Lisp_Object gstring;
4441{ 4428{
4442 struct font *font; 4429 struct font *font;
4443 Lisp_Object font_object, n, glyph; 4430 Lisp_Object font_object, n, glyph;
@@ -4514,8 +4501,7 @@ where
4514 VARIATION-SELECTOR is a chracter code of variation selection 4501 VARIATION-SELECTOR is a chracter code of variation selection
4515 (#xFE00..#xFE0F or #xE0100..#xE01EF) 4502 (#xFE00..#xFE0F or #xE0100..#xE01EF)
4516 GLYPH-ID is a glyph code of the corresponding variation glyph. */) 4503 GLYPH-ID is a glyph code of the corresponding variation glyph. */)
4517 (font_object, character) 4504 (Lisp_Object font_object, Lisp_Object character)
4518 Lisp_Object font_object, character;
4519{ 4505{
4520 unsigned variations[256]; 4506 unsigned variations[256];
4521 struct font *font; 4507 struct font *font;
@@ -4583,8 +4569,7 @@ produced in GSTRING-OUT, and the value is nil.
4583 4569
4584See the documentation of `font-make-gstring' for the format of 4570See the documentation of `font-make-gstring' for the format of
4585glyph-string. */) 4571glyph-string. */)
4586 (otf_features, gstring_in, from, to, gstring_out, index) 4572 (Lisp_Object otf_features, Lisp_Object gstring_in, Lisp_Object from, Lisp_Object to, Lisp_Object gstring_out, Lisp_Object index)
4587 Lisp_Object otf_features, gstring_in, from, to, gstring_out, index;
4588{ 4573{
4589 Lisp_Object font_object = LGSTRING_FONT (gstring_in); 4574 Lisp_Object font_object = LGSTRING_FONT (gstring_in);
4590 Lisp_Object val; 4575 Lisp_Object val;
@@ -4634,8 +4619,7 @@ The value is a list of cons cells of the format (GLYPH-ID . CHARACTER),
4634where GLYPH-ID is a glyph index of the font, and CHARACTER is a 4619where GLYPH-ID is a glyph index of the font, and CHARACTER is a
4635character code corresponding to the glyph or nil if there's no 4620character code corresponding to the glyph or nil if there's no
4636corresponding character. */) 4621corresponding character. */)
4637 (font_object, character, otf_features) 4622 (Lisp_Object font_object, Lisp_Object character, Lisp_Object otf_features)
4638 Lisp_Object font_object, character, otf_features;
4639{ 4623{
4640 struct font *font; 4624 struct font *font;
4641 Lisp_Object gstring_in, gstring_out, g; 4625 Lisp_Object gstring_in, gstring_out, g;
@@ -4676,10 +4660,7 @@ corresponding character. */)
4676 4660
4677DEFUN ("open-font", Fopen_font, Sopen_font, 1, 3, 0, 4661DEFUN ("open-font", Fopen_font, Sopen_font, 1, 3, 0,
4678 doc: /* Open FONT-ENTITY. */) 4662 doc: /* Open FONT-ENTITY. */)
4679 (font_entity, size, frame) 4663 (Lisp_Object font_entity, Lisp_Object size, Lisp_Object frame)
4680 Lisp_Object font_entity;
4681 Lisp_Object size;
4682 Lisp_Object frame;
4683{ 4664{
4684 int isize; 4665 int isize;
4685 4666
@@ -4705,8 +4686,7 @@ DEFUN ("open-font", Fopen_font, Sopen_font, 1, 3, 0,
4705 4686
4706DEFUN ("close-font", Fclose_font, Sclose_font, 1, 2, 0, 4687DEFUN ("close-font", Fclose_font, Sclose_font, 1, 2, 0,
4707 doc: /* Close FONT-OBJECT. */) 4688 doc: /* Close FONT-OBJECT. */)
4708 (font_object, frame) 4689 (Lisp_Object font_object, Lisp_Object frame)
4709 Lisp_Object font_object, frame;
4710{ 4690{
4711 CHECK_FONT_OBJECT (font_object); 4691 CHECK_FONT_OBJECT (font_object);
4712 if (NILP (frame)) 4692 if (NILP (frame))
@@ -4757,8 +4737,7 @@ representing the default langsys.
4757FEATURE is a symbol representing OpenType feature tag. 4737FEATURE is a symbol representing OpenType feature tag.
4758 4738
4759If the font is not OpenType font, CAPABILITY is nil. */) 4739If the font is not OpenType font, CAPABILITY is nil. */)
4760 (font_object) 4740 (Lisp_Object font_object)
4761 Lisp_Object font_object;
4762{ 4741{
4763 struct font *font; 4742 struct font *font;
4764 Lisp_Object val; 4743 Lisp_Object val;
@@ -4782,8 +4761,7 @@ If the font is not OpenType font, CAPABILITY is nil. */)
4782DEFUN ("get-font-glyphs", Fget_font_glyphs, Sget_font_glyphs, 2, 2, 0, 4761DEFUN ("get-font-glyphs", Fget_font_glyphs, Sget_font_glyphs, 2, 2, 0,
4783 doc: /* Return a vector of glyphs of FONT-OBJECT for drawing STRING. 4762 doc: /* Return a vector of glyphs of FONT-OBJECT for drawing STRING.
4784Each element is a vector [GLYPH-CODE LBEARING RBEARING WIDTH ASCENT DESCENT]. */) 4763Each element is a vector [GLYPH-CODE LBEARING RBEARING WIDTH ASCENT DESCENT]. */)
4785 (font_object, string) 4764 (Lisp_Object font_object, Lisp_Object string)
4786 Lisp_Object font_object, string;
4787{ 4765{
4788 struct font *font; 4766 struct font *font;
4789 int i, len; 4767 int i, len;
@@ -4825,8 +4803,7 @@ Each element is a vector [GLYPH-CODE LBEARING RBEARING WIDTH ASCENT DESCENT]. *
4825DEFUN ("font-match-p", Ffont_match_p, Sfont_match_p, 2, 2, 0, 4803DEFUN ("font-match-p", Ffont_match_p, Sfont_match_p, 2, 2, 0,
4826 doc: /* Return t if and only if font-spec SPEC matches with FONT. 4804 doc: /* Return t if and only if font-spec SPEC matches with FONT.
4827FONT is a font-spec, font-entity, or font-object. */) 4805FONT is a font-spec, font-entity, or font-object. */)
4828 (spec, font) 4806 (Lisp_Object spec, Lisp_Object font)
4829 Lisp_Object spec, font;
4830{ 4807{
4831 CHECK_FONT_SPEC (spec); 4808 CHECK_FONT_SPEC (spec);
4832 CHECK_FONT (font); 4809 CHECK_FONT (font);
@@ -4838,8 +4815,7 @@ DEFUN ("font-at", Ffont_at, Sfont_at, 1, 3, 0,
4838 doc: /* Return a font-object for displaying a character at POSITION. 4815 doc: /* Return a font-object for displaying a character at POSITION.
4839Optional second arg WINDOW, if non-nil, is a window displaying 4816Optional second arg WINDOW, if non-nil, is a window displaying
4840the current buffer. It defaults to the currently selected window. */) 4817the current buffer. It defaults to the currently selected window. */)
4841 (position, window, string) 4818 (Lisp_Object position, Lisp_Object window, Lisp_Object string)
4842 Lisp_Object position, window, string;
4843{ 4819{
4844 struct window *w; 4820 struct window *w;
4845 EMACS_INT pos; 4821 EMACS_INT pos;
@@ -4872,8 +4848,7 @@ DEFUN ("draw-string", Fdraw_string, Sdraw_string, 2, 2, 0,
4872 doc: /* Draw STRING by FONT-OBJECT on the top left corner of the current frame. 4848 doc: /* Draw STRING by FONT-OBJECT on the top left corner of the current frame.
4873The value is a number of glyphs drawn. 4849The value is a number of glyphs drawn.
4874Type C-l to recover what previously shown. */) 4850Type C-l to recover what previously shown. */)
4875 (font_object, string) 4851 (Lisp_Object font_object, Lisp_Object string)
4876 Lisp_Object font_object, string;
4877{ 4852{
4878 Lisp_Object frame = selected_frame; 4853 Lisp_Object frame = selected_frame;
4879 FRAME_PTR f = XFRAME (frame); 4854 FRAME_PTR f = XFRAME (frame);
@@ -4927,8 +4902,7 @@ where
4927 RELATIVE-COMPOSE and DEFAULT-ASCENT are the numbers controlling 4902 RELATIVE-COMPOSE and DEFAULT-ASCENT are the numbers controlling
4928 how to compose characters. 4903 how to compose characters.
4929If the named font is not yet loaded, return nil. */) 4904If the named font is not yet loaded, return nil. */)
4930 (name, frame) 4905 (Lisp_Object name, Lisp_Object frame)
4931 Lisp_Object name, frame;
4932{ 4906{
4933 FRAME_PTR f; 4907 FRAME_PTR f;
4934 struct font *font; 4908 struct font *font;
diff --git a/src/fontset.c b/src/fontset.c
index 01c62000ca0..676e96fd88c 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -1186,8 +1186,7 @@ The value is nil if there is no matching fontset.
1186PATTERN can contain `*' or `?' as a wildcard 1186PATTERN can contain `*' or `?' as a wildcard
1187just as X font name matching algorithm allows. 1187just as X font name matching algorithm allows.
1188If REGEXPP is non-nil, PATTERN is a regular expression. */) 1188If REGEXPP is non-nil, PATTERN is a regular expression. */)
1189 (pattern, regexpp) 1189 (Lisp_Object pattern, Lisp_Object regexpp)
1190 Lisp_Object pattern, regexpp;
1191{ 1190{
1192 Lisp_Object fontset; 1191 Lisp_Object fontset;
1193 int id; 1192 int id;
@@ -1435,8 +1434,7 @@ Optional 5th argument ADD, if non-nil, specifies how to add FONT-SPEC
1435to the font specifications for TARGET previously set. If it is 1434to the font specifications for TARGET previously set. If it is
1436`prepend', FONT-SPEC is prepended. If it is `append', FONT-SPEC is 1435`prepend', FONT-SPEC is prepended. If it is `append', FONT-SPEC is
1437appended. By default, FONT-SPEC overrides the previous settings. */) 1436appended. By default, FONT-SPEC overrides the previous settings. */)
1438 (name, target, font_spec, frame, add) 1437 (Lisp_Object name, Lisp_Object target, Lisp_Object font_spec, Lisp_Object frame, Lisp_Object add)
1439 Lisp_Object name, target, font_spec, frame, add;
1440{ 1438{
1441 Lisp_Object fontset; 1439 Lisp_Object fontset;
1442 Lisp_Object font_def, registry, family; 1440 Lisp_Object font_def, registry, family;
@@ -1645,8 +1643,7 @@ char-table `char-script-table'.
1645 1643
1646FONT-SPEC is a vector, a cons, or a string. See the documentation of 1644FONT-SPEC is a vector, a cons, or a string. See the documentation of
1647`set-fontset-font' for the meaning. */) 1645`set-fontset-font' for the meaning. */)
1648 (name, fontlist) 1646 (Lisp_Object name, Lisp_Object fontlist)
1649 Lisp_Object name, fontlist;
1650{ 1647{
1651 Lisp_Object fontset; 1648 Lisp_Object fontset;
1652 int id; 1649 int id;
@@ -1821,8 +1818,7 @@ update_auto_fontset_alist (Lisp_Object font_object, Lisp_Object fontset)
1821 1818
1822DEFUN ("internal-char-font", Finternal_char_font, Sinternal_char_font, 1, 2, 0, 1819DEFUN ("internal-char-font", Finternal_char_font, Sinternal_char_font, 1, 2, 0,
1823 doc: /* For internal use only. */) 1820 doc: /* For internal use only. */)
1824 (position, ch) 1821 (Lisp_Object position, Lisp_Object ch)
1825 Lisp_Object position, ch;
1826{ 1822{
1827 EMACS_INT pos, pos_byte, dummy; 1823 EMACS_INT pos, pos_byte, dummy;
1828 int face_id; 1824 int face_id;
@@ -1912,8 +1908,7 @@ The char-table has one extra slot. If FONTSET is not the default
1912fontset, the value the extra slot is a char-table containing the 1908fontset, the value the extra slot is a char-table containing the
1913information about the derived fonts from the default fontset. The 1909information about the derived fonts from the default fontset. The
1914format is the same as above. */) 1910format is the same as above. */)
1915 (fontset, frame) 1911 (Lisp_Object fontset, Lisp_Object frame)
1916 Lisp_Object fontset, frame;
1917{ 1912{
1918 FRAME_PTR f; 1913 FRAME_PTR f;
1919 Lisp_Object *realized[2], fontsets[2], tables[2]; 1914 Lisp_Object *realized[2], fontsets[2], tables[2];
@@ -2048,8 +2043,7 @@ fontset.
2048 2043
2049If the 2nd optional arg ALL is non-nil, return a list of all font name 2044If the 2nd optional arg ALL is non-nil, return a list of all font name
2050patterns. */) 2045patterns. */)
2051 (name, ch, all) 2046 (Lisp_Object name, Lisp_Object ch, Lisp_Object all)
2052 Lisp_Object name, ch, all;
2053{ 2047{
2054 int c; 2048 int c;
2055 Lisp_Object fontset, elt, list, repertory, val; 2049 Lisp_Object fontset, elt, list, repertory, val;
@@ -2109,7 +2103,7 @@ patterns. */)
2109 2103
2110DEFUN ("fontset-list", Ffontset_list, Sfontset_list, 0, 0, 0, 2104DEFUN ("fontset-list", Ffontset_list, Sfontset_list, 0, 0, 0,
2111 doc: /* Return a list of all defined fontset names. */) 2105 doc: /* Return a list of all defined fontset names. */)
2112 () 2106 (void)
2113{ 2107{
2114 Lisp_Object fontset, list; 2108 Lisp_Object fontset, list;
2115 int i; 2109 int i;
@@ -2166,7 +2160,7 @@ dump_fontset (fontset)
2166 2160
2167DEFUN ("fontset-list-all", Ffontset_list_all, Sfontset_list_all, 0, 0, 0, 2161DEFUN ("fontset-list-all", Ffontset_list_all, Sfontset_list_all, 0, 0, 0,
2168 doc: /* Return a brief summary of all fontsets for debug use. */) 2162 doc: /* Return a brief summary of all fontsets for debug use. */)
2169 () 2163 (void)
2170{ 2164{
2171 Lisp_Object val; 2165 Lisp_Object val;
2172 int i; 2166 int i;
diff --git a/src/frame.c b/src/frame.c
index 1f31c19e653..37d1579dd4d 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -213,8 +213,7 @@ Value is t for a termcap frame (a character-only terminal),
213`ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display, 213`ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display,
214`pc' for a direct-write MS-DOS frame. 214`pc' for a direct-write MS-DOS frame.
215See also `frame-live-p'. */) 215See also `frame-live-p'. */)
216 (object) 216 (Lisp_Object object)
217 Lisp_Object object;
218{ 217{
219 if (!FRAMEP (object)) 218 if (!FRAMEP (object))
220 return Qnil; 219 return Qnil;
@@ -244,8 +243,7 @@ Value is nil if OBJECT is not a live frame. If object is a live
244frame, the return value indicates what sort of terminal device it is 243frame, the return value indicates what sort of terminal device it is
245displayed on. See the documentation of `framep' for possible 244displayed on. See the documentation of `framep' for possible
246return values. */) 245return values. */)
247 (object) 246 (Lisp_Object object)
248 Lisp_Object object;
249{ 247{
250 return ((FRAMEP (object) 248 return ((FRAMEP (object)
251 && FRAME_LIVE_P (XFRAME (object))) 249 && FRAME_LIVE_P (XFRAME (object)))
@@ -259,8 +257,7 @@ The value is a symbol---for instance, 'x' for X windows.
259The value is nil if Emacs is using a text-only terminal. 257The value is nil if Emacs is using a text-only terminal.
260 258
261FRAME defaults to the currently selected frame. */) 259FRAME defaults to the currently selected frame. */)
262 (frame) 260 (Lisp_Object frame)
263 Lisp_Object frame;
264{ 261{
265 Lisp_Object type; 262 Lisp_Object type;
266 if (NILP (frame)) 263 if (NILP (frame))
@@ -658,8 +655,7 @@ and the `tty-type' parameter specifies the terminal type. Example:
658 655
659Note that changing the size of one terminal frame automatically 656Note that changing the size of one terminal frame automatically
660affects all frames on the same terminal device. */) 657affects all frames on the same terminal device. */)
661 (parms) 658 (Lisp_Object parms)
662 Lisp_Object parms;
663{ 659{
664 struct frame *f; 660 struct frame *f;
665 struct terminal *t = NULL; 661 struct terminal *t = NULL;
@@ -886,8 +882,7 @@ the window system's input focus. On a text-only terminal, the
886next redisplay will display FRAME. 882next redisplay will display FRAME.
887 883
888This function returns FRAME, or nil if FRAME has been deleted. */) 884This function returns FRAME, or nil if FRAME has been deleted. */)
889 (frame, norecord) 885 (Lisp_Object frame, Lisp_Object norecord)
890 Lisp_Object frame, norecord;
891{ 886{
892 return do_switch_frame (frame, 1, 0, norecord); 887 return do_switch_frame (frame, 1, 0, norecord);
893} 888}
@@ -902,8 +897,7 @@ This function selects the selected window of the frame of EVENT.
902 897
903If EVENT is frame object, handle it as if it were a switch-frame event 898If EVENT is frame object, handle it as if it were a switch-frame event
904to that frame. */) 899to that frame. */)
905 (event) 900 (Lisp_Object event)
906 Lisp_Object event;
907{ 901{
908 /* Preserve prefix arg that the command loop just cleared. */ 902 /* Preserve prefix arg that the command loop just cleared. */
909 current_kboard->Vprefix_arg = Vcurrent_prefix_arg; 903 current_kboard->Vprefix_arg = Vcurrent_prefix_arg;
@@ -913,15 +907,14 @@ to that frame. */)
913 907
914DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0, 908DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0,
915 doc: /* Return the frame that is now selected. */) 909 doc: /* Return the frame that is now selected. */)
916 () 910 (void)
917{ 911{
918 return selected_frame; 912 return selected_frame;
919} 913}
920 914
921DEFUN ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0, 915DEFUN ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0,
922 doc: /* Return the frame object that window WINDOW is on. */) 916 doc: /* Return the frame object that window WINDOW is on. */)
923 (window) 917 (Lisp_Object window)
924 Lisp_Object window;
925{ 918{
926 CHECK_LIVE_WINDOW (window); 919 CHECK_LIVE_WINDOW (window);
927 return XWINDOW (window)->frame; 920 return XWINDOW (window)->frame;
@@ -930,8 +923,7 @@ DEFUN ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0,
930DEFUN ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0, 923DEFUN ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0,
931 doc: /* Returns the topmost, leftmost window of FRAME. 924 doc: /* Returns the topmost, leftmost window of FRAME.
932If omitted, FRAME defaults to the currently selected frame. */) 925If omitted, FRAME defaults to the currently selected frame. */)
933 (frame) 926 (Lisp_Object frame)
934 Lisp_Object frame;
935{ 927{
936 Lisp_Object w; 928 Lisp_Object w;
937 929
@@ -957,7 +949,7 @@ If omitted, FRAME defaults to the currently selected frame. */)
957DEFUN ("active-minibuffer-window", Factive_minibuffer_window, 949DEFUN ("active-minibuffer-window", Factive_minibuffer_window,
958 Sactive_minibuffer_window, 0, 0, 0, 950 Sactive_minibuffer_window, 0, 0, 0,
959 doc: /* Return the currently active minibuffer window, or nil if none. */) 951 doc: /* Return the currently active minibuffer window, or nil if none. */)
960 () 952 (void)
961{ 953{
962 return minibuf_level ? minibuf_window : Qnil; 954 return minibuf_level ? minibuf_window : Qnil;
963} 955}
@@ -965,8 +957,7 @@ DEFUN ("active-minibuffer-window", Factive_minibuffer_window,
965DEFUN ("frame-root-window", Fframe_root_window, Sframe_root_window, 0, 1, 0, 957DEFUN ("frame-root-window", Fframe_root_window, Sframe_root_window, 0, 1, 0,
966 doc: /* Returns the root-window of FRAME. 958 doc: /* Returns the root-window of FRAME.
967If omitted, FRAME defaults to the currently selected frame. */) 959If omitted, FRAME defaults to the currently selected frame. */)
968 (frame) 960 (Lisp_Object frame)
969 Lisp_Object frame;
970{ 961{
971 Lisp_Object window; 962 Lisp_Object window;
972 963
@@ -985,8 +976,7 @@ DEFUN ("frame-selected-window", Fframe_selected_window,
985 Sframe_selected_window, 0, 1, 0, 976 Sframe_selected_window, 0, 1, 0,
986 doc: /* Return the selected window of FRAME. 977 doc: /* Return the selected window of FRAME.
987FRAME defaults to the currently selected frame. */) 978FRAME defaults to the currently selected frame. */)
988 (frame) 979 (Lisp_Object frame)
989 Lisp_Object frame;
990{ 980{
991 Lisp_Object window; 981 Lisp_Object window;
992 982
@@ -1009,8 +999,7 @@ selected frame, this makes WINDOW the selected window.
1009Optional argument NORECORD non-nil means to neither change the 999Optional argument NORECORD non-nil means to neither change the
1010order of recently selected windows nor the buffer list. 1000order of recently selected windows nor the buffer list.
1011Return WINDOW. */) 1001Return WINDOW. */)
1012 (frame, window, norecord) 1002 (Lisp_Object frame, Lisp_Object window, Lisp_Object norecord)
1013 Lisp_Object frame, window, norecord;
1014{ 1003{
1015 if (NILP (frame)) 1004 if (NILP (frame))
1016 frame = selected_frame; 1005 frame = selected_frame;
@@ -1031,7 +1020,7 @@ Return WINDOW. */)
1031DEFUN ("frame-list", Fframe_list, Sframe_list, 1020DEFUN ("frame-list", Fframe_list, Sframe_list,
1032 0, 0, 0, 1021 0, 0, 0,
1033 doc: /* Return a list of all live frames. */) 1022 doc: /* Return a list of all live frames. */)
1034 () 1023 (void)
1035{ 1024{
1036 Lisp_Object frames; 1025 Lisp_Object frames;
1037 frames = Fcopy_sequence (Vframe_list); 1026 frames = Fcopy_sequence (Vframe_list);
@@ -1212,8 +1201,7 @@ and any frame now using that window as the minibuffer.
1212If MINIFRAME is `visible', include all visible frames. 1201If MINIFRAME is `visible', include all visible frames.
1213If MINIFRAME is 0, include all visible and iconified frames. 1202If MINIFRAME is 0, include all visible and iconified frames.
1214Otherwise, include all frames. */) 1203Otherwise, include all frames. */)
1215 (frame, miniframe) 1204 (Lisp_Object frame, Lisp_Object miniframe)
1216 Lisp_Object frame, miniframe;
1217{ 1205{
1218 if (NILP (frame)) 1206 if (NILP (frame))
1219 frame = selected_frame; 1207 frame = selected_frame;
@@ -1233,8 +1221,7 @@ and any frame now using that window as the minibuffer.
1233If MINIFRAME is `visible', include all visible frames. 1221If MINIFRAME is `visible', include all visible frames.
1234If MINIFRAME is 0, include all visible and iconified frames. 1222If MINIFRAME is 0, include all visible and iconified frames.
1235Otherwise, include all frames. */) 1223Otherwise, include all frames. */)
1236 (frame, miniframe) 1224 (Lisp_Object frame, Lisp_Object miniframe)
1237 Lisp_Object frame, miniframe;
1238{ 1225{
1239 if (NILP (frame)) 1226 if (NILP (frame))
1240 frame = selected_frame; 1227 frame = selected_frame;
@@ -1631,8 +1618,7 @@ but if the second optional argument FORCE is non-nil, you may do so.
1631This function runs `delete-frame-functions' before actually 1618This function runs `delete-frame-functions' before actually
1632deleting the frame, unless the frame is a tooltip. 1619deleting the frame, unless the frame is a tooltip.
1633The functions are run with one argument, the frame to be deleted. */) 1620The functions are run with one argument, the frame to be deleted. */)
1634 (frame, force) 1621 (Lisp_Object frame, Lisp_Object force)
1635 Lisp_Object frame, force;
1636{ 1622{
1637 return delete_frame (frame, !NILP (force) ? Qt : Qnil); 1623 return delete_frame (frame, !NILP (force) ? Qt : Qnil);
1638} 1624}
@@ -1651,7 +1637,7 @@ and nil for X and Y.
1651If `mouse-position-function' is non-nil, `mouse-position' calls it, 1637If `mouse-position-function' is non-nil, `mouse-position' calls it,
1652passing the normal return value to that function as an argument, 1638passing the normal return value to that function as an argument,
1653and returns whatever that function returns. */) 1639and returns whatever that function returns. */)
1654 () 1640 (void)
1655{ 1641{
1656 FRAME_PTR f; 1642 FRAME_PTR f;
1657 Lisp_Object lispy_dummy; 1643 Lisp_Object lispy_dummy;
@@ -1697,7 +1683,7 @@ the vertical offset.
1697If Emacs is running on a mouseless terminal or hasn't been programmed 1683If Emacs is running on a mouseless terminal or hasn't been programmed
1698to read the mouse position, it returns the selected frame for FRAME 1684to read the mouse position, it returns the selected frame for FRAME
1699and nil for X and Y. */) 1685and nil for X and Y. */)
1700 () 1686 (void)
1701{ 1687{
1702 FRAME_PTR f; 1688 FRAME_PTR f;
1703 Lisp_Object lispy_dummy; 1689 Lisp_Object lispy_dummy;
@@ -1734,8 +1720,7 @@ This function is a no-op for an X frame that is not visible.
1734If you have just created a frame, you must wait for it to become visible 1720If you have just created a frame, you must wait for it to become visible
1735before calling this function on it, like this. 1721before calling this function on it, like this.
1736 (while (not (frame-visible-p frame)) (sleep-for .5)) */) 1722 (while (not (frame-visible-p frame)) (sleep-for .5)) */)
1737 (frame, x, y) 1723 (Lisp_Object frame, Lisp_Object x, Lisp_Object y)
1738 Lisp_Object frame, x, y;
1739{ 1724{
1740 CHECK_LIVE_FRAME (frame); 1725 CHECK_LIVE_FRAME (frame);
1741 CHECK_NUMBER (x); 1726 CHECK_NUMBER (x);
@@ -1776,8 +1761,7 @@ Note, this is a no-op for an X frame that is not visible.
1776If you have just created a frame, you must wait for it to become visible 1761If you have just created a frame, you must wait for it to become visible
1777before calling this function on it, like this. 1762before calling this function on it, like this.
1778 (while (not (frame-visible-p frame)) (sleep-for .5)) */) 1763 (while (not (frame-visible-p frame)) (sleep-for .5)) */)
1779 (frame, x, y) 1764 (Lisp_Object frame, Lisp_Object x, Lisp_Object y)
1780 Lisp_Object frame, x, y;
1781{ 1765{
1782 CHECK_LIVE_FRAME (frame); 1766 CHECK_LIVE_FRAME (frame);
1783 CHECK_NUMBER (x); 1767 CHECK_NUMBER (x);
@@ -1814,8 +1798,7 @@ DEFUN ("make-frame-visible", Fmake_frame_visible, Smake_frame_visible,
1814 0, 1, "", 1798 0, 1, "",
1815 doc: /* Make the frame FRAME visible (assuming it is an X window). 1799 doc: /* Make the frame FRAME visible (assuming it is an X window).
1816If omitted, FRAME defaults to the currently selected frame. */) 1800If omitted, FRAME defaults to the currently selected frame. */)
1817 (frame) 1801 (Lisp_Object frame)
1818 Lisp_Object frame;
1819{ 1802{
1820 if (NILP (frame)) 1803 if (NILP (frame))
1821 frame = selected_frame; 1804 frame = selected_frame;
@@ -1874,8 +1857,7 @@ but if the second optional argument FORCE is non-nil, you may do so.
1874This function has no effect on text-only terminal frames. Such frames 1857This function has no effect on text-only terminal frames. Such frames
1875are always considered visible, whether or not they are currently being 1858are always considered visible, whether or not they are currently being
1876displayed in the terminal. */) 1859displayed in the terminal. */)
1877 (frame, force) 1860 (Lisp_Object frame, Lisp_Object force)
1878 Lisp_Object frame, force;
1879{ 1861{
1880 if (NILP (frame)) 1862 if (NILP (frame))
1881 frame = selected_frame; 1863 frame = selected_frame;
@@ -1916,8 +1898,7 @@ DEFUN ("iconify-frame", Ficonify_frame, Siconify_frame,
1916 0, 1, "", 1898 0, 1, "",
1917 doc: /* Make the frame FRAME into an icon. 1899 doc: /* Make the frame FRAME into an icon.
1918If omitted, FRAME defaults to the currently selected frame. */) 1900If omitted, FRAME defaults to the currently selected frame. */)
1919 (frame) 1901 (Lisp_Object frame)
1920 Lisp_Object frame;
1921{ 1902{
1922 if (NILP (frame)) 1903 if (NILP (frame))
1923 frame = selected_frame; 1904 frame = selected_frame;
@@ -1962,8 +1943,7 @@ usually not displayed at all, even in a window system's \"taskbar\".
1962If FRAME is a text-only terminal frame, this always returns t. 1943If FRAME is a text-only terminal frame, this always returns t.
1963Such frames are always considered visible, whether or not they are 1944Such frames are always considered visible, whether or not they are
1964currently being displayed on the terminal. */) 1945currently being displayed on the terminal. */)
1965 (frame) 1946 (Lisp_Object frame)
1966 Lisp_Object frame;
1967{ 1947{
1968 CHECK_LIVE_FRAME (frame); 1948 CHECK_LIVE_FRAME (frame);
1969 1949
@@ -1979,7 +1959,7 @@ currently being displayed on the terminal. */)
1979DEFUN ("visible-frame-list", Fvisible_frame_list, Svisible_frame_list, 1959DEFUN ("visible-frame-list", Fvisible_frame_list, Svisible_frame_list,
1980 0, 0, 0, 1960 0, 0, 0,
1981 doc: /* Return a list of all frames now \"visible\" (being updated). */) 1961 doc: /* Return a list of all frames now \"visible\" (being updated). */)
1982 () 1962 (void)
1983{ 1963{
1984 Lisp_Object tail, frame; 1964 Lisp_Object tail, frame;
1985 struct frame *f; 1965 struct frame *f;
@@ -2005,8 +1985,7 @@ If FRAME is invisible or iconified, make it visible.
2005If you don't specify a frame, the selected frame is used. 1985If you don't specify a frame, the selected frame is used.
2006If Emacs is displaying on an ordinary terminal or some other device which 1986If Emacs is displaying on an ordinary terminal or some other device which
2007doesn't support multiple overlapping frames, this function selects FRAME. */) 1987doesn't support multiple overlapping frames, this function selects FRAME. */)
2008 (frame) 1988 (Lisp_Object frame)
2009 Lisp_Object frame;
2010{ 1989{
2011 struct frame *f; 1990 struct frame *f;
2012 if (NILP (frame)) 1991 if (NILP (frame))
@@ -2035,8 +2014,7 @@ DEFUN ("lower-frame", Flower_frame, Slower_frame, 0, 1, "",
2035If you don't specify a frame, the selected frame is used. 2014If you don't specify a frame, the selected frame is used.
2036If Emacs is displaying on an ordinary terminal or some other device which 2015If Emacs is displaying on an ordinary terminal or some other device which
2037doesn't support multiple overlapping frames, this function does nothing. */) 2016doesn't support multiple overlapping frames, this function does nothing. */)
2038 (frame) 2017 (Lisp_Object frame)
2039 Lisp_Object frame;
2040{ 2018{
2041 struct frame *f; 2019 struct frame *f;
2042 2020
@@ -2079,8 +2057,7 @@ differently from a frame whose focus is redirected to nil; the former
2079is affected by `select-frame', while the latter is not. 2057is affected by `select-frame', while the latter is not.
2080 2058
2081The redirection lasts until `redirect-frame-focus' is called to change it. */) 2059The redirection lasts until `redirect-frame-focus' is called to change it. */)
2082 (frame, focus_frame) 2060 (Lisp_Object frame, Lisp_Object focus_frame)
2083 Lisp_Object frame, focus_frame;
2084{ 2061{
2085 struct frame *f; 2062 struct frame *f;
2086 2063
@@ -2107,8 +2084,7 @@ DEFUN ("frame-focus", Fframe_focus, Sframe_focus, 1, 1, 0,
2107 doc: /* Return the frame to which FRAME's keystrokes are currently being sent. 2084 doc: /* Return the frame to which FRAME's keystrokes are currently being sent.
2108This returns nil if FRAME's focus is not redirected. 2085This returns nil if FRAME's focus is not redirected.
2109See `redirect-frame-focus'. */) 2086See `redirect-frame-focus'. */)
2110 (frame) 2087 (Lisp_Object frame)
2111 Lisp_Object frame;
2112{ 2088{
2113 CHECK_LIVE_FRAME (frame); 2089 CHECK_LIVE_FRAME (frame);
2114 2090
@@ -2329,8 +2305,7 @@ DEFUN ("frame-parameters", Fframe_parameters, Sframe_parameters, 0, 1, 0,
2329It is a list of elements of the form (PARM . VALUE), where PARM is a symbol. 2305It is a list of elements of the form (PARM . VALUE), where PARM is a symbol.
2330The meaningful PARMs depend on the kind of frame. 2306The meaningful PARMs depend on the kind of frame.
2331If FRAME is omitted, return information on the currently selected frame. */) 2307If FRAME is omitted, return information on the currently selected frame. */)
2332 (frame) 2308 (Lisp_Object frame)
2333 Lisp_Object frame;
2334{ 2309{
2335 Lisp_Object alist; 2310 Lisp_Object alist;
2336 FRAME_PTR f; 2311 FRAME_PTR f;
@@ -2427,8 +2402,7 @@ If FRAME is omitted, return information on the currently selected frame. */)
2427DEFUN ("frame-parameter", Fframe_parameter, Sframe_parameter, 2, 2, 0, 2402DEFUN ("frame-parameter", Fframe_parameter, Sframe_parameter, 2, 2, 0,
2428 doc: /* Return FRAME's value for parameter PARAMETER. 2403 doc: /* Return FRAME's value for parameter PARAMETER.
2429If FRAME is nil, describe the currently selected frame. */) 2404If FRAME is nil, describe the currently selected frame. */)
2430 (frame, parameter) 2405 (Lisp_Object frame, Lisp_Object parameter)
2431 Lisp_Object frame, parameter;
2432{ 2406{
2433 struct frame *f; 2407 struct frame *f;
2434 Lisp_Object value; 2408 Lisp_Object value;
@@ -2518,8 +2492,7 @@ as a frame-local binding for the variable FOO, if you have
2518enabled such bindings for that variable with `make-variable-frame-local'. 2492enabled such bindings for that variable with `make-variable-frame-local'.
2519Note that this functionality is obsolete as of Emacs 22.2, and its 2493Note that this functionality is obsolete as of Emacs 22.2, and its
2520use is not recommended. Explicitly check for a frame-parameter instead. */) 2494use is not recommended. Explicitly check for a frame-parameter instead. */)
2521 (frame, alist) 2495 (Lisp_Object frame, Lisp_Object alist)
2522 Lisp_Object frame, alist;
2523{ 2496{
2524 FRAME_PTR f; 2497 FRAME_PTR f;
2525 register Lisp_Object tail, prop, val; 2498 register Lisp_Object tail, prop, val;
@@ -2584,8 +2557,7 @@ DEFUN ("frame-char-height", Fframe_char_height, Sframe_char_height,
2584 doc: /* Height in pixels of a line in the font in frame FRAME. 2557 doc: /* Height in pixels of a line in the font in frame FRAME.
2585If FRAME is omitted, the selected frame is used. 2558If FRAME is omitted, the selected frame is used.
2586For a terminal frame, the value is always 1. */) 2559For a terminal frame, the value is always 1. */)
2587 (frame) 2560 (Lisp_Object frame)
2588 Lisp_Object frame;
2589{ 2561{
2590 struct frame *f; 2562 struct frame *f;
2591 2563
@@ -2609,8 +2581,7 @@ DEFUN ("frame-char-width", Fframe_char_width, Sframe_char_width,
2609If FRAME is omitted, the selected frame is used. 2581If FRAME is omitted, the selected frame is used.
2610On a graphical screen, the width is the standard width of the default font. 2582On a graphical screen, the width is the standard width of the default font.
2611For a terminal screen, the value is always 1. */) 2583For a terminal screen, the value is always 1. */)
2612 (frame) 2584 (Lisp_Object frame)
2613 Lisp_Object frame;
2614{ 2585{
2615 struct frame *f; 2586 struct frame *f;
2616 2587
@@ -2646,8 +2617,7 @@ and menu bar.
2646For a text-only terminal, it includes the menu bar. In this case, the 2617For a text-only terminal, it includes the menu bar. In this case, the
2647result is really in characters rather than pixels (i.e., is identical 2618result is really in characters rather than pixels (i.e., is identical
2648to `frame-height'). */) 2619to `frame-height'). */)
2649 (frame) 2620 (Lisp_Object frame)
2650 Lisp_Object frame;
2651{ 2621{
2652 struct frame *f; 2622 struct frame *f;
2653 2623
@@ -2669,8 +2639,7 @@ DEFUN ("frame-pixel-width", Fframe_pixel_width,
2669 doc: /* Return FRAME's width in pixels. 2639 doc: /* Return FRAME's width in pixels.
2670For a terminal frame, the result really gives the width in characters. 2640For a terminal frame, the result really gives the width in characters.
2671If FRAME is omitted, the selected frame is used. */) 2641If FRAME is omitted, the selected frame is used. */)
2672 (frame) 2642 (Lisp_Object frame)
2673 Lisp_Object frame;
2674{ 2643{
2675 struct frame *f; 2644 struct frame *f;
2676 2645
@@ -2691,8 +2660,7 @@ DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 3, 0,
2691 doc: /* Specify that the frame FRAME has LINES lines. 2660 doc: /* Specify that the frame FRAME has LINES lines.
2692Optional third arg non-nil means that redisplay should use LINES lines 2661Optional third arg non-nil means that redisplay should use LINES lines
2693but that the idea of the actual height of the frame should not be changed. */) 2662but that the idea of the actual height of the frame should not be changed. */)
2694 (frame, lines, pretend) 2663 (Lisp_Object frame, Lisp_Object lines, Lisp_Object pretend)
2695 Lisp_Object frame, lines, pretend;
2696{ 2664{
2697 register struct frame *f; 2665 register struct frame *f;
2698 2666
@@ -2720,8 +2688,7 @@ DEFUN ("set-frame-width", Fset_frame_width, Sset_frame_width, 2, 3, 0,
2720 doc: /* Specify that the frame FRAME has COLS columns. 2688 doc: /* Specify that the frame FRAME has COLS columns.
2721Optional third arg non-nil means that redisplay should use COLS columns 2689Optional third arg non-nil means that redisplay should use COLS columns
2722but that the idea of the actual width of the frame should not be changed. */) 2690but that the idea of the actual width of the frame should not be changed. */)
2723 (frame, cols, pretend) 2691 (Lisp_Object frame, Lisp_Object cols, Lisp_Object pretend)
2724 Lisp_Object frame, cols, pretend;
2725{ 2692{
2726 register struct frame *f; 2693 register struct frame *f;
2727 CHECK_NUMBER (cols); 2694 CHECK_NUMBER (cols);
@@ -2746,8 +2713,7 @@ but that the idea of the actual width of the frame should not be changed. */)
2746 2713
2747DEFUN ("set-frame-size", Fset_frame_size, Sset_frame_size, 3, 3, 0, 2714DEFUN ("set-frame-size", Fset_frame_size, Sset_frame_size, 3, 3, 0,
2748 doc: /* Sets size of FRAME to COLS by ROWS, measured in characters. */) 2715 doc: /* Sets size of FRAME to COLS by ROWS, measured in characters. */)
2749 (frame, cols, rows) 2716 (Lisp_Object frame, Lisp_Object cols, Lisp_Object rows)
2750 Lisp_Object frame, cols, rows;
2751{ 2717{
2752 register struct frame *f; 2718 register struct frame *f;
2753 2719
@@ -2779,8 +2745,7 @@ DEFUN ("set-frame-position", Fset_frame_position,
2779This is actually the position of the upper left corner of the frame. 2745This is actually the position of the upper left corner of the frame.
2780Negative values for XOFFSET or YOFFSET are interpreted relative to 2746Negative values for XOFFSET or YOFFSET are interpreted relative to
2781the rightmost or bottommost possible position (that stays within the screen). */) 2747the rightmost or bottommost possible position (that stays within the screen). */)
2782 (frame, xoffset, yoffset) 2748 (Lisp_Object frame, Lisp_Object xoffset, Lisp_Object yoffset)
2783 Lisp_Object frame, xoffset, yoffset;
2784{ 2749{
2785 register struct frame *f; 2750 register struct frame *f;
2786 2751
@@ -3833,8 +3798,7 @@ The optional arguments COMPONENT and SUBCLASS add to the key and the
3833class, respectively. You must specify both of them or neither. 3798class, respectively. You must specify both of them or neither.
3834If you specify them, the key is `INSTANCE.COMPONENT.ATTRIBUTE' 3799If you specify them, the key is `INSTANCE.COMPONENT.ATTRIBUTE'
3835and the class is `Emacs.CLASS.SUBCLASS'. */) 3800and the class is `Emacs.CLASS.SUBCLASS'. */)
3836 (attribute, class, component, subclass) 3801 (Lisp_Object attribute, Lisp_Object class, Lisp_Object component, Lisp_Object subclass)
3837 Lisp_Object attribute, class, component, subclass;
3838{ 3802{
3839#ifdef HAVE_X_WINDOWS 3803#ifdef HAVE_X_WINDOWS
3840 check_x (); 3804 check_x ();
@@ -4047,8 +4011,7 @@ For X, the value of `left' or `top' may be an integer,
4047or a list (+ N) meaning N pixels relative to top/left corner, 4011or a list (+ N) meaning N pixels relative to top/left corner,
4048or a list (- N) meaning -N pixels relative to bottom/right corner. 4012or a list (- N) meaning -N pixels relative to bottom/right corner.
4049On Nextstep, this just calls `ns-parse-geometry'. */) 4013On Nextstep, this just calls `ns-parse-geometry'. */)
4050 (string) 4014 (Lisp_Object string)
4051 Lisp_Object string;
4052{ 4015{
4053#ifdef HAVE_NS 4016#ifdef HAVE_NS
4054 call1 (Qns_parse_geometry, string); 4017 call1 (Qns_parse_geometry, string);
diff --git a/src/fringe.c b/src/fringe.c
index b5be2f72ad7..50d5a5c9747 100644
--- a/src/fringe.c
+++ b/src/fringe.c
@@ -1276,8 +1276,7 @@ DEFUN ("destroy-fringe-bitmap", Fdestroy_fringe_bitmap, Sdestroy_fringe_bitmap,
1276 1, 1, 0, 1276 1, 1, 0,
1277 doc: /* Destroy fringe bitmap BITMAP. 1277 doc: /* Destroy fringe bitmap BITMAP.
1278If BITMAP overrides a standard fringe bitmap, the original bitmap is restored. */) 1278If BITMAP overrides a standard fringe bitmap, the original bitmap is restored. */)
1279 (bitmap) 1279 (Lisp_Object bitmap)
1280 Lisp_Object bitmap;
1281{ 1280{
1282 int n; 1281 int n;
1283 1282
@@ -1388,8 +1387,7 @@ is used; the default is to center the bitmap. Fifth arg may also be a
1388list (ALIGN PERIODIC) where PERIODIC non-nil specifies that the bitmap 1387list (ALIGN PERIODIC) where PERIODIC non-nil specifies that the bitmap
1389should be repeated. 1388should be repeated.
1390If BITMAP already exists, the existing definition is replaced. */) 1389If BITMAP already exists, the existing definition is replaced. */)
1391 (bitmap, bits, height, width, align) 1390 (Lisp_Object bitmap, Lisp_Object bits, Lisp_Object height, Lisp_Object width, Lisp_Object align)
1392 Lisp_Object bitmap, bits, height, width, align;
1393{ 1391{
1394 int n, h, i, j; 1392 int n, h, i, j;
1395 unsigned short *b; 1393 unsigned short *b;
@@ -1520,8 +1518,7 @@ DEFUN ("set-fringe-bitmap-face", Fset_fringe_bitmap_face, Sset_fringe_bitmap_fac
1520 1, 2, 0, 1518 1, 2, 0,
1521 doc: /* Set face for fringe bitmap BITMAP to FACE. 1519 doc: /* Set face for fringe bitmap BITMAP to FACE.
1522If FACE is nil, reset face to default fringe face. */) 1520If FACE is nil, reset face to default fringe face. */)
1523 (bitmap, face) 1521 (Lisp_Object bitmap, Lisp_Object face)
1524 Lisp_Object bitmap, face;
1525{ 1522{
1526 int n; 1523 int n;
1527 int face_id; 1524 int face_id;
@@ -1553,8 +1550,7 @@ is the symbol for the bitmap in the left fringe (or nil if no bitmap),
1553RIGHT is similar for the right fringe, and OV is non-nil if there is an 1550RIGHT is similar for the right fringe, and OV is non-nil if there is an
1554overlay arrow in the left fringe. 1551overlay arrow in the left fringe.
1555Return nil if POS is not visible in WINDOW. */) 1552Return nil if POS is not visible in WINDOW. */)
1556 (pos, window) 1553 (Lisp_Object pos, Lisp_Object window)
1557 Lisp_Object pos, window;
1558{ 1554{
1559 struct window *w; 1555 struct window *w;
1560 struct glyph_row *row; 1556 struct glyph_row *row;
diff --git a/src/image.c b/src/image.c
index 8d618b157b9..064278eebbc 100644
--- a/src/image.c
+++ b/src/image.c
@@ -926,8 +926,7 @@ PIXELS non-nil means return the size in pixels, otherwise return the
926size in canonical character units. 926size in canonical character units.
927FRAME is the frame on which the image will be displayed. FRAME nil 927FRAME is the frame on which the image will be displayed. FRAME nil
928or omitted means use the selected frame. */) 928or omitted means use the selected frame. */)
929 (spec, pixels, frame) 929 (Lisp_Object spec, Lisp_Object pixels, Lisp_Object frame)
930 Lisp_Object spec, pixels, frame;
931{ 930{
932 Lisp_Object size; 931 Lisp_Object size;
933 932
@@ -957,8 +956,7 @@ DEFUN ("image-mask-p", Fimage_mask_p, Simage_mask_p, 1, 2, 0,
957 doc: /* Return t if image SPEC has a mask bitmap. 956 doc: /* Return t if image SPEC has a mask bitmap.
958FRAME is the frame on which the image will be displayed. FRAME nil 957FRAME is the frame on which the image will be displayed. FRAME nil
959or omitted means use the selected frame. */) 958or omitted means use the selected frame. */)
960 (spec, frame) 959 (Lisp_Object spec, Lisp_Object frame)
961 Lisp_Object spec, frame;
962{ 960{
963 Lisp_Object mask; 961 Lisp_Object mask;
964 962
@@ -981,8 +979,7 @@ DEFUN ("image-metadata", Fimage_metadata, Simage_metadata, 1, 2, 0,
981 doc: /* Return metadata for image SPEC. 979 doc: /* Return metadata for image SPEC.
982FRAME is the frame on which the image will be displayed. FRAME nil 980FRAME is the frame on which the image will be displayed. FRAME nil
983or omitted means use the selected frame. */) 981or omitted means use the selected frame. */)
984 (spec, frame) 982 (Lisp_Object spec, Lisp_Object frame)
985 Lisp_Object spec, frame;
986{ 983{
987 Lisp_Object ext; 984 Lisp_Object ext;
988 985
@@ -1610,8 +1607,7 @@ FILTER nil or a frame means clear all images in the selected frame.
1610FILTER t means clear the image caches of all frames. 1607FILTER t means clear the image caches of all frames.
1611Anything else, means only clear those images which refer to FILTER, 1608Anything else, means only clear those images which refer to FILTER,
1612which is then usually a filename. */) 1609which is then usually a filename. */)
1613 (filter) 1610 (Lisp_Object filter)
1614 Lisp_Object filter;
1615{ 1611{
1616 if (!(EQ (filter, Qnil) || FRAMEP (filter))) 1612 if (!(EQ (filter, Qnil) || FRAMEP (filter)))
1617 clear_image_caches (filter); 1613 clear_image_caches (filter);
@@ -1631,8 +1627,7 @@ current contents of that file.
1631 1627
1632FRAME nil or omitted means use the selected frame. 1628FRAME nil or omitted means use the selected frame.
1633FRAME t means refresh the image on all frames. */) 1629FRAME t means refresh the image on all frames. */)
1634 (spec, frame) 1630 (Lisp_Object spec, Lisp_Object frame)
1635 Lisp_Object spec, frame;
1636{ 1631{
1637 if (!valid_image_p (spec)) 1632 if (!valid_image_p (spec))
1638 error ("Invalid image specification"); 1633 error ("Invalid image specification");
@@ -8049,16 +8044,14 @@ x_kill_gs_process (Pixmap pixmap, struct frame *f)
8049 8044
8050DEFUN ("imagep", Fimagep, Simagep, 1, 1, 0, 8045DEFUN ("imagep", Fimagep, Simagep, 1, 1, 0,
8051 doc: /* Value is non-nil if SPEC is a valid image specification. */) 8046 doc: /* Value is non-nil if SPEC is a valid image specification. */)
8052 (spec) 8047 (Lisp_Object spec)
8053 Lisp_Object spec;
8054{ 8048{
8055 return valid_image_p (spec) ? Qt : Qnil; 8049 return valid_image_p (spec) ? Qt : Qnil;
8056} 8050}
8057 8051
8058 8052
8059DEFUN ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0, "") 8053DEFUN ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0, "")
8060 (spec) 8054 (Lisp_Object spec)
8061 Lisp_Object spec;
8062{ 8055{
8063 int id = -1; 8056 int id = -1;
8064 8057
@@ -8093,8 +8086,7 @@ Return non-nil if TYPE is a supported image type.
8093Image types pbm and xbm are prebuilt; other types are loaded here. 8086Image types pbm and xbm are prebuilt; other types are loaded here.
8094Libraries to load are specified in alist LIBRARIES (usually, the value 8087Libraries to load are specified in alist LIBRARIES (usually, the value
8095of `image-library-alist', which see). */) 8088of `image-library-alist', which see). */)
8096 (type, libraries) 8089 (Lisp_Object type, Lisp_Object libraries)
8097 Lisp_Object type, libraries;
8098{ 8090{
8099 Lisp_Object tested; 8091 Lisp_Object tested;
8100 8092
diff --git a/src/indent.c b/src/indent.c
index 2d17ccf5c32..0f71c6d82d7 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -312,7 +312,7 @@ Whether the line is visible (if `selective-display' is t) has no effect;
312however, ^M is treated as end of line when `selective-display' is t. 312however, ^M is treated as end of line when `selective-display' is t.
313Text that has an invisible property is considered as having width 0, unless 313Text that has an invisible property is considered as having width 0, unless
314`buffer-invisibility-spec' specifies that it is replaced by an ellipsis. */) 314`buffer-invisibility-spec' specifies that it is replaced by an ellipsis. */)
315 () 315 (void)
316{ 316{
317 Lisp_Object temp; 317 Lisp_Object temp;
318 XSETFASTINT (temp, (int) current_column ()); /* iftc */ 318 XSETFASTINT (temp, (int) current_column ()); /* iftc */
@@ -812,8 +812,7 @@ Optional second argument MINIMUM says always do at least MINIMUM spaces
812even if that goes past COLUMN; by default, MINIMUM is zero. 812even if that goes past COLUMN; by default, MINIMUM is zero.
813 813
814The return value is COLUMN. */) 814The return value is COLUMN. */)
815 (column, minimum) 815 (Lisp_Object column, Lisp_Object minimum)
816 Lisp_Object column, minimum;
817{ 816{
818 int mincol; 817 int mincol;
819 register int fromcol; 818 register int fromcol;
@@ -864,7 +863,7 @@ DEFUN ("current-indentation", Fcurrent_indentation, Scurrent_indentation,
864 doc: /* Return the indentation of the current line. 863 doc: /* Return the indentation of the current line.
865This is the horizontal position of the character 864This is the horizontal position of the character
866following any initial whitespace. */) 865following any initial whitespace. */)
867 () 866 (void)
868{ 867{
869 Lisp_Object val; 868 Lisp_Object val;
870 int opoint = PT, opoint_byte = PT_BYTE; 869 int opoint = PT, opoint_byte = PT_BYTE;
@@ -998,8 +997,7 @@ In addition, if FORCE is t, and the line is too short to reach
998COLUMN, add spaces/tabs to get there. 997COLUMN, add spaces/tabs to get there.
999 998
1000The return value is the current column. */) 999The return value is the current column. */)
1001 (column, force) 1000 (Lisp_Object column, Lisp_Object force)
1002 Lisp_Object column, force;
1003{ 1001{
1004 EMACS_INT pos; 1002 EMACS_INT pos;
1005 EMACS_INT col, prev_col; 1003 EMACS_INT col, prev_col;
@@ -1757,9 +1755,7 @@ of a certain window, pass the window's starting location as FROM
1757and the window's upper-left coordinates as FROMPOS. 1755and the window's upper-left coordinates as FROMPOS.
1758Pass the buffer's (point-max) as TO, to limit the scan to the end of the 1756Pass the buffer's (point-max) as TO, to limit the scan to the end of the
1759visible section of the buffer, and pass LINE and COL as TOPOS. */) 1757visible section of the buffer, and pass LINE and COL as TOPOS. */)
1760 (from, frompos, to, topos, width, offsets, window) 1758 (Lisp_Object from, Lisp_Object frompos, Lisp_Object to, Lisp_Object topos, Lisp_Object width, Lisp_Object offsets, Lisp_Object window)
1761 Lisp_Object from, frompos, to, topos;
1762 Lisp_Object width, offsets, window;
1763{ 1759{
1764 struct window *w; 1760 struct window *w;
1765 Lisp_Object bufpos, hpos, vpos, prevhpos; 1761 Lisp_Object bufpos, hpos, vpos, prevhpos;
@@ -2001,8 +1997,7 @@ regardless of which buffer is displayed in WINDOW.
2001This is consistent with other cursor motion functions 1997This is consistent with other cursor motion functions
2002and makes it possible to use `vertical-motion' in any buffer, 1998and makes it possible to use `vertical-motion' in any buffer,
2003whether or not it is currently displayed in some window. */) 1999whether or not it is currently displayed in some window. */)
2004 (lines, window) 2000 (Lisp_Object lines, Lisp_Object window)
2005 Lisp_Object lines, window;
2006{ 2001{
2007 struct it it; 2002 struct it it;
2008 struct text_pos pt; 2003 struct text_pos pt;
diff --git a/src/insdel.c b/src/insdel.c
index 1085d645f5c..8c6e8f6364d 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -2267,7 +2267,7 @@ Fcombine_after_change_execute_1 (Lisp_Object val)
2267DEFUN ("combine-after-change-execute", Fcombine_after_change_execute, 2267DEFUN ("combine-after-change-execute", Fcombine_after_change_execute,
2268 Scombine_after_change_execute, 0, 0, 0, 2268 Scombine_after_change_execute, 0, 0, 0,
2269 doc: /* This function is for use internally in `combine-after-change-calls'. */) 2269 doc: /* This function is for use internally in `combine-after-change-calls'. */)
2270 () 2270 (void)
2271{ 2271{
2272 int count = SPECPDL_INDEX (); 2272 int count = SPECPDL_INDEX ();
2273 EMACS_INT beg, end, change; 2273 EMACS_INT beg, end, change;
diff --git a/src/keyboard.c b/src/keyboard.c
index be2dad36bab..6ea0b90b9b4 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -975,7 +975,7 @@ To get out of the recursive edit, a command can do `(throw 'exit nil)';
975that tells this function to return. 975that tells this function to return.
976Alternatively, `(throw 'exit t)' makes this function signal an error. 976Alternatively, `(throw 'exit t)' makes this function signal an error.
977This function is called by the editor initialization to begin editing. */) 977This function is called by the editor initialization to begin editing. */)
978 () 978 (void)
979{ 979{
980 int count = SPECPDL_INDEX (); 980 int count = SPECPDL_INDEX ();
981 Lisp_Object buffer; 981 Lisp_Object buffer;
@@ -1366,7 +1366,7 @@ top_level_1 (Lisp_Object ignore)
1366DEFUN ("top-level", Ftop_level, Stop_level, 0, 0, "", 1366DEFUN ("top-level", Ftop_level, Stop_level, 0, 0, "",
1367 doc: /* Exit all recursive editing levels. 1367 doc: /* Exit all recursive editing levels.
1368This also exits all active minibuffers. */) 1368This also exits all active minibuffers. */)
1369 () 1369 (void)
1370{ 1370{
1371#ifdef HAVE_WINDOW_SYSTEM 1371#ifdef HAVE_WINDOW_SYSTEM
1372 if (display_hourglass_p) 1372 if (display_hourglass_p)
@@ -1383,7 +1383,7 @@ This also exits all active minibuffers. */)
1383 1383
1384DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, "", 1384DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, "",
1385 doc: /* Exit from the innermost recursive edit or minibuffer. */) 1385 doc: /* Exit from the innermost recursive edit or minibuffer. */)
1386 () 1386 (void)
1387{ 1387{
1388 if (command_loop_level > 0 || minibuf_level > 0) 1388 if (command_loop_level > 0 || minibuf_level > 0)
1389 Fthrow (Qexit, Qnil); 1389 Fthrow (Qexit, Qnil);
@@ -1394,7 +1394,7 @@ DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0,
1394 1394
1395DEFUN ("abort-recursive-edit", Fabort_recursive_edit, Sabort_recursive_edit, 0, 0, "", 1395DEFUN ("abort-recursive-edit", Fabort_recursive_edit, Sabort_recursive_edit, 0, 0, "",
1396 doc: /* Abort the command that requested this recursive edit or minibuffer input. */) 1396 doc: /* Abort the command that requested this recursive edit or minibuffer input. */)
1397 () 1397 (void)
1398{ 1398{
1399 if (command_loop_level > 0 || minibuf_level > 0) 1399 if (command_loop_level > 0 || minibuf_level > 0)
1400 Fthrow (Qexit, Qt); 1400 Fthrow (Qexit, Qt);
@@ -1435,8 +1435,7 @@ Within a `track-mouse' form, mouse motion generates input events that
1435you can read with `read-event'. 1435you can read with `read-event'.
1436Normally, mouse motion is ignored. 1436Normally, mouse motion is ignored.
1437usage: (track-mouse BODY...) */) 1437usage: (track-mouse BODY...) */)
1438 (args) 1438 (Lisp_Object args)
1439 Lisp_Object args;
1440{ 1439{
1441 int count = SPECPDL_INDEX (); 1440 int count = SPECPDL_INDEX ();
1442 Lisp_Object val; 1441 Lisp_Object val;
@@ -4612,7 +4611,7 @@ The value when Emacs is not idle is nil.
4612 4611
4613The microsecond count is zero on systems that do not provide 4612The microsecond count is zero on systems that do not provide
4614resolution finer than a second. */) 4613resolution finer than a second. */)
4615 () 4614 (void)
4616{ 4615{
4617 if (! EMACS_TIME_NEG_P (timer_idleness_start_time)) 4616 if (! EMACS_TIME_NEG_P (timer_idleness_start_time))
4618 { 4617 {
@@ -6429,8 +6428,7 @@ parse_modifiers (Lisp_Object symbol)
6429DEFUN ("internal-event-symbol-parse-modifiers", Fevent_symbol_parse_modifiers, 6428DEFUN ("internal-event-symbol-parse-modifiers", Fevent_symbol_parse_modifiers,
6430 Sevent_symbol_parse_modifiers, 1, 1, 0, 6429 Sevent_symbol_parse_modifiers, 1, 1, 0,
6431 doc: /* Parse the event symbol. For internal use. */) 6430 doc: /* Parse the event symbol. For internal use. */)
6432 (symbol) 6431 (Lisp_Object symbol)
6433 Lisp_Object symbol;
6434{ 6432{
6435 /* Fill the cache if needed. */ 6433 /* Fill the cache if needed. */
6436 parse_modifiers (symbol); 6434 parse_modifiers (symbol);
@@ -6659,8 +6657,7 @@ and zero or more modifier names (control, meta, hyper, super, shift, alt,
6659drag, down, double or triple). The base must be last. 6657drag, down, double or triple). The base must be last.
6660The return value is an event type (a character or symbol) which 6658The return value is an event type (a character or symbol) which
6661has the same base event type and all the specified modifiers. */) 6659has the same base event type and all the specified modifiers. */)
6662 (event_desc) 6660 (Lisp_Object event_desc)
6663 Lisp_Object event_desc;
6664{ 6661{
6665 Lisp_Object base; 6662 Lisp_Object base;
6666 int modifiers = 0; 6663 int modifiers = 0;
@@ -10127,10 +10124,7 @@ The optional fifth argument COMMAND-LOOP, if non-nil, means
10127that this key sequence is being read by something that will 10124that this key sequence is being read by something that will
10128read commands one after another. It should be nil if the caller 10125read commands one after another. It should be nil if the caller
10129will read just one key sequence. */) 10126will read just one key sequence. */)
10130 (prompt, continue_echo, dont_downcase_last, can_return_switch_frame, 10127 (Lisp_Object prompt, Lisp_Object continue_echo, Lisp_Object dont_downcase_last, Lisp_Object can_return_switch_frame, Lisp_Object command_loop)
10131 command_loop)
10132 Lisp_Object prompt, continue_echo, dont_downcase_last;
10133 Lisp_Object can_return_switch_frame, command_loop;
10134{ 10128{
10135 Lisp_Object keybuf[30]; 10129 Lisp_Object keybuf[30];
10136 register int i; 10130 register int i;
@@ -10187,10 +10181,7 @@ will read just one key sequence. */)
10187DEFUN ("read-key-sequence-vector", Fread_key_sequence_vector, 10181DEFUN ("read-key-sequence-vector", Fread_key_sequence_vector,
10188 Sread_key_sequence_vector, 1, 5, 0, 10182 Sread_key_sequence_vector, 1, 5, 0,
10189 doc: /* Like `read-key-sequence' but always return a vector. */) 10183 doc: /* Like `read-key-sequence' but always return a vector. */)
10190 (prompt, continue_echo, dont_downcase_last, can_return_switch_frame, 10184 (Lisp_Object prompt, Lisp_Object continue_echo, Lisp_Object dont_downcase_last, Lisp_Object can_return_switch_frame, Lisp_Object command_loop)
10191 command_loop)
10192 Lisp_Object prompt, continue_echo, dont_downcase_last;
10193 Lisp_Object can_return_switch_frame, command_loop;
10194{ 10185{
10195 Lisp_Object keybuf[30]; 10186 Lisp_Object keybuf[30];
10196 register int i; 10187 register int i;
@@ -10250,8 +10241,7 @@ The argument KEYS specifies the value to use instead of (this-command-keys)
10250when reading the arguments; if it is nil, (this-command-keys) is used. 10241when reading the arguments; if it is nil, (this-command-keys) is used.
10251The argument SPECIAL, if non-nil, means that this command is executing 10242The argument SPECIAL, if non-nil, means that this command is executing
10252a special event, so ignore the prefix argument and don't clear it. */) 10243a special event, so ignore the prefix argument and don't clear it. */)
10253 (cmd, record_flag, keys, special) 10244 (Lisp_Object cmd, Lisp_Object record_flag, Lisp_Object keys, Lisp_Object special)
10254 Lisp_Object cmd, record_flag, keys, special;
10255{ 10245{
10256 register Lisp_Object final; 10246 register Lisp_Object final;
10257 register Lisp_Object tem; 10247 register Lisp_Object tem;
@@ -10340,8 +10330,7 @@ the numeric argument to this command.
10340 10330
10341Noninteractively, the argument PREFIXARG is the prefix argument to 10331Noninteractively, the argument PREFIXARG is the prefix argument to
10342give to the command you invoke, if it asks for an argument. */) 10332give to the command you invoke, if it asks for an argument. */)
10343 (prefixarg) 10333 (Lisp_Object prefixarg)
10344 Lisp_Object prefixarg;
10345{ 10334{
10346 Lisp_Object function; 10335 Lisp_Object function;
10347 char buf[40]; 10336 char buf[40];
@@ -10571,7 +10560,7 @@ DEFUN ("input-pending-p", Finput_pending_p, Sinput_pending_p, 0, 0, 0,
10571 doc: /* Return t if command input is currently available with no wait. 10560 doc: /* Return t if command input is currently available with no wait.
10572Actually, the value is nil only if we can be sure that no input is available; 10561Actually, the value is nil only if we can be sure that no input is available;
10573if there is a doubt, the value is t. */) 10562if there is a doubt, the value is t. */)
10574 () 10563 (void)
10575{ 10564{
10576 if (!NILP (Vunread_command_events) || unread_command_char != -1 10565 if (!NILP (Vunread_command_events) || unread_command_char != -1
10577 || !NILP (Vunread_post_input_method_events) 10566 || !NILP (Vunread_post_input_method_events)
@@ -10586,7 +10575,7 @@ if there is a doubt, the value is t. */)
10586 10575
10587DEFUN ("recent-keys", Frecent_keys, Srecent_keys, 0, 0, 0, 10576DEFUN ("recent-keys", Frecent_keys, Srecent_keys, 0, 0, 0,
10588 doc: /* Return vector of last 300 events, not counting those from keyboard macros. */) 10577 doc: /* Return vector of last 300 events, not counting those from keyboard macros. */)
10589 () 10578 (void)
10590{ 10579{
10591 Lisp_Object *keys = XVECTOR (recent_keys)->contents; 10580 Lisp_Object *keys = XVECTOR (recent_keys)->contents;
10592 Lisp_Object val; 10581 Lisp_Object val;
@@ -10611,7 +10600,7 @@ the last key sequence that has been read.
10611The value is a string or a vector. 10600The value is a string or a vector.
10612 10601
10613See also `this-command-keys-vector'. */) 10602See also `this-command-keys-vector'. */)
10614 () 10603 (void)
10615{ 10604{
10616 return make_event_array (this_command_key_count, 10605 return make_event_array (this_command_key_count,
10617 XVECTOR (this_command_keys)->contents); 10606 XVECTOR (this_command_keys)->contents);
@@ -10623,7 +10612,7 @@ However, if the command has called `read-key-sequence', it returns
10623the last key sequence that has been read. 10612the last key sequence that has been read.
10624 10613
10625See also `this-command-keys'. */) 10614See also `this-command-keys'. */)
10626 () 10615 (void)
10627{ 10616{
10628 return Fvector (this_command_key_count, 10617 return Fvector (this_command_key_count,
10629 XVECTOR (this_command_keys)->contents); 10618 XVECTOR (this_command_keys)->contents);
@@ -10637,7 +10626,7 @@ the command loop or by `read-key-sequence'.
10637Unlike `this-command-keys', this function's value 10626Unlike `this-command-keys', this function's value
10638does not include prefix arguments. 10627does not include prefix arguments.
10639The value is always a vector. */) 10628The value is always a vector. */)
10640 () 10629 (void)
10641{ 10630{
10642 return Fvector (this_command_key_count 10631 return Fvector (this_command_key_count
10643 - this_single_command_key_start, 10632 - this_single_command_key_start,
@@ -10653,7 +10642,7 @@ the command loop or by `read-key-sequence'.
10653Unlike `this-single-command-keys', this function's value 10642Unlike `this-single-command-keys', this function's value
10654shows the events before all translations (except for input methods). 10643shows the events before all translations (except for input methods).
10655The value is always a vector. */) 10644The value is always a vector. */)
10656 () 10645 (void)
10657{ 10646{
10658 return Fvector (raw_keybuf_count, 10647 return Fvector (raw_keybuf_count,
10659 (XVECTOR (raw_keybuf)->contents)); 10648 (XVECTOR (raw_keybuf)->contents));
@@ -10671,7 +10660,7 @@ both in the value of (this-command-keys) and in echoing.
10671To achieve this, `universal-argument-other-key' calls 10660To achieve this, `universal-argument-other-key' calls
10672`reset-this-command-lengths', which discards the record of reading 10661`reset-this-command-lengths', which discards the record of reading
10673these events the first time. */) 10662these events the first time. */)
10674 () 10663 (void)
10675{ 10664{
10676 this_command_key_count = before_command_key_count; 10665 this_command_key_count = before_command_key_count;
10677 if (this_command_key_count < this_single_command_key_start) 10666 if (this_command_key_count < this_single_command_key_start)
@@ -10691,8 +10680,7 @@ DEFUN ("clear-this-command-keys", Fclear_this_command_keys,
10691 doc: /* Clear out the vector that `this-command-keys' returns. 10680 doc: /* Clear out the vector that `this-command-keys' returns.
10692Also clear the record of the last 100 events, unless optional arg 10681Also clear the record of the last 100 events, unless optional arg
10693KEEP-RECORD is non-nil. */) 10682KEEP-RECORD is non-nil. */)
10694 (keep_record) 10683 (Lisp_Object keep_record)
10695 Lisp_Object keep_record;
10696{ 10684{
10697 int i; 10685 int i;
10698 10686
@@ -10711,7 +10699,7 @@ KEEP-RECORD is non-nil. */)
10711 10699
10712DEFUN ("recursion-depth", Frecursion_depth, Srecursion_depth, 0, 0, 0, 10700DEFUN ("recursion-depth", Frecursion_depth, Srecursion_depth, 0, 0, 0,
10713 doc: /* Return the current depth in recursive edits. */) 10701 doc: /* Return the current depth in recursive edits. */)
10714 () 10702 (void)
10715{ 10703{
10716 Lisp_Object temp; 10704 Lisp_Object temp;
10717 XSETFASTINT (temp, command_loop_level + minibuf_level); 10705 XSETFASTINT (temp, command_loop_level + minibuf_level);
@@ -10722,8 +10710,7 @@ DEFUN ("open-dribble-file", Fopen_dribble_file, Sopen_dribble_file, 1, 1,
10722 "FOpen dribble file: ", 10710 "FOpen dribble file: ",
10723 doc: /* Start writing all keyboard characters to a dribble file called FILE. 10711 doc: /* Start writing all keyboard characters to a dribble file called FILE.
10724If FILE is nil, close any open dribble file. */) 10712If FILE is nil, close any open dribble file. */)
10725 (file) 10713 (Lisp_Object file)
10726 Lisp_Object file;
10727{ 10714{
10728 if (dribble) 10715 if (dribble)
10729 { 10716 {
@@ -10745,7 +10732,7 @@ If FILE is nil, close any open dribble file. */)
10745DEFUN ("discard-input", Fdiscard_input, Sdiscard_input, 0, 0, 0, 10732DEFUN ("discard-input", Fdiscard_input, Sdiscard_input, 0, 0, 0,
10746 doc: /* Discard the contents of the terminal input buffer. 10733 doc: /* Discard the contents of the terminal input buffer.
10747Also end any kbd macro being defined. */) 10734Also end any kbd macro being defined. */)
10748 () 10735 (void)
10749{ 10736{
10750 if (!NILP (current_kboard->defining_kbd_macro)) 10737 if (!NILP (current_kboard->defining_kbd_macro))
10751 { 10738 {
@@ -10780,8 +10767,7 @@ After resumption run the normal hook `suspend-resume-hook'.
10780 10767
10781Some operating systems cannot stop the Emacs process and resume it later. 10768Some operating systems cannot stop the Emacs process and resume it later.
10782On such systems, Emacs starts a subshell instead of suspending. */) 10769On such systems, Emacs starts a subshell instead of suspending. */)
10783 (stuffstring) 10770 (Lisp_Object stuffstring)
10784 Lisp_Object stuffstring;
10785{ 10771{
10786 int count = SPECPDL_INDEX (); 10772 int count = SPECPDL_INDEX ();
10787 int old_height, old_width; 10773 int old_height, old_width;
@@ -11101,8 +11087,7 @@ If INTERRUPT is non-nil, Emacs will use input interrupts;
11101otherwise Emacs uses CBREAK mode. 11087otherwise Emacs uses CBREAK mode.
11102 11088
11103See also `current-input-mode'. */) 11089See also `current-input-mode'. */)
11104 (interrupt) 11090 (Lisp_Object interrupt)
11105 Lisp_Object interrupt;
11106{ 11091{
11107 int new_interrupt_input; 11092 int new_interrupt_input;
11108#ifdef SIGIO 11093#ifdef SIGIO
@@ -11152,8 +11137,7 @@ This setting only has an effect on tty terminals and only when
11152Emacs reads input in CBREAK mode; see `set-input-interrupt-mode'. 11137Emacs reads input in CBREAK mode; see `set-input-interrupt-mode'.
11153 11138
11154See also `current-input-mode'. */) 11139See also `current-input-mode'. */)
11155 (flow, terminal) 11140 (Lisp_Object flow, Lisp_Object terminal)
11156 Lisp_Object flow, terminal;
11157{ 11141{
11158 struct terminal *t = get_terminal (terminal, 1); 11142 struct terminal *t = get_terminal (terminal, 1);
11159 struct tty_display_info *tty; 11143 struct tty_display_info *tty;
@@ -11195,8 +11179,7 @@ It may be a terminal object, a frame, or nil for the terminal used by
11195the currently selected frame. 11179the currently selected frame.
11196 11180
11197See also `current-input-mode'. */) 11181See also `current-input-mode'. */)
11198 (meta, terminal) 11182 (Lisp_Object meta, Lisp_Object terminal)
11199 Lisp_Object meta, terminal;
11200{ 11183{
11201 struct terminal *t = get_terminal (terminal, 1); 11184 struct terminal *t = get_terminal (terminal, 1);
11202 struct tty_display_info *tty; 11185 struct tty_display_info *tty;
@@ -11237,8 +11220,7 @@ This function only has an effect on the controlling tty of the Emacs
11237process. 11220process.
11238 11221
11239See also `current-input-mode'. */) 11222See also `current-input-mode'. */)
11240 (quit) 11223 (Lisp_Object quit)
11241 Lisp_Object quit;
11242{ 11224{
11243 struct terminal *t = get_named_tty ("/dev/tty"); 11225 struct terminal *t = get_named_tty ("/dev/tty");
11244 struct tty_display_info *tty; 11226 struct tty_display_info *tty;
@@ -11275,8 +11257,7 @@ Third arg META t means accept 8-bit input (for a Meta key).
11275 Otherwise, accept 8-bit input and don't use the top bit for Meta. 11257 Otherwise, accept 8-bit input and don't use the top bit for Meta.
11276Optional fourth arg QUIT if non-nil specifies character to use for quitting. 11258Optional fourth arg QUIT if non-nil specifies character to use for quitting.
11277See also `current-input-mode'. */) 11259See also `current-input-mode'. */)
11278 (interrupt, flow, meta, quit) 11260 (Lisp_Object interrupt, Lisp_Object flow, Lisp_Object meta, Lisp_Object quit)
11279 Lisp_Object interrupt, flow, meta, quit;
11280{ 11261{
11281 Fset_input_interrupt_mode (interrupt); 11262 Fset_input_interrupt_mode (interrupt);
11282 Fset_output_flow_control (flow, Qnil); 11263 Fset_output_flow_control (flow, Qnil);
@@ -11300,7 +11281,7 @@ The value is a list of the form (INTERRUPT FLOW META QUIT), where
11300 QUIT is the character Emacs currently uses to quit. 11281 QUIT is the character Emacs currently uses to quit.
11301The elements of this list correspond to the arguments of 11282The elements of this list correspond to the arguments of
11302`set-input-mode'. */) 11283`set-input-mode'. */)
11303 () 11284 (void)
11304{ 11285{
11305 Lisp_Object val[4]; 11286 Lisp_Object val[4];
11306 struct frame *sf = XFRAME (selected_frame); 11287 struct frame *sf = XFRAME (selected_frame);
@@ -11334,8 +11315,7 @@ The return value is similar to a mouse click position:
11334 (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW) 11315 (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW)
11335 IMAGE (DX . DY) (WIDTH . HEIGHT)) 11316 IMAGE (DX . DY) (WIDTH . HEIGHT))
11336The `posn-' functions access elements of such lists. */) 11317The `posn-' functions access elements of such lists. */)
11337 (x, y, frame_or_window, whole) 11318 (Lisp_Object x, Lisp_Object y, Lisp_Object frame_or_window, Lisp_Object whole)
11338 Lisp_Object x, y, frame_or_window, whole;
11339{ 11319{
11340 CHECK_NATNUM (x); 11320 CHECK_NATNUM (x);
11341 CHECK_NATNUM (y); 11321 CHECK_NATNUM (y);
@@ -11375,8 +11355,7 @@ to the given buffer position:
11375 (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW) 11355 (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW)
11376 IMAGE (DX . DY) (WIDTH . HEIGHT)) 11356 IMAGE (DX . DY) (WIDTH . HEIGHT))
11377The `posn-' functions access elements of such lists. */) 11357The `posn-' functions access elements of such lists. */)
11378 (pos, window) 11358 (Lisp_Object pos, Lisp_Object window)
11379 Lisp_Object pos, window;
11380{ 11359{
11381 Lisp_Object tem; 11360 Lisp_Object tem;
11382 11361
diff --git a/src/keymap.c b/src/keymap.c
index 7e8b05f9c60..1245caf3b9b 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -142,8 +142,7 @@ input stream. Initially, ALIST is nil.
142 142
143The optional arg STRING supplies a menu name for the keymap 143The optional arg STRING supplies a menu name for the keymap
144in case you use it as a menu with `x-popup-menu'. */) 144in case you use it as a menu with `x-popup-menu'. */)
145 (string) 145 (Lisp_Object string)
146 Lisp_Object string;
147{ 146{
148 Lisp_Object tail; 147 Lisp_Object tail;
149 if (!NILP (string)) 148 if (!NILP (string))
@@ -163,8 +162,7 @@ Initially the alist is nil.
163 162
164The optional arg STRING supplies a menu name for the keymap 163The optional arg STRING supplies a menu name for the keymap
165in case you use it as a menu with `x-popup-menu'. */) 164in case you use it as a menu with `x-popup-menu'. */)
166 (string) 165 (Lisp_Object string)
167 Lisp_Object string;
168{ 166{
169 if (!NILP (string)) 167 if (!NILP (string))
170 { 168 {
@@ -202,8 +200,7 @@ or a symbol whose function definition is itself a keymap.
202ALIST elements look like (CHAR . DEFN) or (SYMBOL . DEFN); 200ALIST elements look like (CHAR . DEFN) or (SYMBOL . DEFN);
203a vector of densely packed bindings for small character codes 201a vector of densely packed bindings for small character codes
204is also allowed as an element. */) 202is also allowed as an element. */)
205 (object) 203 (Lisp_Object object)
206 Lisp_Object object;
207{ 204{
208 return (KEYMAPP (object) ? Qt : Qnil); 205 return (KEYMAPP (object) ? Qt : Qnil);
209} 206}
@@ -212,8 +209,7 @@ DEFUN ("keymap-prompt", Fkeymap_prompt, Skeymap_prompt, 1, 1, 0,
212 doc: /* Return the prompt-string of a keymap MAP. 209 doc: /* Return the prompt-string of a keymap MAP.
213If non-nil, the prompt is shown in the echo-area 210If non-nil, the prompt is shown in the echo-area
214when reading a key-sequence to be looked-up in this keymap. */) 211when reading a key-sequence to be looked-up in this keymap. */)
215 (map) 212 (Lisp_Object map)
216 Lisp_Object map;
217{ 213{
218 map = get_keymap (map, 0, 0); 214 map = get_keymap (map, 0, 0);
219 while (CONSP (map)) 215 while (CONSP (map))
@@ -322,8 +318,7 @@ keymap_parent (Lisp_Object keymap, int autoload)
322DEFUN ("keymap-parent", Fkeymap_parent, Skeymap_parent, 1, 1, 0, 318DEFUN ("keymap-parent", Fkeymap_parent, Skeymap_parent, 1, 1, 0,
323 doc: /* Return the parent keymap of KEYMAP. 319 doc: /* Return the parent keymap of KEYMAP.
324If KEYMAP has no parent, return nil. */) 320If KEYMAP has no parent, return nil. */)
325 (keymap) 321 (Lisp_Object keymap)
326 Lisp_Object keymap;
327{ 322{
328 return keymap_parent (keymap, 1); 323 return keymap_parent (keymap, 1);
329} 324}
@@ -343,8 +338,7 @@ keymap_memberp (Lisp_Object map, Lisp_Object maps)
343DEFUN ("set-keymap-parent", Fset_keymap_parent, Sset_keymap_parent, 2, 2, 0, 338DEFUN ("set-keymap-parent", Fset_keymap_parent, Sset_keymap_parent, 2, 2, 0,
344 doc: /* Modify KEYMAP to set its parent map to PARENT. 339 doc: /* Modify KEYMAP to set its parent map to PARENT.
345Return PARENT. PARENT should be nil or another keymap. */) 340Return PARENT. PARENT should be nil or another keymap. */)
346 (keymap, parent) 341 (Lisp_Object keymap, Lisp_Object parent)
347 Lisp_Object keymap, parent;
348{ 342{
349 Lisp_Object list, prev; 343 Lisp_Object list, prev;
350 struct gcpro gcpro1, gcpro2; 344 struct gcpro gcpro1, gcpro2;
@@ -729,8 +723,7 @@ DEFUN ("map-keymap-internal", Fmap_keymap_internal, Smap_keymap_internal, 2, 2,
729FUNCTION is called with two arguments: the event that is bound, and 723FUNCTION is called with two arguments: the event that is bound, and
730the definition it is bound to. The event may be a character range. 724the definition it is bound to. The event may be a character range.
731If KEYMAP has a parent, this function returns it without processing it. */) 725If KEYMAP has a parent, this function returns it without processing it. */)
732 (function, keymap) 726 (Lisp_Object function, Lisp_Object keymap)
733 Lisp_Object function, keymap;
734{ 727{
735 struct gcpro gcpro1; 728 struct gcpro gcpro1;
736 GCPRO1 (function); 729 GCPRO1 (function);
@@ -749,8 +742,7 @@ If KEYMAP has a parent, the parent's bindings are included as well.
749This works recursively: if the parent has itself a parent, then the 742This works recursively: if the parent has itself a parent, then the
750grandparent's bindings are also included and so on. 743grandparent's bindings are also included and so on.
751usage: (map-keymap FUNCTION KEYMAP) */) 744usage: (map-keymap FUNCTION KEYMAP) */)
752 (function, keymap, sort_first) 745 (Lisp_Object function, Lisp_Object keymap, Lisp_Object sort_first)
753 Lisp_Object function, keymap, sort_first;
754{ 746{
755 if (! NILP (sort_first)) 747 if (! NILP (sort_first))
756 return call2 (intern ("map-keymap-sorted"), function, keymap); 748 return call2 (intern ("map-keymap-sorted"), function, keymap);
@@ -1094,8 +1086,7 @@ but changing either the copy or KEYMAP does not affect the other.
1094Any key definitions that are subkeymaps are recursively copied. 1086Any key definitions that are subkeymaps are recursively copied.
1095However, a key definition which is a symbol whose definition is a keymap 1087However, a key definition which is a symbol whose definition is a keymap
1096is not copied. */) 1088is not copied. */)
1097 (keymap) 1089 (Lisp_Object keymap)
1098 Lisp_Object keymap;
1099{ 1090{
1100 register Lisp_Object copy, tail; 1091 register Lisp_Object copy, tail;
1101 keymap = get_keymap (keymap, 1, 0); 1092 keymap = get_keymap (keymap, 1, 0);
@@ -1158,10 +1149,7 @@ DEF is anything that can be a key's definition:
1158If KEYMAP is a sparse keymap with a binding for KEY, the existing 1149If KEYMAP is a sparse keymap with a binding for KEY, the existing
1159binding is altered. If there is no binding for KEY, the new pair 1150binding is altered. If there is no binding for KEY, the new pair
1160binding KEY to DEF is added at the front of KEYMAP. */) 1151binding KEY to DEF is added at the front of KEYMAP. */)
1161 (keymap, key, def) 1152 (Lisp_Object keymap, Lisp_Object key, Lisp_Object def)
1162 Lisp_Object keymap;
1163 Lisp_Object key;
1164 Lisp_Object def;
1165{ 1153{
1166 register int idx; 1154 register int idx;
1167 register Lisp_Object c; 1155 register Lisp_Object c;
@@ -1277,8 +1265,7 @@ ignored if POSITION is non-nil.
1277If the optional argument KEYMAPS is non-nil, it should be a list of 1265If the optional argument KEYMAPS is non-nil, it should be a list of
1278keymaps to search for command remapping. Otherwise, search for the 1266keymaps to search for command remapping. Otherwise, search for the
1279remapping in all currently active keymaps. */) 1267remapping in all currently active keymaps. */)
1280 (command, position, keymaps) 1268 (Lisp_Object command, Lisp_Object position, Lisp_Object keymaps)
1281 Lisp_Object command, position, keymaps;
1282{ 1269{
1283 if (!SYMBOLP (command)) 1270 if (!SYMBOLP (command))
1284 return Qnil; 1271 return Qnil;
@@ -1320,10 +1307,7 @@ bindings, used when nothing else in the keymap applies; this makes it
1320usable as a general function for probing keymaps. However, if the 1307usable as a general function for probing keymaps. However, if the
1321third optional argument ACCEPT-DEFAULT is non-nil, `lookup-key' will 1308third optional argument ACCEPT-DEFAULT is non-nil, `lookup-key' will
1322recognize the default bindings, just as `read-key-sequence' does. */) 1309recognize the default bindings, just as `read-key-sequence' does. */)
1323 (keymap, key, accept_default) 1310 (Lisp_Object keymap, Lisp_Object key, Lisp_Object accept_default)
1324 Lisp_Object keymap;
1325 Lisp_Object key;
1326 Lisp_Object accept_default;
1327{ 1311{
1328 register int idx; 1312 register int idx;
1329 register Lisp_Object cmd; 1313 register Lisp_Object cmd;
@@ -1581,8 +1565,7 @@ DEFUN ("current-active-maps", Fcurrent_active_maps, Scurrent_active_maps,
1581OLP if non-nil indicates that we should obey `overriding-local-map' and 1565OLP if non-nil indicates that we should obey `overriding-local-map' and
1582`overriding-terminal-local-map'. POSITION can specify a click position 1566`overriding-terminal-local-map'. POSITION can specify a click position
1583like in the respective argument of `key-binding'. */) 1567like in the respective argument of `key-binding'. */)
1584 (olp, position) 1568 (Lisp_Object olp, Lisp_Object position)
1585 Lisp_Object olp, position;
1586{ 1569{
1587 int count = SPECPDL_INDEX (); 1570 int count = SPECPDL_INDEX ();
1588 1571
@@ -1745,8 +1728,7 @@ occurs in the keymaps associated with it instead of KEY. It can also
1745be a number or marker, in which case the keymap properties at the 1728be a number or marker, in which case the keymap properties at the
1746specified buffer position instead of point are used. 1729specified buffer position instead of point are used.
1747 */) 1730 */)
1748 (key, accept_default, no_remap, position) 1731 (Lisp_Object key, Lisp_Object accept_default, Lisp_Object no_remap, Lisp_Object position)
1749 Lisp_Object key, accept_default, no_remap, position;
1750{ 1732{
1751 Lisp_Object *maps, value; 1733 Lisp_Object *maps, value;
1752 int nmaps, i; 1734 int nmaps, i;
@@ -1936,8 +1918,7 @@ The binding is probably a symbol with a function definition.
1936 1918
1937If optional argument ACCEPT-DEFAULT is non-nil, recognize default 1919If optional argument ACCEPT-DEFAULT is non-nil, recognize default
1938bindings; see the description of `lookup-key' for more details about this. */) 1920bindings; see the description of `lookup-key' for more details about this. */)
1939 (keys, accept_default) 1921 (Lisp_Object keys, Lisp_Object accept_default)
1940 Lisp_Object keys, accept_default;
1941{ 1922{
1942 register Lisp_Object map; 1923 register Lisp_Object map;
1943 map = current_buffer->keymap; 1924 map = current_buffer->keymap;
@@ -1957,8 +1938,7 @@ This function's return values are the same as those of `lookup-key'
1957 1938
1958If optional argument ACCEPT-DEFAULT is non-nil, recognize default 1939If optional argument ACCEPT-DEFAULT is non-nil, recognize default
1959bindings; see the description of `lookup-key' for more details about this. */) 1940bindings; see the description of `lookup-key' for more details about this. */)
1960 (keys, accept_default) 1941 (Lisp_Object keys, Lisp_Object accept_default)
1961 Lisp_Object keys, accept_default;
1962{ 1942{
1963 return Flookup_key (current_global_map, keys, accept_default); 1943 return Flookup_key (current_global_map, keys, accept_default);
1964} 1944}
@@ -1977,8 +1957,7 @@ that come after prefix bindings.
1977 1957
1978If optional argument ACCEPT-DEFAULT is non-nil, recognize default 1958If optional argument ACCEPT-DEFAULT is non-nil, recognize default
1979bindings; see the description of `lookup-key' for more details about this. */) 1959bindings; see the description of `lookup-key' for more details about this. */)
1980 (key, accept_default) 1960 (Lisp_Object key, Lisp_Object accept_default)
1981 Lisp_Object key, accept_default;
1982{ 1961{
1983 Lisp_Object *modes, *maps; 1962 Lisp_Object *modes, *maps;
1984 int nmaps; 1963 int nmaps;
@@ -2017,8 +1996,7 @@ as a function.
2017The third optional argument NAME, if given, supplies a menu name 1996The third optional argument NAME, if given, supplies a menu name
2018string for the map. This is required to use the keymap as a menu. 1997string for the map. This is required to use the keymap as a menu.
2019This function returns COMMAND. */) 1998This function returns COMMAND. */)
2020 (command, mapvar, name) 1999 (Lisp_Object command, Lisp_Object mapvar, Lisp_Object name)
2021 Lisp_Object command, mapvar, name;
2022{ 2000{
2023 Lisp_Object map; 2001 Lisp_Object map;
2024 map = Fmake_sparse_keymap (name); 2002 map = Fmake_sparse_keymap (name);
@@ -2032,8 +2010,7 @@ This function returns COMMAND. */)
2032 2010
2033DEFUN ("use-global-map", Fuse_global_map, Suse_global_map, 1, 1, 0, 2011DEFUN ("use-global-map", Fuse_global_map, Suse_global_map, 1, 1, 0,
2034 doc: /* Select KEYMAP as the global keymap. */) 2012 doc: /* Select KEYMAP as the global keymap. */)
2035 (keymap) 2013 (Lisp_Object keymap)
2036 Lisp_Object keymap;
2037{ 2014{
2038 keymap = get_keymap (keymap, 1, 1); 2015 keymap = get_keymap (keymap, 1, 1);
2039 current_global_map = keymap; 2016 current_global_map = keymap;
@@ -2044,8 +2021,7 @@ DEFUN ("use-global-map", Fuse_global_map, Suse_global_map, 1, 1, 0,
2044DEFUN ("use-local-map", Fuse_local_map, Suse_local_map, 1, 1, 0, 2021DEFUN ("use-local-map", Fuse_local_map, Suse_local_map, 1, 1, 0,
2045 doc: /* Select KEYMAP as the local keymap. 2022 doc: /* Select KEYMAP as the local keymap.
2046If KEYMAP is nil, that means no local keymap. */) 2023If KEYMAP is nil, that means no local keymap. */)
2047 (keymap) 2024 (Lisp_Object keymap)
2048 Lisp_Object keymap;
2049{ 2025{
2050 if (!NILP (keymap)) 2026 if (!NILP (keymap))
2051 keymap = get_keymap (keymap, 1, 1); 2027 keymap = get_keymap (keymap, 1, 1);
@@ -2058,21 +2034,21 @@ If KEYMAP is nil, that means no local keymap. */)
2058DEFUN ("current-local-map", Fcurrent_local_map, Scurrent_local_map, 0, 0, 0, 2034DEFUN ("current-local-map", Fcurrent_local_map, Scurrent_local_map, 0, 0, 0,
2059 doc: /* Return current buffer's local keymap, or nil if it has none. 2035 doc: /* Return current buffer's local keymap, or nil if it has none.
2060Normally the local keymap is set by the major mode with `use-local-map'. */) 2036Normally the local keymap is set by the major mode with `use-local-map'. */)
2061 () 2037 (void)
2062{ 2038{
2063 return current_buffer->keymap; 2039 return current_buffer->keymap;
2064} 2040}
2065 2041
2066DEFUN ("current-global-map", Fcurrent_global_map, Scurrent_global_map, 0, 0, 0, 2042DEFUN ("current-global-map", Fcurrent_global_map, Scurrent_global_map, 0, 0, 0,
2067 doc: /* Return the current global keymap. */) 2043 doc: /* Return the current global keymap. */)
2068 () 2044 (void)
2069{ 2045{
2070 return current_global_map; 2046 return current_global_map;
2071} 2047}
2072 2048
2073DEFUN ("current-minor-mode-maps", Fcurrent_minor_mode_maps, Scurrent_minor_mode_maps, 0, 0, 0, 2049DEFUN ("current-minor-mode-maps", Fcurrent_minor_mode_maps, Scurrent_minor_mode_maps, 0, 0, 0,
2074 doc: /* Return a list of keymaps for the minor modes of the current buffer. */) 2050 doc: /* Return a list of keymaps for the minor modes of the current buffer. */)
2075 () 2051 (void)
2076{ 2052{
2077 Lisp_Object *maps; 2053 Lisp_Object *maps;
2078 int nmaps = current_minor_maps (0, &maps); 2054 int nmaps = current_minor_maps (0, &maps);
@@ -2160,8 +2136,7 @@ KEYS starting from KEYMAP gets you to MAP. These elements are ordered
2160so that the KEYS increase in length. The first element is ([] . KEYMAP). 2136so that the KEYS increase in length. The first element is ([] . KEYMAP).
2161An optional argument PREFIX, if non-nil, should be a key sequence; 2137An optional argument PREFIX, if non-nil, should be a key sequence;
2162then the value includes only maps for prefixes that start with PREFIX. */) 2138then the value includes only maps for prefixes that start with PREFIX. */)
2163 (keymap, prefix) 2139 (Lisp_Object keymap, Lisp_Object prefix)
2164 Lisp_Object keymap, prefix;
2165{ 2140{
2166 Lisp_Object maps, tail; 2141 Lisp_Object maps, tail;
2167 int prefixlen = XINT (Flength (prefix)); 2142 int prefixlen = XINT (Flength (prefix));
@@ -2249,8 +2224,7 @@ DEFUN ("key-description", Fkey_description, Skey_description, 1, 2, 0,
2249Optional arg PREFIX is the sequence of keys leading up to KEYS. 2224Optional arg PREFIX is the sequence of keys leading up to KEYS.
2250Control characters turn into "C-foo" sequences, meta into "M-foo", 2225Control characters turn into "C-foo" sequences, meta into "M-foo",
2251spaces are put between sequence elements, etc. */) 2226spaces are put between sequence elements, etc. */)
2252 (keys, prefix) 2227 (Lisp_Object keys, Lisp_Object prefix)
2253 Lisp_Object keys, prefix;
2254{ 2228{
2255 int len = 0; 2229 int len = 0;
2256 int i, i_byte; 2230 int i, i_byte;
@@ -2470,8 +2444,7 @@ DEFUN ("single-key-description", Fsingle_key_description,
2470Control characters turn into C-whatever, etc. 2444Control characters turn into C-whatever, etc.
2471Optional argument NO-ANGLES non-nil means don't put angle brackets 2445Optional argument NO-ANGLES non-nil means don't put angle brackets
2472around function keys and event symbols. */) 2446around function keys and event symbols. */)
2473 (key, no_angles) 2447 (Lisp_Object key, Lisp_Object no_angles)
2474 Lisp_Object key, no_angles;
2475{ 2448{
2476 if (CONSP (key) && lucid_event_type_list_p (key)) 2449 if (CONSP (key) && lucid_event_type_list_p (key))
2477 key = Fevent_convert_list (key); 2450 key = Fevent_convert_list (key);
@@ -2537,8 +2510,7 @@ Control characters turn into "^char", etc. This differs from
2537Also, this function recognizes the 2**7 bit as the Meta character, 2510Also, this function recognizes the 2**7 bit as the Meta character,
2538whereas `single-key-description' uses the 2**27 bit for Meta. 2511whereas `single-key-description' uses the 2**27 bit for Meta.
2539See Info node `(elisp)Describing Characters' for examples. */) 2512See Info node `(elisp)Describing Characters' for examples. */)
2540 (character) 2513 (Lisp_Object character)
2541 Lisp_Object character;
2542{ 2514{
2543 /* Currently MAX_MULTIBYTE_LENGTH is 4 (< 6). */ 2515 /* Currently MAX_MULTIBYTE_LENGTH is 4 (< 6). */
2544 unsigned char str[6]; 2516 unsigned char str[6];
@@ -2767,9 +2739,7 @@ indirect definition itself.
2767If optional 5th arg NO-REMAP is non-nil, don't search for key sequences 2739If optional 5th arg NO-REMAP is non-nil, don't search for key sequences
2768that invoke a command which is remapped to DEFINITION, but include the 2740that invoke a command which is remapped to DEFINITION, but include the
2769remapped command in the returned list. */) 2741remapped command in the returned list. */)
2770 (definition, keymap, firstonly, noindirect, no_remap) 2742 (Lisp_Object definition, Lisp_Object keymap, Lisp_Object firstonly, Lisp_Object noindirect, Lisp_Object no_remap)
2771 Lisp_Object definition, keymap;
2772 Lisp_Object firstonly, noindirect, no_remap;
2773{ 2743{
2774 /* The keymaps in which to search. */ 2744 /* The keymaps in which to search. */
2775 Lisp_Object keymaps; 2745 Lisp_Object keymaps;
@@ -2990,8 +2960,7 @@ The optional argument PREFIX, if non-nil, should be a key sequence;
2990then we display only bindings that start with that prefix. 2960then we display only bindings that start with that prefix.
2991The optional argument MENUS, if non-nil, says to mention menu bindings. 2961The optional argument MENUS, if non-nil, says to mention menu bindings.
2992\(Ordinarily these are omitted from the output.) */) 2962\(Ordinarily these are omitted from the output.) */)
2993 (buffer, prefix, menus) 2963 (Lisp_Object buffer, Lisp_Object prefix, Lisp_Object menus)
2994 Lisp_Object buffer, prefix, menus;
2995{ 2964{
2996 Lisp_Object outbuf, shadow; 2965 Lisp_Object outbuf, shadow;
2997 int nomenu = NILP (menus); 2966 int nomenu = NILP (menus);
@@ -3583,8 +3552,7 @@ DEFUN ("describe-vector", Fdescribe_vector, Sdescribe_vector, 1, 2, 0,
3583 doc: /* Insert a description of contents of VECTOR. 3552 doc: /* Insert a description of contents of VECTOR.
3584This is text showing the elements of vector matched against indices. 3553This is text showing the elements of vector matched against indices.
3585DESCRIBER is the output function used; nil means use `princ'. */) 3554DESCRIBER is the output function used; nil means use `princ'. */)
3586 (vector, describer) 3555 (Lisp_Object vector, Lisp_Object describer)
3587 Lisp_Object vector, describer;
3588{ 3556{
3589 int count = SPECPDL_INDEX (); 3557 int count = SPECPDL_INDEX ();
3590 if (NILP (describer)) 3558 if (NILP (describer))
@@ -3856,8 +3824,7 @@ DEFUN ("apropos-internal", Fapropos_internal, Sapropos_internal, 1, 2, 0,
3856If optional 2nd arg PREDICATE is non-nil, (funcall PREDICATE SYMBOL) is done 3824If optional 2nd arg PREDICATE is non-nil, (funcall PREDICATE SYMBOL) is done
3857for each symbol and a symbol is mentioned only if that returns non-nil. 3825for each symbol and a symbol is mentioned only if that returns non-nil.
3858Return list of symbols found. */) 3826Return list of symbols found. */)
3859 (regexp, predicate) 3827 (Lisp_Object regexp, Lisp_Object predicate)
3860 Lisp_Object regexp, predicate;
3861{ 3828{
3862 Lisp_Object tem; 3829 Lisp_Object tem;
3863 CHECK_STRING (regexp); 3830 CHECK_STRING (regexp);
diff --git a/src/lread.c b/src/lread.c
index 8df689c4afa..42925f8ac09 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -779,8 +779,7 @@ If the optional argument SECONDS is non-nil, it should be a number
779specifying the maximum number of seconds to wait for input. If no 779specifying the maximum number of seconds to wait for input. If no
780input arrives in that time, return nil. SECONDS may be a 780input arrives in that time, return nil. SECONDS may be a
781floating-point value. */) 781floating-point value. */)
782 (prompt, inherit_input_method, seconds) 782 (Lisp_Object prompt, Lisp_Object inherit_input_method, Lisp_Object seconds)
783 Lisp_Object prompt, inherit_input_method, seconds;
784{ 783{
785 Lisp_Object val; 784 Lisp_Object val;
786 785
@@ -802,8 +801,7 @@ If the optional argument SECONDS is non-nil, it should be a number
802specifying the maximum number of seconds to wait for input. If no 801specifying the maximum number of seconds to wait for input. If no
803input arrives in that time, return nil. SECONDS may be a 802input arrives in that time, return nil. SECONDS may be a
804floating-point value. */) 803floating-point value. */)
805 (prompt, inherit_input_method, seconds) 804 (Lisp_Object prompt, Lisp_Object inherit_input_method, Lisp_Object seconds)
806 Lisp_Object prompt, inherit_input_method, seconds;
807{ 805{
808 if (! NILP (prompt)) 806 if (! NILP (prompt))
809 message_with_string ("%s", prompt, 0); 807 message_with_string ("%s", prompt, 0);
@@ -824,8 +822,7 @@ If the optional argument SECONDS is non-nil, it should be a number
824specifying the maximum number of seconds to wait for input. If no 822specifying the maximum number of seconds to wait for input. If no
825input arrives in that time, return nil. SECONDS may be a 823input arrives in that time, return nil. SECONDS may be a
826floating-point value. */) 824floating-point value. */)
827 (prompt, inherit_input_method, seconds) 825 (Lisp_Object prompt, Lisp_Object inherit_input_method, Lisp_Object seconds)
828 Lisp_Object prompt, inherit_input_method, seconds;
829{ 826{
830 Lisp_Object val; 827 Lisp_Object val;
831 828
@@ -840,7 +837,7 @@ floating-point value. */)
840 837
841DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0, 838DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0,
842 doc: /* Don't use this yourself. */) 839 doc: /* Don't use this yourself. */)
843 () 840 (void)
844{ 841{
845 register Lisp_Object val; 842 register Lisp_Object val;
846 BLOCK_INPUT; 843 BLOCK_INPUT;
@@ -925,7 +922,7 @@ DEFUN ("get-load-suffixes", Fget_load_suffixes, Sget_load_suffixes, 0, 0, 0,
925 doc: /* Return the suffixes that `load' should try if a suffix is \ 922 doc: /* Return the suffixes that `load' should try if a suffix is \
926required. 923required.
927This uses the variables `load-suffixes' and `load-file-rep-suffixes'. */) 924This uses the variables `load-suffixes' and `load-file-rep-suffixes'. */)
928 () 925 (void)
929{ 926{
930 Lisp_Object lst = Qnil, suffixes = Vload_suffixes, suffix, ext; 927 Lisp_Object lst = Qnil, suffixes = Vload_suffixes, suffix, ext;
931 while (CONSP (suffixes)) 928 while (CONSP (suffixes))
@@ -980,8 +977,7 @@ Loading a file records its definitions, and its `provide' and
980car is the file name loaded. See `load-history'. 977car is the file name loaded. See `load-history'.
981 978
982Return t if the file exists and loads successfully. */) 979Return t if the file exists and loads successfully. */)
983 (file, noerror, nomessage, nosuffix, must_suffix) 980 (Lisp_Object file, Lisp_Object noerror, Lisp_Object nomessage, Lisp_Object nosuffix, Lisp_Object must_suffix)
984 Lisp_Object file, noerror, nomessage, nosuffix, must_suffix;
985{ 981{
986 register FILE *stream; 982 register FILE *stream;
987 register int fd = -1; 983 register int fd = -1;
@@ -1331,8 +1327,7 @@ file name when searching.
1331If non-nil, PREDICATE is used instead of `file-readable-p'. 1327If non-nil, PREDICATE is used instead of `file-readable-p'.
1332PREDICATE can also be an integer to pass to the access(2) function, 1328PREDICATE can also be an integer to pass to the access(2) function,
1333in which case file-name-handlers are ignored. */) 1329in which case file-name-handlers are ignored. */)
1334 (filename, path, suffixes, predicate) 1330 (Lisp_Object filename, Lisp_Object path, Lisp_Object suffixes, Lisp_Object predicate)
1335 Lisp_Object filename, path, suffixes, predicate;
1336{ 1331{
1337 Lisp_Object file; 1332 Lisp_Object file;
1338 int fd = openp (path, filename, suffixes, &file, predicate); 1333 int fd = openp (path, filename, suffixes, &file, predicate);
@@ -1785,8 +1780,7 @@ DO-ALLOW-PRINT, if non-nil, specifies that `print' and related
1785 functions should work normally even if PRINTFLAG is nil. 1780 functions should work normally even if PRINTFLAG is nil.
1786 1781
1787This function preserves the position of point. */) 1782This function preserves the position of point. */)
1788 (buffer, printflag, filename, unibyte, do_allow_print) 1783 (Lisp_Object buffer, Lisp_Object printflag, Lisp_Object filename, Lisp_Object unibyte, Lisp_Object do_allow_print)
1789 Lisp_Object buffer, printflag, filename, unibyte, do_allow_print;
1790{ 1784{
1791 int count = SPECPDL_INDEX (); 1785 int count = SPECPDL_INDEX ();
1792 Lisp_Object tem, buf; 1786 Lisp_Object tem, buf;
@@ -1829,8 +1823,7 @@ instead of `read' to read each expression. It gets one argument
1829which is the input stream for reading characters. 1823which is the input stream for reading characters.
1830 1824
1831This function does not move point. */) 1825This function does not move point. */)
1832 (start, end, printflag, read_function) 1826 (Lisp_Object start, Lisp_Object end, Lisp_Object printflag, Lisp_Object read_function)
1833 Lisp_Object start, end, printflag, read_function;
1834{ 1827{
1835 int count = SPECPDL_INDEX (); 1828 int count = SPECPDL_INDEX ();
1836 Lisp_Object tem, cbuf; 1829 Lisp_Object tem, cbuf;
@@ -1864,8 +1857,7 @@ STREAM or the value of `standard-input' may be:
1864 a string (takes text from string, starting at the beginning) 1857 a string (takes text from string, starting at the beginning)
1865 t (read text line using minibuffer and use it, or read from 1858 t (read text line using minibuffer and use it, or read from
1866 standard input in batch mode). */) 1859 standard input in batch mode). */)
1867 (stream) 1860 (Lisp_Object stream)
1868 Lisp_Object stream;
1869{ 1861{
1870 if (NILP (stream)) 1862 if (NILP (stream))
1871 stream = Vstandard_input; 1863 stream = Vstandard_input;
@@ -1882,8 +1874,7 @@ DEFUN ("read-from-string", Fread_from_string, Sread_from_string, 1, 3, 0,
1882Returns a cons: (OBJECT-READ . FINAL-STRING-INDEX). 1874Returns a cons: (OBJECT-READ . FINAL-STRING-INDEX).
1883START and END optionally delimit a substring of STRING from which to read; 1875START and END optionally delimit a substring of STRING from which to read;
1884 they default to 0 and (length STRING) respectively. */) 1876 they default to 0 and (length STRING) respectively. */)
1885 (string, start, end) 1877 (Lisp_Object string, Lisp_Object start, Lisp_Object end)
1886 Lisp_Object string, start, end;
1887{ 1878{
1888 Lisp_Object ret; 1879 Lisp_Object ret;
1889 CHECK_STRING (string); 1880 CHECK_STRING (string);
@@ -3609,8 +3600,7 @@ DEFUN ("intern", Fintern, Sintern, 1, 2, 0,
3609If there is none, one is created by this function and returned. 3600If there is none, one is created by this function and returned.
3610A second optional argument specifies the obarray to use; 3601A second optional argument specifies the obarray to use;
3611it defaults to the value of `obarray'. */) 3602it defaults to the value of `obarray'. */)
3612 (string, obarray) 3603 (Lisp_Object string, Lisp_Object obarray)
3613 Lisp_Object string, obarray;
3614{ 3604{
3615 register Lisp_Object tem, sym, *ptr; 3605 register Lisp_Object tem, sym, *ptr;
3616 3606
@@ -3657,8 +3647,7 @@ NAME may be a string or a symbol. If it is a symbol, that exact
3657symbol is searched for. 3647symbol is searched for.
3658A second optional argument specifies the obarray to use; 3648A second optional argument specifies the obarray to use;
3659it defaults to the value of `obarray'. */) 3649it defaults to the value of `obarray'. */)
3660 (name, obarray) 3650 (Lisp_Object name, Lisp_Object obarray)
3661 Lisp_Object name, obarray;
3662{ 3651{
3663 register Lisp_Object tem, string; 3652 register Lisp_Object tem, string;
3664 3653
@@ -3686,8 +3675,7 @@ The value is t if a symbol was found and deleted, nil otherwise.
3686NAME may be a string or a symbol. If it is a symbol, that symbol 3675NAME may be a string or a symbol. If it is a symbol, that symbol
3687is deleted, if it belongs to OBARRAY--no other symbol is deleted. 3676is deleted, if it belongs to OBARRAY--no other symbol is deleted.
3688OBARRAY defaults to the value of the variable `obarray'. */) 3677OBARRAY defaults to the value of the variable `obarray'. */)
3689 (name, obarray) 3678 (Lisp_Object name, Lisp_Object obarray)
3690 Lisp_Object name, obarray;
3691{ 3679{
3692 register Lisp_Object string, tem; 3680 register Lisp_Object string, tem;
3693 int hash; 3681 int hash;
@@ -3839,8 +3827,7 @@ mapatoms_1 (Lisp_Object sym, Lisp_Object function)
3839DEFUN ("mapatoms", Fmapatoms, Smapatoms, 1, 2, 0, 3827DEFUN ("mapatoms", Fmapatoms, Smapatoms, 1, 2, 0,
3840 doc: /* Call FUNCTION on every symbol in OBARRAY. 3828 doc: /* Call FUNCTION on every symbol in OBARRAY.
3841OBARRAY defaults to the value of `obarray'. */) 3829OBARRAY defaults to the value of `obarray'. */)
3842 (function, obarray) 3830 (Lisp_Object function, Lisp_Object obarray)
3843 Lisp_Object function, obarray;
3844{ 3831{
3845 if (NILP (obarray)) obarray = Vobarray; 3832 if (NILP (obarray)) obarray = Vobarray;
3846 obarray = check_obarray (obarray); 3833 obarray = check_obarray (obarray);
diff --git a/src/macros.c b/src/macros.c
index 83180d090a8..0e0d3f3597e 100644
--- a/src/macros.c
+++ b/src/macros.c
@@ -64,8 +64,7 @@ Non-nil arg (prefix arg) means append to last macro defined;
64this begins by re-executing that macro as if you typed it again. 64this begins by re-executing that macro as if you typed it again.
65If optional second arg, NO-EXEC, is non-nil, do not re-execute last 65If optional second arg, NO-EXEC, is non-nil, do not re-execute last
66macro before appending to it. */) 66macro before appending to it. */)
67 (append, no_exec) 67 (Lisp_Object append, Lisp_Object no_exec)
68 Lisp_Object append, no_exec;
69{ 68{
70 if (!NILP (current_kboard->defining_kbd_macro)) 69 if (!NILP (current_kboard->defining_kbd_macro))
71 error ("Already defining kbd macro"); 70 error ("Already defining kbd macro");
@@ -163,8 +162,7 @@ An argument of zero means repeat until error.
163 162
164In Lisp, optional second arg LOOPFUNC may be a function that is called prior to 163In Lisp, optional second arg LOOPFUNC may be a function that is called prior to
165each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) 164each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */)
166 (repeat, loopfunc) 165 (Lisp_Object repeat, Lisp_Object loopfunc)
167 Lisp_Object repeat, loopfunc;
168{ 166{
169 if (NILP (current_kboard->defining_kbd_macro)) 167 if (NILP (current_kboard->defining_kbd_macro))
170 error ("Not defining kbd macro"); 168 error ("Not defining kbd macro");
@@ -230,7 +228,7 @@ finalize_kbd_macro_chars (void)
230DEFUN ("cancel-kbd-macro-events", Fcancel_kbd_macro_events, 228DEFUN ("cancel-kbd-macro-events", Fcancel_kbd_macro_events,
231 Scancel_kbd_macro_events, 0, 0, 0, 229 Scancel_kbd_macro_events, 0, 0, 0,
232 doc: /* Cancel the events added to a keyboard macro for this command. */) 230 doc: /* Cancel the events added to a keyboard macro for this command. */)
233 () 231 (void)
234{ 232{
235 current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_end; 233 current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_end;
236 return Qnil; 234 return Qnil;
@@ -239,8 +237,7 @@ DEFUN ("cancel-kbd-macro-events", Fcancel_kbd_macro_events,
239DEFUN ("store-kbd-macro-event", Fstore_kbd_macro_event, 237DEFUN ("store-kbd-macro-event", Fstore_kbd_macro_event,
240 Sstore_kbd_macro_event, 1, 1, 0, 238 Sstore_kbd_macro_event, 1, 1, 0,
241 doc: /* Store EVENT into the keyboard macro being defined. */) 239 doc: /* Store EVENT into the keyboard macro being defined. */)
242 (event) 240 (Lisp_Object event)
243 Lisp_Object event;
244{ 241{
245 store_kbd_macro_char (event); 242 store_kbd_macro_char (event);
246 return Qnil; 243 return Qnil;
@@ -257,8 +254,7 @@ defining others, use \\[name-last-kbd-macro].
257 254
258In Lisp, optional second arg LOOPFUNC may be a function that is called prior to 255In Lisp, optional second arg LOOPFUNC may be a function that is called prior to
259each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) 256each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */)
260 (prefix, loopfunc) 257 (Lisp_Object prefix, Lisp_Object loopfunc)
261 Lisp_Object prefix, loopfunc;
262{ 258{
263 /* Don't interfere with recognition of the previous command 259 /* Don't interfere with recognition of the previous command
264 from before this macro started. */ 260 from before this macro started. */
@@ -303,8 +299,7 @@ COUNT is a repeat count, or nil for once, or 0 for infinite loop.
303 299
304Optional third arg LOOPFUNC may be a function that is called prior to 300Optional third arg LOOPFUNC may be a function that is called prior to
305each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) 301each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */)
306 (macro, count, loopfunc) 302 (Lisp_Object macro, Lisp_Object count, Lisp_Object loopfunc)
307 Lisp_Object macro, count, loopfunc;
308{ 303{
309 Lisp_Object final; 304 Lisp_Object final;
310 Lisp_Object tem; 305 Lisp_Object tem;
diff --git a/src/marker.c b/src/marker.c
index fc9a6637a82..911d2e57706 100644
--- a/src/marker.c
+++ b/src/marker.c
@@ -433,8 +433,7 @@ buf_bytepos_to_charpos (struct buffer *b, int bytepos)
433DEFUN ("marker-buffer", Fmarker_buffer, Smarker_buffer, 1, 1, 0, 433DEFUN ("marker-buffer", Fmarker_buffer, Smarker_buffer, 1, 1, 0,
434 doc: /* Return the buffer that MARKER points into, or nil if none. 434 doc: /* Return the buffer that MARKER points into, or nil if none.
435Returns nil if MARKER points into a dead buffer. */) 435Returns nil if MARKER points into a dead buffer. */)
436 (marker) 436 (register Lisp_Object marker)
437 register Lisp_Object marker;
438{ 437{
439 register Lisp_Object buf; 438 register Lisp_Object buf;
440 CHECK_MARKER (marker); 439 CHECK_MARKER (marker);
@@ -454,8 +453,7 @@ Returns nil if MARKER points into a dead buffer. */)
454DEFUN ("marker-position", Fmarker_position, Smarker_position, 1, 1, 0, 453DEFUN ("marker-position", Fmarker_position, Smarker_position, 1, 1, 0,
455 doc: /* Return the position MARKER points at, as a character number. 454 doc: /* Return the position MARKER points at, as a character number.
456Returns nil if MARKER points nowhere. */) 455Returns nil if MARKER points nowhere. */)
457 (marker) 456 (Lisp_Object marker)
458 Lisp_Object marker;
459{ 457{
460 CHECK_MARKER (marker); 458 CHECK_MARKER (marker);
461 if (XMARKER (marker)->buffer) 459 if (XMARKER (marker)->buffer)
@@ -470,8 +468,7 @@ BUFFER defaults to the current buffer.
470If POSITION is nil, makes marker point nowhere. 468If POSITION is nil, makes marker point nowhere.
471Then it no longer slows down editing in any buffer. 469Then it no longer slows down editing in any buffer.
472Returns MARKER. */) 470Returns MARKER. */)
473 (marker, position, buffer) 471 (Lisp_Object marker, Lisp_Object position, Lisp_Object buffer)
474 Lisp_Object marker, position, buffer;
475{ 472{
476 register int charno, bytepos; 473 register int charno, bytepos;
477 register struct buffer *b; 474 register struct buffer *b;
@@ -815,8 +812,7 @@ If argument is a number, makes a new marker pointing
815at that position in the current buffer. 812at that position in the current buffer.
816The optional argument TYPE specifies the insertion type of the new marker; 813The optional argument TYPE specifies the insertion type of the new marker;
817see `marker-insertion-type'. */) 814see `marker-insertion-type'. */)
818 (marker, type) 815 (register Lisp_Object marker, Lisp_Object type)
819 register Lisp_Object marker, type;
820{ 816{
821 register Lisp_Object new; 817 register Lisp_Object new;
822 818
@@ -833,8 +829,7 @@ DEFUN ("marker-insertion-type", Fmarker_insertion_type,
833 Smarker_insertion_type, 1, 1, 0, 829 Smarker_insertion_type, 1, 1, 0,
834 doc: /* Return insertion type of MARKER: t if it stays after inserted text. 830 doc: /* Return insertion type of MARKER: t if it stays after inserted text.
835The value nil means the marker stays before text inserted there. */) 831The value nil means the marker stays before text inserted there. */)
836 (marker) 832 (register Lisp_Object marker)
837 register Lisp_Object marker;
838{ 833{
839 CHECK_MARKER (marker); 834 CHECK_MARKER (marker);
840 return XMARKER (marker)->insertion_type ? Qt : Qnil; 835 return XMARKER (marker)->insertion_type ? Qt : Qnil;
@@ -845,8 +840,7 @@ DEFUN ("set-marker-insertion-type", Fset_marker_insertion_type,
845 doc: /* Set the insertion-type of MARKER to TYPE. 840 doc: /* Set the insertion-type of MARKER to TYPE.
846If TYPE is t, it means the marker advances when you insert text at it. 841If TYPE is t, it means the marker advances when you insert text at it.
847If TYPE is nil, it means the marker stays behind when you insert text at it. */) 842If TYPE is nil, it means the marker stays behind when you insert text at it. */)
848 (marker, type) 843 (Lisp_Object marker, Lisp_Object type)
849 Lisp_Object marker, type;
850{ 844{
851 CHECK_MARKER (marker); 845 CHECK_MARKER (marker);
852 846
@@ -857,8 +851,7 @@ If TYPE is nil, it means the marker stays behind when you insert text at it. */
857DEFUN ("buffer-has-markers-at", Fbuffer_has_markers_at, Sbuffer_has_markers_at, 851DEFUN ("buffer-has-markers-at", Fbuffer_has_markers_at, Sbuffer_has_markers_at,
858 1, 1, 0, 852 1, 1, 0,
859 doc: /* Return t if there are markers pointing at POSITION in the current buffer. */) 853 doc: /* Return t if there are markers pointing at POSITION in the current buffer. */)
860 (position) 854 (Lisp_Object position)
861 Lisp_Object position;
862{ 855{
863 register struct Lisp_Marker *tail; 856 register struct Lisp_Marker *tail;
864 register int charno; 857 register int charno;
diff --git a/src/menu.c b/src/menu.c
index a90c71219d3..a424200fb3e 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1064,8 +1064,7 @@ keyboard input, then this normally results in a quit and
1064`x-popup-menu' does not return. But if POSITION is a mouse button 1064`x-popup-menu' does not return. But if POSITION is a mouse button
1065event (indicating that the user invoked the menu with the mouse) then 1065event (indicating that the user invoked the menu with the mouse) then
1066no quit occurs and `x-popup-menu' returns nil. */) 1066no quit occurs and `x-popup-menu' returns nil. */)
1067 (position, menu) 1067 (Lisp_Object position, Lisp_Object menu)
1068 Lisp_Object position, menu;
1069{ 1068{
1070 Lisp_Object keymap, tem; 1069 Lisp_Object keymap, tem;
1071 int xpos = 0, ypos = 0; 1070 int xpos = 0, ypos = 0;
diff --git a/src/minibuf.c b/src/minibuf.c
index 2159c576636..1e1300b675c 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -204,8 +204,7 @@ DEFUN ("set-minibuffer-window", Fset_minibuffer_window,
204 doc: /* Specify which minibuffer window to use for the minibuffer. 204 doc: /* Specify which minibuffer window to use for the minibuffer.
205This affects where the minibuffer is displayed if you put text in it 205This affects where the minibuffer is displayed if you put text in it
206without invoking the usual minibuffer commands. */) 206without invoking the usual minibuffer commands. */)
207 (window) 207 (Lisp_Object window)
208 Lisp_Object window;
209{ 208{
210 CHECK_WINDOW (window); 209 CHECK_WINDOW (window);
211 if (! MINI_WINDOW_P (XWINDOW (window))) 210 if (! MINI_WINDOW_P (XWINDOW (window)))
@@ -340,8 +339,7 @@ DEFUN ("minibufferp", Fminibufferp,
340 doc: /* Return t if BUFFER is a minibuffer. 339 doc: /* Return t if BUFFER is a minibuffer.
341No argument or nil as argument means use current buffer as BUFFER. 340No argument or nil as argument means use current buffer as BUFFER.
342BUFFER can be a buffer or a buffer name. */) 341BUFFER can be a buffer or a buffer name. */)
343 (buffer) 342 (Lisp_Object buffer)
344 Lisp_Object buffer;
345{ 343{
346 Lisp_Object tem; 344 Lisp_Object tem;
347 345
@@ -360,7 +358,7 @@ DEFUN ("minibuffer-prompt-end", Fminibuffer_prompt_end,
360 Sminibuffer_prompt_end, 0, 0, 0, 358 Sminibuffer_prompt_end, 0, 0, 0,
361 doc: /* Return the buffer position of the end of the minibuffer prompt. 359 doc: /* Return the buffer position of the end of the minibuffer prompt.
362Return (point-min) if current buffer is not a minibuffer. */) 360Return (point-min) if current buffer is not a minibuffer. */)
363 () 361 (void)
364{ 362{
365 /* This function is written to be most efficient when there's a prompt. */ 363 /* This function is written to be most efficient when there's a prompt. */
366 Lisp_Object beg, end, tem; 364 Lisp_Object beg, end, tem;
@@ -382,7 +380,7 @@ DEFUN ("minibuffer-contents", Fminibuffer_contents,
382 Sminibuffer_contents, 0, 0, 0, 380 Sminibuffer_contents, 0, 0, 0,
383 doc: /* Return the user input in a minibuffer as a string. 381 doc: /* Return the user input in a minibuffer as a string.
384If the current buffer is not a minibuffer, return its entire contents. */) 382If the current buffer is not a minibuffer, return its entire contents. */)
385 () 383 (void)
386{ 384{
387 int prompt_end = XINT (Fminibuffer_prompt_end ()); 385 int prompt_end = XINT (Fminibuffer_prompt_end ());
388 return make_buffer_string (prompt_end, ZV, 1); 386 return make_buffer_string (prompt_end, ZV, 1);
@@ -392,7 +390,7 @@ DEFUN ("minibuffer-contents-no-properties", Fminibuffer_contents_no_properties,
392 Sminibuffer_contents_no_properties, 0, 0, 0, 390 Sminibuffer_contents_no_properties, 0, 0, 0,
393 doc: /* Return the user input in a minibuffer as a string, without text-properties. 391 doc: /* Return the user input in a minibuffer as a string, without text-properties.
394If the current buffer is not a minibuffer, return its entire contents. */) 392If the current buffer is not a minibuffer, return its entire contents. */)
395 () 393 (void)
396{ 394{
397 int prompt_end = XINT (Fminibuffer_prompt_end ()); 395 int prompt_end = XINT (Fminibuffer_prompt_end ());
398 return make_buffer_string (prompt_end, ZV, 0); 396 return make_buffer_string (prompt_end, ZV, 0);
@@ -403,7 +401,7 @@ DEFUN ("minibuffer-completion-contents", Fminibuffer_completion_contents,
403 doc: /* Return the user input in a minibuffer before point as a string. 401 doc: /* Return the user input in a minibuffer before point as a string.
404That is what completion commands operate on. 402That is what completion commands operate on.
405If the current buffer is not a minibuffer, return its entire contents. */) 403If the current buffer is not a minibuffer, return its entire contents. */)
406 () 404 (void)
407{ 405{
408 int prompt_end = XINT (Fminibuffer_prompt_end ()); 406 int prompt_end = XINT (Fminibuffer_prompt_end ());
409 if (PT < prompt_end) 407 if (PT < prompt_end)
@@ -996,9 +994,7 @@ POSITION in the minibuffer. Any integer value less than or equal to
996one puts point at the beginning of the string. *Note* that this 994one puts point at the beginning of the string. *Note* that this
997behavior differs from the way such arguments are used in `completing-read' 995behavior differs from the way such arguments are used in `completing-read'
998and some related functions, which use zero-indexing for POSITION. */) 996and some related functions, which use zero-indexing for POSITION. */)
999 (prompt, initial_contents, keymap, read, hist, default_value, inherit_input_method) 997 (Lisp_Object prompt, Lisp_Object initial_contents, Lisp_Object keymap, Lisp_Object read, Lisp_Object hist, Lisp_Object default_value, Lisp_Object inherit_input_method)
1000 Lisp_Object prompt, initial_contents, keymap, read, hist, default_value;
1001 Lisp_Object inherit_input_method;
1002{ 998{
1003 Lisp_Object histvar, histpos, val; 999 Lisp_Object histvar, histpos, val;
1004 struct gcpro gcpro1; 1000 struct gcpro gcpro1;
@@ -1040,8 +1036,7 @@ Prompt with PROMPT. If non-nil, optional second arg INITIAL-CONTENTS
1040is a string to insert in the minibuffer before reading. 1036is a string to insert in the minibuffer before reading.
1041\(INITIAL-CONTENTS can also be a cons of a string and an integer. 1037\(INITIAL-CONTENTS can also be a cons of a string and an integer.
1042Such arguments are used as in `read-from-minibuffer'.) */) 1038Such arguments are used as in `read-from-minibuffer'.) */)
1043 (prompt, initial_contents) 1039 (Lisp_Object prompt, Lisp_Object initial_contents)
1044 Lisp_Object prompt, initial_contents;
1045{ 1040{
1046 CHECK_STRING (prompt); 1041 CHECK_STRING (prompt);
1047 return read_minibuf (Vminibuffer_local_map, initial_contents, 1042 return read_minibuf (Vminibuffer_local_map, initial_contents,
@@ -1055,8 +1050,7 @@ Prompt with PROMPT. If non-nil, optional second arg INITIAL-CONTENTS
1055is a string to insert in the minibuffer before reading. 1050is a string to insert in the minibuffer before reading.
1056\(INITIAL-CONTENTS can also be a cons of a string and an integer. 1051\(INITIAL-CONTENTS can also be a cons of a string and an integer.
1057Such arguments are used as in `read-from-minibuffer'.) */) 1052Such arguments are used as in `read-from-minibuffer'.) */)
1058 (prompt, initial_contents) 1053 (Lisp_Object prompt, Lisp_Object initial_contents)
1059 Lisp_Object prompt, initial_contents;
1060{ 1054{
1061 return Feval (read_minibuf (Vread_expression_map, initial_contents, 1055 return Feval (read_minibuf (Vread_expression_map, initial_contents,
1062 prompt, Qnil, 1, Qread_expression_history, 1056 prompt, Qnil, 1, Qread_expression_history,
@@ -1080,9 +1074,7 @@ Fourth arg DEFAULT-VALUE is the default value or the list of default values.
1080 empty string. 1074 empty string.
1081Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits 1075Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
1082 the current input method and the setting of `enable-multibyte-characters'. */) 1076 the current input method and the setting of `enable-multibyte-characters'. */)
1083 (prompt, initial_input, history, default_value, inherit_input_method) 1077 (Lisp_Object prompt, Lisp_Object initial_input, Lisp_Object history, Lisp_Object default_value, Lisp_Object inherit_input_method)
1084 Lisp_Object prompt, initial_input, history, default_value;
1085 Lisp_Object inherit_input_method;
1086{ 1078{
1087 Lisp_Object val; 1079 Lisp_Object val;
1088 val = Fread_from_minibuffer (prompt, initial_input, Qnil, 1080 val = Fread_from_minibuffer (prompt, initial_input, Qnil,
@@ -1103,8 +1095,7 @@ Such values are treated as in `read-from-minibuffer', but are normally
1103not useful in this function.) 1095not useful in this function.)
1104Third arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits 1096Third arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
1105the current input method and the setting of`enable-multibyte-characters'. */) 1097the current input method and the setting of`enable-multibyte-characters'. */)
1106 (prompt, initial, inherit_input_method) 1098 (Lisp_Object prompt, Lisp_Object initial, Lisp_Object inherit_input_method)
1107 Lisp_Object prompt, initial, inherit_input_method;
1108{ 1099{
1109 CHECK_STRING (prompt); 1100 CHECK_STRING (prompt);
1110 return read_minibuf (Vminibuffer_local_ns_map, initial, prompt, Qnil, 1101 return read_minibuf (Vminibuffer_local_ns_map, initial, prompt, Qnil,
@@ -1116,8 +1107,7 @@ DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0,
1116 doc: /* Read the name of a command and return as a symbol. 1107 doc: /* Read the name of a command and return as a symbol.
1117Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element 1108Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element
1118if it is a list. */) 1109if it is a list. */)
1119 (prompt, default_value) 1110 (Lisp_Object prompt, Lisp_Object default_value)
1120 Lisp_Object prompt, default_value;
1121{ 1111{
1122 Lisp_Object name, default_string; 1112 Lisp_Object name, default_string;
1123 1113
@@ -1139,8 +1129,7 @@ if it is a list. */)
1139DEFUN ("read-function", Fread_function, Sread_function, 1, 1, 0, 1129DEFUN ("read-function", Fread_function, Sread_function, 1, 1, 0,
1140 doc: /* One arg PROMPT, a string. Read the name of a function and return as a symbol. 1130 doc: /* One arg PROMPT, a string. Read the name of a function and return as a symbol.
1141Prompt with PROMPT. */) 1131Prompt with PROMPT. */)
1142 (prompt) 1132 (Lisp_Object prompt)
1143 Lisp_Object prompt;
1144{ 1133{
1145 return Fintern (Fcompleting_read (prompt, Vobarray, Qfboundp, Qt, Qnil, Qnil, Qnil, Qnil), 1134 return Fintern (Fcompleting_read (prompt, Vobarray, Qfboundp, Qt, Qnil, Qnil, Qnil, Qnil),
1146 Qnil); 1135 Qnil);
@@ -1152,8 +1141,7 @@ DEFUN ("read-variable", Fread_variable, Sread_variable, 1, 2, 0,
1152Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element 1141Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element
1153if it is a list. 1142if it is a list.
1154A user variable is one for which `user-variable-p' returns non-nil. */) 1143A user variable is one for which `user-variable-p' returns non-nil. */)
1155 (prompt, default_value) 1144 (Lisp_Object prompt, Lisp_Object default_value)
1156 Lisp_Object prompt, default_value;
1157{ 1145{
1158 Lisp_Object name, default_string; 1146 Lisp_Object name, default_string;
1159 1147
@@ -1185,8 +1173,7 @@ If `read-buffer-completion-ignore-case' is non-nil, completion ignores
1185case while reading the buffer name. 1173case while reading the buffer name.
1186If `read-buffer-function' is non-nil, this works by calling it as a 1174If `read-buffer-function' is non-nil, this works by calling it as a
1187function, instead of the usual behavior. */) 1175function, instead of the usual behavior. */)
1188 (prompt, def, require_match) 1176 (Lisp_Object prompt, Lisp_Object def, Lisp_Object require_match)
1189 Lisp_Object prompt, def, require_match;
1190{ 1177{
1191 Lisp_Object args[4], result; 1178 Lisp_Object args[4], result;
1192 unsigned char *s; 1179 unsigned char *s;
@@ -1286,8 +1273,7 @@ or the symbol from the obarray. If COLLECTION is a hash-table,
1286predicate is called with two arguments: the key and the value. 1273predicate is called with two arguments: the key and the value.
1287Additionally to this predicate, `completion-regexp-list' 1274Additionally to this predicate, `completion-regexp-list'
1288is used to further constrain the set of candidates. */) 1275is used to further constrain the set of candidates. */)
1289 (string, collection, predicate) 1276 (Lisp_Object string, Lisp_Object collection, Lisp_Object predicate)
1290 Lisp_Object string, collection, predicate;
1291{ 1277{
1292 Lisp_Object bestmatch, tail, elt, eltstring; 1278 Lisp_Object bestmatch, tail, elt, eltstring;
1293 /* Size in bytes of BESTMATCH. */ 1279 /* Size in bytes of BESTMATCH. */
@@ -1558,8 +1544,7 @@ is used to further constrain the set of candidates.
1558An obsolete optional fourth argument HIDE-SPACES is still accepted for 1544An obsolete optional fourth argument HIDE-SPACES is still accepted for
1559backward compatibility. If non-nil, strings in COLLECTION that start 1545backward compatibility. If non-nil, strings in COLLECTION that start
1560with a space are ignored unless STRING itself starts with a space. */) 1546with a space are ignored unless STRING itself starts with a space. */)
1561 (string, collection, predicate, hide_spaces) 1547 (Lisp_Object string, Lisp_Object collection, Lisp_Object predicate, Lisp_Object hide_spaces)
1562 Lisp_Object string, collection, predicate, hide_spaces;
1563{ 1548{
1564 Lisp_Object tail, elt, eltstring; 1549 Lisp_Object tail, elt, eltstring;
1565 Lisp_Object allmatches; 1550 Lisp_Object allmatches;
@@ -1768,9 +1753,7 @@ If INHERIT-INPUT-METHOD is non-nil, the minibuffer inherits
1768 1753
1769Completion ignores case if the ambient value of 1754Completion ignores case if the ambient value of
1770 `completion-ignore-case' is non-nil. */) 1755 `completion-ignore-case' is non-nil. */)
1771 (prompt, collection, predicate, require_match, initial_input, hist, def, inherit_input_method) 1756 (Lisp_Object prompt, Lisp_Object collection, Lisp_Object predicate, Lisp_Object require_match, Lisp_Object initial_input, Lisp_Object hist, Lisp_Object def, Lisp_Object inherit_input_method)
1772 Lisp_Object prompt, collection, predicate, require_match, initial_input;
1773 Lisp_Object hist, def, inherit_input_method;
1774{ 1757{
1775 Lisp_Object val, histvar, histpos, position; 1758 Lisp_Object val, histvar, histpos, position;
1776 Lisp_Object init; 1759 Lisp_Object init;
@@ -1845,8 +1828,7 @@ DEFUN ("test-completion", Ftest_completion, Stest_completion, 2, 3, 0,
1845Takes the same arguments as `all-completions' and `try-completion'. 1828Takes the same arguments as `all-completions' and `try-completion'.
1846If COLLECTION is a function, it is called with three arguments: 1829If COLLECTION is a function, it is called with three arguments:
1847the values STRING, PREDICATE and `lambda'. */) 1830the values STRING, PREDICATE and `lambda'. */)
1848 (string, collection, predicate) 1831 (Lisp_Object string, Lisp_Object collection, Lisp_Object predicate)
1849 Lisp_Object string, collection, predicate;
1850{ 1832{
1851 Lisp_Object regexps, tail, tem = Qnil; 1833 Lisp_Object regexps, tail, tem = Qnil;
1852 int i = 0; 1834 int i = 0;
@@ -1964,8 +1946,7 @@ If the argument FLAG is nil, invoke `try-completion', if it's t, invoke
1964 1946
1965The arguments STRING and PREDICATE are as in `try-completion', 1947The arguments STRING and PREDICATE are as in `try-completion',
1966`all-completions', and `test-completion'. */) 1948`all-completions', and `test-completion'. */)
1967 (string, predicate, flag) 1949 (Lisp_Object string, Lisp_Object predicate, Lisp_Object flag)
1968 Lisp_Object string, predicate, flag;
1969{ 1950{
1970 if (NILP (flag)) 1951 if (NILP (flag))
1971 return Ftry_completion (string, Vbuffer_alist, predicate); 1952 return Ftry_completion (string, Vbuffer_alist, predicate);
@@ -2009,9 +1990,7 @@ is ignored.
2009 1990
2010Unlike `assoc', KEY can also match an entry in LIST consisting of a 1991Unlike `assoc', KEY can also match an entry in LIST consisting of a
2011single string, rather than a cons cell whose car is a string. */) 1992single string, rather than a cons cell whose car is a string. */)
2012 (key, list, case_fold) 1993 (register Lisp_Object key, Lisp_Object list, Lisp_Object case_fold)
2013 register Lisp_Object key;
2014 Lisp_Object list, case_fold;
2015{ 1994{
2016 register Lisp_Object tail; 1995 register Lisp_Object tail;
2017 1996
@@ -2040,7 +2019,7 @@ single string, rather than a cons cell whose car is a string. */)
2040 2019
2041DEFUN ("minibuffer-depth", Fminibuffer_depth, Sminibuffer_depth, 0, 0, 0, 2020DEFUN ("minibuffer-depth", Fminibuffer_depth, Sminibuffer_depth, 0, 0, 0,
2042 doc: /* Return current depth of activations of minibuffer, a nonnegative integer. */) 2021 doc: /* Return current depth of activations of minibuffer, a nonnegative integer. */)
2043 () 2022 (void)
2044{ 2023{
2045 return make_number (minibuf_level); 2024 return make_number (minibuf_level);
2046} 2025}
@@ -2048,7 +2027,7 @@ DEFUN ("minibuffer-depth", Fminibuffer_depth, Sminibuffer_depth, 0, 0, 0,
2048DEFUN ("minibuffer-prompt", Fminibuffer_prompt, Sminibuffer_prompt, 0, 0, 0, 2027DEFUN ("minibuffer-prompt", Fminibuffer_prompt, Sminibuffer_prompt, 0, 0, 0,
2049 doc: /* Return the prompt string of the currently-active minibuffer. 2028 doc: /* Return the prompt string of the currently-active minibuffer.
2050If no minibuffer is active, return nil. */) 2029If no minibuffer is active, return nil. */)
2051 () 2030 (void)
2052{ 2031{
2053 return Fcopy_sequence (minibuf_prompt); 2032 return Fcopy_sequence (minibuf_prompt);
2054} 2033}
diff --git a/src/msdos.c b/src/msdos.c
index 897963bb24a..668243ef422 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -195,8 +195,7 @@ DEFUN ("msdos-set-mouse-buttons", Fmsdos_set_mouse_buttons, Smsdos_set_mouse_but
195This is useful with mice that report the number of buttons inconsistently, 195This is useful with mice that report the number of buttons inconsistently,
196e.g., if the number of buttons is reported as 3, but Emacs only sees 2 of 196e.g., if the number of buttons is reported as 3, but Emacs only sees 2 of
197them. This happens with wheeled mice on Windows 9X, for example. */) 197them. This happens with wheeled mice on Windows 9X, for example. */)
198 (nbuttons) 198 (Lisp_Object nbuttons)
199 Lisp_Object nbuttons;
200{ 199{
201 int n; 200 int n;
202 201
@@ -2045,8 +2044,7 @@ IT_set_terminal_window (struct frame *f, int foo)
2045DEFUN ("msdos-remember-default-colors", Fmsdos_remember_default_colors, 2044DEFUN ("msdos-remember-default-colors", Fmsdos_remember_default_colors,
2046 Smsdos_remember_default_colors, 1, 1, 0, 2045 Smsdos_remember_default_colors, 1, 1, 0,
2047 doc: /* Remember the screen colors of the current frame. */) 2046 doc: /* Remember the screen colors of the current frame. */)
2048 (frame) 2047 (Lisp_Object frame)
2049 Lisp_Object frame;
2050{ 2048{
2051 struct frame *f; 2049 struct frame *f;
2052 2050
@@ -2920,7 +2918,7 @@ DEFUN ("recent-doskeys", Frecent_doskeys, Srecent_doskeys, 0, 0, 0,
2920 doc: /* Return vector of last 100 keyboard input values seen in dos_rawgetc. 2918 doc: /* Return vector of last 100 keyboard input values seen in dos_rawgetc.
2921Each input key receives two values in this vector: first the ASCII code, 2919Each input key receives two values in this vector: first the ASCII code,
2922and then the scan code. */) 2920and then the scan code. */)
2923 () 2921 (void)
2924{ 2922{
2925 Lisp_Object val, *keys = XVECTOR (recent_doskeys)->contents; 2923 Lisp_Object val, *keys = XVECTOR (recent_doskeys)->contents;
2926 2924
@@ -3954,7 +3952,7 @@ crlf_to_lf (int n, unsigned char *buf)
3954DEFUN ("msdos-long-file-names", Fmsdos_long_file_names, Smsdos_long_file_names, 3952DEFUN ("msdos-long-file-names", Fmsdos_long_file_names, Smsdos_long_file_names,
3955 0, 0, 0, 3953 0, 0, 0,
3956 doc: /* Return non-nil if long file names are supported on MS-DOS. */) 3954 doc: /* Return non-nil if long file names are supported on MS-DOS. */)
3957 () 3955 (void)
3958{ 3956{
3959 return (_USE_LFN ? Qt : Qnil); 3957 return (_USE_LFN ? Qt : Qnil);
3960} 3958}
@@ -3988,8 +3986,7 @@ DEFUN ("msdos-downcase-filename", Fmsdos_downcase_filename, Smsdos_downcase_file
3988When long filenames are supported, doesn't change FILENAME. 3986When long filenames are supported, doesn't change FILENAME.
3989If FILENAME is not a string, returns nil. 3987If FILENAME is not a string, returns nil.
3990The argument object is never altered--the value is a copy. */) 3988The argument object is never altered--the value is a copy. */)
3991 (filename) 3989 (Lisp_Object filename)
3992 Lisp_Object filename;
3993{ 3990{
3994 Lisp_Object tem; 3991 Lisp_Object tem;
3995 3992
diff --git a/src/nsfns.m b/src/nsfns.m
index 7180abd6113..fd0ec1a965c 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -1063,8 +1063,7 @@ If the parameters specify that the frame should not have a minibuffer,
1063and do not specify a specific minibuffer window to use, 1063and do not specify a specific minibuffer window to use,
1064then `default-minibuffer-frame' must be a frame whose minibuffer can 1064then `default-minibuffer-frame' must be a frame whose minibuffer can
1065be shared by the new frame. */) 1065be shared by the new frame. */)
1066 (parms) 1066 (Lisp_Object parms)
1067 Lisp_Object parms;
1068{ 1067{
1069 static int desc_ctr = 1; 1068 static int desc_ctr = 1;
1070 struct frame *f; 1069 struct frame *f;
@@ -1373,8 +1372,7 @@ be shared by the new frame. */)
1373DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0, 1372DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0,
1374 doc: /* Set the input focus to FRAME. 1373 doc: /* Set the input focus to FRAME.
1375FRAME nil means use the selected frame. */) 1374FRAME nil means use the selected frame. */)
1376 (frame) 1375 (Lisp_Object frame)
1377 Lisp_Object frame;
1378{ 1376{
1379 struct frame *f = check_ns_frame (frame); 1377 struct frame *f = check_ns_frame (frame);
1380 struct ns_display_info *dpyinfo = FRAME_NS_DISPLAY_INFO (f); 1378 struct ns_display_info *dpyinfo = FRAME_NS_DISPLAY_INFO (f);
@@ -1395,8 +1393,7 @@ FRAME nil means use the selected frame. */)
1395DEFUN ("ns-popup-font-panel", Fns_popup_font_panel, Sns_popup_font_panel, 1393DEFUN ("ns-popup-font-panel", Fns_popup_font_panel, Sns_popup_font_panel,
1396 0, 1, "", 1394 0, 1, "",
1397 doc: /* Pop up the font panel. */) 1395 doc: /* Pop up the font panel. */)
1398 (frame) 1396 (Lisp_Object frame)
1399 Lisp_Object frame;
1400{ 1397{
1401 id fm; 1398 id fm;
1402 struct frame *f; 1399 struct frame *f;
@@ -1421,8 +1418,7 @@ DEFUN ("ns-popup-font-panel", Fns_popup_font_panel, Sns_popup_font_panel,
1421DEFUN ("ns-popup-color-panel", Fns_popup_color_panel, Sns_popup_color_panel, 1418DEFUN ("ns-popup-color-panel", Fns_popup_color_panel, Sns_popup_color_panel,
1422 0, 1, "", 1419 0, 1, "",
1423 doc: /* Pop up the color panel. */) 1420 doc: /* Pop up the color panel. */)
1424 (frame) 1421 (Lisp_Object frame)
1425 Lisp_Object frame;
1426{ 1422{
1427 struct frame *f; 1423 struct frame *f;
1428 1424
@@ -1445,8 +1441,7 @@ DEFUN ("ns-read-file-name", Fns_read_file_name, Sns_read_file_name, 1, 4, 0,
1445Optional arg DIR, if non-nil, supplies a default directory. 1441Optional arg DIR, if non-nil, supplies a default directory.
1446Optional arg ISLOAD, if non-nil, means read a file name for saving. 1442Optional arg ISLOAD, if non-nil, means read a file name for saving.
1447Optional arg INIT, if non-nil, provides a default file name to use. */) 1443Optional arg INIT, if non-nil, provides a default file name to use. */)
1448 (prompt, dir, isLoad, init) 1444 (Lisp_Object prompt, Lisp_Object dir, Lisp_Object isLoad, Lisp_Object init)
1449 Lisp_Object prompt, dir, isLoad, init;
1450{ 1445{
1451 static id fileDelegate = nil; 1446 static id fileDelegate = nil;
1452 int ret; 1447 int ret;
@@ -1510,8 +1505,7 @@ Optional arg INIT, if non-nil, provides a default file name to use. */)
1510DEFUN ("ns-get-resource", Fns_get_resource, Sns_get_resource, 2, 2, 0, 1505DEFUN ("ns-get-resource", Fns_get_resource, Sns_get_resource, 2, 2, 0,
1511 doc: /* Return the value of the property NAME of OWNER from the defaults database. 1506 doc: /* Return the value of the property NAME of OWNER from the defaults database.
1512If OWNER is nil, Emacs is assumed. */) 1507If OWNER is nil, Emacs is assumed. */)
1513 (owner, name) 1508 (Lisp_Object owner, Lisp_Object name)
1514 Lisp_Object owner, name;
1515{ 1509{
1516 const char *value; 1510 const char *value;
1517 1511
@@ -1535,8 +1529,7 @@ DEFUN ("ns-set-resource", Fns_set_resource, Sns_set_resource, 3, 3, 0,
1535 doc: /* Set property NAME of OWNER to VALUE, from the defaults database. 1529 doc: /* Set property NAME of OWNER to VALUE, from the defaults database.
1536If OWNER is nil, Emacs is assumed. 1530If OWNER is nil, Emacs is assumed.
1537If VALUE is nil, the default is removed. */) 1531If VALUE is nil, the default is removed. */)
1538 (owner, name, value) 1532 (Lisp_Object owner, Lisp_Object name, Lisp_Object value)
1539 Lisp_Object owner, name, value;
1540{ 1533{
1541 check_ns (); 1534 check_ns ();
1542 if (NILP (owner)) 1535 if (NILP (owner))
@@ -1564,8 +1557,7 @@ DEFUN ("x-server-max-request-size", Fx_server_max_request_size,
1564 Sx_server_max_request_size, 1557 Sx_server_max_request_size,
1565 0, 1, 0, 1558 0, 1, 0,
1566 doc: /* This function is a no-op. It is only present for completeness. */) 1559 doc: /* This function is a no-op. It is only present for completeness. */)
1567 (display) 1560 (Lisp_Object display)
1568 Lisp_Object display;
1569{ 1561{
1570 check_ns (); 1562 check_ns ();
1571 /* This function has no real equivalent under NeXTstep. Return nil to 1563 /* This function has no real equivalent under NeXTstep. Return nil to
@@ -1578,8 +1570,7 @@ DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0,
1578 doc: /* Return the vendor ID string of Nextstep display server DISPLAY. 1570 doc: /* Return the vendor ID string of Nextstep display server DISPLAY.
1579DISPLAY should be either a frame or a display name (a string). 1571DISPLAY should be either a frame or a display name (a string).
1580If omitted or nil, the selected frame's display is used. */) 1572If omitted or nil, the selected frame's display is used. */)
1581 (display) 1573 (Lisp_Object display)
1582 Lisp_Object display;
1583{ 1574{
1584#ifdef NS_IMPL_GNUSTEP 1575#ifdef NS_IMPL_GNUSTEP
1585 return build_string ("GNU"); 1576 return build_string ("GNU");
@@ -1598,8 +1589,7 @@ release number. See also the function `x-server-vendor'.
1598The optional argument DISPLAY specifies which display to ask about. 1589The optional argument DISPLAY specifies which display to ask about.
1599DISPLAY should be either a frame or a display name (a string). 1590DISPLAY should be either a frame or a display name (a string).
1600If omitted or nil, that stands for the selected frame's display. */) 1591If omitted or nil, that stands for the selected frame's display. */)
1601 (display) 1592 (Lisp_Object display)
1602 Lisp_Object display;
1603{ 1593{
1604 /*NOTE: it is unclear what would best correspond with "protocol"; 1594 /*NOTE: it is unclear what would best correspond with "protocol";
1605 we return 10.3, meaning Panther, since this is roughly the 1595 we return 10.3, meaning Panther, since this is roughly the
@@ -1617,8 +1607,7 @@ DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0,
1617 doc: /* Return the number of screens on Nextstep display server DISPLAY. 1607 doc: /* Return the number of screens on Nextstep display server DISPLAY.
1618DISPLAY should be a frame, the display name as a string, or a terminal ID. 1608DISPLAY should be a frame, the display name as a string, or a terminal ID.
1619If omitted or nil, the selected frame's display is used. */) 1609If omitted or nil, the selected frame's display is used. */)
1620 (display) 1610 (Lisp_Object display)
1621 Lisp_Object display;
1622{ 1611{
1623 int num; 1612 int num;
1624 1613
@@ -1634,8 +1623,7 @@ DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height,
1634 doc: /* Return the height of Nextstep display server DISPLAY, in millimeters. 1623 doc: /* Return the height of Nextstep display server DISPLAY, in millimeters.
1635DISPLAY should be a frame, the display name as a string, or a terminal ID. 1624DISPLAY should be a frame, the display name as a string, or a terminal ID.
1636If omitted or nil, the selected frame's display is used. */) 1625If omitted or nil, the selected frame's display is used. */)
1637 (display) 1626 (Lisp_Object display)
1638 Lisp_Object display;
1639{ 1627{
1640 check_ns (); 1628 check_ns ();
1641 return make_number ((int) 1629 return make_number ((int)
@@ -1648,8 +1636,7 @@ DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width,
1648 doc: /* Return the width of Nextstep display server DISPLAY, in millimeters. 1636 doc: /* Return the width of Nextstep display server DISPLAY, in millimeters.
1649DISPLAY should be a frame, the display name as a string, or a terminal ID. 1637DISPLAY should be a frame, the display name as a string, or a terminal ID.
1650If omitted or nil, the selected frame's display is used. */) 1638If omitted or nil, the selected frame's display is used. */)
1651 (display) 1639 (Lisp_Object display)
1652 Lisp_Object display;
1653{ 1640{
1654 check_ns (); 1641 check_ns ();
1655 return make_number ((int) 1642 return make_number ((int)
@@ -1663,8 +1650,7 @@ DEFUN ("x-display-backing-store", Fx_display_backing_store,
1663The value may be `buffered', `retained', or `non-retained'. 1650The value may be `buffered', `retained', or `non-retained'.
1664DISPLAY should be a frame, the display name as a string, or a terminal ID. 1651DISPLAY should be a frame, the display name as a string, or a terminal ID.
1665If omitted or nil, the selected frame's display is used. */) 1652If omitted or nil, the selected frame's display is used. */)
1666 (display) 1653 (Lisp_Object display)
1667 Lisp_Object display;
1668{ 1654{
1669 check_ns (); 1655 check_ns ();
1670 switch ([ns_get_window (display) backingType]) 1656 switch ([ns_get_window (display) backingType])
@@ -1689,8 +1675,7 @@ The value is one of the symbols `static-gray', `gray-scale',
1689`static-color', `pseudo-color', `true-color', or `direct-color'. 1675`static-color', `pseudo-color', `true-color', or `direct-color'.
1690DISPLAY should be a frame, the display name as a string, or a terminal ID. 1676DISPLAY should be a frame, the display name as a string, or a terminal ID.
1691If omitted or nil, the selected frame's display is used. */) 1677If omitted or nil, the selected frame's display is used. */)
1692 (display) 1678 (Lisp_Object display)
1693 Lisp_Object display;
1694{ 1679{
1695 NSWindowDepth depth; 1680 NSWindowDepth depth;
1696 check_ns (); 1681 check_ns ();
@@ -1718,8 +1703,7 @@ DEFUN ("x-display-save-under", Fx_display_save_under,
1718The optional argument DISPLAY specifies which display to ask about. 1703The optional argument DISPLAY specifies which display to ask about.
1719DISPLAY should be a frame, the display name as a string, or a terminal ID. 1704DISPLAY should be a frame, the display name as a string, or a terminal ID.
1720If omitted or nil, the selected frame's display is used. */) 1705If omitted or nil, the selected frame's display is used. */)
1721 (display) 1706 (Lisp_Object display)
1722 Lisp_Object display;
1723{ 1707{
1724 check_ns (); 1708 check_ns ();
1725 switch ([ns_get_window (display) backingType]) 1709 switch ([ns_get_window (display) backingType])
@@ -1743,8 +1727,7 @@ DEFUN ("x-open-connection", Fx_open_connection, Sx_open_connection,
1743 doc: /* Open a connection to a Nextstep display server. 1727 doc: /* Open a connection to a Nextstep display server.
1744DISPLAY is the name of the display to connect to. 1728DISPLAY is the name of the display to connect to.
1745Optional arguments XRM-STRING and MUST-SUCCEED are currently ignored. */) 1729Optional arguments XRM-STRING and MUST-SUCCEED are currently ignored. */)
1746 (display, resource_string, must_succeed) 1730 (Lisp_Object display, Lisp_Object resource_string, Lisp_Object must_succeed)
1747 Lisp_Object display, resource_string, must_succeed;
1748{ 1731{
1749 struct ns_display_info *dpyinfo; 1732 struct ns_display_info *dpyinfo;
1750 1733
@@ -1782,8 +1765,7 @@ DEFUN ("x-close-connection", Fx_close_connection, Sx_close_connection,
1782 1, 1, 0, 1765 1, 1, 0,
1783 doc: /* Close the connection to the current Nextstep display server. 1766 doc: /* Close the connection to the current Nextstep display server.
1784The argument DISPLAY is currently ignored. */) 1767The argument DISPLAY is currently ignored. */)
1785 (display) 1768 (Lisp_Object display)
1786 Lisp_Object display;
1787{ 1769{
1788 check_ns (); 1770 check_ns ();
1789 /*ns_delete_terminal (dpyinfo->terminal); */ 1771 /*ns_delete_terminal (dpyinfo->terminal); */
@@ -1794,7 +1776,7 @@ The argument DISPLAY is currently ignored. */)
1794 1776
1795DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0, 1777DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
1796 doc: /* Return the list of display names that Emacs has connections to. */) 1778 doc: /* Return the list of display names that Emacs has connections to. */)
1797 () 1779 (void)
1798{ 1780{
1799 Lisp_Object tail, result; 1781 Lisp_Object tail, result;
1800 1782
@@ -1809,7 +1791,7 @@ DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
1809DEFUN ("ns-hide-others", Fns_hide_others, Sns_hide_others, 1791DEFUN ("ns-hide-others", Fns_hide_others, Sns_hide_others,
1810 0, 0, 0, 1792 0, 0, 0,
1811 doc: /* Hides all applications other than Emacs. */) 1793 doc: /* Hides all applications other than Emacs. */)
1812 () 1794 (void)
1813{ 1795{
1814 check_ns (); 1796 check_ns ();
1815 [NSApp hideOtherApplications: NSApp]; 1797 [NSApp hideOtherApplications: NSApp];
@@ -1822,8 +1804,7 @@ DEFUN ("ns-hide-emacs", Fns_hide_emacs, Sns_hide_emacs,
1822Otherwise if Emacs is hidden, it is unhidden. 1804Otherwise if Emacs is hidden, it is unhidden.
1823If ON is equal to `activate', Emacs is unhidden and becomes 1805If ON is equal to `activate', Emacs is unhidden and becomes
1824the active application. */) 1806the active application. */)
1825 (on) 1807 (Lisp_Object on)
1826 Lisp_Object on;
1827{ 1808{
1828 check_ns (); 1809 check_ns ();
1829 if (EQ (on, intern ("activate"))) 1810 if (EQ (on, intern ("activate")))
@@ -1842,7 +1823,7 @@ the active application. */)
1842DEFUN ("ns-emacs-info-panel", Fns_emacs_info_panel, Sns_emacs_info_panel, 1823DEFUN ("ns-emacs-info-panel", Fns_emacs_info_panel, Sns_emacs_info_panel,
1843 0, 0, 0, 1824 0, 0, 0,
1844 doc: /* Shows the 'Info' or 'About' panel for Emacs. */) 1825 doc: /* Shows the 'Info' or 'About' panel for Emacs. */)
1845 () 1826 (void)
1846{ 1827{
1847 check_ns (); 1828 check_ns ();
1848 [NSApp orderFrontStandardAboutPanel: nil]; 1829 [NSApp orderFrontStandardAboutPanel: nil];
@@ -1855,8 +1836,7 @@ DEFUN ("ns-font-name", Fns_font_name, Sns_font_name, 1, 1, 0,
1855NAME should be a string containing either the font name or an XLFD 1836NAME should be a string containing either the font name or an XLFD
1856font descriptor. If string contains `fontset' and not 1837font descriptor. If string contains `fontset' and not
1857`fontset-startup', it is left alone. */) 1838`fontset-startup', it is left alone. */)
1858 (name) 1839 (Lisp_Object name)
1859 Lisp_Object name;
1860{ 1840{
1861 char *nm; 1841 char *nm;
1862 CHECK_STRING (name); 1842 CHECK_STRING (name);
@@ -1874,8 +1854,7 @@ font descriptor. If string contains `fontset' and not
1874DEFUN ("ns-list-colors", Fns_list_colors, Sns_list_colors, 0, 1, 0, 1854DEFUN ("ns-list-colors", Fns_list_colors, Sns_list_colors, 0, 1, 0,
1875 doc: /* Return a list of all available colors. 1855 doc: /* Return a list of all available colors.
1876The optional argument FRAME is currently ignored. */) 1856The optional argument FRAME is currently ignored. */)
1877 (frame) 1857 (Lisp_Object frame)
1878 Lisp_Object frame;
1879{ 1858{
1880 Lisp_Object list = Qnil; 1859 Lisp_Object list = Qnil;
1881 NSEnumerator *colorlists; 1860 NSEnumerator *colorlists;
@@ -1914,7 +1893,7 @@ The optional argument FRAME is currently ignored. */)
1914 1893
1915DEFUN ("ns-list-services", Fns_list_services, Sns_list_services, 0, 0, 0, 1894DEFUN ("ns-list-services", Fns_list_services, Sns_list_services, 0, 0, 0,
1916 doc: /* List available Nextstep services by querying NSApp. */) 1895 doc: /* List available Nextstep services by querying NSApp. */)
1917 () 1896 (void)
1918{ 1897{
1919 Lisp_Object ret = Qnil; 1898 Lisp_Object ret = Qnil;
1920 NSMenu *svcs; 1899 NSMenu *svcs;
@@ -1968,8 +1947,7 @@ DEFUN ("ns-perform-service", Fns_perform_service, Sns_perform_service,
1968SEND should be either a string or nil. 1947SEND should be either a string or nil.
1969The return value is the result of the service, as string, or nil if 1948The return value is the result of the service, as string, or nil if
1970there was no result. */) 1949there was no result. */)
1971 (service, send) 1950 (Lisp_Object service, Lisp_Object send)
1972 Lisp_Object service, send;
1973{ 1951{
1974 id pb; 1952 id pb;
1975 NSString *svcName; 1953 NSString *svcName;
@@ -1997,8 +1975,7 @@ there was no result. */)
1997DEFUN ("ns-convert-utf8-nfd-to-nfc", Fns_convert_utf8_nfd_to_nfc, 1975DEFUN ("ns-convert-utf8-nfd-to-nfc", Fns_convert_utf8_nfd_to_nfc,
1998 Sns_convert_utf8_nfd_to_nfc, 1, 1, 0, 1976 Sns_convert_utf8_nfd_to_nfc, 1, 1, 0,
1999 doc: /* Return an NFC string that matches the UTF-8 NFD string STR. */) 1977 doc: /* Return an NFC string that matches the UTF-8 NFD string STR. */)
2000 (str) 1978 (Lisp_Object str)
2001 Lisp_Object str;
2002{ 1979{
2003/* TODO: If GNUstep ever implements precomposedStringWithCanonicalMapping, 1980/* TODO: If GNUstep ever implements precomposedStringWithCanonicalMapping,
2004 remove this. */ 1981 remove this. */
@@ -2085,8 +2062,7 @@ DEFUN ("ns-do-applescript", Fns_do_applescript, Sns_do_applescript, 1, 1, 0,
2085If compilation and execution are successful, the resulting script value 2062If compilation and execution are successful, the resulting script value
2086is returned as a string, a number or, in the case of other constructs, t. 2063is returned as a string, a number or, in the case of other constructs, t.
2087In case the execution fails, an error is signaled. */) 2064In case the execution fails, an error is signaled. */)
2088 (script) 2065 (Lisp_Object script)
2089 Lisp_Object script;
2090{ 2066{
2091 Lisp_Object result; 2067 Lisp_Object result;
2092 long status; 2068 long status;
@@ -2231,8 +2207,7 @@ x_sync (Lisp_Object frame)
2231DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, 2207DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
2232 doc: /* Return t if the current Nextstep display supports the color COLOR. 2208 doc: /* Return t if the current Nextstep display supports the color COLOR.
2233The optional argument FRAME is currently ignored. */) 2209The optional argument FRAME is currently ignored. */)
2234 (color, frame) 2210 (Lisp_Object color, Lisp_Object frame)
2235 Lisp_Object color, frame;
2236{ 2211{
2237 NSColor * col; 2212 NSColor * col;
2238 check_ns (); 2213 check_ns ();
@@ -2242,8 +2217,7 @@ The optional argument FRAME is currently ignored. */)
2242 2217
2243DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, 2218DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
2244 doc: /* Internal function called by `color-values', which see. */) 2219 doc: /* Internal function called by `color-values', which see. */)
2245 (color, frame) 2220 (Lisp_Object color, Lisp_Object frame)
2246 Lisp_Object color, frame;
2247{ 2221{
2248 NSColor * col; 2222 NSColor * col;
2249 CGFloat red, green, blue, alpha; 2223 CGFloat red, green, blue, alpha;
@@ -2267,8 +2241,7 @@ DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0,
2267The optional argument DISPLAY specifies which display to ask about. 2241The optional argument DISPLAY specifies which display to ask about.
2268DISPLAY should be either a frame, a display name (a string), or terminal ID. 2242DISPLAY should be either a frame, a display name (a string), or terminal ID.
2269If omitted or nil, that stands for the selected frame's display. */) 2243If omitted or nil, that stands for the selected frame's display. */)
2270 (display) 2244 (Lisp_Object display)
2271 Lisp_Object display;
2272{ 2245{
2273 NSWindowDepth depth; 2246 NSWindowDepth depth;
2274 NSString *colorSpace; 2247 NSString *colorSpace;
@@ -2289,8 +2262,7 @@ Note that color displays do support shades of gray.
2289The optional argument DISPLAY specifies which display to ask about. 2262The optional argument DISPLAY specifies which display to ask about.
2290DISPLAY should be either a frame, a display name (a string), or terminal ID. 2263DISPLAY should be either a frame, a display name (a string), or terminal ID.
2291If omitted or nil, that stands for the selected frame's display. */) 2264If omitted or nil, that stands for the selected frame's display. */)
2292 (display) 2265 (Lisp_Object display)
2293 Lisp_Object display;
2294{ 2266{
2295 NSWindowDepth depth; 2267 NSWindowDepth depth;
2296 check_ns (); 2268 check_ns ();
@@ -2306,8 +2278,7 @@ DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width,
2306The optional argument DISPLAY specifies which display to ask about. 2278The optional argument DISPLAY specifies which display to ask about.
2307DISPLAY should be either a frame, a display name (a string), or terminal ID. 2279DISPLAY should be either a frame, a display name (a string), or terminal ID.
2308If omitted or nil, that stands for the selected frame's display. */) 2280If omitted or nil, that stands for the selected frame's display. */)
2309 (display) 2281 (Lisp_Object display)
2310 Lisp_Object display;
2311{ 2282{
2312 check_ns (); 2283 check_ns ();
2313 return make_number ((int) [ns_get_screen (display) frame].size.width); 2284 return make_number ((int) [ns_get_screen (display) frame].size.width);
@@ -2320,8 +2291,7 @@ DEFUN ("x-display-pixel-height", Fx_display_pixel_height,
2320The optional argument DISPLAY specifies which display to ask about. 2291The optional argument DISPLAY specifies which display to ask about.
2321DISPLAY should be either a frame, a display name (a string), or terminal ID. 2292DISPLAY should be either a frame, a display name (a string), or terminal ID.
2322If omitted or nil, that stands for the selected frame's display. */) 2293If omitted or nil, that stands for the selected frame's display. */)
2323 (display) 2294 (Lisp_Object display)
2324 Lisp_Object display;
2325{ 2295{
2326 check_ns (); 2296 check_ns ();
2327 return make_number ((int) [ns_get_screen (display) frame].size.height); 2297 return make_number ((int) [ns_get_screen (display) frame].size.height);
@@ -2338,8 +2308,7 @@ reserved for the Mac menu, dock, and so forth.
2338The screen queried corresponds to DISPLAY, which should be either a 2308The screen queried corresponds to DISPLAY, which should be either a
2339frame, a display name (a string), or terminal ID. If omitted or nil, 2309frame, a display name (a string), or terminal ID. If omitted or nil,
2340that stands for the selected frame's display. */) 2310that stands for the selected frame's display. */)
2341 (display) 2311 (Lisp_Object display)
2342 Lisp_Object display;
2343{ 2312{
2344 int top; 2313 int top;
2345 NSScreen *screen; 2314 NSScreen *screen;
@@ -2368,8 +2337,7 @@ DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes,
2368The optional argument DISPLAY specifies which display to ask about. 2337The optional argument DISPLAY specifies which display to ask about.
2369DISPLAY should be either a frame, a display name (a string), or terminal ID. 2338DISPLAY should be either a frame, a display name (a string), or terminal ID.
2370If omitted or nil, that stands for the selected frame's display. */) 2339If omitted or nil, that stands for the selected frame's display. */)
2371 (display) 2340 (Lisp_Object display)
2372 Lisp_Object display;
2373{ 2341{
2374 check_ns (); 2342 check_ns ();
2375 return make_number 2343 return make_number
@@ -2383,8 +2351,7 @@ DEFUN ("x-display-color-cells", Fx_display_color_cells,
2383The optional argument DISPLAY specifies which display to ask about. 2351The optional argument DISPLAY specifies which display to ask about.
2384DISPLAY should be either a frame, a display name (a string), or terminal ID. 2352DISPLAY should be either a frame, a display name (a string), or terminal ID.
2385If omitted or nil, that stands for the selected frame's display. */) 2353If omitted or nil, that stands for the selected frame's display. */)
2386 (display) 2354 (Lisp_Object display)
2387 Lisp_Object display;
2388{ 2355{
2389 struct ns_display_info *dpyinfo; 2356 struct ns_display_info *dpyinfo;
2390 check_ns (); 2357 check_ns ();
@@ -2482,8 +2449,7 @@ DY added (default is -10).
2482 2449
2483A tooltip's maximum size is specified by `x-max-tooltip-size'. 2450A tooltip's maximum size is specified by `x-max-tooltip-size'.
2484Text larger than the specified size is clipped. */) 2451Text larger than the specified size is clipped. */)
2485 (string, frame, parms, timeout, dx, dy) 2452 (Lisp_Object string, Lisp_Object frame, Lisp_Object parms, Lisp_Object timeout, Lisp_Object dx, Lisp_Object dy)
2486 Lisp_Object string, frame, parms, timeout, dx, dy;
2487{ 2453{
2488 int root_x, root_y; 2454 int root_x, root_y;
2489 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; 2455 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
@@ -2539,7 +2505,7 @@ Text larger than the specified size is clipped. */)
2539DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0, 2505DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0,
2540 doc: /* Hide the current tooltip window, if there is any. 2506 doc: /* Hide the current tooltip window, if there is any.
2541Value is t if tooltip was open, nil otherwise. */) 2507Value is t if tooltip was open, nil otherwise. */)
2542 () 2508 (void)
2543{ 2509{
2544 if (ns_tooltip == nil || ![ns_tooltip isActive]) 2510 if (ns_tooltip == nil || ![ns_tooltip isActive])
2545 return Qnil; 2511 return Qnil;
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 5c9ce2a6d27..e5b9379258f 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -1752,7 +1752,7 @@ void process_dialog (id window, Lisp_Object list)
1752 1752
1753DEFUN ("ns-reset-menu", Fns_reset_menu, Sns_reset_menu, 0, 0, 0, 1753DEFUN ("ns-reset-menu", Fns_reset_menu, Sns_reset_menu, 0, 0, 0,
1754 doc: /* Cause the NS menu to be re-calculated. */) 1754 doc: /* Cause the NS menu to be re-calculated. */)
1755 () 1755 (void)
1756{ 1756{
1757 set_frame_menubar (SELECTED_FRAME (), 1, 0); 1757 set_frame_menubar (SELECTED_FRAME (), 1, 0);
1758 return Qnil; 1758 return Qnil;
@@ -1782,15 +1782,14 @@ otherwise it is "Question".
1782If the user gets rid of the dialog box without making a valid choice, 1782If the user gets rid of the dialog box without making a valid choice,
1783for instance using the window manager, then this produces a quit and 1783for instance using the window manager, then this produces a quit and
1784`x-popup-dialog' does not return. */) 1784`x-popup-dialog' does not return. */)
1785 (position, contents, header) 1785 (Lisp_Object position, Lisp_Object contents, Lisp_Object header)
1786 Lisp_Object position, contents, header;
1787{ 1786{
1788 return ns_popup_dialog (position, contents, header); 1787 return ns_popup_dialog (position, contents, header);
1789} 1788}
1790 1789
1791DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0, 1790DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0,
1792 doc: /* Return t if a menu or popup dialog is active. */) 1791 doc: /* Return t if a menu or popup dialog is active. */)
1793 () 1792 (void)
1794{ 1793{
1795 return popup_activated () ? Qt : Qnil; 1794 return popup_activated () ? Qt : Qnil;
1796} 1795}
diff --git a/src/nsselect.m b/src/nsselect.m
index b034eacf77c..23dede9c38e 100644
--- a/src/nsselect.m
+++ b/src/nsselect.m
@@ -378,8 +378,7 @@ DEFUN ("x-own-selection-internal", Fx_own_selection_internal,
378SELECTION-NAME is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. 378SELECTION-NAME is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
379VALUE is typically a string, or a cons of two markers, but may be 379VALUE is typically a string, or a cons of two markers, but may be
380anything that the functions on `selection-converter-alist' know about. */) 380anything that the functions on `selection-converter-alist' know about. */)
381 (selection_name, selection_value) 381 (Lisp_Object selection_name, Lisp_Object selection_value)
382 Lisp_Object selection_name, selection_value;
383{ 382{
384 id pb; 383 id pb;
385 Lisp_Object old_value, new_value; 384 Lisp_Object old_value, new_value;
@@ -413,8 +412,7 @@ anything that the functions on `selection-converter-alist' know about. */)
413DEFUN ("x-disown-selection-internal", Fx_disown_selection_internal, 412DEFUN ("x-disown-selection-internal", Fx_disown_selection_internal,
414 Sx_disown_selection_internal, 1, 2, 0, 413 Sx_disown_selection_internal, 1, 2, 0,
415 doc: /* If we own the selection SELECTION, disown it. */) 414 doc: /* If we own the selection SELECTION, disown it. */)
416 (selection_name, time) 415 (Lisp_Object selection_name, Lisp_Object time)
417 Lisp_Object selection_name, time;
418{ 416{
419 id pb; 417 id pb;
420 check_ns (); 418 check_ns ();
@@ -434,8 +432,7 @@ the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
434\(Those are literal upper-case symbol names.) 432\(Those are literal upper-case symbol names.)
435For convenience, the symbol nil is the same as `PRIMARY', 433For convenience, the symbol nil is the same as `PRIMARY',
436and t is the same as `SECONDARY'.) */) 434and t is the same as `SECONDARY'.) */)
437 (selection) 435 (Lisp_Object selection)
438 Lisp_Object selection;
439{ 436{
440 id pb; 437 id pb;
441 NSArray *types; 438 NSArray *types;
@@ -458,8 +455,7 @@ the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
458\(Those are literal upper-case symbol names.) 455\(Those are literal upper-case symbol names.)
459For convenience, the symbol nil is the same as `PRIMARY', 456For convenience, the symbol nil is the same as `PRIMARY',
460and t is the same as `SECONDARY'.) */) 457and t is the same as `SECONDARY'.) */)
461 (selection) 458 (Lisp_Object selection)
462 Lisp_Object selection;
463{ 459{
464 check_ns (); 460 check_ns ();
465 CHECK_SYMBOL (selection); 461 CHECK_SYMBOL (selection);
@@ -475,8 +471,7 @@ DEFUN ("x-get-selection-internal", Fx_get_selection_internal,
475SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. 471SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
476\(Those are literal upper-case symbol names.) 472\(Those are literal upper-case symbol names.)
477TYPE is the type of data desired, typically `STRING'. */) 473TYPE is the type of data desired, typically `STRING'. */)
478 (selection_name, target_type) 474 (Lisp_Object selection_name, Lisp_Object target_type)
479 Lisp_Object selection_name, target_type;
480{ 475{
481 Lisp_Object val; 476 Lisp_Object val;
482 477
@@ -501,8 +496,7 @@ TYPE is the type of data desired, typically `STRING'. */)
501DEFUN ("ns-get-cut-buffer-internal", Fns_get_cut_buffer_internal, 496DEFUN ("ns-get-cut-buffer-internal", Fns_get_cut_buffer_internal,
502 Sns_get_cut_buffer_internal, 1, 1, 0, 497 Sns_get_cut_buffer_internal, 1, 1, 0,
503 doc: /* Returns the value of the named cut buffer. */) 498 doc: /* Returns the value of the named cut buffer. */)
504 (buffer) 499 (Lisp_Object buffer)
505 Lisp_Object buffer;
506{ 500{
507 id pb; 501 id pb;
508 check_ns (); 502 check_ns ();
@@ -516,8 +510,7 @@ DEFUN ("ns-rotate-cut-buffers-internal", Fns_rotate_cut_buffers_internal,
516 doc: /* Rotate the values of the cut buffers by N steps. 510 doc: /* Rotate the values of the cut buffers by N steps.
517Positive N means move values forward, negative means 511Positive N means move values forward, negative means
518backward. CURRENTLY NOT IMPLEMENTED UNDER NEXTSTEP. */ ) 512backward. CURRENTLY NOT IMPLEMENTED UNDER NEXTSTEP. */ )
519 (n) 513 (Lisp_Object n)
520 Lisp_Object n;
521{ 514{
522 /* XXX This function is unimplemented under NeXTstep XXX */ 515 /* XXX This function is unimplemented under NeXTstep XXX */
523 Fsignal (Qquit, Fcons (build_string ( 516 Fsignal (Qquit, Fcons (build_string (
@@ -529,8 +522,7 @@ backward. CURRENTLY NOT IMPLEMENTED UNDER NEXTSTEP. */ )
529DEFUN ("ns-store-cut-buffer-internal", Fns_store_cut_buffer_internal, 522DEFUN ("ns-store-cut-buffer-internal", Fns_store_cut_buffer_internal,
530 Sns_store_cut_buffer_internal, 2, 2, 0, 523 Sns_store_cut_buffer_internal, 2, 2, 0,
531 doc: /* Sets the value of the named cut buffer (typically CUT_BUFFER0). */) 524 doc: /* Sets the value of the named cut buffer (typically CUT_BUFFER0). */)
532 (buffer, string) 525 (Lisp_Object buffer, Lisp_Object string)
533 Lisp_Object buffer, string;
534{ 526{
535 id pb; 527 id pb;
536 check_ns (); 528 check_ns ();
diff --git a/src/print.c b/src/print.c
index ce8bc3b4e78..0a0e6c7452c 100644
--- a/src/print.c
+++ b/src/print.c
@@ -522,8 +522,7 @@ print_string (Lisp_Object string, Lisp_Object printcharfun)
522DEFUN ("write-char", Fwrite_char, Swrite_char, 1, 2, 0, 522DEFUN ("write-char", Fwrite_char, Swrite_char, 1, 2, 0,
523 doc: /* Output character CHARACTER to stream PRINTCHARFUN. 523 doc: /* Output character CHARACTER to stream PRINTCHARFUN.
524PRINTCHARFUN defaults to the value of `standard-output' (which see). */) 524PRINTCHARFUN defaults to the value of `standard-output' (which see). */)
525 (character, printcharfun) 525 (Lisp_Object character, Lisp_Object printcharfun)
526 Lisp_Object character, printcharfun;
527{ 526{
528 PRINTDECLARE; 527 PRINTDECLARE;
529 528
@@ -653,8 +652,7 @@ temporarily selected. But it doesn't run `temp-buffer-show-hook'
653if it uses `temp-buffer-show-function'. 652if it uses `temp-buffer-show-function'.
654 653
655usage: (with-output-to-temp-buffer BUFNAME BODY...) */) 654usage: (with-output-to-temp-buffer BUFNAME BODY...) */)
656 (args) 655 (Lisp_Object args)
657 Lisp_Object args;
658{ 656{
659 struct gcpro gcpro1; 657 struct gcpro gcpro1;
660 Lisp_Object name; 658 Lisp_Object name;
@@ -686,8 +684,7 @@ static void print_object (Lisp_Object obj, register Lisp_Object printcharfun, in
686DEFUN ("terpri", Fterpri, Sterpri, 0, 1, 0, 684DEFUN ("terpri", Fterpri, Sterpri, 0, 1, 0,
687 doc: /* Output a newline to stream PRINTCHARFUN. 685 doc: /* Output a newline to stream PRINTCHARFUN.
688If PRINTCHARFUN is omitted or nil, the value of `standard-output' is used. */) 686If PRINTCHARFUN is omitted or nil, the value of `standard-output' is used. */)
689 (printcharfun) 687 (Lisp_Object printcharfun)
690 Lisp_Object printcharfun;
691{ 688{
692 PRINTDECLARE; 689 PRINTDECLARE;
693 690
@@ -722,8 +719,7 @@ of these:
722 719
723If PRINTCHARFUN is omitted, the value of `standard-output' (which see) 720If PRINTCHARFUN is omitted, the value of `standard-output' (which see)
724is used instead. */) 721is used instead. */)
725 (object, printcharfun) 722 (Lisp_Object object, Lisp_Object printcharfun)
726 Lisp_Object object, printcharfun;
727{ 723{
728 PRINTDECLARE; 724 PRINTDECLARE;
729 725
@@ -749,8 +745,7 @@ OBJECT is any of the Lisp data types: a number, a string, a symbol,
749a list, a buffer, a window, a frame, etc. 745a list, a buffer, a window, a frame, etc.
750 746
751A printed representation of an object is text which describes that object. */) 747A printed representation of an object is text which describes that object. */)
752 (object, noescape) 748 (Lisp_Object object, Lisp_Object noescape)
753 Lisp_Object object, noescape;
754{ 749{
755 Lisp_Object printcharfun; 750 Lisp_Object printcharfun;
756 /* struct gcpro gcpro1, gcpro2; */ 751 /* struct gcpro gcpro1, gcpro2; */
@@ -818,8 +813,7 @@ of these:
818 813
819If PRINTCHARFUN is omitted, the value of `standard-output' (which see) 814If PRINTCHARFUN is omitted, the value of `standard-output' (which see)
820is used instead. */) 815is used instead. */)
821 (object, printcharfun) 816 (Lisp_Object object, Lisp_Object printcharfun)
822 Lisp_Object object, printcharfun;
823{ 817{
824 PRINTDECLARE; 818 PRINTDECLARE;
825 819
@@ -854,8 +848,7 @@ of these:
854 848
855If PRINTCHARFUN is omitted, the value of `standard-output' (which see) 849If PRINTCHARFUN is omitted, the value of `standard-output' (which see)
856is used instead. */) 850is used instead. */)
857 (object, printcharfun) 851 (Lisp_Object object, Lisp_Object printcharfun)
858 Lisp_Object object, printcharfun;
859{ 852{
860 PRINTDECLARE; 853 PRINTDECLARE;
861 struct gcpro gcpro1; 854 struct gcpro gcpro1;
@@ -880,8 +873,7 @@ DEFUN ("external-debugging-output", Fexternal_debugging_output, Sexternal_debugg
880 doc: /* Write CHARACTER to stderr. 873 doc: /* Write CHARACTER to stderr.
881You can call print while debugging emacs, and pass it this function 874You can call print while debugging emacs, and pass it this function
882to make it write to the debugging output. */) 875to make it write to the debugging output. */)
883 (character) 876 (Lisp_Object character)
884 Lisp_Object character;
885{ 877{
886 CHECK_NUMBER (character); 878 CHECK_NUMBER (character);
887 putc (XINT (character), stderr); 879 putc (XINT (character), stderr);
@@ -923,8 +915,7 @@ DEFUN ("redirect-debugging-output", Fredirect_debugging_output, Sredirect_debugg
923If FILE is nil, reset target to the initial stderr stream. 915If FILE is nil, reset target to the initial stderr stream.
924Optional arg APPEND non-nil (interactively, with prefix arg) means 916Optional arg APPEND non-nil (interactively, with prefix arg) means
925append to existing target file. */) 917append to existing target file. */)
926 (file, append) 918 (Lisp_Object file, Lisp_Object append)
927 Lisp_Object file, append;
928{ 919{
929 if (initial_stderr_stream != NULL) 920 if (initial_stderr_stream != NULL)
930 { 921 {
@@ -982,8 +973,7 @@ DEFUN ("error-message-string", Ferror_message_string, Serror_message_string,
982 doc: /* Convert an error value (ERROR-SYMBOL . DATA) to an error message. 973 doc: /* Convert an error value (ERROR-SYMBOL . DATA) to an error message.
983See Info anchor `(elisp)Definition of signal' for some details on how this 974See Info anchor `(elisp)Definition of signal' for some details on how this
984error message is constructed. */) 975error message is constructed. */)
985 (obj) 976 (Lisp_Object obj)
986 Lisp_Object obj;
987{ 977{
988 struct buffer *old = current_buffer; 978 struct buffer *old = current_buffer;
989 Lisp_Object value; 979 Lisp_Object value;
diff --git a/src/process.c b/src/process.c
index 789f6df2df2..1eefae1adc9 100644
--- a/src/process.c
+++ b/src/process.c
@@ -680,16 +680,14 @@ setup_process_coding_systems (Lisp_Object process)
680 680
681DEFUN ("processp", Fprocessp, Sprocessp, 1, 1, 0, 681DEFUN ("processp", Fprocessp, Sprocessp, 1, 1, 0,
682 doc: /* Return t if OBJECT is a process. */) 682 doc: /* Return t if OBJECT is a process. */)
683 (object) 683 (Lisp_Object object)
684 Lisp_Object object;
685{ 684{
686 return PROCESSP (object) ? Qt : Qnil; 685 return PROCESSP (object) ? Qt : Qnil;
687} 686}
688 687
689DEFUN ("get-process", Fget_process, Sget_process, 1, 1, 0, 688DEFUN ("get-process", Fget_process, Sget_process, 1, 1, 0,
690 doc: /* Return the process named NAME, or nil if there is none. */) 689 doc: /* Return the process named NAME, or nil if there is none. */)
691 (name) 690 (register Lisp_Object name)
692 register Lisp_Object name;
693{ 691{
694 if (PROCESSP (name)) 692 if (PROCESSP (name))
695 return name; 693 return name;
@@ -700,8 +698,7 @@ DEFUN ("get-process", Fget_process, Sget_process, 1, 1, 0,
700DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0, 698DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0,
701 doc: /* Return the (or a) process associated with BUFFER. 699 doc: /* Return the (or a) process associated with BUFFER.
702BUFFER may be a buffer or the name of one. */) 700BUFFER may be a buffer or the name of one. */)
703 (buffer) 701 (register Lisp_Object buffer)
704 register Lisp_Object buffer;
705{ 702{
706 register Lisp_Object buf, tail, proc; 703 register Lisp_Object buf, tail, proc;
707 704
@@ -770,8 +767,7 @@ DEFUN ("delete-process", Fdelete_process, Sdelete_process, 1, 1, 0,
770 doc: /* Delete PROCESS: kill it and forget about it immediately. 767 doc: /* Delete PROCESS: kill it and forget about it immediately.
771PROCESS may be a process, a buffer, the name of a process or buffer, or 768PROCESS may be a process, a buffer, the name of a process or buffer, or
772nil, indicating the current buffer's process. */) 769nil, indicating the current buffer's process. */)
773 (process) 770 (register Lisp_Object process)
774 register Lisp_Object process;
775{ 771{
776 register struct Lisp_Process *p; 772 register struct Lisp_Process *p;
777 773
@@ -838,8 +834,7 @@ failed -- when a non-blocking connection has failed.
838nil -- if arg is a process name and no such process exists. 834nil -- if arg is a process name and no such process exists.
839PROCESS may be a process, a buffer, the name of a process, or 835PROCESS may be a process, a buffer, the name of a process, or
840nil, indicating the current buffer's process. */) 836nil, indicating the current buffer's process. */)
841 (process) 837 (register Lisp_Object process)
842 register Lisp_Object process;
843{ 838{
844 register struct Lisp_Process *p; 839 register struct Lisp_Process *p;
845 register Lisp_Object status; 840 register Lisp_Object status;
@@ -874,8 +869,7 @@ DEFUN ("process-exit-status", Fprocess_exit_status, Sprocess_exit_status,
874 1, 1, 0, 869 1, 1, 0,
875 doc: /* Return the exit status of PROCESS or the signal number that killed it. 870 doc: /* Return the exit status of PROCESS or the signal number that killed it.
876If PROCESS has not yet exited or died, return 0. */) 871If PROCESS has not yet exited or died, return 0. */)
877 (process) 872 (register Lisp_Object process)
878 register Lisp_Object process;
879{ 873{
880 CHECK_PROCESS (process); 874 CHECK_PROCESS (process);
881 if (XPROCESS (process)->raw_status_new) 875 if (XPROCESS (process)->raw_status_new)
@@ -889,8 +883,7 @@ DEFUN ("process-id", Fprocess_id, Sprocess_id, 1, 1, 0,
889 doc: /* Return the process id of PROCESS. 883 doc: /* Return the process id of PROCESS.
890This is the pid of the external process which PROCESS uses or talks to. 884This is the pid of the external process which PROCESS uses or talks to.
891For a network connection, this value is nil. */) 885For a network connection, this value is nil. */)
892 (process) 886 (register Lisp_Object process)
893 register Lisp_Object process;
894{ 887{
895 /* Assignment to EMACS_INT stops GCC whining about limited range of 888 /* Assignment to EMACS_INT stops GCC whining about limited range of
896 data type. */ 889 data type. */
@@ -905,8 +898,7 @@ DEFUN ("process-name", Fprocess_name, Sprocess_name, 1, 1, 0,
905 doc: /* Return the name of PROCESS, as a string. 898 doc: /* Return the name of PROCESS, as a string.
906This is the name of the program invoked in PROCESS, 899This is the name of the program invoked in PROCESS,
907possibly modified to make it unique among process names. */) 900possibly modified to make it unique among process names. */)
908 (process) 901 (register Lisp_Object process)
909 register Lisp_Object process;
910{ 902{
911 CHECK_PROCESS (process); 903 CHECK_PROCESS (process);
912 return XPROCESS (process)->name; 904 return XPROCESS (process)->name;
@@ -918,8 +910,7 @@ This is a list of strings, the first string being the program executed
918and the rest of the strings being the arguments given to it. 910and the rest of the strings being the arguments given to it.
919For a network or serial process, this is nil (process is running) or t 911For a network or serial process, this is nil (process is running) or t
920\(process is stopped). */) 912\(process is stopped). */)
921 (process) 913 (register Lisp_Object process)
922 register Lisp_Object process;
923{ 914{
924 CHECK_PROCESS (process); 915 CHECK_PROCESS (process);
925 return XPROCESS (process)->command; 916 return XPROCESS (process)->command;
@@ -929,8 +920,7 @@ DEFUN ("process-tty-name", Fprocess_tty_name, Sprocess_tty_name, 1, 1, 0,
929 doc: /* Return the name of the terminal PROCESS uses, or nil if none. 920 doc: /* Return the name of the terminal PROCESS uses, or nil if none.
930This is the terminal that the process itself reads and writes on, 921This is the terminal that the process itself reads and writes on,
931not the name of the pty that Emacs uses to talk with that terminal. */) 922not the name of the pty that Emacs uses to talk with that terminal. */)
932 (process) 923 (register Lisp_Object process)
933 register Lisp_Object process;
934{ 924{
935 CHECK_PROCESS (process); 925 CHECK_PROCESS (process);
936 return XPROCESS (process)->tty_name; 926 return XPROCESS (process)->tty_name;
@@ -939,8 +929,7 @@ not the name of the pty that Emacs uses to talk with that terminal. */)
939DEFUN ("set-process-buffer", Fset_process_buffer, Sset_process_buffer, 929DEFUN ("set-process-buffer", Fset_process_buffer, Sset_process_buffer,
940 2, 2, 0, 930 2, 2, 0,
941 doc: /* Set buffer associated with PROCESS to BUFFER (a buffer, or nil). */) 931 doc: /* Set buffer associated with PROCESS to BUFFER (a buffer, or nil). */)
942 (process, buffer) 932 (register Lisp_Object process, Lisp_Object buffer)
943 register Lisp_Object process, buffer;
944{ 933{
945 struct Lisp_Process *p; 934 struct Lisp_Process *p;
946 935
@@ -959,8 +948,7 @@ DEFUN ("process-buffer", Fprocess_buffer, Sprocess_buffer,
959 1, 1, 0, 948 1, 1, 0,
960 doc: /* Return the buffer PROCESS is associated with. 949 doc: /* Return the buffer PROCESS is associated with.
961Output from PROCESS is inserted in this buffer unless PROCESS has a filter. */) 950Output from PROCESS is inserted in this buffer unless PROCESS has a filter. */)
962 (process) 951 (register Lisp_Object process)
963 register Lisp_Object process;
964{ 952{
965 CHECK_PROCESS (process); 953 CHECK_PROCESS (process);
966 return XPROCESS (process)->buffer; 954 return XPROCESS (process)->buffer;
@@ -969,8 +957,7 @@ Output from PROCESS is inserted in this buffer unless PROCESS has a filter. */)
969DEFUN ("process-mark", Fprocess_mark, Sprocess_mark, 957DEFUN ("process-mark", Fprocess_mark, Sprocess_mark,
970 1, 1, 0, 958 1, 1, 0,
971 doc: /* Return the marker for the end of the last output from PROCESS. */) 959 doc: /* Return the marker for the end of the last output from PROCESS. */)
972 (process) 960 (register Lisp_Object process)
973 register Lisp_Object process;
974{ 961{
975 CHECK_PROCESS (process); 962 CHECK_PROCESS (process);
976 return XPROCESS (process)->mark; 963 return XPROCESS (process)->mark;
@@ -992,8 +979,7 @@ The string argument is normally a multibyte string, except:
992- if `default-enable-multibyte-characters' is nil, it is a unibyte 979- if `default-enable-multibyte-characters' is nil, it is a unibyte
993 string (the result of converting the decoded input multibyte 980 string (the result of converting the decoded input multibyte
994 string to unibyte with `string-make-unibyte'). */) 981 string to unibyte with `string-make-unibyte'). */)
995 (process, filter) 982 (register Lisp_Object process, Lisp_Object filter)
996 register Lisp_Object process, filter;
997{ 983{
998 struct Lisp_Process *p; 984 struct Lisp_Process *p;
999 985
@@ -1035,8 +1021,7 @@ DEFUN ("process-filter", Fprocess_filter, Sprocess_filter,
1035 1, 1, 0, 1021 1, 1, 0,
1036 doc: /* Returns the filter function of PROCESS; nil if none. 1022 doc: /* Returns the filter function of PROCESS; nil if none.
1037See `set-process-filter' for more info on filter functions. */) 1023See `set-process-filter' for more info on filter functions. */)
1038 (process) 1024 (register Lisp_Object process)
1039 register Lisp_Object process;
1040{ 1025{
1041 CHECK_PROCESS (process); 1026 CHECK_PROCESS (process);
1042 return XPROCESS (process)->filter; 1027 return XPROCESS (process)->filter;
@@ -1047,8 +1032,7 @@ DEFUN ("set-process-sentinel", Fset_process_sentinel, Sset_process_sentinel,
1047 doc: /* Give PROCESS the sentinel SENTINEL; nil for none. 1032 doc: /* Give PROCESS the sentinel SENTINEL; nil for none.
1048The sentinel is called as a function when the process changes state. 1033The sentinel is called as a function when the process changes state.
1049It gets two arguments: the process, and a string describing the change. */) 1034It gets two arguments: the process, and a string describing the change. */)
1050 (process, sentinel) 1035 (register Lisp_Object process, Lisp_Object sentinel)
1051 register Lisp_Object process, sentinel;
1052{ 1036{
1053 struct Lisp_Process *p; 1037 struct Lisp_Process *p;
1054 1038
@@ -1065,8 +1049,7 @@ DEFUN ("process-sentinel", Fprocess_sentinel, Sprocess_sentinel,
1065 1, 1, 0, 1049 1, 1, 0,
1066 doc: /* Return the sentinel of PROCESS; nil if none. 1050 doc: /* Return the sentinel of PROCESS; nil if none.
1067See `set-process-sentinel' for more info on sentinels. */) 1051See `set-process-sentinel' for more info on sentinels. */)
1068 (process) 1052 (register Lisp_Object process)
1069 register Lisp_Object process;
1070{ 1053{
1071 CHECK_PROCESS (process); 1054 CHECK_PROCESS (process);
1072 return XPROCESS (process)->sentinel; 1055 return XPROCESS (process)->sentinel;
@@ -1075,8 +1058,7 @@ See `set-process-sentinel' for more info on sentinels. */)
1075DEFUN ("set-process-window-size", Fset_process_window_size, 1058DEFUN ("set-process-window-size", Fset_process_window_size,
1076 Sset_process_window_size, 3, 3, 0, 1059 Sset_process_window_size, 3, 3, 0,
1077 doc: /* Tell PROCESS that it has logical window size HEIGHT and WIDTH. */) 1060 doc: /* Tell PROCESS that it has logical window size HEIGHT and WIDTH. */)
1078 (process, height, width) 1061 (register Lisp_Object process, Lisp_Object height, Lisp_Object width)
1079 register Lisp_Object process, height, width;
1080{ 1062{
1081 CHECK_PROCESS (process); 1063 CHECK_PROCESS (process);
1082 CHECK_NATNUM (height); 1064 CHECK_NATNUM (height);
@@ -1107,8 +1089,7 @@ is more appropriate for saving the process buffer.
1107Binding the variable `inherit-process-coding-system' to non-nil before 1089Binding the variable `inherit-process-coding-system' to non-nil before
1108starting the process is an alternative way of setting the inherit flag 1090starting the process is an alternative way of setting the inherit flag
1109for the process which will run. */) 1091for the process which will run. */)
1110 (process, flag) 1092 (register Lisp_Object process, Lisp_Object flag)
1111 register Lisp_Object process, flag;
1112{ 1093{
1113 CHECK_PROCESS (process); 1094 CHECK_PROCESS (process);
1114 XPROCESS (process)->inherit_coding_system_flag = !NILP (flag); 1095 XPROCESS (process)->inherit_coding_system_flag = !NILP (flag);
@@ -1122,8 +1103,7 @@ DEFUN ("process-inherit-coding-system-flag",
1122If this flag is t, `buffer-file-coding-system' of the buffer 1103If this flag is t, `buffer-file-coding-system' of the buffer
1123associated with PROCESS will inherit the coding system used to decode 1104associated with PROCESS will inherit the coding system used to decode
1124the process output. */) 1105the process output. */)
1125 (process) 1106 (register Lisp_Object process)
1126 register Lisp_Object process;
1127{ 1107{
1128 CHECK_PROCESS (process); 1108 CHECK_PROCESS (process);
1129 return XPROCESS (process)->inherit_coding_system_flag ? Qt : Qnil; 1109 return XPROCESS (process)->inherit_coding_system_flag ? Qt : Qnil;
@@ -1135,8 +1115,7 @@ DEFUN ("set-process-query-on-exit-flag",
1135 doc: /* Specify if query is needed for PROCESS when Emacs is exited. 1115 doc: /* Specify if query is needed for PROCESS when Emacs is exited.
1136If the second argument FLAG is non-nil, Emacs will query the user before 1116If the second argument FLAG is non-nil, Emacs will query the user before
1137exiting or killing a buffer if PROCESS is running. */) 1117exiting or killing a buffer if PROCESS is running. */)
1138 (process, flag) 1118 (register Lisp_Object process, Lisp_Object flag)
1139 register Lisp_Object process, flag;
1140{ 1119{
1141 CHECK_PROCESS (process); 1120 CHECK_PROCESS (process);
1142 XPROCESS (process)->kill_without_query = NILP (flag); 1121 XPROCESS (process)->kill_without_query = NILP (flag);
@@ -1147,8 +1126,7 @@ DEFUN ("process-query-on-exit-flag",
1147 Fprocess_query_on_exit_flag, Sprocess_query_on_exit_flag, 1126 Fprocess_query_on_exit_flag, Sprocess_query_on_exit_flag,
1148 1, 1, 0, 1127 1, 1, 0,
1149 doc: /* Return the current value of query-on-exit flag for PROCESS. */) 1128 doc: /* Return the current value of query-on-exit flag for PROCESS. */)
1150 (process) 1129 (register Lisp_Object process)
1151 register Lisp_Object process;
1152{ 1130{
1153 CHECK_PROCESS (process); 1131 CHECK_PROCESS (process);
1154 return (XPROCESS (process)->kill_without_query ? Qnil : Qt); 1132 return (XPROCESS (process)->kill_without_query ? Qnil : Qt);
@@ -1168,8 +1146,7 @@ connection. If KEY is t, the complete contact information for the
1168connection is returned, else the specific value for the keyword KEY is 1146connection is returned, else the specific value for the keyword KEY is
1169returned. See `make-network-process' or `make-serial-process' for a 1147returned. See `make-network-process' or `make-serial-process' for a
1170list of keywords. */) 1148list of keywords. */)
1171 (process, key) 1149 (register Lisp_Object process, Lisp_Object key)
1172 register Lisp_Object process, key;
1173{ 1150{
1174 Lisp_Object contact; 1151 Lisp_Object contact;
1175 1152
@@ -1197,8 +1174,7 @@ list of keywords. */)
1197DEFUN ("process-plist", Fprocess_plist, Sprocess_plist, 1174DEFUN ("process-plist", Fprocess_plist, Sprocess_plist,
1198 1, 1, 0, 1175 1, 1, 0,
1199 doc: /* Return the plist of PROCESS. */) 1176 doc: /* Return the plist of PROCESS. */)
1200 (process) 1177 (register Lisp_Object process)
1201 register Lisp_Object process;
1202{ 1178{
1203 CHECK_PROCESS (process); 1179 CHECK_PROCESS (process);
1204 return XPROCESS (process)->plist; 1180 return XPROCESS (process)->plist;
@@ -1207,8 +1183,7 @@ DEFUN ("process-plist", Fprocess_plist, Sprocess_plist,
1207DEFUN ("set-process-plist", Fset_process_plist, Sset_process_plist, 1183DEFUN ("set-process-plist", Fset_process_plist, Sset_process_plist,
1208 2, 2, 0, 1184 2, 2, 0,
1209 doc: /* Replace the plist of PROCESS with PLIST. Returns PLIST. */) 1185 doc: /* Replace the plist of PROCESS with PLIST. Returns PLIST. */)
1210 (process, plist) 1186 (register Lisp_Object process, Lisp_Object plist)
1211 register Lisp_Object process, plist;
1212{ 1187{
1213 CHECK_PROCESS (process); 1188 CHECK_PROCESS (process);
1214 CHECK_LIST (plist); 1189 CHECK_LIST (plist);
@@ -1223,8 +1198,7 @@ DEFUN ("process-connection", Fprocess_connection, Sprocess_connection, 1, 1, 0,
1223 doc: /* Return the connection type of PROCESS. 1198 doc: /* Return the connection type of PROCESS.
1224The value is nil for a pipe, t or `pty' for a pty, or `stream' for 1199The value is nil for a pipe, t or `pty' for a pty, or `stream' for
1225a socket connection. */) 1200a socket connection. */)
1226 (process) 1201 (Lisp_Object process)
1227 Lisp_Object process;
1228{ 1202{
1229 return XPROCESS (process)->type; 1203 return XPROCESS (process)->type;
1230} 1204}
@@ -1235,8 +1209,7 @@ DEFUN ("process-type", Fprocess_type, Sprocess_type, 1, 1, 0,
1235The value is either the symbol `real', `network', or `serial'. 1209The value is either the symbol `real', `network', or `serial'.
1236PROCESS may be a process, a buffer, the name of a process or buffer, or 1210PROCESS may be a process, a buffer, the name of a process or buffer, or
1237nil, indicating the current buffer's process. */) 1211nil, indicating the current buffer's process. */)
1238 (process) 1212 (Lisp_Object process)
1239 Lisp_Object process;
1240{ 1213{
1241 Lisp_Object proc; 1214 Lisp_Object proc;
1242 proc = get_process (process); 1215 proc = get_process (process);
@@ -1252,8 +1225,7 @@ An 8 or 9 element vector represents an IPv6 address (with port number).
1252If optional second argument OMIT-PORT is non-nil, don't include a port 1225If optional second argument OMIT-PORT is non-nil, don't include a port
1253number in the string, even when present in ADDRESS. 1226number in the string, even when present in ADDRESS.
1254Returns nil if format of ADDRESS is invalid. */) 1227Returns nil if format of ADDRESS is invalid. */)
1255 (address, omit_port) 1228 (Lisp_Object address, Lisp_Object omit_port)
1256 Lisp_Object address, omit_port;
1257{ 1229{
1258 if (NILP (address)) 1230 if (NILP (address))
1259 return Qnil; 1231 return Qnil;
@@ -1555,8 +1527,7 @@ If optional argument QUERY-ONLY is non-nil, only processes with
1555the query-on-exit flag set will be listed. 1527the query-on-exit flag set will be listed.
1556Any process listed as exited or signaled is actually eliminated 1528Any process listed as exited or signaled is actually eliminated
1557after the listing is made. */) 1529after the listing is made. */)
1558 (query_only) 1530 (Lisp_Object query_only)
1559 Lisp_Object query_only;
1560{ 1531{
1561 internal_with_output_to_temp_buffer ("*Process List*", 1532 internal_with_output_to_temp_buffer ("*Process List*",
1562 list_processes_1, query_only); 1533 list_processes_1, query_only);
@@ -1565,7 +1536,7 @@ after the listing is made. */)
1565 1536
1566DEFUN ("process-list", Fprocess_list, Sprocess_list, 0, 0, 0, 1537DEFUN ("process-list", Fprocess_list, Sprocess_list, 0, 0, 0,
1567 doc: /* Return a list of all processes. */) 1538 doc: /* Return a list of all processes. */)
1568 () 1539 (void)
1569{ 1540{
1570 return Fmapcar (Qcdr, Vprocess_alist); 1541 return Fmapcar (Qcdr, Vprocess_alist);
1571} 1542}
@@ -1593,9 +1564,7 @@ the command through a shell and redirect one of them using the shell
1593syntax. 1564syntax.
1594 1565
1595usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */) 1566usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */)
1596 (nargs, args) 1567 (int nargs, register Lisp_Object *args)
1597 int nargs;
1598 register Lisp_Object *args;
1599{ 1568{
1600 Lisp_Object buffer, name, program, proc, current_dir, tem; 1569 Lisp_Object buffer, name, program, proc, current_dir, tem;
1601 register unsigned char **new_argv; 1570 register unsigned char **new_argv;
@@ -2504,8 +2473,7 @@ conv_lisp_to_sockaddr (int family, Lisp_Object address, struct sockaddr *sa, int
2504DEFUN ("process-datagram-address", Fprocess_datagram_address, Sprocess_datagram_address, 2473DEFUN ("process-datagram-address", Fprocess_datagram_address, Sprocess_datagram_address,
2505 1, 1, 0, 2474 1, 1, 0,
2506 doc: /* Get the current datagram address associated with PROCESS. */) 2475 doc: /* Get the current datagram address associated with PROCESS. */)
2507 (process) 2476 (Lisp_Object process)
2508 Lisp_Object process;
2509{ 2477{
2510 int channel; 2478 int channel;
2511 2479
@@ -2523,8 +2491,7 @@ DEFUN ("set-process-datagram-address", Fset_process_datagram_address, Sset_proce
2523 2, 2, 0, 2491 2, 2, 0,
2524 doc: /* Set the datagram address for PROCESS to ADDRESS. 2492 doc: /* Set the datagram address for PROCESS to ADDRESS.
2525Returns nil upon error setting address, ADDRESS otherwise. */) 2493Returns nil upon error setting address, ADDRESS otherwise. */)
2526 (process, address) 2494 (Lisp_Object process, Lisp_Object address)
2527 Lisp_Object process, address;
2528{ 2495{
2529 int channel; 2496 int channel;
2530 int family, len; 2497 int family, len;
@@ -2685,9 +2652,7 @@ DEFUN ("set-network-process-option",
2685See `make-network-process' for a list of options and values. 2652See `make-network-process' for a list of options and values.
2686If optional fourth arg NO-ERROR is non-nil, don't signal an error if 2653If optional fourth arg NO-ERROR is non-nil, don't signal an error if
2687OPTION is not a supported option, return nil instead; otherwise return t. */) 2654OPTION is not a supported option, return nil instead; otherwise return t. */)
2688 (process, option, value, no_error) 2655 (Lisp_Object process, Lisp_Object option, Lisp_Object value, Lisp_Object no_error)
2689 Lisp_Object process, option, value;
2690 Lisp_Object no_error;
2691{ 2656{
2692 int s; 2657 int s;
2693 struct Lisp_Process *p; 2658 struct Lisp_Process *p;
@@ -2774,9 +2739,7 @@ Examples:
2774\(serial-process-configure :port "\\\\.\\COM13" :bytesize 7) 2739\(serial-process-configure :port "\\\\.\\COM13" :bytesize 7)
2775 2740
2776usage: (serial-process-configure &rest ARGS) */) 2741usage: (serial-process-configure &rest ARGS) */)
2777 (nargs, args) 2742 (int nargs, Lisp_Object *args)
2778 int nargs;
2779 Lisp_Object *args;
2780{ 2743{
2781 struct Lisp_Process *p; 2744 struct Lisp_Process *p;
2782 Lisp_Object contact = Qnil; 2745 Lisp_Object contact = Qnil;
@@ -2893,9 +2856,7 @@ Examples:
2893\(make-serial-process :port "/dev/tty.BlueConsole-SPP-1" :speed nil) 2856\(make-serial-process :port "/dev/tty.BlueConsole-SPP-1" :speed nil)
2894 2857
2895usage: (make-serial-process &rest ARGS) */) 2858usage: (make-serial-process &rest ARGS) */)
2896 (nargs, args) 2859 (int nargs, Lisp_Object *args)
2897 int nargs;
2898 Lisp_Object *args;
2899{ 2860{
2900 int fd = -1; 2861 int fd = -1;
2901 Lisp_Object proc, contact, port; 2862 Lisp_Object proc, contact, port;
@@ -3174,9 +3135,7 @@ The original argument list, modified with the actual connection
3174information, is available via the `process-contact' function. 3135information, is available via the `process-contact' function.
3175 3136
3176usage: (make-network-process &rest ARGS) */) 3137usage: (make-network-process &rest ARGS) */)
3177 (nargs, args) 3138 (int nargs, Lisp_Object *args)
3178 int nargs;
3179 Lisp_Object *args;
3180{ 3139{
3181 Lisp_Object proc; 3140 Lisp_Object proc;
3182 Lisp_Object contact; 3141 Lisp_Object contact;
@@ -3890,7 +3849,7 @@ DEFUN ("network-interface-list", Fnetwork_interface_list, Snetwork_interface_lis
3890Each element is a cons, the car of which is a string containing the 3849Each element is a cons, the car of which is a string containing the
3891interface name, and the cdr is the network address in internal 3850interface name, and the cdr is the network address in internal
3892format; see the description of ADDRESS in `make-network-process'. */) 3851format; see the description of ADDRESS in `make-network-process'. */)
3893 () 3852 (void)
3894{ 3853{
3895 struct ifconf ifconf; 3854 struct ifconf ifconf;
3896 struct ifreq *ifreqs = NULL; 3855 struct ifreq *ifreqs = NULL;
@@ -4025,8 +3984,7 @@ The return value is a list (ADDR BCAST NETMASK HWADDR FLAGS),
4025where ADDR is the layer 3 address, BCAST is the layer 3 broadcast address, 3984where ADDR is the layer 3 address, BCAST is the layer 3 broadcast address,
4026NETMASK is the layer 3 network mask, HWADDR is the layer 2 addres, and 3985NETMASK is the layer 3 network mask, HWADDR is the layer 2 addres, and
4027FLAGS is the current flags of the interface. */) 3986FLAGS is the current flags of the interface. */)
4028 (ifname) 3987 (Lisp_Object ifname)
4029 Lisp_Object ifname;
4030{ 3988{
4031 struct ifreq rq; 3989 struct ifreq rq;
4032 Lisp_Object res = Qnil; 3990 Lisp_Object res = Qnil;
@@ -4234,8 +4192,7 @@ If optional fourth arg JUST-THIS-ONE is non-nil, only accept output
4234from PROCESS, suspending reading output from other processes. 4192from PROCESS, suspending reading output from other processes.
4235If JUST-THIS-ONE is an integer, don't run any timers either. 4193If JUST-THIS-ONE is an integer, don't run any timers either.
4236Return non-nil if we received any output before the timeout expired. */) 4194Return non-nil if we received any output before the timeout expired. */)
4237 (process, seconds, millisec, just_this_one) 4195 (register Lisp_Object process, Lisp_Object seconds, Lisp_Object millisec, Lisp_Object just_this_one)
4238 register Lisp_Object process, seconds, millisec, just_this_one;
4239{ 4196{
4240 int secs, usecs = 0; 4197 int secs, usecs = 0;
4241 4198
@@ -5576,7 +5533,7 @@ DEFUN ("waiting-for-user-input-p", Fwaiting_for_user_input_p, Swaiting_for_user_
5576 0, 0, 0, 5533 0, 0, 0,
5577 doc: /* Returns non-nil if Emacs is waiting for input from the user. 5534 doc: /* Returns non-nil if Emacs is waiting for input from the user.
5578This is intended for use by asynchronous process output filters and sentinels. */) 5535This is intended for use by asynchronous process output filters and sentinels. */)
5579 () 5536 (void)
5580{ 5537{
5581 return (waiting_for_user_input_p ? Qt : Qnil); 5538 return (waiting_for_user_input_p ? Qt : Qnil);
5582} 5539}
@@ -5851,8 +5808,7 @@ Called from program, takes three arguments, PROCESS, START and END.
5851If the region is more than 500 characters long, 5808If the region is more than 500 characters long,
5852it is sent in several bunches. This may happen even for shorter regions. 5809it is sent in several bunches. This may happen even for shorter regions.
5853Output from processes can arrive in between bunches. */) 5810Output from processes can arrive in between bunches. */)
5854 (process, start, end) 5811 (Lisp_Object process, Lisp_Object start, Lisp_Object end)
5855 Lisp_Object process, start, end;
5856{ 5812{
5857 Lisp_Object proc; 5813 Lisp_Object proc;
5858 int start1, end1; 5814 int start1, end1;
@@ -5879,8 +5835,7 @@ nil, indicating the current buffer's process.
5879If STRING is more than 500 characters long, 5835If STRING is more than 500 characters long,
5880it is sent in several bunches. This may happen even for shorter strings. 5836it is sent in several bunches. This may happen even for shorter strings.
5881Output from processes can arrive in between bunches. */) 5837Output from processes can arrive in between bunches. */)
5882 (process, string) 5838 (Lisp_Object process, Lisp_Object string)
5883 Lisp_Object process, string;
5884{ 5839{
5885 Lisp_Object proc; 5840 Lisp_Object proc;
5886 CHECK_STRING (string); 5841 CHECK_STRING (string);
@@ -5921,8 +5876,7 @@ DEFUN ("process-running-child-p", Fprocess_running_child_p,
5921 doc: /* Return t if PROCESS has given the terminal to a child. 5876 doc: /* Return t if PROCESS has given the terminal to a child.
5922If the operating system does not make it possible to find out, 5877If the operating system does not make it possible to find out,
5923return t unconditionally. */) 5878return t unconditionally. */)
5924 (process) 5879 (Lisp_Object process)
5925 Lisp_Object process;
5926{ 5880{
5927 /* Initialize in case ioctl doesn't exist or gives an error, 5881 /* Initialize in case ioctl doesn't exist or gives an error,
5928 in a way that will cause returning t. */ 5882 in a way that will cause returning t. */
@@ -6183,8 +6137,7 @@ rather than the shell.
6183 6137
6184If CURRENT-GROUP is `lambda', and if the shell owns the terminal, 6138If CURRENT-GROUP is `lambda', and if the shell owns the terminal,
6185don't send the signal. */) 6139don't send the signal. */)
6186 (process, current_group) 6140 (Lisp_Object process, Lisp_Object current_group)
6187 Lisp_Object process, current_group;
6188{ 6141{
6189 process_send_signal (process, SIGINT, current_group, 0); 6142 process_send_signal (process, SIGINT, current_group, 0);
6190 return process; 6143 return process;
@@ -6193,8 +6146,7 @@ don't send the signal. */)
6193DEFUN ("kill-process", Fkill_process, Skill_process, 0, 2, 0, 6146DEFUN ("kill-process", Fkill_process, Skill_process, 0, 2, 0,
6194 doc: /* Kill process PROCESS. May be process or name of one. 6147 doc: /* Kill process PROCESS. May be process or name of one.
6195See function `interrupt-process' for more details on usage. */) 6148See function `interrupt-process' for more details on usage. */)
6196 (process, current_group) 6149 (Lisp_Object process, Lisp_Object current_group)
6197 Lisp_Object process, current_group;
6198{ 6150{
6199 process_send_signal (process, SIGKILL, current_group, 0); 6151 process_send_signal (process, SIGKILL, current_group, 0);
6200 return process; 6152 return process;
@@ -6203,8 +6155,7 @@ See function `interrupt-process' for more details on usage. */)
6203DEFUN ("quit-process", Fquit_process, Squit_process, 0, 2, 0, 6155DEFUN ("quit-process", Fquit_process, Squit_process, 0, 2, 0,
6204 doc: /* Send QUIT signal to process PROCESS. May be process or name of one. 6156 doc: /* Send QUIT signal to process PROCESS. May be process or name of one.
6205See function `interrupt-process' for more details on usage. */) 6157See function `interrupt-process' for more details on usage. */)
6206 (process, current_group) 6158 (Lisp_Object process, Lisp_Object current_group)
6207 Lisp_Object process, current_group;
6208{ 6159{
6209 process_send_signal (process, SIGQUIT, current_group, 0); 6160 process_send_signal (process, SIGQUIT, current_group, 0);
6210 return process; 6161 return process;
@@ -6215,8 +6166,7 @@ DEFUN ("stop-process", Fstop_process, Sstop_process, 0, 2, 0,
6215See function `interrupt-process' for more details on usage. 6166See function `interrupt-process' for more details on usage.
6216If PROCESS is a network or serial process, inhibit handling of incoming 6167If PROCESS is a network or serial process, inhibit handling of incoming
6217traffic. */) 6168traffic. */)
6218 (process, current_group) 6169 (Lisp_Object process, Lisp_Object current_group)
6219 Lisp_Object process, current_group;
6220{ 6170{
6221#ifdef HAVE_SOCKETS 6171#ifdef HAVE_SOCKETS
6222 if (PROCESSP (process) && (NETCONN_P (process) || SERIALCONN_P (process))) 6172 if (PROCESSP (process) && (NETCONN_P (process) || SERIALCONN_P (process)))
@@ -6247,8 +6197,7 @@ DEFUN ("continue-process", Fcontinue_process, Scontinue_process, 0, 2, 0,
6247See function `interrupt-process' for more details on usage. 6197See function `interrupt-process' for more details on usage.
6248If PROCESS is a network or serial process, resume handling of incoming 6198If PROCESS is a network or serial process, resume handling of incoming
6249traffic. */) 6199traffic. */)
6250 (process, current_group) 6200 (Lisp_Object process, Lisp_Object current_group)
6251 Lisp_Object process, current_group;
6252{ 6201{
6253#ifdef HAVE_SOCKETS 6202#ifdef HAVE_SOCKETS
6254 if (PROCESSP (process) && (NETCONN_P (process) || SERIALCONN_P (process))) 6203 if (PROCESSP (process) && (NETCONN_P (process) || SERIALCONN_P (process)))
@@ -6289,8 +6238,7 @@ PROCESS may also be a number specifying the process id of the
6289process to signal; in this case, the process need not be a child of 6238process to signal; in this case, the process need not be a child of
6290this Emacs. 6239this Emacs.
6291SIGCODE may be an integer, or a symbol whose name is a signal name. */) 6240SIGCODE may be an integer, or a symbol whose name is a signal name. */)
6292 (process, sigcode) 6241 (Lisp_Object process, Lisp_Object sigcode)
6293 Lisp_Object process, sigcode;
6294{ 6242{
6295 pid_t pid; 6243 pid_t pid;
6296 6244
@@ -6457,8 +6405,7 @@ through a pipe (as opposed to a pty), then you cannot send any more
6457text to PROCESS after you call this function. 6405text to PROCESS after you call this function.
6458If PROCESS is a serial process, wait until all output written to the 6406If PROCESS is a serial process, wait until all output written to the
6459process has been transmitted to the serial port. */) 6407process has been transmitted to the serial port. */)
6460 (process) 6408 (Lisp_Object process)
6461 Lisp_Object process;
6462{ 6409{
6463 Lisp_Object proc; 6410 Lisp_Object proc;
6464 struct coding_system *coding; 6411 struct coding_system *coding;
@@ -6947,8 +6894,7 @@ DEFUN ("set-process-coding-system", Fset_process_coding_system,
6947 doc: /* Set coding systems of PROCESS to DECODING and ENCODING. 6894 doc: /* Set coding systems of PROCESS to DECODING and ENCODING.
6948DECODING will be used to decode subprocess output and ENCODING to 6895DECODING will be used to decode subprocess output and ENCODING to
6949encode subprocess input. */) 6896encode subprocess input. */)
6950 (process, decoding, encoding) 6897 (register Lisp_Object process, Lisp_Object decoding, Lisp_Object encoding)
6951 register Lisp_Object process, decoding, encoding;
6952{ 6898{
6953 register struct Lisp_Process *p; 6899 register struct Lisp_Process *p;
6954 6900
@@ -6971,8 +6917,7 @@ encode subprocess input. */)
6971DEFUN ("process-coding-system", 6917DEFUN ("process-coding-system",
6972 Fprocess_coding_system, Sprocess_coding_system, 1, 1, 0, 6918 Fprocess_coding_system, Sprocess_coding_system, 1, 1, 0,
6973 doc: /* Return a cons of coding systems for decoding and encoding of PROCESS. */) 6919 doc: /* Return a cons of coding systems for decoding and encoding of PROCESS. */)
6974 (process) 6920 (register Lisp_Object process)
6975 register Lisp_Object process;
6976{ 6921{
6977 CHECK_PROCESS (process); 6922 CHECK_PROCESS (process);
6978 return Fcons (XPROCESS (process)->decode_coding_system, 6923 return Fcons (XPROCESS (process)->decode_coding_system,
@@ -6986,8 +6931,7 @@ If FLAG is non-nil, the filter is given multibyte strings.
6986If FLAG is nil, the filter is given unibyte strings. In this case, 6931If FLAG is nil, the filter is given unibyte strings. In this case,
6987all character code conversion except for end-of-line conversion is 6932all character code conversion except for end-of-line conversion is
6988suppressed. */) 6933suppressed. */)
6989 (process, flag) 6934 (Lisp_Object process, Lisp_Object flag)
6990 Lisp_Object process, flag;
6991{ 6935{
6992 register struct Lisp_Process *p; 6936 register struct Lisp_Process *p;
6993 6937
@@ -7003,8 +6947,7 @@ suppressed. */)
7003DEFUN ("process-filter-multibyte-p", Fprocess_filter_multibyte_p, 6947DEFUN ("process-filter-multibyte-p", Fprocess_filter_multibyte_p,
7004 Sprocess_filter_multibyte_p, 1, 1, 0, 6948 Sprocess_filter_multibyte_p, 1, 1, 0,
7005 doc: /* Return t if a multibyte string is given to PROCESS's filter.*/) 6949 doc: /* Return t if a multibyte string is given to PROCESS's filter.*/)
7006 (process) 6950 (Lisp_Object process)
7007 Lisp_Object process;
7008{ 6951{
7009 register struct Lisp_Process *p; 6952 register struct Lisp_Process *p;
7010 struct coding_system *coding; 6953 struct coding_system *coding;
@@ -7126,7 +7069,7 @@ DEFUN ("list-system-processes", Flist_system_processes, Slist_system_processes,
7126If this functionality is unsupported, return nil. 7069If this functionality is unsupported, return nil.
7127 7070
7128See `process-attributes' for getting attributes of a process given its ID. */) 7071See `process-attributes' for getting attributes of a process given its ID. */)
7129 () 7072 (void)
7130{ 7073{
7131 return list_system_processes (); 7074 return list_system_processes ();
7132} 7075}
@@ -7182,9 +7125,7 @@ integer or floating point values.
7182 pmem -- percents of total physical memory used by process's resident set 7125 pmem -- percents of total physical memory used by process's resident set
7183 (floating-point number) 7126 (floating-point number)
7184 args -- command line which invoked the process (string). */) 7127 args -- command line which invoked the process (string). */)
7185 (pid) 7128 ( Lisp_Object pid)
7186
7187 Lisp_Object pid;
7188{ 7129{
7189 return system_process_attributes (pid); 7130 return system_process_attributes (pid);
7190} 7131}
@@ -7833,8 +7774,7 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
7833 make-docfile does not pay attention to #if, for good reason! */ 7774 make-docfile does not pay attention to #if, for good reason! */
7834DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0, 7775DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0,
7835 0) 7776 0)
7836 (name) 7777 (register Lisp_Object name)
7837 register Lisp_Object name;
7838{ 7778{
7839 return Qnil; 7779 return Qnil;
7840} 7780}
@@ -7845,8 +7785,7 @@ DEFUN ("process-inherit-coding-system-flag",
7845 Fprocess_inherit_coding_system_flag, Sprocess_inherit_coding_system_flag, 7785 Fprocess_inherit_coding_system_flag, Sprocess_inherit_coding_system_flag,
7846 1, 1, 0, 7786 1, 1, 0,
7847 0) 7787 0)
7848 (process) 7788 (register Lisp_Object process)
7849 register Lisp_Object process;
7850{ 7789{
7851 /* Ignore the argument and return the value of 7790 /* Ignore the argument and return the value of
7852 inherit-process-coding-system. */ 7791 inherit-process-coding-system. */
@@ -7894,7 +7833,7 @@ DEFUN ("list-system-processes", Flist_system_processes, Slist_system_processes,
7894If this functionality is unsupported, return nil. 7833If this functionality is unsupported, return nil.
7895 7834
7896See `process-attributes' for getting attributes of a process given its ID. */) 7835See `process-attributes' for getting attributes of a process given its ID. */)
7897 () 7836 (void)
7898{ 7837{
7899 return list_system_processes (); 7838 return list_system_processes ();
7900} 7839}
@@ -7950,9 +7889,7 @@ integer or floating point values.
7950 pmem -- percents of total physical memory used by process's resident set 7889 pmem -- percents of total physical memory used by process's resident set
7951 (floating-point number) 7890 (floating-point number)
7952 args -- command line which invoked the process (string). */) 7891 args -- command line which invoked the process (string). */)
7953 (pid) 7892 ( Lisp_Object pid)
7954
7955 Lisp_Object pid;
7956{ 7893{
7957 return system_process_attributes (pid); 7894 return system_process_attributes (pid);
7958} 7895}
diff --git a/src/search.c b/src/search.c
index a57136fc3fa..4f8b801c122 100644
--- a/src/search.c
+++ b/src/search.c
@@ -362,8 +362,7 @@ DEFUN ("looking-at", Flooking_at, Slooking_at, 1, 1, 0,
362This function modifies the match data that `match-beginning', 362This function modifies the match data that `match-beginning',
363`match-end' and `match-data' access; save and restore the match 363`match-end' and `match-data' access; save and restore the match
364data if you want to preserve them. */) 364data if you want to preserve them. */)
365 (regexp) 365 (Lisp_Object regexp)
366 Lisp_Object regexp;
367{ 366{
368 return looking_at_1 (regexp, 0); 367 return looking_at_1 (regexp, 0);
369} 368}
@@ -374,8 +373,7 @@ Find the longest match, in accord with Posix regular expression rules.
374This function modifies the match data that `match-beginning', 373This function modifies the match data that `match-beginning',
375`match-end' and `match-data' access; save and restore the match 374`match-end' and `match-data' access; save and restore the match
376data if you want to preserve them. */) 375data if you want to preserve them. */)
377 (regexp) 376 (Lisp_Object regexp)
378 Lisp_Object regexp;
379{ 377{
380 return looking_at_1 (regexp, 1); 378 return looking_at_1 (regexp, 1);
381} 379}
@@ -461,8 +459,7 @@ matched by parenthesis constructs in the pattern.
461 459
462You can use the function `match-string' to extract the substrings 460You can use the function `match-string' to extract the substrings
463matched by the parenthesis constructions in REGEXP. */) 461matched by the parenthesis constructions in REGEXP. */)
464 (regexp, string, start) 462 (Lisp_Object regexp, Lisp_Object string, Lisp_Object start)
465 Lisp_Object regexp, string, start;
466{ 463{
467 return string_match_1 (regexp, string, start, 0); 464 return string_match_1 (regexp, string, start, 0);
468} 465}
@@ -475,8 +472,7 @@ If third arg START is non-nil, start search at that index in STRING.
475For index of first char beyond the match, do (match-end 0). 472For index of first char beyond the match, do (match-end 0).
476`match-end' and `match-beginning' also give indices of substrings 473`match-end' and `match-beginning' also give indices of substrings
477matched by parenthesis constructs in the pattern. */) 474matched by parenthesis constructs in the pattern. */)
478 (regexp, string, start) 475 (Lisp_Object regexp, Lisp_Object string, Lisp_Object start)
479 Lisp_Object regexp, string, start;
480{ 476{
481 return string_match_1 (regexp, string, start, 1); 477 return string_match_1 (regexp, string, start, 1);
482} 478}
@@ -2216,8 +2212,7 @@ Search case-sensitivity is determined by the value of the variable
2216`case-fold-search', which see. 2212`case-fold-search', which see.
2217 2213
2218See also the functions `match-beginning', `match-end' and `replace-match'. */) 2214See also the functions `match-beginning', `match-end' and `replace-match'. */)
2219 (string, bound, noerror, count) 2215 (Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
2220 Lisp_Object string, bound, noerror, count;
2221{ 2216{
2222 return search_command (string, bound, noerror, count, -1, 0, 0); 2217 return search_command (string, bound, noerror, count, -1, 0, 0);
2223} 2218}
@@ -2236,8 +2231,7 @@ Search case-sensitivity is determined by the value of the variable
2236`case-fold-search', which see. 2231`case-fold-search', which see.
2237 2232
2238See also the functions `match-beginning', `match-end' and `replace-match'. */) 2233See also the functions `match-beginning', `match-end' and `replace-match'. */)
2239 (string, bound, noerror, count) 2234 (Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
2240 Lisp_Object string, bound, noerror, count;
2241{ 2235{
2242 return search_command (string, bound, noerror, count, 1, 0, 0); 2236 return search_command (string, bound, noerror, count, 1, 0, 0);
2243} 2237}
@@ -2251,8 +2245,7 @@ The match found must not extend before that position.
2251Optional third argument, if t, means if fail just return nil (no error). 2245Optional third argument, if t, means if fail just return nil (no error).
2252 If not nil and not t, move to limit of search and return nil. 2246 If not nil and not t, move to limit of search and return nil.
2253Optional fourth argument is repeat count--search for successive occurrences. */) 2247Optional fourth argument is repeat count--search for successive occurrences. */)
2254 (string, bound, noerror, count) 2248 (Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
2255 Lisp_Object string, bound, noerror, count;
2256{ 2249{
2257 return search_command (wordify (string, 0), bound, noerror, count, -1, 1, 0); 2250 return search_command (wordify (string, 0), bound, noerror, count, -1, 1, 0);
2258} 2251}
@@ -2266,8 +2259,7 @@ The match found must not extend after that position.
2266Optional third argument, if t, means if fail just return nil (no error). 2259Optional third argument, if t, means if fail just return nil (no error).
2267 If not nil and not t, move to limit of search and return nil. 2260 If not nil and not t, move to limit of search and return nil.
2268Optional fourth argument is repeat count--search for successive occurrences. */) 2261Optional fourth argument is repeat count--search for successive occurrences. */)
2269 (string, bound, noerror, count) 2262 (Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
2270 Lisp_Object string, bound, noerror, count;
2271{ 2263{
2272 return search_command (wordify (string, 0), bound, noerror, count, 1, 1, 0); 2264 return search_command (wordify (string, 0), bound, noerror, count, 1, 1, 0);
2273} 2265}
@@ -2285,8 +2277,7 @@ The match found must not extend before that position.
2285Optional third argument, if t, means if fail just return nil (no error). 2277Optional third argument, if t, means if fail just return nil (no error).
2286 If not nil and not t, move to limit of search and return nil. 2278 If not nil and not t, move to limit of search and return nil.
2287Optional fourth argument is repeat count--search for successive occurrences. */) 2279Optional fourth argument is repeat count--search for successive occurrences. */)
2288 (string, bound, noerror, count) 2280 (Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
2289 Lisp_Object string, bound, noerror, count;
2290{ 2281{
2291 return search_command (wordify (string, 1), bound, noerror, count, -1, 1, 0); 2282 return search_command (wordify (string, 1), bound, noerror, count, -1, 1, 0);
2292} 2283}
@@ -2304,8 +2295,7 @@ The match found must not extend after that position.
2304Optional third argument, if t, means if fail just return nil (no error). 2295Optional third argument, if t, means if fail just return nil (no error).
2305 If not nil and not t, move to limit of search and return nil. 2296 If not nil and not t, move to limit of search and return nil.
2306Optional fourth argument is repeat count--search for successive occurrences. */) 2297Optional fourth argument is repeat count--search for successive occurrences. */)
2307 (string, bound, noerror, count) 2298 (Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
2308 Lisp_Object string, bound, noerror, count;
2309{ 2299{
2310 return search_command (wordify (string, 1), bound, noerror, count, 1, 1, 0); 2300 return search_command (wordify (string, 1), bound, noerror, count, 1, 1, 0);
2311} 2301}
@@ -2323,8 +2313,7 @@ Optional third argument, if t, means if fail just return nil (no error).
2323Optional fourth argument is repeat count--search for successive occurrences. 2313Optional fourth argument is repeat count--search for successive occurrences.
2324See also the functions `match-beginning', `match-end', `match-string', 2314See also the functions `match-beginning', `match-end', `match-string',
2325and `replace-match'. */) 2315and `replace-match'. */)
2326 (regexp, bound, noerror, count) 2316 (Lisp_Object regexp, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
2327 Lisp_Object regexp, bound, noerror, count;
2328{ 2317{
2329 return search_command (regexp, bound, noerror, count, -1, 1, 0); 2318 return search_command (regexp, bound, noerror, count, -1, 1, 0);
2330} 2319}
@@ -2340,8 +2329,7 @@ Optional third argument, if t, means if fail just return nil (no error).
2340Optional fourth argument is repeat count--search for successive occurrences. 2329Optional fourth argument is repeat count--search for successive occurrences.
2341See also the functions `match-beginning', `match-end', `match-string', 2330See also the functions `match-beginning', `match-end', `match-string',
2342and `replace-match'. */) 2331and `replace-match'. */)
2343 (regexp, bound, noerror, count) 2332 (Lisp_Object regexp, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
2344 Lisp_Object regexp, bound, noerror, count;
2345{ 2333{
2346 return search_command (regexp, bound, noerror, count, 1, 1, 0); 2334 return search_command (regexp, bound, noerror, count, 1, 1, 0);
2347} 2335}
@@ -2360,8 +2348,7 @@ Optional third argument, if t, means if fail just return nil (no error).
2360Optional fourth argument is repeat count--search for successive occurrences. 2348Optional fourth argument is repeat count--search for successive occurrences.
2361See also the functions `match-beginning', `match-end', `match-string', 2349See also the functions `match-beginning', `match-end', `match-string',
2362and `replace-match'. */) 2350and `replace-match'. */)
2363 (regexp, bound, noerror, count) 2351 (Lisp_Object regexp, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
2364 Lisp_Object regexp, bound, noerror, count;
2365{ 2352{
2366 return search_command (regexp, bound, noerror, count, -1, 1, 1); 2353 return search_command (regexp, bound, noerror, count, -1, 1, 1);
2367} 2354}
@@ -2378,8 +2365,7 @@ Optional third argument, if t, means if fail just return nil (no error).
2378Optional fourth argument is repeat count--search for successive occurrences. 2365Optional fourth argument is repeat count--search for successive occurrences.
2379See also the functions `match-beginning', `match-end', `match-string', 2366See also the functions `match-beginning', `match-end', `match-string',
2380and `replace-match'. */) 2367and `replace-match'. */)
2381 (regexp, bound, noerror, count) 2368 (Lisp_Object regexp, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
2382 Lisp_Object regexp, bound, noerror, count;
2383{ 2369{
2384 return search_command (regexp, bound, noerror, count, 1, 1, 1); 2370 return search_command (regexp, bound, noerror, count, 1, 1, 1);
2385} 2371}
@@ -2420,8 +2406,7 @@ This is, in a vague sense, the inverse of using `\\N' in NEWTEXT;
2420NEWTEXT in place of subexp N. 2406NEWTEXT in place of subexp N.
2421This is useful only after a regular expression search or match, 2407This is useful only after a regular expression search or match,
2422since only regular expressions have distinguished subexpressions. */) 2408since only regular expressions have distinguished subexpressions. */)
2423 (newtext, fixedcase, literal, string, subexp) 2409 (Lisp_Object newtext, Lisp_Object fixedcase, Lisp_Object literal, Lisp_Object string, Lisp_Object subexp)
2424 Lisp_Object newtext, fixedcase, literal, string, subexp;
2425{ 2410{
2426 enum { nochange, all_caps, cap_initial } case_action; 2411 enum { nochange, all_caps, cap_initial } case_action;
2427 register int pos, pos_byte; 2412 register int pos, pos_byte;
@@ -2861,8 +2846,7 @@ SUBEXP, a number, specifies which parenthesized expression in the last
2861Value is nil if SUBEXPth pair didn't match, or there were less than 2846Value is nil if SUBEXPth pair didn't match, or there were less than
2862 SUBEXP pairs. 2847 SUBEXP pairs.
2863Zero means the entire text matched by the whole regexp or whole string. */) 2848Zero means the entire text matched by the whole regexp or whole string. */)
2864 (subexp) 2849 (Lisp_Object subexp)
2865 Lisp_Object subexp;
2866{ 2850{
2867 return match_limit (subexp, 1); 2851 return match_limit (subexp, 1);
2868} 2852}
@@ -2874,8 +2858,7 @@ SUBEXP, a number, specifies which parenthesized expression in the last
2874Value is nil if SUBEXPth pair didn't match, or there were less than 2858Value is nil if SUBEXPth pair didn't match, or there were less than
2875 SUBEXP pairs. 2859 SUBEXP pairs.
2876Zero means the entire text matched by the whole regexp or whole string. */) 2860Zero means the entire text matched by the whole regexp or whole string. */)
2877 (subexp) 2861 (Lisp_Object subexp)
2878 Lisp_Object subexp;
2879{ 2862{
2880 return match_limit (subexp, 0); 2863 return match_limit (subexp, 0);
2881} 2864}
@@ -2900,8 +2883,7 @@ If optional third arg RESEAT is non-nil, any previous markers on the
2900REUSE list will be modified to point to nowhere. 2883REUSE list will be modified to point to nowhere.
2901 2884
2902Return value is undefined if the last search failed. */) 2885Return value is undefined if the last search failed. */)
2903 (integers, reuse, reseat) 2886 (Lisp_Object integers, Lisp_Object reuse, Lisp_Object reseat)
2904 Lisp_Object integers, reuse, reseat;
2905{ 2887{
2906 Lisp_Object tail, prev; 2888 Lisp_Object tail, prev;
2907 Lisp_Object *data; 2889 Lisp_Object *data;
@@ -3001,8 +2983,7 @@ DEFUN ("set-match-data", Fset_match_data, Sset_match_data, 1, 2, 0,
3001LIST should have been created by calling `match-data' previously. 2983LIST should have been created by calling `match-data' previously.
3002 2984
3003If optional arg RESEAT is non-nil, make markers on LIST point nowhere. */) 2985If optional arg RESEAT is non-nil, make markers on LIST point nowhere. */)
3004 (list, reseat) 2986 (register Lisp_Object list, Lisp_Object reseat)
3005 register Lisp_Object list, reseat;
3006{ 2987{
3007 register int i; 2988 register int i;
3008 register Lisp_Object marker; 2989 register Lisp_Object marker;
@@ -3176,8 +3157,7 @@ record_unwind_save_match_data (void)
3176 3157
3177DEFUN ("regexp-quote", Fregexp_quote, Sregexp_quote, 1, 1, 0, 3158DEFUN ("regexp-quote", Fregexp_quote, Sregexp_quote, 1, 1, 0,
3178 doc: /* Return a regexp string which matches exactly STRING and nothing else. */) 3159 doc: /* Return a regexp string which matches exactly STRING and nothing else. */)
3179 (string) 3160 (Lisp_Object string)
3180 Lisp_Object string;
3181{ 3161{
3182 register unsigned char *in, *out, *end; 3162 register unsigned char *in, *out, *end;
3183 register unsigned char *temp; 3163 register unsigned char *temp;
diff --git a/src/sound.c b/src/sound.c
index 87703dca5af..2bf0b59ffd6 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -1353,8 +1353,7 @@ DEFUN ("play-sound-internal", Fplay_sound_internal, Splay_sound_internal, 1, 1,
1353 doc: /* Play sound SOUND. 1353 doc: /* Play sound SOUND.
1354 1354
1355Internal use only, use `play-sound' instead. */) 1355Internal use only, use `play-sound' instead. */)
1356 (sound) 1356 (Lisp_Object sound)
1357 Lisp_Object sound;
1358{ 1357{
1359 Lisp_Object attrs[SOUND_ATTR_SENTINEL]; 1358 Lisp_Object attrs[SOUND_ATTR_SENTINEL];
1360 int count = SPECPDL_INDEX (); 1359 int count = SPECPDL_INDEX ();
diff --git a/src/syntax.c b/src/syntax.c
index 7f3557f8441..3857f15cd10 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -721,8 +721,7 @@ back_comment (EMACS_INT from, EMACS_INT from_byte, EMACS_INT stop, int comnested
721DEFUN ("syntax-table-p", Fsyntax_table_p, Ssyntax_table_p, 1, 1, 0, 721DEFUN ("syntax-table-p", Fsyntax_table_p, Ssyntax_table_p, 1, 1, 0,
722 doc: /* Return t if OBJECT is a syntax table. 722 doc: /* Return t if OBJECT is a syntax table.
723Currently, any char-table counts as a syntax table. */) 723Currently, any char-table counts as a syntax table. */)
724 (object) 724 (Lisp_Object object)
725 Lisp_Object object;
726{ 725{
727 if (CHAR_TABLE_P (object) 726 if (CHAR_TABLE_P (object)
728 && EQ (XCHAR_TABLE (object)->purpose, Qsyntax_table)) 727 && EQ (XCHAR_TABLE (object)->purpose, Qsyntax_table))
@@ -740,7 +739,7 @@ check_syntax_table (Lisp_Object obj)
740DEFUN ("syntax-table", Fsyntax_table, Ssyntax_table, 0, 0, 0, 739DEFUN ("syntax-table", Fsyntax_table, Ssyntax_table, 0, 0, 0,
741 doc: /* Return the current syntax table. 740 doc: /* Return the current syntax table.
742This is the one specified by the current buffer. */) 741This is the one specified by the current buffer. */)
743 () 742 (void)
744{ 743{
745 return current_buffer->syntax_table; 744 return current_buffer->syntax_table;
746} 745}
@@ -749,7 +748,7 @@ DEFUN ("standard-syntax-table", Fstandard_syntax_table,
749 Sstandard_syntax_table, 0, 0, 0, 748 Sstandard_syntax_table, 0, 0, 0,
750 doc: /* Return the standard syntax table. 749 doc: /* Return the standard syntax table.
751This is the one used for new buffers. */) 750This is the one used for new buffers. */)
752 () 751 (void)
753{ 752{
754 return Vstandard_syntax_table; 753 return Vstandard_syntax_table;
755} 754}
@@ -757,8 +756,7 @@ This is the one used for new buffers. */)
757DEFUN ("copy-syntax-table", Fcopy_syntax_table, Scopy_syntax_table, 0, 1, 0, 756DEFUN ("copy-syntax-table", Fcopy_syntax_table, Scopy_syntax_table, 0, 1, 0,
758 doc: /* Construct a new syntax table and return it. 757 doc: /* Construct a new syntax table and return it.
759It is a copy of the TABLE, which defaults to the standard syntax table. */) 758It is a copy of the TABLE, which defaults to the standard syntax table. */)
760 (table) 759 (Lisp_Object table)
761 Lisp_Object table;
762{ 760{
763 Lisp_Object copy; 761 Lisp_Object copy;
764 762
@@ -784,8 +782,7 @@ It is a copy of the TABLE, which defaults to the standard syntax table. */)
784DEFUN ("set-syntax-table", Fset_syntax_table, Sset_syntax_table, 1, 1, 0, 782DEFUN ("set-syntax-table", Fset_syntax_table, Sset_syntax_table, 1, 1, 0,
785 doc: /* Select a new syntax table for the current buffer. 783 doc: /* Select a new syntax table for the current buffer.
786One argument, a syntax table. */) 784One argument, a syntax table. */)
787 (table) 785 (Lisp_Object table)
788 Lisp_Object table;
789{ 786{
790 int idx; 787 int idx;
791 check_syntax_table (table); 788 check_syntax_table (table);
@@ -844,8 +841,7 @@ For example, if CHARACTER is a word constituent, the
844character `w' (119) is returned. 841character `w' (119) is returned.
845The characters that correspond to various syntax codes 842The characters that correspond to various syntax codes
846are listed in the documentation of `modify-syntax-entry'. */) 843are listed in the documentation of `modify-syntax-entry'. */)
847 (character) 844 (Lisp_Object character)
848 Lisp_Object character;
849{ 845{
850 int char_int; 846 int char_int;
851 CHECK_CHARACTER (character); 847 CHECK_CHARACTER (character);
@@ -856,8 +852,7 @@ are listed in the documentation of `modify-syntax-entry'. */)
856 852
857DEFUN ("matching-paren", Fmatching_paren, Smatching_paren, 1, 1, 0, 853DEFUN ("matching-paren", Fmatching_paren, Smatching_paren, 1, 1, 0,
858 doc: /* Return the matching parenthesis of CHARACTER, or nil if none. */) 854 doc: /* Return the matching parenthesis of CHARACTER, or nil if none. */)
859 (character) 855 (Lisp_Object character)
860 Lisp_Object character;
861{ 856{
862 int char_int, code; 857 int char_int, code;
863 CHECK_NUMBER (character); 858 CHECK_NUMBER (character);
@@ -875,8 +870,7 @@ STRING should be a string as it is allowed as argument of
875`modify-syntax-entry'. Value is the equivalent cons cell 870`modify-syntax-entry'. Value is the equivalent cons cell
876\(CODE . MATCHING-CHAR) that can be used as value of a `syntax-table' 871\(CODE . MATCHING-CHAR) that can be used as value of a `syntax-table'
877text property. */) 872text property. */)
878 (string) 873 (Lisp_Object string)
879 Lisp_Object string;
880{ 874{
881 register const unsigned char *p; 875 register const unsigned char *p;
882 register enum syntaxcode code; 876 register enum syntaxcode code;
@@ -987,8 +981,7 @@ this flag:
987 such characters are treated as whitespace when they occur 981 such characters are treated as whitespace when they occur
988 between expressions. 982 between expressions.
989usage: (modify-syntax-entry CHAR NEWENTRY &optional SYNTAX-TABLE) */) 983usage: (modify-syntax-entry CHAR NEWENTRY &optional SYNTAX-TABLE) */)
990 (c, newentry, syntax_table) 984 (Lisp_Object c, Lisp_Object newentry, Lisp_Object syntax_table)
991 Lisp_Object c, newentry, syntax_table;
992{ 985{
993 if (CONSP (c)) 986 if (CONSP (c))
994 { 987 {
@@ -1021,8 +1014,7 @@ usage: (modify-syntax-entry CHAR NEWENTRY &optional SYNTAX-TABLE) */)
1021DEFUN ("internal-describe-syntax-value", Finternal_describe_syntax_value, 1014DEFUN ("internal-describe-syntax-value", Finternal_describe_syntax_value,
1022 Sinternal_describe_syntax_value, 1, 1, 0, 1015 Sinternal_describe_syntax_value, 1, 1, 0,
1023 doc: /* Insert a description of the internal syntax description SYNTAX at point. */) 1016 doc: /* Insert a description of the internal syntax description SYNTAX at point. */)
1024 (syntax) 1017 (Lisp_Object syntax)
1025 Lisp_Object syntax;
1026{ 1018{
1027 register enum syntaxcode code; 1019 register enum syntaxcode code;
1028 char desc, start1, start2, end1, end2, prefix, comstyle, comnested; 1020 char desc, start1, start2, end1, end2, prefix, comstyle, comnested;
@@ -1307,8 +1299,7 @@ Normally returns t.
1307If an edge of the buffer or a field boundary is reached, point is left there 1299If an edge of the buffer or a field boundary is reached, point is left there
1308and the function returns nil. Field boundaries are not noticed if 1300and the function returns nil. Field boundaries are not noticed if
1309`inhibit-field-text-motion' is non-nil. */) 1301`inhibit-field-text-motion' is non-nil. */)
1310 (arg) 1302 (Lisp_Object arg)
1311 Lisp_Object arg;
1312{ 1303{
1313 Lisp_Object tmp; 1304 Lisp_Object tmp;
1314 int orig_val, val; 1305 int orig_val, val;
@@ -1343,8 +1334,7 @@ With arg "^a-zA-Z", skips nonletters stopping before first letter.
1343Char classes, e.g. `[:alpha:]', are supported. 1334Char classes, e.g. `[:alpha:]', are supported.
1344 1335
1345Returns the distance traveled, either zero or positive. */) 1336Returns the distance traveled, either zero or positive. */)
1346 (string, lim) 1337 (Lisp_Object string, Lisp_Object lim)
1347 Lisp_Object string, lim;
1348{ 1338{
1349 return skip_chars (1, string, lim, 1); 1339 return skip_chars (1, string, lim, 1);
1350} 1340}
@@ -1353,8 +1343,7 @@ DEFUN ("skip-chars-backward", Fskip_chars_backward, Sskip_chars_backward, 1, 2,
1353 doc: /* Move point backward, stopping after a char not in STRING, or at pos LIM. 1343 doc: /* Move point backward, stopping after a char not in STRING, or at pos LIM.
1354See `skip-chars-forward' for details. 1344See `skip-chars-forward' for details.
1355Returns the distance traveled, either zero or negative. */) 1345Returns the distance traveled, either zero or negative. */)
1356 (string, lim) 1346 (Lisp_Object string, Lisp_Object lim)
1357 Lisp_Object string, lim;
1358{ 1347{
1359 return skip_chars (0, string, lim, 1); 1348 return skip_chars (0, string, lim, 1);
1360} 1349}
@@ -1365,8 +1354,7 @@ SYNTAX is a string of syntax code characters.
1365Stop before a char whose syntax is not in SYNTAX, or at position LIM. 1354Stop before a char whose syntax is not in SYNTAX, or at position LIM.
1366If SYNTAX starts with ^, skip characters whose syntax is NOT in SYNTAX. 1355If SYNTAX starts with ^, skip characters whose syntax is NOT in SYNTAX.
1367This function returns the distance traveled, either zero or positive. */) 1356This function returns the distance traveled, either zero or positive. */)
1368 (syntax, lim) 1357 (Lisp_Object syntax, Lisp_Object lim)
1369 Lisp_Object syntax, lim;
1370{ 1358{
1371 return skip_syntaxes (1, syntax, lim); 1359 return skip_syntaxes (1, syntax, lim);
1372} 1360}
@@ -1377,8 +1365,7 @@ SYNTAX is a string of syntax code characters.
1377Stop on reaching a char whose syntax is not in SYNTAX, or at position LIM. 1365Stop on reaching a char whose syntax is not in SYNTAX, or at position LIM.
1378If SYNTAX starts with ^, skip characters whose syntax is NOT in SYNTAX. 1366If SYNTAX starts with ^, skip characters whose syntax is NOT in SYNTAX.
1379This function returns the distance traveled, either zero or negative. */) 1367This function returns the distance traveled, either zero or negative. */)
1380 (syntax, lim) 1368 (Lisp_Object syntax, Lisp_Object lim)
1381 Lisp_Object syntax, lim;
1382{ 1369{
1383 return skip_syntaxes (0, syntax, lim); 1370 return skip_syntaxes (0, syntax, lim);
1384} 1371}
@@ -2193,8 +2180,7 @@ Stop scanning if we find something other than a comment or whitespace.
2193Set point to where scanning stops. 2180Set point to where scanning stops.
2194If COUNT comments are found as expected, with nothing except whitespace 2181If COUNT comments are found as expected, with nothing except whitespace
2195between them, return t; otherwise return nil. */) 2182between them, return t; otherwise return nil. */)
2196 (count) 2183 (Lisp_Object count)
2197 Lisp_Object count;
2198{ 2184{
2199 register EMACS_INT from; 2185 register EMACS_INT from;
2200 EMACS_INT from_byte; 2186 EMACS_INT from_byte;
@@ -2797,8 +2783,7 @@ Comments are ignored if `parse-sexp-ignore-comments' is non-nil.
2797If the beginning or end of (the accessible part of) the buffer is reached 2783If the beginning or end of (the accessible part of) the buffer is reached
2798and the depth is wrong, an error is signaled. 2784and the depth is wrong, an error is signaled.
2799If the depth is right but the count is not used up, nil is returned. */) 2785If the depth is right but the count is not used up, nil is returned. */)
2800 (from, count, depth) 2786 (Lisp_Object from, Lisp_Object count, Lisp_Object depth)
2801 Lisp_Object from, count, depth;
2802{ 2787{
2803 CHECK_NUMBER (from); 2788 CHECK_NUMBER (from);
2804 CHECK_NUMBER (count); 2789 CHECK_NUMBER (count);
@@ -2818,8 +2803,7 @@ If the beginning or end of (the accessible part of) the buffer is reached
2818in the middle of a parenthetical grouping, an error is signaled. 2803in the middle of a parenthetical grouping, an error is signaled.
2819If the beginning or end is reached between groupings 2804If the beginning or end is reached between groupings
2820but before count is used up, nil is returned. */) 2805but before count is used up, nil is returned. */)
2821 (from, count) 2806 (Lisp_Object from, Lisp_Object count)
2822 Lisp_Object from, count;
2823{ 2807{
2824 CHECK_NUMBER (from); 2808 CHECK_NUMBER (from);
2825 CHECK_NUMBER (count); 2809 CHECK_NUMBER (count);
@@ -2831,7 +2815,7 @@ DEFUN ("backward-prefix-chars", Fbackward_prefix_chars, Sbackward_prefix_chars,
2831 0, 0, 0, 2815 0, 0, 0,
2832 doc: /* Move point backward over any number of chars with prefix syntax. 2816 doc: /* Move point backward over any number of chars with prefix syntax.
2833This includes chars with "quote" or "prefix" syntax (' or p). */) 2817This includes chars with "quote" or "prefix" syntax (' or p). */)
2834 () 2818 (void)
2835{ 2819{
2836 int beg = BEGV; 2820 int beg = BEGV;
2837 int opoint = PT; 2821 int opoint = PT;
@@ -3255,8 +3239,7 @@ Fifth arg OLDSTATE is a list like what this function returns.
3255Sixth arg COMMENTSTOP non-nil means stop at the start of a comment. 3239Sixth arg COMMENTSTOP non-nil means stop at the start of a comment.
3256 If it is symbol `syntax-table', stop after the start of a comment or a 3240 If it is symbol `syntax-table', stop after the start of a comment or a
3257 string, or after end of a comment or a string. */) 3241 string, or after end of a comment or a string. */)
3258 (from, to, targetdepth, stopbefore, oldstate, commentstop) 3242 (Lisp_Object from, Lisp_Object to, Lisp_Object targetdepth, Lisp_Object stopbefore, Lisp_Object oldstate, Lisp_Object commentstop)
3259 Lisp_Object from, to, targetdepth, stopbefore, oldstate, commentstop;
3260{ 3243{
3261 struct lisp_parse_state state; 3244 struct lisp_parse_state state;
3262 int target; 3245 int target;
diff --git a/src/term.c b/src/term.c
index ec30796bfff..53879e57e5b 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2133,8 +2133,7 @@ DEFUN ("tty-display-color-p", Ftty_display_color_p, Stty_display_color_p,
2133TERMINAL can be a terminal object, a frame, or nil (meaning the 2133TERMINAL can be a terminal object, a frame, or nil (meaning the
2134selected frame's terminal). This function always returns nil if 2134selected frame's terminal). This function always returns nil if
2135TERMINAL does not refer to a text-only terminal. */) 2135TERMINAL does not refer to a text-only terminal. */)
2136 (terminal) 2136 (Lisp_Object terminal)
2137 Lisp_Object terminal;
2138{ 2137{
2139 struct terminal *t = get_tty_terminal (terminal, 0); 2138 struct terminal *t = get_tty_terminal (terminal, 0);
2140 if (!t) 2139 if (!t)
@@ -2151,8 +2150,7 @@ DEFUN ("tty-display-color-cells", Ftty_display_color_cells,
2151TERMINAL can be a terminal object, a frame, or nil (meaning the 2150TERMINAL can be a terminal object, a frame, or nil (meaning the
2152selected frame's terminal). This function always returns 0 if 2151selected frame's terminal). This function always returns 0 if
2153TERMINAL does not refer to a text-only terminal. */) 2152TERMINAL does not refer to a text-only terminal. */)
2154 (terminal) 2153 (Lisp_Object terminal)
2155 Lisp_Object terminal;
2156{ 2154{
2157 struct terminal *t = get_tty_terminal (terminal, 0); 2155 struct terminal *t = get_tty_terminal (terminal, 0);
2158 if (!t) 2156 if (!t)
@@ -2336,8 +2334,7 @@ Returns nil if TERMINAL is not on a tty device.
2336 2334
2337TERMINAL can be a terminal object, a frame, or nil (meaning the 2335TERMINAL can be a terminal object, a frame, or nil (meaning the
2338selected frame's terminal). */) 2336selected frame's terminal). */)
2339 (terminal) 2337 (Lisp_Object terminal)
2340 Lisp_Object terminal;
2341{ 2338{
2342 struct terminal *t = get_terminal (terminal, 1); 2339 struct terminal *t = get_terminal (terminal, 1);
2343 2340
@@ -2356,8 +2353,7 @@ DEFUN ("controlling-tty-p", Fcontrolling_tty_p, Scontrolling_tty_p, 0, 1, 0,
2356TERMINAL can be a terminal object, a frame, or nil (meaning the 2353TERMINAL can be a terminal object, a frame, or nil (meaning the
2357selected frame's terminal). This function always returns nil if 2354selected frame's terminal). This function always returns nil if
2358TERMINAL is not on a tty device. */) 2355TERMINAL is not on a tty device. */)
2359 (terminal) 2356 (Lisp_Object terminal)
2360 Lisp_Object terminal;
2361{ 2357{
2362 struct terminal *t = get_terminal (terminal, 1); 2358 struct terminal *t = get_terminal (terminal, 1);
2363 2359
@@ -2377,8 +2373,7 @@ no effect if used on a non-tty terminal.
2377TERMINAL can be a terminal object, a frame or nil (meaning the 2373TERMINAL can be a terminal object, a frame or nil (meaning the
2378selected frame's terminal). This function always returns nil if 2374selected frame's terminal). This function always returns nil if
2379TERMINAL does not refer to a text-only terminal. */) 2375TERMINAL does not refer to a text-only terminal. */)
2380 (terminal) 2376 (Lisp_Object terminal)
2381 Lisp_Object terminal;
2382{ 2377{
2383 struct terminal *t = get_terminal (terminal, 1); 2378 struct terminal *t = get_terminal (terminal, 1);
2384 2379
@@ -2408,8 +2403,7 @@ terminal device.
2408suspended. 2403suspended.
2409 2404
2410A suspended tty may be resumed by calling `resume-tty' on it. */) 2405A suspended tty may be resumed by calling `resume-tty' on it. */)
2411 (tty) 2406 (Lisp_Object tty)
2412 Lisp_Object tty;
2413{ 2407{
2414 struct terminal *t = get_tty_terminal (tty, 1); 2408 struct terminal *t = get_tty_terminal (tty, 1);
2415 FILE *f; 2409 FILE *f;
@@ -2475,8 +2469,7 @@ suspended.
2475 2469
2476TTY may be a terminal object, a frame, or nil (meaning the selected 2470TTY may be a terminal object, a frame, or nil (meaning the selected
2477frame's terminal). */) 2471frame's terminal). */)
2478 (tty) 2472 (Lisp_Object tty)
2479 Lisp_Object tty;
2480{ 2473{
2481 struct terminal *t = get_tty_terminal (tty, 1); 2474 struct terminal *t = get_tty_terminal (tty, 1);
2482 int fd; 2475 int fd;
@@ -3148,7 +3141,7 @@ DEFUN ("gpm-mouse-start", Fgpm_mouse_start, Sgpm_mouse_start,
3148 0, 0, 0, 3141 0, 0, 0,
3149 doc: /* Open a connection to Gpm. 3142 doc: /* Open a connection to Gpm.
3150Gpm-mouse can only be activated for one tty at a time. */) 3143Gpm-mouse can only be activated for one tty at a time. */)
3151 () 3144 (void)
3152{ 3145{
3153 struct frame *f = SELECTED_FRAME (); 3146 struct frame *f = SELECTED_FRAME ();
3154 struct tty_display_info *tty 3147 struct tty_display_info *tty
@@ -3196,7 +3189,7 @@ close_gpm (int fd)
3196DEFUN ("gpm-mouse-stop", Fgpm_mouse_stop, Sgpm_mouse_stop, 3189DEFUN ("gpm-mouse-stop", Fgpm_mouse_stop, Sgpm_mouse_stop,
3197 0, 0, 0, 3190 0, 0, 0,
3198 doc: /* Close a connection to Gpm. */) 3191 doc: /* Close a connection to Gpm. */)
3199 () 3192 (void)
3200{ 3193{
3201 struct frame *f = SELECTED_FRAME (); 3194 struct frame *f = SELECTED_FRAME ();
3202 struct tty_display_info *tty 3195 struct tty_display_info *tty
diff --git a/src/terminal.c b/src/terminal.c
index 5659f7d2370..bda6c307a10 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -300,8 +300,7 @@ selected frame's terminal).
300 300
301Normally, you may not delete a display if all other displays are suspended, 301Normally, you may not delete a display if all other displays are suspended,
302but if the second argument FORCE is non-nil, you may do so. */) 302but if the second argument FORCE is non-nil, you may do so. */)
303 (terminal, force) 303 (Lisp_Object terminal, Lisp_Object force)
304 Lisp_Object terminal, force;
305{ 304{
306 struct terminal *t = get_terminal (terminal, 0); 305 struct terminal *t = get_terminal (terminal, 0);
307 306
@@ -342,8 +341,7 @@ DEFUN ("frame-terminal", Fframe_terminal, Sframe_terminal, 0, 1, 0,
342If FRAME is nil, the selected frame is used. 341If FRAME is nil, the selected frame is used.
343 342
344The terminal device is represented by its integer identifier. */) 343The terminal device is represented by its integer identifier. */)
345 (frame) 344 (Lisp_Object frame)
346 Lisp_Object frame;
347{ 345{
348 struct terminal *t; 346 struct terminal *t;
349 347
@@ -370,8 +368,7 @@ Value is nil if OBJECT is not a live display terminal.
370If object is a live display terminal, the return value indicates what 368If object is a live display terminal, the return value indicates what
371sort of output terminal it uses. See the documentation of `framep' for 369sort of output terminal it uses. See the documentation of `framep' for
372possible return values. */) 370possible return values. */)
373 (object) 371 (Lisp_Object object)
374 Lisp_Object object;
375{ 372{
376 struct terminal *t; 373 struct terminal *t;
377 374
@@ -402,7 +399,7 @@ possible return values. */)
402 399
403DEFUN ("terminal-list", Fterminal_list, Sterminal_list, 0, 0, 0, 400DEFUN ("terminal-list", Fterminal_list, Sterminal_list, 0, 0, 0,
404 doc: /* Return a list of all terminal devices. */) 401 doc: /* Return a list of all terminal devices. */)
405 () 402 (void)
406{ 403{
407 Lisp_Object terminal, terminals = Qnil; 404 Lisp_Object terminal, terminals = Qnil;
408 struct terminal *t; 405 struct terminal *t;
@@ -422,8 +419,7 @@ It is not guaranteed that the returned value is unique among opened devices.
422 419
423TERMINAL may be a terminal object, a frame, or nil (meaning the 420TERMINAL may be a terminal object, a frame, or nil (meaning the
424selected frame's terminal). */) 421selected frame's terminal). */)
425 (terminal) 422 (Lisp_Object terminal)
426 Lisp_Object terminal;
427{ 423{
428 struct terminal *t 424 struct terminal *t
429 = TERMINALP (terminal) ? XTERMINAL (terminal) : get_terminal (terminal, 1); 425 = TERMINALP (terminal) ? XTERMINAL (terminal) : get_terminal (terminal, 1);
@@ -471,8 +467,7 @@ is a symbol.
471 467
472TERMINAL can be a terminal object, a frame, or nil (meaning the 468TERMINAL can be a terminal object, a frame, or nil (meaning the
473selected frame's terminal). */) 469selected frame's terminal). */)
474 (terminal) 470 (Lisp_Object terminal)
475 Lisp_Object terminal;
476{ 471{
477 struct terminal *t 472 struct terminal *t
478 = TERMINALP (terminal) ? XTERMINAL (terminal) : get_terminal (terminal, 1); 473 = TERMINALP (terminal) ? XTERMINAL (terminal) : get_terminal (terminal, 1);
@@ -483,9 +478,7 @@ DEFUN ("terminal-parameter", Fterminal_parameter, Sterminal_parameter, 2, 2, 0,
483 doc: /* Return TERMINAL's value for parameter PARAMETER. 478 doc: /* Return TERMINAL's value for parameter PARAMETER.
484TERMINAL can be a terminal object, a frame, or nil (meaning the 479TERMINAL can be a terminal object, a frame, or nil (meaning the
485selected frame's terminal). */) 480selected frame's terminal). */)
486 (terminal, parameter) 481 (Lisp_Object terminal, Lisp_Object parameter)
487 Lisp_Object terminal;
488 Lisp_Object parameter;
489{ 482{
490 Lisp_Object value; 483 Lisp_Object value;
491 struct terminal *t 484 struct terminal *t
@@ -502,10 +495,7 @@ Return the previous value of PARAMETER.
502 495
503TERMINAL can be a terminal object, a frame or nil (meaning the 496TERMINAL can be a terminal object, a frame or nil (meaning the
504selected frame's terminal). */) 497selected frame's terminal). */)
505 (terminal, parameter, value) 498 (Lisp_Object terminal, Lisp_Object parameter, Lisp_Object value)
506 Lisp_Object terminal;
507 Lisp_Object parameter;
508 Lisp_Object value;
509{ 499{
510 struct terminal *t 500 struct terminal *t
511 = TERMINALP (terminal) ? XTERMINAL (terminal) : get_terminal (terminal, 1); 501 = TERMINALP (terminal) ? XTERMINAL (terminal) : get_terminal (terminal, 1);
diff --git a/src/textprop.c b/src/textprop.c
index a3294a0650a..0e398e41e4a 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -558,8 +558,7 @@ If the optional second argument OBJECT is a buffer (or nil, which means
558the current buffer), POSITION is a buffer position (integer or marker). 558the current buffer), POSITION is a buffer position (integer or marker).
559If OBJECT is a string, POSITION is a 0-based index into it. 559If OBJECT is a string, POSITION is a 0-based index into it.
560If POSITION is at the end of OBJECT, the value is nil. */) 560If POSITION is at the end of OBJECT, the value is nil. */)
561 (position, object) 561 (Lisp_Object position, Lisp_Object object)
562 Lisp_Object position, object;
563{ 562{
564 register INTERVAL i; 563 register INTERVAL i;
565 564
@@ -583,9 +582,7 @@ DEFUN ("get-text-property", Fget_text_property, Sget_text_property, 2, 3, 0,
583 doc: /* Return the value of POSITION's property PROP, in OBJECT. 582 doc: /* Return the value of POSITION's property PROP, in OBJECT.
584OBJECT is optional and defaults to the current buffer. 583OBJECT is optional and defaults to the current buffer.
585If POSITION is at the end of OBJECT, the value is nil. */) 584If POSITION is at the end of OBJECT, the value is nil. */)
586 (position, prop, object) 585 (Lisp_Object position, Lisp_Object prop, Lisp_Object object)
587 Lisp_Object position, object;
588 Lisp_Object prop;
589{ 586{
590 return textget (Ftext_properties_at (position, object), prop); 587 return textget (Ftext_properties_at (position, object), prop);
591} 588}
@@ -665,9 +662,7 @@ If OBJECT is a buffer, then overlay properties are considered as well as
665text properties. 662text properties.
666If OBJECT is a window, then that window's buffer is used, but window-specific 663If OBJECT is a window, then that window's buffer is used, but window-specific
667overlays are considered only if they are associated with OBJECT. */) 664overlays are considered only if they are associated with OBJECT. */)
668 (position, prop, object) 665 (Lisp_Object position, Lisp_Object prop, Lisp_Object object)
669 Lisp_Object position, object;
670 register Lisp_Object prop;
671{ 666{
672 return get_char_property_and_overlay (position, prop, object, 0); 667 return get_char_property_and_overlay (position, prop, object, 0);
673} 668}
@@ -686,9 +681,7 @@ value is always nil, since strings do not have overlays. If OBJECT is
686a window, then that window's buffer is used, but window-specific 681a window, then that window's buffer is used, but window-specific
687overlays are considered only if they are associated with OBJECT. If 682overlays are considered only if they are associated with OBJECT. If
688POSITION is at the end of OBJECT, both car and cdr are nil. */) 683POSITION is at the end of OBJECT, both car and cdr are nil. */)
689 (position, prop, object) 684 (Lisp_Object position, Lisp_Object prop, Lisp_Object object)
690 Lisp_Object position, object;
691 register Lisp_Object prop;
692{ 685{
693 Lisp_Object overlay; 686 Lisp_Object overlay;
694 Lisp_Object val 687 Lisp_Object val
@@ -708,8 +701,7 @@ If none is found up to (point-max), the function returns (point-max).
708If the optional second argument LIMIT is non-nil, don't search 701If the optional second argument LIMIT is non-nil, don't search
709past position LIMIT; return LIMIT if nothing is found before LIMIT. 702past position LIMIT; return LIMIT if nothing is found before LIMIT.
710LIMIT is a no-op if it is greater than (point-max). */) 703LIMIT is a no-op if it is greater than (point-max). */)
711 (position, limit) 704 (Lisp_Object position, Lisp_Object limit)
712 Lisp_Object position, limit;
713{ 705{
714 Lisp_Object temp; 706 Lisp_Object temp;
715 707
@@ -734,8 +726,7 @@ If none is found since (point-min), the function returns (point-min).
734If the optional second argument LIMIT is non-nil, don't search 726If the optional second argument LIMIT is non-nil, don't search
735past position LIMIT; return LIMIT if nothing is found before LIMIT. 727past position LIMIT; return LIMIT if nothing is found before LIMIT.
736LIMIT is a no-op if it is less than (point-min). */) 728LIMIT is a no-op if it is less than (point-min). */)
737 (position, limit) 729 (Lisp_Object position, Lisp_Object limit)
738 Lisp_Object position, limit;
739{ 730{
740 Lisp_Object temp; 731 Lisp_Object temp;
741 732
@@ -767,8 +758,7 @@ If the property is constant all the way to the end of OBJECT, return the
767last valid position in OBJECT. 758last valid position in OBJECT.
768If the optional fourth argument LIMIT is non-nil, don't search 759If the optional fourth argument LIMIT is non-nil, don't search
769past position LIMIT; return LIMIT if nothing is found before LIMIT. */) 760past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
770 (position, prop, object, limit) 761 (Lisp_Object position, Lisp_Object prop, Lisp_Object object, Lisp_Object limit)
771 Lisp_Object prop, position, object, limit;
772{ 762{
773 if (STRINGP (object)) 763 if (STRINGP (object))
774 { 764 {
@@ -852,8 +842,7 @@ If the property is constant all the way to the start of OBJECT, return the
852first valid position in OBJECT. 842first valid position in OBJECT.
853If the optional fourth argument LIMIT is non-nil, don't search 843If the optional fourth argument LIMIT is non-nil, don't search
854back past position LIMIT; return LIMIT if nothing is found before LIMIT. */) 844back past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
855 (position, prop, object, limit) 845 (Lisp_Object position, Lisp_Object prop, Lisp_Object object, Lisp_Object limit)
856 Lisp_Object prop, position, object, limit;
857{ 846{
858 if (STRINGP (object)) 847 if (STRINGP (object))
859 { 848 {
@@ -941,8 +930,7 @@ If the value is non-nil, it is a position greater than POSITION, never equal.
941 930
942If the optional third argument LIMIT is non-nil, don't search 931If the optional third argument LIMIT is non-nil, don't search
943past position LIMIT; return LIMIT if nothing is found before LIMIT. */) 932past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
944 (position, object, limit) 933 (Lisp_Object position, Lisp_Object object, Lisp_Object limit)
945 Lisp_Object position, object, limit;
946{ 934{
947 register INTERVAL i, next; 935 register INTERVAL i, next;
948 936
@@ -1038,8 +1026,7 @@ If the value is non-nil, it is a position greater than POSITION, never equal.
1038 1026
1039If the optional fourth argument LIMIT is non-nil, don't search 1027If the optional fourth argument LIMIT is non-nil, don't search
1040past position LIMIT; return LIMIT if nothing is found before LIMIT. */) 1028past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
1041 (position, prop, object, limit) 1029 (Lisp_Object position, Lisp_Object prop, Lisp_Object object, Lisp_Object limit)
1042 Lisp_Object position, prop, object, limit;
1043{ 1030{
1044 register INTERVAL i, next; 1031 register INTERVAL i, next;
1045 register Lisp_Object here_val; 1032 register Lisp_Object here_val;
@@ -1086,8 +1073,7 @@ If the value is non-nil, it is a position less than POSITION, never equal.
1086 1073
1087If the optional third argument LIMIT is non-nil, don't search 1074If the optional third argument LIMIT is non-nil, don't search
1088back past position LIMIT; return LIMIT if nothing is found until LIMIT. */) 1075back past position LIMIT; return LIMIT if nothing is found until LIMIT. */)
1089 (position, object, limit) 1076 (Lisp_Object position, Lisp_Object object, Lisp_Object limit)
1090 Lisp_Object position, object, limit;
1091{ 1077{
1092 register INTERVAL i, previous; 1078 register INTERVAL i, previous;
1093 1079
@@ -1135,8 +1121,7 @@ If the value is non-nil, it is a position less than POSITION, never equal.
1135 1121
1136If the optional fourth argument LIMIT is non-nil, don't search 1122If the optional fourth argument LIMIT is non-nil, don't search
1137back past position LIMIT; return LIMIT if nothing is found until LIMIT. */) 1123back past position LIMIT; return LIMIT if nothing is found until LIMIT. */)
1138 (position, prop, object, limit) 1124 (Lisp_Object position, Lisp_Object prop, Lisp_Object object, Lisp_Object limit)
1139 Lisp_Object position, prop, object, limit;
1140{ 1125{
1141 register INTERVAL i, previous; 1126 register INTERVAL i, previous;
1142 register Lisp_Object here_val; 1127 register Lisp_Object here_val;
@@ -1185,8 +1170,7 @@ OBJECT is a buffer (or nil, which means the current buffer),
1185START and END are buffer positions (integers or markers). 1170START and END are buffer positions (integers or markers).
1186If OBJECT is a string, START and END are 0-based indices into it. 1171If OBJECT is a string, START and END are 0-based indices into it.
1187Return t if any property value actually changed, nil otherwise. */) 1172Return t if any property value actually changed, nil otherwise. */)
1188 (start, end, properties, object) 1173 (Lisp_Object start, Lisp_Object end, Lisp_Object properties, Lisp_Object object)
1189 Lisp_Object start, end, properties, object;
1190{ 1174{
1191 register INTERVAL i, unchanged; 1175 register INTERVAL i, unchanged;
1192 register int s, len, modified = 0; 1176 register int s, len, modified = 0;
@@ -1293,8 +1277,7 @@ specify the property to add.
1293If the optional fifth argument OBJECT is a buffer (or nil, which means 1277If the optional fifth argument OBJECT is a buffer (or nil, which means
1294the current buffer), START and END are buffer positions (integers or 1278the current buffer), START and END are buffer positions (integers or
1295markers). If OBJECT is a string, START and END are 0-based indices into it. */) 1279markers). If OBJECT is a string, START and END are 0-based indices into it. */)
1296 (start, end, property, value, object) 1280 (Lisp_Object start, Lisp_Object end, Lisp_Object property, Lisp_Object value, Lisp_Object object)
1297 Lisp_Object start, end, property, value, object;
1298{ 1281{
1299 Fadd_text_properties (start, end, 1282 Fadd_text_properties (start, end,
1300 Fcons (property, Fcons (value, Qnil)), 1283 Fcons (property, Fcons (value, Qnil)),
@@ -1311,8 +1294,7 @@ the current buffer), START and END are buffer positions (integers or
1311markers). If OBJECT is a string, START and END are 0-based indices into it. 1294markers). If OBJECT is a string, START and END are 0-based indices into it.
1312If PROPERTIES is nil, the effect is to remove all properties from 1295If PROPERTIES is nil, the effect is to remove all properties from
1313the designated part of OBJECT. */) 1296the designated part of OBJECT. */)
1314 (start, end, properties, object) 1297 (Lisp_Object start, Lisp_Object end, Lisp_Object properties, Lisp_Object object)
1315 Lisp_Object start, end, properties, object;
1316{ 1298{
1317 return set_text_properties (start, end, properties, object, Qt); 1299 return set_text_properties (start, end, properties, object, Qt);
1318} 1300}
@@ -1481,8 +1463,7 @@ markers). If OBJECT is a string, START and END are 0-based indices into it.
1481Return t if any property was actually removed, nil otherwise. 1463Return t if any property was actually removed, nil otherwise.
1482 1464
1483Use `set-text-properties' if you want to remove all text properties. */) 1465Use `set-text-properties' if you want to remove all text properties. */)
1484 (start, end, properties, object) 1466 (Lisp_Object start, Lisp_Object end, Lisp_Object properties, Lisp_Object object)
1485 Lisp_Object start, end, properties, object;
1486{ 1467{
1487 register INTERVAL i, unchanged; 1468 register INTERVAL i, unchanged;
1488 register int s, len, modified = 0; 1469 register int s, len, modified = 0;
@@ -1567,8 +1548,7 @@ If the optional fourth argument OBJECT is a buffer (or nil, which means
1567the current buffer), START and END are buffer positions (integers or 1548the current buffer), START and END are buffer positions (integers or
1568markers). If OBJECT is a string, START and END are 0-based indices into it. 1549markers). If OBJECT is a string, START and END are 0-based indices into it.
1569Return t if any property was actually removed, nil otherwise. */) 1550Return t if any property was actually removed, nil otherwise. */)
1570 (start, end, list_of_properties, object) 1551 (Lisp_Object start, Lisp_Object end, Lisp_Object list_of_properties, Lisp_Object object)
1571 Lisp_Object start, end, list_of_properties, object;
1572{ 1552{
1573 register INTERVAL i, unchanged; 1553 register INTERVAL i, unchanged;
1574 register int s, len, modified = 0; 1554 register int s, len, modified = 0;
@@ -1675,8 +1655,7 @@ is `eq' to VALUE. Otherwise return nil.
1675If the optional fifth argument OBJECT is a buffer (or nil, which means 1655If the optional fifth argument OBJECT is a buffer (or nil, which means
1676the current buffer), START and END are buffer positions (integers or 1656the current buffer), START and END are buffer positions (integers or
1677markers). If OBJECT is a string, START and END are 0-based indices into it. */) 1657markers). If OBJECT is a string, START and END are 0-based indices into it. */)
1678 (start, end, property, value, object) 1658 (Lisp_Object start, Lisp_Object end, Lisp_Object property, Lisp_Object value, Lisp_Object object)
1679 Lisp_Object start, end, property, value, object;
1680{ 1659{
1681 register INTERVAL i; 1660 register INTERVAL i;
1682 register int e, pos; 1661 register int e, pos;
@@ -1712,8 +1691,7 @@ is not `eq' to VALUE. Otherwise, return nil.
1712If the optional fifth argument OBJECT is a buffer (or nil, which means 1691If the optional fifth argument OBJECT is a buffer (or nil, which means
1713the current buffer), START and END are buffer positions (integers or 1692the current buffer), START and END are buffer positions (integers or
1714markers). If OBJECT is a string, START and END are 0-based indices into it. */) 1693markers). If OBJECT is a string, START and END are 0-based indices into it. */)
1715 (start, end, property, value, object) 1694 (Lisp_Object start, Lisp_Object end, Lisp_Object property, Lisp_Object value, Lisp_Object object)
1716 Lisp_Object start, end, property, value, object;
1717{ 1695{
1718 register INTERVAL i; 1696 register INTERVAL i;
1719 register int s, e; 1697 register int s, e;
diff --git a/src/undo.c b/src/undo.c
index 2d491a41221..14a8268394a 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -288,7 +288,7 @@ DEFUN ("undo-boundary", Fundo_boundary, Sundo_boundary, 0, 0, 0,
288 doc: /* Mark a boundary between units of undo. 288 doc: /* Mark a boundary between units of undo.
289An undo command will stop at this point, 289An undo command will stop at this point,
290but another undo command will undo to the previous boundary. */) 290but another undo command will undo to the previous boundary. */)
291 () 291 (void)
292{ 292{
293 Lisp_Object tem; 293 Lisp_Object tem;
294 if (EQ (current_buffer->undo_list, Qt)) 294 if (EQ (current_buffer->undo_list, Qt))
@@ -455,8 +455,7 @@ truncate_undo_list (struct buffer *b)
455DEFUN ("primitive-undo", Fprimitive_undo, Sprimitive_undo, 2, 2, 0, 455DEFUN ("primitive-undo", Fprimitive_undo, Sprimitive_undo, 2, 2, 0,
456 doc: /* Undo N records from the front of the list LIST. 456 doc: /* Undo N records from the front of the list LIST.
457Return what remains of the list. */) 457Return what remains of the list. */)
458 (n, list) 458 (Lisp_Object n, Lisp_Object list)
459 Lisp_Object n, list;
460{ 459{
461 struct gcpro gcpro1, gcpro2; 460 struct gcpro gcpro1, gcpro2;
462 Lisp_Object next; 461 Lisp_Object next;
diff --git a/src/w16select.c b/src/w16select.c
index 38c773cd87f..384b82ceff1 100644
--- a/src/w16select.c
+++ b/src/w16select.c
@@ -453,8 +453,7 @@ static char system_error_msg[] =
453 453
454DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_data, 1, 2, 0, 454DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_data, 1, 2, 0,
455 doc: /* This sets the clipboard data to the given text. */) 455 doc: /* This sets the clipboard data to the given text. */)
456 (string, frame) 456 (Lisp_Object string, Lisp_Object frame)
457 Lisp_Object string, frame;
458{ 457{
459 unsigned ok = 1, put_status = 0; 458 unsigned ok = 1, put_status = 0;
460 int nbytes, charset_info, no_crlf_conversion; 459 int nbytes, charset_info, no_crlf_conversion;
@@ -563,8 +562,7 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat
563 562
564DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_data, 0, 1, 0, 563DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_data, 0, 1, 0,
565 doc: /* This gets the clipboard data in text format. */) 564 doc: /* This gets the clipboard data in text format. */)
566 (frame) 565 (Lisp_Object frame)
567 Lisp_Object frame;
568{ 566{
569 unsigned data_size, truelen; 567 unsigned data_size, truelen;
570 unsigned char *htext = NULL; 568 unsigned char *htext = NULL;
@@ -658,8 +656,7 @@ the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
658\(Those are literal upper-case symbol names, since that's what X expects.) 656\(Those are literal upper-case symbol names, since that's what X expects.)
659For convenience, the symbol nil is the same as `PRIMARY', 657For convenience, the symbol nil is the same as `PRIMARY',
660and t is the same as `SECONDARY'. */) 658and t is the same as `SECONDARY'. */)
661 (selection) 659 (Lisp_Object selection)
662 Lisp_Object selection;
663{ 660{
664 CHECK_SYMBOL (selection); 661 CHECK_SYMBOL (selection);
665 662
diff --git a/src/w32console.c b/src/w32console.c
index d3c677ae0be..26fa544d670 100644
--- a/src/w32console.c
+++ b/src/w32console.c
@@ -393,8 +393,7 @@ SOUND is 'asterisk, 'exclamation, 'hand, 'question, 'ok, or 'silent
393to use the corresponding system sound for the bell. The 'silent sound 393to use the corresponding system sound for the bell. The 'silent sound
394prevents Emacs from making any sound at all. 394prevents Emacs from making any sound at all.
395SOUND is nil to use the normal beep. */) 395SOUND is nil to use the normal beep. */)
396 (sound) 396 (Lisp_Object sound)
397 Lisp_Object sound;
398{ 397{
399 CHECK_SYMBOL (sound); 398 CHECK_SYMBOL (sound);
400 399
@@ -748,9 +747,7 @@ initialize_w32_display (struct terminal *term)
748 747
749DEFUN ("set-screen-color", Fset_screen_color, Sset_screen_color, 2, 2, 0, 748DEFUN ("set-screen-color", Fset_screen_color, Sset_screen_color, 2, 2, 0,
750 doc: /* Set screen colors. */) 749 doc: /* Set screen colors. */)
751 (foreground, background) 750 (Lisp_Object foreground, Lisp_Object background)
752 Lisp_Object foreground;
753 Lisp_Object background;
754{ 751{
755 char_attr_normal = XFASTINT (foreground) + (XFASTINT (background) << 4); 752 char_attr_normal = XFASTINT (foreground) + (XFASTINT (background) << 4);
756 753
@@ -760,8 +757,7 @@ DEFUN ("set-screen-color", Fset_screen_color, Sset_screen_color, 2, 2, 0,
760 757
761DEFUN ("set-cursor-size", Fset_cursor_size, Sset_cursor_size, 1, 1, 0, 758DEFUN ("set-cursor-size", Fset_cursor_size, Sset_cursor_size, 1, 1, 0,
762 doc: /* Set cursor size. */) 759 doc: /* Set cursor size. */)
763 (size) 760 (Lisp_Object size)
764 Lisp_Object size;
765{ 761{
766 CONSOLE_CURSOR_INFO cci; 762 CONSOLE_CURSOR_INFO cci;
767 cci.dwSize = XFASTINT (size); 763 cci.dwSize = XFASTINT (size);
diff --git a/src/w32fns.c b/src/w32fns.c
index 96ecf436c45..916aea28eea 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -475,8 +475,7 @@ DEFUN ("w32-define-rgb-color", Fw32_define_rgb_color,
475This adds or updates a named color to `w32-color-map', making it 475This adds or updates a named color to `w32-color-map', making it
476available for use. The original entry's RGB ref is returned, or nil 476available for use. The original entry's RGB ref is returned, or nil
477if the entry is new. */) 477if the entry is new. */)
478 (red, green, blue, name) 478 (Lisp_Object red, Lisp_Object green, Lisp_Object blue, Lisp_Object name)
479 Lisp_Object red, green, blue, name;
480{ 479{
481 Lisp_Object rgb; 480 Lisp_Object rgb;
482 Lisp_Object oldrgb = Qnil; 481 Lisp_Object oldrgb = Qnil;
@@ -762,7 +761,7 @@ colormap_t w32_color_map[] =
762 761
763DEFUN ("w32-default-color-map", Fw32_default_color_map, Sw32_default_color_map, 762DEFUN ("w32-default-color-map", Fw32_default_color_map, Sw32_default_color_map,
764 0, 0, 0, doc: /* Return the default color map. */) 763 0, 0, 0, doc: /* Return the default color map. */)
765 () 764 (void)
766{ 765{
767 int i; 766 int i;
768 colormap_t *pc = w32_color_map; 767 colormap_t *pc = w32_color_map;
@@ -4191,8 +4190,7 @@ then `default-minibuffer-frame' must be a frame whose minibuffer can
4191be shared by the new frame. 4190be shared by the new frame.
4192 4191
4193This function is an internal primitive--use `make-frame' instead. */) 4192This function is an internal primitive--use `make-frame' instead. */)
4194 (parameters) 4193 (Lisp_Object parameters)
4195 Lisp_Object parameters;
4196{ 4194{
4197 struct frame *f; 4195 struct frame *f;
4198 Lisp_Object frame, tem; 4196 Lisp_Object frame, tem;
@@ -4520,8 +4518,7 @@ x_get_focus_frame (struct frame *frame)
4520 4518
4521DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0, 4519DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0,
4522 doc: /* Give FRAME input focus, raising to foreground if necessary. */) 4520 doc: /* Give FRAME input focus, raising to foreground if necessary. */)
4523 (frame) 4521 (Lisp_Object frame)
4524 Lisp_Object frame;
4525{ 4522{
4526 x_focus_on_frame (check_x_frame (frame)); 4523 x_focus_on_frame (check_x_frame (frame));
4527 return Qnil; 4524 return Qnil;
@@ -4530,8 +4527,7 @@ DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0,
4530 4527
4531DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, 4528DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
4532 doc: /* Internal function called by `color-defined-p', which see. */) 4529 doc: /* Internal function called by `color-defined-p', which see. */)
4533 (color, frame) 4530 (Lisp_Object color, Lisp_Object frame)
4534 Lisp_Object color, frame;
4535{ 4531{
4536 XColor foo; 4532 XColor foo;
4537 FRAME_PTR f = check_x_frame (frame); 4533 FRAME_PTR f = check_x_frame (frame);
@@ -4546,8 +4542,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
4546 4542
4547DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, 4543DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
4548 doc: /* Internal function called by `color-values', which see. */) 4544 doc: /* Internal function called by `color-values', which see. */)
4549 (color, frame) 4545 (Lisp_Object color, Lisp_Object frame)
4550 Lisp_Object color, frame;
4551{ 4546{
4552 XColor foo; 4547 XColor foo;
4553 FRAME_PTR f = check_x_frame (frame); 4548 FRAME_PTR f = check_x_frame (frame);
@@ -4567,8 +4562,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
4567 4562
4568DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, 4563DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0,
4569 doc: /* Internal function called by `display-color-p', which see. */) 4564 doc: /* Internal function called by `display-color-p', which see. */)
4570 (display) 4565 (Lisp_Object display)
4571 Lisp_Object display;
4572{ 4566{
4573 struct w32_display_info *dpyinfo = check_x_display_info (display); 4567 struct w32_display_info *dpyinfo = check_x_display_info (display);
4574 4568
@@ -4585,8 +4579,7 @@ Note that color displays do support shades of gray.
4585The optional argument DISPLAY specifies which display to ask about. 4579The optional argument DISPLAY specifies which display to ask about.
4586DISPLAY should be either a frame or a display name (a string). 4580DISPLAY should be either a frame or a display name (a string).
4587If omitted or nil, that stands for the selected frame's display. */) 4581If omitted or nil, that stands for the selected frame's display. */)
4588 (display) 4582 (Lisp_Object display)
4589 Lisp_Object display;
4590{ 4583{
4591 struct w32_display_info *dpyinfo = check_x_display_info (display); 4584 struct w32_display_info *dpyinfo = check_x_display_info (display);
4592 4585
@@ -4602,8 +4595,7 @@ DEFUN ("x-display-pixel-width", Fx_display_pixel_width,
4602The optional argument DISPLAY specifies which display to ask about. 4595The optional argument DISPLAY specifies which display to ask about.
4603DISPLAY should be either a frame or a display name (a string). 4596DISPLAY should be either a frame or a display name (a string).
4604If omitted or nil, that stands for the selected frame's display. */) 4597If omitted or nil, that stands for the selected frame's display. */)
4605 (display) 4598 (Lisp_Object display)
4606 Lisp_Object display;
4607{ 4599{
4608 struct w32_display_info *dpyinfo = check_x_display_info (display); 4600 struct w32_display_info *dpyinfo = check_x_display_info (display);
4609 4601
@@ -4616,8 +4608,7 @@ DEFUN ("x-display-pixel-height", Fx_display_pixel_height,
4616The optional argument DISPLAY specifies which display to ask about. 4608The optional argument DISPLAY specifies which display to ask about.
4617DISPLAY should be either a frame or a display name (a string). 4609DISPLAY should be either a frame or a display name (a string).
4618If omitted or nil, that stands for the selected frame's display. */) 4610If omitted or nil, that stands for the selected frame's display. */)
4619 (display) 4611 (Lisp_Object display)
4620 Lisp_Object display;
4621{ 4612{
4622 struct w32_display_info *dpyinfo = check_x_display_info (display); 4613 struct w32_display_info *dpyinfo = check_x_display_info (display);
4623 4614
@@ -4630,8 +4621,7 @@ DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes,
4630The optional argument DISPLAY specifies which display to ask about. 4621The optional argument DISPLAY specifies which display to ask about.
4631DISPLAY should be either a frame or a display name (a string). 4622DISPLAY should be either a frame or a display name (a string).
4632If omitted or nil, that stands for the selected frame's display. */) 4623If omitted or nil, that stands for the selected frame's display. */)
4633 (display) 4624 (Lisp_Object display)
4634 Lisp_Object display;
4635{ 4625{
4636 struct w32_display_info *dpyinfo = check_x_display_info (display); 4626 struct w32_display_info *dpyinfo = check_x_display_info (display);
4637 4627
@@ -4644,8 +4634,7 @@ DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells,
4644The optional argument DISPLAY specifies which display to ask about. 4634The optional argument DISPLAY specifies which display to ask about.
4645DISPLAY should be either a frame or a display name (a string). 4635DISPLAY should be either a frame or a display name (a string).
4646If omitted or nil, that stands for the selected frame's display. */) 4636If omitted or nil, that stands for the selected frame's display. */)
4647 (display) 4637 (Lisp_Object display)
4648 Lisp_Object display;
4649{ 4638{
4650 struct w32_display_info *dpyinfo = check_x_display_info (display); 4639 struct w32_display_info *dpyinfo = check_x_display_info (display);
4651 HDC hdc; 4640 HDC hdc;
@@ -4674,8 +4663,7 @@ DEFUN ("x-server-max-request-size", Fx_server_max_request_size,
4674The optional argument DISPLAY specifies which display to ask about. 4663The optional argument DISPLAY specifies which display to ask about.
4675DISPLAY should be either a frame or a display name (a string). 4664DISPLAY should be either a frame or a display name (a string).
4676If omitted or nil, that stands for the selected frame's display. */) 4665If omitted or nil, that stands for the selected frame's display. */)
4677 (display) 4666 (Lisp_Object display)
4678 Lisp_Object display;
4679{ 4667{
4680 struct w32_display_info *dpyinfo = check_x_display_info (display); 4668 struct w32_display_info *dpyinfo = check_x_display_info (display);
4681 4669
@@ -4687,8 +4675,7 @@ DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0,
4687The optional argument DISPLAY specifies which display to ask about. 4675The optional argument DISPLAY specifies which display to ask about.
4688DISPLAY should be either a frame or a display name (a string). 4676DISPLAY should be either a frame or a display name (a string).
4689If omitted or nil, that stands for the selected frame's display. */) 4677If omitted or nil, that stands for the selected frame's display. */)
4690 (display) 4678 (Lisp_Object display)
4691 Lisp_Object display;
4692{ 4679{
4693 return build_string ("Microsoft Corp."); 4680 return build_string ("Microsoft Corp.");
4694} 4681}
@@ -4702,8 +4689,7 @@ release number. See also the function `x-server-vendor'.
4702The optional argument DISPLAY specifies which display to ask about. 4689The optional argument DISPLAY specifies which display to ask about.
4703DISPLAY should be either a frame or a display name (a string). 4690DISPLAY should be either a frame or a display name (a string).
4704If omitted or nil, that stands for the selected frame's display. */) 4691If omitted or nil, that stands for the selected frame's display. */)
4705 (display) 4692 (Lisp_Object display)
4706 Lisp_Object display;
4707{ 4693{
4708 return Fcons (make_number (w32_major_version), 4694 return Fcons (make_number (w32_major_version),
4709 Fcons (make_number (w32_minor_version), 4695 Fcons (make_number (w32_minor_version),
@@ -4715,8 +4701,7 @@ DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0,
4715The optional argument DISPLAY specifies which display to ask about. 4701The optional argument DISPLAY specifies which display to ask about.
4716DISPLAY should be either a frame or a display name (a string). 4702DISPLAY should be either a frame or a display name (a string).
4717If omitted or nil, that stands for the selected frame's display. */) 4703If omitted or nil, that stands for the selected frame's display. */)
4718 (display) 4704 (Lisp_Object display)
4719 Lisp_Object display;
4720{ 4705{
4721 return make_number (1); 4706 return make_number (1);
4722} 4707}
@@ -4727,8 +4712,7 @@ DEFUN ("x-display-mm-height", Fx_display_mm_height,
4727The optional argument DISPLAY specifies which display to ask about. 4712The optional argument DISPLAY specifies which display to ask about.
4728DISPLAY should be either a frame or a display name (a string). 4713DISPLAY should be either a frame or a display name (a string).
4729If omitted or nil, that stands for the selected frame's display. */) 4714If omitted or nil, that stands for the selected frame's display. */)
4730 (display) 4715 (Lisp_Object display)
4731 Lisp_Object display;
4732{ 4716{
4733 struct w32_display_info *dpyinfo = check_x_display_info (display); 4717 struct w32_display_info *dpyinfo = check_x_display_info (display);
4734 HDC hdc; 4718 HDC hdc;
@@ -4748,8 +4732,7 @@ DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0,
4748The optional argument DISPLAY specifies which display to ask about. 4732The optional argument DISPLAY specifies which display to ask about.
4749DISPLAY should be either a frame or a display name (a string). 4733DISPLAY should be either a frame or a display name (a string).
4750If omitted or nil, that stands for the selected frame's display. */) 4734If omitted or nil, that stands for the selected frame's display. */)
4751 (display) 4735 (Lisp_Object display)
4752 Lisp_Object display;
4753{ 4736{
4754 struct w32_display_info *dpyinfo = check_x_display_info (display); 4737 struct w32_display_info *dpyinfo = check_x_display_info (display);
4755 4738
@@ -4772,8 +4755,7 @@ The value may be `always', `when-mapped', or `not-useful'.
4772The optional argument DISPLAY specifies which display to ask about. 4755The optional argument DISPLAY specifies which display to ask about.
4773DISPLAY should be either a frame or a display name (a string). 4756DISPLAY should be either a frame or a display name (a string).
4774If omitted or nil, that stands for the selected frame's display. */) 4757If omitted or nil, that stands for the selected frame's display. */)
4775 (display) 4758 (Lisp_Object display)
4776 Lisp_Object display;
4777{ 4759{
4778 return intern ("not-useful"); 4760 return intern ("not-useful");
4779} 4761}
@@ -4787,8 +4769,7 @@ The value is one of the symbols `static-gray', `gray-scale',
4787The optional argument DISPLAY specifies which display to ask about. 4769The optional argument DISPLAY specifies which display to ask about.
4788DISPLAY should be either a frame or a display name (a string). 4770DISPLAY should be either a frame or a display name (a string).
4789If omitted or nil, that stands for the selected frame's display. */) 4771If omitted or nil, that stands for the selected frame's display. */)
4790 (display) 4772 (Lisp_Object display)
4791 Lisp_Object display;
4792{ 4773{
4793 struct w32_display_info *dpyinfo = check_x_display_info (display); 4774 struct w32_display_info *dpyinfo = check_x_display_info (display);
4794 Lisp_Object result = Qnil; 4775 Lisp_Object result = Qnil;
@@ -4811,8 +4792,7 @@ DEFUN ("x-display-save-under", Fx_display_save_under,
4811The optional argument DISPLAY specifies which display to ask about. 4792The optional argument DISPLAY specifies which display to ask about.
4812DISPLAY should be either a frame or a display name (a string). 4793DISPLAY should be either a frame or a display name (a string).
4813If omitted or nil, that stands for the selected frame's display. */) 4794If omitted or nil, that stands for the selected frame's display. */)
4814 (display) 4795 (Lisp_Object display)
4815 Lisp_Object display;
4816{ 4796{
4817 return Qnil; 4797 return Qnil;
4818} 4798}
@@ -4891,8 +4871,7 @@ DISPLAY is the name of the display to connect to.
4891Optional second arg XRM-STRING is a string of resources in xrdb format. 4871Optional second arg XRM-STRING is a string of resources in xrdb format.
4892If the optional third arg MUST-SUCCEED is non-nil, 4872If the optional third arg MUST-SUCCEED is non-nil,
4893terminate Emacs if we can't open the connection. */) 4873terminate Emacs if we can't open the connection. */)
4894 (display, xrm_string, must_succeed) 4874 (Lisp_Object display, Lisp_Object xrm_string, Lisp_Object must_succeed)
4895 Lisp_Object display, xrm_string, must_succeed;
4896{ 4875{
4897 unsigned char *xrm_option; 4876 unsigned char *xrm_option;
4898 struct w32_display_info *dpyinfo; 4877 struct w32_display_info *dpyinfo;
@@ -4980,8 +4959,7 @@ DEFUN ("x-close-connection", Fx_close_connection,
4980 doc: /* Close the connection to DISPLAY's server. 4959 doc: /* Close the connection to DISPLAY's server.
4981For DISPLAY, specify either a frame or a display name (a string). 4960For DISPLAY, specify either a frame or a display name (a string).
4982If DISPLAY is nil, that stands for the selected frame's display. */) 4961If DISPLAY is nil, that stands for the selected frame's display. */)
4983 (display) 4962 (Lisp_Object display)
4984 Lisp_Object display;
4985{ 4963{
4986 struct w32_display_info *dpyinfo = check_x_display_info (display); 4964 struct w32_display_info *dpyinfo = check_x_display_info (display);
4987 int i; 4965 int i;
@@ -5000,7 +4978,7 @@ If DISPLAY is nil, that stands for the selected frame's display. */)
5000 4978
5001DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0, 4979DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
5002 doc: /* Return the list of display names that Emacs has connections to. */) 4980 doc: /* Return the list of display names that Emacs has connections to. */)
5003 () 4981 (void)
5004{ 4982{
5005 Lisp_Object tail, result; 4983 Lisp_Object tail, result;
5006 4984
@@ -5013,8 +4991,7 @@ DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
5013 4991
5014DEFUN ("x-synchronize", Fx_synchronize, Sx_synchronize, 1, 2, 0, 4992DEFUN ("x-synchronize", Fx_synchronize, Sx_synchronize, 1, 2, 0,
5015 doc: /* This is a noop on W32 systems. */) 4993 doc: /* This is a noop on W32 systems. */)
5016 (on, display) 4994 (Lisp_Object on, Lisp_Object display)
5017 Lisp_Object display, on;
5018{ 4995{
5019 return Qnil; 4996 return Qnil;
5020} 4997}
@@ -5043,8 +5020,7 @@ If OUTER_P is non-nil, the property is changed for the outer X window of
5043FRAME. Default is to change on the edit X window. 5020FRAME. Default is to change on the edit X window.
5044 5021
5045Value is VALUE. */) 5022Value is VALUE. */)
5046 (prop, value, frame, type, format, outer_p) 5023 (Lisp_Object prop, Lisp_Object value, Lisp_Object frame, Lisp_Object type, Lisp_Object format, Lisp_Object outer_p)
5047 Lisp_Object prop, value, frame, type, format, outer_p;
5048{ 5024{
5049#if 0 /* TODO : port window properties to W32 */ 5025#if 0 /* TODO : port window properties to W32 */
5050 struct frame *f = check_x_frame (frame); 5026 struct frame *f = check_x_frame (frame);
@@ -5073,8 +5049,7 @@ DEFUN ("x-delete-window-property", Fx_delete_window_property,
5073 Sx_delete_window_property, 1, 2, 0, 5049 Sx_delete_window_property, 1, 2, 0,
5074 doc: /* Remove window property PROP from X window of FRAME. 5050 doc: /* Remove window property PROP from X window of FRAME.
5075FRAME nil or omitted means use the selected frame. Value is PROP. */) 5051FRAME nil or omitted means use the selected frame. Value is PROP. */)
5076 (prop, frame) 5052 (Lisp_Object prop, Lisp_Object frame)
5077 Lisp_Object prop, frame;
5078{ 5053{
5079#if 0 /* TODO : port window properties to W32 */ 5054#if 0 /* TODO : port window properties to W32 */
5080 5055
@@ -5101,8 +5076,7 @@ DEFUN ("x-window-property", Fx_window_property, Sx_window_property,
5101If FRAME is nil or omitted, use the selected frame. Value is nil 5076If FRAME is nil or omitted, use the selected frame. Value is nil
5102if FRAME hasn't a property with name PROP or if PROP has no string 5077if FRAME hasn't a property with name PROP or if PROP has no string
5103value. */) 5078value. */)
5104 (prop, frame) 5079 (Lisp_Object prop, Lisp_Object frame)
5105 Lisp_Object prop, frame;
5106{ 5080{
5107#if 0 /* TODO : port window properties to W32 */ 5081#if 0 /* TODO : port window properties to W32 */
5108 5082
@@ -5670,8 +5644,7 @@ DY added (default is -10).
5670 5644
5671A tooltip's maximum size is specified by `x-max-tooltip-size'. 5645A tooltip's maximum size is specified by `x-max-tooltip-size'.
5672Text larger than the specified size is clipped. */) 5646Text larger than the specified size is clipped. */)
5673 (string, frame, parms, timeout, dx, dy) 5647 (Lisp_Object string, Lisp_Object frame, Lisp_Object parms, Lisp_Object timeout, Lisp_Object dx, Lisp_Object dy)
5674 Lisp_Object string, frame, parms, timeout, dx, dy;
5675{ 5648{
5676 struct frame *f; 5649 struct frame *f;
5677 struct window *w; 5650 struct window *w;
@@ -5900,7 +5873,7 @@ Text larger than the specified size is clipped. */)
5900DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0, 5873DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0,
5901 doc: /* Hide the current tooltip window, if there is any. 5874 doc: /* Hide the current tooltip window, if there is any.
5902Value is t if tooltip was open, nil otherwise. */) 5875Value is t if tooltip was open, nil otherwise. */)
5903 () 5876 (void)
5904{ 5877{
5905 int count; 5878 int count;
5906 Lisp_Object deleted, frame, timer; 5879 Lisp_Object deleted, frame, timer;
@@ -5996,8 +5969,7 @@ Use a file selection dialog.
5996Select DEFAULT-FILENAME in the dialog's file selection box, if 5969Select DEFAULT-FILENAME in the dialog's file selection box, if
5997specified. Ensure that file exists if MUSTMATCH is non-nil. 5970specified. Ensure that file exists if MUSTMATCH is non-nil.
5998If ONLY-DIR-P is non-nil, the user can only select directories. */) 5971If ONLY-DIR-P is non-nil, the user can only select directories. */)
5999 (prompt, dir, default_filename, mustmatch, only_dir_p) 5972 (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, Lisp_Object mustmatch, Lisp_Object only_dir_p)
6000 Lisp_Object prompt, dir, default_filename, mustmatch, only_dir_p;
6001{ 5973{
6002 struct frame *f = SELECTED_FRAME (); 5974 struct frame *f = SELECTED_FRAME ();
6003 Lisp_Object file = Qnil; 5975 Lisp_Object file = Qnil;
@@ -6125,8 +6097,7 @@ If ONLY-DIR-P is non-nil, the user can only select directories. */)
6125DEFUN ("system-move-file-to-trash", Fsystem_move_file_to_trash, 6097DEFUN ("system-move-file-to-trash", Fsystem_move_file_to_trash,
6126 Ssystem_move_file_to_trash, 1, 1, 0, 6098 Ssystem_move_file_to_trash, 1, 1, 0,
6127 doc: /* Move file or directory named FILENAME to the recycle bin. */) 6099 doc: /* Move file or directory named FILENAME to the recycle bin. */)
6128 (filename) 6100 (Lisp_Object filename)
6129 Lisp_Object filename;
6130{ 6101{
6131 Lisp_Object handler; 6102 Lisp_Object handler;
6132 Lisp_Object encoded_file; 6103 Lisp_Object encoded_file;
@@ -6188,8 +6159,7 @@ to activate the menubar for keyboard access. #xf140 activates the
6188screen saver if defined. 6159screen saver if defined.
6189 6160
6190If optional parameter FRAME is not specified, use selected frame. */) 6161If optional parameter FRAME is not specified, use selected frame. */)
6191 (command, frame) 6162 (Lisp_Object command, Lisp_Object frame)
6192 Lisp_Object command, frame;
6193{ 6163{
6194 FRAME_PTR f = check_x_frame (frame); 6164 FRAME_PTR f = check_x_frame (frame);
6195 6165
@@ -6242,8 +6212,7 @@ an integer representing a ShowWindow flag:
6242 1 - start normally 6212 1 - start normally
6243 3 - start maximized 6213 3 - start maximized
6244 6 - start minimized */) 6214 6 - start minimized */)
6245 (operation, document, parameters, show_flag) 6215 (Lisp_Object operation, Lisp_Object document, Lisp_Object parameters, Lisp_Object show_flag)
6246 Lisp_Object operation, document, parameters, show_flag;
6247{ 6216{
6248 Lisp_Object current_dir; 6217 Lisp_Object current_dir;
6249 char *errstr; 6218 char *errstr;
@@ -6380,8 +6349,7 @@ modifier is interpreted as Alt if `w32-alt-is-meta' is t, and hyper
6380is always interpreted as the Windows modifier keys. 6349is always interpreted as the Windows modifier keys.
6381 6350
6382The return value is the hotkey-id if registered, otherwise nil. */) 6351The return value is the hotkey-id if registered, otherwise nil. */)
6383 (key) 6352 (Lisp_Object key)
6384 Lisp_Object key;
6385{ 6353{
6386 key = w32_parse_hot_key (key); 6354 key = w32_parse_hot_key (key);
6387 6355
@@ -6413,8 +6381,7 @@ The return value is the hotkey-id if registered, otherwise nil. */)
6413DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key, 6381DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key,
6414 Sw32_unregister_hot_key, 1, 1, 0, 6382 Sw32_unregister_hot_key, 1, 1, 0,
6415 doc: /* Unregister KEY as a hot-key combination. */) 6383 doc: /* Unregister KEY as a hot-key combination. */)
6416 (key) 6384 (Lisp_Object key)
6417 Lisp_Object key;
6418{ 6385{
6419 Lisp_Object item; 6386 Lisp_Object item;
6420 6387
@@ -6446,7 +6413,7 @@ DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key,
6446DEFUN ("w32-registered-hot-keys", Fw32_registered_hot_keys, 6413DEFUN ("w32-registered-hot-keys", Fw32_registered_hot_keys,
6447 Sw32_registered_hot_keys, 0, 0, 0, 6414 Sw32_registered_hot_keys, 0, 0, 0,
6448 doc: /* Return list of registered hot-key IDs. */) 6415 doc: /* Return list of registered hot-key IDs. */)
6449 () 6416 (void)
6450{ 6417{
6451 return Fdelq (Qnil, Fcopy_sequence (w32_grabbed_keys)); 6418 return Fdelq (Qnil, Fcopy_sequence (w32_grabbed_keys));
6452} 6419}
@@ -6455,8 +6422,7 @@ DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key,
6455 Sw32_reconstruct_hot_key, 1, 1, 0, 6422 Sw32_reconstruct_hot_key, 1, 1, 0,
6456 doc: /* Convert hot-key ID to a lisp key combination. 6423 doc: /* Convert hot-key ID to a lisp key combination.
6457usage: (w32-reconstruct-hot-key ID) */) 6424usage: (w32-reconstruct-hot-key ID) */)
6458 (hotkeyid) 6425 (Lisp_Object hotkeyid)
6459 Lisp_Object hotkeyid;
6460{ 6426{
6461 int vk_code, w32_modifiers; 6427 int vk_code, w32_modifiers;
6462 Lisp_Object key; 6428 Lisp_Object key;
@@ -6490,8 +6456,7 @@ DEFUN ("w32-toggle-lock-key", Fw32_toggle_lock_key,
6490KEY can be `capslock', `kp-numlock', or `scroll'. 6456KEY can be `capslock', `kp-numlock', or `scroll'.
6491If the optional parameter NEW-STATE is a number, then the state of KEY 6457If the optional parameter NEW-STATE is a number, then the state of KEY
6492is set to off if the low bit of NEW-STATE is zero, otherwise on. */) 6458is set to off if the low bit of NEW-STATE is zero, otherwise on. */)
6493 (key, new_state) 6459 (Lisp_Object key, Lisp_Object new_state)
6494 Lisp_Object key, new_state;
6495{ 6460{
6496 int vk_code; 6461 int vk_code;
6497 6462
@@ -6527,8 +6492,7 @@ DEFUN ("w32-window-exists-p", Fw32_window_exists_p, Sw32_window_exists_p,
6527 doc: /* Return non-nil if a window exists with the specified CLASS and NAME. 6492 doc: /* Return non-nil if a window exists with the specified CLASS and NAME.
6528 6493
6529This is a direct interface to the Windows API FindWindow function. */) 6494This is a direct interface to the Windows API FindWindow function. */)
6530 (class, name) 6495 (Lisp_Object class, Lisp_Object name)
6531 Lisp_Object class, name;
6532{ 6496{
6533 HWND hnd; 6497 HWND hnd;
6534 6498
@@ -6557,7 +6521,7 @@ The following %-sequences are provided:
6557%m Remaining time (to charge or discharge) in minutes 6521%m Remaining time (to charge or discharge) in minutes
6558%h Remaining time (to charge or discharge) in hours 6522%h Remaining time (to charge or discharge) in hours
6559%t Remaining time (to charge or discharge) in the form `h:min' */) 6523%t Remaining time (to charge or discharge) in the form `h:min' */)
6560 () 6524 (void)
6561{ 6525{
6562 Lisp_Object status = Qnil; 6526 Lisp_Object status = Qnil;
6563 6527
@@ -6661,8 +6625,7 @@ Value is a list of floats (TOTAL FREE AVAIL), where TOTAL is the total
6661storage of the file system, FREE is the free storage, and AVAIL is the 6625storage of the file system, FREE is the free storage, and AVAIL is the
6662storage available to a non-superuser. All 3 numbers are in bytes. 6626storage available to a non-superuser. All 3 numbers are in bytes.
6663If the underlying system call fails, value is nil. */) 6627If the underlying system call fails, value is nil. */)
6664 (filename) 6628 (Lisp_Object filename)
6665 Lisp_Object filename;
6666{ 6629{
6667 Lisp_Object encoded, value; 6630 Lisp_Object encoded, value;
6668 6631
@@ -6754,7 +6717,7 @@ If the underlying system call fails, value is nil. */)
6754 6717
6755DEFUN ("default-printer-name", Fdefault_printer_name, Sdefault_printer_name, 6718DEFUN ("default-printer-name", Fdefault_printer_name, Sdefault_printer_name,
6756 0, 0, 0, doc: /* Return the name of Windows default printer device. */) 6719 0, 0, 0, doc: /* Return the name of Windows default printer device. */)
6757 () 6720 (void)
6758{ 6721{
6759 static char pname_buf[256]; 6722 static char pname_buf[256];
6760 int err; 6723 int err;
diff --git a/src/w32font.c b/src/w32font.c
index 2c76e362ce6..d1375d58507 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -2329,8 +2329,7 @@ Return fontconfig style font string corresponding to the selection.
2329If FRAME is omitted or nil, it defaults to the selected frame. 2329If FRAME is omitted or nil, it defaults to the selected frame.
2330If EXCLUDE-PROPORTIONAL is non-nil, exclude proportional fonts 2330If EXCLUDE-PROPORTIONAL is non-nil, exclude proportional fonts
2331in the font selection dialog. */) 2331in the font selection dialog. */)
2332 (frame, exclude_proportional) 2332 (Lisp_Object frame, Lisp_Object exclude_proportional)
2333 Lisp_Object frame, exclude_proportional;
2334{ 2333{
2335 FRAME_PTR f = check_x_frame (frame); 2334 FRAME_PTR f = check_x_frame (frame);
2336 CHOOSEFONT cf; 2335 CHOOSEFONT cf;
diff --git a/src/w32menu.c b/src/w32menu.c
index c23751d3225..e96b70b59dc 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -156,8 +156,7 @@ on the left of the dialog box and all following items on the right.
156 156
157If HEADER is non-nil, the frame title for the box is "Information", 157If HEADER is non-nil, the frame title for the box is "Information",
158otherwise it is "Question". */) 158otherwise it is "Question". */)
159 (position, contents, header) 159 (Lisp_Object position, Lisp_Object contents, Lisp_Object header)
160 Lisp_Object position, contents, header;
161{ 160{
162 FRAME_PTR f = NULL; 161 FRAME_PTR f = NULL;
163 Lisp_Object window; 162 Lisp_Object window;
@@ -1688,7 +1687,7 @@ w32_free_menu_strings (HWND hwnd)
1688 1687
1689DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0, 1688DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0,
1690 doc: /* Return t if a menu or popup dialog is active on selected frame. */) 1689 doc: /* Return t if a menu or popup dialog is active on selected frame. */)
1691 () 1690 (void)
1692{ 1691{
1693#ifdef HAVE_MENUS 1692#ifdef HAVE_MENUS
1694 FRAME_PTR f; 1693 FRAME_PTR f;
diff --git a/src/w32proc.c b/src/w32proc.c
index eccdcc30553..af923723709 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -1723,8 +1723,7 @@ also loaded immediately if not already loaded. If winsock is loaded,
1723the winsock local hostname is returned (since this may be different from 1723the winsock local hostname is returned (since this may be different from
1724the value of `system-name' and should supplant it), otherwise t is 1724the value of `system-name' and should supplant it), otherwise t is
1725returned to indicate winsock support is present. */) 1725returned to indicate winsock support is present. */)
1726 (load_now) 1726 (Lisp_Object load_now)
1727 Lisp_Object load_now;
1728{ 1727{
1729 int have_winsock; 1728 int have_winsock;
1730 1729
@@ -1755,7 +1754,7 @@ DEFUN ("w32-unload-winsock", Fw32_unload_winsock, Sw32_unload_winsock,
1755This is provided to allow dial-up socket connections to be disconnected 1754This is provided to allow dial-up socket connections to be disconnected
1756when no longer needed. Returns nil without unloading winsock if any 1755when no longer needed. Returns nil without unloading winsock if any
1757socket connections still exist. */) 1756socket connections still exist. */)
1758 () 1757 (void)
1759{ 1758{
1760 return term_winsock () ? Qt : Qnil; 1759 return term_winsock () ? Qt : Qnil;
1761} 1760}
@@ -1770,8 +1769,7 @@ DEFUN ("w32-short-file-name", Fw32_short_file_name, Sw32_short_file_name, 1, 1,
1770 doc: /* Return the short file name version (8.3) of the full path of FILENAME. 1769 doc: /* Return the short file name version (8.3) of the full path of FILENAME.
1771If FILENAME does not exist, return nil. 1770If FILENAME does not exist, return nil.
1772All path elements in FILENAME are converted to their short names. */) 1771All path elements in FILENAME are converted to their short names. */)
1773 (filename) 1772 (Lisp_Object filename)
1774 Lisp_Object filename;
1775{ 1773{
1776 char shortname[MAX_PATH]; 1774 char shortname[MAX_PATH];
1777 1775
@@ -1795,8 +1793,7 @@ DEFUN ("w32-long-file-name", Fw32_long_file_name, Sw32_long_file_name,
1795 doc: /* Return the long file name version of the full path of FILENAME. 1793 doc: /* Return the long file name version of the full path of FILENAME.
1796If FILENAME does not exist, return nil. 1794If FILENAME does not exist, return nil.
1797All path elements in FILENAME are converted to their long names. */) 1795All path elements in FILENAME are converted to their long names. */)
1798 (filename) 1796 (Lisp_Object filename)
1799 Lisp_Object filename;
1800{ 1797{
1801 char longname[ MAX_PATH ]; 1798 char longname[ MAX_PATH ];
1802 int drive_only = 0; 1799 int drive_only = 0;
@@ -1833,8 +1830,7 @@ PRIORITY should be one of the symbols high, normal, or low;
1833any other symbol will be interpreted as normal. 1830any other symbol will be interpreted as normal.
1834 1831
1835If successful, the return value is t, otherwise nil. */) 1832If successful, the return value is t, otherwise nil. */)
1836 (process, priority) 1833 (Lisp_Object process, Lisp_Object priority)
1837 Lisp_Object process, priority;
1838{ 1834{
1839 HANDLE proc_handle = GetCurrentProcess (); 1835 HANDLE proc_handle = GetCurrentProcess ();
1840 DWORD priority_class = NORMAL_PRIORITY_CLASS; 1836 DWORD priority_class = NORMAL_PRIORITY_CLASS;
@@ -1956,8 +1952,7 @@ is a number, it is interpreted as an LCTYPE constant and the corresponding
1956locale information is returned. 1952locale information is returned.
1957 1953
1958If LCID (a 16-bit number) is not a valid locale, the result is nil. */) 1954If LCID (a 16-bit number) is not a valid locale, the result is nil. */)
1959 (lcid, longform) 1955 (Lisp_Object lcid, Lisp_Object longform)
1960 Lisp_Object lcid, longform;
1961{ 1956{
1962 int got_abbrev; 1957 int got_abbrev;
1963 int got_full; 1958 int got_full;
@@ -2003,7 +1998,7 @@ DEFUN ("w32-get-current-locale-id", Fw32_get_current_locale_id,
2003 doc: /* Return Windows locale id for current locale setting. 1998 doc: /* Return Windows locale id for current locale setting.
2004This is a numerical value; use `w32-get-locale-info' to convert to a 1999This is a numerical value; use `w32-get-locale-info' to convert to a
2005human-readable form. */) 2000human-readable form. */)
2006 () 2001 (void)
2007{ 2002{
2008 return make_number (GetThreadLocale ()); 2003 return make_number (GetThreadLocale ());
2009} 2004}
@@ -2043,7 +2038,7 @@ DEFUN ("w32-get-valid-locale-ids", Fw32_get_valid_locale_ids,
2043 doc: /* Return list of all valid Windows locale ids. 2038 doc: /* Return list of all valid Windows locale ids.
2044Each id is a numerical value; use `w32-get-locale-info' to convert to a 2039Each id is a numerical value; use `w32-get-locale-info' to convert to a
2045human-readable form. */) 2040human-readable form. */)
2046 () 2041 (void)
2047{ 2042{
2048 Vw32_valid_locale_ids = Qnil; 2043 Vw32_valid_locale_ids = Qnil;
2049 2044
@@ -2060,8 +2055,7 @@ By default, the system default locale setting is returned; if the optional
2060parameter USERP is non-nil, the user default locale setting is returned. 2055parameter USERP is non-nil, the user default locale setting is returned.
2061This is a numerical value; use `w32-get-locale-info' to convert to a 2056This is a numerical value; use `w32-get-locale-info' to convert to a
2062human-readable form. */) 2057human-readable form. */)
2063 (userp) 2058 (Lisp_Object userp)
2064 Lisp_Object userp;
2065{ 2059{
2066 if (NILP (userp)) 2060 if (NILP (userp))
2067 return make_number (GetSystemDefaultLCID ()); 2061 return make_number (GetSystemDefaultLCID ());
@@ -2072,8 +2066,7 @@ human-readable form. */)
2072DEFUN ("w32-set-current-locale", Fw32_set_current_locale, Sw32_set_current_locale, 1, 1, 0, 2066DEFUN ("w32-set-current-locale", Fw32_set_current_locale, Sw32_set_current_locale, 1, 1, 0,
2073 doc: /* Make Windows locale LCID be the current locale setting for Emacs. 2067 doc: /* Make Windows locale LCID be the current locale setting for Emacs.
2074If successful, the new locale id is returned, otherwise nil. */) 2068If successful, the new locale id is returned, otherwise nil. */)
2075 (lcid) 2069 (Lisp_Object lcid)
2076 Lisp_Object lcid;
2077{ 2070{
2078 CHECK_NUMBER (lcid); 2071 CHECK_NUMBER (lcid);
2079 2072
@@ -2107,7 +2100,7 @@ enum_codepage_fn (LPTSTR codepageNum)
2107DEFUN ("w32-get-valid-codepages", Fw32_get_valid_codepages, 2100DEFUN ("w32-get-valid-codepages", Fw32_get_valid_codepages,
2108 Sw32_get_valid_codepages, 0, 0, 0, 2101 Sw32_get_valid_codepages, 0, 0, 0,
2109 doc: /* Return list of all valid Windows codepages. */) 2102 doc: /* Return list of all valid Windows codepages. */)
2110 () 2103 (void)
2111{ 2104{
2112 Vw32_valid_codepages = Qnil; 2105 Vw32_valid_codepages = Qnil;
2113 2106
@@ -2121,7 +2114,7 @@ DEFUN ("w32-get-valid-codepages", Fw32_get_valid_codepages,
2121DEFUN ("w32-get-console-codepage", Fw32_get_console_codepage, 2114DEFUN ("w32-get-console-codepage", Fw32_get_console_codepage,
2122 Sw32_get_console_codepage, 0, 0, 0, 2115 Sw32_get_console_codepage, 0, 0, 0,
2123 doc: /* Return current Windows codepage for console input. */) 2116 doc: /* Return current Windows codepage for console input. */)
2124 () 2117 (void)
2125{ 2118{
2126 return make_number (GetConsoleCP ()); 2119 return make_number (GetConsoleCP ());
2127} 2120}
@@ -2132,8 +2125,7 @@ DEFUN ("w32-set-console-codepage", Fw32_set_console_codepage,
2132 doc: /* Make Windows codepage CP be the current codepage setting for Emacs. 2125 doc: /* Make Windows codepage CP be the current codepage setting for Emacs.
2133The codepage setting affects keyboard input and display in tty mode. 2126The codepage setting affects keyboard input and display in tty mode.
2134If successful, the new CP is returned, otherwise nil. */) 2127If successful, the new CP is returned, otherwise nil. */)
2135 (cp) 2128 (Lisp_Object cp)
2136 Lisp_Object cp;
2137{ 2129{
2138 CHECK_NUMBER (cp); 2130 CHECK_NUMBER (cp);
2139 2131
@@ -2150,7 +2142,7 @@ If successful, the new CP is returned, otherwise nil. */)
2150DEFUN ("w32-get-console-output-codepage", Fw32_get_console_output_codepage, 2142DEFUN ("w32-get-console-output-codepage", Fw32_get_console_output_codepage,
2151 Sw32_get_console_output_codepage, 0, 0, 0, 2143 Sw32_get_console_output_codepage, 0, 0, 0,
2152 doc: /* Return current Windows codepage for console output. */) 2144 doc: /* Return current Windows codepage for console output. */)
2153 () 2145 (void)
2154{ 2146{
2155 return make_number (GetConsoleOutputCP ()); 2147 return make_number (GetConsoleOutputCP ());
2156} 2148}
@@ -2161,8 +2153,7 @@ DEFUN ("w32-set-console-output-codepage", Fw32_set_console_output_codepage,
2161 doc: /* Make Windows codepage CP be the current codepage setting for Emacs. 2153 doc: /* Make Windows codepage CP be the current codepage setting for Emacs.
2162The codepage setting affects keyboard input and display in tty mode. 2154The codepage setting affects keyboard input and display in tty mode.
2163If successful, the new CP is returned, otherwise nil. */) 2155If successful, the new CP is returned, otherwise nil. */)
2164 (cp) 2156 (Lisp_Object cp)
2165 Lisp_Object cp;
2166{ 2157{
2167 CHECK_NUMBER (cp); 2158 CHECK_NUMBER (cp);
2168 2159
@@ -2180,8 +2171,7 @@ DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset,
2180 Sw32_get_codepage_charset, 1, 1, 0, 2171 Sw32_get_codepage_charset, 1, 1, 0,
2181 doc: /* Return charset of codepage CP. 2172 doc: /* Return charset of codepage CP.
2182Returns nil if the codepage is not valid. */) 2173Returns nil if the codepage is not valid. */)
2183 (cp) 2174 (Lisp_Object cp)
2184 Lisp_Object cp;
2185{ 2175{
2186 CHARSETINFO info; 2176 CHARSETINFO info;
2187 2177
@@ -2201,7 +2191,7 @@ DEFUN ("w32-get-valid-keyboard-layouts", Fw32_get_valid_keyboard_layouts,
2201 Sw32_get_valid_keyboard_layouts, 0, 0, 0, 2191 Sw32_get_valid_keyboard_layouts, 0, 0, 0,
2202 doc: /* Return list of Windows keyboard languages and layouts. 2192 doc: /* Return list of Windows keyboard languages and layouts.
2203The return value is a list of pairs of language id and layout id. */) 2193The return value is a list of pairs of language id and layout id. */)
2204 () 2194 (void)
2205{ 2195{
2206 int num_layouts = GetKeyboardLayoutList (0, NULL); 2196 int num_layouts = GetKeyboardLayoutList (0, NULL);
2207 HKL * layouts = (HKL *) alloca (num_layouts * sizeof (HKL)); 2197 HKL * layouts = (HKL *) alloca (num_layouts * sizeof (HKL));
@@ -2227,7 +2217,7 @@ DEFUN ("w32-get-keyboard-layout", Fw32_get_keyboard_layout,
2227 Sw32_get_keyboard_layout, 0, 0, 0, 2217 Sw32_get_keyboard_layout, 0, 0, 0,
2228 doc: /* Return current Windows keyboard language and layout. 2218 doc: /* Return current Windows keyboard language and layout.
2229The return value is the cons of the language id and the layout id. */) 2219The return value is the cons of the language id and the layout id. */)
2230 () 2220 (void)
2231{ 2221{
2232 DWORD kl = (DWORD) GetKeyboardLayout (dwWindowsThreadId); 2222 DWORD kl = (DWORD) GetKeyboardLayout (dwWindowsThreadId);
2233 2223
@@ -2241,8 +2231,7 @@ DEFUN ("w32-set-keyboard-layout", Fw32_set_keyboard_layout,
2241 doc: /* Make LAYOUT be the current keyboard layout for Emacs. 2231 doc: /* Make LAYOUT be the current keyboard layout for Emacs.
2242The keyboard layout setting affects interpretation of keyboard input. 2232The keyboard layout setting affects interpretation of keyboard input.
2243If successful, the new layout id is returned, otherwise nil. */) 2233If successful, the new layout id is returned, otherwise nil. */)
2244 (layout) 2234 (Lisp_Object layout)
2245 Lisp_Object layout;
2246{ 2235{
2247 DWORD kl; 2236 DWORD kl;
2248 2237
diff --git a/src/w32select.c b/src/w32select.c
index 020d272479c..8482d3331ff 100644
--- a/src/w32select.c
+++ b/src/w32select.c
@@ -681,8 +681,7 @@ setup_windows_coding_system (Lisp_Object coding_system,
681DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, 681DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data,
682 Sw32_set_clipboard_data, 1, 2, 0, 682 Sw32_set_clipboard_data, 1, 2, 0,
683 doc: /* This sets the clipboard data to the given text. */) 683 doc: /* This sets the clipboard data to the given text. */)
684 (string, ignored) 684 (Lisp_Object string, Lisp_Object ignored)
685 Lisp_Object string, ignored;
686{ 685{
687 BOOL ok = TRUE; 686 BOOL ok = TRUE;
688 int nbytes; 687 int nbytes;
@@ -802,8 +801,7 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data,
802DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, 801DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data,
803 Sw32_get_clipboard_data, 0, 1, 0, 802 Sw32_get_clipboard_data, 0, 1, 0,
804 doc: /* This gets the clipboard data in text format. */) 803 doc: /* This gets the clipboard data in text format. */)
805 (ignored) 804 (Lisp_Object ignored)
806 Lisp_Object ignored;
807{ 805{
808 HGLOBAL htext; 806 HGLOBAL htext;
809 Lisp_Object ret = Qnil; 807 Lisp_Object ret = Qnil;
@@ -1027,8 +1025,7 @@ the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
1027\(Those are literal upper-case symbol names, since that's what X expects.) 1025\(Those are literal upper-case symbol names, since that's what X expects.)
1028For convenience, the symbol nil is the same as `PRIMARY', 1026For convenience, the symbol nil is the same as `PRIMARY',
1029and t is the same as `SECONDARY'. */) 1027and t is the same as `SECONDARY'. */)
1030 (selection) 1028 (Lisp_Object selection)
1031 Lisp_Object selection;
1032{ 1029{
1033 CHECK_SYMBOL (selection); 1030 CHECK_SYMBOL (selection);
1034 1031
diff --git a/src/window.c b/src/window.c
index ef7d14595c1..89563112628 100644
--- a/src/window.c
+++ b/src/window.c
@@ -205,16 +205,14 @@ extern Lisp_Object Qtty;
205 205
206DEFUN ("windowp", Fwindowp, Swindowp, 1, 1, 0, 206DEFUN ("windowp", Fwindowp, Swindowp, 1, 1, 0,
207 doc: /* Return t if OBJECT is a window. */) 207 doc: /* Return t if OBJECT is a window. */)
208 (object) 208 (Lisp_Object object)
209 Lisp_Object object;
210{ 209{
211 return WINDOWP (object) ? Qt : Qnil; 210 return WINDOWP (object) ? Qt : Qnil;
212} 211}
213 212
214DEFUN ("window-live-p", Fwindow_live_p, Swindow_live_p, 1, 1, 0, 213DEFUN ("window-live-p", Fwindow_live_p, Swindow_live_p, 1, 1, 0,
215 doc: /* Return t if OBJECT is a window which is currently visible. */) 214 doc: /* Return t if OBJECT is a window which is currently visible. */)
216 (object) 215 (Lisp_Object object)
217 Lisp_Object object;
218{ 216{
219 return WINDOW_LIVE_P (object) ? Qt : Qnil; 217 return WINDOW_LIVE_P (object) ? Qt : Qnil;
220} 218}
@@ -274,7 +272,7 @@ make_window (void)
274 272
275DEFUN ("selected-window", Fselected_window, Sselected_window, 0, 0, 0, 273DEFUN ("selected-window", Fselected_window, Sselected_window, 0, 0, 0,
276 doc: /* Return the window that the cursor now appears in and commands apply to. */) 274 doc: /* Return the window that the cursor now appears in and commands apply to. */)
277 () 275 (void)
278{ 276{
279 return selected_window; 277 return selected_window;
280} 278}
@@ -283,8 +281,7 @@ DEFUN ("minibuffer-window", Fminibuffer_window, Sminibuffer_window, 0, 1, 0,
283 doc: /* Return the window used now for minibuffers. 281 doc: /* Return the window used now for minibuffers.
284If the optional argument FRAME is specified, return the minibuffer window 282If the optional argument FRAME is specified, return the minibuffer window
285used by that frame. */) 283used by that frame. */)
286 (frame) 284 (Lisp_Object frame)
287 Lisp_Object frame;
288{ 285{
289 if (NILP (frame)) 286 if (NILP (frame))
290 frame = selected_frame; 287 frame = selected_frame;
@@ -295,8 +292,7 @@ used by that frame. */)
295DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p, Swindow_minibuffer_p, 0, 1, 0, 292DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p, Swindow_minibuffer_p, 0, 1, 0,
296 doc: /* Return non-nil if WINDOW is a minibuffer window. 293 doc: /* Return non-nil if WINDOW is a minibuffer window.
297WINDOW defaults to the selected window. */) 294WINDOW defaults to the selected window. */)
298 (window) 295 (Lisp_Object window)
299 Lisp_Object window;
300{ 296{
301 struct window *w = decode_window (window); 297 struct window *w = decode_window (window);
302 return MINI_WINDOW_P (w) ? Qt : Qnil; 298 return MINI_WINDOW_P (w) ? Qt : Qnil;
@@ -320,8 +316,7 @@ of the window. The remaining elements are omitted if the character after
320POS is fully visible; otherwise, RTOP and RBOT are the number of pixels 316POS is fully visible; otherwise, RTOP and RBOT are the number of pixels
321off-window at the top and bottom of the row, ROWH is the height of the 317off-window at the top and bottom of the row, ROWH is the height of the
322display row, and VPOS is the row number (0-based) containing POS. */) 318display row, and VPOS is the row number (0-based) containing POS. */)
323 (pos, window, partially) 319 (Lisp_Object pos, Lisp_Object window, Lisp_Object partially)
324 Lisp_Object pos, window, partially;
325{ 320{
326 register struct window *w; 321 register struct window *w;
327 register int posint; 322 register int posint;
@@ -389,8 +384,7 @@ of the (first) text line, YPOS is negative.
389 384
390Return nil if window display is not up-to-date. In that case, use 385Return nil if window display is not up-to-date. In that case, use
391`pos-visible-in-window-p' to obtain the information. */) 386`pos-visible-in-window-p' to obtain the information. */)
392 (line, window) 387 (Lisp_Object line, Lisp_Object window)
393 Lisp_Object line, window;
394{ 388{
395 register struct window *w; 389 register struct window *w;
396 register struct buffer *b; 390 register struct buffer *b;
@@ -505,8 +499,7 @@ decode_any_window (register Lisp_Object window)
505DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0, 499DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0,
506 doc: /* Return the buffer that WINDOW is displaying. 500 doc: /* Return the buffer that WINDOW is displaying.
507WINDOW defaults to the selected window. */) 501WINDOW defaults to the selected window. */)
508 (window) 502 (Lisp_Object window)
509 Lisp_Object window;
510{ 503{
511 return decode_window (window)->buffer; 504 return decode_window (window)->buffer;
512} 505}
@@ -516,8 +509,7 @@ DEFUN ("window-height", Fwindow_height, Swindow_height, 0, 1, 0,
516WINDOW defaults to the selected window. 509WINDOW defaults to the selected window.
517 510
518The return value includes WINDOW's mode line and header line, if any. */) 511The return value includes WINDOW's mode line and header line, if any. */)
519 (window) 512 (Lisp_Object window)
520 Lisp_Object window;
521{ 513{
522 return decode_any_window (window)->total_lines; 514 return decode_any_window (window)->total_lines;
523} 515}
@@ -529,8 +521,7 @@ WINDOW defaults to the selected window.
529Note: The return value is the number of columns available for text in 521Note: The return value is the number of columns available for text in
530WINDOW. If you want to find out how many columns WINDOW takes up, use 522WINDOW. If you want to find out how many columns WINDOW takes up, use
531(let ((edges (window-edges))) (- (nth 2 edges) (nth 0 edges))). */) 523(let ((edges (window-edges))) (- (nth 2 edges) (nth 0 edges))). */)
532 (window) 524 (Lisp_Object window)
533 Lisp_Object window;
534{ 525{
535 return make_number (window_box_text_cols (decode_any_window (window))); 526 return make_number (window_box_text_cols (decode_any_window (window)));
536} 527}
@@ -538,8 +529,7 @@ WINDOW. If you want to find out how many columns WINDOW takes up, use
538DEFUN ("window-full-width-p", Fwindow_full_width_p, Swindow_full_width_p, 0, 1, 0, 529DEFUN ("window-full-width-p", Fwindow_full_width_p, Swindow_full_width_p, 0, 1, 0,
539 doc: /* Return t if WINDOW is as wide as its frame. 530 doc: /* Return t if WINDOW is as wide as its frame.
540WINDOW defaults to the selected window. */) 531WINDOW defaults to the selected window. */)
541 (window) 532 (Lisp_Object window)
542 Lisp_Object window;
543{ 533{
544 return WINDOW_FULL_WIDTH_P (decode_any_window (window)) ? Qt : Qnil; 534 return WINDOW_FULL_WIDTH_P (decode_any_window (window)) ? Qt : Qnil;
545} 535}
@@ -547,8 +537,7 @@ WINDOW defaults to the selected window. */)
547DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0, 537DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0,
548 doc: /* Return the number of columns by which WINDOW is scrolled from left margin. 538 doc: /* Return the number of columns by which WINDOW is scrolled from left margin.
549WINDOW defaults to the selected window. */) 539WINDOW defaults to the selected window. */)
550 (window) 540 (Lisp_Object window)
551 Lisp_Object window;
552{ 541{
553 return decode_window (window)->hscroll; 542 return decode_window (window)->hscroll;
554} 543}
@@ -559,8 +548,7 @@ Return NCOL. NCOL should be zero or positive.
559 548
560Note that if `automatic-hscrolling' is non-nil, you cannot scroll the 549Note that if `automatic-hscrolling' is non-nil, you cannot scroll the
561window so that the location of point moves off-window. */) 550window so that the location of point moves off-window. */)
562 (window, ncol) 551 (Lisp_Object window, Lisp_Object ncol)
563 Lisp_Object window, ncol;
564{ 552{
565 struct window *w = decode_window (window); 553 struct window *w = decode_window (window);
566 int hscroll; 554 int hscroll;
@@ -581,8 +569,7 @@ DEFUN ("window-redisplay-end-trigger", Fwindow_redisplay_end_trigger,
581 doc: /* Return WINDOW's redisplay end trigger value. 569 doc: /* Return WINDOW's redisplay end trigger value.
582WINDOW defaults to the selected window. 570WINDOW defaults to the selected window.
583See `set-window-redisplay-end-trigger' for more information. */) 571See `set-window-redisplay-end-trigger' for more information. */)
584 (window) 572 (Lisp_Object window)
585 Lisp_Object window;
586{ 573{
587 return decode_window (window)->redisplay_end_trigger; 574 return decode_window (window)->redisplay_end_trigger;
588} 575}
@@ -595,8 +582,7 @@ If it is a buffer position, then if redisplay in WINDOW reaches a position
595beyond VALUE, the functions in `redisplay-end-trigger-functions' are called 582beyond VALUE, the functions in `redisplay-end-trigger-functions' are called
596with two arguments: WINDOW, and the end trigger value. 583with two arguments: WINDOW, and the end trigger value.
597Afterwards the end-trigger value is reset to nil. */) 584Afterwards the end-trigger value is reset to nil. */)
598 (window, value) 585 (register Lisp_Object window, Lisp_Object value)
599 register Lisp_Object window, value;
600{ 586{
601 register struct window *w; 587 register struct window *w;
602 588
@@ -616,8 +602,7 @@ BOTTOM is one more than the bottommost row occupied by WINDOW.
616The edges include the space used by WINDOW's scroll bar, display 602The edges include the space used by WINDOW's scroll bar, display
617margins, fringes, header line, and/or mode line. For the edges of 603margins, fringes, header line, and/or mode line. For the edges of
618just the text area, use `window-inside-edges'. */) 604just the text area, use `window-inside-edges'. */)
619 (window) 605 (Lisp_Object window)
620 Lisp_Object window;
621{ 606{
622 register struct window *w = decode_any_window (window); 607 register struct window *w = decode_any_window (window);
623 608
@@ -638,8 +623,7 @@ BOTTOM is one more than the bottommost y position occupied by WINDOW.
638The pixel edges include the space used by WINDOW's scroll bar, display 623The pixel edges include the space used by WINDOW's scroll bar, display
639margins, fringes, header line, and/or mode line. For the pixel edges 624margins, fringes, header line, and/or mode line. For the pixel edges
640of just the text area, use `window-inside-pixel-edges'. */) 625of just the text area, use `window-inside-pixel-edges'. */)
641 (window) 626 (Lisp_Object window)
642 Lisp_Object window;
643{ 627{
644 register struct window *w = decode_any_window (window); 628 register struct window *w = decode_any_window (window);
645 629
@@ -678,8 +662,7 @@ BOTTOM is one more than the bottommost y position occupied by WINDOW.
678The pixel edges include the space used by WINDOW's scroll bar, display 662The pixel edges include the space used by WINDOW's scroll bar, display
679margins, fringes, header line, and/or mode line. For the pixel edges 663margins, fringes, header line, and/or mode line. For the pixel edges
680of just the text area, use `window-inside-absolute-pixel-edges'. */) 664of just the text area, use `window-inside-absolute-pixel-edges'. */)
681 (window) 665 (Lisp_Object window)
682 Lisp_Object window;
683{ 666{
684 register struct window *w = decode_any_window (window); 667 register struct window *w = decode_any_window (window);
685 int add_x, add_y; 668 int add_x, add_y;
@@ -702,8 +685,7 @@ RIGHT is one more than the rightmost column of WINDOW's text area.
702BOTTOM is one more than the bottommost row of WINDOW's text area. 685BOTTOM is one more than the bottommost row of WINDOW's text area.
703The inside edges do not include the space used by the WINDOW's scroll 686The inside edges do not include the space used by the WINDOW's scroll
704bar, display margins, fringes, header line, and/or mode line. */) 687bar, display margins, fringes, header line, and/or mode line. */)
705 (window) 688 (Lisp_Object window)
706 Lisp_Object window;
707{ 689{
708 register struct window *w = decode_any_window (window); 690 register struct window *w = decode_any_window (window);
709 691
@@ -728,8 +710,7 @@ RIGHT is one more than the rightmost x position of WINDOW's text area.
728BOTTOM is one more than the bottommost y position of WINDOW's text area. 710BOTTOM is one more than the bottommost y position of WINDOW's text area.
729The inside edges do not include the space used by WINDOW's scroll bar, 711The inside edges do not include the space used by WINDOW's scroll bar,
730display margins, fringes, header line, and/or mode line. */) 712display margins, fringes, header line, and/or mode line. */)
731 (window) 713 (Lisp_Object window)
732 Lisp_Object window;
733{ 714{
734 register struct window *w = decode_any_window (window); 715 register struct window *w = decode_any_window (window);
735 716
@@ -756,8 +737,7 @@ RIGHT is one more than the rightmost x position of WINDOW's text area.
756BOTTOM is one more than the bottommost y position of WINDOW's text area. 737BOTTOM is one more than the bottommost y position of WINDOW's text area.
757The inside edges do not include the space used by WINDOW's scroll bar, 738The inside edges do not include the space used by WINDOW's scroll bar,
758display margins, fringes, header line, and/or mode line. */) 739display margins, fringes, header line, and/or mode line. */)
759 (window) 740 (Lisp_Object window)
760 Lisp_Object window;
761{ 741{
762 register struct window *w = decode_any_window (window); 742 register struct window *w = decode_any_window (window);
763 int add_x, add_y; 743 int add_x, add_y;
@@ -1002,8 +982,7 @@ If they are on the border between WINDOW and its right sibling,
1002 `vertical-line' is returned. 982 `vertical-line' is returned.
1003If they are in the windows's left or right marginal areas, `left-margin'\n\ 983If they are in the windows's left or right marginal areas, `left-margin'\n\
1004 or `right-margin' is returned. */) 984 or `right-margin' is returned. */)
1005 (coordinates, window) 985 (register Lisp_Object coordinates, Lisp_Object window)
1006 register Lisp_Object coordinates, window;
1007{ 986{
1008 struct window *w; 987 struct window *w;
1009 struct frame *f; 988 struct frame *f;
@@ -1155,8 +1134,7 @@ DEFUN ("window-at", Fwindow_at, Swindow_at, 2, 3, 0,
1155If omitted, FRAME defaults to the currently selected frame. 1134If omitted, FRAME defaults to the currently selected frame.
1156The top left corner of the frame is considered to be row 0, 1135The top left corner of the frame is considered to be row 0,
1157column 0. */) 1136column 0. */)
1158 (x, y, frame) 1137 (Lisp_Object x, Lisp_Object y, Lisp_Object frame)
1159 Lisp_Object x, y, frame;
1160{ 1138{
1161 struct frame *f; 1139 struct frame *f;
1162 1140
@@ -1189,8 +1167,7 @@ is also currently selected, the value returned is the same as (point).
1189It would be more strictly correct to return the `top-level' value 1167It would be more strictly correct to return the `top-level' value
1190of point, outside of any save-excursion forms. 1168of point, outside of any save-excursion forms.
1191But that is hard to define. */) 1169But that is hard to define. */)
1192 (window) 1170 (Lisp_Object window)
1193 Lisp_Object window;
1194{ 1171{
1195 register struct window *w = decode_window (window); 1172 register struct window *w = decode_window (window);
1196 1173
@@ -1204,8 +1181,7 @@ DEFUN ("window-start", Fwindow_start, Swindow_start, 0, 1, 0,
1204 doc: /* Return position at which display currently starts in WINDOW. 1181 doc: /* Return position at which display currently starts in WINDOW.
1205WINDOW defaults to the selected window. 1182WINDOW defaults to the selected window.
1206This is updated by redisplay or by calling `set-window-start'. */) 1183This is updated by redisplay or by calling `set-window-start'. */)
1207 (window) 1184 (Lisp_Object window)
1208 Lisp_Object window;
1209{ 1185{
1210 return Fmarker_position (decode_window (window)->start); 1186 return Fmarker_position (decode_window (window)->start);
1211} 1187}
@@ -1231,8 +1207,7 @@ Return nil if there is no recorded value. \(This can happen if the
1231last redisplay of WINDOW was preempted, and did not finish.) 1207last redisplay of WINDOW was preempted, and did not finish.)
1232If UPDATE is non-nil, compute the up-to-date position 1208If UPDATE is non-nil, compute the up-to-date position
1233if it isn't already recorded. */) 1209if it isn't already recorded. */)
1234 (window, update) 1210 (Lisp_Object window, Lisp_Object update)
1235 Lisp_Object window, update;
1236{ 1211{
1237 Lisp_Object value; 1212 Lisp_Object value;
1238 struct window *w = decode_window (window); 1213 struct window *w = decode_window (window);
@@ -1300,8 +1275,7 @@ if it isn't already recorded. */)
1300DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0, 1275DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0,
1301 doc: /* Make point value in WINDOW be at position POS in WINDOW's buffer. 1276 doc: /* Make point value in WINDOW be at position POS in WINDOW's buffer.
1302Return POS. */) 1277Return POS. */)
1303 (window, pos) 1278 (Lisp_Object window, Lisp_Object pos)
1304 Lisp_Object window, pos;
1305{ 1279{
1306 register struct window *w = decode_window (window); 1280 register struct window *w = decode_window (window);
1307 1281
@@ -1325,8 +1299,7 @@ DEFUN ("set-window-start", Fset_window_start, Sset_window_start, 2, 3, 0,
1325WINDOW defaults to the selected window. Return POS. 1299WINDOW defaults to the selected window. Return POS.
1326Optional third arg NOFORCE non-nil inhibits next redisplay from 1300Optional third arg NOFORCE non-nil inhibits next redisplay from
1327overriding motion of point in order to display at this exact start. */) 1301overriding motion of point in order to display at this exact start. */)
1328 (window, pos, noforce) 1302 (Lisp_Object window, Lisp_Object pos, Lisp_Object noforce)
1329 Lisp_Object window, pos, noforce;
1330{ 1303{
1331 register struct window *w = decode_window (window); 1304 register struct window *w = decode_window (window);
1332 1305
@@ -1364,8 +1337,7 @@ from displaying another buffer in it. `get-lru-window' and
1364Functions like `set-window-buffer' may change the buffer displayed by a 1337Functions like `set-window-buffer' may change the buffer displayed by a
1365window, unless that window is "strongly" dedicated to its buffer, that 1338window, unless that window is "strongly" dedicated to its buffer, that
1366is the value returned by `window-dedicated-p' is t. */) 1339is the value returned by `window-dedicated-p' is t. */)
1367 (window) 1340 (Lisp_Object window)
1368 Lisp_Object window;
1369{ 1341{
1370 return decode_window (window)->dedicated; 1342 return decode_window (window)->dedicated;
1371} 1343}
@@ -1389,8 +1361,7 @@ its buffer. Functions like `set-window-buffer' may change the buffer
1389displayed by a window, unless that window is strongly dedicated to its 1361displayed by a window, unless that window is strongly dedicated to its
1390buffer. If and when `set-window-buffer' displays another buffer in a 1362buffer. If and when `set-window-buffer' displays another buffer in a
1391window, it also makes sure that the window is not marked as dedicated. */) 1363window, it also makes sure that the window is not marked as dedicated. */)
1392 (window, flag) 1364 (Lisp_Object window, Lisp_Object flag)
1393 Lisp_Object window, flag;
1394{ 1365{
1395 register struct window *w = decode_window (window); 1366 register struct window *w = decode_window (window);
1396 1367
@@ -1404,8 +1375,7 @@ DEFUN ("window-parameters", Fwindow_parameters, Swindow_parameters,
1404 doc: /* Return the parameters of WINDOW and their values. 1375 doc: /* Return the parameters of WINDOW and their values.
1405WINDOW defaults to the selected window. The return value is a list of 1376WINDOW defaults to the selected window. The return value is a list of
1406elements of the form (PARAMETER . VALUE). */) 1377elements of the form (PARAMETER . VALUE). */)
1407 (window) 1378 (Lisp_Object window)
1408 Lisp_Object window;
1409{ 1379{
1410 return Fcopy_alist (decode_window (window)->window_parameters); 1380 return Fcopy_alist (decode_window (window)->window_parameters);
1411} 1381}
@@ -1414,8 +1384,7 @@ DEFUN ("window-parameter", Fwindow_parameter, Swindow_parameter,
1414 2, 2, 0, 1384 2, 2, 0,
1415 doc: /* Return WINDOW's value for PARAMETER. 1385 doc: /* Return WINDOW's value for PARAMETER.
1416WINDOW defaults to the selected window. */) 1386WINDOW defaults to the selected window. */)
1417 (window, parameter) 1387 (Lisp_Object window, Lisp_Object parameter)
1418 Lisp_Object window, parameter;
1419{ 1388{
1420 Lisp_Object result; 1389 Lisp_Object result;
1421 1390
@@ -1427,8 +1396,7 @@ DEFUN ("set-window-parameter", Fset_window_parameter,
1427 Sset_window_parameter, 3, 3, 0, 1396 Sset_window_parameter, 3, 3, 0,
1428 doc: /* Set WINDOW's value of PARAMETER to VALUE. 1397 doc: /* Set WINDOW's value of PARAMETER to VALUE.
1429WINDOW defaults to the selected window. Return VALUE. */) 1398WINDOW defaults to the selected window. Return VALUE. */)
1430 (window, parameter, value) 1399 (Lisp_Object window, Lisp_Object parameter, Lisp_Object value)
1431 Lisp_Object window, parameter, value;
1432{ 1400{
1433 register struct window *w = decode_window (window); 1401 register struct window *w = decode_window (window);
1434 Lisp_Object old_alist_elt; 1402 Lisp_Object old_alist_elt;
@@ -1446,8 +1414,7 @@ DEFUN ("window-display-table", Fwindow_display_table, Swindow_display_table,
1446 0, 1, 0, 1414 0, 1, 0,
1447 doc: /* Return the display-table that WINDOW is using. 1415 doc: /* Return the display-table that WINDOW is using.
1448WINDOW defaults to the selected window. */) 1416WINDOW defaults to the selected window. */)
1449 (window) 1417 (Lisp_Object window)
1450 Lisp_Object window;
1451{ 1418{
1452 return decode_window (window)->display_table; 1419 return decode_window (window)->display_table;
1453} 1420}
@@ -1479,8 +1446,7 @@ window_display_table (struct window *w)
1479 1446
1480DEFUN ("set-window-display-table", Fset_window_display_table, Sset_window_display_table, 2, 2, 0, 1447DEFUN ("set-window-display-table", Fset_window_display_table, Sset_window_display_table, 2, 2, 0,
1481 doc: /* Set WINDOW's display-table to TABLE. */) 1448 doc: /* Set WINDOW's display-table to TABLE. */)
1482 (window, table) 1449 (register Lisp_Object window, Lisp_Object table)
1483 register Lisp_Object window, table;
1484{ 1450{
1485 register struct window *w; 1451 register struct window *w;
1486 1452
@@ -1596,8 +1562,7 @@ DEFUN ("delete-window", Fdelete_window, Sdelete_window, 0, 1, "",
1596 doc: /* Remove WINDOW from its frame. 1562 doc: /* Remove WINDOW from its frame.
1597WINDOW defaults to the selected window. Return nil. 1563WINDOW defaults to the selected window. Return nil.
1598Signal an error when WINDOW is the only window on its frame. */) 1564Signal an error when WINDOW is the only window on its frame. */)
1599 (window) 1565 (register Lisp_Object window)
1600 register Lisp_Object window;
1601{ 1566{
1602 struct frame *f; 1567 struct frame *f;
1603 if (NILP (window)) 1568 if (NILP (window))
@@ -2094,8 +2059,7 @@ If you use consistent values for MINIBUF and ALL-FRAMES, you can use
2094`next-window' to iterate through the entire cycle of acceptable 2059`next-window' to iterate through the entire cycle of acceptable
2095windows, eventually ending up back at the window you started with. 2060windows, eventually ending up back at the window you started with.
2096`previous-window' traverses the same cycle, in the reverse order. */) 2061`previous-window' traverses the same cycle, in the reverse order. */)
2097 (window, minibuf, all_frames) 2062 (Lisp_Object window, Lisp_Object minibuf, Lisp_Object all_frames)
2098 Lisp_Object window, minibuf, all_frames;
2099{ 2063{
2100 return next_window (window, minibuf, all_frames, 1); 2064 return next_window (window, minibuf, all_frames, 1);
2101} 2065}
@@ -2112,8 +2076,7 @@ use `previous-window' to iterate through the entire cycle of
2112acceptable windows, eventually ending up back at the window you 2076acceptable windows, eventually ending up back at the window you
2113started with. `next-window' traverses the same cycle, in the 2077started with. `next-window' traverses the same cycle, in the
2114reverse order. */) 2078reverse order. */)
2115 (window, minibuf, all_frames) 2079 (Lisp_Object window, Lisp_Object minibuf, Lisp_Object all_frames)
2116 Lisp_Object window, minibuf, all_frames;
2117{ 2080{
2118 return next_window (window, minibuf, all_frames, 0); 2081 return next_window (window, minibuf, all_frames, 0);
2119} 2082}
@@ -2132,8 +2095,7 @@ This function uses `next-window' for finding the window to select.
2132The argument ALL-FRAMES has the same meaning as in `next-window', 2095The argument ALL-FRAMES has the same meaning as in `next-window',
2133but the MINIBUF argument of `next-window' is always effectively 2096but the MINIBUF argument of `next-window' is always effectively
2134nil. */) 2097nil. */)
2135 (count, all_frames) 2098 (Lisp_Object count, Lisp_Object all_frames)
2136 Lisp_Object count, all_frames;
2137{ 2099{
2138 Lisp_Object window; 2100 Lisp_Object window;
2139 int i; 2101 int i;
@@ -2159,8 +2121,7 @@ MINIBUF t means include the minibuffer window, even if it isn't active.
2159MINIBUF nil or omitted means include the minibuffer window only 2121MINIBUF nil or omitted means include the minibuffer window only
2160if it's active. 2122if it's active.
2161MINIBUF neither nil nor t means never include the minibuffer window. */) 2123MINIBUF neither nil nor t means never include the minibuffer window. */)
2162 (frame, minibuf, window) 2124 (Lisp_Object frame, Lisp_Object minibuf, Lisp_Object window)
2163 Lisp_Object frame, minibuf, window;
2164{ 2125{
2165 if (NILP (window)) 2126 if (NILP (window))
2166 window = FRAMEP (frame) ? XFRAME (frame)->selected_window : selected_window; 2127 window = FRAMEP (frame) ? XFRAME (frame)->selected_window : selected_window;
@@ -2472,8 +2433,7 @@ If FRAME is 0, search all visible and iconified frames.
2472If FRAME is t, search all frames. 2433If FRAME is t, search all frames.
2473If FRAME is nil, search only the selected frame. 2434If FRAME is nil, search only the selected frame.
2474If FRAME is a frame, search only that frame. */) 2435If FRAME is a frame, search only that frame. */)
2475 (frame, dedicated) 2436 (Lisp_Object frame, Lisp_Object dedicated)
2476 Lisp_Object frame, dedicated;
2477{ 2437{
2478 register Lisp_Object w; 2438 register Lisp_Object w;
2479 /* First try for a window that is full-width */ 2439 /* First try for a window that is full-width */
@@ -2498,8 +2458,7 @@ If FRAME is 0, search all visible and iconified frames.
2498If FRAME is t, search all frames. 2458If FRAME is t, search all frames.
2499If FRAME is nil, search only the selected frame. 2459If FRAME is nil, search only the selected frame.
2500If FRAME is a frame, search only that frame. */) 2460If FRAME is a frame, search only that frame. */)
2501 (frame, dedicated) 2461 (Lisp_Object frame, Lisp_Object dedicated)
2502 Lisp_Object frame, dedicated;
2503{ 2462{
2504 return window_loop (GET_LARGEST_WINDOW, dedicated, 0, 2463 return window_loop (GET_LARGEST_WINDOW, dedicated, 0,
2505 frame); 2464 frame);
@@ -2514,8 +2473,7 @@ If optional argument FRAME is 0, search all visible and iconified frames.
2514If FRAME is t, search all frames. 2473If FRAME is t, search all frames.
2515If FRAME is nil, search only the selected frame. 2474If FRAME is nil, search only the selected frame.
2516If FRAME is a frame, search only that frame. */) 2475If FRAME is a frame, search only that frame. */)
2517 (buffer_or_name, frame) 2476 (Lisp_Object buffer_or_name, Lisp_Object frame)
2518 Lisp_Object buffer_or_name, frame;
2519{ 2477{
2520 Lisp_Object buffer; 2478 Lisp_Object buffer;
2521 2479
@@ -2539,8 +2497,7 @@ previously visible in WINDOW in the same place on the frame. Doing this
2539depends on the value of (window-start WINDOW), so if calling this 2497depends on the value of (window-start WINDOW), so if calling this
2540function in a program gives strange scrolling, make sure the 2498function in a program gives strange scrolling, make sure the
2541window-start value is reasonable when this function is called. */) 2499window-start value is reasonable when this function is called. */)
2542 (window) 2500 (Lisp_Object window)
2543 Lisp_Object window;
2544{ 2501{
2545 struct window *w; 2502 struct window *w;
2546 int startpos; 2503 int startpos;
@@ -2607,8 +2564,7 @@ If FRAME is t, search only the selected frame.
2607If FRAME is a frame, search only that frame. 2564If FRAME is a frame, search only that frame.
2608When a window showing BUFFER-OR-NAME is dedicated and the only window of 2565When a window showing BUFFER-OR-NAME is dedicated and the only window of
2609its frame, that frame is deleted when there are other frames left. */) 2566its frame, that frame is deleted when there are other frames left. */)
2610 (buffer_or_name, frame) 2567 (Lisp_Object buffer_or_name, Lisp_Object frame)
2611 Lisp_Object buffer_or_name, frame;
2612{ 2568{
2613 Lisp_Object buffer; 2569 Lisp_Object buffer;
2614 2570
@@ -2643,8 +2599,7 @@ When a window showing BUFFER-OR-NAME is dedicated that window is
2643deleted. If that window is the only window on its frame, that frame is 2599deleted. If that window is the only window on its frame, that frame is
2644deleted too when there are other frames left. If there are no other 2600deleted too when there are other frames left. If there are no other
2645frames left, some other buffer is displayed in that window. */) 2601frames left, some other buffer is displayed in that window. */)
2646 (buffer_or_name) 2602 (Lisp_Object buffer_or_name)
2647 Lisp_Object buffer_or_name;
2648{ 2603{
2649 Lisp_Object buffer; 2604 Lisp_Object buffer;
2650 2605
@@ -3570,8 +3525,7 @@ already display BUFFER-OR-NAME.
3570 3525
3571This function runs `window-scroll-functions' before running 3526This function runs `window-scroll-functions' before running
3572`window-configuration-change-hook'. */) 3527`window-configuration-change-hook'. */)
3573 (window, buffer_or_name, keep_margins) 3528 (register Lisp_Object window, Lisp_Object buffer_or_name, Lisp_Object keep_margins)
3574 register Lisp_Object window, buffer_or_name, keep_margins;
3575{ 3529{
3576 register Lisp_Object tem, buffer; 3530 register Lisp_Object tem, buffer;
3577 register struct window *w = decode_window (window); 3531 register struct window *w = decode_window (window);
@@ -3614,8 +3568,7 @@ make this window the most recently selected one.
3614 3568
3615Note that the main editor command loop selects the buffer of the 3569Note that the main editor command loop selects the buffer of the
3616selected window before each command. */) 3570selected window before each command. */)
3617 (window, norecord) 3571 (register Lisp_Object window, Lisp_Object norecord)
3618 register Lisp_Object window, norecord;
3619{ 3572{
3620 register struct window *w; 3573 register struct window *w;
3621 register struct window *ow; 3574 register struct window *ow;
@@ -3715,8 +3668,7 @@ DEFUN ("force-window-update", Fforce_window_update, Sforce_window_update,
3715If optional arg OBJECT is a window, force redisplay of that window only. 3668If optional arg OBJECT is a window, force redisplay of that window only.
3716If OBJECT is a buffer or buffer name, force redisplay of all windows 3669If OBJECT is a buffer or buffer name, force redisplay of all windows
3717displaying that buffer. */) 3670displaying that buffer. */)
3718 (object) 3671 (Lisp_Object object)
3719 Lisp_Object object;
3720{ 3672{
3721 if (NILP (object)) 3673 if (NILP (object))
3722 { 3674 {
@@ -3857,8 +3809,7 @@ The upper or leftmost window is the original one, and remains selected
3857if it was selected before. 3809if it was selected before.
3858 3810
3859See Info node `(elisp)Splitting Windows' for more details and examples. */) 3811See Info node `(elisp)Splitting Windows' for more details and examples. */)
3860 (window, size, horizontal) 3812 (Lisp_Object window, Lisp_Object size, Lisp_Object horizontal)
3861 Lisp_Object window, size, horizontal;
3862{ 3813{
3863 register Lisp_Object new; 3814 register Lisp_Object new;
3864 register struct window *o, *p; 3815 register struct window *o, *p;
@@ -3997,8 +3948,7 @@ window wider by SIZE columns. If SIZE is negative, shrink the window by
3997 3948
3998This function can delete windows if they get too small. The size of 3949This function can delete windows if they get too small. The size of
3999fixed size windows is not altered by this function. */) 3950fixed size windows is not altered by this function. */)
4000 (size, horizontal) 3951 (Lisp_Object size, Lisp_Object horizontal)
4001 Lisp_Object size, horizontal;
4002{ 3952{
4003 CHECK_NUMBER (size); 3953 CHECK_NUMBER (size);
4004 enlarge_window (selected_window, XINT (size), !NILP (horizontal)); 3954 enlarge_window (selected_window, XINT (size), !NILP (horizontal));
@@ -4017,8 +3967,7 @@ window by -SIZE lines or columns. Return nil.
4017 3967
4018This function can delete windows if they get too small. The size of 3968This function can delete windows if they get too small. The size of
4019fixed size windows is not altered by this function. */) 3969fixed size windows is not altered by this function. */)
4020 (size, horizontal) 3970 (Lisp_Object size, Lisp_Object horizontal)
4021 Lisp_Object size, horizontal;
4022{ 3971{
4023 CHECK_NUMBER (size); 3972 CHECK_NUMBER (size);
4024 enlarge_window (selected_window, -XINT (size), !NILP (horizontal)); 3973 enlarge_window (selected_window, -XINT (size), !NILP (horizontal));
@@ -4470,8 +4419,7 @@ Otherwise, adjust the height, moving the bottom edge.
4470Following siblings of the selected window are resized to fulfill 4419Following siblings of the selected window are resized to fulfill
4471the size request. If they become too small in the process, they 4420the size request. If they become too small in the process, they
4472are not deleted; instead, we signal an error. */) 4421are not deleted; instead, we signal an error. */)
4473 (window, delta, horizontal) 4422 (Lisp_Object window, Lisp_Object delta, Lisp_Object horizontal)
4474 Lisp_Object window, delta, horizontal;
4475{ 4423{
4476 CHECK_NUMBER (delta); 4424 CHECK_NUMBER (delta);
4477 if (NILP (window)) 4425 if (NILP (window))
@@ -5366,8 +5314,7 @@ A near full screen is `next-screen-context-lines' less than a full screen.
5366Negative ARG means scroll downward. 5314Negative ARG means scroll downward.
5367If ARG is the atom `-', scroll downward by nearly full screen. 5315If ARG is the atom `-', scroll downward by nearly full screen.
5368When calling from a program, supply as argument a number, nil, or `-'. */) 5316When calling from a program, supply as argument a number, nil, or `-'. */)
5369 (arg) 5317 (Lisp_Object arg)
5370 Lisp_Object arg;
5371{ 5318{
5372 scroll_command (arg, 1); 5319 scroll_command (arg, 1);
5373 return Qnil; 5320 return Qnil;
@@ -5380,8 +5327,7 @@ A near full screen is `next-screen-context-lines' less than a full screen.
5380Negative ARG means scroll upward. 5327Negative ARG means scroll upward.
5381If ARG is the atom `-', scroll upward by nearly full screen. 5328If ARG is the atom `-', scroll upward by nearly full screen.
5382When calling from a program, supply as argument a number, nil, or `-'. */) 5329When calling from a program, supply as argument a number, nil, or `-'. */)
5383 (arg) 5330 (Lisp_Object arg)
5384 Lisp_Object arg;
5385{ 5331{
5386 scroll_command (arg, -1); 5332 scroll_command (arg, -1);
5387 return Qnil; 5333 return Qnil;
@@ -5394,7 +5340,7 @@ showing that buffer is used.
5394If in the minibuffer, `minibuffer-scroll-window' if non-nil 5340If in the minibuffer, `minibuffer-scroll-window' if non-nil
5395specifies the window. This takes precedence over 5341specifies the window. This takes precedence over
5396`other-window-scroll-buffer'. */) 5342`other-window-scroll-buffer'. */)
5397 () 5343 (void)
5398{ 5344{
5399 Lisp_Object window; 5345 Lisp_Object window;
5400 5346
@@ -5444,8 +5390,7 @@ showing that buffer, popping the buffer up if necessary.
5444If in the minibuffer, `minibuffer-scroll-window' if non-nil 5390If in the minibuffer, `minibuffer-scroll-window' if non-nil
5445specifies the window to scroll. This takes precedence over 5391specifies the window to scroll. This takes precedence over
5446`other-window-scroll-buffer'. */) 5392`other-window-scroll-buffer'. */)
5447 (arg) 5393 (Lisp_Object arg)
5448 Lisp_Object arg;
5449{ 5394{
5450 Lisp_Object window; 5395 Lisp_Object window;
5451 struct window *w; 5396 struct window *w;
@@ -5488,8 +5433,7 @@ If SET-MINIMUM is non-nil, the new scroll amount becomes the
5488lower bound for automatic scrolling, i.e. automatic scrolling 5433lower bound for automatic scrolling, i.e. automatic scrolling
5489will not scroll a window to a column less than the value returned 5434will not scroll a window to a column less than the value returned
5490by this function. This happens in an interactive call. */) 5435by this function. This happens in an interactive call. */)
5491 (arg, set_minimum) 5436 (register Lisp_Object arg, Lisp_Object set_minimum)
5492 register Lisp_Object arg, set_minimum;
5493{ 5437{
5494 Lisp_Object result; 5438 Lisp_Object result;
5495 int hscroll; 5439 int hscroll;
@@ -5518,8 +5462,7 @@ If SET-MINIMUM is non-nil, the new scroll amount becomes the
5518lower bound for automatic scrolling, i.e. automatic scrolling 5462lower bound for automatic scrolling, i.e. automatic scrolling
5519will not scroll a window to a column less than the value returned 5463will not scroll a window to a column less than the value returned
5520by this function. This happens in an interactive call. */) 5464by this function. This happens in an interactive call. */)
5521 (arg, set_minimum) 5465 (register Lisp_Object arg, Lisp_Object set_minimum)
5522 register Lisp_Object arg, set_minimum;
5523{ 5466{
5524 Lisp_Object result; 5467 Lisp_Object result;
5525 int hscroll; 5468 int hscroll;
@@ -5542,7 +5485,7 @@ by this function. This happens in an interactive call. */)
5542DEFUN ("minibuffer-selected-window", Fminibuffer_selected_window, Sminibuffer_selected_window, 0, 0, 0, 5485DEFUN ("minibuffer-selected-window", Fminibuffer_selected_window, Sminibuffer_selected_window, 0, 0, 0,
5543 doc: /* Return the window which was selected when entering the minibuffer. 5486 doc: /* Return the window which was selected when entering the minibuffer.
5544Returns nil, if selected window is not a minibuffer window. */) 5487Returns nil, if selected window is not a minibuffer window. */)
5545 () 5488 (void)
5546{ 5489{
5547 if (minibuf_level > 0 5490 if (minibuf_level > 0
5548 && MINI_WINDOW_P (XWINDOW (selected_window)) 5491 && MINI_WINDOW_P (XWINDOW (selected_window))
@@ -5624,8 +5567,7 @@ then only tty frame are redrawn.
5624 5567
5625Just C-u as prefix means put point in the center of the window 5568Just C-u as prefix means put point in the center of the window
5626and redisplay normally--don't erase and redraw the frame. */) 5569and redisplay normally--don't erase and redraw the frame. */)
5627 (arg) 5570 (register Lisp_Object arg)
5628 register Lisp_Object arg;
5629{ 5571{
5630 struct window *w = XWINDOW (selected_window); 5572 struct window *w = XWINDOW (selected_window);
5631 struct buffer *buf = XBUFFER (w->buffer); 5573 struct buffer *buf = XBUFFER (w->buffer);
@@ -5809,8 +5751,7 @@ WINDOW defaults to the selected window.
5809 5751
5810The return value does not include the mode line, any header line, nor 5752The return value does not include the mode line, any header line, nor
5811any partial-height lines in the text display area. */) 5753any partial-height lines in the text display area. */)
5812 (window) 5754 (Lisp_Object window)
5813 Lisp_Object window;
5814{ 5755{
5815 struct window *w = decode_window (window); 5756 struct window *w = decode_window (window);
5816 int pixel_height = window_box_height (w); 5757 int pixel_height = window_box_height (w);
@@ -5826,8 +5767,7 @@ DEFUN ("move-to-window-line", Fmove_to_window_line, Smove_to_window_line,
5826With no argument, position point at center of window. 5767With no argument, position point at center of window.
5827An argument specifies vertical position within the window; 5768An argument specifies vertical position within the window;
5828zero means top of window, negative means relative to bottom of window. */) 5769zero means top of window, negative means relative to bottom of window. */)
5829 (arg) 5770 (Lisp_Object arg)
5830 Lisp_Object arg;
5831{ 5771{
5832 struct window *w = XWINDOW (selected_window); 5772 struct window *w = XWINDOW (selected_window);
5833 int lines, start; 5773 int lines, start;
@@ -5940,16 +5880,14 @@ struct saved_window
5940 5880
5941DEFUN ("window-configuration-p", Fwindow_configuration_p, Swindow_configuration_p, 1, 1, 0, 5881DEFUN ("window-configuration-p", Fwindow_configuration_p, Swindow_configuration_p, 1, 1, 0,
5942 doc: /* Return t if OBJECT is a window-configuration object. */) 5882 doc: /* Return t if OBJECT is a window-configuration object. */)
5943 (object) 5883 (Lisp_Object object)
5944 Lisp_Object object;
5945{ 5884{
5946 return WINDOW_CONFIGURATIONP (object) ? Qt : Qnil; 5885 return WINDOW_CONFIGURATIONP (object) ? Qt : Qnil;
5947} 5886}
5948 5887
5949DEFUN ("window-configuration-frame", Fwindow_configuration_frame, Swindow_configuration_frame, 1, 1, 0, 5888DEFUN ("window-configuration-frame", Fwindow_configuration_frame, Swindow_configuration_frame, 1, 1, 0,
5950 doc: /* Return the frame that CONFIG, a window-configuration object, is about. */) 5889 doc: /* Return the frame that CONFIG, a window-configuration object, is about. */)
5951 (config) 5890 (Lisp_Object config)
5952 Lisp_Object config;
5953{ 5891{
5954 register struct save_window_data *data; 5892 register struct save_window_data *data;
5955 struct Lisp_Vector *saved_windows; 5893 struct Lisp_Vector *saved_windows;
@@ -5969,8 +5907,7 @@ by `current-window-configuration' (which see).
5969If CONFIGURATION was made from a frame that is now deleted, 5907If CONFIGURATION was made from a frame that is now deleted,
5970only frame-independent values can be restored. In this case, 5908only frame-independent values can be restored. In this case,
5971the return value is nil. Otherwise the value is t. */) 5909the return value is nil. Otherwise the value is t. */)
5972 (configuration) 5910 (Lisp_Object configuration)
5973 Lisp_Object configuration;
5974{ 5911{
5975 register struct save_window_data *data; 5912 register struct save_window_data *data;
5976 struct Lisp_Vector *saved_windows; 5913 struct Lisp_Vector *saved_windows;
@@ -6476,8 +6413,7 @@ point and mark. An exception is made for point in the current buffer:
6476its value is -not- saved. 6413its value is -not- saved.
6477This also records the currently selected frame, and FRAME's focus 6414This also records the currently selected frame, and FRAME's focus
6478redirection (see `redirect-frame-focus'). */) 6415redirection (see `redirect-frame-focus'). */)
6479 (frame) 6416 (Lisp_Object frame)
6480 Lisp_Object frame;
6481{ 6417{
6482 register Lisp_Object tem; 6418 register Lisp_Object tem;
6483 register int n_windows; 6419 register int n_windows;
@@ -6525,8 +6461,7 @@ Also restore the choice of selected window.
6525Also restore which buffer is current. 6461Also restore which buffer is current.
6526Does not restore the value of point in current buffer. 6462Does not restore the value of point in current buffer.
6527usage: (save-window-excursion BODY...) */) 6463usage: (save-window-excursion BODY...) */)
6528 (args) 6464 (Lisp_Object args)
6529 Lisp_Object args;
6530{ 6465{
6531 register Lisp_Object val; 6466 register Lisp_Object val;
6532 register int count = SPECPDL_INDEX (); 6467 register int count = SPECPDL_INDEX ();
@@ -6597,8 +6532,7 @@ EDGES is a list \(LEFT TOP RIGHT BOTTOM) as returned by `window-edges'.
6597 6532
6598If FRAME is nil or omitted, return information on the currently 6533If FRAME is nil or omitted, return information on the currently
6599selected frame. */) 6534selected frame. */)
6600 (frame) 6535 (Lisp_Object frame)
6601 Lisp_Object frame;
6602{ 6536{
6603 FRAME_PTR f; 6537 FRAME_PTR f;
6604 6538
@@ -6627,8 +6561,7 @@ Second arg LEFT-WIDTH specifies the number of character cells to
6627reserve for the left marginal area. Optional third arg RIGHT-WIDTH 6561reserve for the left marginal area. Optional third arg RIGHT-WIDTH
6628does the same for the right marginal area. A nil width parameter 6562does the same for the right marginal area. A nil width parameter
6629means no margin. */) 6563means no margin. */)
6630 (window, left_width, right_width) 6564 (Lisp_Object window, Lisp_Object left_width, Lisp_Object right_width)
6631 Lisp_Object window, left_width, right_width;
6632{ 6565{
6633 struct window *w = decode_window (window); 6566 struct window *w = decode_window (window);
6634 6567
@@ -6672,8 +6605,7 @@ If WINDOW is omitted or nil, use the currently selected window.
6672Value is a cons of the form (LEFT-WIDTH . RIGHT-WIDTH). 6605Value is a cons of the form (LEFT-WIDTH . RIGHT-WIDTH).
6673If a marginal area does not exist, its width will be returned 6606If a marginal area does not exist, its width will be returned
6674as nil. */) 6607as nil. */)
6675 (window) 6608 (Lisp_Object window)
6676 Lisp_Object window;
6677{ 6609{
6678 struct window *w = decode_window (window); 6610 struct window *w = decode_window (window);
6679 return Fcons (w->left_margin_cols, w->right_margin_cols); 6611 return Fcons (w->left_margin_cols, w->right_margin_cols);
@@ -6698,8 +6630,7 @@ the command `set-fringe-style'.
6698If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes 6630If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes
6699outside of the display margins. By default, fringes are drawn between 6631outside of the display margins. By default, fringes are drawn between
6700display marginal areas and the text area. */) 6632display marginal areas and the text area. */)
6701 (window, left_width, right_width, outside_margins) 6633 (Lisp_Object window, Lisp_Object left_width, Lisp_Object right_width, Lisp_Object outside_margins)
6702 Lisp_Object window, left_width, right_width, outside_margins;
6703{ 6634{
6704 struct window *w = decode_window (window); 6635 struct window *w = decode_window (window);
6705 6636
@@ -6736,8 +6667,7 @@ DEFUN ("window-fringes", Fwindow_fringes, Swindow_fringes,
6736 doc: /* Get width of fringes of window WINDOW. 6667 doc: /* Get width of fringes of window WINDOW.
6737If WINDOW is omitted or nil, use the currently selected window. 6668If WINDOW is omitted or nil, use the currently selected window.
6738Value is a list of the form (LEFT-WIDTH RIGHT-WIDTH OUTSIDE-MARGINS). */) 6669Value is a list of the form (LEFT-WIDTH RIGHT-WIDTH OUTSIDE-MARGINS). */)
6739 (window) 6670 (Lisp_Object window)
6740 Lisp_Object window;
6741{ 6671{
6742 struct window *w = decode_window (window); 6672 struct window *w = decode_window (window);
6743 6673
@@ -6764,8 +6694,7 @@ bar: left, right, or nil.
6764If WIDTH is nil, use the frame's scroll-bar width. 6694If WIDTH is nil, use the frame's scroll-bar width.
6765If VERTICAL-TYPE is t, use the frame's scroll-bar type. 6695If VERTICAL-TYPE is t, use the frame's scroll-bar type.
6766Fourth parameter HORIZONTAL-TYPE is currently unused. */) 6696Fourth parameter HORIZONTAL-TYPE is currently unused. */)
6767 (window, width, vertical_type, horizontal_type) 6697 (Lisp_Object window, Lisp_Object width, Lisp_Object vertical_type, Lisp_Object horizontal_type)
6768 Lisp_Object window, width, vertical_type, horizontal_type;
6769{ 6698{
6770 struct window *w = decode_window (window); 6699 struct window *w = decode_window (window);
6771 6700
@@ -6809,8 +6738,7 @@ If WINDOW is omitted or nil, use the currently selected window.
6809Value is a list of the form (WIDTH COLS VERTICAL-TYPE HORIZONTAL-TYPE). 6738Value is a list of the form (WIDTH COLS VERTICAL-TYPE HORIZONTAL-TYPE).
6810If WIDTH is nil or TYPE is t, the window is using the frame's corresponding 6739If WIDTH is nil or TYPE is t, the window is using the frame's corresponding
6811value. */) 6740value. */)
6812 (window) 6741 (Lisp_Object window)
6813 Lisp_Object window;
6814{ 6742{
6815 struct window *w = decode_window (window); 6743 struct window *w = decode_window (window);
6816 return Fcons (make_number ((WINDOW_CONFIG_SCROLL_BAR_WIDTH (w) 6744 return Fcons (make_number ((WINDOW_CONFIG_SCROLL_BAR_WIDTH (w)
@@ -6832,8 +6760,7 @@ DEFUN ("window-vscroll", Fwindow_vscroll, Swindow_vscroll, 0, 2, 0,
6832Use the selected window if WINDOW is nil or omitted. 6760Use the selected window if WINDOW is nil or omitted.
6833Normally, value is a multiple of the canonical character height of WINDOW; 6761Normally, value is a multiple of the canonical character height of WINDOW;
6834optional second arg PIXELS-P means value is measured in pixels. */) 6762optional second arg PIXELS-P means value is measured in pixels. */)
6835 (window, pixels_p) 6763 (Lisp_Object window, Lisp_Object pixels_p)
6836 Lisp_Object window, pixels_p;
6837{ 6764{
6838 Lisp_Object result; 6765 Lisp_Object result;
6839 struct frame *f; 6766 struct frame *f;
@@ -6866,8 +6793,7 @@ If PIXELS-P is nil, VSCROLL may have to be rounded so that it
6866corresponds to an integral number of pixels. The return value is the 6793corresponds to an integral number of pixels. The return value is the
6867result of this rounding. 6794result of this rounding.
6868If PIXELS-P is non-nil, the return value is VSCROLL. */) 6795If PIXELS-P is non-nil, the return value is VSCROLL. */)
6869 (window, vscroll, pixels_p) 6796 (Lisp_Object window, Lisp_Object vscroll, Lisp_Object pixels_p)
6870 Lisp_Object window, vscroll, pixels_p;
6871{ 6797{
6872 struct window *w; 6798 struct window *w;
6873 struct frame *f; 6799 struct frame *f;
@@ -7101,8 +7027,7 @@ DEFUN ("compare-window-configurations", Fcompare_window_configurations,
7101 doc: /* Compare two window configurations as regards the structure of windows. 7027 doc: /* Compare two window configurations as regards the structure of windows.
7102This function ignores details such as the values of point and mark 7028This function ignores details such as the values of point and mark
7103and scrolling positions. */) 7029and scrolling positions. */)
7104 (x, y) 7030 (Lisp_Object x, Lisp_Object y)
7105 Lisp_Object x, y;
7106{ 7031{
7107 if (compare_window_configurations (x, y, 1)) 7032 if (compare_window_configurations (x, y, 1))
7108 return Qt; 7033 return Qt;
diff --git a/src/xdisp.c b/src/xdisp.c
index c2aea3ce0c8..d145e7bd9f6 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -10524,8 +10524,7 @@ tool_bar_lines_needed (struct frame *f, int *n_rows)
10524DEFUN ("tool-bar-lines-needed", Ftool_bar_lines_needed, Stool_bar_lines_needed, 10524DEFUN ("tool-bar-lines-needed", Ftool_bar_lines_needed, Stool_bar_lines_needed,
10525 0, 1, 0, 10525 0, 1, 0,
10526 doc: /* Return the number of lines occupied by the tool bar of FRAME. */) 10526 doc: /* Return the number of lines occupied by the tool bar of FRAME. */)
10527 (frame) 10527 (Lisp_Object frame)
10528 Lisp_Object frame;
10529{ 10528{
10530 struct frame *f; 10529 struct frame *f;
10531 struct window *w; 10530 struct window *w;
@@ -16370,8 +16369,7 @@ DEFUN ("dump-glyph-matrix", Fdump_glyph_matrix,
16370Shows contents of glyph row structures. With non-nil 16369Shows contents of glyph row structures. With non-nil
16371parameter GLYPHS, dump glyphs as well. If GLYPHS is 1 show 16370parameter GLYPHS, dump glyphs as well. If GLYPHS is 1 show
16372glyphs in short form, otherwise show glyphs in long form. */) 16371glyphs in short form, otherwise show glyphs in long form. */)
16373 (glyphs) 16372 (Lisp_Object glyphs)
16374 Lisp_Object glyphs;
16375{ 16373{
16376 struct window *w = XWINDOW (selected_window); 16374 struct window *w = XWINDOW (selected_window);
16377 struct buffer *buffer = XBUFFER (w->buffer); 16375 struct buffer *buffer = XBUFFER (w->buffer);
@@ -16389,7 +16387,7 @@ glyphs in short form, otherwise show glyphs in long form. */)
16389 16387
16390DEFUN ("dump-frame-glyph-matrix", Fdump_frame_glyph_matrix, 16388DEFUN ("dump-frame-glyph-matrix", Fdump_frame_glyph_matrix,
16391 Sdump_frame_glyph_matrix, 0, 0, "", doc: /* */) 16389 Sdump_frame_glyph_matrix, 0, 0, "", doc: /* */)
16392 () 16390 (void)
16393{ 16391{
16394 struct frame *f = XFRAME (selected_frame); 16392 struct frame *f = XFRAME (selected_frame);
16395 dump_glyph_matrix (f->current_matrix, 1); 16393 dump_glyph_matrix (f->current_matrix, 1);
@@ -16402,8 +16400,7 @@ DEFUN ("dump-glyph-row", Fdump_glyph_row, Sdump_glyph_row, 1, 2, "",
16402GLYPH 0 means don't dump glyphs. 16400GLYPH 0 means don't dump glyphs.
16403GLYPH 1 means dump glyphs in short form. 16401GLYPH 1 means dump glyphs in short form.
16404GLYPH > 1 or omitted means dump glyphs in long form. */) 16402GLYPH > 1 or omitted means dump glyphs in long form. */)
16405 (row, glyphs) 16403 (Lisp_Object row, Lisp_Object glyphs)
16406 Lisp_Object row, glyphs;
16407{ 16404{
16408 struct glyph_matrix *matrix; 16405 struct glyph_matrix *matrix;
16409 int vpos; 16406 int vpos;
@@ -16424,8 +16421,7 @@ DEFUN ("dump-tool-bar-row", Fdump_tool_bar_row, Sdump_tool_bar_row, 1, 2, "",
16424GLYPH 0 means don't dump glyphs. 16421GLYPH 0 means don't dump glyphs.
16425GLYPH 1 means dump glyphs in short form. 16422GLYPH 1 means dump glyphs in short form.
16426GLYPH > 1 or omitted means dump glyphs in long form. */) 16423GLYPH > 1 or omitted means dump glyphs in long form. */)
16427 (row, glyphs) 16424 (Lisp_Object row, Lisp_Object glyphs)
16428 Lisp_Object row, glyphs;
16429{ 16425{
16430 struct frame *sf = SELECTED_FRAME (); 16426 struct frame *sf = SELECTED_FRAME ();
16431 struct glyph_matrix *m = XWINDOW (sf->tool_bar_window)->current_matrix; 16427 struct glyph_matrix *m = XWINDOW (sf->tool_bar_window)->current_matrix;
@@ -16443,8 +16439,7 @@ GLYPH > 1 or omitted means dump glyphs in long form. */)
16443DEFUN ("trace-redisplay", Ftrace_redisplay, Strace_redisplay, 0, 1, "P", 16439DEFUN ("trace-redisplay", Ftrace_redisplay, Strace_redisplay, 0, 1, "P",
16444 doc: /* Toggle tracing of redisplay. 16440 doc: /* Toggle tracing of redisplay.
16445With ARG, turn tracing on if and only if ARG is positive. */) 16441With ARG, turn tracing on if and only if ARG is positive. */)
16446 (arg) 16442 (Lisp_Object arg)
16447 Lisp_Object arg;
16448{ 16443{
16449 if (NILP (arg)) 16444 if (NILP (arg))
16450 trace_redisplay_p = !trace_redisplay_p; 16445 trace_redisplay_p = !trace_redisplay_p;
@@ -16461,9 +16456,7 @@ With ARG, turn tracing on if and only if ARG is positive. */)
16461DEFUN ("trace-to-stderr", Ftrace_to_stderr, Strace_to_stderr, 1, MANY, "", 16456DEFUN ("trace-to-stderr", Ftrace_to_stderr, Strace_to_stderr, 1, MANY, "",
16462 doc: /* Like `format', but print result to stderr. 16457 doc: /* Like `format', but print result to stderr.
16463usage: (trace-to-stderr STRING &rest OBJECTS) */) 16458usage: (trace-to-stderr STRING &rest OBJECTS) */)
16464 (nargs, args) 16459 (int nargs, Lisp_Object *args)
16465 int nargs;
16466 Lisp_Object *args;
16467{ 16460{
16468 Lisp_Object s = Fformat (nargs, args); 16461 Lisp_Object s = Fformat (nargs, args);
16469 fprintf (stderr, "%s", SDATA (s)); 16462 fprintf (stderr, "%s", SDATA (s));
@@ -17982,8 +17975,7 @@ and the reading direction is generally left to right. In right-to-left
17982paragraphs, text begins at the right margin and is read from right to left. 17975paragraphs, text begins at the right margin and is read from right to left.
17983 17976
17984See also `bidi-paragraph-direction'. */) 17977See also `bidi-paragraph-direction'. */)
17985 (buffer) 17978 (Lisp_Object buffer)
17986 Lisp_Object buffer;
17987{ 17979{
17988 struct buffer *buf; 17980 struct buffer *buf;
17989 struct buffer *old; 17981 struct buffer *old;
@@ -18947,8 +18939,7 @@ If FACE is an integer, the value string has no text properties.
18947Optional third and fourth args WINDOW and BUFFER specify the window 18939Optional third and fourth args WINDOW and BUFFER specify the window
18948and buffer to use as the context for the formatting (defaults 18940and buffer to use as the context for the formatting (defaults
18949are the selected window and the window's buffer). */) 18941are the selected window and the window's buffer). */)
18950 (format, face, window, buffer) 18942 (Lisp_Object format, Lisp_Object face, Lisp_Object window, Lisp_Object buffer)
18951 Lisp_Object format, face, window, buffer;
18952{ 18943{
18953 struct it it; 18944 struct it it;
18954 int len; 18945 int len;
@@ -20068,8 +20059,7 @@ is checked; or it can be some other value, which is then presumed to be the
20068value of the `invisible' property of the text of interest. 20059value of the `invisible' property of the text of interest.
20069The non-nil value returned can be t for truly invisible text or something 20060The non-nil value returned can be t for truly invisible text or something
20070else if the text is replaced by an ellipsis. */) 20061else if the text is replaced by an ellipsis. */)
20071 (pos_or_prop) 20062 (Lisp_Object pos_or_prop)
20072 Lisp_Object pos_or_prop;
20073{ 20063{
20074 Lisp_Object prop 20064 Lisp_Object prop
20075 = (NATNUMP (pos_or_prop) || MARKERP (pos_or_prop) 20065 = (NATNUMP (pos_or_prop) || MARKERP (pos_or_prop)
@@ -24230,9 +24220,7 @@ and the radius of the circle; r may be a float or integer.
24230A polygon is a cons (poly . [x0 y0 x1 y1 ...]) where each pair in the 24220A polygon is a cons (poly . [x0 y0 x1 y1 ...]) where each pair in the
24231vector describes one corner in the polygon. 24221vector describes one corner in the polygon.
24232Returns the alist element for the first matching AREA in MAP. */) 24222Returns the alist element for the first matching AREA in MAP. */)
24233 (map, x, y) 24223 (Lisp_Object map, Lisp_Object x, Lisp_Object y)
24234 Lisp_Object map;
24235 Lisp_Object x, y;
24236{ 24224{
24237 if (NILP (map)) 24225 if (NILP (map))
24238 return Qnil; 24226 return Qnil;
diff --git a/src/xfaces.c b/src/xfaces.c
index d4d68ebdbc2..520546c42b1 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -626,7 +626,7 @@ unregister_colors (pixels, n)
626 626
627DEFUN ("dump-colors", Fdump_colors, Sdump_colors, 0, 0, 0, 627DEFUN ("dump-colors", Fdump_colors, Sdump_colors, 0, 0, 0,
628 doc: /* Dump currently allocated colors to stderr. */) 628 doc: /* Dump currently allocated colors to stderr. */)
629 () 629 (void)
630{ 630{
631 int i, n; 631 int i, n;
632 632
@@ -951,8 +951,7 @@ clear_face_cache (int clear_fonts_p)
951DEFUN ("clear-face-cache", Fclear_face_cache, Sclear_face_cache, 0, 1, 0, 951DEFUN ("clear-face-cache", Fclear_face_cache, Sclear_face_cache, 0, 1, 0,
952 doc: /* Clear face caches on all frames. 952 doc: /* Clear face caches on all frames.
953Optional THOROUGHLY non-nil means try to free unused fonts, too. */) 953Optional THOROUGHLY non-nil means try to free unused fonts, too. */)
954 (thoroughly) 954 (Lisp_Object thoroughly)
955 Lisp_Object thoroughly;
956{ 955{
957 clear_face_cache (!NILP (thoroughly)); 956 clear_face_cache (!NILP (thoroughly));
958 ++face_change_count; 957 ++face_change_count;
@@ -974,8 +973,7 @@ A bitmap specification is either a string, a file name, or a list
974HEIGHT is its height, and DATA is a string containing the bits of 973HEIGHT is its height, and DATA is a string containing the bits of
975the pixmap. Bits are stored row by row, each row occupies 974the pixmap. Bits are stored row by row, each row occupies
976\(WIDTH + 7)/8 bytes. */) 975\(WIDTH + 7)/8 bytes. */)
977 (object) 976 (Lisp_Object object)
978 Lisp_Object object;
979{ 977{
980 int pixmap_p = 0; 978 int pixmap_p = 0;
981 979
@@ -1327,8 +1325,7 @@ DEFUN ("color-gray-p", Fcolor_gray_p, Scolor_gray_p, 1, 2, 0,
1327 doc: /* Return non-nil if COLOR is a shade of gray (or white or black). 1325 doc: /* Return non-nil if COLOR is a shade of gray (or white or black).
1328FRAME specifies the frame and thus the display for interpreting COLOR. 1326FRAME specifies the frame and thus the display for interpreting COLOR.
1329If FRAME is nil or omitted, use the selected frame. */) 1327If FRAME is nil or omitted, use the selected frame. */)
1330 (color, frame) 1328 (Lisp_Object color, Lisp_Object frame)
1331 Lisp_Object color, frame;
1332{ 1329{
1333 struct frame *f; 1330 struct frame *f;
1334 1331
@@ -1349,8 +1346,7 @@ BACKGROUND-P non-nil means COLOR is used as a background.
1349Otherwise, this function tells whether it can be used as a foreground. 1346Otherwise, this function tells whether it can be used as a foreground.
1350If FRAME is nil or omitted, use the selected frame. 1347If FRAME is nil or omitted, use the selected frame.
1351COLOR must be a valid color name. */) 1348COLOR must be a valid color name. */)
1352 (color, frame, background_p) 1349 (Lisp_Object color, Lisp_Object frame, Lisp_Object background_p)
1353 Lisp_Object frame, color, background_p;
1354{ 1350{
1355 struct frame *f; 1351 struct frame *f;
1356 1352
@@ -1687,8 +1683,7 @@ FULL is the full name of the font, and REGISTRY-AND-ENCODING is a string
1687giving the registry and encoding of the font. 1683giving the registry and encoding of the font.
1688The result list is sorted according to the current setting of 1684The result list is sorted according to the current setting of
1689the face font sort order. */) 1685the face font sort order. */)
1690 (family, frame) 1686 (Lisp_Object family, Lisp_Object frame)
1691 Lisp_Object family, frame;
1692{ 1687{
1693 Lisp_Object font_spec, list, *drivers, vec; 1688 Lisp_Object font_spec, list, *drivers, vec;
1694 int i, nfonts, ndrivers; 1689 int i, nfonts, ndrivers;
@@ -1785,8 +1780,7 @@ fonts to match. The first MAXIMUM fonts are reported.
1785The optional fifth argument WIDTH, if specified, is a number of columns 1780The optional fifth argument WIDTH, if specified, is a number of columns
1786occupied by a character of a font. In that case, return only fonts 1781occupied by a character of a font. In that case, return only fonts
1787the WIDTH times as wide as FACE on FRAME. */) 1782the WIDTH times as wide as FACE on FRAME. */)
1788 (pattern, face, frame, maximum, width) 1783 (Lisp_Object pattern, Lisp_Object face, Lisp_Object frame, Lisp_Object maximum, Lisp_Object width)
1789 Lisp_Object pattern, face, frame, maximum, width;
1790{ 1784{
1791 struct frame *f; 1785 struct frame *f;
1792 int size, avgwidth; 1786 int size, avgwidth;
@@ -2717,8 +2711,7 @@ If FACE was not known as a face before, create a new one.
2717If optional argument FRAME is specified, make a frame-local face 2711If optional argument FRAME is specified, make a frame-local face
2718for that frame. Otherwise operate on the global face definition. 2712for that frame. Otherwise operate on the global face definition.
2719Value is a vector of face attributes. */) 2713Value is a vector of face attributes. */)
2720 (face, frame) 2714 (Lisp_Object face, Lisp_Object frame)
2721 Lisp_Object face, frame;
2722{ 2715{
2723 Lisp_Object global_lface, lface; 2716 Lisp_Object global_lface, lface;
2724 struct frame *f; 2717 struct frame *f;
@@ -2806,8 +2799,7 @@ FACE should be a symbol or string.
2806If optional second argument FRAME is non-nil, check for the 2799If optional second argument FRAME is non-nil, check for the
2807existence of a frame-local face with name FACE on that frame. 2800existence of a frame-local face with name FACE on that frame.
2808Otherwise check for the existence of a global face. */) 2801Otherwise check for the existence of a global face. */)
2809 (face, frame) 2802 (Lisp_Object face, Lisp_Object frame)
2810 Lisp_Object face, frame;
2811{ 2803{
2812 Lisp_Object lface; 2804 Lisp_Object lface;
2813 2805
@@ -2835,8 +2827,7 @@ definition of TO on NEW-FRAME. If NEW-FRAME is nil,
2835FRAME controls where the data is copied to. 2827FRAME controls where the data is copied to.
2836 2828
2837The value is TO. */) 2829The value is TO. */)
2838 (from, to, frame, new_frame) 2830 (Lisp_Object from, Lisp_Object to, Lisp_Object frame, Lisp_Object new_frame)
2839 Lisp_Object from, to, frame, new_frame;
2840{ 2831{
2841 Lisp_Object lface, copy; 2832 Lisp_Object lface, copy;
2842 2833
@@ -2887,8 +2878,7 @@ FRAME nil means change the face of the selected frame.
2887FRAME t means change the default for new frames. 2878FRAME t means change the default for new frames.
2888FRAME 0 means change the face on all frames, and change the default 2879FRAME 0 means change the face on all frames, and change the default
2889 for new frames. */) 2880 for new frames. */)
2890 (face, attr, value, frame) 2881 (Lisp_Object face, Lisp_Object attr, Lisp_Object value, Lisp_Object frame)
2891 Lisp_Object face, attr, value, frame;
2892{ 2882{
2893 Lisp_Object lface; 2883 Lisp_Object lface;
2894 Lisp_Object old_value = Qnil; 2884 Lisp_Object old_value = Qnil;
@@ -3514,8 +3504,7 @@ set_font_frame_param (Lisp_Object frame, Lisp_Object lface)
3514 3504
3515DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource, 3505DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource,
3516 Sinternal_face_x_get_resource, 3, 3, 0, doc: /* */) 3506 Sinternal_face_x_get_resource, 3, 3, 0, doc: /* */)
3517 (resource, class, frame) 3507 (Lisp_Object resource, Lisp_Object class, Lisp_Object frame)
3518 Lisp_Object resource, class, frame;
3519{ 3508{
3520 Lisp_Object value = Qnil; 3509 Lisp_Object value = Qnil;
3521 CHECK_STRING (resource); 3510 CHECK_STRING (resource);
@@ -3560,8 +3549,7 @@ DEFUN ("internal-set-lisp-face-attribute-from-resource",
3560 Finternal_set_lisp_face_attribute_from_resource, 3549 Finternal_set_lisp_face_attribute_from_resource,
3561 Sinternal_set_lisp_face_attribute_from_resource, 3550 Sinternal_set_lisp_face_attribute_from_resource,
3562 3, 4, 0, doc: /* */) 3551 3, 4, 0, doc: /* */)
3563 (face, attr, value, frame) 3552 (Lisp_Object face, Lisp_Object attr, Lisp_Object value, Lisp_Object frame)
3564 Lisp_Object face, attr, value, frame;
3565{ 3553{
3566 CHECK_SYMBOL (face); 3554 CHECK_SYMBOL (face);
3567 CHECK_SYMBOL (attr); 3555 CHECK_SYMBOL (attr);
@@ -3722,8 +3710,7 @@ A relative value is one that doesn't entirely override whatever is
3722inherited from another face. For most possible attributes, 3710inherited from another face. For most possible attributes,
3723the only relative value that users see is `unspecified'. 3711the only relative value that users see is `unspecified'.
3724However, for :height, floating point values are also relative. */) 3712However, for :height, floating point values are also relative. */)
3725 (attribute, value) 3713 (Lisp_Object attribute, Lisp_Object value)
3726 Lisp_Object attribute, value;
3727{ 3714{
3728 if (EQ (value, Qunspecified) || (EQ (value, Qignore_defface))) 3715 if (EQ (value, Qunspecified) || (EQ (value, Qignore_defface)))
3729 return Qt; 3716 return Qt;
@@ -3738,8 +3725,7 @@ DEFUN ("merge-face-attribute", Fmerge_face_attribute, Smerge_face_attribute,
3738 doc: /* Return face ATTRIBUTE VALUE1 merged with VALUE2. 3725 doc: /* Return face ATTRIBUTE VALUE1 merged with VALUE2.
3739If VALUE1 or VALUE2 are absolute (see `face-attribute-relative-p'), then 3726If VALUE1 or VALUE2 are absolute (see `face-attribute-relative-p'), then
3740the result will be absolute, otherwise it will be relative. */) 3727the result will be absolute, otherwise it will be relative. */)
3741 (attribute, value1, value2) 3728 (Lisp_Object attribute, Lisp_Object value1, Lisp_Object value2)
3742 Lisp_Object attribute, value1, value2;
3743{ 3729{
3744 if (EQ (value1, Qunspecified) || EQ (value1, Qignore_defface)) 3730 if (EQ (value1, Qunspecified) || EQ (value1, Qignore_defface))
3745 return value2; 3731 return value2;
@@ -3759,8 +3745,7 @@ face attribute name, signal an error.
3759If the optional argument FRAME is given, report on face SYMBOL in that 3745If the optional argument FRAME is given, report on face SYMBOL in that
3760frame. If FRAME is t, report on the defaults for face SYMBOL (for new 3746frame. If FRAME is t, report on the defaults for face SYMBOL (for new
3761frames). If FRAME is omitted or nil, use the selected frame. */) 3747frames). If FRAME is omitted or nil, use the selected frame. */)
3762 (symbol, keyword, frame) 3748 (Lisp_Object symbol, Lisp_Object keyword, Lisp_Object frame)
3763 Lisp_Object symbol, keyword, frame;
3764{ 3749{
3765 Lisp_Object lface, value = Qnil; 3750 Lisp_Object lface, value = Qnil;
3766 3751
@@ -3827,8 +3812,7 @@ DEFUN ("internal-lisp-face-attribute-values",
3827 Sinternal_lisp_face_attribute_values, 1, 1, 0, 3812 Sinternal_lisp_face_attribute_values, 1, 1, 0,
3828 doc: /* Return a list of valid discrete values for face attribute ATTR. 3813 doc: /* Return a list of valid discrete values for face attribute ATTR.
3829Value is nil if ATTR doesn't have a discrete set of valid values. */) 3814Value is nil if ATTR doesn't have a discrete set of valid values. */)
3830 (attr) 3815 (Lisp_Object attr)
3831 Lisp_Object attr;
3832{ 3816{
3833 Lisp_Object result = Qnil; 3817 Lisp_Object result = Qnil;
3834 3818
@@ -3851,8 +3835,7 @@ DEFUN ("internal-merge-in-global-face", Finternal_merge_in_global_face,
3851 Sinternal_merge_in_global_face, 2, 2, 0, 3835 Sinternal_merge_in_global_face, 2, 2, 0,
3852 doc: /* Add attributes from frame-default definition of FACE to FACE on FRAME. 3836 doc: /* Add attributes from frame-default definition of FACE to FACE on FRAME.
3853Default face attributes override any local face attributes. */) 3837Default face attributes override any local face attributes. */)
3854 (face, frame) 3838 (Lisp_Object face, Lisp_Object frame)
3855 Lisp_Object face, frame;
3856{ 3839{
3857 int i; 3840 int i;
3858 Lisp_Object global_lface, local_lface, *gvec, *lvec; 3841 Lisp_Object global_lface, local_lface, *gvec, *lvec;
@@ -3930,8 +3913,7 @@ If FRAME is t, report on the defaults for face FACE (for new frames).
3930If FRAME is omitted or nil, use the selected frame. And, in this case, 3913If FRAME is omitted or nil, use the selected frame. And, in this case,
3931if the optional third argument CHARACTER is given, 3914if the optional third argument CHARACTER is given,
3932return the font name used for CHARACTER. */) 3915return the font name used for CHARACTER. */)
3933 (face, frame, character) 3916 (Lisp_Object face, Lisp_Object frame, Lisp_Object character)
3934 Lisp_Object face, frame, character;
3935{ 3917{
3936 if (EQ (frame, Qt)) 3918 if (EQ (frame, Qt))
3937 { 3919 {
@@ -4031,8 +4013,7 @@ DEFUN ("internal-lisp-face-equal-p", Finternal_lisp_face_equal_p,
4031If the optional argument FRAME is given, report on FACE1 and FACE2 in that frame. 4013If the optional argument FRAME is given, report on FACE1 and FACE2 in that frame.
4032If FRAME is t, report on the defaults for FACE1 and FACE2 (for new frames). 4014If FRAME is t, report on the defaults for FACE1 and FACE2 (for new frames).
4033If FRAME is omitted or nil, use the selected frame. */) 4015If FRAME is omitted or nil, use the selected frame. */)
4034 (face1, face2, frame) 4016 (Lisp_Object face1, Lisp_Object face2, Lisp_Object frame)
4035 Lisp_Object face1, face2, frame;
4036{ 4017{
4037 int equal_p; 4018 int equal_p;
4038 struct frame *f; 4019 struct frame *f;
@@ -4061,8 +4042,7 @@ DEFUN ("internal-lisp-face-empty-p", Finternal_lisp_face_empty_p,
4061If the optional argument FRAME is given, report on face FACE in that frame. 4042If the optional argument FRAME is given, report on face FACE in that frame.
4062If FRAME is t, report on the defaults for face FACE (for new frames). 4043If FRAME is t, report on the defaults for face FACE (for new frames).
4063If FRAME is omitted or nil, use the selected frame. */) 4044If FRAME is omitted or nil, use the selected frame. */)
4064 (face, frame) 4045 (Lisp_Object face, Lisp_Object frame)
4065 Lisp_Object face, frame;
4066{ 4046{
4067 struct frame *f; 4047 struct frame *f;
4068 Lisp_Object lface; 4048 Lisp_Object lface;
@@ -4090,8 +4070,7 @@ DEFUN ("frame-face-alist", Fframe_face_alist, Sframe_face_alist,
4090 0, 1, 0, 4070 0, 1, 0,
4091 doc: /* Return an alist of frame-local faces defined on FRAME. 4071 doc: /* Return an alist of frame-local faces defined on FRAME.
4092For internal use only. */) 4072For internal use only. */)
4093 (frame) 4073 (Lisp_Object frame)
4094 Lisp_Object frame;
4095{ 4074{
4096 struct frame *f = frame_or_selected_frame (frame, 0); 4075 struct frame *f = frame_or_selected_frame (frame, 0);
4097 return f->face_alist; 4076 return f->face_alist;
@@ -4281,8 +4260,7 @@ DEFUN ("color-distance", Fcolor_distance, Scolor_distance, 2, 3, 0,
4281COLOR1 and COLOR2 may be either strings containing the color name, 4260COLOR1 and COLOR2 may be either strings containing the color name,
4282or lists of the form (RED GREEN BLUE). 4261or lists of the form (RED GREEN BLUE).
4283If FRAME is unspecified or nil, the current frame is used. */) 4262If FRAME is unspecified or nil, the current frame is used. */)
4284 (color1, color2, frame) 4263 (Lisp_Object color1, Lisp_Object color2, Lisp_Object frame)
4285 Lisp_Object color1, color2, frame;
4286{ 4264{
4287 struct frame *f; 4265 struct frame *f;
4288 XColor cdef1, cdef2; 4266 XColor cdef1, cdef2;
@@ -4870,8 +4848,7 @@ lookup_derived_face (struct frame *f, Lisp_Object symbol, int face_id, int signa
4870DEFUN ("face-attributes-as-vector", Fface_attributes_as_vector, 4848DEFUN ("face-attributes-as-vector", Fface_attributes_as_vector,
4871 Sface_attributes_as_vector, 1, 1, 0, 4849 Sface_attributes_as_vector, 1, 1, 0,
4872 doc: /* Return a vector of face attributes corresponding to PLIST. */) 4850 doc: /* Return a vector of face attributes corresponding to PLIST. */)
4873 (plist) 4851 (Lisp_Object plist)
4874 Lisp_Object plist;
4875{ 4852{
4876 Lisp_Object lface; 4853 Lisp_Object lface;
4877 lface = Fmake_vector (make_number (LFACE_VECTOR_SIZE), 4854 lface = Fmake_vector (make_number (LFACE_VECTOR_SIZE),
@@ -5188,8 +5165,7 @@ any display that can display bold, and a `:foreground \"yellow\"' as long
5188as it can display a yellowish color, but `:slant italic' will _not_ be 5165as it can display a yellowish color, but `:slant italic' will _not_ be
5189satisfied by the tty display code's automatic substitution of a `dim' 5166satisfied by the tty display code's automatic substitution of a `dim'
5190face for italic. */) 5167face for italic. */)
5191 (attributes, display) 5168 (Lisp_Object attributes, Lisp_Object display)
5192 Lisp_Object attributes, display;
5193{ 5169{
5194 int supports = 0, i; 5170 int supports = 0, i;
5195 Lisp_Object frame; 5171 Lisp_Object frame;
@@ -5266,8 +5242,7 @@ first in ORDER are matched first, e.g. if `:height' appears before
5266`:weight' in ORDER, font selection first tries to find a font with 5242`:weight' in ORDER, font selection first tries to find a font with
5267a suitable height, and then tries to match the font weight. 5243a suitable height, and then tries to match the font weight.
5268Value is ORDER. */) 5244Value is ORDER. */)
5269 (order) 5245 (Lisp_Object order)
5270 Lisp_Object order;
5271{ 5246{
5272 Lisp_Object list; 5247 Lisp_Object list;
5273 int i; 5248 int i;
@@ -5325,8 +5300,7 @@ DEFUN ("internal-set-alternative-font-family-alist",
5325ALIST is an alist of (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...) entries. 5300ALIST is an alist of (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...) entries.
5326Each ALTERNATIVE is tried in order if no fonts of font family FAMILY can 5301Each ALTERNATIVE is tried in order if no fonts of font family FAMILY can
5327be found. Value is ALIST. */) 5302be found. Value is ALIST. */)
5328 (alist) 5303 (Lisp_Object alist)
5329 Lisp_Object alist;
5330{ 5304{
5331 Lisp_Object entry, tail, tail2; 5305 Lisp_Object entry, tail, tail2;
5332 5306
@@ -5355,8 +5329,7 @@ DEFUN ("internal-set-alternative-font-registry-alist",
5355ALIST is an alist of (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...) entries. 5329ALIST is an alist of (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...) entries.
5356Each ALTERNATIVE is tried in order if no fonts of font registry REGISTRY can 5330Each ALTERNATIVE is tried in order if no fonts of font registry REGISTRY can
5357be found. Value is ALIST. */) 5331be found. Value is ALIST. */)
5358 (alist) 5332 (Lisp_Object alist)
5359 Lisp_Object alist;
5360{ 5333{
5361 Lisp_Object entry, tail, tail2; 5334 Lisp_Object entry, tail, tail2;
5362 5335
@@ -6040,8 +6013,7 @@ This affects bold faces on TTYs whose foreground is the default background
6040color of the display and whose background is the default foreground color. 6013color of the display and whose background is the default foreground color.
6041For such faces, the bold face attribute is ignored if this variable 6014For such faces, the bold face attribute is ignored if this variable
6042is non-nil. */) 6015is non-nil. */)
6043 (suppress) 6016 (Lisp_Object suppress)
6044 Lisp_Object suppress;
6045{ 6017{
6046 tty_suppress_bold_inverse_default_colors_p = !NILP (suppress); 6018 tty_suppress_bold_inverse_default_colors_p = !NILP (suppress);
6047 ++face_change_count; 6019 ++face_change_count;
@@ -6446,8 +6418,7 @@ DEFUN ("x-load-color-file", Fx_load_color_file,
6446The file should define one named RGB color per line like so: 6418The file should define one named RGB color per line like so:
6447 R G B name 6419 R G B name
6448where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */) 6420where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */)
6449 (filename) 6421 (Lisp_Object filename)
6450 Lisp_Object filename;
6451{ 6422{
6452 FILE *fp; 6423 FILE *fp;
6453 Lisp_Object cmap = Qnil; 6424 Lisp_Object cmap = Qnil;
@@ -6529,8 +6500,7 @@ dump_realized_face (face)
6529 6500
6530 6501
6531DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, doc: /* */) 6502DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, doc: /* */)
6532 (n) 6503 (Lisp_Object n)
6533 Lisp_Object n;
6534{ 6504{
6535 if (NILP (n)) 6505 if (NILP (n))
6536 { 6506 {
@@ -6564,7 +6534,7 @@ DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, doc: /* */)
6564 6534
6565DEFUN ("show-face-resources", Fshow_face_resources, Sshow_face_resources, 6535DEFUN ("show-face-resources", Fshow_face_resources, Sshow_face_resources,
6566 0, 0, 0, doc: /* */) 6536 0, 0, 0, doc: /* */)
6567 () 6537 (void)
6568{ 6538{
6569 fprintf (stderr, "number of colors = %d\n", ncolors_allocated); 6539 fprintf (stderr, "number of colors = %d\n", ncolors_allocated);
6570 fprintf (stderr, "number of pixmaps = %d\n", npixmaps_allocated); 6540 fprintf (stderr, "number of pixmaps = %d\n", npixmaps_allocated);
diff --git a/src/xfns.c b/src/xfns.c
index d6df2e2f836..3f4f32bbb2c 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3060,8 +3060,7 @@ DEFUN ("x-wm-set-size-hint", Fx_wm_set_size_hint, Sx_wm_set_size_hint,
3060 0, 1, 0, 3060 0, 1, 0,
3061 doc: /* Send the size hints for frame FRAME to the window manager. 3061 doc: /* Send the size hints for frame FRAME to the window manager.
3062If FRAME is nil, use the selected frame. */) 3062If FRAME is nil, use the selected frame. */)
3063 (frame) 3063 (Lisp_Object frame)
3064 Lisp_Object frame;
3065{ 3064{
3066 struct frame *f; 3065 struct frame *f;
3067 if (NILP (frame)) 3066 if (NILP (frame))
@@ -3116,8 +3115,7 @@ then `default-minibuffer-frame' must be a frame whose minibuffer can
3116be shared by the new frame. 3115be shared by the new frame.
3117 3116
3118This function is an internal primitive--use `make-frame' instead. */) 3117This function is an internal primitive--use `make-frame' instead. */)
3119 (parms) 3118 (Lisp_Object parms)
3120 Lisp_Object parms;
3121{ 3119{
3122 struct frame *f; 3120 struct frame *f;
3123 Lisp_Object frame, tem; 3121 Lisp_Object frame, tem;
@@ -3561,8 +3559,7 @@ x_get_focus_frame (struct frame *frame)
3561DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0, 3559DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0,
3562 doc: /* Set the input focus to FRAME. 3560 doc: /* Set the input focus to FRAME.
3563FRAME nil means use the selected frame. */) 3561FRAME nil means use the selected frame. */)
3564 (frame) 3562 (Lisp_Object frame)
3565 Lisp_Object frame;
3566{ 3563{
3567 struct frame *f = check_x_frame (frame); 3564 struct frame *f = check_x_frame (frame);
3568 Display *dpy = FRAME_X_DISPLAY (f); 3565 Display *dpy = FRAME_X_DISPLAY (f);
@@ -3581,8 +3578,7 @@ FRAME nil means use the selected frame. */)
3581 3578
3582DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, 3579DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
3583 doc: /* Internal function called by `color-defined-p', which see. */) 3580 doc: /* Internal function called by `color-defined-p', which see. */)
3584 (color, frame) 3581 (Lisp_Object color, Lisp_Object frame)
3585 Lisp_Object color, frame;
3586{ 3582{
3587 XColor foo; 3583 XColor foo;
3588 FRAME_PTR f = check_x_frame (frame); 3584 FRAME_PTR f = check_x_frame (frame);
@@ -3597,8 +3593,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
3597 3593
3598DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, 3594DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
3599 doc: /* Internal function called by `color-values', which see. */) 3595 doc: /* Internal function called by `color-values', which see. */)
3600 (color, frame) 3596 (Lisp_Object color, Lisp_Object frame)
3601 Lisp_Object color, frame;
3602{ 3597{
3603 XColor foo; 3598 XColor foo;
3604 FRAME_PTR f = check_x_frame (frame); 3599 FRAME_PTR f = check_x_frame (frame);
@@ -3615,8 +3610,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
3615 3610
3616DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, 3611DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0,
3617 doc: /* Internal function called by `display-color-p', which see. */) 3612 doc: /* Internal function called by `display-color-p', which see. */)
3618 (terminal) 3613 (Lisp_Object terminal)
3619 Lisp_Object terminal;
3620{ 3614{
3621 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3615 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3622 3616
@@ -3643,8 +3637,7 @@ Note that color displays do support shades of gray.
3643The optional argument TERMINAL specifies which display to ask about. 3637The optional argument TERMINAL specifies which display to ask about.
3644TERMINAL should be a terminal object, a frame or a display name (a string). 3638TERMINAL should be a terminal object, a frame or a display name (a string).
3645If omitted or nil, that stands for the selected frame's display. */) 3639If omitted or nil, that stands for the selected frame's display. */)
3646 (terminal) 3640 (Lisp_Object terminal)
3647 Lisp_Object terminal;
3648{ 3641{
3649 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3642 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3650 3643
@@ -3672,8 +3665,7 @@ DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width,
3672The optional argument TERMINAL specifies which display to ask about. 3665The optional argument TERMINAL specifies which display to ask about.
3673TERMINAL should be a terminal object, a frame or a display name (a string). 3666TERMINAL should be a terminal object, a frame or a display name (a string).
3674If omitted or nil, that stands for the selected frame's display. */) 3667If omitted or nil, that stands for the selected frame's display. */)
3675 (terminal) 3668 (Lisp_Object terminal)
3676 Lisp_Object terminal;
3677{ 3669{
3678 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3670 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3679 3671
@@ -3686,8 +3678,7 @@ DEFUN ("x-display-pixel-height", Fx_display_pixel_height,
3686The optional argument TERMINAL specifies which display to ask about. 3678The optional argument TERMINAL specifies which display to ask about.
3687TERMINAL should be a terminal object, a frame or a display name (a string). 3679TERMINAL should be a terminal object, a frame or a display name (a string).
3688If omitted or nil, that stands for the selected frame's display. */) 3680If omitted or nil, that stands for the selected frame's display. */)
3689 (terminal) 3681 (Lisp_Object terminal)
3690 Lisp_Object terminal;
3691{ 3682{
3692 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3683 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3693 3684
@@ -3700,8 +3691,7 @@ DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes,
3700The optional argument TERMINAL specifies which display to ask about. 3691The optional argument TERMINAL specifies which display to ask about.
3701TERMINAL should be a terminal object, a frame or a display name (a string). 3692TERMINAL should be a terminal object, a frame or a display name (a string).
3702If omitted or nil, that stands for the selected frame's display. */) 3693If omitted or nil, that stands for the selected frame's display. */)
3703 (terminal) 3694 (Lisp_Object terminal)
3704 Lisp_Object terminal;
3705{ 3695{
3706 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3696 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3707 3697
@@ -3714,8 +3704,7 @@ DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells,
3714The optional argument TERMINAL specifies which display to ask about. 3704The optional argument TERMINAL specifies which display to ask about.
3715TERMINAL should be a terminal object, a frame or a display name (a string). 3705TERMINAL should be a terminal object, a frame or a display name (a string).
3716If omitted or nil, that stands for the selected frame's display. */) 3706If omitted or nil, that stands for the selected frame's display. */)
3717 (terminal) 3707 (Lisp_Object terminal)
3718 Lisp_Object terminal;
3719{ 3708{
3720 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3709 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3721 3710
@@ -3739,8 +3728,7 @@ DEFUN ("x-server-max-request-size", Fx_server_max_request_size,
3739The optional argument TERMINAL specifies which display to ask about. 3728The optional argument TERMINAL specifies which display to ask about.
3740TERMINAL should be a terminal object, a frame or a display name (a string). 3729TERMINAL should be a terminal object, a frame or a display name (a string).
3741If omitted or nil, that stands for the selected frame's display. */) 3730If omitted or nil, that stands for the selected frame's display. */)
3742 (terminal) 3731 (Lisp_Object terminal)
3743 Lisp_Object terminal;
3744{ 3732{
3745 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3733 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3746 3734
@@ -3754,8 +3742,7 @@ that operating systems cannot be developed and distributed noncommercially.)
3754The optional argument TERMINAL specifies which display to ask about. 3742The optional argument TERMINAL specifies which display to ask about.
3755TERMINAL should be a terminal object, a frame or a display name (a string). 3743TERMINAL should be a terminal object, a frame or a display name (a string).
3756If omitted or nil, that stands for the selected frame's display. */) 3744If omitted or nil, that stands for the selected frame's display. */)
3757 (terminal) 3745 (Lisp_Object terminal)
3758 Lisp_Object terminal;
3759{ 3746{
3760 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3747 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3761 char *vendor = ServerVendor (dpyinfo->display); 3748 char *vendor = ServerVendor (dpyinfo->display);
@@ -3773,8 +3760,7 @@ number. See also the function `x-server-vendor'.
3773The optional argument TERMINAL specifies which display to ask about. 3760The optional argument TERMINAL specifies which display to ask about.
3774TERMINAL should be a terminal object, a frame or a display name (a string). 3761TERMINAL should be a terminal object, a frame or a display name (a string).
3775If omitted or nil, that stands for the selected frame's display. */) 3762If omitted or nil, that stands for the selected frame's display. */)
3776 (terminal) 3763 (Lisp_Object terminal)
3777 Lisp_Object terminal;
3778{ 3764{
3779 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3765 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3780 Display *dpy = dpyinfo->display; 3766 Display *dpy = dpyinfo->display;
@@ -3789,8 +3775,7 @@ DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0,
3789The optional argument TERMINAL specifies which display to ask about. 3775The optional argument TERMINAL specifies which display to ask about.
3790TERMINAL should be a terminal object, a frame or a display name (a string). 3776TERMINAL should be a terminal object, a frame or a display name (a string).
3791If omitted or nil, that stands for the selected frame's display. */) 3777If omitted or nil, that stands for the selected frame's display. */)
3792 (terminal) 3778 (Lisp_Object terminal)
3793 Lisp_Object terminal;
3794{ 3779{
3795 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3780 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3796 3781
@@ -3802,8 +3787,7 @@ DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height, 0, 1,
3802The optional argument TERMINAL specifies which display to ask about. 3787The optional argument TERMINAL specifies which display to ask about.
3803TERMINAL should be a terminal object, a frame or a display name (a string). 3788TERMINAL should be a terminal object, a frame or a display name (a string).
3804If omitted or nil, that stands for the selected frame's display. */) 3789If omitted or nil, that stands for the selected frame's display. */)
3805 (terminal) 3790 (Lisp_Object terminal)
3806 Lisp_Object terminal;
3807{ 3791{
3808 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3792 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3809 3793
@@ -3815,8 +3799,7 @@ DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0,
3815The optional argument TERMINAL specifies which display to ask about. 3799The optional argument TERMINAL specifies which display to ask about.
3816TERMINAL should be a terminal object, a frame or a display name (a string). 3800TERMINAL should be a terminal object, a frame or a display name (a string).
3817If omitted or nil, that stands for the selected frame's display. */) 3801If omitted or nil, that stands for the selected frame's display. */)
3818 (terminal) 3802 (Lisp_Object terminal)
3819 Lisp_Object terminal;
3820{ 3803{
3821 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3804 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3822 3805
@@ -3830,8 +3813,7 @@ The value may be `always', `when-mapped', or `not-useful'.
3830The optional argument TERMINAL specifies which display to ask about. 3813The optional argument TERMINAL specifies which display to ask about.
3831TERMINAL should be a terminal object, a frame or a display name (a string). 3814TERMINAL should be a terminal object, a frame or a display name (a string).
3832If omitted or nil, that stands for the selected frame's display. */) 3815If omitted or nil, that stands for the selected frame's display. */)
3833 (terminal) 3816 (Lisp_Object terminal)
3834 Lisp_Object terminal;
3835{ 3817{
3836 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3818 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3837 Lisp_Object result; 3819 Lisp_Object result;
@@ -3867,8 +3849,7 @@ The value is one of the symbols `static-gray', `gray-scale',
3867The optional argument TERMINAL specifies which display to ask about. 3849The optional argument TERMINAL specifies which display to ask about.
3868TERMINAL should a terminal object, a frame or a display name (a string). 3850TERMINAL should a terminal object, a frame or a display name (a string).
3869If omitted or nil, that stands for the selected frame's display. */) 3851If omitted or nil, that stands for the selected frame's display. */)
3870 (terminal) 3852 (Lisp_Object terminal)
3871 Lisp_Object terminal;
3872{ 3853{
3873 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3854 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3874 Lisp_Object result; 3855 Lisp_Object result;
@@ -3907,8 +3888,7 @@ DEFUN ("x-display-save-under", Fx_display_save_under,
3907The optional argument TERMINAL specifies which display to ask about. 3888The optional argument TERMINAL specifies which display to ask about.
3908TERMINAL should be a terminal object, a frame or a display name (a string). 3889TERMINAL should be a terminal object, a frame or a display name (a string).
3909If omitted or nil, that stands for the selected frame's display. */) 3890If omitted or nil, that stands for the selected frame's display. */)
3910 (terminal) 3891 (Lisp_Object terminal)
3911 Lisp_Object terminal;
3912{ 3892{
3913 struct x_display_info *dpyinfo = check_x_display_info (terminal); 3893 struct x_display_info *dpyinfo = check_x_display_info (terminal);
3914 3894
@@ -4120,8 +4100,7 @@ DISPLAY is the name of the display to connect to.
4120Optional second arg XRM-STRING is a string of resources in xrdb format. 4100Optional second arg XRM-STRING is a string of resources in xrdb format.
4121If the optional third arg MUST-SUCCEED is non-nil, 4101If the optional third arg MUST-SUCCEED is non-nil,
4122terminate Emacs if we can't open the connection. */) 4102terminate Emacs if we can't open the connection. */)
4123 (display, xrm_string, must_succeed) 4103 (Lisp_Object display, Lisp_Object xrm_string, Lisp_Object must_succeed)
4124 Lisp_Object display, xrm_string, must_succeed;
4125{ 4104{
4126 unsigned char *xrm_option; 4105 unsigned char *xrm_option;
4127 struct x_display_info *dpyinfo; 4106 struct x_display_info *dpyinfo;
@@ -4172,8 +4151,7 @@ DEFUN ("x-close-connection", Fx_close_connection,
4172For TERMINAL, specify a terminal object, a frame or a display name (a 4151For TERMINAL, specify a terminal object, a frame or a display name (a
4173string). If TERMINAL is nil, that stands for the selected frame's 4152string). If TERMINAL is nil, that stands for the selected frame's
4174terminal. */) 4153terminal. */)
4175 (terminal) 4154 (Lisp_Object terminal)
4176 Lisp_Object terminal;
4177{ 4155{
4178 struct x_display_info *dpyinfo = check_x_display_info (terminal); 4156 struct x_display_info *dpyinfo = check_x_display_info (terminal);
4179 4157
@@ -4187,7 +4165,7 @@ terminal. */)
4187 4165
4188DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0, 4166DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
4189 doc: /* Return the list of display names that Emacs has connections to. */) 4167 doc: /* Return the list of display names that Emacs has connections to. */)
4190 () 4168 (void)
4191{ 4169{
4192 Lisp_Object tail, result; 4170 Lisp_Object tail, result;
4193 4171
@@ -4207,8 +4185,7 @@ easier.
4207The optional second argument TERMINAL specifies which display to act on. 4185The optional second argument TERMINAL specifies which display to act on.
4208TERMINAL should be a terminal object, a frame or a display name (a string). 4186TERMINAL should be a terminal object, a frame or a display name (a string).
4209If TERMINAL is omitted or nil, that stands for the selected frame's display. */) 4187If TERMINAL is omitted or nil, that stands for the selected frame's display. */)
4210 (on, terminal) 4188 (Lisp_Object on, Lisp_Object terminal)
4211 Lisp_Object terminal, on;
4212{ 4189{
4213 struct x_display_info *dpyinfo = check_x_display_info (terminal); 4190 struct x_display_info *dpyinfo = check_x_display_info (terminal);
4214 4191
@@ -4251,8 +4228,7 @@ If OUTER_P is non-nil, the property is changed for the outer X window of
4251FRAME. Default is to change on the edit X window. 4228FRAME. Default is to change on the edit X window.
4252 4229
4253Value is VALUE. */) 4230Value is VALUE. */)
4254 (prop, value, frame, type, format, outer_p) 4231 (Lisp_Object prop, Lisp_Object value, Lisp_Object frame, Lisp_Object type, Lisp_Object format, Lisp_Object outer_p)
4255 Lisp_Object prop, value, frame, type, format, outer_p;
4256{ 4232{
4257 struct frame *f = check_x_frame (frame); 4233 struct frame *f = check_x_frame (frame);
4258 Atom prop_atom; 4234 Atom prop_atom;
@@ -4330,8 +4306,7 @@ DEFUN ("x-delete-window-property", Fx_delete_window_property,
4330 Sx_delete_window_property, 1, 2, 0, 4306 Sx_delete_window_property, 1, 2, 0,
4331 doc: /* Remove window property PROP from X window of FRAME. 4307 doc: /* Remove window property PROP from X window of FRAME.
4332FRAME nil or omitted means use the selected frame. Value is PROP. */) 4308FRAME nil or omitted means use the selected frame. Value is PROP. */)
4333 (prop, frame) 4309 (Lisp_Object prop, Lisp_Object frame)
4334 Lisp_Object prop, frame;
4335{ 4310{
4336 struct frame *f = check_x_frame (frame); 4311 struct frame *f = check_x_frame (frame);
4337 Atom prop_atom; 4312 Atom prop_atom;
@@ -4362,8 +4337,7 @@ If VECTOR_RET_P is non-nil, don't return a string but a vector of values.
4362 4337
4363Value is nil if FRAME hasn't a property with name PROP or if PROP has 4338Value is nil if FRAME hasn't a property with name PROP or if PROP has
4364no value of TYPE. */) 4339no value of TYPE. */)
4365 (prop, frame, type, source, delete_p, vector_ret_p) 4340 (Lisp_Object prop, Lisp_Object frame, Lisp_Object type, Lisp_Object source, Lisp_Object delete_p, Lisp_Object vector_ret_p)
4366 Lisp_Object prop, frame, type, source, delete_p, vector_ret_p;
4367{ 4341{
4368 struct frame *f = check_x_frame (frame); 4342 struct frame *f = check_x_frame (frame);
4369 Atom prop_atom; 4343 Atom prop_atom;
@@ -5024,8 +4998,7 @@ DY added (default is -10).
5024 4998
5025A tooltip's maximum size is specified by `x-max-tooltip-size'. 4999A tooltip's maximum size is specified by `x-max-tooltip-size'.
5026Text larger than the specified size is clipped. */) 5000Text larger than the specified size is clipped. */)
5027 (string, frame, parms, timeout, dx, dy) 5001 (Lisp_Object string, Lisp_Object frame, Lisp_Object parms, Lisp_Object timeout, Lisp_Object dx, Lisp_Object dy)
5028 Lisp_Object string, frame, parms, timeout, dx, dy;
5029{ 5002{
5030 struct frame *f; 5003 struct frame *f;
5031 struct window *w; 5004 struct window *w;
@@ -5216,7 +5189,7 @@ Text larger than the specified size is clipped. */)
5216DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0, 5189DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0,
5217 doc: /* Hide the current tooltip window, if there is any. 5190 doc: /* Hide the current tooltip window, if there is any.
5218Value is t if tooltip was open, nil otherwise. */) 5191Value is t if tooltip was open, nil otherwise. */)
5219 () 5192 (void)
5220{ 5193{
5221 int count; 5194 int count;
5222 Lisp_Object deleted, frame, timer; 5195 Lisp_Object deleted, frame, timer;
@@ -5277,7 +5250,7 @@ DEFUN ("x-uses-old-gtk-dialog", Fx_uses_old_gtk_dialog,
5277 Sx_uses_old_gtk_dialog, 5250 Sx_uses_old_gtk_dialog,
5278 0, 0, 0, 5251 0, 0, 0,
5279 doc: /* Return t if the old Gtk+ file selection dialog is used. */) 5252 doc: /* Return t if the old Gtk+ file selection dialog is used. */)
5280 () 5253 (void)
5281{ 5254{
5282#ifdef USE_GTK 5255#ifdef USE_GTK
5283 extern int use_dialog_box; 5256 extern int use_dialog_box;
@@ -5344,8 +5317,7 @@ DEFUN ("x-file-dialog", Fx_file_dialog, Sx_file_dialog, 2, 5, 0,
5344Use a file selection dialog. Select DEFAULT-FILENAME in the dialog's file 5317Use a file selection dialog. Select DEFAULT-FILENAME in the dialog's file
5345selection box, if specified. If MUSTMATCH is non-nil, the returned file 5318selection box, if specified. If MUSTMATCH is non-nil, the returned file
5346or directory must exist. ONLY-DIR-P is ignored." */) 5319or directory must exist. ONLY-DIR-P is ignored." */)
5347 (prompt, dir, default_filename, mustmatch, only_dir_p) 5320 (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, Lisp_Object mustmatch, Lisp_Object only_dir_p)
5348 Lisp_Object prompt, dir, default_filename, mustmatch, only_dir_p;
5349{ 5321{
5350 int result; 5322 int result;
5351 struct frame *f = SELECTED_FRAME (); 5323 struct frame *f = SELECTED_FRAME ();
@@ -5516,8 +5488,7 @@ Use a file selection dialog. Select DEFAULT-FILENAME in the dialog's file
5516selection box, if specified. If MUSTMATCH is non-nil, the returned file 5488selection box, if specified. If MUSTMATCH is non-nil, the returned file
5517or directory must exist. If ONLY-DIR-P is non-nil, the user can only select 5489or directory must exist. If ONLY-DIR-P is non-nil, the user can only select
5518directories. */) 5490directories. */)
5519 (prompt, dir, default_filename, mustmatch, only_dir_p) 5491 (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, Lisp_Object mustmatch, Lisp_Object only_dir_p)
5520 Lisp_Object prompt, dir, default_filename, mustmatch, only_dir_p;
5521{ 5492{
5522 FRAME_PTR f = SELECTED_FRAME (); 5493 FRAME_PTR f = SELECTED_FRAME ();
5523 char *fn; 5494 char *fn;
@@ -5578,8 +5549,7 @@ DEFUN ("x-select-font", Fx_select_font, Sx_select_font, 0, 2, 0,
5578Return a GTK-style font string corresponding to the selection. 5549Return a GTK-style font string corresponding to the selection.
5579 5550
5580If FRAME is omitted or nil, it defaults to the selected frame. */) 5551If FRAME is omitted or nil, it defaults to the selected frame. */)
5581 (frame, ignored) 5552 (Lisp_Object frame, Lisp_Object ignored)
5582 Lisp_Object frame, ignored;
5583{ 5553{
5584 FRAME_PTR f = check_x_frame (frame); 5554 FRAME_PTR f = check_x_frame (frame);
5585 char *name; 5555 char *name;
@@ -5667,8 +5637,7 @@ FRAME nil means use the selected frame.
5667Value is t if we know that both keys are present, and are mapped to the 5637Value is t if we know that both keys are present, and are mapped to the
5668usual X keysyms. Value is `lambda' if we cannot determine if both keys are 5638usual X keysyms. Value is `lambda' if we cannot determine if both keys are
5669present and mapped to the usual X keysyms. */) 5639present and mapped to the usual X keysyms. */)
5670 (frame) 5640 (Lisp_Object frame)
5671 Lisp_Object frame;
5672{ 5641{
5673#ifdef HAVE_XKBGETKEYBOARD 5642#ifdef HAVE_XKBGETKEYBOARD
5674 XkbDescPtr kb; 5643 XkbDescPtr kb;
diff --git a/src/xmenu.c b/src/xmenu.c
index 614ee7e8a4b..431ef58e0b1 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -260,8 +260,7 @@ otherwise it is "Question".
260If the user gets rid of the dialog box without making a valid choice, 260If the user gets rid of the dialog box without making a valid choice,
261for instance using the window manager, then this produces a quit and 261for instance using the window manager, then this produces a quit and
262`x-popup-dialog' does not return. */) 262`x-popup-dialog' does not return. */)
263 (position, contents, header) 263 (Lisp_Object position, Lisp_Object contents, Lisp_Object header)
264 Lisp_Object position, contents, header;
265{ 264{
266 FRAME_PTR f = NULL; 265 FRAME_PTR f = NULL;
267 Lisp_Object window; 266 Lisp_Object window;
@@ -518,8 +517,7 @@ arrow keys, select a menu entry with the return key or cancel with the
518escape key. If FRAME has no menu bar this function does nothing. 517escape key. If FRAME has no menu bar this function does nothing.
519 518
520If FRAME is nil or not given, use the selected frame. */) 519If FRAME is nil or not given, use the selected frame. */)
521 (frame) 520 (Lisp_Object frame)
522 Lisp_Object frame;
523{ 521{
524 XEvent ev; 522 XEvent ev;
525 FRAME_PTR f = check_x_frame (frame); 523 FRAME_PTR f = check_x_frame (frame);
@@ -597,8 +595,7 @@ arrow keys, select a menu entry with the return key or cancel with the
597escape key. If FRAME has no menu bar this function does nothing. 595escape key. If FRAME has no menu bar this function does nothing.
598 596
599If FRAME is nil or not given, use the selected frame. */) 597If FRAME is nil or not given, use the selected frame. */)
600 (frame) 598 (Lisp_Object frame)
601 Lisp_Object frame;
602{ 599{
603 GtkWidget *menubar; 600 GtkWidget *menubar;
604 FRAME_PTR f; 601 FRAME_PTR f;
@@ -2626,7 +2623,7 @@ popup_activated (void)
2626 2623
2627DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0, 2624DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0,
2628 doc: /* Return t if a menu or popup dialog is active. */) 2625 doc: /* Return t if a menu or popup dialog is active. */)
2629 () 2626 (void)
2630{ 2627{
2631#ifdef HAVE_MENUS 2628#ifdef HAVE_MENUS
2632 return (popup_activated ()) ? Qt : Qnil; 2629 return (popup_activated ()) ? Qt : Qnil;
diff --git a/src/xselect.c b/src/xselect.c
index df260e3d8f1..45690a05460 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -2094,8 +2094,7 @@ TYPE is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
2094\(Those are literal upper-case symbol names, since that's what X expects.) 2094\(Those are literal upper-case symbol names, since that's what X expects.)
2095VALUE is typically a string, or a cons of two markers, but may be 2095VALUE is typically a string, or a cons of two markers, but may be
2096anything that the functions on `selection-converter-alist' know about. */) 2096anything that the functions on `selection-converter-alist' know about. */)
2097 (selection_name, selection_value) 2097 (Lisp_Object selection_name, Lisp_Object selection_value)
2098 Lisp_Object selection_name, selection_value;
2099{ 2098{
2100 check_x (); 2099 check_x ();
2101 CHECK_SYMBOL (selection_name); 2100 CHECK_SYMBOL (selection_name);
@@ -2117,8 +2116,7 @@ SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
2117TYPE is the type of data desired, typically `STRING'. 2116TYPE is the type of data desired, typically `STRING'.
2118TIME_STAMP is the time to use in the XConvertSelection call for foreign 2117TIME_STAMP is the time to use in the XConvertSelection call for foreign
2119selections. If omitted, defaults to the time for the last event. */) 2118selections. If omitted, defaults to the time for the last event. */)
2120 (selection_symbol, target_type, time_stamp) 2119 (Lisp_Object selection_symbol, Lisp_Object target_type, Lisp_Object time_stamp)
2121 Lisp_Object selection_symbol, target_type, time_stamp;
2122{ 2120{
2123 Lisp_Object val = Qnil; 2121 Lisp_Object val = Qnil;
2124 struct gcpro gcpro1, gcpro2; 2122 struct gcpro gcpro1, gcpro2;
@@ -2163,9 +2161,7 @@ DEFUN ("x-disown-selection-internal", Fx_disown_selection_internal,
2163 Sx_disown_selection_internal, 1, 2, 0, 2161 Sx_disown_selection_internal, 1, 2, 0,
2164 doc: /* If we own the selection SELECTION, disown it. 2162 doc: /* If we own the selection SELECTION, disown it.
2165Disowning it means there is no such selection. */) 2163Disowning it means there is no such selection. */)
2166 (selection, time) 2164 (Lisp_Object selection, Lisp_Object time)
2167 Lisp_Object selection;
2168 Lisp_Object time;
2169{ 2165{
2170 Time timestamp; 2166 Time timestamp;
2171 Atom selection_atom; 2167 Atom selection_atom;
@@ -2239,8 +2235,7 @@ the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
2239\(Those are literal upper-case symbol names, since that's what X expects.) 2235\(Those are literal upper-case symbol names, since that's what X expects.)
2240For convenience, the symbol nil is the same as `PRIMARY', 2236For convenience, the symbol nil is the same as `PRIMARY',
2241and t is the same as `SECONDARY'. */) 2237and t is the same as `SECONDARY'. */)
2242 (selection) 2238 (Lisp_Object selection)
2243 Lisp_Object selection;
2244{ 2239{
2245 check_x (); 2240 check_x ();
2246 CHECK_SYMBOL (selection); 2241 CHECK_SYMBOL (selection);
@@ -2260,8 +2255,7 @@ the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
2260\(Those are literal upper-case symbol names, since that's what X expects.) 2255\(Those are literal upper-case symbol names, since that's what X expects.)
2261For convenience, the symbol nil is the same as `PRIMARY', 2256For convenience, the symbol nil is the same as `PRIMARY',
2262and t is the same as `SECONDARY'. */) 2257and t is the same as `SECONDARY'. */)
2263 (selection) 2258 (Lisp_Object selection)
2264 Lisp_Object selection;
2265{ 2259{
2266 Window owner; 2260 Window owner;
2267 Atom atom; 2261 Atom atom;
@@ -2323,8 +2317,7 @@ initialize_cut_buffers (Display *display, Window window)
2323DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal, 2317DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal,
2324 Sx_get_cut_buffer_internal, 1, 1, 0, 2318 Sx_get_cut_buffer_internal, 1, 1, 0,
2325 doc: /* Returns the value of the named cut buffer (typically CUT_BUFFER0). */) 2319 doc: /* Returns the value of the named cut buffer (typically CUT_BUFFER0). */)
2326 (buffer) 2320 (Lisp_Object buffer)
2327 Lisp_Object buffer;
2328{ 2321{
2329 Window window; 2322 Window window;
2330 Atom buffer_atom; 2323 Atom buffer_atom;
@@ -2374,8 +2367,7 @@ DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal,
2374DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal, 2367DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal,
2375 Sx_store_cut_buffer_internal, 2, 2, 0, 2368 Sx_store_cut_buffer_internal, 2, 2, 0,
2376 doc: /* Sets the value of the named cut buffer (typically CUT_BUFFER0). */) 2369 doc: /* Sets the value of the named cut buffer (typically CUT_BUFFER0). */)
2377 (buffer, string) 2370 (Lisp_Object buffer, Lisp_Object string)
2378 Lisp_Object buffer, string;
2379{ 2371{
2380 Window window; 2372 Window window;
2381 Atom buffer_atom; 2373 Atom buffer_atom;
@@ -2440,8 +2432,7 @@ DEFUN ("x-rotate-cut-buffers-internal", Fx_rotate_cut_buffers_internal,
2440 Sx_rotate_cut_buffers_internal, 1, 1, 0, 2432 Sx_rotate_cut_buffers_internal, 1, 1, 0,
2441 doc: /* Rotate the values of the cut buffers by N steps. 2433 doc: /* Rotate the values of the cut buffers by N steps.
2442Positive N means shift the values forward, negative means backward. */) 2434Positive N means shift the values forward, negative means backward. */)
2443 (n) 2435 (Lisp_Object n)
2444 Lisp_Object n;
2445{ 2436{
2446 Window window; 2437 Window window;
2447 Atom props[8]; 2438 Atom props[8];
@@ -2624,8 +2615,7 @@ the cdr is the lower 16 bits of a 32 bit value.
2624Use the display for FRAME or the current frame if FRAME is not given or nil. 2615Use the display for FRAME or the current frame if FRAME is not given or nil.
2625 2616
2626If the value is 0 or the atom is not known, return the empty string. */) 2617If the value is 0 or the atom is not known, return the empty string. */)
2627 (value, frame) 2618 (Lisp_Object value, Lisp_Object frame)
2628 Lisp_Object value, frame;
2629{ 2619{
2630 struct frame *f = check_x_frame (frame); 2620 struct frame *f = check_x_frame (frame);
2631 char *name = 0; 2621 char *name = 0;
@@ -2665,8 +2655,7 @@ DEFUN ("x-register-dnd-atom", Fx_register_dnd_atom,
2665 doc: /* Request that dnd events are made for ClientMessages with ATOM. 2655 doc: /* Request that dnd events are made for ClientMessages with ATOM.
2666ATOM can be a symbol or a string. The ATOM is interned on the display that 2656ATOM can be a symbol or a string. The ATOM is interned on the display that
2667FRAME is on. If FRAME is nil, the selected frame is used. */) 2657FRAME is on. If FRAME is nil, the selected frame is used. */)
2668 (atom, frame) 2658 (Lisp_Object atom, Lisp_Object frame)
2669 Lisp_Object atom, frame;
2670{ 2659{
2671 Atom x_atom; 2660 Atom x_atom;
2672 struct frame *f = check_x_frame (frame); 2661 struct frame *f = check_x_frame (frame);
@@ -2783,8 +2772,7 @@ the Atom is sent. If a value is a cons, it is converted to a 32 bit number
2783with the high 16 bits from the car and the lower 16 bit from the cdr. 2772with the high 16 bits from the car and the lower 16 bit from the cdr.
2784If more values than fits into the event is given, the excessive values 2773If more values than fits into the event is given, the excessive values
2785are ignored. */) 2774are ignored. */)
2786 (display, dest, from, message_type, format, values) 2775 (Lisp_Object display, Lisp_Object dest, Lisp_Object from, Lisp_Object message_type, Lisp_Object format, Lisp_Object values)
2787 Lisp_Object display, dest, from, message_type, format, values;
2788{ 2776{
2789 struct x_display_info *dpyinfo = check_x_display_info (display); 2777 struct x_display_info *dpyinfo = check_x_display_info (display);
2790 Window wdest; 2778 Window wdest;
diff --git a/src/xsettings.c b/src/xsettings.c
index a8c89f5fb3d..c02c850ac85 100644
--- a/src/xsettings.c
+++ b/src/xsettings.c
@@ -703,7 +703,7 @@ DEFUN ("font-get-system-normal-font", Ffont_get_system_normal_font,
703 Sfont_get_system_normal_font, 703 Sfont_get_system_normal_font,
704 0, 0, 0, 704 0, 0, 0,
705 doc: /* Get the system default application font. */) 705 doc: /* Get the system default application font. */)
706 () 706 (void)
707{ 707{
708 return current_font 708 return current_font
709 ? make_string (current_font, strlen (current_font)) 709 ? make_string (current_font, strlen (current_font))
@@ -713,7 +713,7 @@ DEFUN ("font-get-system-normal-font", Ffont_get_system_normal_font,
713DEFUN ("font-get-system-font", Ffont_get_system_font, Sfont_get_system_font, 713DEFUN ("font-get-system-font", Ffont_get_system_font, Sfont_get_system_font,
714 0, 0, 0, 714 0, 0, 0,
715 doc: /* Get the system default fixed width font. */) 715 doc: /* Get the system default fixed width font. */)
716 () 716 (void)
717{ 717{
718 return current_mono_font 718 return current_mono_font
719 ? make_string (current_mono_font, strlen (current_mono_font)) 719 ? make_string (current_mono_font, strlen (current_mono_font))
@@ -725,7 +725,7 @@ DEFUN ("tool-bar-get-system-style", Ftool_bar_get_system_style, Stool_bar_get_sy
725 doc: /* Get the system tool bar style. 725 doc: /* Get the system tool bar style.
726If no system tool bar style is known, return `tool-bar-style' if set to a 726If no system tool bar style is known, return `tool-bar-style' if set to a
727known style. Otherwise return image. */) 727known style. Otherwise return image. */)
728 () 728 (void)
729{ 729{
730 if (EQ (Vtool_bar_style, Qimage) 730 if (EQ (Vtool_bar_style, Qimage)
731 || EQ (Vtool_bar_style, Qtext) 731 || EQ (Vtool_bar_style, Qtext)
diff --git a/src/xsmfns.c b/src/xsmfns.c
index 29e48e8f22e..cb3773f7c40 100644
--- a/src/xsmfns.c
+++ b/src/xsmfns.c
@@ -519,8 +519,7 @@ from `emacs-session-save' If the return value is non-nil the session manager
519is told to abort the window system shutdown. 519is told to abort the window system shutdown.
520 520
521Do not call this function yourself. */) 521Do not call this function yourself. */)
522 (event) 522 (Lisp_Object event)
523 Lisp_Object event;
524{ 523{
525 /* Check doing_interact so that we don't do anything if someone called 524 /* Check doing_interact so that we don't do anything if someone called
526 this at the wrong time. */ 525 this at the wrong time. */