diff options
| author | Dan Nicolaescu | 2010-07-28 22:48:06 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-28 22:48:06 -0700 |
| commit | e6cba65065d7002d181c3d440bfc5e04ba953783 (patch) | |
| tree | d1cf831f51063d886b8cae457a40ab0286515286 /src | |
| parent | b27f3b2f5262ce5d4f106394988acf2e44243686 (diff) | |
| download | emacs-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/ChangeLog | 73 | ||||
| -rw-r--r-- | src/buffer.c | 2 | ||||
| -rw-r--r-- | src/callint.c | 9 | ||||
| -rw-r--r-- | src/callproc.c | 2 | ||||
| -rw-r--r-- | src/ccl.c | 2 | ||||
| -rw-r--r-- | src/charset.c | 9 | ||||
| -rw-r--r-- | src/cmds.c | 3 | ||||
| -rw-r--r-- | src/coding.c | 4 | ||||
| -rw-r--r-- | src/coding.h | 3 | ||||
| -rw-r--r-- | src/composite.c | 2 | ||||
| -rw-r--r-- | src/data.c | 3 | ||||
| -rw-r--r-- | src/dired.c | 3 | ||||
| -rw-r--r-- | src/dispnew.c | 1 | ||||
| -rw-r--r-- | src/doc.c | 4 | ||||
| -rw-r--r-- | src/eval.c | 6 | ||||
| -rw-r--r-- | src/fileio.c | 9 | ||||
| -rw-r--r-- | src/fns.c | 1 | ||||
| -rw-r--r-- | src/fontset.c | 1 | ||||
| -rw-r--r-- | src/frame.c | 1 | ||||
| -rw-r--r-- | src/frame.h | 1 | ||||
| -rw-r--r-- | src/image.c | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 10 | ||||
| -rw-r--r-- | src/keyboard.h | 20 | ||||
| -rw-r--r-- | src/keymap.c | 2 | ||||
| -rw-r--r-- | src/keymap.h | 4 | ||||
| -rw-r--r-- | src/lisp.h | 38 | ||||
| -rw-r--r-- | src/macros.c | 2 | ||||
| -rw-r--r-- | src/minibuf.c | 7 | ||||
| -rw-r--r-- | src/msdos.c | 1 | ||||
| -rw-r--r-- | src/print.c | 2 | ||||
| -rw-r--r-- | src/w32select.c | 1 | ||||
| -rw-r--r-- | src/xdisp.c | 10 | ||||
| -rw-r--r-- | src/xfaces.c | 2 | ||||
| -rw-r--r-- | src/xfns.c | 20 | ||||
| -rw-r--r-- | src/xmenu.c | 4 | ||||
| -rw-r--r-- | src/xrdb.c | 1 | ||||
| -rw-r--r-- | src/xsmfns.c | 4 | ||||
| -rw-r--r-- | src/xterm.c | 3 | ||||
| -rw-r--r-- | src/xterm.h | 3 |
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 @@ | |||
| 1 | 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-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 | |||
| 174 | static void modify_overlay (struct buffer *, EMACS_INT, EMACS_INT); | 174 | static void modify_overlay (struct buffer *, EMACS_INT, EMACS_INT); |
| 175 | static Lisp_Object buffer_lisp_local_variables (struct buffer *); | 175 | static Lisp_Object buffer_lisp_local_variables (struct buffer *); |
| 176 | 176 | ||
| 177 | extern 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 | ||
| 32 | extern Lisp_Object Qcursor_in_echo_area; | ||
| 33 | extern Lisp_Object Qfile_directory_p; | ||
| 34 | extern Lisp_Object Qonly; | ||
| 35 | |||
| 36 | Lisp_Object Vcurrent_prefix_arg, Qminus, Qplus; | 32 | Lisp_Object Vcurrent_prefix_arg, Qminus, Qplus; |
| 37 | Lisp_Object Qcall_interactively; | 33 | Lisp_Object Qcall_interactively; |
| 38 | Lisp_Object Vcommand_history; | 34 | Lisp_Object Vcommand_history; |
| 39 | 35 | ||
| 40 | extern Lisp_Object Vhistory_length; | ||
| 41 | extern Lisp_Object Vthis_original_command, real_this_command; | ||
| 42 | extern int history_delete_duplicates; | ||
| 43 | |||
| 44 | Lisp_Object Vcommand_debug_status, Qcommand_debug_status; | 36 | Lisp_Object Vcommand_debug_status, Qcommand_debug_status; |
| 45 | Lisp_Object Qenable_recursive_minibuffers; | 37 | Lisp_Object Qenable_recursive_minibuffers; |
| 46 | extern 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. */ |
| 103 | static Lisp_Object Vtemp_file_name_pattern; | 103 | static Lisp_Object Vtemp_file_name_pattern; |
| 104 | 104 | ||
| 105 | extern Lisp_Object Vtemporary_file_directory; | ||
| 106 | |||
| 107 | Lisp_Object Vshell_file_name; | 105 | Lisp_Object Vshell_file_name; |
| 108 | 106 | ||
| 109 | Lisp_Object Vprocess_environment, Vinitial_environment; | 107 | Lisp_Object Vprocess_environment, Vinitial_environment; |
| @@ -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 | ||
| 75 | extern 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 | ||
| 128 | Lisp_Object Vcurrent_iso639_language; | 128 | Lisp_Object Vcurrent_iso639_language; |
| 129 | 129 | ||
| 130 | /* Defined in chartab.c */ | ||
| 131 | extern void | ||
| 132 | map_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 | ||
| 475 | extern 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. */ |
| 44 | Lisp_Object Vself_insert_face_command; | 44 | Lisp_Object Vself_insert_face_command; |
| 45 | 45 | ||
| 46 | extern Lisp_Object Qface; | ||
| 47 | extern Lisp_Object Vtranslation_table_for_input; | ||
| 48 | |||
| 49 | static int internal_self_insert (int, int); | 46 | static int internal_self_insert (int, int); |
| 50 | 47 | ||
| 51 | DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, | 48 | DEFUN ("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 | ||
| 304 | Lisp_Object Qcoding_system, Qcoding_aliases, Qeol_type; | 304 | Lisp_Object Qcoding_system, Qcoding_aliases, Qeol_type; |
| 305 | Lisp_Object Qunix, Qdos; | 305 | Lisp_Object Qunix, Qdos; |
| 306 | extern Lisp_Object Qmac; /* frame.c */ | ||
| 307 | Lisp_Object Qbuffer_file_coding_system; | 306 | Lisp_Object Qbuffer_file_coding_system; |
| 308 | Lisp_Object Qpost_read_conversion, Qpre_write_conversion; | 307 | Lisp_Object Qpost_read_conversion, Qpre_write_conversion; |
| 309 | Lisp_Object Qdefault_char; | 308 | Lisp_Object Qdefault_char; |
| @@ -317,7 +316,6 @@ Lisp_Object QCdecode_translation_table, QCencode_translation_table; | |||
| 317 | Lisp_Object QCpost_read_conversion, QCpre_write_conversion; | 316 | Lisp_Object QCpost_read_conversion, QCpre_write_conversion; |
| 318 | Lisp_Object QCascii_compatible_p; | 317 | Lisp_Object QCascii_compatible_p; |
| 319 | 318 | ||
| 320 | extern Lisp_Object Qinsert_file_contents, Qwrite_region; | ||
| 321 | Lisp_Object Qcall_process, Qcall_process_region; | 319 | Lisp_Object Qcall_process, Qcall_process_region; |
| 322 | Lisp_Object Qstart_process, Qopen_network_stream; | 320 | Lisp_Object Qstart_process, Qopen_network_stream; |
| 323 | Lisp_Object Qtarget_idx; | 321 | Lisp_Object Qtarget_idx; |
| @@ -325,8 +323,6 @@ Lisp_Object Qtarget_idx; | |||
| 325 | Lisp_Object Qinsufficient_source, Qinconsistent_eol, Qinvalid_source; | 323 | Lisp_Object Qinsufficient_source, Qinconsistent_eol, Qinvalid_source; |
| 326 | Lisp_Object Qinterrupted, Qinsufficient_memory; | 324 | Lisp_Object Qinterrupted, Qinsufficient_memory; |
| 327 | 325 | ||
| 328 | extern 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. */ |
| 332 | static Lisp_Object Qcoding_system_define_form; | 328 | static 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. */ |
| 803 | extern Lisp_Object Vdefault_process_coding_system; | 803 | extern Lisp_Object Vdefault_process_coding_system; |
| 804 | 804 | ||
| 805 | /* Char table for translating Quail and self-inserting input. */ | ||
| 806 | extern 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. */ |
| 807 | extern Lisp_Object Vselect_safe_coding_system_function; | 810 | extern 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 | ||
| 851 | extern void font_fill_lglyph_metrics (Lisp_Object, Lisp_Object); | ||
| 852 | |||
| 853 | static void | 851 | static void |
| 854 | fill_gstring_body (Lisp_Object gstring) | 852 | fill_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 | ||
| 83 | Lisp_Object Qinteger; | 83 | Lisp_Object Qinteger; |
| 84 | static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay; | 84 | static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay; |
| 85 | static Lisp_Object Qfloat, Qwindow_configuration, Qwindow; | 85 | Lisp_Object Qwindow; |
| 86 | static Lisp_Object Qfloat, Qwindow_configuration; | ||
| 86 | Lisp_Object Qprocess; | 87 | Lisp_Object Qprocess; |
| 87 | static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; | 88 | static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; |
| 88 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; | 89 | static 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 | ||
| 105 | extern int completion_ignore_case; | ||
| 106 | extern Lisp_Object Qcompletion_ignore_case; | ||
| 107 | extern Lisp_Object Vcompletion_regexp_list; | ||
| 108 | extern Lisp_Object Vw32_get_true_file_attributes; | 105 | extern Lisp_Object Vw32_get_true_file_attributes; |
| 109 | 106 | ||
| 110 | Lisp_Object Vcompletion_ignored_extensions; | 107 | Lisp_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 | ||
| 5033 | extern 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 | ||
| @@ -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. */ |
| 53 | static Lisp_Object Vbuild_files; | 53 | static Lisp_Object Vbuild_files; |
| 54 | 54 | ||
| 55 | extern Lisp_Object Voverriding_local_map; | ||
| 56 | |||
| 57 | extern Lisp_Object Qremap; | ||
| 58 | |||
| 59 | /* Buffer used for reading from documentation file. */ | 55 | /* Buffer used for reading from documentation file. */ |
| 60 | static char *get_doc_string_buffer; | 56 | static char *get_doc_string_buffer; |
| 61 | static int get_doc_string_buffer_size; | 57 | static 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; | |||
| 63 | Lisp_Object Qdebug_on_error; | 63 | Lisp_Object Qdebug_on_error; |
| 64 | Lisp_Object Qdeclare; | 64 | Lisp_Object Qdeclare; |
| 65 | Lisp_Object Qdebug; | 65 | Lisp_Object Qdebug; |
| 66 | extern 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 | ||
| 167 | Lisp_Object Vmacro_declaration_function; | 166 | Lisp_Object Vmacro_declaration_function; |
| 168 | 167 | ||
| 169 | extern Lisp_Object Qrisky_local_variable; | ||
| 170 | |||
| 171 | extern Lisp_Object Qfunction; | ||
| 172 | |||
| 173 | static Lisp_Object funcall_lambda (Lisp_Object, int, Lisp_Object*); | 168 | static Lisp_Object funcall_lambda (Lisp_Object, int, Lisp_Object*); |
| 174 | static void unwind_to_catch (struct catchtag *, Lisp_Object) NO_RETURN; | 169 | static 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" |
| 107 | extern int use_dialog_box; | ||
| 108 | extern 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. */ |
| 215 | Lisp_Object Qdelete_directory; | 213 | Lisp_Object Qdelete_directory; |
| 216 | 214 | ||
| 217 | extern Lisp_Object Vuser_login_name; | ||
| 218 | |||
| 219 | #ifdef WINDOWSNT | 215 | #ifdef WINDOWSNT |
| 220 | extern Lisp_Object Vw32_get_true_file_attributes; | 216 | extern Lisp_Object Vw32_get_true_file_attributes; |
| 221 | #endif | 217 | #endif |
| 222 | 218 | ||
| 223 | extern int minibuf_level; | ||
| 224 | |||
| 225 | extern 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 | ||
| 3052 | extern int lisp_time_argument (Lisp_Object, time_t *, int *); | ||
| 3053 | 3044 | ||
| 3054 | DEFUN ("set-file-times", Fset_file_times, Sset_file_times, 1, 2, 0, | 3045 | DEFUN ("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. |
| @@ -61,7 +61,6 @@ int use_dialog_box; | |||
| 61 | questions asked by mouse commands. */ | 61 | questions asked by mouse commands. */ |
| 62 | int use_file_dialog; | 62 | int use_file_dialog; |
| 63 | 63 | ||
| 64 | extern int minibuffer_auto_raise; | ||
| 65 | extern Lisp_Object minibuf_window; | 64 | extern Lisp_Object minibuf_window; |
| 66 | extern Lisp_Object Vlocale_coding_system; | 65 | extern Lisp_Object Vlocale_coding_system; |
| 67 | extern int load_in_progress; | 66 | extern 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; | |||
| 1063 | extern Lisp_Object Qleft_fringe, Qright_fringe; | 1063 | extern Lisp_Object Qleft_fringe, Qright_fringe; |
| 1064 | extern Lisp_Object Qheight, Qwidth; | 1064 | extern Lisp_Object Qheight, Qwidth; |
| 1065 | extern Lisp_Object Qminibuffer, Qmodeline; | 1065 | extern Lisp_Object Qminibuffer, Qmodeline; |
| 1066 | extern Lisp_Object Qonly; | ||
| 1067 | extern Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; | 1066 | extern Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; |
| 1068 | extern Lisp_Object Qvisible; | 1067 | extern Lisp_Object Qvisible; |
| 1069 | extern Lisp_Object Qdisplay_type; | 1068 | extern 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). */) | |||
| 8130 | void | 8130 | void |
| 8131 | syms_of_image (void) | 8131 | syms_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. */ |
| 247 | int quit_char; | 247 | int quit_char; |
| 248 | 248 | ||
| 249 | extern Lisp_Object current_global_map; | ||
| 250 | extern 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. */ |
| 253 | Lisp_Object Voverriding_local_map; | 250 | Lisp_Object Voverriding_local_map; |
| 254 | 251 | ||
| @@ -497,7 +494,6 @@ Lisp_Object Qevent_symbol_elements; | |||
| 497 | Lisp_Object Qmenu_enable; | 494 | Lisp_Object Qmenu_enable; |
| 498 | Lisp_Object QCenable, QCvisible, QChelp, QCfilter, QCkeys, QCkey_sequence; | 495 | Lisp_Object QCenable, QCvisible, QChelp, QCfilter, QCkeys, QCkey_sequence; |
| 499 | Lisp_Object QCbutton, QCtoggle, QCradio, QClabel; | 496 | Lisp_Object QCbutton, QCtoggle, QCradio, QClabel; |
| 500 | extern 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); | |||
| 526 | Lisp_Object Qextended_command_history; | 522 | Lisp_Object Qextended_command_history; |
| 527 | EMACS_TIME timer_check (int do_it_now); | 523 | EMACS_TIME timer_check (int do_it_now); |
| 528 | 524 | ||
| 529 | extern Lisp_Object Vhistory_length, Vtranslation_table_for_input; | ||
| 530 | |||
| 531 | static void record_menu_key (Lisp_Object c); | 525 | static void record_menu_key (Lisp_Object c); |
| 532 | static int echo_length (void); | 526 | static int echo_length (void); |
| 533 | 527 | ||
| @@ -1836,14 +1830,11 @@ command_loop_1 (void) | |||
| 1836 | } | 1830 | } |
| 1837 | } | 1831 | } |
| 1838 | 1832 | ||
| 1839 | extern 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 | ||
| 1846 | extern Lisp_Object Qafter_string, Qbefore_string; | ||
| 1847 | extern Lisp_Object get_pos_property (Lisp_Object, Lisp_Object, Lisp_Object); | 1838 | extern Lisp_Object get_pos_property (Lisp_Object, Lisp_Object, Lisp_Object); |
| 1848 | 1839 | ||
| 1849 | static void | 1840 | static void |
| @@ -8116,7 +8107,6 @@ static void | |||
| 8116 | process_tool_bar_item (Lisp_Object key, Lisp_Object def, Lisp_Object data, void *args) | 8107 | process_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; | |||
| 422 | extern Lisp_Object Qfunction_key, Qmouse_click, Qmouse_movement; | 422 | extern Lisp_Object Qfunction_key, Qmouse_click, Qmouse_movement; |
| 423 | extern Lisp_Object Qscroll_bar_movement; | 423 | extern Lisp_Object Qscroll_bar_movement; |
| 424 | 424 | ||
| 425 | extern 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. */ |
| 430 | extern Lisp_Object Qmode_line, Qvertical_line, Qheader_line; | 432 | extern Lisp_Object Qmode_line, Qvertical_line, Qheader_line; |
| 431 | 433 | ||
| 434 | /* True while doing kbd input. */ | ||
| 435 | extern int waiting_for_input; | ||
| 436 | |||
| 437 | /* Address (if not 0) of EMACS_TIME to zero out if a SIGIO interrupt | ||
| 438 | happens. */ | ||
| 439 | extern EMACS_TIME *input_available_clear_time; | ||
| 440 | |||
| 441 | extern int ignore_mouse_drag_p; | ||
| 442 | |||
| 443 | extern Lisp_Object Vdouble_click_time; | ||
| 444 | |||
| 432 | /* Forward declaration for prototypes. */ | 445 | /* Forward declaration for prototypes. */ |
| 433 | struct input_event; | 446 | struct 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. */ |
| 446 | extern Lisp_Object Vkey_translation_map; | 459 | extern Lisp_Object Vkey_translation_map; |
| 447 | 460 | ||
| 461 | /* This is like Vthis_command, except that commands never set it. */ | ||
| 462 | extern 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. */ | ||
| 466 | extern Lisp_Object Vthis_original_command; | ||
| 467 | |||
| 448 | extern int parse_menu_item (Lisp_Object, int); | 468 | extern int parse_menu_item (Lisp_Object, int); |
| 449 | 469 | ||
| 450 | extern void echo_now (void); | 470 | extern 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. */ |
| 109 | extern Lisp_Object meta_prefix_char; | 109 | extern Lisp_Object meta_prefix_char; |
| 110 | 110 | ||
| 111 | extern 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. */ |
| 114 | static Lisp_Object where_is_cache; | 112 | static 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))) |
| 24 | extern Lisp_Object Qkeymap, Qmenu_bar; | 24 | extern Lisp_Object Qkeymap, Qmenu_bar; |
| 25 | extern Lisp_Object Qremap; | ||
| 26 | extern Lisp_Object Qmenu_item; | ||
| 27 | extern Lisp_Object Voverriding_local_map; | ||
| 28 | extern Lisp_Object Voverriding_local_map_menu_flag; | ||
| 25 | extern Lisp_Object current_global_map; | 29 | extern Lisp_Object current_global_map; |
| 26 | EXFUN (Fmake_sparse_keymap, 1); | 30 | EXFUN (Fmake_sparse_keymap, 1); |
| 27 | EXFUN (Fkeymap_prompt, 1); | 31 | EXFUN (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; | |||
| 2269 | extern Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; | 2269 | extern Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; |
| 2270 | extern Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; | 2270 | extern Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; |
| 2271 | extern Lisp_Object Qtext_read_only; | 2271 | extern Lisp_Object Qtext_read_only; |
| 2272 | extern Lisp_Object Qinteractive_form; | ||
| 2272 | 2273 | ||
| 2273 | extern Lisp_Object Qintegerp, Qnatnump, Qwholenump, Qsymbolp, Qlistp, Qconsp; | 2274 | extern Lisp_Object Qintegerp, Qnatnump, Qwholenump, Qsymbolp, Qlistp, Qconsp; |
| 2274 | extern Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp; | 2275 | extern 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 */ |
| 2451 | extern int use_dialog_box; | 2452 | extern int use_dialog_box; |
| 2453 | extern int use_file_dialog; | ||
| 2452 | extern int next_almost_prime (int); | 2454 | extern int next_almost_prime (int); |
| 2453 | extern Lisp_Object larger_vector (Lisp_Object, int, Lisp_Object); | 2455 | extern Lisp_Object larger_vector (Lisp_Object, int, Lisp_Object); |
| 2454 | extern void sweep_weak_hash_tables (void); | 2456 | extern void sweep_weak_hash_tables (void); |
| 2457 | extern Lisp_Object Qcursor_in_echo_area; | ||
| 2455 | extern Lisp_Object Qstring_lessp; | 2458 | extern Lisp_Object Qstring_lessp; |
| 2456 | extern Lisp_Object Vfeatures; | 2459 | extern Lisp_Object Vfeatures; |
| 2457 | extern Lisp_Object QCsize, QCtest, QCweakness, Qequal, Qeq; | 2460 | extern Lisp_Object QCsize, QCtest, QCweakness, Qequal, Qeq; |
| @@ -2558,6 +2561,9 @@ extern void init_fringe (void); | |||
| 2558 | extern void init_fringe_once (void); | 2561 | extern void init_fringe_once (void); |
| 2559 | 2562 | ||
| 2560 | /* Defined in image.c */ | 2563 | /* Defined in image.c */ |
| 2564 | extern Lisp_Object QCascent, QCmargin, QCrelief, Qcount, Qextension_data; | ||
| 2565 | extern Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; | ||
| 2566 | extern Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask; | ||
| 2561 | EXFUN (Finit_image_library, 2); | 2567 | EXFUN (Finit_image_library, 2); |
| 2562 | extern void syms_of_image (void); | 2568 | extern void syms_of_image (void); |
| 2563 | extern void init_image (void); | 2569 | extern void init_image (void); |
| @@ -2635,6 +2641,7 @@ extern Lisp_Object Qimage, Qtext, Qboth, Qboth_horiz, Qtext_image_horiz; | |||
| 2635 | extern Lisp_Object Qspace, Qcenter, QCalign_to; | 2641 | extern Lisp_Object Qspace, Qcenter, QCalign_to; |
| 2636 | extern Lisp_Object Vmessage_log_max; | 2642 | extern Lisp_Object Vmessage_log_max; |
| 2637 | extern Lisp_Object QCdata, QCfile; | 2643 | extern Lisp_Object QCdata, QCfile; |
| 2644 | extern Lisp_Object Qrisky_local_variable; | ||
| 2638 | extern int message_enable_multibyte; | 2645 | extern int message_enable_multibyte; |
| 2639 | extern Lisp_Object echo_area_buffer[2]; | 2646 | extern Lisp_Object echo_area_buffer[2]; |
| 2640 | extern void add_to_log (const char *, Lisp_Object, Lisp_Object); | 2647 | extern void add_to_log (const char *, Lisp_Object, Lisp_Object); |
| @@ -2774,10 +2781,15 @@ extern int char_table_translate (Lisp_Object, int); | |||
| 2774 | extern void map_char_table (void (*) (Lisp_Object, Lisp_Object, | 2781 | extern 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); |
| 2784 | extern 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); | ||
| 2777 | extern void syms_of_chartab (void); | 2788 | extern void syms_of_chartab (void); |
| 2778 | 2789 | ||
| 2779 | /* Defined in print.c */ | 2790 | /* Defined in print.c */ |
| 2780 | extern Lisp_Object Vprin1_to_string_buffer; | 2791 | extern Lisp_Object Vprin1_to_string_buffer; |
| 2792 | extern Lisp_Object Vprint_level; | ||
| 2781 | extern void debug_print (Lisp_Object); | 2793 | extern void debug_print (Lisp_Object); |
| 2782 | EXFUN (Fprin1, 2); | 2794 | EXFUN (Fprin1, 2); |
| 2783 | EXFUN (Fprin1_to_string, 2); | 2795 | EXFUN (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 */ |
| 2806 | extern Lisp_Object Qvariable_documentation, Qstandard_input; | 2818 | extern Lisp_Object Qvariable_documentation, Qstandard_input; |
| 2819 | extern Lisp_Object Qfunction; | ||
| 2807 | extern Lisp_Object Vobarray, initial_obarray, Vstandard_input; | 2820 | extern Lisp_Object Vobarray, initial_obarray, Vstandard_input; |
| 2808 | EXFUN (Fread, 1); | 2821 | EXFUN (Fread, 1); |
| 2809 | EXFUN (Fread_from_string, 3); | 2822 | EXFUN (Fread_from_string, 3); |
| @@ -2845,6 +2858,7 @@ extern Lisp_Object Vautoload_queue; | |||
| 2845 | extern Lisp_Object Vdebug_on_error; | 2858 | extern Lisp_Object Vdebug_on_error; |
| 2846 | extern Lisp_Object Vsignaling_function; | 2859 | extern Lisp_Object Vsignaling_function; |
| 2847 | extern int handling_signal; | 2860 | extern int handling_signal; |
| 2861 | extern int debug_on_next_call; | ||
| 2848 | extern int interactive_p (int); | 2862 | extern 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); | |||
| 2925 | extern void syms_of_eval (void); | 2939 | extern void syms_of_eval (void); |
| 2926 | 2940 | ||
| 2927 | /* Defined in editfns.c */ | 2941 | /* Defined in editfns.c */ |
| 2942 | extern Lisp_Object Qfield; | ||
| 2943 | extern Lisp_Object Vinhibit_field_text_motion; | ||
| 2944 | extern Lisp_Object Vuser_login_name; | ||
| 2928 | EXFUN (Fpropertize, MANY); | 2945 | EXFUN (Fpropertize, MANY); |
| 2929 | EXFUN (Fcurrent_message, 0); | 2946 | EXFUN (Fcurrent_message, 0); |
| 2930 | EXFUN (Fgoto_char, 1); | 2947 | EXFUN (Fgoto_char, 1); |
| @@ -2971,7 +2988,6 @@ extern Lisp_Object make_buffer_string (int, int, int); | |||
| 2971 | extern Lisp_Object make_buffer_string_both (int, int, int, int, int); | 2988 | extern Lisp_Object make_buffer_string_both (int, int, int, int, int); |
| 2972 | extern void init_editfns (void); | 2989 | extern void init_editfns (void); |
| 2973 | extern void syms_of_editfns (void); | 2990 | extern void syms_of_editfns (void); |
| 2974 | extern Lisp_Object Vinhibit_field_text_motion; | ||
| 2975 | EXFUN (Fconstrain_to_field, 5); | 2991 | EXFUN (Fconstrain_to_field, 5); |
| 2976 | EXFUN (Ffield_string, 1); | 2992 | EXFUN (Ffield_string, 1); |
| 2977 | EXFUN (Fdelete_field, 1); | 2993 | EXFUN (Fdelete_field, 1); |
| @@ -2979,6 +2995,7 @@ EXFUN (Ffield_beginning, 3); | |||
| 2979 | EXFUN (Ffield_end, 3); | 2995 | EXFUN (Ffield_end, 3); |
| 2980 | EXFUN (Ffield_string_no_properties, 1); | 2996 | EXFUN (Ffield_string_no_properties, 1); |
| 2981 | extern void set_time_zone_rule (const char *); | 2997 | extern void set_time_zone_rule (const char *); |
| 2998 | extern int lisp_time_argument (Lisp_Object, time_t *, int *); | ||
| 2982 | 2999 | ||
| 2983 | /* Defined in buffer.c */ | 3000 | /* Defined in buffer.c */ |
| 2984 | extern int mouse_face_overlay_overlaps (Lisp_Object); | 3001 | extern int mouse_face_overlay_overlaps (Lisp_Object); |
| @@ -3013,7 +3030,7 @@ EXFUN (Fbuffer_disable_undo, 1); | |||
| 3013 | EXFUN (Fbuffer_enable_undo, 1); | 3030 | EXFUN (Fbuffer_enable_undo, 1); |
| 3014 | EXFUN (Ferase_buffer, 0); | 3031 | EXFUN (Ferase_buffer, 0); |
| 3015 | extern Lisp_Object Qoverlayp; | 3032 | extern Lisp_Object Qoverlayp; |
| 3016 | extern Lisp_Object Qevaporate; | 3033 | extern Lisp_Object Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string; |
| 3017 | extern Lisp_Object get_truename_buffer (Lisp_Object); | 3034 | extern Lisp_Object get_truename_buffer (Lisp_Object); |
| 3018 | extern struct buffer *all_buffers; | 3035 | extern struct buffer *all_buffers; |
| 3019 | EXFUN (Fprevious_overlay_change, 1); | 3036 | EXFUN (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 | ||
| 3047 | extern Lisp_Object Qfile_error; | 3064 | extern Lisp_Object Qfile_error; |
| 3065 | extern Lisp_Object Qfile_directory_p; | ||
| 3066 | extern Lisp_Object Qinsert_file_contents; | ||
| 3048 | EXFUN (Ffind_file_name_handler, 2); | 3067 | EXFUN (Ffind_file_name_handler, 2); |
| 3049 | EXFUN (Ffile_name_as_directory, 1); | 3068 | EXFUN (Ffile_name_as_directory, 1); |
| 3050 | EXFUN (Fmake_temp_name, 1); | 3069 | EXFUN (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 | ||
| 3126 | extern Lisp_Object Qcompletion_ignore_case; | ||
| 3127 | extern Lisp_Object Qcompletion_ignore_case; | ||
| 3128 | extern Lisp_Object Vcompletion_regexp_list; | ||
| 3129 | extern Lisp_Object Vhistory_length; | ||
| 3107 | extern Lisp_Object last_minibuf_string; | 3130 | extern Lisp_Object last_minibuf_string; |
| 3131 | extern int completion_ignore_case; | ||
| 3132 | extern int history_delete_duplicates; | ||
| 3133 | extern int minibuffer_auto_raise; | ||
| 3108 | extern void choose_minibuf_frame (void); | 3134 | extern void choose_minibuf_frame (void); |
| 3109 | EXFUN (Fcompleting_read, 8); | 3135 | EXFUN (Fcompleting_read, 8); |
| 3110 | EXFUN (Fread_from_minibuffer, 7); | 3136 | EXFUN (Fread_from_minibuffer, 7); |
| @@ -3206,6 +3232,7 @@ extern void syms_of_indent (void); | |||
| 3206 | extern Lisp_Object Vx_resource_name; | 3232 | extern Lisp_Object Vx_resource_name; |
| 3207 | extern Lisp_Object Vx_resource_class; | 3233 | extern Lisp_Object Vx_resource_class; |
| 3208 | #endif /* HAVE_WINDOW_SYSTEM */ | 3234 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 3235 | extern Lisp_Object Qonly; | ||
| 3209 | extern Lisp_Object Qvisible; | 3236 | extern Lisp_Object Qvisible; |
| 3210 | extern void store_frame_param (struct frame *, Lisp_Object, Lisp_Object); | 3237 | extern void store_frame_param (struct frame *, Lisp_Object, Lisp_Object); |
| 3211 | extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object); | 3238 | extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object); |
| @@ -3253,6 +3280,7 @@ extern Lisp_Object Vinvocation_name, Vinvocation_directory; | |||
| 3253 | extern Lisp_Object Vbefore_init_time, Vafter_init_time; | 3280 | extern Lisp_Object Vbefore_init_time, Vafter_init_time; |
| 3254 | extern Lisp_Object Vinstallation_directory; | 3281 | extern Lisp_Object Vinstallation_directory; |
| 3255 | extern Lisp_Object empty_unibyte_string, empty_multibyte_string; | 3282 | extern Lisp_Object empty_unibyte_string, empty_multibyte_string; |
| 3283 | extern Lisp_Object Qfile_name_handler_alist; | ||
| 3256 | EXFUN (Fkill_emacs, 1) NO_RETURN; | 3284 | EXFUN (Fkill_emacs, 1) NO_RETURN; |
| 3257 | #if HAVE_SETLOCALE | 3285 | #if HAVE_SETLOCALE |
| 3258 | void fixup_locale (void); | 3286 | void fixup_locale (void); |
| @@ -3359,6 +3387,9 @@ extern Lisp_Object Vundo_outer_limit; | |||
| 3359 | /* Defined in textprop.c */ | 3387 | /* Defined in textprop.c */ |
| 3360 | extern Lisp_Object Qfont, Qmouse_face; | 3388 | extern Lisp_Object Qfont, Qmouse_face; |
| 3361 | extern Lisp_Object Qinsert_in_front_hooks, Qinsert_behind_hooks; | 3389 | extern Lisp_Object Qinsert_in_front_hooks, Qinsert_behind_hooks; |
| 3390 | extern Lisp_Object Qfront_sticky, Qrear_nonsticky; | ||
| 3391 | extern Lisp_Object Qminibuffer_prompt; | ||
| 3392 | |||
| 3362 | EXFUN (Fnext_single_property_change, 4); | 3393 | EXFUN (Fnext_single_property_change, 4); |
| 3363 | EXFUN (Fnext_single_char_property_change, 4); | 3394 | EXFUN (Fnext_single_char_property_change, 4); |
| 3364 | EXFUN (Fprevious_single_property_change, 4); | 3395 | EXFUN (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 */ |
| 3458 | extern Lisp_Object Vtemporary_file_directory; | ||
| 3427 | EXFUN (Funlock_buffer, 0); | 3459 | EXFUN (Funlock_buffer, 0); |
| 3428 | EXFUN (Ffile_locked_p, 1); | 3460 | EXFUN (Ffile_locked_p, 1); |
| 3429 | extern void unlock_all_files (void); | 3461 | extern 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 */ |
| 3488 | extern int *char_ins_del_vector; | ||
| 3456 | extern void syms_of_term (void); | 3489 | extern void syms_of_term (void); |
| 3457 | extern void fatal (const char *msgid, ...) NO_RETURN; | 3490 | extern 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 */ |
| 3514 | extern Lisp_Object Qface; | ||
| 3481 | extern Lisp_Object Qnormal; | 3515 | extern Lisp_Object Qnormal; |
| 3482 | extern Lisp_Object QCfamily, QCweight, QCslant, QCwidth; | 3516 | extern Lisp_Object QCfamily, QCweight, QCslant, QCwidth; |
| 3483 | extern Lisp_Object QCheight, QCsize, QCname, QCwidth, QCforeground, QCbackground; | 3517 | extern 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 | ||
| 52 | Lisp_Object executing_kbd_macro; | 52 | Lisp_Object executing_kbd_macro; |
| 53 | 53 | ||
| 54 | extern Lisp_Object real_this_command; | ||
| 55 | |||
| 56 | Lisp_Object Fexecute_kbd_macro (Lisp_Object macro, Lisp_Object count, Lisp_Object loopfunc); | 54 | Lisp_Object Fexecute_kbd_macro (Lisp_Object macro, Lisp_Object count, Lisp_Object loopfunc); |
| 57 | 55 | ||
| 58 | DEFUN ("start-kbd-macro", Fstart_kbd_macro, Sstart_kbd_macro, 1, 2, "P", | 56 | DEFUN ("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 | ||
| 144 | Lisp_Object Qread_expression_history; | 144 | Lisp_Object Qread_expression_history; |
| 145 | 145 | ||
| 146 | extern Lisp_Object Voverriding_local_map; | ||
| 147 | |||
| 148 | extern 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 | ||
| 167 | extern int noninteractive_need_newline; | 167 | extern int noninteractive_need_newline; |
| 168 | 168 | ||
| 169 | extern int minibuffer_auto_raise; | ||
| 170 | |||
| 171 | void print_interval (INTERVAL interval, Lisp_Object printcharfun); | 169 | void 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); | |||
| 276 | extern int interrupt_input; | 276 | extern int interrupt_input; |
| 277 | extern int command_loop_level; | 277 | extern int command_loop_level; |
| 278 | 278 | ||
| 279 | extern int minibuffer_auto_raise; | ||
| 280 | extern Lisp_Object Vminibuffer_list; | 279 | extern Lisp_Object Vminibuffer_list; |
| 281 | 280 | ||
| 282 | extern Lisp_Object Qface; | 281 | extern Lisp_Object Qface; |
| 283 | extern Lisp_Object Qmode_line, Qmode_line_inactive, Qheader_line; | 282 | extern Lisp_Object Qmode_line, Qmode_line_inactive, Qheader_line; |
| 284 | 283 | ||
| 285 | extern Lisp_Object Voverriding_local_map; | ||
| 286 | extern Lisp_Object Voverriding_local_map_menu_flag; | ||
| 287 | extern Lisp_Object Qmenu_item; | ||
| 288 | extern Lisp_Object Qwhen; | 284 | extern Lisp_Object Qwhen; |
| 289 | extern Lisp_Object Qhelp_echo; | 285 | extern Lisp_Object Qhelp_echo; |
| 290 | extern Lisp_Object Qbefore_string, Qafter_string; | 286 | extern 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 | ||
| 381 | Lisp_Object Qdisplay; | 377 | Lisp_Object Qdisplay; |
| 382 | extern 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) | |||
| 4873 | static void | 4867 | static void |
| 4874 | load_overlay_strings (struct it *it, int charpos) | 4868 | load_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 | ||
| 1904 | char xic_defaut_fontset[] = "-*-*-*-r-normal--14-*-*-*-*-*-*-*"; | 1904 | const 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. */ |
| 1908 | char * | 1908 | char * |
| 1909 | xic_create_fontsetname (char *base_fontname, int motif) | 1909 | xic_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 | ||
| 114 | extern Lisp_Object QCtoggle, QCradio; | 114 | extern Lisp_Object QCtoggle, QCradio; |
| 115 | 115 | ||
| 116 | extern Lisp_Object Voverriding_local_map; | ||
| 117 | extern Lisp_Object Voverriding_local_map_menu_flag; | ||
| 118 | |||
| 119 | extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | 116 | extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; |
| 120 | 117 | ||
| 121 | extern Lisp_Object Qmenu_bar_update_hook; | 118 | extern Lisp_Object Qmenu_bar_update_hook; |
| @@ -2209,7 +2206,6 @@ static struct frame *menu_help_frame; | |||
| 2209 | static void | 2206 | static void |
| 2210 | menu_help_callback (char *help_string, int pane, int item) | 2207 | menu_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 | |||
| 50 | extern 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 | ||
| 54 | static struct input_event emacs_event; | 50 | static 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); | |||
| 933 | EXFUN (Fx_display_color_p, 1); | 933 | EXFUN (Fx_display_color_p, 1); |
| 934 | EXFUN (Fx_display_grayscale_p, 1); | 934 | EXFUN (Fx_display_grayscale_p, 1); |
| 935 | extern void x_free_gcs (struct frame *); | 935 | extern void x_free_gcs (struct frame *); |
| 936 | extern int gray_bitmap_width, gray_bitmap_height; | ||
| 937 | extern 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 *); | |||
| 1053 | extern int x_defined_color (struct frame *, const char *, XColor *, int); | 1055 | extern int x_defined_color (struct frame *, const char *, XColor *, int); |
| 1054 | #ifdef HAVE_X_I18N | 1056 | #ifdef HAVE_X_I18N |
| 1055 | extern void free_frame_xic (struct frame *); | 1057 | extern void free_frame_xic (struct frame *); |
| 1058 | extern char * xic_create_fontsetname (const char *base_fontname, int motif); | ||
| 1056 | #endif | 1059 | #endif |
| 1057 | extern void x_set_tool_bar_lines (struct frame *, Lisp_Object, Lisp_Object); | 1060 | extern void x_set_tool_bar_lines (struct frame *, Lisp_Object, Lisp_Object); |
| 1058 | 1061 | ||