comparison src/ChangeLog @ 50355:98e3dfa61ee5

*** empty log message ***
author Kim F. Storm <storm@cua.dk>
date Mon, 31 Mar 2003 20:25:02 +0000
parents 3eefcc420a5a
children 9e5f53e63f8b
comparison
equal deleted inserted replaced
50354:e1b13a2263f8 50355:98e3dfa61ee5
1 2003-03-31 Kim F. Storm <storm@cua.dk>
2
3 The following changes consolidates the common code related to
4 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
5 files into frame.c.
6
7 * frame.c: Include blockinput.h.
8 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
9 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
10 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
11 related vars here.
12 (struct frame_parm_table, frame_parms): New table for describing
13 frame parameters and their associated Q-variable.
14 The order of the parameters corresponds to the sequence of the
15 frame_parm_handlers table in redisplay_interface.
16 (x_fullscreen_move, x_set_frame_parameters)
17 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
18 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
19 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
21 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
22 Generic functions for processing of frame parameters.
23 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
24 (display_x_get_resource, x_get_resource_string): Functions for
25 generic access to X resources.
26 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
27 (x_default_parameter, Fx_parse_geometry): Functions for generic
28 access to frame parameters.
29 (x_figure_window_size): Generic calculation of frame size. Fixed
30 to add space needed for tool bar. Also setup size_hint_flags.
31 (syms_of_frame): Intern and staticpro frame parameter variables.
32 Defvar_lisp Vx_resource_class and Vx_resource_name here.
33 Defsubr Sx_get_resource and Sx_parse_geometry.
34
35 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
36 parameter related vars defined in frame.c.
37 (EMACS_CLASS): Define here.
38 (enum FULLSCREEN_*): Define here.
39 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
40 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
41 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
42 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
43 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
44 (x_set_visibility, x_set_autoraise, x_set_autolower)
45 (x_set_unsplittable, x_set_vertical_scroll_bars)
46 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
47 (x_figure_window_size): Add prototypes.
48
49 * dispextern.h (frame_parm_handler): New typedef.
50 (struct redisplay_interface): New member frame_parm_handlers.
51 (enum resource_types): Move declaration here.
52 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
53 (x_default_parameter): Add prototypes.
54
55 * window.c: Remove extern decl for frame parameter vars.
56 (change_window_heights): New generic function;
57 replaces x_change_window_heights. All users changed.
58
59 * window.h (change_window_heights): Add prototype.
60
61 * xfaces.c: Remove extern decl for frame parameter vars.
62
63 * xterm.h (EMACS_CLASS): Remove. Use generic define.
64 (struct w32_display_info): Fix type of xrdb member.
65 (enum FULLSCREEN_*): Remove.
66 Remove prototypes for generic functions (in frame.h).
67
68 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
69 parameters now defined in frame.h and frame.c.
70 (Vx_resource_name): Remove. Use generic var.
71 (enum x_frame_parms): Remove (bogus, unused enum).
72 (check_x_display_info): Make non-static (for frame.c).
73 (struct x_frame_parm_table, x_frame_parms): Remove.
74 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
75 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
76 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
77 (x_change_window_heights, x_set_autoraise, x_set_autolower)
78 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
79 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
80 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
81 Remove. Use generic functions instead.
82 (enum resource_types): Remove.
83 (x_set_scroll_bar_default_width): New global function (for frame.c).
84 (Fx_create_frame): Depend on x_figure_window_size to add space for
85 toolbar and setup size_hint_flags.
86 (x_frame_parm_handlers): New table for redisplay_interface.
87 (syms_of_xfns): Don't intern/staticpro removed vars.
88
89 * xterm.c: Remove unnecessary extern declarations.
90 (x_fullscreen_adjust): Remove. Use generic instead.
91 (x_redisplay_interface): Add x_frame_parm_handlers member.
92
93 * w32gui.h (XrmDatabase): New (dummy) typedef.
94
95 * w32term.h (EMACS_CLASS): Remove. Use generic define.
96 (struct w32_display_info): Fix type of xrdb member.
97 (enum FULLSCREEN_*): Remove.
98 (x_fullscreen_adjust): Remove prototype.
99
100 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
101 parameters now defined in frame.h and frame.c.
102 (Vx_resource_name): Remove. Use generic var.
103 (enum x_frame_parms): Remove (bogus, unused enum).
104 (check_x_display_info): Make non-static (for frame.c).
105 (struct x_frame_parm_table, x_frame_parms): Remove.
106 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
107 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
108 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
109 (x_change_window_heights, x_set_autoraise, x_set_autolower)
110 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
111 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
112 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
113 Remove. Use generic functions instead.
114 (enum resource_types): Remove.
115 (x_set_scroll_bar_default_width): New global function (for frame.c).
116 (Fx_create_frame): Depend on x_figure_window_size to add space for
117 toolbar and setup size_hint_flags.
118 (w32_frame_parm_handlers): New table for redisplay_interface.
119 (syms_of_w32fns): Don't intern/staticpro removed vars.
120
121 * w32term.c: Remove unnecessary extern declarations.
122 (x_fullscreen_adjust): Remove. Use generic instead.
123 (x_redisplay_interface): Add w32_frame_parm_handlers member.
124
125 * w32reg.c (x_get_string_resource): Use XrmDatabase.
126
127 * macgui.h (XrmDatabase): New (dummy) typedef.
128
129 * macterm.h (EMACS_CLASS): Remove.
130 (struct mac_display_info): Add xrdb member.
131 (struct mac_output): Add want_fullscreen member.
132
133 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
134 parameters now defined in frame.h and frame.c.
135 (Vx_resource_name): Remove. Use generic var.
136 (check_x_display_info): Make non-static (for frame.c).
137 (struct x_frame_parm_table, x_frame_parms): Remove.
138 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
139 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
140 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
141 (x_change_window_heights, x_set_autoraise, x_set_autolower)
142 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
143 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
144 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
145 Remove. Use generic functions instead.
146 (enum resource_types): Remove.
147 (x_set_scroll_bar_default_width): New global function (for frame.c).
148 (mac_frame_parm_handlers): New table for redisplay_interface.
149 (syms_of_macfns): Don't intern/staticpro removed vars.
150
151 * macterm.c: Remove unnecessary extern declarations.
152 (x_redisplay_interface): Add mac_frame_parm_handlers member.
153
1 2003-03-30 Andreas Schwab <schwab@suse.de> 154 2003-03-30 Andreas Schwab <schwab@suse.de>
2 155
3 * xdisp.c (x_insert_glyphs): Fix swapped width and height 156 * xdisp.c (x_insert_glyphs): Fix swapped width and height
4 parameters for shift_glyphs_for_insert. 157 parameters for shift_glyphs_for_insert.
5 158