diff options
| author | Andreas Schwab | 2010-12-27 18:29:38 +0100 |
|---|---|---|
| committer | Andreas Schwab | 2010-12-27 18:29:38 +0100 |
| commit | 2f7c71a117244e1967009e8a4a0c82cd7388b470 (patch) | |
| tree | 476a0f8e86b99e7feb2f6dce1807c00de350a95b /src | |
| parent | c4b607ede11227b48de24b861f728d8fd20e6753 (diff) | |
| download | emacs-2f7c71a117244e1967009e8a4a0c82cd7388b470.tar.gz emacs-2f7c71a117244e1967009e8a4a0c82cd7388b470.zip | |
Remove unused declarations
* src/buffer.c: Remove unused declarations.
* src/buffer.h: Likewise.
* src/charset.h: Likewise.
* src/composite.h: Likewise.
* src/dispextern.h: Likewise.
* src/dispnew.c: Likewise.
* src/font.h: Likewise.
* src/fontset.c: Likewise.
* src/fontset.h: Likewise.
* src/intervals.h: Likewise.
* src/keymap.h: Likewise.
* src/lisp.h: Likewise.
* src/syntax.c: Likewise.
* src/syntax.h: Likewise.
* src/termhooks.h: Likewise.
* src/window.h: Likewise.
* src/xsettings.h: Likewise.
* src/xterm.c: Likewise.
* src/xterm.h: Likewise.
* src/chartab.c (sub_char_table_ref): Make static.
* src/dispnew.c (line_hash_code, required_matrix_height)
(required_matrix_width): Likewise.
* src/eval.c (interactive_p, apply_lambda): Likewise.
* src/fns.c (string_make_multibyte, copy_hash_table, hash_clear):
Likewise.
* src/font.c (QCadstyle, QCregistry, font_make_spec)
(font_parse_fcname, font_encode_char, font_at): Likewise.
* src/frame.c (x_frame_get_arg): Likewise.
* src/keymap.c (get_keyelt): Likewise.
* src/lread.c (read_filtered_event): Likewise.
* src/print.c (write_string_1): Likewise.
* src/window.c (delete_window, window_height, window_width)
(foreach_window): Likewise.
* src/xrdb.c (x_get_customization_string, x_get_resource): Likewise.
* src/xterm.c (x_scroll_bar_clear, xembed_set_info)
(xembed_send_message): Likewise.
* src/eval.c (run_hook_list_with_args): Delete.
* src/font.c (font_unparse_gtkname, font_update_lface): Likewise.
* src/terminal.c (get_terminal_param): Likewise.
* src/xterm.c (x_alloc_lighter_color_for_widget): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 43 | ||||
| -rw-r--r-- | src/buffer.c | 3 | ||||
| -rw-r--r-- | src/buffer.h | 3 | ||||
| -rw-r--r-- | src/charset.h | 2 | ||||
| -rw-r--r-- | src/chartab.c | 2 | ||||
| -rw-r--r-- | src/composite.h | 2 | ||||
| -rw-r--r-- | src/dispextern.h | 8 | ||||
| -rw-r--r-- | src/dispnew.c | 14 | ||||
| -rw-r--r-- | src/eval.c | 53 | ||||
| -rw-r--r-- | src/fns.c | 6 | ||||
| -rw-r--r-- | src/font.c | 143 | ||||
| -rw-r--r-- | src/font.h | 13 | ||||
| -rw-r--r-- | src/fontset.c | 4 | ||||
| -rw-r--r-- | src/fontset.h | 3 | ||||
| -rw-r--r-- | src/frame.c | 2 | ||||
| -rw-r--r-- | src/intervals.h | 3 | ||||
| -rw-r--r-- | src/keymap.c | 3 | ||||
| -rw-r--r-- | src/keymap.h | 1 | ||||
| -rw-r--r-- | src/lisp.h | 170 | ||||
| -rw-r--r-- | src/lread.c | 2 | ||||
| -rw-r--r-- | src/print.c | 6 | ||||
| -rw-r--r-- | src/syntax.c | 1 | ||||
| -rw-r--r-- | src/syntax.h | 1 | ||||
| -rw-r--r-- | src/termhooks.h | 1 | ||||
| -rw-r--r-- | src/terminal.c | 10 | ||||
| -rw-r--r-- | src/window.c | 16 | ||||
| -rw-r--r-- | src/window.h | 18 | ||||
| -rw-r--r-- | src/xrdb.c | 10 | ||||
| -rw-r--r-- | src/xsettings.h | 2 | ||||
| -rw-r--r-- | src/xterm.c | 63 | ||||
| -rw-r--r-- | src/xterm.h | 76 |
31 files changed, 143 insertions, 541 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fc66f43f5e5..7985f575cd6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,48 @@ | |||
| 1 | 2010-12-27 Andreas Schwab <schwab@linux-m68k.org> | 1 | 2010-12-27 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 2 | ||
| 3 | * buffer.c: Remove unused declarations. | ||
| 4 | * buffer.h: Likewise. | ||
| 5 | * charset.h: Likewise. | ||
| 6 | * composite.h: Likewise. | ||
| 7 | * dispextern.h: Likewise. | ||
| 8 | * dispnew.c: Likewise. | ||
| 9 | * font.h: Likewise. | ||
| 10 | * fontset.c: Likewise. | ||
| 11 | * fontset.h: Likewise. | ||
| 12 | * intervals.h: Likewise. | ||
| 13 | * keymap.h: Likewise. | ||
| 14 | * lisp.h: Likewise. | ||
| 15 | * syntax.c: Likewise. | ||
| 16 | * syntax.h: Likewise. | ||
| 17 | * termhooks.h: Likewise. | ||
| 18 | * window.h: Likewise. | ||
| 19 | * xsettings.h: Likewise. | ||
| 20 | * xterm.c: Likewise. | ||
| 21 | * xterm.h: Likewise. | ||
| 22 | |||
| 23 | * chartab.c (sub_char_table_ref): Make static. | ||
| 24 | * dispnew.c (line_hash_code, required_matrix_height) | ||
| 25 | (required_matrix_width): Likewise. | ||
| 26 | * eval.c (interactive_p, apply_lambda): Likewise. | ||
| 27 | * fns.c (string_make_multibyte, copy_hash_table, hash_clear): | ||
| 28 | Likewise. | ||
| 29 | * font.c (QCadstyle, QCregistry, font_make_spec) | ||
| 30 | (font_parse_fcname, font_encode_char, font_at): Likewise. | ||
| 31 | * frame.c (x_frame_get_arg): Likewise. | ||
| 32 | * keymap.c (get_keyelt): Likewise. | ||
| 33 | * lread.c (read_filtered_event): Likewise. | ||
| 34 | * print.c (write_string_1): Likewise. | ||
| 35 | * window.c (delete_window, window_height, window_width) | ||
| 36 | (foreach_window): Likewise. | ||
| 37 | * xrdb.c (x_get_customization_string, x_get_resource): Likewise. | ||
| 38 | * xterm.c (x_scroll_bar_clear, xembed_set_info) | ||
| 39 | (xembed_send_message): Likewise. | ||
| 40 | |||
| 41 | * eval.c (run_hook_list_with_args): Delete. | ||
| 42 | * font.c (font_unparse_gtkname, font_update_lface): Likewise. | ||
| 43 | * terminal.c (get_terminal_param): Likewise. | ||
| 44 | * xterm.c (x_alloc_lighter_color_for_widget): Likewise. | ||
| 45 | |||
| 3 | * scroll.c: Fix comment. | 46 | * scroll.c: Fix comment. |
| 4 | 47 | ||
| 5 | * dispnew.c (add_window_display_history) | 48 | * dispnew.c (add_window_display_history) |
diff --git a/src/buffer.c b/src/buffer.c index 1351dac3cd7..9766c60da9e 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -105,7 +105,6 @@ static char buffer_permanent_local_flags[MAX_PER_BUFFER_VARS]; | |||
| 105 | 105 | ||
| 106 | int last_per_buffer_idx; | 106 | int last_per_buffer_idx; |
| 107 | 107 | ||
| 108 | EXFUN (Fset_buffer, 1); | ||
| 109 | static void call_overlay_mod_hooks (Lisp_Object list, Lisp_Object overlay, | 108 | static void call_overlay_mod_hooks (Lisp_Object list, Lisp_Object overlay, |
| 110 | int after, Lisp_Object arg1, | 109 | int after, Lisp_Object arg1, |
| 111 | Lisp_Object arg2, Lisp_Object arg3); | 110 | Lisp_Object arg2, Lisp_Object arg3); |
| @@ -3777,8 +3776,6 @@ modify_overlay (struct buffer *buf, EMACS_INT start, EMACS_INT end) | |||
| 3777 | } | 3776 | } |
| 3778 | 3777 | ||
| 3779 | 3778 | ||
| 3780 | Lisp_Object Fdelete_overlay (Lisp_Object overlay); | ||
| 3781 | |||
| 3782 | static struct Lisp_Overlay * | 3779 | static struct Lisp_Overlay * |
| 3783 | unchain_overlay (struct Lisp_Overlay *list, struct Lisp_Overlay *overlay) | 3780 | unchain_overlay (struct Lisp_Overlay *list, struct Lisp_Overlay *overlay) |
| 3784 | { | 3781 | { |
diff --git a/src/buffer.h b/src/buffer.h index 79acd16b6fd..6ab10c78f8d 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -895,14 +895,11 @@ extern void mmap_set_vars (int); | |||
| 895 | } \ | 895 | } \ |
| 896 | } while (0) | 896 | } while (0) |
| 897 | 897 | ||
| 898 | EXFUN (Fbuffer_list, 1); | ||
| 899 | EXFUN (Fbuffer_live_p, 1); | 898 | EXFUN (Fbuffer_live_p, 1); |
| 900 | EXFUN (Fbuffer_name, 1); | 899 | EXFUN (Fbuffer_name, 1); |
| 901 | EXFUN (Fget_file_buffer, 1); | ||
| 902 | EXFUN (Fnext_overlay_change, 1); | 900 | EXFUN (Fnext_overlay_change, 1); |
| 903 | EXFUN (Fdelete_overlay, 1); | 901 | EXFUN (Fdelete_overlay, 1); |
| 904 | EXFUN (Fbuffer_local_value, 2); | 902 | EXFUN (Fbuffer_local_value, 2); |
| 905 | EXFUN (Fgenerate_new_buffer_name, 2); | ||
| 906 | 903 | ||
| 907 | /* Functions to call before and after each text change. */ | 904 | /* Functions to call before and after each text change. */ |
| 908 | extern Lisp_Object Vbefore_change_functions; | 905 | extern Lisp_Object Vbefore_change_functions; |
diff --git a/src/charset.h b/src/charset.h index 6e6422f3c73..99e15209c14 100644 --- a/src/charset.h +++ b/src/charset.h | |||
| @@ -544,8 +544,6 @@ extern void map_charset_chars (void (*) (Lisp_Object, Lisp_Object), | |||
| 544 | Lisp_Object, Lisp_Object, | 544 | Lisp_Object, Lisp_Object, |
| 545 | struct charset *, unsigned, unsigned); | 545 | struct charset *, unsigned, unsigned); |
| 546 | 546 | ||
| 547 | EXFUN (Funify_charset, 3); | ||
| 548 | |||
| 549 | #endif /* EMACS_CHARSET_H */ | 547 | #endif /* EMACS_CHARSET_H */ |
| 550 | 548 | ||
| 551 | /* arch-tag: 3b96db55-4961-481d-ac3e-219f46a2b3aa | 549 | /* arch-tag: 3b96db55-4961-481d-ac3e-219f46a2b3aa |
diff --git a/src/chartab.c b/src/chartab.c index fddd8a3d406..3c956f6cf9e 100644 --- a/src/chartab.c +++ b/src/chartab.c | |||
| @@ -168,7 +168,7 @@ copy_char_table (Lisp_Object table) | |||
| 168 | return copy; | 168 | return copy; |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | Lisp_Object | 171 | static Lisp_Object |
| 172 | sub_char_table_ref (Lisp_Object table, int c) | 172 | sub_char_table_ref (Lisp_Object table, int c) |
| 173 | { | 173 | { |
| 174 | struct Lisp_Sub_Char_Table *tbl = XSUB_CHAR_TABLE (table); | 174 | struct Lisp_Sub_Char_Table *tbl = XSUB_CHAR_TABLE (table); |
diff --git a/src/composite.h b/src/composite.h index 5c8ade39596..f3d001dc2fa 100644 --- a/src/composite.h +++ b/src/composite.h | |||
| @@ -322,8 +322,6 @@ extern int composition_update_it (struct composition_it *, | |||
| 322 | 322 | ||
| 323 | extern EMACS_INT composition_adjust_point (EMACS_INT, EMACS_INT); | 323 | extern EMACS_INT composition_adjust_point (EMACS_INT, EMACS_INT); |
| 324 | 324 | ||
| 325 | EXFUN (Fcompose_region_internal, 4); | ||
| 326 | EXFUN (Fcompose_string_internal, 5); | ||
| 327 | EXFUN (Fcomposition_get_gstring, 4); | 325 | EXFUN (Fcomposition_get_gstring, 4); |
| 328 | 326 | ||
| 329 | #endif /* not EMACS_COMPOSITE_H */ | 327 | #endif /* not EMACS_COMPOSITE_H */ |
diff --git a/src/dispextern.h b/src/dispextern.h index 2839ee78817..bb81136dc16 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3231,7 +3231,6 @@ void x_implicitly_set_name (struct frame *, Lisp_Object, Lisp_Object); | |||
| 3231 | 3231 | ||
| 3232 | extern Lisp_Object tip_frame; | 3232 | extern Lisp_Object tip_frame; |
| 3233 | extern Window tip_window; | 3233 | extern Window tip_window; |
| 3234 | EXFUN (Fx_show_tip, 6); | ||
| 3235 | EXFUN (Fx_hide_tip, 0); | 3234 | EXFUN (Fx_hide_tip, 0); |
| 3236 | extern void start_hourglass (void); | 3235 | extern void start_hourglass (void); |
| 3237 | extern void cancel_hourglass (void); | 3236 | extern void cancel_hourglass (void); |
| @@ -3275,8 +3274,6 @@ int popup_activated (void); | |||
| 3275 | /* Defined in dispnew.c */ | 3274 | /* Defined in dispnew.c */ |
| 3276 | 3275 | ||
| 3277 | extern int inverse_video; | 3276 | extern int inverse_video; |
| 3278 | extern int required_matrix_width (struct window *); | ||
| 3279 | extern int required_matrix_height (struct window *); | ||
| 3280 | extern Lisp_Object buffer_posn_from_coords (struct window *, | 3277 | extern Lisp_Object buffer_posn_from_coords (struct window *, |
| 3281 | int *, int *, | 3278 | int *, int *, |
| 3282 | struct display_pos *, | 3279 | struct display_pos *, |
| @@ -3294,7 +3291,6 @@ extern void redraw_frame (struct frame *); | |||
| 3294 | extern void redraw_garbaged_frames (void); | 3291 | extern void redraw_garbaged_frames (void); |
| 3295 | extern void cancel_line (int, struct frame *); | 3292 | extern void cancel_line (int, struct frame *); |
| 3296 | extern void init_desired_glyphs (struct frame *); | 3293 | extern void init_desired_glyphs (struct frame *); |
| 3297 | extern int scroll_frame_lines (struct frame *, int, int, int, int); | ||
| 3298 | extern int update_frame (struct frame *, int, int); | 3294 | extern int update_frame (struct frame *, int, int); |
| 3299 | extern int scrolling (struct frame *); | 3295 | extern int scrolling (struct frame *); |
| 3300 | extern void bitch_at_user (void); | 3296 | extern void bitch_at_user (void); |
| @@ -3316,7 +3312,6 @@ void increment_row_positions (struct glyph_row *, EMACS_INT, EMACS_INT); | |||
| 3316 | void enable_glyph_matrix_rows (struct glyph_matrix *, int, int, int); | 3312 | void enable_glyph_matrix_rows (struct glyph_matrix *, int, int, int); |
| 3317 | void clear_glyph_row (struct glyph_row *); | 3313 | void clear_glyph_row (struct glyph_row *); |
| 3318 | void prepare_desired_row (struct glyph_row *); | 3314 | void prepare_desired_row (struct glyph_row *); |
| 3319 | int line_hash_code (struct glyph_row *); | ||
| 3320 | void set_window_update_flags (struct window *, int); | 3315 | void set_window_update_flags (struct window *, int); |
| 3321 | void update_single_window (struct window *, int); | 3316 | void update_single_window (struct window *, int); |
| 3322 | void do_pending_window_change (int); | 3317 | void do_pending_window_change (int); |
| @@ -3393,9 +3388,6 @@ enum resource_types | |||
| 3393 | extern Lisp_Object x_get_arg (Display_Info *, Lisp_Object, | 3388 | extern Lisp_Object x_get_arg (Display_Info *, Lisp_Object, |
| 3394 | Lisp_Object, const char *, const char *class, | 3389 | Lisp_Object, const char *, const char *class, |
| 3395 | enum resource_types); | 3390 | enum resource_types); |
| 3396 | extern Lisp_Object x_frame_get_arg (struct frame *, Lisp_Object, | ||
| 3397 | Lisp_Object, const char *, const char *, | ||
| 3398 | enum resource_types); | ||
| 3399 | extern Lisp_Object x_frame_get_and_record_arg (struct frame *, Lisp_Object, | 3391 | extern Lisp_Object x_frame_get_and_record_arg (struct frame *, Lisp_Object, |
| 3400 | Lisp_Object, | 3392 | Lisp_Object, |
| 3401 | const char *, const char *, | 3393 | const char *, const char *, |
diff --git a/src/dispnew.c b/src/dispnew.c index 3fff902e36d..254ee7a2404 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -121,6 +121,8 @@ static unsigned line_draw_cost (struct glyph_matrix *, int); | |||
| 121 | static void update_frame_line (struct frame *, int); | 121 | static void update_frame_line (struct frame *, int); |
| 122 | static struct dim allocate_matrices_for_frame_redisplay | 122 | static struct dim allocate_matrices_for_frame_redisplay |
| 123 | (Lisp_Object, int, int, int, int *); | 123 | (Lisp_Object, int, int, int, int *); |
| 124 | static int required_matrix_height (struct window *); | ||
| 125 | static int required_matrix_width (struct window *); | ||
| 124 | static void allocate_matrices_for_window_redisplay (struct window *); | 126 | static void allocate_matrices_for_window_redisplay (struct window *); |
| 125 | static int realloc_glyph_pool (struct glyph_pool *, struct dim); | 127 | static int realloc_glyph_pool (struct glyph_pool *, struct dim); |
| 126 | static void adjust_frame_glyphs (struct frame *); | 128 | static void adjust_frame_glyphs (struct frame *); |
| @@ -167,14 +169,8 @@ static int update_window_tree (struct window *, int); | |||
| 167 | static int update_window (struct window *, int); | 169 | static int update_window (struct window *, int); |
| 168 | static int update_frame_1 (struct frame *, int, int); | 170 | static int update_frame_1 (struct frame *, int, int); |
| 169 | static void set_window_cursor_after_update (struct window *); | 171 | static void set_window_cursor_after_update (struct window *); |
| 170 | static int row_equal_p (struct window *, struct glyph_row *, | ||
| 171 | struct glyph_row *, int); | ||
| 172 | static void adjust_frame_glyphs_for_window_redisplay (struct frame *); | 172 | static void adjust_frame_glyphs_for_window_redisplay (struct frame *); |
| 173 | static void adjust_frame_glyphs_for_frame_redisplay (struct frame *); | 173 | static void adjust_frame_glyphs_for_frame_redisplay (struct frame *); |
| 174 | static void reverse_rows (struct glyph_matrix *, int, int); | ||
| 175 | static int margin_glyphs_to_reserve (struct window *, int, Lisp_Object); | ||
| 176 | static void sync_window_with_frame_matrix_rows (struct window *); | ||
| 177 | struct window *frame_row_to_window (struct window *, int); | ||
| 178 | 174 | ||
| 179 | 175 | ||
| 180 | /* Non-zero means don't pause redisplay for pending input. (This is | 176 | /* Non-zero means don't pause redisplay for pending input. (This is |
| @@ -1296,7 +1292,7 @@ prepare_desired_row (struct glyph_row *row) | |||
| 1296 | 1292 | ||
| 1297 | /* Return a hash code for glyph row ROW. */ | 1293 | /* Return a hash code for glyph row ROW. */ |
| 1298 | 1294 | ||
| 1299 | int | 1295 | static int |
| 1300 | line_hash_code (struct glyph_row *row) | 1296 | line_hash_code (struct glyph_row *row) |
| 1301 | { | 1297 | { |
| 1302 | int hash = 0; | 1298 | int hash = 0; |
| @@ -1882,7 +1878,7 @@ allocate_matrices_for_frame_redisplay (Lisp_Object window, int x, int y, | |||
| 1882 | 1878 | ||
| 1883 | /* Return the required height of glyph matrices for window W. */ | 1879 | /* Return the required height of glyph matrices for window W. */ |
| 1884 | 1880 | ||
| 1885 | int | 1881 | static int |
| 1886 | required_matrix_height (struct window *w) | 1882 | required_matrix_height (struct window *w) |
| 1887 | { | 1883 | { |
| 1888 | #ifdef HAVE_WINDOW_SYSTEM | 1884 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -1908,7 +1904,7 @@ required_matrix_height (struct window *w) | |||
| 1908 | 1904 | ||
| 1909 | /* Return the required width of glyph matrices for window W. */ | 1905 | /* Return the required width of glyph matrices for window W. */ |
| 1910 | 1906 | ||
| 1911 | int | 1907 | static int |
| 1912 | required_matrix_width (struct window *w) | 1908 | required_matrix_width (struct window *w) |
| 1913 | { | 1909 | { |
| 1914 | #ifdef HAVE_WINDOW_SYSTEM | 1910 | #ifdef HAVE_WINDOW_SYSTEM |
diff --git a/src/eval.c b/src/eval.c index f8874ddd559..947e28a2e9c 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -167,6 +167,8 @@ Lisp_Object Vmacro_declaration_function; | |||
| 167 | 167 | ||
| 168 | static Lisp_Object funcall_lambda (Lisp_Object, int, Lisp_Object*); | 168 | static Lisp_Object funcall_lambda (Lisp_Object, int, Lisp_Object*); |
| 169 | static void unwind_to_catch (struct catchtag *, Lisp_Object) NO_RETURN; | 169 | static void unwind_to_catch (struct catchtag *, Lisp_Object) NO_RETURN; |
| 170 | static int interactive_p (int); | ||
| 171 | static Lisp_Object apply_lambda (Lisp_Object, Lisp_Object, int); | ||
| 170 | 172 | ||
| 171 | void | 173 | void |
| 172 | init_eval_once (void) | 174 | init_eval_once (void) |
| @@ -581,7 +583,7 @@ way to do this), or via (not (or executing-kbd-macro noninteractive)). */) | |||
| 581 | EXCLUDE_SUBRS_P non-zero means always return 0 if the function | 583 | EXCLUDE_SUBRS_P non-zero means always return 0 if the function |
| 582 | called is a built-in. */ | 584 | called is a built-in. */ |
| 583 | 585 | ||
| 584 | int | 586 | static int |
| 585 | interactive_p (int exclude_subrs_p) | 587 | interactive_p (int exclude_subrs_p) |
| 586 | { | 588 | { |
| 587 | struct backtrace *btp; | 589 | struct backtrace *btp; |
| @@ -2685,53 +2687,6 @@ run_hook_with_args (int nargs, Lisp_Object *args, enum run_hooks_condition cond) | |||
| 2685 | } | 2687 | } |
| 2686 | } | 2688 | } |
| 2687 | 2689 | ||
| 2688 | /* Run a hook symbol ARGS[0], but use FUNLIST instead of the actual | ||
| 2689 | present value of that symbol. | ||
| 2690 | Call each element of FUNLIST, | ||
| 2691 | passing each of them the rest of ARGS. | ||
| 2692 | The caller (or its caller, etc) must gcpro all of ARGS, | ||
| 2693 | except that it isn't necessary to gcpro ARGS[0]. */ | ||
| 2694 | |||
| 2695 | Lisp_Object | ||
| 2696 | run_hook_list_with_args (Lisp_Object funlist, int nargs, Lisp_Object *args) | ||
| 2697 | { | ||
| 2698 | Lisp_Object sym; | ||
| 2699 | Lisp_Object val; | ||
| 2700 | Lisp_Object globals; | ||
| 2701 | struct gcpro gcpro1, gcpro2, gcpro3; | ||
| 2702 | |||
| 2703 | sym = args[0]; | ||
| 2704 | globals = Qnil; | ||
| 2705 | GCPRO3 (sym, val, globals); | ||
| 2706 | |||
| 2707 | for (val = funlist; CONSP (val); val = XCDR (val)) | ||
| 2708 | { | ||
| 2709 | if (EQ (XCAR (val), Qt)) | ||
| 2710 | { | ||
| 2711 | /* t indicates this hook has a local binding; | ||
| 2712 | it means to run the global binding too. */ | ||
| 2713 | |||
| 2714 | for (globals = Fdefault_value (sym); | ||
| 2715 | CONSP (globals); | ||
| 2716 | globals = XCDR (globals)) | ||
| 2717 | { | ||
| 2718 | args[0] = XCAR (globals); | ||
| 2719 | /* In a global value, t should not occur. If it does, we | ||
| 2720 | must ignore it to avoid an endless loop. */ | ||
| 2721 | if (!EQ (args[0], Qt)) | ||
| 2722 | Ffuncall (nargs, args); | ||
| 2723 | } | ||
| 2724 | } | ||
| 2725 | else | ||
| 2726 | { | ||
| 2727 | args[0] = XCAR (val); | ||
| 2728 | Ffuncall (nargs, args); | ||
| 2729 | } | ||
| 2730 | } | ||
| 2731 | UNGCPRO; | ||
| 2732 | return Qnil; | ||
| 2733 | } | ||
| 2734 | |||
| 2735 | /* Run the hook HOOK, giving each function the two args ARG1 and ARG2. */ | 2690 | /* Run the hook HOOK, giving each function the two args ARG1 and ARG2. */ |
| 2736 | 2691 | ||
| 2737 | void | 2692 | void |
| @@ -3063,7 +3018,7 @@ usage: (funcall FUNCTION &rest ARGUMENTS) */) | |||
| 3063 | return val; | 3018 | return val; |
| 3064 | } | 3019 | } |
| 3065 | 3020 | ||
| 3066 | Lisp_Object | 3021 | static Lisp_Object |
| 3067 | apply_lambda (Lisp_Object fun, Lisp_Object args, int eval_flag) | 3022 | apply_lambda (Lisp_Object fun, Lisp_Object args, int eval_flag) |
| 3068 | { | 3023 | { |
| 3069 | Lisp_Object args_left; | 3024 | Lisp_Object args_left; |
| @@ -872,7 +872,7 @@ string_byte_to_char (Lisp_Object string, EMACS_INT byte_index) | |||
| 872 | 872 | ||
| 873 | /* Convert STRING to a multibyte string. */ | 873 | /* Convert STRING to a multibyte string. */ |
| 874 | 874 | ||
| 875 | Lisp_Object | 875 | static Lisp_Object |
| 876 | string_make_multibyte (Lisp_Object string) | 876 | string_make_multibyte (Lisp_Object string) |
| 877 | { | 877 | { |
| 878 | unsigned char *buf; | 878 | unsigned char *buf; |
| @@ -3701,7 +3701,7 @@ make_hash_table (Lisp_Object test, Lisp_Object size, Lisp_Object rehash_size, | |||
| 3701 | /* Return a copy of hash table H1. Keys and values are not copied, | 3701 | /* Return a copy of hash table H1. Keys and values are not copied, |
| 3702 | only the table itself is. */ | 3702 | only the table itself is. */ |
| 3703 | 3703 | ||
| 3704 | Lisp_Object | 3704 | static Lisp_Object |
| 3705 | copy_hash_table (struct Lisp_Hash_Table *h1) | 3705 | copy_hash_table (struct Lisp_Hash_Table *h1) |
| 3706 | { | 3706 | { |
| 3707 | Lisp_Object table; | 3707 | Lisp_Object table; |
| @@ -3909,7 +3909,7 @@ hash_remove_from_table (struct Lisp_Hash_Table *h, Lisp_Object key) | |||
| 3909 | 3909 | ||
| 3910 | /* Clear hash table H. */ | 3910 | /* Clear hash table H. */ |
| 3911 | 3911 | ||
| 3912 | void | 3912 | static void |
| 3913 | hash_clear (struct Lisp_Hash_Table *h) | 3913 | hash_clear (struct Lisp_Hash_Table *h) |
| 3914 | { | 3914 | { |
| 3915 | if (h->count > 0) | 3915 | if (h->count > 0) |
diff --git a/src/font.c b/src/font.c index ae933df75c8..948df3f2244 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -123,7 +123,8 @@ static const struct table_entry width_table[] = | |||
| 123 | { 200, { "ultra-expanded", "ultraexpanded", "wide" }} | 123 | { 200, { "ultra-expanded", "ultraexpanded", "wide" }} |
| 124 | }; | 124 | }; |
| 125 | 125 | ||
| 126 | Lisp_Object QCfoundry, QCadstyle, QCregistry; | 126 | Lisp_Object QCfoundry; |
| 127 | static Lisp_Object QCadstyle, QCregistry; | ||
| 127 | /* Symbols representing keys of font extra info. */ | 128 | /* Symbols representing keys of font extra info. */ |
| 128 | Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript, QCavgwidth; | 129 | Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript, QCavgwidth; |
| 129 | Lisp_Object QCantialias, QCfont_entity, QCfc_unknown_spec; | 130 | Lisp_Object QCantialias, QCfont_entity, QCfc_unknown_spec; |
| @@ -164,7 +165,7 @@ static struct font_driver_list *font_driver_list; | |||
| 164 | 165 | ||
| 165 | /* Creaters of font-related Lisp object. */ | 166 | /* Creaters of font-related Lisp object. */ |
| 166 | 167 | ||
| 167 | Lisp_Object | 168 | static Lisp_Object |
| 168 | font_make_spec (void) | 169 | font_make_spec (void) |
| 169 | { | 170 | { |
| 170 | Lisp_Object font_spec; | 171 | Lisp_Object font_spec; |
| @@ -220,6 +221,7 @@ static int font_pixel_size (FRAME_PTR f, Lisp_Object); | |||
| 220 | static Lisp_Object font_open_entity (FRAME_PTR, Lisp_Object, int); | 221 | static Lisp_Object font_open_entity (FRAME_PTR, Lisp_Object, int); |
| 221 | static Lisp_Object font_matching_entity (FRAME_PTR, Lisp_Object *, | 222 | static Lisp_Object font_matching_entity (FRAME_PTR, Lisp_Object *, |
| 222 | Lisp_Object); | 223 | Lisp_Object); |
| 224 | static unsigned font_encode_char (Lisp_Object, int); | ||
| 223 | 225 | ||
| 224 | /* Number of registered font drivers. */ | 226 | /* Number of registered font drivers. */ |
| 225 | static int num_font_drivers; | 227 | static int num_font_drivers; |
| @@ -1305,7 +1307,7 @@ font_unparse_xlfd (Lisp_Object font, int pixel_size, char *name, int nbytes) | |||
| 1305 | 1307 | ||
| 1306 | This function tries to guess which format it is. */ | 1308 | This function tries to guess which format it is. */ |
| 1307 | 1309 | ||
| 1308 | int | 1310 | static int |
| 1309 | font_parse_fcname (char *name, Lisp_Object font) | 1311 | font_parse_fcname (char *name, Lisp_Object font) |
| 1310 | { | 1312 | { |
| 1311 | char *p, *q; | 1313 | char *p, *q; |
| @@ -1676,90 +1678,6 @@ font_unparse_fcname (Lisp_Object font, int pixel_size, char *name, int nbytes) | |||
| 1676 | return (p - name); | 1678 | return (p - name); |
| 1677 | } | 1679 | } |
| 1678 | 1680 | ||
| 1679 | /* Store GTK-style font name of FONT (font-spec or font-entity) in | ||
| 1680 | NAME (NBYTES length), and return the name length. F is the frame | ||
| 1681 | on which the font is displayed; it is used to calculate the point | ||
| 1682 | size. */ | ||
| 1683 | |||
| 1684 | int | ||
| 1685 | font_unparse_gtkname (Lisp_Object font, struct frame *f, char *name, int nbytes) | ||
| 1686 | { | ||
| 1687 | char *p; | ||
| 1688 | int len = 1; | ||
| 1689 | Lisp_Object family, weight, slant, size; | ||
| 1690 | int point_size = -1; | ||
| 1691 | |||
| 1692 | family = AREF (font, FONT_FAMILY_INDEX); | ||
| 1693 | if (! NILP (family)) | ||
| 1694 | { | ||
| 1695 | if (! SYMBOLP (family)) | ||
| 1696 | return -1; | ||
| 1697 | family = SYMBOL_NAME (family); | ||
| 1698 | len += SBYTES (family); | ||
| 1699 | } | ||
| 1700 | |||
| 1701 | weight = font_style_symbolic (font, FONT_WEIGHT_INDEX, 0); | ||
| 1702 | if (EQ (weight, Qnormal)) | ||
| 1703 | weight = Qnil; | ||
| 1704 | else if (! NILP (weight)) | ||
| 1705 | { | ||
| 1706 | weight = SYMBOL_NAME (weight); | ||
| 1707 | len += SBYTES (weight); | ||
| 1708 | } | ||
| 1709 | |||
| 1710 | slant = font_style_symbolic (font, FONT_SLANT_INDEX, 0); | ||
| 1711 | if (EQ (slant, Qnormal)) | ||
| 1712 | slant = Qnil; | ||
| 1713 | else if (! NILP (slant)) | ||
| 1714 | { | ||
| 1715 | slant = SYMBOL_NAME (slant); | ||
| 1716 | len += SBYTES (slant); | ||
| 1717 | } | ||
| 1718 | |||
| 1719 | size = AREF (font, FONT_SIZE_INDEX); | ||
| 1720 | /* Convert pixel size to point size. */ | ||
| 1721 | if (INTEGERP (size)) | ||
| 1722 | { | ||
| 1723 | Lisp_Object font_dpi = AREF (font, FONT_DPI_INDEX); | ||
| 1724 | int dpi = 75; | ||
| 1725 | if (INTEGERP (font_dpi)) | ||
| 1726 | dpi = XINT (font_dpi); | ||
| 1727 | else if (f) | ||
| 1728 | dpi = f->resy; | ||
| 1729 | point_size = PIXEL_TO_POINT (XINT (size), dpi); | ||
| 1730 | len += 11; | ||
| 1731 | } | ||
| 1732 | else if (FLOATP (size)) | ||
| 1733 | { | ||
| 1734 | point_size = (int) XFLOAT_DATA (size); | ||
| 1735 | len += 11; | ||
| 1736 | } | ||
| 1737 | |||
| 1738 | if (len > nbytes) | ||
| 1739 | return -1; | ||
| 1740 | |||
| 1741 | p = name + sprintf (name, "%s", SDATA (family)); | ||
| 1742 | |||
| 1743 | if (! NILP (weight)) | ||
| 1744 | { | ||
| 1745 | char *q = p; | ||
| 1746 | p += sprintf (p, " %s", SDATA (weight)); | ||
| 1747 | q[1] = toupper (q[1]); | ||
| 1748 | } | ||
| 1749 | |||
| 1750 | if (! NILP (slant)) | ||
| 1751 | { | ||
| 1752 | char *q = p; | ||
| 1753 | p += sprintf (p, " %s", SDATA (slant)); | ||
| 1754 | q[1] = toupper (q[1]); | ||
| 1755 | } | ||
| 1756 | |||
| 1757 | if (point_size > 0) | ||
| 1758 | p += sprintf (p, " %d", point_size); | ||
| 1759 | |||
| 1760 | return (p - name); | ||
| 1761 | } | ||
| 1762 | |||
| 1763 | /* Parse NAME (null terminated) and store information in FONT | 1681 | /* Parse NAME (null terminated) and store information in FONT |
| 1764 | (font-spec or font-entity). If NAME is successfully parsed, return | 1682 | (font-spec or font-entity). If NAME is successfully parsed, return |
| 1765 | 0. Otherwise return -1. */ | 1683 | 0. Otherwise return -1. */ |
| @@ -3039,7 +2957,7 @@ font_has_char (FRAME_PTR f, Lisp_Object font, int c) | |||
| 3039 | 2957 | ||
| 3040 | /* Return the glyph ID of FONT_OBJECT for character C. */ | 2958 | /* Return the glyph ID of FONT_OBJECT for character C. */ |
| 3041 | 2959 | ||
| 3042 | unsigned | 2960 | static unsigned |
| 3043 | font_encode_char (Lisp_Object font_object, int c) | 2961 | font_encode_char (Lisp_Object font_object, int c) |
| 3044 | { | 2962 | { |
| 3045 | struct font *font; | 2963 | struct font *font; |
| @@ -3144,50 +3062,6 @@ font_clear_prop (Lisp_Object *attrs, enum font_property_index prop) | |||
| 3144 | attrs[LFACE_FONT_INDEX] = font; | 3062 | attrs[LFACE_FONT_INDEX] = font; |
| 3145 | } | 3063 | } |
| 3146 | 3064 | ||
| 3147 | void | ||
| 3148 | font_update_lface (FRAME_PTR f, Lisp_Object *attrs) | ||
| 3149 | { | ||
| 3150 | Lisp_Object spec; | ||
| 3151 | |||
| 3152 | spec = attrs[LFACE_FONT_INDEX]; | ||
| 3153 | if (! FONT_SPEC_P (spec)) | ||
| 3154 | return; | ||
| 3155 | |||
| 3156 | if (! NILP (AREF (spec, FONT_FOUNDRY_INDEX))) | ||
| 3157 | attrs[LFACE_FOUNDRY_INDEX] = SYMBOL_NAME (AREF (spec, FONT_FOUNDRY_INDEX)); | ||
| 3158 | if (! NILP (AREF (spec, FONT_FAMILY_INDEX))) | ||
| 3159 | attrs[LFACE_FAMILY_INDEX] = SYMBOL_NAME (AREF (spec, FONT_FAMILY_INDEX)); | ||
| 3160 | if (! NILP (AREF (spec, FONT_WEIGHT_INDEX))) | ||
| 3161 | attrs[LFACE_WEIGHT_INDEX] = FONT_WEIGHT_FOR_FACE (spec); | ||
| 3162 | if (! NILP (AREF (spec, FONT_SLANT_INDEX))) | ||
| 3163 | attrs[LFACE_SLANT_INDEX] = FONT_SLANT_FOR_FACE (spec); | ||
| 3164 | if (! NILP (AREF (spec, FONT_WIDTH_INDEX))) | ||
| 3165 | attrs[LFACE_SWIDTH_INDEX] = FONT_WIDTH_FOR_FACE (spec); | ||
| 3166 | if (! NILP (AREF (spec, FONT_SIZE_INDEX))) | ||
| 3167 | { | ||
| 3168 | int point; | ||
| 3169 | |||
| 3170 | if (INTEGERP (AREF (spec, FONT_SIZE_INDEX))) | ||
| 3171 | { | ||
| 3172 | Lisp_Object val; | ||
| 3173 | int dpi = f->resy; | ||
| 3174 | |||
| 3175 | val = Ffont_get (spec, QCdpi); | ||
| 3176 | if (! NILP (val)) | ||
| 3177 | dpi = XINT (val); | ||
| 3178 | point = PIXEL_TO_POINT (XINT (AREF (spec, FONT_SIZE_INDEX)) * 10, | ||
| 3179 | dpi); | ||
| 3180 | attrs[LFACE_HEIGHT_INDEX] = make_number (point); | ||
| 3181 | } | ||
| 3182 | else if (FLOATP (AREF (spec, FONT_SIZE_INDEX))) | ||
| 3183 | { | ||
| 3184 | point = XFLOAT_DATA (AREF (spec, FONT_SIZE_INDEX)) * 10; | ||
| 3185 | attrs[LFACE_HEIGHT_INDEX] = make_number (point); | ||
| 3186 | } | ||
| 3187 | } | ||
| 3188 | } | ||
| 3189 | |||
| 3190 | |||
| 3191 | /* Selecte a font from ENTITIES (list of font-entity vectors) that | 3065 | /* Selecte a font from ENTITIES (list of font-entity vectors) that |
| 3192 | supports C and matches best with ATTRS and PIXEL_SIZE. */ | 3066 | supports C and matches best with ATTRS and PIXEL_SIZE. */ |
| 3193 | 3067 | ||
| @@ -3781,8 +3655,9 @@ font_filter_properties (Lisp_Object font, | |||
| 3781 | at index POS. If C is negative, get C from the current buffer or | 3655 | at index POS. If C is negative, get C from the current buffer or |
| 3782 | STRING. */ | 3656 | STRING. */ |
| 3783 | 3657 | ||
| 3784 | Lisp_Object | 3658 | static Lisp_Object |
| 3785 | font_at (int c, EMACS_INT pos, struct face *face, struct window *w, Lisp_Object string) | 3659 | font_at (int c, EMACS_INT pos, struct face *face, struct window *w, |
| 3660 | Lisp_Object string) | ||
| 3786 | { | 3661 | { |
| 3787 | FRAME_PTR f; | 3662 | FRAME_PTR f; |
| 3788 | int multibyte; | 3663 | int multibyte; |
diff --git a/src/font.h b/src/font.h index 940eb3d001d..0e2a28414d9 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -742,11 +742,8 @@ EXFUN (Fmerge_font_spec, 2); | |||
| 742 | EXFUN (Ffont_get, 2); | 742 | EXFUN (Ffont_get, 2); |
| 743 | EXFUN (Ffont_put, 3); | 743 | EXFUN (Ffont_put, 3); |
| 744 | EXFUN (Flist_fonts, 4); | 744 | EXFUN (Flist_fonts, 4); |
| 745 | EXFUN (Ffont_family_list, 1); | ||
| 746 | EXFUN (Fclear_font_cache, 0); | ||
| 747 | EXFUN (Ffont_xlfd_name, 2); | 745 | EXFUN (Ffont_xlfd_name, 2); |
| 748 | 746 | ||
| 749 | extern Lisp_Object font_make_spec (void); | ||
| 750 | extern Lisp_Object font_make_entity (void); | 747 | extern Lisp_Object font_make_entity (void); |
| 751 | extern Lisp_Object font_make_object (int, Lisp_Object, int); | 748 | extern Lisp_Object font_make_object (int, Lisp_Object, int); |
| 752 | 749 | ||
| @@ -767,11 +764,9 @@ extern Lisp_Object font_get_name (Lisp_Object font_object); | |||
| 767 | extern Lisp_Object font_spec_from_name (Lisp_Object font_name); | 764 | extern Lisp_Object font_spec_from_name (Lisp_Object font_name); |
| 768 | extern Lisp_Object font_get_frame (Lisp_Object font_object); | 765 | extern Lisp_Object font_get_frame (Lisp_Object font_object); |
| 769 | extern int font_has_char (FRAME_PTR, Lisp_Object, int); | 766 | extern int font_has_char (FRAME_PTR, Lisp_Object, int); |
| 770 | extern unsigned font_encode_char (Lisp_Object, int); | ||
| 771 | 767 | ||
| 772 | extern void font_clear_prop (Lisp_Object *attrs, | 768 | extern void font_clear_prop (Lisp_Object *attrs, |
| 773 | enum font_property_index prop); | 769 | enum font_property_index prop); |
| 774 | extern void font_update_lface (FRAME_PTR f, Lisp_Object *attrs); | ||
| 775 | extern Lisp_Object font_find_for_lface (FRAME_PTR f, Lisp_Object *lface, | 770 | extern Lisp_Object font_find_for_lface (FRAME_PTR f, Lisp_Object *lface, |
| 776 | Lisp_Object spec, int c); | 771 | Lisp_Object spec, int c); |
| 777 | extern Lisp_Object font_open_for_lface (FRAME_PTR f, Lisp_Object entity, | 772 | extern Lisp_Object font_open_for_lface (FRAME_PTR f, Lisp_Object entity, |
| @@ -792,21 +787,15 @@ extern void font_update_sort_order (int *order); | |||
| 792 | extern void font_parse_family_registry (Lisp_Object family, | 787 | extern void font_parse_family_registry (Lisp_Object family, |
| 793 | Lisp_Object registry, | 788 | Lisp_Object registry, |
| 794 | Lisp_Object spec); | 789 | Lisp_Object spec); |
| 795 | extern Lisp_Object font_spec_from_family_registry (Lisp_Object family, | ||
| 796 | Lisp_Object registry); | ||
| 797 | 790 | ||
| 798 | extern int font_parse_xlfd (char *name, Lisp_Object font); | 791 | extern int font_parse_xlfd (char *name, Lisp_Object font); |
| 799 | extern int font_unparse_xlfd (Lisp_Object font, int pixel_size, | 792 | extern int font_unparse_xlfd (Lisp_Object font, int pixel_size, |
| 800 | char *name, int bytes); | 793 | char *name, int bytes); |
| 801 | extern int font_parse_fcname (char *name, Lisp_Object font); | ||
| 802 | extern int font_unparse_fcname (Lisp_Object font, int pixel_size, | 794 | extern int font_unparse_fcname (Lisp_Object font, int pixel_size, |
| 803 | char *name, int bytes); | 795 | char *name, int bytes); |
| 804 | extern int font_unparse_gtkname (Lisp_Object, struct frame *, char *, int); | ||
| 805 | extern void register_font_driver (struct font_driver *driver, FRAME_PTR f); | 796 | extern void register_font_driver (struct font_driver *driver, FRAME_PTR f); |
| 806 | extern void free_font_driver_list (FRAME_PTR f); | 797 | extern void free_font_driver_list (FRAME_PTR f); |
| 807 | extern Lisp_Object font_update_drivers (FRAME_PTR f, Lisp_Object list); | 798 | extern Lisp_Object font_update_drivers (FRAME_PTR f, Lisp_Object list); |
| 808 | extern Lisp_Object font_at (int c, EMACS_INT pos, struct face *face, | ||
| 809 | struct window *w, Lisp_Object object); | ||
| 810 | extern Lisp_Object font_range (EMACS_INT, EMACS_INT *, | 799 | extern Lisp_Object font_range (EMACS_INT, EMACS_INT *, |
| 811 | struct window *, struct face *, | 800 | struct window *, struct face *, |
| 812 | Lisp_Object); | 801 | Lisp_Object); |
| @@ -858,7 +847,7 @@ extern void syms_of_nsfont (void); | |||
| 858 | #define FONT_DEBUG | 847 | #define FONT_DEBUG |
| 859 | #endif | 848 | #endif |
| 860 | 849 | ||
| 861 | extern Lisp_Object QCfoundry, QCadstyle, QCregistry; | 850 | extern Lisp_Object QCfoundry; |
| 862 | 851 | ||
| 863 | extern Lisp_Object Vfont_log; | 852 | extern Lisp_Object Vfont_log; |
| 864 | extern void font_add_log (const char *, Lisp_Object, Lisp_Object); | 853 | extern void font_add_log (const char *, Lisp_Object, Lisp_Object); |
diff --git a/src/fontset.c b/src/fontset.c index 9b140be8d70..3de3ecbd4b9 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -64,8 +64,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 64 | #define xassert(X) (void) 0 | 64 | #define xassert(X) (void) 0 |
| 65 | #endif /* not FONTSET_DEBUG */ | 65 | #endif /* not FONTSET_DEBUG */ |
| 66 | 66 | ||
| 67 | EXFUN (Fclear_face_cache, 1); | ||
| 68 | |||
| 69 | /* FONTSET | 67 | /* FONTSET |
| 70 | 68 | ||
| 71 | A fontset is a collection of font related information to give | 69 | A fontset is a collection of font related information to give |
| @@ -216,8 +214,6 @@ static Lisp_Object make_fontset (Lisp_Object, Lisp_Object, Lisp_Object); | |||
| 216 | static Lisp_Object fontset_pattern_regexp (Lisp_Object); | 214 | static Lisp_Object fontset_pattern_regexp (Lisp_Object); |
| 217 | static void accumulate_script_ranges (Lisp_Object, Lisp_Object, | 215 | static void accumulate_script_ranges (Lisp_Object, Lisp_Object, |
| 218 | Lisp_Object); | 216 | Lisp_Object); |
| 219 | Lisp_Object find_font_encoding (Lisp_Object); | ||
| 220 | |||
| 221 | static void set_fontset_font (Lisp_Object, Lisp_Object); | 217 | static void set_fontset_font (Lisp_Object, Lisp_Object); |
| 222 | 218 | ||
| 223 | #ifdef FONTSET_DEBUG | 219 | #ifdef FONTSET_DEBUG |
diff --git a/src/fontset.h b/src/fontset.h index 661638feb39..2da6df62499 100644 --- a/src/fontset.h +++ b/src/fontset.h | |||
| @@ -33,7 +33,6 @@ extern void (*check_window_system_func) (void); | |||
| 33 | struct face; | 33 | struct face; |
| 34 | 34 | ||
| 35 | extern void free_face_fontset (FRAME_PTR, struct face *); | 35 | extern void free_face_fontset (FRAME_PTR, struct face *); |
| 36 | extern Lisp_Object fontset_font_pattern (FRAME_PTR, struct face *, int); | ||
| 37 | extern int face_suitable_for_char_p (struct face *, int); | 36 | extern int face_suitable_for_char_p (struct face *, int); |
| 38 | extern int face_for_char (FRAME_PTR, struct face *, int, | 37 | extern int face_for_char (FRAME_PTR, struct face *, int, |
| 39 | int, Lisp_Object); | 38 | int, Lisp_Object); |
| @@ -44,7 +43,6 @@ extern int fontset_from_font (Lisp_Object); | |||
| 44 | extern int fs_query_fontset (Lisp_Object, int); | 43 | extern int fs_query_fontset (Lisp_Object, int); |
| 45 | EXFUN (Fquery_fontset, 2); | 44 | EXFUN (Fquery_fontset, 2); |
| 46 | extern Lisp_Object list_fontsets (struct frame *, Lisp_Object, int); | 45 | extern Lisp_Object list_fontsets (struct frame *, Lisp_Object, int); |
| 47 | extern Lisp_Object find_font_encoding (Lisp_Object); | ||
| 48 | 46 | ||
| 49 | extern Lisp_Object Qlatin; | 47 | extern Lisp_Object Qlatin; |
| 50 | extern Lisp_Object Vuse_default_ascent; | 48 | extern Lisp_Object Vuse_default_ascent; |
| @@ -56,7 +54,6 @@ extern Lisp_Object Votf_script_alist; | |||
| 56 | 54 | ||
| 57 | extern Lisp_Object fontset_name (int); | 55 | extern Lisp_Object fontset_name (int); |
| 58 | extern Lisp_Object fontset_ascii (int); | 56 | extern Lisp_Object fontset_ascii (int); |
| 59 | extern int fontset_height (int); | ||
| 60 | 57 | ||
| 61 | struct font; | 58 | struct font; |
| 62 | extern int face_for_font (struct frame *, Lisp_Object, struct face *); | 59 | extern int face_for_font (struct frame *, Lisp_Object, struct face *); |
diff --git a/src/frame.c b/src/frame.c index 00a65d630da..5ce043dcd3d 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -3982,7 +3982,7 @@ x_get_arg (Display_Info *dpyinfo, Lisp_Object alist, Lisp_Object param, | |||
| 3982 | return Fcdr (tem); | 3982 | return Fcdr (tem); |
| 3983 | } | 3983 | } |
| 3984 | 3984 | ||
| 3985 | Lisp_Object | 3985 | static Lisp_Object |
| 3986 | x_frame_get_arg (struct frame *f, Lisp_Object alist, Lisp_Object param, | 3986 | x_frame_get_arg (struct frame *f, Lisp_Object alist, Lisp_Object param, |
| 3987 | const char *attribute, const char *class, | 3987 | const char *attribute, const char *class, |
| 3988 | enum resource_types type) | 3988 | enum resource_types type) |
diff --git a/src/intervals.h b/src/intervals.h index 47eb8d4bcb1..8f94fd160fa 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -283,6 +283,7 @@ extern INTERVAL update_interval (INTERVAL, EMACS_INT); | |||
| 283 | extern void set_intervals_multibyte (int); | 283 | extern void set_intervals_multibyte (int); |
| 284 | extern INTERVAL validate_interval_range (Lisp_Object, Lisp_Object *, | 284 | extern INTERVAL validate_interval_range (Lisp_Object, Lisp_Object *, |
| 285 | Lisp_Object *, int); | 285 | Lisp_Object *, int); |
| 286 | extern INTERVAL interval_of (int, Lisp_Object); | ||
| 286 | 287 | ||
| 287 | /* Defined in xdisp.c */ | 288 | /* Defined in xdisp.c */ |
| 288 | extern int invisible_p (Lisp_Object, Lisp_Object); | 289 | extern int invisible_p (Lisp_Object, Lisp_Object); |
| @@ -312,7 +313,6 @@ extern Lisp_Object Vtext_property_default_nonsticky; | |||
| 312 | extern Lisp_Object Qfront_sticky, Qrear_nonsticky; | 313 | extern Lisp_Object Qfront_sticky, Qrear_nonsticky; |
| 313 | 314 | ||
| 314 | EXFUN (Fget_char_property, 3); | 315 | EXFUN (Fget_char_property, 3); |
| 315 | EXFUN (Fget_char_property_and_overlay, 3); | ||
| 316 | EXFUN (Fget_text_property, 3); | 316 | EXFUN (Fget_text_property, 3); |
| 317 | EXFUN (Ftext_properties_at, 2); | 317 | EXFUN (Ftext_properties_at, 2); |
| 318 | EXFUN (Fnext_property_change, 3); | 318 | EXFUN (Fnext_property_change, 3); |
| @@ -321,7 +321,6 @@ EXFUN (Fadd_text_properties, 4); | |||
| 321 | EXFUN (Fset_text_properties, 4); | 321 | EXFUN (Fset_text_properties, 4); |
| 322 | EXFUN (Fremove_text_properties, 4); | 322 | EXFUN (Fremove_text_properties, 4); |
| 323 | EXFUN (Ftext_property_any, 5); | 323 | EXFUN (Ftext_property_any, 5); |
| 324 | EXFUN (Ftext_property_not_all, 5); | ||
| 325 | EXFUN (Fprevious_single_char_property_change, 4); | 324 | EXFUN (Fprevious_single_char_property_change, 4); |
| 326 | extern Lisp_Object copy_text_properties (Lisp_Object, Lisp_Object, | 325 | extern Lisp_Object copy_text_properties (Lisp_Object, Lisp_Object, |
| 327 | Lisp_Object, Lisp_Object, | 326 | Lisp_Object, Lisp_Object, |
diff --git a/src/keymap.c b/src/keymap.c index cc25d350d44..f7081aab4ad 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -122,6 +122,7 @@ static void describe_vector (Lisp_Object, Lisp_Object, Lisp_Object, | |||
| 122 | Lisp_Object, Lisp_Object, int *, | 122 | Lisp_Object, Lisp_Object, int *, |
| 123 | int, int, int); | 123 | int, int, int); |
| 124 | static void silly_event_symbol_error (Lisp_Object); | 124 | static void silly_event_symbol_error (Lisp_Object); |
| 125 | static Lisp_Object get_keyelt (Lisp_Object, int); | ||
| 125 | 126 | ||
| 126 | /* Keymap object support - constructors and predicates. */ | 127 | /* Keymap object support - constructors and predicates. */ |
| 127 | 128 | ||
| @@ -758,7 +759,7 @@ usage: (map-keymap FUNCTION KEYMAP) */) | |||
| 758 | 759 | ||
| 759 | This can GC because menu_item_eval_property calls Feval. */ | 760 | This can GC because menu_item_eval_property calls Feval. */ |
| 760 | 761 | ||
| 761 | Lisp_Object | 762 | static Lisp_Object |
| 762 | get_keyelt (Lisp_Object object, int autoload) | 763 | get_keyelt (Lisp_Object object, int autoload) |
| 763 | { | 764 | { |
| 764 | while (1) | 765 | while (1) |
diff --git a/src/keymap.h b/src/keymap.h index c68d763204d..84cdde456aa 100644 --- a/src/keymap.h +++ b/src/keymap.h | |||
| @@ -39,7 +39,6 @@ EXFUN (Fsingle_key_description, 2); | |||
| 39 | EXFUN (Fwhere_is_internal, 5); | 39 | EXFUN (Fwhere_is_internal, 5); |
| 40 | EXFUN (Fcurrent_active_maps, 2); | 40 | EXFUN (Fcurrent_active_maps, 2); |
| 41 | extern Lisp_Object access_keymap (Lisp_Object, Lisp_Object, int, int, int); | 41 | extern Lisp_Object access_keymap (Lisp_Object, Lisp_Object, int, int, int); |
| 42 | extern Lisp_Object get_keyelt (Lisp_Object, int); | ||
| 43 | extern Lisp_Object get_keymap (Lisp_Object, int, int); | 42 | extern Lisp_Object get_keymap (Lisp_Object, int, int); |
| 44 | EXFUN (Fset_keymap_parent, 2); | 43 | EXFUN (Fset_keymap_parent, 2); |
| 45 | extern void describe_map_tree (Lisp_Object, int, Lisp_Object, Lisp_Object, | 44 | extern void describe_map_tree (Lisp_Object, int, Lisp_Object, Lisp_Object, |
diff --git a/src/lisp.h b/src/lisp.h index 7c3c1f3780e..e02d559512c 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2317,29 +2317,7 @@ EXFUN (Fbyteorder, 0); | |||
| 2317 | /* Defined in frame.c */ | 2317 | /* Defined in frame.c */ |
| 2318 | extern Lisp_Object Qframep; | 2318 | extern Lisp_Object Qframep; |
| 2319 | 2319 | ||
| 2320 | EXFUN (Feq, 2); | 2320 | /* Defined in data.c */ |
| 2321 | EXFUN (Fnull, 1); | ||
| 2322 | EXFUN (Flistp, 1); | ||
| 2323 | EXFUN (Fconsp, 1); | ||
| 2324 | EXFUN (Fatom, 1); | ||
| 2325 | EXFUN (Fnlistp, 1); | ||
| 2326 | EXFUN (Fintegerp, 1); | ||
| 2327 | EXFUN (Fnatnump, 1); | ||
| 2328 | EXFUN (Fsymbolp, 1); | ||
| 2329 | EXFUN (Fvectorp, 1); | ||
| 2330 | EXFUN (Fstringp, 1); | ||
| 2331 | EXFUN (Fmultibyte_string_p, 1); | ||
| 2332 | EXFUN (Farrayp, 1); | ||
| 2333 | EXFUN (Fsequencep, 1); | ||
| 2334 | EXFUN (Fbufferp, 1); | ||
| 2335 | EXFUN (Fmarkerp, 1); | ||
| 2336 | EXFUN (Fsubrp, 1); | ||
| 2337 | EXFUN (Fchar_or_string_p, 1); | ||
| 2338 | EXFUN (Finteger_or_marker_p, 1); | ||
| 2339 | EXFUN (Ffloatp, 1); | ||
| 2340 | EXFUN (Finteger_or_floatp, 1); | ||
| 2341 | EXFUN (Finteger_or_float_or_marker_p, 1); | ||
| 2342 | |||
| 2343 | EXFUN (Fcar, 1); | 2321 | EXFUN (Fcar, 1); |
| 2344 | EXFUN (Fcar_safe, 1); | 2322 | EXFUN (Fcar_safe, 1); |
| 2345 | EXFUN (Fcdr, 1); | 2323 | EXFUN (Fcdr, 1); |
| @@ -2348,15 +2326,11 @@ EXFUN (Fsetcar, 2); | |||
| 2348 | EXFUN (Fsetcdr, 2); | 2326 | EXFUN (Fsetcdr, 2); |
| 2349 | EXFUN (Fboundp, 1); | 2327 | EXFUN (Fboundp, 1); |
| 2350 | EXFUN (Ffboundp, 1); | 2328 | EXFUN (Ffboundp, 1); |
| 2351 | EXFUN (Fmakunbound, 1); | ||
| 2352 | EXFUN (Ffmakunbound, 1); | ||
| 2353 | EXFUN (Fsymbol_function, 1); | 2329 | EXFUN (Fsymbol_function, 1); |
| 2354 | EXFUN (Fsymbol_plist, 1); | ||
| 2355 | EXFUN (Fsymbol_name, 1); | 2330 | EXFUN (Fsymbol_name, 1); |
| 2356 | extern Lisp_Object indirect_function (Lisp_Object); | 2331 | extern Lisp_Object indirect_function (Lisp_Object); |
| 2357 | EXFUN (Findirect_function, 2); | 2332 | EXFUN (Findirect_function, 2); |
| 2358 | EXFUN (Ffset, 2); | 2333 | EXFUN (Ffset, 2); |
| 2359 | EXFUN (Fsetplist, 2); | ||
| 2360 | EXFUN (Fsymbol_value, 1); | 2334 | EXFUN (Fsymbol_value, 1); |
| 2361 | extern Lisp_Object find_symbol_value (Lisp_Object); | 2335 | extern Lisp_Object find_symbol_value (Lisp_Object); |
| 2362 | EXFUN (Fset, 2); | 2336 | EXFUN (Fset, 2); |
| @@ -2365,19 +2339,16 @@ EXFUN (Fset_default, 2); | |||
| 2365 | EXFUN (Fdefault_boundp, 1); | 2339 | EXFUN (Fdefault_boundp, 1); |
| 2366 | EXFUN (Fmake_local_variable, 1); | 2340 | EXFUN (Fmake_local_variable, 1); |
| 2367 | EXFUN (Flocal_variable_p, 2); | 2341 | EXFUN (Flocal_variable_p, 2); |
| 2368 | EXFUN (Flocal_variable_if_set_p, 2); | ||
| 2369 | 2342 | ||
| 2370 | EXFUN (Faref, 2); | 2343 | EXFUN (Faref, 2); |
| 2371 | EXFUN (Faset, 3); | 2344 | EXFUN (Faset, 3); |
| 2372 | 2345 | ||
| 2373 | EXFUN (Fstring_to_number, 2); | 2346 | EXFUN (Fstring_to_number, 2); |
| 2374 | EXFUN (Fnumber_to_string, 1); | 2347 | EXFUN (Fnumber_to_string, 1); |
| 2375 | EXFUN (Feqlsign, 2); | ||
| 2376 | EXFUN (Fgtr, 2); | 2348 | EXFUN (Fgtr, 2); |
| 2377 | EXFUN (Flss, 2); | 2349 | EXFUN (Flss, 2); |
| 2378 | EXFUN (Fgeq, 2); | 2350 | EXFUN (Fgeq, 2); |
| 2379 | EXFUN (Fleq, 2); | 2351 | EXFUN (Fleq, 2); |
| 2380 | EXFUN (Fneq, 2); | ||
| 2381 | EXFUN (Fzerop, 1); | 2352 | EXFUN (Fzerop, 1); |
| 2382 | EXFUN (Fplus, MANY); | 2353 | EXFUN (Fplus, MANY); |
| 2383 | EXFUN (Fminus, MANY); | 2354 | EXFUN (Fminus, MANY); |
| @@ -2386,12 +2357,6 @@ EXFUN (Fquo, MANY); | |||
| 2386 | EXFUN (Frem, 2); | 2357 | EXFUN (Frem, 2); |
| 2387 | EXFUN (Fmax, MANY); | 2358 | EXFUN (Fmax, MANY); |
| 2388 | EXFUN (Fmin, MANY); | 2359 | EXFUN (Fmin, MANY); |
| 2389 | EXFUN (Flogand, MANY); | ||
| 2390 | EXFUN (Flogior, MANY); | ||
| 2391 | EXFUN (Flogxor, MANY); | ||
| 2392 | EXFUN (Flognot, 1); | ||
| 2393 | EXFUN (Flsh, 2); | ||
| 2394 | EXFUN (Fash, 2); | ||
| 2395 | 2360 | ||
| 2396 | EXFUN (Fadd1, 1); | 2361 | EXFUN (Fadd1, 1); |
| 2397 | EXFUN (Fsub1, 1); | 2362 | EXFUN (Fsub1, 1); |
| @@ -2418,6 +2383,7 @@ extern void syms_of_cmds (void); | |||
| 2418 | extern void keys_of_cmds (void); | 2383 | extern void keys_of_cmds (void); |
| 2419 | 2384 | ||
| 2420 | /* Defined in coding.c */ | 2385 | /* Defined in coding.c */ |
| 2386 | extern Lisp_Object Qcharset; | ||
| 2421 | EXFUN (Fcoding_system_p, 1); | 2387 | EXFUN (Fcoding_system_p, 1); |
| 2422 | EXFUN (Fcoding_system_base, 1); | 2388 | EXFUN (Fcoding_system_base, 1); |
| 2423 | EXFUN (Fcoding_system_eol_type, 1); | 2389 | EXFUN (Fcoding_system_eol_type, 1); |
| @@ -2425,8 +2391,6 @@ EXFUN (Fcheck_coding_system, 1); | |||
| 2425 | EXFUN (Fread_coding_system, 2); | 2391 | EXFUN (Fread_coding_system, 2); |
| 2426 | EXFUN (Fread_non_nil_coding_system, 1); | 2392 | EXFUN (Fread_non_nil_coding_system, 1); |
| 2427 | EXFUN (Ffind_operation_coding_system, MANY); | 2393 | EXFUN (Ffind_operation_coding_system, MANY); |
| 2428 | EXFUN (Fupdate_coding_systems_internal, 0); | ||
| 2429 | EXFUN (Fencode_coding_string, 4); | ||
| 2430 | EXFUN (Fdecode_coding_string, 4); | 2394 | EXFUN (Fdecode_coding_string, 4); |
| 2431 | extern Lisp_Object detect_coding_system (const unsigned char *, EMACS_INT, | 2395 | extern Lisp_Object detect_coding_system (const unsigned char *, EMACS_INT, |
| 2432 | EMACS_INT, int, int, Lisp_Object); | 2396 | EMACS_INT, int, int, Lisp_Object); |
| @@ -2435,19 +2399,17 @@ extern void init_coding_once (void); | |||
| 2435 | extern void syms_of_coding (void); | 2399 | extern void syms_of_coding (void); |
| 2436 | 2400 | ||
| 2437 | /* Defined in character.c */ | 2401 | /* Defined in character.c */ |
| 2438 | extern void init_character_once (void); | ||
| 2439 | extern void syms_of_character (void); | ||
| 2440 | EXFUN (Funibyte_char_to_multibyte, 1); | 2402 | EXFUN (Funibyte_char_to_multibyte, 1); |
| 2441 | |||
| 2442 | /* Defined in charset.c */ | ||
| 2443 | EXFUN (Fchar_bytes, 1); | ||
| 2444 | EXFUN (Fchar_width, 1); | 2403 | EXFUN (Fchar_width, 1); |
| 2445 | EXFUN (Fstring, MANY); | 2404 | EXFUN (Fstring, MANY); |
| 2446 | extern EMACS_INT chars_in_text (const unsigned char *, EMACS_INT); | 2405 | extern EMACS_INT chars_in_text (const unsigned char *, EMACS_INT); |
| 2447 | extern EMACS_INT multibyte_chars_in_text (const unsigned char *, EMACS_INT); | 2406 | extern EMACS_INT multibyte_chars_in_text (const unsigned char *, EMACS_INT); |
| 2448 | extern int multibyte_char_to_unibyte (int, Lisp_Object); | 2407 | extern int multibyte_char_to_unibyte (int, Lisp_Object); |
| 2449 | extern int multibyte_char_to_unibyte_safe (int); | 2408 | extern int multibyte_char_to_unibyte_safe (int); |
| 2450 | extern Lisp_Object Qcharset; | 2409 | extern void init_character_once (void); |
| 2410 | extern void syms_of_character (void); | ||
| 2411 | |||
| 2412 | /* Defined in charset.c */ | ||
| 2451 | extern void init_charset (void); | 2413 | extern void init_charset (void); |
| 2452 | extern void init_charset_once (void); | 2414 | extern void init_charset_once (void); |
| 2453 | extern void syms_of_charset (void); | 2415 | extern void syms_of_charset (void); |
| @@ -2462,8 +2424,6 @@ EXFUN (Fforward_word, 1); | |||
| 2462 | EXFUN (Fskip_chars_forward, 2); | 2424 | EXFUN (Fskip_chars_forward, 2); |
| 2463 | EXFUN (Fskip_chars_backward, 2); | 2425 | EXFUN (Fskip_chars_backward, 2); |
| 2464 | EXFUN (Fsyntax_table_p, 1); | 2426 | EXFUN (Fsyntax_table_p, 1); |
| 2465 | EXFUN (Fsyntax_table, 0); | ||
| 2466 | EXFUN (Fset_syntax_table, 1); | ||
| 2467 | extern void init_syntax_once (void); | 2427 | extern void init_syntax_once (void); |
| 2468 | extern void syms_of_syntax (void); | 2428 | extern void syms_of_syntax (void); |
| 2469 | 2429 | ||
| @@ -2482,35 +2442,18 @@ unsigned sxhash (Lisp_Object, int); | |||
| 2482 | Lisp_Object make_hash_table (Lisp_Object, Lisp_Object, Lisp_Object, | 2442 | Lisp_Object make_hash_table (Lisp_Object, Lisp_Object, Lisp_Object, |
| 2483 | Lisp_Object, Lisp_Object, Lisp_Object, | 2443 | Lisp_Object, Lisp_Object, Lisp_Object, |
| 2484 | Lisp_Object); | 2444 | Lisp_Object); |
| 2485 | Lisp_Object copy_hash_table (struct Lisp_Hash_Table *); | ||
| 2486 | int hash_lookup (struct Lisp_Hash_Table *, Lisp_Object, unsigned *); | 2445 | int hash_lookup (struct Lisp_Hash_Table *, Lisp_Object, unsigned *); |
| 2487 | int hash_put (struct Lisp_Hash_Table *, Lisp_Object, Lisp_Object, | 2446 | int hash_put (struct Lisp_Hash_Table *, Lisp_Object, Lisp_Object, |
| 2488 | unsigned); | 2447 | unsigned); |
| 2489 | void hash_clear (struct Lisp_Hash_Table *); | ||
| 2490 | void init_weak_hash_tables (void); | 2448 | void init_weak_hash_tables (void); |
| 2491 | extern void init_fns (void); | 2449 | extern void init_fns (void); |
| 2492 | EXFUN (Fsxhash, 1); | ||
| 2493 | EXFUN (Fmake_hash_table, MANY); | 2450 | EXFUN (Fmake_hash_table, MANY); |
| 2494 | EXFUN (Fmakehash, 1); | ||
| 2495 | EXFUN (Fcopy_hash_table, 1); | ||
| 2496 | EXFUN (Fhash_table_count, 1); | ||
| 2497 | EXFUN (Fhash_table_rehash_size, 1); | ||
| 2498 | EXFUN (Fhash_table_rehash_threshold, 1); | ||
| 2499 | EXFUN (Fhash_table_size, 1); | ||
| 2500 | EXFUN (Fhash_table_test, 1); | ||
| 2501 | EXFUN (Fhash_table_weak, 1); | ||
| 2502 | EXFUN (Fhash_table_p, 1); | ||
| 2503 | EXFUN (Fclrhash, 1); | ||
| 2504 | EXFUN (Fgethash, 3); | 2451 | EXFUN (Fgethash, 3); |
| 2505 | EXFUN (Fputhash, 3); | 2452 | EXFUN (Fputhash, 3); |
| 2506 | EXFUN (Fremhash, 2); | 2453 | EXFUN (Fremhash, 2); |
| 2507 | EXFUN (Fmaphash, 2); | ||
| 2508 | EXFUN (Fdefine_hash_table_test, 3); | ||
| 2509 | 2454 | ||
| 2510 | EXFUN (Fidentity, 1); | 2455 | EXFUN (Fidentity, 1); |
| 2511 | EXFUN (Frandom, 1); | ||
| 2512 | EXFUN (Flength, 1); | 2456 | EXFUN (Flength, 1); |
| 2513 | EXFUN (Fsafe_length, 1); | ||
| 2514 | EXFUN (Fappend, MANY); | 2457 | EXFUN (Fappend, MANY); |
| 2515 | EXFUN (Fconcat, MANY); | 2458 | EXFUN (Fconcat, MANY); |
| 2516 | EXFUN (Fvconcat, MANY); | 2459 | EXFUN (Fvconcat, MANY); |
| @@ -2520,7 +2463,6 @@ EXFUN (Fstring_make_unibyte, 1); | |||
| 2520 | EXFUN (Fstring_as_multibyte, 1); | 2463 | EXFUN (Fstring_as_multibyte, 1); |
| 2521 | EXFUN (Fstring_as_unibyte, 1); | 2464 | EXFUN (Fstring_as_unibyte, 1); |
| 2522 | EXFUN (Fstring_to_multibyte, 1); | 2465 | EXFUN (Fstring_to_multibyte, 1); |
| 2523 | EXFUN (Fstring_to_unibyte, 1); | ||
| 2524 | EXFUN (Fsubstring, 3); | 2466 | EXFUN (Fsubstring, 3); |
| 2525 | extern Lisp_Object substring_both (Lisp_Object, EMACS_INT, EMACS_INT, | 2467 | extern Lisp_Object substring_both (Lisp_Object, EMACS_INT, EMACS_INT, |
| 2526 | EMACS_INT, EMACS_INT); | 2468 | EMACS_INT, EMACS_INT); |
| @@ -2540,12 +2482,10 @@ EXFUN (Fnreverse, 1); | |||
| 2540 | EXFUN (Fget, 2); | 2482 | EXFUN (Fget, 2); |
| 2541 | EXFUN (Fput, 3); | 2483 | EXFUN (Fput, 3); |
| 2542 | EXFUN (Fequal, 2); | 2484 | EXFUN (Fequal, 2); |
| 2543 | EXFUN (Ffillarray, 2); | ||
| 2544 | EXFUN (Fnconc, MANY); | 2485 | EXFUN (Fnconc, MANY); |
| 2545 | EXFUN (Fmapcar, 2); | 2486 | EXFUN (Fmapcar, 2); |
| 2546 | EXFUN (Fmapconcat, 3); | 2487 | EXFUN (Fmapconcat, 3); |
| 2547 | extern Lisp_Object do_yes_or_no_p (Lisp_Object); | 2488 | extern Lisp_Object do_yes_or_no_p (Lisp_Object); |
| 2548 | EXFUN (Frequire, 3); | ||
| 2549 | EXFUN (Fprovide, 2); | 2489 | EXFUN (Fprovide, 2); |
| 2550 | extern Lisp_Object concat2 (Lisp_Object, Lisp_Object); | 2490 | extern Lisp_Object concat2 (Lisp_Object, Lisp_Object); |
| 2551 | extern Lisp_Object concat3 (Lisp_Object, Lisp_Object, Lisp_Object); | 2491 | extern Lisp_Object concat3 (Lisp_Object, Lisp_Object, Lisp_Object); |
| @@ -2555,7 +2495,6 @@ extern Lisp_Object assoc_no_quit (Lisp_Object, Lisp_Object); | |||
| 2555 | extern void clear_string_char_byte_cache (void); | 2495 | extern void clear_string_char_byte_cache (void); |
| 2556 | extern EMACS_INT string_char_to_byte (Lisp_Object, EMACS_INT); | 2496 | extern EMACS_INT string_char_to_byte (Lisp_Object, EMACS_INT); |
| 2557 | extern EMACS_INT string_byte_to_char (Lisp_Object, EMACS_INT); | 2497 | extern EMACS_INT string_byte_to_char (Lisp_Object, EMACS_INT); |
| 2558 | extern Lisp_Object string_make_multibyte (Lisp_Object); | ||
| 2559 | extern Lisp_Object string_to_multibyte (Lisp_Object); | 2498 | extern Lisp_Object string_to_multibyte (Lisp_Object); |
| 2560 | extern Lisp_Object string_make_unibyte (Lisp_Object); | 2499 | extern Lisp_Object string_make_unibyte (Lisp_Object); |
| 2561 | EXFUN (Fcopy_alist, 1); | 2500 | EXFUN (Fcopy_alist, 1); |
| @@ -2586,6 +2525,7 @@ extern Lisp_Object QCascent, QCmargin, QCrelief, Qcount, Qextension_data; | |||
| 2586 | extern Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; | 2525 | extern Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; |
| 2587 | extern Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask; | 2526 | extern Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask; |
| 2588 | EXFUN (Finit_image_library, 2); | 2527 | EXFUN (Finit_image_library, 2); |
| 2528 | extern int x_bitmap_mask (struct frame *, int); | ||
| 2589 | extern void syms_of_image (void); | 2529 | extern void syms_of_image (void); |
| 2590 | extern void init_image (void); | 2530 | extern void init_image (void); |
| 2591 | 2531 | ||
| @@ -2647,7 +2587,6 @@ extern Lisp_Object Vwindow_system_version; | |||
| 2647 | extern EMACS_INT baud_rate; | 2587 | extern EMACS_INT baud_rate; |
| 2648 | EXFUN (Fding, 1); | 2588 | EXFUN (Fding, 1); |
| 2649 | EXFUN (Fredraw_frame, 1); | 2589 | EXFUN (Fredraw_frame, 1); |
| 2650 | EXFUN (Fredraw_display, 0); | ||
| 2651 | EXFUN (Fsleep_for, 2); | 2590 | EXFUN (Fsleep_for, 2); |
| 2652 | EXFUN (Fredisplay, 1); | 2591 | EXFUN (Fredisplay, 1); |
| 2653 | extern Lisp_Object sit_for (Lisp_Object, int, int); | 2592 | extern Lisp_Object sit_for (Lisp_Object, int, int); |
| @@ -2738,11 +2677,12 @@ extern Lisp_Object Vpurify_flag; | |||
| 2738 | extern Lisp_Object Vmemory_full; | 2677 | extern Lisp_Object Vmemory_full; |
| 2739 | extern Lisp_Object *stack_base; | 2678 | extern Lisp_Object *stack_base; |
| 2740 | EXFUN (Fcons, 2); | 2679 | EXFUN (Fcons, 2); |
| 2741 | EXFUN (list1, 1); | 2680 | extern Lisp_Object list1 (Lisp_Object); |
| 2742 | EXFUN (list2, 2); | 2681 | extern Lisp_Object list2 (Lisp_Object, Lisp_Object); |
| 2743 | EXFUN (list3, 3); | 2682 | extern Lisp_Object list3 (Lisp_Object, Lisp_Object, Lisp_Object); |
| 2744 | EXFUN (list4, 4); | 2683 | extern Lisp_Object list4 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object); |
| 2745 | EXFUN (list5, 5); | 2684 | extern Lisp_Object list5 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, |
| 2685 | Lisp_Object); | ||
| 2746 | EXFUN (Flist, MANY); | 2686 | EXFUN (Flist, MANY); |
| 2747 | EXFUN (Fmake_list, 2); | 2687 | EXFUN (Fmake_list, 2); |
| 2748 | extern Lisp_Object allocate_misc (void); | 2688 | extern Lisp_Object allocate_misc (void); |
| @@ -2798,17 +2738,12 @@ extern int valid_lisp_object_p (Lisp_Object); | |||
| 2798 | 2738 | ||
| 2799 | /* Defined in chartab.c */ | 2739 | /* Defined in chartab.c */ |
| 2800 | EXFUN (Fmake_char_table, 2); | 2740 | EXFUN (Fmake_char_table, 2); |
| 2801 | EXFUN (Fchar_table_parent, 1); | ||
| 2802 | EXFUN (Fset_char_table_parent, 2); | 2741 | EXFUN (Fset_char_table_parent, 2); |
| 2803 | EXFUN (Fchar_table_extra_slot, 2); | 2742 | EXFUN (Fchar_table_extra_slot, 2); |
| 2804 | EXFUN (Fset_char_table_extra_slot, 3); | 2743 | EXFUN (Fset_char_table_extra_slot, 3); |
| 2805 | EXFUN (Fchar_table_range, 2); | ||
| 2806 | EXFUN (Fset_char_table_range, 3); | 2744 | EXFUN (Fset_char_table_range, 3); |
| 2807 | EXFUN (Fset_char_table_default, 3); | ||
| 2808 | EXFUN (Foptimize_char_table, 2); | 2745 | EXFUN (Foptimize_char_table, 2); |
| 2809 | EXFUN (Fmap_char_table, 2); | ||
| 2810 | extern Lisp_Object copy_char_table (Lisp_Object); | 2746 | extern Lisp_Object copy_char_table (Lisp_Object); |
| 2811 | extern Lisp_Object sub_char_table_ref (Lisp_Object, int); | ||
| 2812 | extern Lisp_Object char_table_ref (Lisp_Object, int); | 2747 | extern Lisp_Object char_table_ref (Lisp_Object, int); |
| 2813 | extern Lisp_Object char_table_ref_and_range (Lisp_Object, int, | 2748 | extern Lisp_Object char_table_ref_and_range (Lisp_Object, int, |
| 2814 | int *, int *); | 2749 | int *, int *); |
| @@ -2842,7 +2777,6 @@ extern void temp_output_buffer_setup (const char *); | |||
| 2842 | extern int print_level, print_escape_newlines; | 2777 | extern int print_level, print_escape_newlines; |
| 2843 | extern Lisp_Object Qprint_escape_newlines; | 2778 | extern Lisp_Object Qprint_escape_newlines; |
| 2844 | extern void write_string (const char *, int); | 2779 | extern void write_string (const char *, int); |
| 2845 | extern void write_string_1 (const char *, int, Lisp_Object); | ||
| 2846 | extern void print_error_message (Lisp_Object, Lisp_Object, const char *, | 2780 | extern void print_error_message (Lisp_Object, Lisp_Object, const char *, |
| 2847 | Lisp_Object); | 2781 | Lisp_Object); |
| 2848 | extern Lisp_Object internal_with_output_to_temp_buffer | 2782 | extern Lisp_Object internal_with_output_to_temp_buffer |
| @@ -2865,10 +2799,8 @@ EXFUN (Fintern, 2); | |||
| 2865 | EXFUN (Fintern_soft, 2); | 2799 | EXFUN (Fintern_soft, 2); |
| 2866 | EXFUN (Fload, 5); | 2800 | EXFUN (Fload, 5); |
| 2867 | EXFUN (Fget_load_suffixes, 0); | 2801 | EXFUN (Fget_load_suffixes, 0); |
| 2868 | EXFUN (Fget_file_char, 0); | ||
| 2869 | EXFUN (Fread_char, 3); | 2802 | EXFUN (Fread_char, 3); |
| 2870 | EXFUN (Fread_event, 3); | 2803 | EXFUN (Fread_event, 3); |
| 2871 | extern Lisp_Object read_filtered_event (int, int, int, int, Lisp_Object); | ||
| 2872 | EXFUN (Feval_region, 4); | 2804 | EXFUN (Feval_region, 4); |
| 2873 | extern Lisp_Object check_obarray (Lisp_Object); | 2805 | extern Lisp_Object check_obarray (Lisp_Object); |
| 2874 | extern Lisp_Object intern (const char *); | 2806 | extern Lisp_Object intern (const char *); |
| @@ -2900,7 +2832,6 @@ extern Lisp_Object Vdebug_on_error; | |||
| 2900 | extern Lisp_Object Vsignaling_function; | 2832 | extern Lisp_Object Vsignaling_function; |
| 2901 | extern int handling_signal; | 2833 | extern int handling_signal; |
| 2902 | extern int debug_on_next_call; | 2834 | extern int debug_on_next_call; |
| 2903 | extern int interactive_p (int); | ||
| 2904 | 2835 | ||
| 2905 | /* To run a normal hook, use the appropriate function from the list below. | 2836 | /* To run a normal hook, use the appropriate function from the list below. |
| 2906 | The calling convention: | 2837 | The calling convention: |
| @@ -2912,28 +2843,11 @@ extern int interactive_p (int); | |||
| 2912 | extern Lisp_Object Vrun_hooks; | 2843 | extern Lisp_Object Vrun_hooks; |
| 2913 | EXFUN (Frun_hooks, MANY); | 2844 | EXFUN (Frun_hooks, MANY); |
| 2914 | EXFUN (Frun_hook_with_args, MANY); | 2845 | EXFUN (Frun_hook_with_args, MANY); |
| 2915 | EXFUN (Frun_hook_with_args_until_success, MANY); | ||
| 2916 | EXFUN (Frun_hook_with_args_until_failure, MANY); | 2846 | EXFUN (Frun_hook_with_args_until_failure, MANY); |
| 2917 | extern Lisp_Object run_hook_list_with_args (Lisp_Object, int, Lisp_Object *); | ||
| 2918 | extern void run_hook_with_args_2 (Lisp_Object, Lisp_Object, Lisp_Object); | 2847 | extern void run_hook_with_args_2 (Lisp_Object, Lisp_Object, Lisp_Object); |
| 2919 | EXFUN (Fand, UNEVALLED); | ||
| 2920 | EXFUN (For, UNEVALLED); | ||
| 2921 | EXFUN (Fif, UNEVALLED); | ||
| 2922 | EXFUN (Fprogn, UNEVALLED); | 2848 | EXFUN (Fprogn, UNEVALLED); |
| 2923 | EXFUN (Fprog1, UNEVALLED); | ||
| 2924 | EXFUN (Fprog2, UNEVALLED); | ||
| 2925 | EXFUN (Fsetq, UNEVALLED); | ||
| 2926 | EXFUN (Fquote, UNEVALLED); | ||
| 2927 | EXFUN (Fuser_variable_p, 1); | ||
| 2928 | EXFUN (Finteractive_p, 0); | 2849 | EXFUN (Finteractive_p, 0); |
| 2929 | EXFUN (Fdefun, UNEVALLED); | ||
| 2930 | EXFUN (Flet, UNEVALLED); | ||
| 2931 | EXFUN (FletX, UNEVALLED); | ||
| 2932 | EXFUN (Fwhile, UNEVALLED); | ||
| 2933 | EXFUN (Fcatch, UNEVALLED); | ||
| 2934 | EXFUN (Fthrow, 2) NO_RETURN; | 2850 | EXFUN (Fthrow, 2) NO_RETURN; |
| 2935 | EXFUN (Funwind_protect, UNEVALLED); | ||
| 2936 | EXFUN (Fcondition_case, UNEVALLED); | ||
| 2937 | EXFUN (Fsignal, 2); | 2851 | EXFUN (Fsignal, 2); |
| 2938 | extern void xsignal (Lisp_Object, Lisp_Object) NO_RETURN; | 2852 | extern void xsignal (Lisp_Object, Lisp_Object) NO_RETURN; |
| 2939 | extern void xsignal0 (Lisp_Object) NO_RETURN; | 2853 | extern void xsignal0 (Lisp_Object) NO_RETURN; |
| @@ -2941,7 +2855,6 @@ extern void xsignal1 (Lisp_Object, Lisp_Object) NO_RETURN; | |||
| 2941 | extern void xsignal2 (Lisp_Object, Lisp_Object, Lisp_Object) NO_RETURN; | 2855 | extern void xsignal2 (Lisp_Object, Lisp_Object, Lisp_Object) NO_RETURN; |
| 2942 | extern void xsignal3 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object) NO_RETURN; | 2856 | extern void xsignal3 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object) NO_RETURN; |
| 2943 | extern void signal_error (const char *, Lisp_Object) NO_RETURN; | 2857 | extern void signal_error (const char *, Lisp_Object) NO_RETURN; |
| 2944 | EXFUN (Fautoload, 5); | ||
| 2945 | EXFUN (Fcommandp, 2); | 2858 | EXFUN (Fcommandp, 2); |
| 2946 | EXFUN (Feval, 1); | 2859 | EXFUN (Feval, 1); |
| 2947 | EXFUN (Fapply, MANY); | 2860 | EXFUN (Fapply, MANY); |
| @@ -2957,7 +2870,6 @@ extern Lisp_Object call5 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Li | |||
| 2957 | extern Lisp_Object call6 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object); | 2870 | extern Lisp_Object call6 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object); |
| 2958 | extern Lisp_Object call7 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object); | 2871 | extern Lisp_Object call7 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object); |
| 2959 | EXFUN (Fdo_auto_save, 2); | 2872 | EXFUN (Fdo_auto_save, 2); |
| 2960 | extern Lisp_Object apply_lambda (Lisp_Object, Lisp_Object, int); | ||
| 2961 | extern Lisp_Object internal_catch (Lisp_Object, Lisp_Object (*) (Lisp_Object), Lisp_Object); | 2873 | extern Lisp_Object internal_catch (Lisp_Object, Lisp_Object (*) (Lisp_Object), Lisp_Object); |
| 2962 | extern Lisp_Object internal_lisp_condition_case (Lisp_Object, Lisp_Object, Lisp_Object); | 2874 | extern Lisp_Object internal_lisp_condition_case (Lisp_Object, Lisp_Object, Lisp_Object); |
| 2963 | extern Lisp_Object internal_condition_case (Lisp_Object (*) (void), Lisp_Object, Lisp_Object (*) (Lisp_Object)); | 2875 | extern Lisp_Object internal_condition_case (Lisp_Object (*) (void), Lisp_Object, Lisp_Object (*) (Lisp_Object)); |
| @@ -2985,25 +2897,17 @@ extern Lisp_Object Qfield; | |||
| 2985 | extern Lisp_Object Vinhibit_field_text_motion; | 2897 | extern Lisp_Object Vinhibit_field_text_motion; |
| 2986 | extern Lisp_Object Vsystem_name; | 2898 | extern Lisp_Object Vsystem_name; |
| 2987 | extern Lisp_Object Vuser_login_name; | 2899 | extern Lisp_Object Vuser_login_name; |
| 2988 | EXFUN (Fpropertize, MANY); | ||
| 2989 | EXFUN (Fcurrent_message, 0); | 2900 | EXFUN (Fcurrent_message, 0); |
| 2990 | EXFUN (Fgoto_char, 1); | 2901 | EXFUN (Fgoto_char, 1); |
| 2991 | EXFUN (Fpoint_min_marker, 0); | ||
| 2992 | EXFUN (Fpoint_max_marker, 0); | 2902 | EXFUN (Fpoint_max_marker, 0); |
| 2993 | EXFUN (Fpoint_min, 0); | ||
| 2994 | EXFUN (Fpoint_max, 0); | ||
| 2995 | EXFUN (Fpoint, 0); | 2903 | EXFUN (Fpoint, 0); |
| 2996 | EXFUN (Fpoint_marker, 0); | 2904 | EXFUN (Fpoint_marker, 0); |
| 2997 | EXFUN (Fmark_marker, 0); | ||
| 2998 | EXFUN (Fline_beginning_position, 1); | 2905 | EXFUN (Fline_beginning_position, 1); |
| 2999 | EXFUN (Fline_end_position, 1); | 2906 | EXFUN (Fline_end_position, 1); |
| 3000 | EXFUN (Ffollowing_char, 0); | 2907 | EXFUN (Ffollowing_char, 0); |
| 3001 | EXFUN (Fprevious_char, 0); | 2908 | EXFUN (Fprevious_char, 0); |
| 3002 | EXFUN (Fchar_after, 1); | 2909 | EXFUN (Fchar_after, 1); |
| 3003 | EXFUN (Finsert, MANY); | 2910 | EXFUN (Finsert, MANY); |
| 3004 | EXFUN (Finsert_and_inherit, MANY); | ||
| 3005 | EXFUN (Finsert_before_markers, MANY); | ||
| 3006 | EXFUN (Finsert_buffer_substring, 3); | ||
| 3007 | EXFUN (Finsert_char, 3); | 2911 | EXFUN (Finsert_char, 3); |
| 3008 | extern void insert1 (Lisp_Object); | 2912 | extern void insert1 (Lisp_Object); |
| 3009 | EXFUN (Feolp, 0); | 2913 | EXFUN (Feolp, 0); |
| @@ -3033,11 +2937,7 @@ extern Lisp_Object make_buffer_string_both (EMACS_INT, EMACS_INT, EMACS_INT, | |||
| 3033 | extern void init_editfns (void); | 2937 | extern void init_editfns (void); |
| 3034 | extern void syms_of_editfns (void); | 2938 | extern void syms_of_editfns (void); |
| 3035 | EXFUN (Fconstrain_to_field, 5); | 2939 | EXFUN (Fconstrain_to_field, 5); |
| 3036 | EXFUN (Ffield_string, 1); | ||
| 3037 | EXFUN (Fdelete_field, 1); | ||
| 3038 | EXFUN (Ffield_beginning, 3); | ||
| 3039 | EXFUN (Ffield_end, 3); | 2940 | EXFUN (Ffield_end, 3); |
| 3040 | EXFUN (Ffield_string_no_properties, 1); | ||
| 3041 | extern void set_time_zone_rule (const char *); | 2941 | extern void set_time_zone_rule (const char *); |
| 3042 | 2942 | ||
| 3043 | /* Defined in buffer.c */ | 2943 | /* Defined in buffer.c */ |
| @@ -3046,7 +2946,6 @@ extern void nsberror (Lisp_Object) NO_RETURN; | |||
| 3046 | EXFUN (Fset_buffer_multibyte, 1); | 2946 | EXFUN (Fset_buffer_multibyte, 1); |
| 3047 | EXFUN (Foverlay_start, 1); | 2947 | EXFUN (Foverlay_start, 1); |
| 3048 | EXFUN (Foverlay_end, 1); | 2948 | EXFUN (Foverlay_end, 1); |
| 3049 | EXFUN (Foverlay_buffer, 1); | ||
| 3050 | extern void adjust_overlays_for_insert (EMACS_INT, EMACS_INT); | 2949 | extern void adjust_overlays_for_insert (EMACS_INT, EMACS_INT); |
| 3051 | extern void adjust_overlays_for_delete (EMACS_INT, EMACS_INT); | 2950 | extern void adjust_overlays_for_delete (EMACS_INT, EMACS_INT); |
| 3052 | extern void fix_start_end_in_overlays (EMACS_INT, EMACS_INT); | 2951 | extern void fix_start_end_in_overlays (EMACS_INT, EMACS_INT); |
| @@ -3054,12 +2953,11 @@ extern void report_overlay_modification (Lisp_Object, Lisp_Object, int, | |||
| 3054 | Lisp_Object, Lisp_Object, Lisp_Object); | 2953 | Lisp_Object, Lisp_Object, Lisp_Object); |
| 3055 | extern int overlay_touches_p (EMACS_INT); | 2954 | extern int overlay_touches_p (EMACS_INT); |
| 3056 | extern Lisp_Object Vbuffer_alist, Vinhibit_read_only; | 2955 | extern Lisp_Object Vbuffer_alist, Vinhibit_read_only; |
| 3057 | EXFUN (Fbuffer_list, 1); | ||
| 3058 | EXFUN (Fget_buffer, 1); | 2956 | EXFUN (Fget_buffer, 1); |
| 3059 | EXFUN (Fget_buffer_create, 1); | 2957 | EXFUN (Fget_buffer_create, 1); |
| 3060 | EXFUN (Fgenerate_new_buffer_name, 2); | 2958 | EXFUN (Fgenerate_new_buffer_name, 2); |
| 3061 | EXFUN (Fset_buffer, 1); | 2959 | EXFUN (Fset_buffer, 1); |
| 3062 | EXFUN (set_buffer_if_live, 1); | 2960 | extern Lisp_Object set_buffer_if_live (Lisp_Object); |
| 3063 | EXFUN (Fbarf_if_buffer_read_only, 0); | 2961 | EXFUN (Fbarf_if_buffer_read_only, 0); |
| 3064 | EXFUN (Fcurrent_buffer, 0); | 2962 | EXFUN (Fcurrent_buffer, 0); |
| 3065 | EXFUN (Fswitch_to_buffer, 2); | 2963 | EXFUN (Fswitch_to_buffer, 2); |
| @@ -3069,7 +2967,6 @@ EXFUN (Fbuffer_modified_p, 1); | |||
| 3069 | EXFUN (Fset_buffer_modified_p, 1); | 2967 | EXFUN (Fset_buffer_modified_p, 1); |
| 3070 | EXFUN (Fkill_buffer, 1); | 2968 | EXFUN (Fkill_buffer, 1); |
| 3071 | EXFUN (Fkill_all_local_variables, 0); | 2969 | EXFUN (Fkill_all_local_variables, 0); |
| 3072 | EXFUN (Fbuffer_disable_undo, 1); | ||
| 3073 | EXFUN (Fbuffer_enable_undo, 1); | 2970 | EXFUN (Fbuffer_enable_undo, 1); |
| 3074 | EXFUN (Ferase_buffer, 0); | 2971 | EXFUN (Ferase_buffer, 0); |
| 3075 | extern Lisp_Object Qoverlayp; | 2972 | extern Lisp_Object Qoverlayp; |
| @@ -3111,7 +3008,6 @@ extern Lisp_Object Qinsert_file_contents; | |||
| 3111 | extern Lisp_Object Vauto_save_list_file_name; | 3008 | extern Lisp_Object Vauto_save_list_file_name; |
| 3112 | EXFUN (Ffind_file_name_handler, 2); | 3009 | EXFUN (Ffind_file_name_handler, 2); |
| 3113 | EXFUN (Ffile_name_as_directory, 1); | 3010 | EXFUN (Ffile_name_as_directory, 1); |
| 3114 | EXFUN (Fmake_temp_name, 1); | ||
| 3115 | EXFUN (Fexpand_file_name, 2); | 3011 | EXFUN (Fexpand_file_name, 2); |
| 3116 | EXFUN (Ffile_name_nondirectory, 1); | 3012 | EXFUN (Ffile_name_nondirectory, 1); |
| 3117 | EXFUN (Fsubstitute_in_file_name, 1); | 3013 | EXFUN (Fsubstitute_in_file_name, 1); |
| @@ -3151,7 +3047,6 @@ EXFUN (Fset_match_data, 2); | |||
| 3151 | EXFUN (Fmatch_beginning, 1); | 3047 | EXFUN (Fmatch_beginning, 1); |
| 3152 | EXFUN (Fmatch_end, 1); | 3048 | EXFUN (Fmatch_end, 1); |
| 3153 | extern void record_unwind_save_match_data (void); | 3049 | extern void record_unwind_save_match_data (void); |
| 3154 | EXFUN (Flooking_at, 1); | ||
| 3155 | extern int fast_string_match (Lisp_Object, Lisp_Object); | 3050 | extern int fast_string_match (Lisp_Object, Lisp_Object); |
| 3156 | extern int fast_c_string_match_ignore_case (Lisp_Object, const char *); | 3051 | extern int fast_c_string_match_ignore_case (Lisp_Object, const char *); |
| 3157 | extern int fast_string_match_ignore_case (Lisp_Object, Lisp_Object); | 3052 | extern int fast_string_match_ignore_case (Lisp_Object, Lisp_Object); |
| @@ -3185,10 +3080,8 @@ EXFUN (Fread_buffer, 3); | |||
| 3185 | EXFUN (Fread_minibuffer, 2); | 3080 | EXFUN (Fread_minibuffer, 2); |
| 3186 | EXFUN (Feval_minibuffer, 2); | 3081 | EXFUN (Feval_minibuffer, 2); |
| 3187 | EXFUN (Fread_string, 5); | 3082 | EXFUN (Fread_string, 5); |
| 3188 | EXFUN (Fread_no_blanks_input, 3); | ||
| 3189 | EXFUN (Fassoc_string, 3); | 3083 | EXFUN (Fassoc_string, 3); |
| 3190 | extern Lisp_Object get_minibuffer (int); | 3084 | extern Lisp_Object get_minibuffer (int); |
| 3191 | extern void temp_echo_area_glyphs (Lisp_Object); | ||
| 3192 | extern void init_minibuf_once (void); | 3085 | extern void init_minibuf_once (void); |
| 3193 | extern void syms_of_minibuf (void); | 3086 | extern void syms_of_minibuf (void); |
| 3194 | 3087 | ||
| @@ -3199,7 +3092,6 @@ extern Lisp_Object Qwhen; | |||
| 3199 | extern Lisp_Object Vcommand_history; | 3092 | extern Lisp_Object Vcommand_history; |
| 3200 | extern Lisp_Object Vmark_even_if_inactive; | 3093 | extern Lisp_Object Vmark_even_if_inactive; |
| 3201 | extern Lisp_Object Qcall_interactively, Qmouse_leave_buffer_hook; | 3094 | extern Lisp_Object Qcall_interactively, Qmouse_leave_buffer_hook; |
| 3202 | EXFUN (Fcall_interactively, 3); | ||
| 3203 | EXFUN (Fprefix_numeric_value, 1); | 3095 | EXFUN (Fprefix_numeric_value, 1); |
| 3204 | extern void syms_of_callint (void); | 3096 | extern void syms_of_callint (void); |
| 3205 | 3097 | ||
| @@ -3208,7 +3100,6 @@ extern void syms_of_callint (void); | |||
| 3208 | extern Lisp_Object Qidentity; | 3100 | extern Lisp_Object Qidentity; |
| 3209 | EXFUN (Fdowncase, 1); | 3101 | EXFUN (Fdowncase, 1); |
| 3210 | EXFUN (Fupcase, 1); | 3102 | EXFUN (Fupcase, 1); |
| 3211 | EXFUN (Fcapitalize, 1); | ||
| 3212 | EXFUN (Fupcase_region, 2); | 3103 | EXFUN (Fupcase_region, 2); |
| 3213 | EXFUN (Fupcase_initials, 1); | 3104 | EXFUN (Fupcase_initials, 1); |
| 3214 | EXFUN (Fupcase_initials_region, 2); | 3105 | EXFUN (Fupcase_initials_region, 2); |
| @@ -3240,10 +3131,7 @@ extern int input_pending; | |||
| 3240 | EXFUN (Fdiscard_input, 0); | 3131 | EXFUN (Fdiscard_input, 0); |
| 3241 | EXFUN (Frecursive_edit, 0); | 3132 | EXFUN (Frecursive_edit, 0); |
| 3242 | EXFUN (Ftop_level, 0) NO_RETURN; | 3133 | EXFUN (Ftop_level, 0) NO_RETURN; |
| 3243 | EXFUN (Fexit_recursive_edit, 0) NO_RETURN; | ||
| 3244 | EXFUN (Fabort_recursive_edit, 0) NO_RETURN; | ||
| 3245 | EXFUN (Fcommand_execute, 4); | 3134 | EXFUN (Fcommand_execute, 4); |
| 3246 | EXFUN (Finput_pending_p, 0); | ||
| 3247 | extern Lisp_Object menu_bar_items (Lisp_Object); | 3135 | extern Lisp_Object menu_bar_items (Lisp_Object); |
| 3248 | extern Lisp_Object tool_bar_items (Lisp_Object, int *); | 3136 | extern Lisp_Object tool_bar_items (Lisp_Object, int *); |
| 3249 | extern Lisp_Object Qvertical_scroll_bar; | 3137 | extern Lisp_Object Qvertical_scroll_bar; |
| @@ -3251,9 +3139,6 @@ extern void discard_mouse_events (void); | |||
| 3251 | EXFUN (Fevent_convert_list, 1); | 3139 | EXFUN (Fevent_convert_list, 1); |
| 3252 | EXFUN (Fread_key_sequence, 5); | 3140 | EXFUN (Fread_key_sequence, 5); |
| 3253 | EXFUN (Fset_input_interrupt_mode, 1); | 3141 | EXFUN (Fset_input_interrupt_mode, 1); |
| 3254 | EXFUN (Fset_output_flow_control, 2); | ||
| 3255 | EXFUN (Fset_input_meta_mode, 2); | ||
| 3256 | EXFUN (Fset_quit_char, 1); | ||
| 3257 | EXFUN (Fset_input_mode, 4); | 3142 | EXFUN (Fset_input_mode, 4); |
| 3258 | extern Lisp_Object pending_funcalls; | 3143 | extern Lisp_Object pending_funcalls; |
| 3259 | extern int detect_input_pending (void); | 3144 | extern int detect_input_pending (void); |
| @@ -3273,7 +3158,6 @@ extern char *push_key_description (unsigned int, char *, int); | |||
| 3273 | /* Defined in indent.c */ | 3158 | /* Defined in indent.c */ |
| 3274 | EXFUN (Fvertical_motion, 2); | 3159 | EXFUN (Fvertical_motion, 2); |
| 3275 | EXFUN (Findent_to, 2); | 3160 | EXFUN (Findent_to, 2); |
| 3276 | EXFUN (Fcurrent_column, 0); | ||
| 3277 | EXFUN (Fmove_to_column, 2); | 3161 | EXFUN (Fmove_to_column, 2); |
| 3278 | extern double current_column (void); | 3162 | extern double current_column (void); |
| 3279 | extern void invalidate_current_column (void); | 3163 | extern void invalidate_current_column (void); |
| @@ -3292,36 +3176,21 @@ extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object); | |||
| 3292 | extern Lisp_Object do_switch_frame (Lisp_Object, int, int, Lisp_Object); | 3176 | extern Lisp_Object do_switch_frame (Lisp_Object, int, int, Lisp_Object); |
| 3293 | extern Lisp_Object get_frame_param (struct frame *, Lisp_Object); | 3177 | extern Lisp_Object get_frame_param (struct frame *, Lisp_Object); |
| 3294 | extern Lisp_Object frame_buffer_predicate (Lisp_Object); | 3178 | extern Lisp_Object frame_buffer_predicate (Lisp_Object); |
| 3295 | EXFUN (Fframep, 1); | ||
| 3296 | EXFUN (Fselect_frame, 2); | 3179 | EXFUN (Fselect_frame, 2); |
| 3297 | EXFUN (Fselected_frame, 0); | 3180 | EXFUN (Fselected_frame, 0); |
| 3298 | EXFUN (Fwindow_frame, 1); | 3181 | EXFUN (Fwindow_frame, 1); |
| 3299 | EXFUN (Fframe_root_window, 1); | 3182 | EXFUN (Fframe_root_window, 1); |
| 3300 | EXFUN (Fframe_first_window, 1); | 3183 | EXFUN (Fframe_first_window, 1); |
| 3301 | EXFUN (Fframe_selected_window, 1); | ||
| 3302 | EXFUN (Fframe_list, 0); | ||
| 3303 | EXFUN (Fnext_frame, 2); | ||
| 3304 | EXFUN (Fdelete_frame, 2); | ||
| 3305 | EXFUN (Fset_mouse_position, 3); | ||
| 3306 | EXFUN (Fmake_frame_visible, 1); | 3184 | EXFUN (Fmake_frame_visible, 1); |
| 3307 | EXFUN (Fmake_frame_invisible, 2); | ||
| 3308 | EXFUN (Ficonify_frame, 1); | 3185 | EXFUN (Ficonify_frame, 1); |
| 3309 | EXFUN (Fframe_visible_p, 1); | ||
| 3310 | EXFUN (Fvisible_frame_list, 0); | ||
| 3311 | EXFUN (Fframe_parameter, 2); | 3186 | EXFUN (Fframe_parameter, 2); |
| 3312 | EXFUN (Fframe_parameters, 1); | ||
| 3313 | EXFUN (Fmodify_frame_parameters, 2); | 3187 | EXFUN (Fmodify_frame_parameters, 2); |
| 3314 | EXFUN (Fset_frame_height, 3); | ||
| 3315 | EXFUN (Fset_frame_width, 3); | ||
| 3316 | EXFUN (Fset_frame_size, 3); | ||
| 3317 | EXFUN (Fset_frame_position, 3); | ||
| 3318 | EXFUN (Fraise_frame, 1); | 3188 | EXFUN (Fraise_frame, 1); |
| 3319 | EXFUN (Fredirect_frame_focus, 2); | 3189 | EXFUN (Fredirect_frame_focus, 2); |
| 3320 | EXFUN (Fset_frame_selected_window, 3); | 3190 | EXFUN (Fset_frame_selected_window, 3); |
| 3321 | extern Lisp_Object frame_buffer_list (Lisp_Object); | 3191 | extern Lisp_Object frame_buffer_list (Lisp_Object); |
| 3322 | extern void frames_discard_buffer (Lisp_Object); | 3192 | extern void frames_discard_buffer (Lisp_Object); |
| 3323 | extern void set_frame_buffer_list (Lisp_Object, Lisp_Object); | 3193 | extern void set_frame_buffer_list (Lisp_Object, Lisp_Object); |
| 3324 | extern void frames_bury_buffer (Lisp_Object); | ||
| 3325 | extern void syms_of_frame (void); | 3194 | extern void syms_of_frame (void); |
| 3326 | 3195 | ||
| 3327 | /* Defined in emacs.c */ | 3196 | /* Defined in emacs.c */ |
| @@ -3370,10 +3239,8 @@ extern int running_asynch_code; | |||
| 3370 | extern Lisp_Object QCtype, Qlocal; | 3239 | extern Lisp_Object QCtype, Qlocal; |
| 3371 | EXFUN (Fget_process, 1); | 3240 | EXFUN (Fget_process, 1); |
| 3372 | EXFUN (Fget_buffer_process, 1); | 3241 | EXFUN (Fget_buffer_process, 1); |
| 3373 | EXFUN (Fprocessp, 1); | ||
| 3374 | EXFUN (Fprocess_status, 1); | 3242 | EXFUN (Fprocess_status, 1); |
| 3375 | EXFUN (Fkill_process, 2); | 3243 | EXFUN (Fkill_process, 2); |
| 3376 | EXFUN (Fprocess_send_eof, 1); | ||
| 3377 | EXFUN (Fwaiting_for_user_input_p, 0); | 3244 | EXFUN (Fwaiting_for_user_input_p, 0); |
| 3378 | extern Lisp_Object Qprocessp; | 3245 | extern Lisp_Object Qprocessp; |
| 3379 | extern void kill_buffer_processes (Lisp_Object); | 3246 | extern void kill_buffer_processes (Lisp_Object); |
| @@ -3406,7 +3273,6 @@ extern void syms_of_callproc (void); | |||
| 3406 | extern Lisp_Object Qfunction_documentation; | 3273 | extern Lisp_Object Qfunction_documentation; |
| 3407 | extern Lisp_Object Vdoc_file_name; | 3274 | extern Lisp_Object Vdoc_file_name; |
| 3408 | EXFUN (Fsubstitute_command_keys, 1); | 3275 | EXFUN (Fsubstitute_command_keys, 1); |
| 3409 | EXFUN (Fdocumentation, 2); | ||
| 3410 | EXFUN (Fdocumentation_property, 3); | 3276 | EXFUN (Fdocumentation_property, 3); |
| 3411 | extern Lisp_Object read_doc_string (Lisp_Object); | 3277 | extern Lisp_Object read_doc_string (Lisp_Object); |
| 3412 | extern Lisp_Object get_doc_string (Lisp_Object, int, int); | 3278 | extern Lisp_Object get_doc_string (Lisp_Object, int, int); |
| @@ -3458,10 +3324,6 @@ EXFUN (Fput_text_property, 5); | |||
| 3458 | EXFUN (Fprevious_char_property_change, 2); | 3324 | EXFUN (Fprevious_char_property_change, 2); |
| 3459 | EXFUN (Fnext_char_property_change, 2); | 3325 | EXFUN (Fnext_char_property_change, 2); |
| 3460 | extern void report_interval_modification (Lisp_Object, Lisp_Object); | 3326 | extern void report_interval_modification (Lisp_Object, Lisp_Object); |
| 3461 | extern Lisp_Object next_single_char_property_change (Lisp_Object, | ||
| 3462 | Lisp_Object, | ||
| 3463 | Lisp_Object, | ||
| 3464 | Lisp_Object); | ||
| 3465 | 3327 | ||
| 3466 | /* Defined in menu.c */ | 3328 | /* Defined in menu.c */ |
| 3467 | extern void syms_of_menu (void); | 3329 | extern void syms_of_menu (void); |
| @@ -3516,7 +3378,6 @@ extern int memcmp (void *, void *, size_t); | |||
| 3516 | /* Defined in filelock.c */ | 3378 | /* Defined in filelock.c */ |
| 3517 | extern Lisp_Object Vtemporary_file_directory; | 3379 | extern Lisp_Object Vtemporary_file_directory; |
| 3518 | EXFUN (Funlock_buffer, 0); | 3380 | EXFUN (Funlock_buffer, 0); |
| 3519 | EXFUN (Ffile_locked_p, 1); | ||
| 3520 | extern void unlock_all_files (void); | 3381 | extern void unlock_all_files (void); |
| 3521 | extern void lock_file (Lisp_Object); | 3382 | extern void lock_file (Lisp_Object); |
| 3522 | extern void unlock_file (Lisp_Object); | 3383 | extern void unlock_file (Lisp_Object); |
| @@ -3560,14 +3421,11 @@ extern void init_font (void); | |||
| 3560 | #ifdef HAVE_WINDOW_SYSTEM | 3421 | #ifdef HAVE_WINDOW_SYSTEM |
| 3561 | /* Defined in fontset.c */ | 3422 | /* Defined in fontset.c */ |
| 3562 | extern void syms_of_fontset (void); | 3423 | extern void syms_of_fontset (void); |
| 3563 | EXFUN (Fset_fontset_font, 5); | ||
| 3564 | EXFUN (Fnew_fontset, 2); | ||
| 3565 | 3424 | ||
| 3566 | /* Defined in xfns.c, w32fns.c, or macfns.c */ | 3425 | /* Defined in xfns.c, w32fns.c, or macfns.c */ |
| 3567 | extern Lisp_Object Qfont_param; | 3426 | extern Lisp_Object Qfont_param; |
| 3568 | extern Lisp_Object Vx_no_window_manager; | 3427 | extern Lisp_Object Vx_no_window_manager; |
| 3569 | EXFUN (Fxw_display_color_p, 1); | 3428 | EXFUN (Fxw_display_color_p, 1); |
| 3570 | EXFUN (Fx_file_dialog, 5); | ||
| 3571 | EXFUN (Fx_focus_frame, 1); | 3429 | EXFUN (Fx_focus_frame, 1); |
| 3572 | #endif | 3430 | #endif |
| 3573 | 3431 | ||
diff --git a/src/lread.c b/src/lread.c index 811e83fe2ae..ea8c0416518 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -650,7 +650,7 @@ static void substitute_in_interval (INTERVAL, Lisp_Object); | |||
| 650 | If SECONDS is a number, we wait that many seconds for input, and | 650 | If SECONDS is a number, we wait that many seconds for input, and |
| 651 | return Qnil if no input arrives within that time. */ | 651 | return Qnil if no input arrives within that time. */ |
| 652 | 652 | ||
| 653 | Lisp_Object | 653 | static Lisp_Object |
| 654 | read_filtered_event (int no_switch_frame, int ascii_required, | 654 | read_filtered_event (int no_switch_frame, int ascii_required, |
| 655 | int error_nonascii, int input_method, Lisp_Object seconds) | 655 | int error_nonascii, int input_method, Lisp_Object seconds) |
| 656 | { | 656 | { |
diff --git a/src/print.c b/src/print.c index 3f89b407e7c..487fe91e475 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -540,11 +540,11 @@ write_string (const char *data, int size) | |||
| 540 | PRINTFINISH; | 540 | PRINTFINISH; |
| 541 | } | 541 | } |
| 542 | 542 | ||
| 543 | /* Used from outside of print.c to print a block of SIZE | 543 | /* Used to print a block of SIZE single-byte chars at DATA on a |
| 544 | single-byte chars at DATA on a specified stream PRINTCHARFUN. | 544 | specified stream PRINTCHARFUN. |
| 545 | Do not use this on the contents of a Lisp string. */ | 545 | Do not use this on the contents of a Lisp string. */ |
| 546 | 546 | ||
| 547 | void | 547 | static void |
| 548 | write_string_1 (const char *data, int size, Lisp_Object printcharfun) | 548 | write_string_1 (const char *data, int size, Lisp_Object printcharfun) |
| 549 | { | 549 | { |
| 550 | PRINTDECLARE; | 550 | PRINTDECLARE; |
diff --git a/src/syntax.c b/src/syntax.c index 567f01385d7..44c5d9fa63c 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -167,7 +167,6 @@ int syntax_prefix_flag_p (int c) | |||
| 167 | 167 | ||
| 168 | struct gl_state_s gl_state; /* Global state of syntax parser. */ | 168 | struct gl_state_s gl_state; /* Global state of syntax parser. */ |
| 169 | 169 | ||
| 170 | INTERVAL interval_of (int, Lisp_Object); | ||
| 171 | #define INTERVALS_AT_ONCE 10 /* 1 + max-number of intervals | 170 | #define INTERVALS_AT_ONCE 10 /* 1 + max-number of intervals |
| 172 | to scan to property-change. */ | 171 | to scan to property-change. */ |
| 173 | 172 | ||
diff --git a/src/syntax.h b/src/syntax.h index 15e6c729308..433372f6bc1 100644 --- a/src/syntax.h +++ b/src/syntax.h | |||
| @@ -299,7 +299,6 @@ struct gl_state_s | |||
| 299 | 299 | ||
| 300 | extern struct gl_state_s gl_state; | 300 | extern struct gl_state_s gl_state; |
| 301 | extern int parse_sexp_lookup_properties; | 301 | extern int parse_sexp_lookup_properties; |
| 302 | extern INTERVAL interval_of (int, Lisp_Object); | ||
| 303 | 302 | ||
| 304 | extern EMACS_INT scan_words (EMACS_INT, EMACS_INT); | 303 | extern EMACS_INT scan_words (EMACS_INT, EMACS_INT); |
| 305 | 304 | ||
diff --git a/src/termhooks.h b/src/termhooks.h index e71c1159f0c..080bac48d40 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -647,7 +647,6 @@ extern struct terminal *terminal_list; | |||
| 647 | /* Return true if the terminal device is not suspended. */ | 647 | /* Return true if the terminal device is not suspended. */ |
| 648 | #define TERMINAL_ACTIVE_P(d) (((d)->type != output_termcap && (d)->type !=output_msdos_raw) || (d)->display_info.tty->input) | 648 | #define TERMINAL_ACTIVE_P(d) (((d)->type != output_termcap && (d)->type !=output_msdos_raw) || (d)->display_info.tty->input) |
| 649 | 649 | ||
| 650 | extern Lisp_Object get_terminal_param (struct terminal *, Lisp_Object); | ||
| 651 | extern struct terminal *get_terminal (Lisp_Object terminal, int); | 650 | extern struct terminal *get_terminal (Lisp_Object terminal, int); |
| 652 | extern struct terminal *create_terminal (void); | 651 | extern struct terminal *create_terminal (void); |
| 653 | extern void delete_terminal (struct terminal *); | 652 | extern void delete_terminal (struct terminal *); |
diff --git a/src/terminal.c b/src/terminal.c index bda6c307a10..a7e2ea2e052 100644 --- a/src/terminal.c +++ b/src/terminal.c | |||
| @@ -429,16 +429,6 @@ selected frame's terminal). */) | |||
| 429 | 429 | ||
| 430 | 430 | ||
| 431 | 431 | ||
| 432 | /* Return the value of terminal parameter PARAM in terminal T. */ | ||
| 433 | Lisp_Object | ||
| 434 | get_terminal_param (struct terminal *t, Lisp_Object param) | ||
| 435 | { | ||
| 436 | Lisp_Object tem = Fassq (param, t->param_alist); | ||
| 437 | if (EQ (tem, Qnil)) | ||
| 438 | return tem; | ||
| 439 | return Fcdr (tem); | ||
| 440 | } | ||
| 441 | |||
| 442 | /* Set the value of terminal parameter PARAMETER in terminal D to VALUE. | 432 | /* Set the value of terminal parameter PARAMETER in terminal D to VALUE. |
| 443 | Return the previous value. */ | 433 | Return the previous value. */ |
| 444 | 434 | ||
diff --git a/src/window.c b/src/window.c index e66fde9ec02..c92196d7dc1 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -78,6 +78,9 @@ static Lisp_Object next_window (Lisp_Object, Lisp_Object, | |||
| 78 | Lisp_Object, int); | 78 | Lisp_Object, int); |
| 79 | static void decode_next_window_args (Lisp_Object *, Lisp_Object *, | 79 | static void decode_next_window_args (Lisp_Object *, Lisp_Object *, |
| 80 | Lisp_Object *); | 80 | Lisp_Object *); |
| 81 | static void foreach_window (struct frame *, | ||
| 82 | int (* fn) (struct window *, void *), | ||
| 83 | void *); | ||
| 81 | static int foreach_window_1 (struct window *, | 84 | static int foreach_window_1 (struct window *, |
| 82 | int (* fn) (struct window *, void *), | 85 | int (* fn) (struct window *, void *), |
| 83 | void *); | 86 | void *); |
| @@ -1425,6 +1428,8 @@ DEFUN ("set-window-display-table", Fset_window_display_table, Sset_window_displa | |||
| 1425 | return table; | 1428 | return table; |
| 1426 | } | 1429 | } |
| 1427 | 1430 | ||
| 1431 | static void delete_window (Lisp_Object); | ||
| 1432 | |||
| 1428 | /* Record info on buffer window w is displaying | 1433 | /* Record info on buffer window w is displaying |
| 1429 | when it is about to cease to display that buffer. */ | 1434 | when it is about to cease to display that buffer. */ |
| 1430 | static void | 1435 | static void |
| @@ -1548,7 +1553,7 @@ Signal an error when WINDOW is the only window on its frame. */) | |||
| 1548 | return Qnil; | 1553 | return Qnil; |
| 1549 | } | 1554 | } |
| 1550 | 1555 | ||
| 1551 | void | 1556 | static void |
| 1552 | delete_window (register Lisp_Object window) | 1557 | delete_window (register Lisp_Object window) |
| 1553 | { | 1558 | { |
| 1554 | register Lisp_Object tem, parent, sib; | 1559 | register Lisp_Object tem, parent, sib; |
| @@ -3958,14 +3963,14 @@ fixed size windows is not altered by this function. */) | |||
| 3958 | return Qnil; | 3963 | return Qnil; |
| 3959 | } | 3964 | } |
| 3960 | 3965 | ||
| 3961 | int | 3966 | static int |
| 3962 | window_height (Lisp_Object window) | 3967 | window_height (Lisp_Object window) |
| 3963 | { | 3968 | { |
| 3964 | register struct window *p = XWINDOW (window); | 3969 | register struct window *p = XWINDOW (window); |
| 3965 | return WINDOW_TOTAL_LINES (p); | 3970 | return WINDOW_TOTAL_LINES (p); |
| 3966 | } | 3971 | } |
| 3967 | 3972 | ||
| 3968 | int | 3973 | static int |
| 3969 | window_width (Lisp_Object window) | 3974 | window_width (Lisp_Object window) |
| 3970 | { | 3975 | { |
| 3971 | register struct window *p = XWINDOW (window); | 3976 | register struct window *p = XWINDOW (window); |
| @@ -6817,8 +6822,9 @@ If PIXELS-P is non-nil, the return value is VSCROLL. */) | |||
| 6817 | first argument being a pointer to the leaf window, and with | 6822 | first argument being a pointer to the leaf window, and with |
| 6818 | additional argument USER_DATA. Stops when FN returns 0. */ | 6823 | additional argument USER_DATA. Stops when FN returns 0. */ |
| 6819 | 6824 | ||
| 6820 | void | 6825 | static void |
| 6821 | foreach_window (struct frame *f, int (*fn) (struct window *, void *), void *user_data) | 6826 | foreach_window (struct frame *f, int (*fn) (struct window *, void *), |
| 6827 | void *user_data) | ||
| 6822 | { | 6828 | { |
| 6823 | /* delete_frame may set FRAME_ROOT_WINDOW (f) to Qnil. */ | 6829 | /* delete_frame may set FRAME_ROOT_WINDOW (f) to Qnil. */ |
| 6824 | if (WINDOWP (FRAME_ROOT_WINDOW (f))) | 6830 | if (WINDOWP (FRAME_ROOT_WINDOW (f))) |
diff --git a/src/window.h b/src/window.h index c1148836d79..e49a2e65707 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -778,29 +778,18 @@ extern Lisp_Object Vmouse_event; | |||
| 778 | EXFUN (Fnext_window, 3); | 778 | EXFUN (Fnext_window, 3); |
| 779 | EXFUN (Fselect_window, 2); | 779 | EXFUN (Fselect_window, 2); |
| 780 | EXFUN (Fset_window_buffer, 3); | 780 | EXFUN (Fset_window_buffer, 3); |
| 781 | EXFUN (Fset_window_hscroll, 2); | ||
| 782 | EXFUN (Fwindow_hscroll, 1); | ||
| 783 | EXFUN (Fset_window_vscroll, 3); | 781 | EXFUN (Fset_window_vscroll, 3); |
| 784 | EXFUN (Fwindow_vscroll, 2); | ||
| 785 | EXFUN (Fset_window_margins, 3); | 782 | EXFUN (Fset_window_margins, 3); |
| 786 | EXFUN (Fwindow_live_p, 1); | ||
| 787 | EXFUN (Fset_window_point, 2); | 783 | EXFUN (Fset_window_point, 2); |
| 788 | extern Lisp_Object make_window (void); | 784 | extern Lisp_Object make_window (void); |
| 789 | extern void delete_window (Lisp_Object); | ||
| 790 | extern Lisp_Object window_from_coordinates (struct frame *, int, int, | 785 | extern Lisp_Object window_from_coordinates (struct frame *, int, int, |
| 791 | enum window_part *, int); | 786 | enum window_part *, int); |
| 792 | EXFUN (Fwindow_dedicated_p, 1); | 787 | EXFUN (Fwindow_dedicated_p, 1); |
| 793 | extern int window_height (Lisp_Object); | ||
| 794 | extern int window_width (Lisp_Object); | ||
| 795 | EXFUN (Fwindow_full_width_p, 1); | ||
| 796 | extern void set_window_height (Lisp_Object, int, int); | 788 | extern void set_window_height (Lisp_Object, int, int); |
| 797 | extern void set_window_width (Lisp_Object, int, int); | 789 | extern void set_window_width (Lisp_Object, int, int); |
| 798 | extern void change_window_heights (Lisp_Object, int); | 790 | extern void change_window_heights (Lisp_Object, int); |
| 799 | extern void delete_all_subwindows (struct window *); | 791 | extern void delete_all_subwindows (struct window *); |
| 800 | extern void freeze_window_starts (struct frame *, int); | 792 | extern void freeze_window_starts (struct frame *, int); |
| 801 | extern void foreach_window (struct frame *, | ||
| 802 | int (* fn) (struct window *, void *), | ||
| 803 | void *); | ||
| 804 | extern void grow_mini_window (struct window *, int); | 793 | extern void grow_mini_window (struct window *, int); |
| 805 | extern void shrink_mini_window (struct window *); | 794 | extern void shrink_mini_window (struct window *); |
| 806 | extern int window_relative_x_coord (struct window *, enum window_part, int); | 795 | extern int window_relative_x_coord (struct window *, enum window_part, int); |
| @@ -881,26 +870,19 @@ struct glyph *get_phys_cursor_glyph (struct window *w); | |||
| 881 | extern Lisp_Object Qwindowp, Qwindow_live_p; | 870 | extern Lisp_Object Qwindowp, Qwindow_live_p; |
| 882 | extern Lisp_Object Vwindow_list; | 871 | extern Lisp_Object Vwindow_list; |
| 883 | 872 | ||
| 884 | EXFUN (Fwindow_end, 2); | ||
| 885 | EXFUN (Fselected_window, 0); | 873 | EXFUN (Fselected_window, 0); |
| 886 | EXFUN (Fwindow_minibuffer_p, 1); | 874 | EXFUN (Fwindow_minibuffer_p, 1); |
| 887 | EXFUN (Fdelete_window, 1); | 875 | EXFUN (Fdelete_window, 1); |
| 888 | EXFUN (Fwindow_buffer, 1); | 876 | EXFUN (Fwindow_buffer, 1); |
| 889 | EXFUN (Fget_buffer_window, 2); | 877 | EXFUN (Fget_buffer_window, 2); |
| 890 | EXFUN (Fsave_window_excursion, UNEVALLED); | 878 | EXFUN (Fsave_window_excursion, UNEVALLED); |
| 891 | EXFUN (Fsplit_window, 3); | ||
| 892 | EXFUN (Fset_window_configuration, 1); | 879 | EXFUN (Fset_window_configuration, 1); |
| 893 | EXFUN (Fcurrent_window_configuration, 1); | 880 | EXFUN (Fcurrent_window_configuration, 1); |
| 894 | extern int compare_window_configurations (Lisp_Object, Lisp_Object, int); | 881 | extern int compare_window_configurations (Lisp_Object, Lisp_Object, int); |
| 895 | EXFUN (Fcoordinates_in_window_p, 2); | ||
| 896 | EXFUN (Fwindow_at, 3); | ||
| 897 | EXFUN (Fpos_visible_in_window_p, 3); | 882 | EXFUN (Fpos_visible_in_window_p, 3); |
| 898 | extern void mark_window_cursors_off (struct window *); | 883 | extern void mark_window_cursors_off (struct window *); |
| 899 | extern int window_internal_height (struct window *); | 884 | extern int window_internal_height (struct window *); |
| 900 | extern int window_internal_width (struct window *); | ||
| 901 | EXFUN (Frecenter, 1); | 885 | EXFUN (Frecenter, 1); |
| 902 | EXFUN (Fscroll_other_window, 1); | ||
| 903 | EXFUN (Fset_window_start, 3); | ||
| 904 | extern void temp_output_buffer_show (Lisp_Object); | 886 | extern void temp_output_buffer_show (Lisp_Object); |
| 905 | extern void replace_buffer_in_all_windows (Lisp_Object); | 887 | extern void replace_buffer_in_all_windows (Lisp_Object); |
| 906 | extern void init_window_once (void); | 888 | extern void init_window_once (void); |
diff --git a/src/xrdb.c b/src/xrdb.c index 90a85e287bb..8356ab8a45c 100644 --- a/src/xrdb.c +++ b/src/xrdb.c | |||
| @@ -76,8 +76,9 @@ char *x_customization_string; | |||
| 76 | /* Return the value of the emacs.customization (Emacs.Customization) | 76 | /* Return the value of the emacs.customization (Emacs.Customization) |
| 77 | resource, for later use in search path decoding. If we find no | 77 | resource, for later use in search path decoding. If we find no |
| 78 | such resource, return zero. */ | 78 | such resource, return zero. */ |
| 79 | char * | 79 | static char * |
| 80 | x_get_customization_string (XrmDatabase db, const char *name, const char *class) | 80 | x_get_customization_string (XrmDatabase db, const char *name, |
| 81 | const char *class) | ||
| 81 | { | 82 | { |
| 82 | char *full_name | 83 | char *full_name |
| 83 | = (char *) alloca (strlen (name) + sizeof ("customization") + 3); | 84 | = (char *) alloca (strlen (name) + sizeof ("customization") + 3); |
| @@ -609,8 +610,9 @@ x_load_resources (Display *display, const char *xrm_string, | |||
| 609 | /* Retrieve the value of the resource specified by NAME with class CLASS | 610 | /* Retrieve the value of the resource specified by NAME with class CLASS |
| 610 | and of type TYPE from database RDB. The value is returned in RET_VALUE. */ | 611 | and of type TYPE from database RDB. The value is returned in RET_VALUE. */ |
| 611 | 612 | ||
| 612 | int | 613 | static int |
| 613 | x_get_resource (XrmDatabase rdb, const char *name, const char *class, XrmRepresentation expected_type, XrmValue *ret_value) | 614 | x_get_resource (XrmDatabase rdb, const char *name, const char *class, |
| 615 | XrmRepresentation expected_type, XrmValue *ret_value) | ||
| 614 | { | 616 | { |
| 615 | XrmValue value; | 617 | XrmValue value; |
| 616 | XrmName namelist[100]; | 618 | XrmName namelist[100]; |
diff --git a/src/xsettings.h b/src/xsettings.h index 50819d456c8..d523140079c 100644 --- a/src/xsettings.h +++ b/src/xsettings.h | |||
| @@ -20,8 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | #ifndef XSETTINGS_H | 20 | #ifndef XSETTINGS_H |
| 21 | #define XSETTINGS_H | 21 | #define XSETTINGS_H |
| 22 | 22 | ||
| 23 | EXFUN (Ffont_get_system_font, 0); | ||
| 24 | EXFUN (Ffont_get_system_normal_font, 0); | ||
| 25 | EXFUN (Ftool_bar_get_system_style, 0); | 23 | EXFUN (Ftool_bar_get_system_style, 0); |
| 26 | 24 | ||
| 27 | extern void xsettings_initialize (struct x_display_info *dpyinfo); | 25 | extern void xsettings_initialize (struct x_display_info *dpyinfo); |
diff --git a/src/xterm.c b/src/xterm.c index 7b5b85b3651..32ab6950184 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -303,11 +303,34 @@ Lisp_Object Qx_gtk_map_stock; | |||
| 303 | /* Some functions take this as char *, not const char *. */ | 303 | /* Some functions take this as char *, not const char *. */ |
| 304 | static char emacs_class[] = EMACS_CLASS; | 304 | static char emacs_class[] = EMACS_CLASS; |
| 305 | 305 | ||
| 306 | /* Used in x_flush. */ | 306 | /* XEmbed implementation. */ |
| 307 | |||
| 308 | #define XEMBED_VERSION 0 | ||
| 309 | |||
| 310 | enum xembed_info | ||
| 311 | { | ||
| 312 | XEMBED_MAPPED = 1 << 0 | ||
| 313 | }; | ||
| 314 | |||
| 315 | enum xembed_message | ||
| 316 | { | ||
| 317 | XEMBED_EMBEDDED_NOTIFY = 0, | ||
| 318 | XEMBED_WINDOW_ACTIVATE = 1, | ||
| 319 | XEMBED_WINDOW_DEACTIVATE = 2, | ||
| 320 | XEMBED_REQUEST_FOCUS = 3, | ||
| 321 | XEMBED_FOCUS_IN = 4, | ||
| 322 | XEMBED_FOCUS_OUT = 5, | ||
| 323 | XEMBED_FOCUS_NEXT = 6, | ||
| 324 | XEMBED_FOCUS_PREV = 7, | ||
| 325 | |||
| 326 | XEMBED_MODALITY_ON = 10, | ||
| 327 | XEMBED_MODALITY_OFF = 11, | ||
| 328 | XEMBED_REGISTER_ACCELERATOR = 12, | ||
| 329 | XEMBED_UNREGISTER_ACCELERATOR = 13, | ||
| 330 | XEMBED_ACTIVATE_ACCELERATOR = 14 | ||
| 331 | }; | ||
| 307 | 332 | ||
| 308 | extern XrmDatabase x_load_resources (Display *, const char *, const char *, | 333 | /* Used in x_flush. */ |
| 309 | const char *); | ||
| 310 | extern int x_bitmap_mask (FRAME_PTR, int); | ||
| 311 | 334 | ||
| 312 | static int x_alloc_nearest_color_1 (Display *, Colormap, XColor *); | 335 | static int x_alloc_nearest_color_1 (Display *, Colormap, XColor *); |
| 313 | static void x_set_window_size_1 (struct frame *, int, int, int); | 336 | static void x_set_window_size_1 (struct frame *, int, int, int); |
| @@ -409,9 +432,8 @@ struct record event_record[100]; | |||
| 409 | 432 | ||
| 410 | int event_record_index; | 433 | int event_record_index; |
| 411 | 434 | ||
| 412 | record_event (locus, type) | 435 | void |
| 413 | char *locus; | 436 | record_event (char *locus, int type) |
| 414 | int type; | ||
| 415 | { | 437 | { |
| 416 | if (event_record_index == sizeof (event_record) / sizeof (struct record)) | 438 | if (event_record_index == sizeof (event_record) / sizeof (struct record)) |
| 417 | event_record_index = 0; | 439 | event_record_index = 0; |
| @@ -900,6 +922,7 @@ static void x_draw_relief_rect (struct frame *, int, int, int, int, | |||
| 900 | XRectangle *); | 922 | XRectangle *); |
| 901 | static void x_draw_box_rect (struct glyph_string *, int, int, int, int, | 923 | static void x_draw_box_rect (struct glyph_string *, int, int, int, int, |
| 902 | int, int, int, XRectangle *); | 924 | int, int, int, XRectangle *); |
| 925 | static void x_scroll_bar_clear (struct frame *); | ||
| 903 | 926 | ||
| 904 | #if GLYPH_DEBUG | 927 | #if GLYPH_DEBUG |
| 905 | static void x_check_font (struct frame *, struct font *); | 928 | static void x_check_font (struct frame *, struct font *); |
| @@ -1460,22 +1483,6 @@ x_alloc_nearest_color_for_widget (Widget widget, Colormap cmap, XColor *color) | |||
| 1460 | } | 1483 | } |
| 1461 | 1484 | ||
| 1462 | 1485 | ||
| 1463 | /* Allocate a color which is lighter or darker than *PIXEL by FACTOR | ||
| 1464 | or DELTA. Try a color with RGB values multiplied by FACTOR first. | ||
| 1465 | If this produces the same color as PIXEL, try a color where all RGB | ||
| 1466 | values have DELTA added. Return the allocated color in *PIXEL. | ||
| 1467 | DISPLAY is the X display, CMAP is the colormap to operate on. | ||
| 1468 | Value is non-zero if successful. */ | ||
| 1469 | |||
| 1470 | int | ||
| 1471 | x_alloc_lighter_color_for_widget (Widget widget, Display *display, Colormap cmap, | ||
| 1472 | unsigned long *pixel, double factor, int delta) | ||
| 1473 | { | ||
| 1474 | struct frame *f = x_frame_of_widget (widget); | ||
| 1475 | return x_alloc_lighter_color (f, display, cmap, pixel, factor, delta); | ||
| 1476 | } | ||
| 1477 | |||
| 1478 | |||
| 1479 | /* Structure specifying which arguments should be passed by Xt to | 1486 | /* Structure specifying which arguments should be passed by Xt to |
| 1480 | cvt_string_to_pixel. We want the widget's screen and colormap. */ | 1487 | cvt_string_to_pixel. We want the widget's screen and colormap. */ |
| 1481 | 1488 | ||
| @@ -5614,7 +5621,7 @@ x_scroll_bar_report_motion (FRAME_PTR *fp, Lisp_Object *bar_window, enum scroll_ | |||
| 5614 | Clear out the scroll bars, and ask for expose events, so we can | 5621 | Clear out the scroll bars, and ask for expose events, so we can |
| 5615 | redraw them. */ | 5622 | redraw them. */ |
| 5616 | 5623 | ||
| 5617 | void | 5624 | static void |
| 5618 | x_scroll_bar_clear (FRAME_PTR f) | 5625 | x_scroll_bar_clear (FRAME_PTR f) |
| 5619 | { | 5626 | { |
| 5620 | #ifndef USE_TOOLKIT_SCROLL_BARS | 5627 | #ifndef USE_TOOLKIT_SCROLL_BARS |
| @@ -5764,6 +5771,10 @@ event_handler_gdk (GdkXEvent *gxev, GdkEvent *ev, gpointer data) | |||
| 5764 | #endif /* USE_GTK */ | 5771 | #endif /* USE_GTK */ |
| 5765 | 5772 | ||
| 5766 | 5773 | ||
| 5774 | static void xembed_send_message (struct frame *f, Time time, | ||
| 5775 | enum xembed_message message, | ||
| 5776 | long detail, long data1, long data2); | ||
| 5777 | |||
| 5767 | /* Handles the XEvent EVENT on display DPYINFO. | 5778 | /* Handles the XEvent EVENT on display DPYINFO. |
| 5768 | 5779 | ||
| 5769 | *FINISH is X_EVENT_GOTO_OUT if caller should stop reading events. | 5780 | *FINISH is X_EVENT_GOTO_OUT if caller should stop reading events. |
| @@ -8987,7 +8998,7 @@ XTframe_raise_lower (FRAME_PTR f, int raise_flag) | |||
| 8987 | 8998 | ||
| 8988 | /* XEmbed implementation. */ | 8999 | /* XEmbed implementation. */ |
| 8989 | 9000 | ||
| 8990 | void | 9001 | static void |
| 8991 | xembed_set_info (struct frame *f, enum xembed_info flags) | 9002 | xembed_set_info (struct frame *f, enum xembed_info flags) |
| 8992 | { | 9003 | { |
| 8993 | unsigned long data[2]; | 9004 | unsigned long data[2]; |
| @@ -9001,7 +9012,7 @@ xembed_set_info (struct frame *f, enum xembed_info flags) | |||
| 9001 | 32, PropModeReplace, (unsigned char *) data, 2); | 9012 | 32, PropModeReplace, (unsigned char *) data, 2); |
| 9002 | } | 9013 | } |
| 9003 | 9014 | ||
| 9004 | void | 9015 | static void |
| 9005 | xembed_send_message (struct frame *f, Time time, enum xembed_message message, long int detail, long int data1, long int data2) | 9016 | xembed_send_message (struct frame *f, Time time, enum xembed_message message, long int detail, long int data1, long int data2) |
| 9006 | { | 9017 | { |
| 9007 | XEvent event; | 9018 | XEvent event; |
diff --git a/src/xterm.h b/src/xterm.h index fbfb043601a..5e4a37a5ddb 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -933,11 +933,7 @@ void x_handle_property_notify (XPropertyEvent *); | |||
| 933 | 933 | ||
| 934 | /* From xfns.c. */ | 934 | /* From xfns.c. */ |
| 935 | 935 | ||
| 936 | Lisp_Object display_x_get_resource (struct x_display_info *, | ||
| 937 | Lisp_Object, Lisp_Object, | ||
| 938 | Lisp_Object, Lisp_Object); | ||
| 939 | struct frame *check_x_frame (Lisp_Object); | 936 | struct frame *check_x_frame (Lisp_Object); |
| 940 | EXFUN (Fx_display_color_p, 1); | ||
| 941 | EXFUN (Fx_display_grayscale_p, 1); | 937 | EXFUN (Fx_display_grayscale_p, 1); |
| 942 | extern void x_free_gcs (struct frame *); | 938 | extern void x_free_gcs (struct frame *); |
| 943 | extern int gray_bitmap_width, gray_bitmap_height; | 939 | extern int gray_bitmap_width, gray_bitmap_height; |
| @@ -945,25 +941,11 @@ extern char *gray_bitmap_bits; | |||
| 945 | 941 | ||
| 946 | /* From xrdb.c. */ | 942 | /* From xrdb.c. */ |
| 947 | 943 | ||
| 948 | char *x_get_customization_string (XrmDatabase, const char *, const char *); | ||
| 949 | XrmDatabase x_load_resources (Display *, const char *, const char *, | 944 | XrmDatabase x_load_resources (Display *, const char *, const char *, |
| 950 | const char *); | 945 | const char *); |
| 951 | int x_get_resource (XrmDatabase, const char *, const char *, | ||
| 952 | XrmRepresentation, XrmValue *); | ||
| 953 | void x_delete_display (struct x_display_info *); | ||
| 954 | void x_make_frame_visible (struct frame *); | ||
| 955 | void x_iconify_frame (struct frame *); | ||
| 956 | void x_wm_set_size_hint (struct frame *, long, int); | ||
| 957 | int x_text_icon (struct frame *, const char *); | ||
| 958 | int x_bitmap_icon (struct frame *, Lisp_Object); | ||
| 959 | void x_set_window_size (struct frame *, int, int, int); | ||
| 960 | void x_wm_set_window_state (struct frame *, int); | ||
| 961 | int x_alloc_nearest_color (struct frame *, Colormap, XColor *); | ||
| 962 | 946 | ||
| 963 | /* Defined in xterm.c */ | 947 | /* Defined in xterm.c */ |
| 964 | 948 | ||
| 965 | extern void cancel_mouse_face (struct frame *); | ||
| 966 | extern void x_scroll_bar_clear (struct frame *); | ||
| 967 | extern int x_text_icon (struct frame *, const char *); | 949 | extern int x_text_icon (struct frame *, const char *); |
| 968 | extern int x_bitmap_icon (struct frame *, Lisp_Object); | 950 | extern int x_bitmap_icon (struct frame *, Lisp_Object); |
| 969 | extern void x_catch_errors (Display *); | 951 | extern void x_catch_errors (Display *); |
| @@ -992,11 +974,9 @@ extern void x_initialize (void); | |||
| 992 | extern unsigned long x_copy_color (struct frame *, unsigned long); | 974 | extern unsigned long x_copy_color (struct frame *, unsigned long); |
| 993 | #ifdef USE_X_TOOLKIT | 975 | #ifdef USE_X_TOOLKIT |
| 994 | extern XtAppContext Xt_app_con; | 976 | extern XtAppContext Xt_app_con; |
| 995 | extern int x_alloc_lighter_color_for_widget (Widget, Display*, Colormap, | ||
| 996 | unsigned long *, | ||
| 997 | double, int); | ||
| 998 | extern void x_activate_timeout_atimer (void); | 977 | extern void x_activate_timeout_atimer (void); |
| 999 | #endif | 978 | #endif |
| 979 | extern int x_alloc_nearest_color (struct frame *, Colormap, XColor *); | ||
| 1000 | extern void x_query_colors (struct frame *f, XColor *, int); | 980 | extern void x_query_colors (struct frame *f, XColor *, int); |
| 1001 | extern void x_query_color (struct frame *f, XColor *); | 981 | extern void x_query_color (struct frame *f, XColor *); |
| 1002 | extern void x_clear_area (Display *, Window, int, int, int, int, int); | 982 | extern void x_clear_area (Display *, Window, int, int, int, int, int); |
| @@ -1076,8 +1056,6 @@ extern void x_set_tool_bar_lines (struct frame *, Lisp_Object, Lisp_Object); | |||
| 1076 | 1056 | ||
| 1077 | /* Defined in xfaces.c */ | 1057 | /* Defined in xfaces.c */ |
| 1078 | 1058 | ||
| 1079 | extern int compute_glyph_face (struct frame *, int, int); | ||
| 1080 | extern int compute_glyph_face_1 (struct frame *, Lisp_Object, int); | ||
| 1081 | extern void x_free_dpy_colors (Display *, Screen *, Colormap, | 1059 | extern void x_free_dpy_colors (Display *, Screen *, Colormap, |
| 1082 | unsigned long *, int); | 1060 | unsigned long *, int); |
| 1083 | 1061 | ||
| @@ -1104,61 +1082,9 @@ extern int x_session_have_connection (void); | |||
| 1104 | extern void x_session_close (void); | 1082 | extern void x_session_close (void); |
| 1105 | #endif | 1083 | #endif |
| 1106 | 1084 | ||
| 1107 | /* XEmbed implementation. */ | ||
| 1108 | |||
| 1109 | #define XEMBED_VERSION 0 | ||
| 1110 | |||
| 1111 | enum xembed_info | ||
| 1112 | { | ||
| 1113 | XEMBED_MAPPED = 1 << 0 | ||
| 1114 | }; | ||
| 1115 | |||
| 1116 | enum xembed_message | ||
| 1117 | { | ||
| 1118 | XEMBED_EMBEDDED_NOTIFY = 0, | ||
| 1119 | XEMBED_WINDOW_ACTIVATE = 1, | ||
| 1120 | XEMBED_WINDOW_DEACTIVATE = 2, | ||
| 1121 | XEMBED_REQUEST_FOCUS = 3, | ||
| 1122 | XEMBED_FOCUS_IN = 4, | ||
| 1123 | XEMBED_FOCUS_OUT = 5, | ||
| 1124 | XEMBED_FOCUS_NEXT = 6, | ||
| 1125 | XEMBED_FOCUS_PREV = 7, | ||
| 1126 | |||
| 1127 | XEMBED_MODALITY_ON = 10, | ||
| 1128 | XEMBED_MODALITY_OFF = 11, | ||
| 1129 | XEMBED_REGISTER_ACCELERATOR = 12, | ||
| 1130 | XEMBED_UNREGISTER_ACCELERATOR = 13, | ||
| 1131 | XEMBED_ACTIVATE_ACCELERATOR = 14 | ||
| 1132 | }; | ||
| 1133 | |||
| 1134 | enum xembed_focus | ||
| 1135 | { | ||
| 1136 | XEMBED_FOCUS_CURRENT = 0, | ||
| 1137 | XEMBED_FOCUS_FIRST = 1, | ||
| 1138 | XEMBED_FOCUS_LAST = 2 | ||
| 1139 | }; | ||
| 1140 | |||
| 1141 | enum xembed_modifier | ||
| 1142 | { | ||
| 1143 | XEMBED_MODIFIER_SHIFT = 1 << 0, | ||
| 1144 | XEMBED_MODIFIER_CONTROL = 1 << 1, | ||
| 1145 | XEMBED_MODIFIER_ALT = 1 << 2, | ||
| 1146 | XEMBED_MODIFIER_SUPER = 1 << 3, | ||
| 1147 | XEMBED_MODIFIER_HYPER = 1 << 4 | ||
| 1148 | }; | ||
| 1149 | |||
| 1150 | enum xembed_accelerator | ||
| 1151 | { | ||
| 1152 | XEMBED_ACCELERATOR_OVERLOADED = 1 << 0 | ||
| 1153 | }; | ||
| 1154 | |||
| 1155 | /* Defined in xterm.c */ | 1085 | /* Defined in xterm.c */ |
| 1156 | 1086 | ||
| 1157 | extern Lisp_Object Qx_gtk_map_stock; | 1087 | extern Lisp_Object Qx_gtk_map_stock; |
| 1158 | extern void xembed_set_info (struct frame *f, enum xembed_info flags); | ||
| 1159 | extern void xembed_send_message (struct frame *f, Time time, | ||
| 1160 | enum xembed_message message, | ||
| 1161 | long detail, long data1, long data2); | ||
| 1162 | 1088 | ||
| 1163 | /* Is the frame embedded into another application? */ | 1089 | /* Is the frame embedded into another application? */ |
| 1164 | 1090 | ||