aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-28 22:48:06 -0700
committerDan Nicolaescu2010-07-28 22:48:06 -0700
commite6cba65065d7002d181c3d440bfc5e04ba953783 (patch)
treed1cf831f51063d886b8cae457a40ab0286515286 /src
parentb27f3b2f5262ce5d4f106394988acf2e44243686 (diff)
downloademacs-e6cba65065d7002d181c3d440bfc5e04ba953783.tar.gz
emacs-e6cba65065d7002d181c3d440bfc5e04ba953783.zip
Remove extern declarations from .c files, and them to .h files.
* src/xsmfns.c (Vuser_login_name): * src/xrdb.c (Vdouble_click_time): * src/xfaces.c (xic_create_fontsetname): * src/w32select.c (waiting_for_input): * src/print.c (minibuffer_auto_raise): * src/msdos.c (Qhelp_echo): * src/macros.c (real_this_command): * src/keymap.c (Voverriding_local_map): * src/xterm.c (poll_for_input_1, gray_bitmap_width) (gray_bitmap_height, gray_bitmap_bits; * src/xmenu.c ( Voverriding_local_map) (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box) (use_file_dialog, Xt_app_con): * src/xdisp.c (minibuffer_auto_raise, Voverriding_local_map) (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible) (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines) (Qtool_bar_lines, ignore_mouse_drag_p): * src/minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky) (Qrear_nonsticky, nconc2): * src/keyboard.c (current_global_map, minibuf_level, Qmenu_item) (Vhistory_length, Vtranslation_table_for_input, Qcomposition) (Qdisplay, Qafter_string, Qbefore_string, Qundefined): * src/fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name) (minibuf_level, minibuffer_auto_raise, lisp_time_argument): * src/eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction) (gc_in_progress): * src/doc.c (Voverriding_local_map, Qremap): * src/dired.c (completion_ignore_case, Qcompletion_ignore_case) (Vcompletion_regexp_list): * src/coding.c (Qmac, Qinsert_file_contents, Qwrite_region) (Qcompletion_ignore_case): * src/callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly) (Vhistory_length, Vthis_original_command, real_this_command) (Qface, Qminibuffer_prompt, history_delete_duplicates): * src/image.c (Qrisky_local_variable): * src/fontset.c (QCname): * src/fns.c (minibuffer_auto_raise, QCname): * src/dispnew.c (char_ins_del_cost): * src/composite.c (font_fill_lglyph_metrics): * src/cmds.c (Qface, Vtranslation_table_for_input): * src/charset.c (map_char_table_for_charset, Qfile_name_handler_alist): * src/ccl.c (charset_unicode): * src/callproc.c (Vtemporary_file_directory): * src/buffer.c (emacs_strerror): Remove extern declarations. Remove extern declarations from .c files, and them to .h files. * src/keyboard.h (Qhelp_echo, waiting_for_input) (input_available_clear_time, ignore_mouse_drag_p) (Vdouble_click_time, real_this_command, Vthis_original_command): * src/keymap.h (Qremap, Qmenu_item, Voverriding_local_map) (Voverriding_local_map_menu_flag): * src/lisp.h (Qinteractive_form, use_file_dialog) (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount) (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask) (QCindex, QCmatrix, QCcolor_adjustment, QCmask) (Qrisky_local_variable, map_char_table_for_charset, Vprint_level) (Qfunction, debug_on_next_call, Qfield) (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument) (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string) (Qfile_directory_p, Qinsert_file_contents) (Qcompletion_ignore_case, Qcompletion_ignore_case) (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case) (history_delete_duplicates, minibuffer_auto_raise, Qonly) (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky) (Qminibuffer_prompt) (Vtemporary_file_directory,char_ins_del_vector, Qface): * src/xterm.h (gray_bitmap_width, gray_bitmap_height) (gray_bitmap_bits, xic_create_fontsetname): * src/coding.h (Vtranslation_table_for_input): Add extern declarations. * src/data.c (Qwindow): Make non-static, used from other files too. * src/frame.c (validate_x_resource_name): Remove shadow definition for i.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog73
-rw-r--r--src/buffer.c2
-rw-r--r--src/callint.c9
-rw-r--r--src/callproc.c2
-rw-r--r--src/ccl.c2
-rw-r--r--src/charset.c9
-rw-r--r--src/cmds.c3
-rw-r--r--src/coding.c4
-rw-r--r--src/coding.h3
-rw-r--r--src/composite.c2
-rw-r--r--src/data.c3
-rw-r--r--src/dired.c3
-rw-r--r--src/dispnew.c1
-rw-r--r--src/doc.c4
-rw-r--r--src/eval.c6
-rw-r--r--src/fileio.c9
-rw-r--r--src/fns.c1
-rw-r--r--src/fontset.c1
-rw-r--r--src/frame.c1
-rw-r--r--src/frame.h1
-rw-r--r--src/image.c2
-rw-r--r--src/keyboard.c10
-rw-r--r--src/keyboard.h20
-rw-r--r--src/keymap.c2
-rw-r--r--src/keymap.h4
-rw-r--r--src/lisp.h38
-rw-r--r--src/macros.c2
-rw-r--r--src/minibuf.c7
-rw-r--r--src/msdos.c1
-rw-r--r--src/print.c2
-rw-r--r--src/w32select.c1
-rw-r--r--src/xdisp.c10
-rw-r--r--src/xfaces.c2
-rw-r--r--src/xfns.c20
-rw-r--r--src/xmenu.c4
-rw-r--r--src/xrdb.c1
-rw-r--r--src/xsmfns.c4
-rw-r--r--src/xterm.c3
-rw-r--r--src/xterm.h3
39 files changed, 149 insertions, 126 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ab6f98e8bd9..3c1a543d3ec 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,78 @@
12010-07-29 Dan Nicolaescu <dann@ics.uci.edu> 12010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 Remove extern declarations from .c files, and them to .h files.
4 * keyboard.h (Qhelp_echo, waiting_for_input)
5 (input_available_clear_time, ignore_mouse_drag_p)
6 (Vdouble_click_time, real_this_command, Vthis_original_command):
7 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
8 (Voverriding_local_map_menu_flag):
9 * lisp.h (Qinteractive_form, use_file_dialog)
10 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
11 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
12 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
14 (Qfunction, debug_on_next_call, Qfield)
15 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
16 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
17 (Qfile_directory_p, Qinsert_file_contents)
18 (Qcompletion_ignore_case, Qcompletion_ignore_case)
19 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
20 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
21 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
22 (Qminibuffer_prompt)
23 (Vtemporary_file_directory,char_ins_del_vector, Qface):
24 * xterm.h (gray_bitmap_width, gray_bitmap_height)
25 (gray_bitmap_bits, xic_create_fontsetname):
26 * coding.h (Vtranslation_table_for_input): Add extern declarations.
27
28 * xsmfns.c (Vuser_login_name):
29 * xrdb.c (Vdouble_click_time):
30 * xfaces.c (xic_create_fontsetname):
31 * w32select.c (waiting_for_input):
32 * print.c (minibuffer_auto_raise):
33 * msdos.c (Qhelp_echo):
34 * macros.c (real_this_command):
35 * keymap.c (Voverriding_local_map):
36 * xterm.c (poll_for_input_1, gray_bitmap_width)
37 (gray_bitmap_height, gray_bitmap_bits;
38 * xmenu.c ( Voverriding_local_map)
39 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
40 (use_file_dialog, Xt_app_con):
41 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
42 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
43 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
44 (Qtool_bar_lines, ignore_mouse_drag_p):
45 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
46 (Qrear_nonsticky, nconc2):
47 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
48 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
49 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
50 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
51 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
52 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
53 (gc_in_progress):
54 * doc.c (Voverriding_local_map, Qremap):
55 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
56 (Vcompletion_regexp_list):
57 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
58 (Qcompletion_ignore_case):
59 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
60 (Vhistory_length, Vthis_original_command, real_this_command)
61 (Qface, Qminibuffer_prompt, history_delete_duplicates):
62 * image.c (Qrisky_local_variable):
63 * fontset.c (QCname):
64 * fns.c (minibuffer_auto_raise, QCname):
65 * dispnew.c (char_ins_del_cost):
66 * composite.c (font_fill_lglyph_metrics):
67 * cmds.c (Qface, Vtranslation_table_for_input):
68 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
69 * ccl.c (charset_unicode):
70 * callproc.c (Vtemporary_file_directory):
71 * buffer.c (emacs_strerror): Remove extern declarations.
72
73 * data.c (Qwindow): Make non-static, used from other files too.
74 * frame.c (validate_x_resource_name): Remove shadow definition for i.
75
3 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF, 76 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER. 77 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
5 * s/usg5-4.h (COFF): 78 * s/usg5-4.h (COFF):
diff --git a/src/buffer.c b/src/buffer.c
index fe0d200f503..9dd396e6c08 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -174,8 +174,6 @@ static struct Lisp_Overlay * copy_overlays (struct buffer *, struct Lisp_Overlay
174static void modify_overlay (struct buffer *, EMACS_INT, EMACS_INT); 174static void modify_overlay (struct buffer *, EMACS_INT, EMACS_INT);
175static Lisp_Object buffer_lisp_local_variables (struct buffer *); 175static Lisp_Object buffer_lisp_local_variables (struct buffer *);
176 176
177extern char * emacs_strerror (int);
178
179/* For debugging; temporary. See set_buffer_internal. */ 177/* For debugging; temporary. See set_buffer_internal. */
180/* Lisp_Object Qlisp_mode, Vcheck_symbol; */ 178/* Lisp_Object Qlisp_mode, Vcheck_symbol; */
181 179
diff --git a/src/callint.c b/src/callint.c
index fa0be112bea..11473c3473a 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -29,21 +29,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
29#include "window.h" 29#include "window.h"
30#include "keymap.h" 30#include "keymap.h"
31 31
32extern Lisp_Object Qcursor_in_echo_area;
33extern Lisp_Object Qfile_directory_p;
34extern Lisp_Object Qonly;
35
36Lisp_Object Vcurrent_prefix_arg, Qminus, Qplus; 32Lisp_Object Vcurrent_prefix_arg, Qminus, Qplus;
37Lisp_Object Qcall_interactively; 33Lisp_Object Qcall_interactively;
38Lisp_Object Vcommand_history; 34Lisp_Object Vcommand_history;
39 35
40extern Lisp_Object Vhistory_length;
41extern Lisp_Object Vthis_original_command, real_this_command;
42extern int history_delete_duplicates;
43
44Lisp_Object Vcommand_debug_status, Qcommand_debug_status; 36Lisp_Object Vcommand_debug_status, Qcommand_debug_status;
45Lisp_Object Qenable_recursive_minibuffers; 37Lisp_Object Qenable_recursive_minibuffers;
46extern Lisp_Object Qface, Qminibuffer_prompt;
47 38
48/* Non-nil means treat the mark as active 39/* Non-nil means treat the mark as active
49 even if mark_active is 0. */ 40 even if mark_active is 0. */
diff --git a/src/callproc.c b/src/callproc.c
index 7019d741b34..ca9ff93a6d9 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -102,8 +102,6 @@ Lisp_Object Vconfigure_info_directory, Vshared_game_score_directory;
102/* Pattern used by call-process-region to make temp files. */ 102/* Pattern used by call-process-region to make temp files. */
103static Lisp_Object Vtemp_file_name_pattern; 103static Lisp_Object Vtemp_file_name_pattern;
104 104
105extern Lisp_Object Vtemporary_file_directory;
106
107Lisp_Object Vshell_file_name; 105Lisp_Object Vshell_file_name;
108 106
109Lisp_Object Vprocess_environment, Vinitial_environment; 107Lisp_Object Vprocess_environment, Vinitial_environment;
diff --git a/src/ccl.c b/src/ccl.c
index b5a4f26197c..f418c65b01e 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -72,8 +72,6 @@ Lisp_Object Vtranslation_hash_table_vector;
72#define GET_HASH_TABLE(id) \ 72#define GET_HASH_TABLE(id) \
73 (XHASH_TABLE (XCDR(XVECTOR(Vtranslation_hash_table_vector)->contents[(id)]))) 73 (XHASH_TABLE (XCDR(XVECTOR(Vtranslation_hash_table_vector)->contents[(id)])))
74 74
75extern int charset_unicode;
76
77/* CCL (Code Conversion Language) is a simple language which has 75/* CCL (Code Conversion Language) is a simple language which has
78 operations on one input buffer, one output buffer, and 7 registers. 76 operations on one input buffer, one output buffer, and 7 registers.
79 The syntax of CCL is described in `ccl.el'. Emacs Lisp function 77 The syntax of CCL is described in `ccl.el'. Emacs Lisp function
diff --git a/src/charset.c b/src/charset.c
index 578c05a1d47..7aef84cb0aa 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -127,13 +127,6 @@ int inhibit_load_charset_map;
127 127
128Lisp_Object Vcurrent_iso639_language; 128Lisp_Object Vcurrent_iso639_language;
129 129
130/* Defined in chartab.c */
131extern void
132map_char_table_for_charset (void (*c_function) (Lisp_Object, Lisp_Object),
133 Lisp_Object function, Lisp_Object table,
134 Lisp_Object arg, struct charset *charset,
135 unsigned from, unsigned to);
136
137#define CODE_POINT_TO_INDEX(charset, code) \ 130#define CODE_POINT_TO_INDEX(charset, code) \
138 ((charset)->code_linear_p \ 131 ((charset)->code_linear_p \
139 ? (code) - (charset)->min_code \ 132 ? (code) - (charset)->min_code \
@@ -472,8 +465,6 @@ read_hex (FILE *fp, int *eof)
472 return n; 465 return n;
473} 466}
474 467
475extern Lisp_Object Qfile_name_handler_alist;
476
477/* Return a mapping vector for CHARSET loaded from MAPFILE. 468/* Return a mapping vector for CHARSET loaded from MAPFILE.
478 Each line of MAPFILE has this form 469 Each line of MAPFILE has this form
479 0xAAAA 0xCCCC 470 0xAAAA 0xCCCC
diff --git a/src/cmds.c b/src/cmds.c
index 2b686a44d87..7d54f46aeb4 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -43,9 +43,6 @@ Lisp_Object Vself_insert_face;
43/* This is the command that set up Vself_insert_face. */ 43/* This is the command that set up Vself_insert_face. */
44Lisp_Object Vself_insert_face_command; 44Lisp_Object Vself_insert_face_command;
45 45
46extern Lisp_Object Qface;
47extern Lisp_Object Vtranslation_table_for_input;
48
49static int internal_self_insert (int, int); 46static int internal_self_insert (int, int);
50 47
51DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, 48DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0,
diff --git a/src/coding.c b/src/coding.c
index dcd31fe9f28..32d1c64afbe 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -303,7 +303,6 @@ Lisp_Object Vcoding_system_hash_table;
303 303
304Lisp_Object Qcoding_system, Qcoding_aliases, Qeol_type; 304Lisp_Object Qcoding_system, Qcoding_aliases, Qeol_type;
305Lisp_Object Qunix, Qdos; 305Lisp_Object Qunix, Qdos;
306extern Lisp_Object Qmac; /* frame.c */
307Lisp_Object Qbuffer_file_coding_system; 306Lisp_Object Qbuffer_file_coding_system;
308Lisp_Object Qpost_read_conversion, Qpre_write_conversion; 307Lisp_Object Qpost_read_conversion, Qpre_write_conversion;
309Lisp_Object Qdefault_char; 308Lisp_Object Qdefault_char;
@@ -317,7 +316,6 @@ Lisp_Object QCdecode_translation_table, QCencode_translation_table;
317Lisp_Object QCpost_read_conversion, QCpre_write_conversion; 316Lisp_Object QCpost_read_conversion, QCpre_write_conversion;
318Lisp_Object QCascii_compatible_p; 317Lisp_Object QCascii_compatible_p;
319 318
320extern Lisp_Object Qinsert_file_contents, Qwrite_region;
321Lisp_Object Qcall_process, Qcall_process_region; 319Lisp_Object Qcall_process, Qcall_process_region;
322Lisp_Object Qstart_process, Qopen_network_stream; 320Lisp_Object Qstart_process, Qopen_network_stream;
323Lisp_Object Qtarget_idx; 321Lisp_Object Qtarget_idx;
@@ -325,8 +323,6 @@ Lisp_Object Qtarget_idx;
325Lisp_Object Qinsufficient_source, Qinconsistent_eol, Qinvalid_source; 323Lisp_Object Qinsufficient_source, Qinconsistent_eol, Qinvalid_source;
326Lisp_Object Qinterrupted, Qinsufficient_memory; 324Lisp_Object Qinterrupted, Qinsufficient_memory;
327 325
328extern Lisp_Object Qcompletion_ignore_case;
329
330/* If a symbol has this property, evaluate the value to define the 326/* If a symbol has this property, evaluate the value to define the
331 symbol as a coding system. */ 327 symbol as a coding system. */
332static Lisp_Object Qcoding_system_define_form; 328static Lisp_Object Qcoding_system_define_form;
diff --git a/src/coding.h b/src/coding.h
index 75ed84bef71..0caa5b2f96f 100644
--- a/src/coding.h
+++ b/src/coding.h
@@ -802,6 +802,9 @@ extern struct coding_system safe_terminal_coding;
802/* Default coding systems used for process I/O. */ 802/* Default coding systems used for process I/O. */
803extern Lisp_Object Vdefault_process_coding_system; 803extern Lisp_Object Vdefault_process_coding_system;
804 804
805/* Char table for translating Quail and self-inserting input. */
806extern Lisp_Object Vtranslation_table_for_input;
807
805/* Function to call to force a user to force select a propert coding 808/* Function to call to force a user to force select a propert coding
806 system. */ 809 system. */
807extern Lisp_Object Vselect_safe_coding_system_function; 810extern Lisp_Object Vselect_safe_coding_system_function;
diff --git a/src/composite.c b/src/composite.c
index dbd7e3d1715..392da1ceba1 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -848,8 +848,6 @@ fill_gstring_header (Lisp_Object header, Lisp_Object start, Lisp_Object end, Lis
848 return header; 848 return header;
849} 849}
850 850
851extern void font_fill_lglyph_metrics (Lisp_Object, Lisp_Object);
852
853static void 851static void
854fill_gstring_body (Lisp_Object gstring) 852fill_gstring_body (Lisp_Object gstring)
855{ 853{
diff --git a/src/data.c b/src/data.c
index 5c7a5deba2b..69f6cc34c29 100644
--- a/src/data.c
+++ b/src/data.c
@@ -82,7 +82,8 @@ Lisp_Object Qnumberp, Qnumber_or_marker_p;
82 82
83Lisp_Object Qinteger; 83Lisp_Object Qinteger;
84static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay; 84static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay;
85static Lisp_Object Qfloat, Qwindow_configuration, Qwindow; 85Lisp_Object Qwindow;
86static Lisp_Object Qfloat, Qwindow_configuration;
86Lisp_Object Qprocess; 87Lisp_Object Qprocess;
87static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; 88static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector;
88static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; 89static Lisp_Object Qchar_table, Qbool_vector, Qhash_table;
diff --git a/src/dired.c b/src/dired.c
index 5006d60deab..aec64f94379 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -102,9 +102,6 @@ extern void filemodestring (struct stat *, char *);
102#define lstat stat 102#define lstat stat
103#endif 103#endif
104 104
105extern int completion_ignore_case;
106extern Lisp_Object Qcompletion_ignore_case;
107extern Lisp_Object Vcompletion_regexp_list;
108extern Lisp_Object Vw32_get_true_file_attributes; 105extern Lisp_Object Vw32_get_true_file_attributes;
109 106
110Lisp_Object Vcompletion_ignored_extensions; 107Lisp_Object Vcompletion_ignored_extensions;
diff --git a/src/dispnew.c b/src/dispnew.c
index 0b332c18a76..52d50186939 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -5030,7 +5030,6 @@ count_match (struct glyph *str1, struct glyph *end1, struct glyph *str2, struct
5030 5030
5031/* Char insertion/deletion cost vector, from term.c */ 5031/* Char insertion/deletion cost vector, from term.c */
5032 5032
5033extern int *char_ins_del_vector;
5034#define char_ins_del_cost(f) (&char_ins_del_vector[FRAME_TOTAL_COLS((f))]) 5033#define char_ins_del_cost(f) (&char_ins_del_vector[FRAME_TOTAL_COLS((f))])
5035 5034
5036 5035
diff --git a/src/doc.c b/src/doc.c
index fc3cbc1c215..9a7001eb01d 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -52,10 +52,6 @@ Lisp_Object Qfunction_documentation;
52/* A list of files used to build this Emacs binary. */ 52/* A list of files used to build this Emacs binary. */
53static Lisp_Object Vbuild_files; 53static Lisp_Object Vbuild_files;
54 54
55extern Lisp_Object Voverriding_local_map;
56
57extern Lisp_Object Qremap;
58
59/* Buffer used for reading from documentation file. */ 55/* Buffer used for reading from documentation file. */
60static char *get_doc_string_buffer; 56static char *get_doc_string_buffer;
61static int get_doc_string_buffer_size; 57static int get_doc_string_buffer_size;
diff --git a/src/eval.c b/src/eval.c
index 06888ca0dd4..467662a11d8 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -63,7 +63,6 @@ Lisp_Object Qand_rest, Qand_optional;
63Lisp_Object Qdebug_on_error; 63Lisp_Object Qdebug_on_error;
64Lisp_Object Qdeclare; 64Lisp_Object Qdeclare;
65Lisp_Object Qdebug; 65Lisp_Object Qdebug;
66extern Lisp_Object Qinteractive_form;
67 66
68/* This holds either the symbol `run-hooks' or nil. 67/* This holds either the symbol `run-hooks' or nil.
69 It is nil at an early stage of startup, and when Emacs 68 It is nil at an early stage of startup, and when Emacs
@@ -166,10 +165,6 @@ int handling_signal;
166 165
167Lisp_Object Vmacro_declaration_function; 166Lisp_Object Vmacro_declaration_function;
168 167
169extern Lisp_Object Qrisky_local_variable;
170
171extern Lisp_Object Qfunction;
172
173static Lisp_Object funcall_lambda (Lisp_Object, int, Lisp_Object*); 168static Lisp_Object funcall_lambda (Lisp_Object, int, Lisp_Object*);
174static void unwind_to_catch (struct catchtag *, Lisp_Object) NO_RETURN; 169static void unwind_to_catch (struct catchtag *, Lisp_Object) NO_RETURN;
175 170
@@ -1634,7 +1629,6 @@ See also the function `condition-case'. */)
1634 That is a special case--don't do this in other situations. */ 1629 That is a special case--don't do this in other situations. */
1635 register struct handler *allhandlers = handlerlist; 1630 register struct handler *allhandlers = handlerlist;
1636 Lisp_Object conditions; 1631 Lisp_Object conditions;
1637 extern int gc_in_progress;
1638 extern int waiting_for_input; 1632 extern int waiting_for_input;
1639 Lisp_Object string; 1633 Lisp_Object string;
1640 Lisp_Object real_error_symbol; 1634 Lisp_Object real_error_symbol;
diff --git a/src/fileio.c b/src/fileio.c
index c942803e280..6d9ac162b93 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -104,8 +104,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
104#endif 104#endif
105 105
106#include "commands.h" 106#include "commands.h"
107extern int use_dialog_box;
108extern int use_file_dialog;
109 107
110#ifndef O_WRONLY 108#ifndef O_WRONLY
111#define O_WRONLY 1 109#define O_WRONLY 1
@@ -214,16 +212,10 @@ Lisp_Object Qcopy_directory;
214/* Lisp function for recursively deleting directories. */ 212/* Lisp function for recursively deleting directories. */
215Lisp_Object Qdelete_directory; 213Lisp_Object Qdelete_directory;
216 214
217extern Lisp_Object Vuser_login_name;
218
219#ifdef WINDOWSNT 215#ifdef WINDOWSNT
220extern Lisp_Object Vw32_get_true_file_attributes; 216extern Lisp_Object Vw32_get_true_file_attributes;
221#endif 217#endif
222 218
223extern int minibuf_level;
224
225extern int minibuffer_auto_raise;
226
227/* These variables describe handlers that have "already" had a chance 219/* These variables describe handlers that have "already" had a chance
228 to handle the current operation. 220 to handle the current operation.
229 221
@@ -3049,7 +3041,6 @@ The value is an integer. */)
3049 return value; 3041 return value;
3050} 3042}
3051 3043
3052extern int lisp_time_argument (Lisp_Object, time_t *, int *);
3053 3044
3054DEFUN ("set-file-times", Fset_file_times, Sset_file_times, 1, 2, 0, 3045DEFUN ("set-file-times", Fset_file_times, Sset_file_times, 1, 2, 0,
3055 doc: /* Set times of file FILENAME to TIME. 3046 doc: /* Set times of file FILENAME to TIME.
diff --git a/src/fns.c b/src/fns.c
index 3d4c07aad3a..63bcc9c86de 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -61,7 +61,6 @@ int use_dialog_box;
61 questions asked by mouse commands. */ 61 questions asked by mouse commands. */
62int use_file_dialog; 62int use_file_dialog;
63 63
64extern int minibuffer_auto_raise;
65extern Lisp_Object minibuf_window; 64extern Lisp_Object minibuf_window;
66extern Lisp_Object Vlocale_coding_system; 65extern Lisp_Object Vlocale_coding_system;
67extern int load_in_progress; 66extern int load_in_progress;
diff --git a/src/fontset.c b/src/fontset.c
index 9a27fc3e36b..ebfbe7a802f 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -1457,7 +1457,6 @@ appended. By default, FONT-SPEC overrides the previous settings. */)
1457 else if (STRINGP (font_spec)) 1457 else if (STRINGP (font_spec))
1458 { 1458 {
1459 Lisp_Object args[2]; 1459 Lisp_Object args[2];
1460 extern Lisp_Object QCname;
1461 1460
1462 fontname = font_spec; 1461 fontname = font_spec;
1463 args[0] = QCname; 1462 args[0] = QCname;
diff --git a/src/frame.c b/src/frame.c
index ea300bdb16b..ae8fdff807d 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3670,7 +3670,6 @@ validate_x_resource_name (void)
3670 if (STRINGP (Vx_resource_name)) 3670 if (STRINGP (Vx_resource_name))
3671 { 3671 {
3672 unsigned char *p = SDATA (Vx_resource_name); 3672 unsigned char *p = SDATA (Vx_resource_name);
3673 int i;
3674 3673
3675 len = SBYTES (Vx_resource_name); 3674 len = SBYTES (Vx_resource_name);
3676 3675
diff --git a/src/frame.h b/src/frame.h
index 54b4c89d304..04b754d4a5e 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -1063,7 +1063,6 @@ extern Lisp_Object Qalpha;
1063extern Lisp_Object Qleft_fringe, Qright_fringe; 1063extern Lisp_Object Qleft_fringe, Qright_fringe;
1064extern Lisp_Object Qheight, Qwidth; 1064extern Lisp_Object Qheight, Qwidth;
1065extern Lisp_Object Qminibuffer, Qmodeline; 1065extern Lisp_Object Qminibuffer, Qmodeline;
1066extern Lisp_Object Qonly;
1067extern Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; 1066extern Lisp_Object Qx, Qw32, Qmac, Qpc, Qns;
1068extern Lisp_Object Qvisible; 1067extern Lisp_Object Qvisible;
1069extern Lisp_Object Qdisplay_type; 1068extern Lisp_Object Qdisplay_type;
diff --git a/src/image.c b/src/image.c
index b628aab2fbc..f6282f6619b 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8130,8 +8130,6 @@ of `image-library-alist', which see). */)
8130void 8130void
8131syms_of_image (void) 8131syms_of_image (void)
8132{ 8132{
8133 extern Lisp_Object Qrisky_local_variable; /* Syms_of_xdisp has already run. */
8134
8135 /* Initialize this only once, since that's what we do with Vimage_types 8133 /* Initialize this only once, since that's what we do with Vimage_types
8136 and they are supposed to be in sync. Initializing here gives correct 8134 and they are supposed to be in sync. Initializing here gives correct
8137 operation on GNU/Linux of calling dump-emacs after loading some images. */ 8135 operation on GNU/Linux of calling dump-emacs after loading some images. */
diff --git a/src/keyboard.c b/src/keyboard.c
index 7d6ada2c28d..2cc7f407d62 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -246,9 +246,6 @@ Lisp_Object Vminibuffer_message_timeout;
246 ASCII character. */ 246 ASCII character. */
247int quit_char; 247int quit_char;
248 248
249extern Lisp_Object current_global_map;
250extern int minibuf_level;
251
252/* If non-nil, this is a map that overrides all other local maps. */ 249/* If non-nil, this is a map that overrides all other local maps. */
253Lisp_Object Voverriding_local_map; 250Lisp_Object Voverriding_local_map;
254 251
@@ -497,7 +494,6 @@ Lisp_Object Qevent_symbol_elements;
497Lisp_Object Qmenu_enable; 494Lisp_Object Qmenu_enable;
498Lisp_Object QCenable, QCvisible, QChelp, QCfilter, QCkeys, QCkey_sequence; 495Lisp_Object QCenable, QCvisible, QChelp, QCfilter, QCkeys, QCkey_sequence;
499Lisp_Object QCbutton, QCtoggle, QCradio, QClabel; 496Lisp_Object QCbutton, QCtoggle, QCradio, QClabel;
500extern Lisp_Object Qmenu_item;
501 497
502/* An event header symbol HEAD may have a property named 498/* An event header symbol HEAD may have a property named
503 Qevent_symbol_element_mask, which is of the form (BASE MODIFIERS); 499 Qevent_symbol_element_mask, which is of the form (BASE MODIFIERS);
@@ -526,8 +522,6 @@ Lisp_Object Fthis_command_keys (void);
526Lisp_Object Qextended_command_history; 522Lisp_Object Qextended_command_history;
527EMACS_TIME timer_check (int do_it_now); 523EMACS_TIME timer_check (int do_it_now);
528 524
529extern Lisp_Object Vhistory_length, Vtranslation_table_for_input;
530
531static void record_menu_key (Lisp_Object c); 525static void record_menu_key (Lisp_Object c);
532static int echo_length (void); 526static int echo_length (void);
533 527
@@ -1836,14 +1830,11 @@ command_loop_1 (void)
1836 } 1830 }
1837} 1831}
1838 1832
1839extern Lisp_Object Qcomposition, Qdisplay;
1840
1841/* Adjust point to a boundary of a region that has such a property 1833/* Adjust point to a boundary of a region that has such a property
1842 that should be treated intangible. For the moment, we check 1834 that should be treated intangible. For the moment, we check
1843 `composition', `display' and `invisible' properties. 1835 `composition', `display' and `invisible' properties.
1844 LAST_PT is the last position of point. */ 1836 LAST_PT is the last position of point. */
1845 1837
1846extern Lisp_Object Qafter_string, Qbefore_string;
1847extern Lisp_Object get_pos_property (Lisp_Object, Lisp_Object, Lisp_Object); 1838extern Lisp_Object get_pos_property (Lisp_Object, Lisp_Object, Lisp_Object);
1848 1839
1849static void 1840static void
@@ -8116,7 +8107,6 @@ static void
8116process_tool_bar_item (Lisp_Object key, Lisp_Object def, Lisp_Object data, void *args) 8107process_tool_bar_item (Lisp_Object key, Lisp_Object def, Lisp_Object data, void *args)
8117{ 8108{
8118 int i; 8109 int i;
8119 extern Lisp_Object Qundefined;
8120 struct gcpro gcpro1, gcpro2; 8110 struct gcpro gcpro1, gcpro2;
8121 8111
8122 /* Protect KEY and DEF from GC because parse_tool_bar_item may call 8112 /* Protect KEY and DEF from GC because parse_tool_bar_item may call
diff --git a/src/keyboard.h b/src/keyboard.h
index 648b1501406..7a04cf0425f 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -422,6 +422,8 @@ extern Lisp_Object Qevent_kind, Qevent_symbol_elements;
422extern Lisp_Object Qfunction_key, Qmouse_click, Qmouse_movement; 422extern Lisp_Object Qfunction_key, Qmouse_click, Qmouse_movement;
423extern Lisp_Object Qscroll_bar_movement; 423extern Lisp_Object Qscroll_bar_movement;
424 424
425extern Lisp_Object Qhelp_echo;
426
425/* Getting the kind of an event head. */ 427/* Getting the kind of an event head. */
426#define EVENT_HEAD_KIND(event_head) \ 428#define EVENT_HEAD_KIND(event_head) \
427 (Fget ((event_head), Qevent_kind)) 429 (Fget ((event_head), Qevent_kind))
@@ -429,6 +431,17 @@ extern Lisp_Object Qscroll_bar_movement;
429/* Symbols to use for non-text mouse positions. */ 431/* Symbols to use for non-text mouse positions. */
430extern Lisp_Object Qmode_line, Qvertical_line, Qheader_line; 432extern Lisp_Object Qmode_line, Qvertical_line, Qheader_line;
431 433
434/* True while doing kbd input. */
435extern int waiting_for_input;
436
437/* Address (if not 0) of EMACS_TIME to zero out if a SIGIO interrupt
438 happens. */
439extern EMACS_TIME *input_available_clear_time;
440
441extern int ignore_mouse_drag_p;
442
443extern Lisp_Object Vdouble_click_time;
444
432/* Forward declaration for prototypes. */ 445/* Forward declaration for prototypes. */
433struct input_event; 446struct input_event;
434 447
@@ -445,6 +458,13 @@ extern Lisp_Object Vfunction_key_map;
445/* Keymap of key translations that can override keymaps. */ 458/* Keymap of key translations that can override keymaps. */
446extern Lisp_Object Vkey_translation_map; 459extern Lisp_Object Vkey_translation_map;
447 460
461/* This is like Vthis_command, except that commands never set it. */
462extern Lisp_Object real_this_command;
463
464/* If the lookup of the command returns a binding, the original
465 command is stored in this-original-command. It is nil otherwise. */
466extern Lisp_Object Vthis_original_command;
467
448extern int parse_menu_item (Lisp_Object, int); 468extern int parse_menu_item (Lisp_Object, int);
449 469
450extern void echo_now (void); 470extern void echo_now (void);
diff --git a/src/keymap.c b/src/keymap.c
index 8a0c855e0dc..a92c085793f 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -108,8 +108,6 @@ static Lisp_Object command_remapping_vector;
108 character. */ 108 character. */
109extern Lisp_Object meta_prefix_char; 109extern Lisp_Object meta_prefix_char;
110 110
111extern Lisp_Object Voverriding_local_map;
112
113/* Hash table used to cache a reverse-map to speed up calls to where-is. */ 111/* Hash table used to cache a reverse-map to speed up calls to where-is. */
114static Lisp_Object where_is_cache; 112static Lisp_Object where_is_cache;
115/* Which keymaps are reverse-stored in the cache. */ 113/* Which keymaps are reverse-stored in the cache. */
diff --git a/src/keymap.h b/src/keymap.h
index 024b03dd1c3..b8f8ec4ffd2 100644
--- a/src/keymap.h
+++ b/src/keymap.h
@@ -22,6 +22,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22 22
23#define KEYMAPP(m) (!NILP (get_keymap (m, 0, 0))) 23#define KEYMAPP(m) (!NILP (get_keymap (m, 0, 0)))
24extern Lisp_Object Qkeymap, Qmenu_bar; 24extern Lisp_Object Qkeymap, Qmenu_bar;
25extern Lisp_Object Qremap;
26extern Lisp_Object Qmenu_item;
27extern Lisp_Object Voverriding_local_map;
28extern Lisp_Object Voverriding_local_map_menu_flag;
25extern Lisp_Object current_global_map; 29extern Lisp_Object current_global_map;
26EXFUN (Fmake_sparse_keymap, 1); 30EXFUN (Fmake_sparse_keymap, 1);
27EXFUN (Fkeymap_prompt, 1); 31EXFUN (Fkeymap_prompt, 1);
diff --git a/src/lisp.h b/src/lisp.h
index b9d67c4b78e..06a8b672fba 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2269,6 +2269,7 @@ extern Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch;
2269extern Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; 2269extern Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive;
2270extern Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; 2270extern Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only;
2271extern Lisp_Object Qtext_read_only; 2271extern Lisp_Object Qtext_read_only;
2272extern Lisp_Object Qinteractive_form;
2272 2273
2273extern Lisp_Object Qintegerp, Qnatnump, Qwholenump, Qsymbolp, Qlistp, Qconsp; 2274extern Lisp_Object Qintegerp, Qnatnump, Qwholenump, Qsymbolp, Qlistp, Qconsp;
2274extern Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp; 2275extern Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp;
@@ -2449,9 +2450,11 @@ extern void syms_of_syntax (void);
2449 2450
2450/* Defined in fns.c */ 2451/* Defined in fns.c */
2451extern int use_dialog_box; 2452extern int use_dialog_box;
2453extern int use_file_dialog;
2452extern int next_almost_prime (int); 2454extern int next_almost_prime (int);
2453extern Lisp_Object larger_vector (Lisp_Object, int, Lisp_Object); 2455extern Lisp_Object larger_vector (Lisp_Object, int, Lisp_Object);
2454extern void sweep_weak_hash_tables (void); 2456extern void sweep_weak_hash_tables (void);
2457extern Lisp_Object Qcursor_in_echo_area;
2455extern Lisp_Object Qstring_lessp; 2458extern Lisp_Object Qstring_lessp;
2456extern Lisp_Object Vfeatures; 2459extern Lisp_Object Vfeatures;
2457extern Lisp_Object QCsize, QCtest, QCweakness, Qequal, Qeq; 2460extern Lisp_Object QCsize, QCtest, QCweakness, Qequal, Qeq;
@@ -2558,6 +2561,9 @@ extern void init_fringe (void);
2558extern void init_fringe_once (void); 2561extern void init_fringe_once (void);
2559 2562
2560/* Defined in image.c */ 2563/* Defined in image.c */
2564extern Lisp_Object QCascent, QCmargin, QCrelief, Qcount, Qextension_data;
2565extern Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask;
2566extern Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask;
2561EXFUN (Finit_image_library, 2); 2567EXFUN (Finit_image_library, 2);
2562extern void syms_of_image (void); 2568extern void syms_of_image (void);
2563extern void init_image (void); 2569extern void init_image (void);
@@ -2635,6 +2641,7 @@ extern Lisp_Object Qimage, Qtext, Qboth, Qboth_horiz, Qtext_image_horiz;
2635extern Lisp_Object Qspace, Qcenter, QCalign_to; 2641extern Lisp_Object Qspace, Qcenter, QCalign_to;
2636extern Lisp_Object Vmessage_log_max; 2642extern Lisp_Object Vmessage_log_max;
2637extern Lisp_Object QCdata, QCfile; 2643extern Lisp_Object QCdata, QCfile;
2644extern Lisp_Object Qrisky_local_variable;
2638extern int message_enable_multibyte; 2645extern int message_enable_multibyte;
2639extern Lisp_Object echo_area_buffer[2]; 2646extern Lisp_Object echo_area_buffer[2];
2640extern void add_to_log (const char *, Lisp_Object, Lisp_Object); 2647extern void add_to_log (const char *, Lisp_Object, Lisp_Object);
@@ -2774,10 +2781,15 @@ extern int char_table_translate (Lisp_Object, int);
2774extern void map_char_table (void (*) (Lisp_Object, Lisp_Object, 2781extern void map_char_table (void (*) (Lisp_Object, Lisp_Object,
2775 Lisp_Object), 2782 Lisp_Object),
2776 Lisp_Object, Lisp_Object, Lisp_Object); 2783 Lisp_Object, Lisp_Object, Lisp_Object);
2784extern void map_char_table_for_charset (void (*c_function) (Lisp_Object, Lisp_Object),
2785 Lisp_Object, Lisp_Object,
2786 Lisp_Object, struct charset *,
2787 unsigned, unsigned);
2777extern void syms_of_chartab (void); 2788extern void syms_of_chartab (void);
2778 2789
2779/* Defined in print.c */ 2790/* Defined in print.c */
2780extern Lisp_Object Vprin1_to_string_buffer; 2791extern Lisp_Object Vprin1_to_string_buffer;
2792extern Lisp_Object Vprint_level;
2781extern void debug_print (Lisp_Object); 2793extern void debug_print (Lisp_Object);
2782EXFUN (Fprin1, 2); 2794EXFUN (Fprin1, 2);
2783EXFUN (Fprin1_to_string, 2); 2795EXFUN (Fprin1_to_string, 2);
@@ -2804,6 +2816,7 @@ extern int doprnt (char *, int, const char *, const char *, va_list);
2804 2816
2805/* Defined in lread.c */ 2817/* Defined in lread.c */
2806extern Lisp_Object Qvariable_documentation, Qstandard_input; 2818extern Lisp_Object Qvariable_documentation, Qstandard_input;
2819extern Lisp_Object Qfunction;
2807extern Lisp_Object Vobarray, initial_obarray, Vstandard_input; 2820extern Lisp_Object Vobarray, initial_obarray, Vstandard_input;
2808EXFUN (Fread, 1); 2821EXFUN (Fread, 1);
2809EXFUN (Fread_from_string, 3); 2822EXFUN (Fread_from_string, 3);
@@ -2845,6 +2858,7 @@ extern Lisp_Object Vautoload_queue;
2845extern Lisp_Object Vdebug_on_error; 2858extern Lisp_Object Vdebug_on_error;
2846extern Lisp_Object Vsignaling_function; 2859extern Lisp_Object Vsignaling_function;
2847extern int handling_signal; 2860extern int handling_signal;
2861extern int debug_on_next_call;
2848extern int interactive_p (int); 2862extern int interactive_p (int);
2849 2863
2850/* To run a normal hook, use the appropriate function from the list below. 2864/* To run a normal hook, use the appropriate function from the list below.
@@ -2925,6 +2939,9 @@ extern void init_eval (void);
2925extern void syms_of_eval (void); 2939extern void syms_of_eval (void);
2926 2940
2927/* Defined in editfns.c */ 2941/* Defined in editfns.c */
2942extern Lisp_Object Qfield;
2943extern Lisp_Object Vinhibit_field_text_motion;
2944extern Lisp_Object Vuser_login_name;
2928EXFUN (Fpropertize, MANY); 2945EXFUN (Fpropertize, MANY);
2929EXFUN (Fcurrent_message, 0); 2946EXFUN (Fcurrent_message, 0);
2930EXFUN (Fgoto_char, 1); 2947EXFUN (Fgoto_char, 1);
@@ -2971,7 +2988,6 @@ extern Lisp_Object make_buffer_string (int, int, int);
2971extern Lisp_Object make_buffer_string_both (int, int, int, int, int); 2988extern Lisp_Object make_buffer_string_both (int, int, int, int, int);
2972extern void init_editfns (void); 2989extern void init_editfns (void);
2973extern void syms_of_editfns (void); 2990extern void syms_of_editfns (void);
2974extern Lisp_Object Vinhibit_field_text_motion;
2975EXFUN (Fconstrain_to_field, 5); 2991EXFUN (Fconstrain_to_field, 5);
2976EXFUN (Ffield_string, 1); 2992EXFUN (Ffield_string, 1);
2977EXFUN (Fdelete_field, 1); 2993EXFUN (Fdelete_field, 1);
@@ -2979,6 +2995,7 @@ EXFUN (Ffield_beginning, 3);
2979EXFUN (Ffield_end, 3); 2995EXFUN (Ffield_end, 3);
2980EXFUN (Ffield_string_no_properties, 1); 2996EXFUN (Ffield_string_no_properties, 1);
2981extern void set_time_zone_rule (const char *); 2997extern void set_time_zone_rule (const char *);
2998extern int lisp_time_argument (Lisp_Object, time_t *, int *);
2982 2999
2983/* Defined in buffer.c */ 3000/* Defined in buffer.c */
2984extern int mouse_face_overlay_overlaps (Lisp_Object); 3001extern int mouse_face_overlay_overlaps (Lisp_Object);
@@ -3013,7 +3030,7 @@ EXFUN (Fbuffer_disable_undo, 1);
3013EXFUN (Fbuffer_enable_undo, 1); 3030EXFUN (Fbuffer_enable_undo, 1);
3014EXFUN (Ferase_buffer, 0); 3031EXFUN (Ferase_buffer, 0);
3015extern Lisp_Object Qoverlayp; 3032extern Lisp_Object Qoverlayp;
3016extern Lisp_Object Qevaporate; 3033extern Lisp_Object Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string;
3017extern Lisp_Object get_truename_buffer (Lisp_Object); 3034extern Lisp_Object get_truename_buffer (Lisp_Object);
3018extern struct buffer *all_buffers; 3035extern struct buffer *all_buffers;
3019EXFUN (Fprevious_overlay_change, 1); 3036EXFUN (Fprevious_overlay_change, 1);
@@ -3045,6 +3062,8 @@ extern void syms_of_marker (void);
3045/* Defined in fileio.c */ 3062/* Defined in fileio.c */
3046 3063
3047extern Lisp_Object Qfile_error; 3064extern Lisp_Object Qfile_error;
3065extern Lisp_Object Qfile_directory_p;
3066extern Lisp_Object Qinsert_file_contents;
3048EXFUN (Ffind_file_name_handler, 2); 3067EXFUN (Ffind_file_name_handler, 2);
3049EXFUN (Ffile_name_as_directory, 1); 3068EXFUN (Ffile_name_as_directory, 1);
3050EXFUN (Fmake_temp_name, 1); 3069EXFUN (Fmake_temp_name, 1);
@@ -3104,7 +3123,14 @@ extern void clear_regexp_cache (void);
3104 3123
3105/* Defined in minibuf.c */ 3124/* Defined in minibuf.c */
3106 3125
3126extern Lisp_Object Qcompletion_ignore_case;
3127extern Lisp_Object Qcompletion_ignore_case;
3128extern Lisp_Object Vcompletion_regexp_list;
3129extern Lisp_Object Vhistory_length;
3107extern Lisp_Object last_minibuf_string; 3130extern Lisp_Object last_minibuf_string;
3131extern int completion_ignore_case;
3132extern int history_delete_duplicates;
3133extern int minibuffer_auto_raise;
3108extern void choose_minibuf_frame (void); 3134extern void choose_minibuf_frame (void);
3109EXFUN (Fcompleting_read, 8); 3135EXFUN (Fcompleting_read, 8);
3110EXFUN (Fread_from_minibuffer, 7); 3136EXFUN (Fread_from_minibuffer, 7);
@@ -3206,6 +3232,7 @@ extern void syms_of_indent (void);
3206extern Lisp_Object Vx_resource_name; 3232extern Lisp_Object Vx_resource_name;
3207extern Lisp_Object Vx_resource_class; 3233extern Lisp_Object Vx_resource_class;
3208#endif /* HAVE_WINDOW_SYSTEM */ 3234#endif /* HAVE_WINDOW_SYSTEM */
3235extern Lisp_Object Qonly;
3209extern Lisp_Object Qvisible; 3236extern Lisp_Object Qvisible;
3210extern void store_frame_param (struct frame *, Lisp_Object, Lisp_Object); 3237extern void store_frame_param (struct frame *, Lisp_Object, Lisp_Object);
3211extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object); 3238extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object);
@@ -3253,6 +3280,7 @@ extern Lisp_Object Vinvocation_name, Vinvocation_directory;
3253extern Lisp_Object Vbefore_init_time, Vafter_init_time; 3280extern Lisp_Object Vbefore_init_time, Vafter_init_time;
3254extern Lisp_Object Vinstallation_directory; 3281extern Lisp_Object Vinstallation_directory;
3255extern Lisp_Object empty_unibyte_string, empty_multibyte_string; 3282extern Lisp_Object empty_unibyte_string, empty_multibyte_string;
3283extern Lisp_Object Qfile_name_handler_alist;
3256EXFUN (Fkill_emacs, 1) NO_RETURN; 3284EXFUN (Fkill_emacs, 1) NO_RETURN;
3257#if HAVE_SETLOCALE 3285#if HAVE_SETLOCALE
3258void fixup_locale (void); 3286void fixup_locale (void);
@@ -3359,6 +3387,9 @@ extern Lisp_Object Vundo_outer_limit;
3359/* Defined in textprop.c */ 3387/* Defined in textprop.c */
3360extern Lisp_Object Qfont, Qmouse_face; 3388extern Lisp_Object Qfont, Qmouse_face;
3361extern Lisp_Object Qinsert_in_front_hooks, Qinsert_behind_hooks; 3389extern Lisp_Object Qinsert_in_front_hooks, Qinsert_behind_hooks;
3390extern Lisp_Object Qfront_sticky, Qrear_nonsticky;
3391extern Lisp_Object Qminibuffer_prompt;
3392
3362EXFUN (Fnext_single_property_change, 4); 3393EXFUN (Fnext_single_property_change, 4);
3363EXFUN (Fnext_single_char_property_change, 4); 3394EXFUN (Fnext_single_char_property_change, 4);
3364EXFUN (Fprevious_single_property_change, 4); 3395EXFUN (Fprevious_single_property_change, 4);
@@ -3424,6 +3455,7 @@ extern int memcmp (void *, void *, size_t);
3424#endif 3455#endif
3425 3456
3426/* Defined in filelock.c */ 3457/* Defined in filelock.c */
3458extern Lisp_Object Vtemporary_file_directory;
3427EXFUN (Funlock_buffer, 0); 3459EXFUN (Funlock_buffer, 0);
3428EXFUN (Ffile_locked_p, 1); 3460EXFUN (Ffile_locked_p, 1);
3429extern void unlock_all_files (void); 3461extern void unlock_all_files (void);
@@ -3453,6 +3485,7 @@ extern Lisp_Object directory_files_internal (Lisp_Object, Lisp_Object,
3453 int, Lisp_Object); 3485 int, Lisp_Object);
3454 3486
3455/* Defined in term.c */ 3487/* Defined in term.c */
3488extern int *char_ins_del_vector;
3456extern void syms_of_term (void); 3489extern void syms_of_term (void);
3457extern void fatal (const char *msgid, ...) NO_RETURN; 3490extern void fatal (const char *msgid, ...) NO_RETURN;
3458 3491
@@ -3478,6 +3511,7 @@ EXFUN (Fx_focus_frame, 1);
3478#endif 3511#endif
3479 3512
3480/* Defined in xfaces.c */ 3513/* Defined in xfaces.c */
3514extern Lisp_Object Qface;
3481extern Lisp_Object Qnormal; 3515extern Lisp_Object Qnormal;
3482extern Lisp_Object QCfamily, QCweight, QCslant, QCwidth; 3516extern Lisp_Object QCfamily, QCweight, QCslant, QCwidth;
3483extern Lisp_Object QCheight, QCsize, QCname, QCwidth, QCforeground, QCbackground; 3517extern Lisp_Object QCheight, QCsize, QCname, QCwidth, QCforeground, QCbackground;
diff --git a/src/macros.c b/src/macros.c
index 0e0d3f3597e..c281c89aa3e 100644
--- a/src/macros.c
+++ b/src/macros.c
@@ -51,8 +51,6 @@ int executing_kbd_macro_iterations;
51 51
52Lisp_Object executing_kbd_macro; 52Lisp_Object executing_kbd_macro;
53 53
54extern Lisp_Object real_this_command;
55
56Lisp_Object Fexecute_kbd_macro (Lisp_Object macro, Lisp_Object count, Lisp_Object loopfunc); 54Lisp_Object Fexecute_kbd_macro (Lisp_Object macro, Lisp_Object count, Lisp_Object loopfunc);
57 55
58DEFUN ("start-kbd-macro", Fstart_kbd_macro, Sstart_kbd_macro, 1, 2, "P", 56DEFUN ("start-kbd-macro", Fstart_kbd_macro, Sstart_kbd_macro, 1, 2, "P",
diff --git a/src/minibuf.c b/src/minibuf.c
index d95af7db949..863b7aeee61 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -143,9 +143,6 @@ Lisp_Object Qcase_fold_search;
143 143
144Lisp_Object Qread_expression_history; 144Lisp_Object Qread_expression_history;
145 145
146extern Lisp_Object Voverriding_local_map;
147
148extern Lisp_Object Qfield;
149 146
150/* Put minibuf on currently selected frame's minibuffer. 147/* Put minibuf on currently selected frame's minibuffer.
151 We do this whenever the user starts a new minibuffer 148 We do this whenever the user starts a new minibuffer
@@ -442,9 +439,6 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt,
442 Lisp_Object empty_minibuf; 439 Lisp_Object empty_minibuf;
443 Lisp_Object dummy, frame; 440 Lisp_Object dummy, frame;
444 441
445 extern Lisp_Object Qfront_sticky;
446 extern Lisp_Object Qrear_nonsticky;
447
448 specbind (Qminibuffer_default, defalt); 442 specbind (Qminibuffer_default, defalt);
449 443
450 /* If Vminibuffer_completing_file_name is `lambda' on entry, it was t 444 /* If Vminibuffer_completing_file_name is `lambda' on entry, it was t
@@ -822,7 +816,6 @@ get_minibuffer (int depth)
822{ 816{
823 Lisp_Object tail, num, buf; 817 Lisp_Object tail, num, buf;
824 char name[24]; 818 char name[24];
825 extern Lisp_Object nconc2 (Lisp_Object, Lisp_Object);
826 819
827 XSETFASTINT (num, depth); 820 XSETFASTINT (num, depth);
828 tail = Fnthcdr (num, Vminibuffer_list); 821 tail = Fnthcdr (num, Vminibuffer_list);
diff --git a/src/msdos.c b/src/msdos.c
index 6985002aaa1..dda24cc868f 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -1191,7 +1191,6 @@ IT_note_mode_line_highlight (struct window *w, int x, int mode_line_p)
1191 1191
1192 if (row->enabled_p) 1192 if (row->enabled_p)
1193 { 1193 {
1194 extern Lisp_Object Qhelp_echo;
1195 struct glyph *glyph, *end; 1194 struct glyph *glyph, *end;
1196 Lisp_Object help, map; 1195 Lisp_Object help, map;
1197 1196
diff --git a/src/print.c b/src/print.c
index 97f6494678f..7a90e6cd96e 100644
--- a/src/print.c
+++ b/src/print.c
@@ -166,8 +166,6 @@ Lisp_Object Vprint_number_table;
166 166
167extern int noninteractive_need_newline; 167extern int noninteractive_need_newline;
168 168
169extern int minibuffer_auto_raise;
170
171void print_interval (INTERVAL interval, Lisp_Object printcharfun); 169void print_interval (INTERVAL interval, Lisp_Object printcharfun);
172 170
173/* GDB resets this to zero on W32 to disable OutputDebugString calls. */ 171/* GDB resets this to zero on W32 to disable OutputDebugString calls. */
diff --git a/src/w32select.c b/src/w32select.c
index 8482d3331ff..bd013a5ece9 100644
--- a/src/w32select.c
+++ b/src/w32select.c
@@ -398,7 +398,6 @@ run_protected (Lisp_Object (*code) (Lisp_Object), Lisp_Object arg)
398 with global variables and calling strange looking functions. Is 398 with global variables and calling strange looking functions. Is
399 this really the right way to run Lisp callbacks? */ 399 this really the right way to run Lisp callbacks? */
400 400
401 extern int waiting_for_input;
402 int owfi; 401 int owfi;
403 402
404 BLOCK_INPUT; 403 BLOCK_INPUT;
diff --git a/src/xdisp.c b/src/xdisp.c
index cd088f0aa1d..3274a48294f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -276,15 +276,11 @@ extern void set_frame_menubar (struct frame *f, int, int);
276extern int interrupt_input; 276extern int interrupt_input;
277extern int command_loop_level; 277extern int command_loop_level;
278 278
279extern int minibuffer_auto_raise;
280extern Lisp_Object Vminibuffer_list; 279extern Lisp_Object Vminibuffer_list;
281 280
282extern Lisp_Object Qface; 281extern Lisp_Object Qface;
283extern Lisp_Object Qmode_line, Qmode_line_inactive, Qheader_line; 282extern Lisp_Object Qmode_line, Qmode_line_inactive, Qheader_line;
284 283
285extern Lisp_Object Voverriding_local_map;
286extern Lisp_Object Voverriding_local_map_menu_flag;
287extern Lisp_Object Qmenu_item;
288extern Lisp_Object Qwhen; 284extern Lisp_Object Qwhen;
289extern Lisp_Object Qhelp_echo; 285extern Lisp_Object Qhelp_echo;
290extern Lisp_Object Qbefore_string, Qafter_string; 286extern Lisp_Object Qbefore_string, Qafter_string;
@@ -379,7 +375,6 @@ int inhibit_eval_during_redisplay;
379/* Names of text properties relevant for redisplay. */ 375/* Names of text properties relevant for redisplay. */
380 376
381Lisp_Object Qdisplay; 377Lisp_Object Qdisplay;
382extern Lisp_Object Qface, Qinvisible, Qwidth;
383 378
384/* Symbols used in text property values. */ 379/* Symbols used in text property values. */
385 380
@@ -3689,7 +3684,6 @@ handle_invisible_prop (struct it *it)
3689 3684
3690 if (STRINGP (it->string)) 3685 if (STRINGP (it->string))
3691 { 3686 {
3692 extern Lisp_Object Qinvisible;
3693 Lisp_Object prop, end_charpos, limit, charpos; 3687 Lisp_Object prop, end_charpos, limit, charpos;
3694 3688
3695 /* Get the value of the invisible text property at the 3689 /* Get the value of the invisible text property at the
@@ -4873,7 +4867,6 @@ compare_overlay_entries (const void *e1, const void *e2)
4873static void 4867static void
4874load_overlay_strings (struct it *it, int charpos) 4868load_overlay_strings (struct it *it, int charpos)
4875{ 4869{
4876 extern Lisp_Object Qwindow, Qpriority;
4877 Lisp_Object overlay, window, str, invisible; 4870 Lisp_Object overlay, window, str, invisible;
4878 struct Lisp_Overlay *ov; 4871 struct Lisp_Overlay *ov;
4879 int start, end; 4872 int start, end;
@@ -10585,7 +10578,6 @@ redisplay_tool_bar (struct frame *f)
10585 if ((nlines = tool_bar_lines_needed (f, &f->n_tool_bar_rows), 10578 if ((nlines = tool_bar_lines_needed (f, &f->n_tool_bar_rows),
10586 nlines != WINDOW_TOTAL_LINES (w))) 10579 nlines != WINDOW_TOTAL_LINES (w)))
10587 { 10580 {
10588 extern Lisp_Object Qtool_bar_lines;
10589 Lisp_Object frame; 10581 Lisp_Object frame;
10590 int old_height = WINDOW_TOTAL_LINES (w); 10582 int old_height = WINDOW_TOTAL_LINES (w);
10591 10583
@@ -10677,7 +10669,6 @@ redisplay_tool_bar (struct frame *f)
10677 frame parameter. */ 10669 frame parameter. */
10678 if (change_height_p) 10670 if (change_height_p)
10679 { 10671 {
10680 extern Lisp_Object Qtool_bar_lines;
10681 Lisp_Object frame; 10672 Lisp_Object frame;
10682 int old_height = WINDOW_TOTAL_LINES (w); 10673 int old_height = WINDOW_TOTAL_LINES (w);
10683 int nrows; 10674 int nrows;
@@ -14485,7 +14476,6 @@ redisplay_window (Lisp_Object window, int just_this_one_p)
14485 14476
14486 if (redisplay_tool_bar_p && redisplay_tool_bar (f)) 14477 if (redisplay_tool_bar_p && redisplay_tool_bar (f))
14487 { 14478 {
14488 extern int ignore_mouse_drag_p;
14489 ignore_mouse_drag_p = 1; 14479 ignore_mouse_drag_p = 1;
14490 } 14480 }
14491 } 14481 }
diff --git a/src/xfaces.c b/src/xfaces.c
index 259ee154012..8d88281d43e 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -3666,8 +3666,6 @@ x_update_menu_appearance (struct frame *f)
3666 if (! NILP (xlfd)) 3666 if (! NILP (xlfd))
3667 { 3667 {
3668#if defined HAVE_X_I18N 3668#if defined HAVE_X_I18N
3669 extern char *xic_create_fontsetname
3670 (char *base_fontname, Bool motif);
3671 char *fontsetname = xic_create_fontsetname (SDATA (xlfd), motif); 3669 char *fontsetname = xic_create_fontsetname (SDATA (xlfd), motif);
3672#else 3670#else
3673 char *fontsetname = (char *) SDATA (xlfd); 3671 char *fontsetname = (char *) SDATA (xlfd);
diff --git a/src/xfns.c b/src/xfns.c
index 0d468ebc919..f19498dfb87 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1901,12 +1901,12 @@ static XIMStyle supported_xim_styles[] =
1901 1901
1902/* Create an X fontset on frame F with base font name BASE_FONTNAME. */ 1902/* Create an X fontset on frame F with base font name BASE_FONTNAME. */
1903 1903
1904char xic_defaut_fontset[] = "-*-*-*-r-normal--14-*-*-*-*-*-*-*"; 1904const char xic_defaut_fontset[] = "-*-*-*-r-normal--14-*-*-*-*-*-*-*";
1905 1905
1906/* Create an Xt fontset spec from the name of a base font. 1906/* Create an Xt fontset spec from the name of a base font.
1907 If `motif' is True use the Motif syntax. */ 1907 If `motif' is True use the Motif syntax. */
1908char * 1908char *
1909xic_create_fontsetname (char *base_fontname, int motif) 1909xic_create_fontsetname (const char *base_fontname, int motif)
1910{ 1910{
1911 const char *sep = motif ? ";" : ","; 1911 const char *sep = motif ? ";" : ",";
1912 char *fontsetname; 1912 char *fontsetname;
@@ -1926,7 +1926,7 @@ xic_create_fontsetname (char *base_fontname, int motif)
1926 - the base font. 1926 - the base font.
1927 - the base font where the charset spec is replaced by -*-*. 1927 - the base font where the charset spec is replaced by -*-*.
1928 - the same but with the family also replaced with -*-*-. */ 1928 - the same but with the family also replaced with -*-*-. */
1929 char *p = base_fontname; 1929 const char *p = base_fontname;
1930 int i; 1930 int i;
1931 1931
1932 for (i = 0; *p; p++) 1932 for (i = 0; *p; p++)
@@ -1945,13 +1945,13 @@ xic_create_fontsetname (char *base_fontname, int motif)
1945 else 1945 else
1946 { 1946 {
1947 int len; 1947 int len;
1948 char *p1 = NULL, *p2 = NULL, *p3 = NULL; 1948 const char *p1 = NULL, *p2 = NULL, *p3 = NULL;
1949 char *font_allcs = NULL; 1949 char *font_allcs = NULL;
1950 char *font_allfamilies = NULL; 1950 char *font_allfamilies = NULL;
1951 char *font_all = NULL; 1951 char *font_all = NULL;
1952 char *allcs = "*-*-*-*-*-*-*"; 1952 const char *allcs = "*-*-*-*-*-*-*";
1953 char *allfamilies = "-*-*-"; 1953 const char *allfamilies = "-*-*-";
1954 char *all = "*-*-*-*-"; 1954 const char *all = "*-*-*-*-";
1955 char *base; 1955 char *base;
1956 1956
1957 for (i = 0, p = base_fontname; i < 8; p++) 1957 for (i = 0, p = base_fontname; i < 8; p++)
@@ -2080,7 +2080,7 @@ xic_create_xfontset (struct frame *f)
2080 char **missing_list; 2080 char **missing_list;
2081 int missing_count; 2081 int missing_count;
2082 char *def_string; 2082 char *def_string;
2083 char *xlfd_format = "-*-*-medium-r-normal--%d-*-*-*-*-*"; 2083 const char *xlfd_format = "-*-*-medium-r-normal--%d-*-*-*-*-*";
2084 2084
2085 sprintf (buf, xlfd_format, pixel_size); 2085 sprintf (buf, xlfd_format, pixel_size);
2086 missing_list = NULL; 2086 missing_list = NULL;
@@ -5239,9 +5239,6 @@ DEFUN ("x-uses-old-gtk-dialog", Fx_uses_old_gtk_dialog,
5239 (void) 5239 (void)
5240{ 5240{
5241#ifdef USE_GTK 5241#ifdef USE_GTK
5242 extern int use_dialog_box;
5243 extern int use_file_dialog;
5244
5245 if (use_dialog_box 5242 if (use_dialog_box
5246 && use_file_dialog 5243 && use_file_dialog
5247 && have_menus_p () 5244 && have_menus_p ()
@@ -5312,7 +5309,6 @@ or directory must exist. ONLY-DIR-P is ignored." */)
5312 Widget dialog, text, help; 5309 Widget dialog, text, help;
5313 Arg al[10]; 5310 Arg al[10];
5314 int ac = 0; 5311 int ac = 0;
5315 extern XtAppContext Xt_app_con;
5316 XmString dir_xmstring, pattern_xmstring; 5312 XmString dir_xmstring, pattern_xmstring;
5317 int count = SPECPDL_INDEX (); 5313 int count = SPECPDL_INDEX ();
5318 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5, gcpro6; 5314 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5, gcpro6;
diff --git a/src/xmenu.c b/src/xmenu.c
index 9163f7c31da..a04eb2502b3 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -113,9 +113,6 @@ extern Lisp_Object Qmenu_bar;
113 113
114extern Lisp_Object QCtoggle, QCradio; 114extern Lisp_Object QCtoggle, QCradio;
115 115
116extern Lisp_Object Voverriding_local_map;
117extern Lisp_Object Voverriding_local_map_menu_flag;
118
119extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; 116extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map;
120 117
121extern Lisp_Object Qmenu_bar_update_hook; 118extern Lisp_Object Qmenu_bar_update_hook;
@@ -2209,7 +2206,6 @@ static struct frame *menu_help_frame;
2209static void 2206static void
2210menu_help_callback (char *help_string, int pane, int item) 2207menu_help_callback (char *help_string, int pane, int item)
2211{ 2208{
2212 extern Lisp_Object Qmenu_item;
2213 Lisp_Object *first_item; 2209 Lisp_Object *first_item;
2214 Lisp_Object pane_name; 2210 Lisp_Object pane_name;
2215 Lisp_Object menu_object; 2211 Lisp_Object menu_object;
diff --git a/src/xrdb.c b/src/xrdb.c
index 9c814b01027..39637b04081 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -508,7 +508,6 @@ x_load_resources (Display *display, const char *xrm_string,
508 508
509#ifdef USE_MOTIF 509#ifdef USE_MOTIF
510 const char *courier = "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1"; 510 const char *courier = "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1";
511 extern Lisp_Object Vdouble_click_time;
512#endif 511#endif
513 512
514 x_rm_string = XrmStringToQuark (XrmStringType); 513 x_rm_string = XrmStringToQuark (XrmStringType);
diff --git a/src/xsmfns.c b/src/xsmfns.c
index cb3773f7c40..0096110bd46 100644
--- a/src/xsmfns.c
+++ b/src/xsmfns.c
@@ -45,10 +45,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
45/* Avoid "differ in sign" warnings */ 45/* Avoid "differ in sign" warnings */
46#define SSDATA(x) ((char *) SDATA (x)) 46#define SSDATA(x) ((char *) SDATA (x))
47 47
48/* The user login name. */
49
50extern Lisp_Object Vuser_login_name;
51
52/* This is the event used when SAVE_SESSION_EVENT occurs. */ 48/* This is the event used when SAVE_SESSION_EVENT occurs. */
53 49
54static struct input_event emacs_event; 50static struct input_event emacs_event;
diff --git a/src/xterm.c b/src/xterm.c
index d4a6885be43..e51c1fad837 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -9010,7 +9010,6 @@ x_make_frame_visible (struct frame *f)
9010 /* It could be confusing if a real alarm arrives while 9010 /* It could be confusing if a real alarm arrives while
9011 processing the fake one. Turn it off and let the 9011 processing the fake one. Turn it off and let the
9012 handler reset it. */ 9012 handler reset it. */
9013 extern void poll_for_input_1 (void);
9014 int old_poll_suppress_count = poll_suppress_count; 9013 int old_poll_suppress_count = poll_suppress_count;
9015 poll_suppress_count = 1; 9014 poll_suppress_count = 1;
9016 poll_for_input_1 (); 9015 poll_for_input_1 ();
@@ -10139,8 +10138,6 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
10139 dpyinfo->connection = connection; 10138 dpyinfo->connection = connection;
10140 10139
10141 { 10140 {
10142 extern int gray_bitmap_width, gray_bitmap_height;
10143 extern char *gray_bitmap_bits;
10144 dpyinfo->gray 10141 dpyinfo->gray
10145 = XCreatePixmapFromBitmapData (dpyinfo->display, dpyinfo->root_window, 10142 = XCreatePixmapFromBitmapData (dpyinfo->display, dpyinfo->root_window,
10146 gray_bitmap_bits, 10143 gray_bitmap_bits,
diff --git a/src/xterm.h b/src/xterm.h
index d9215d5ea23..cfc786632e5 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -933,6 +933,8 @@ struct frame *check_x_frame (Lisp_Object);
933EXFUN (Fx_display_color_p, 1); 933EXFUN (Fx_display_color_p, 1);
934EXFUN (Fx_display_grayscale_p, 1); 934EXFUN (Fx_display_grayscale_p, 1);
935extern void x_free_gcs (struct frame *); 935extern void x_free_gcs (struct frame *);
936extern int gray_bitmap_width, gray_bitmap_height;
937extern char *gray_bitmap_bits;
936 938
937/* From xrdb.c. */ 939/* From xrdb.c. */
938 940
@@ -1053,6 +1055,7 @@ extern void x_sync (struct frame *);
1053extern int x_defined_color (struct frame *, const char *, XColor *, int); 1055extern int x_defined_color (struct frame *, const char *, XColor *, int);
1054#ifdef HAVE_X_I18N 1056#ifdef HAVE_X_I18N
1055extern void free_frame_xic (struct frame *); 1057extern void free_frame_xic (struct frame *);
1058extern char * xic_create_fontsetname (const char *base_fontname, int motif);
1056#endif 1059#endif
1057extern void x_set_tool_bar_lines (struct frame *, Lisp_Object, Lisp_Object); 1060extern void x_set_tool_bar_lines (struct frame *, Lisp_Object, Lisp_Object);
1058 1061