aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2008-04-06 02:04:32 +0000
committerYAMAMOTO Mitsuharu2008-04-06 02:04:32 +0000
commit9e13f0c32e8ac3b0d91bb60ffad3151063cc16e8 (patch)
tree46683c755f9f248522d05e28f4f9a7b16dcc60d9 /src/ChangeLog
parentdb4bb66a325e056a4223abbf00249a2a8c0e658f (diff)
downloademacs-9e13f0c32e8ac3b0d91bb60ffad3151063cc16e8.tar.gz
emacs-9e13f0c32e8ac3b0d91bb60ffad3151063cc16e8.zip
*** empty log message ***
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog284
1 files changed, 283 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2082f8e27f2..ea69708e3fe 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,285 @@
12008-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
4 (mactoolbox.o): New target.
5
6 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
7 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8
9 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10 Use mac_set_frame_window_background instead of XSetWindowBackground.
11 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14 instead of SetWindowTitleWithCFString.
15 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16 Move function to mactoolbox.c.
17 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
18 Use mac_set_window_modified instead of SetWindowModified.
19 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22 FrontNonFloatingWindow. Use mac_activate_window instead of
23 ActivateWindow. Use mac_active_non_floating_window instead of
24 ActiveNonFloatingWindow.
25 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
26 Use mac_show_hourglass and mac_hide_hourglass.
27 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
28 instead of GetGlobalMouse.
29 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
30 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
31 Use mac_bring_window_to_front instead of BringToFront.
32 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
33 mactoolbox.c.
34 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
35 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
36 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
37 mactoolbox.c.
38
39 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
40 (XtPointer): Move typedef from macmenu.c.
41 (enum button_type): Move enum from macmenu.c.
42 (widget_value): Move typedef from macmenu.c.
43 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
44 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
45 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
46 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
47 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
48 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
49 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
50 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
51 (Selection): Move typedef from macselect.c.
52 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
53 macterm.c.
54 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
55 (mac_is_window_collapsed, mac_bring_window_to_front)
56 (mac_send_window_behind, mac_hide_window, mac_show_window)
57 (mac_collapse_window, mac_front_non_floating_window)
58 (mac_active_non_floating_window, mac_activate_window)
59 (mac_move_window_structure, mac_move_window, mac_size_window)
60 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
61
62 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
63 (enum mac_menu_kind): Move enum to mactoolbox.c.
64 (min_menu_id): Move variable to mactoolbox.c.
65 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
66 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
67 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
68 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
69 [TARGET_API_MAC_CARBON]: Likewise.
70 (XtPointer): Move typedef to macgui.h.
71 (enum button_type): Move enum to macgui.h.
72 (widget_value): Move typedef to macgui.h.
73 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
74 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
75 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
76 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
77 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
78 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
79 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
80 (popup_activated_flag): Make variable non-static.
81 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
82 (add_menu_item, fill_menu, dispose_menus):
83 Move functions to mactoolbox.c.
84 (restore_show_help_function, menu_target_item_handler)
85 (install_menu_target_item_handler, mac_handle_dialog_event)
86 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
87 [TARGET_API_MAC_CARBON]: Likewise.
88 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
89 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
90 (find_and_call_menu_selection, name_is_separator): Make function
91 non-static.
92 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
93 to mactoolbox.c.
94 (set_frame_menubar): Don't call install_menu_quit_handler.
95 (menu_item_selection): New variable.
96 (mac_menu_show): Use create_and_show_popup_menu.
97 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
98 selection but set variable menu_item_selection. All uses changed.
99 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
100 Call install_menu_quit_handler. Move to mactoolbox.c.
101
102 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
103 (Selection): Move typedef to macgui.h.
104 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
105 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
106 Make variables non-static.
107 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
108 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
109 Make functions non-static.
110 (Vmac_service_selection) [MAC_OSX]: Likewise.
111 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
112 (mac_valid_selection_target_p, mac_clear_selection)
113 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
114 (mac_put_selection_value, mac_selection_has_target_p)
115 (mac_get_selection_value, mac_get_selection_target_list)
116 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
117 Move functions to mactoolbox.c.
118 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
119 Likewise.
120 (copy_scrap_flavor_data, mac_handle_service_event)
121 (install_service_handler) [MAC_OSX]: Likewise.
122 (syms_of_macselect) <Vmac_dnd_known_types>:
123 Use mac_dnd_default_known_types.
124
125 * macterm.c (mac_end_cg_clip): Add argument F. All uses changed.
126 (mac_begin_cg_clip, mac_end_cg_clip): Allow null GC.
127 (mac_invert_rectangle, mac_compute_glyph_string_overhangs)
128 (mac_load_query_font): Use them instead of SetPortWindowPort.
129 (mac_clear_window) [!USE_CG_DRAWING]: Likewise.
130 (mac_draw_image_string_cg): Call CGContextSetTextMatrix.
131 (x_update_begin, x_update_end): Call mac_update_begin and
132 mac_update_end.
133 (XTframe_up_to_date): Call mac_frame_up_to_date.
134 (XTring_bell): Use mac_alert_sound_play.
135 (note_mouse_movement): Use mac_get_frame_bounds.
136 (XTmouse_position): Use mac_get_frame_mouse.
137 (x_scroll_bar_create): Use mac_create_scroll_bar.
138 (x_scroll_bar_remove): Use mac_dispose_scroll_bar.
139 (XTset_vertical_scroll_bar): Use mac_set_scroll_bar_bounds and
140 mac_redraw_scroll_bar.
141 (mac_move_window_with_gravity) [USE_MAC_TOOLBAR]: Use mac_move_window
142 instead of MoveWindow.
143 (mac_handle_size_change) [TARGET_API_MAC_CARBON]:
144 Use mac_reposition_hourglass.
145 (x_set_offset): Use mac_move_window_structure instead of
146 MoveWindowStructure.
147 (x_set_window_size): Use mac_size_window instead of SizeWindow.
148 (x_set_mouse_pixel_position) [MAC_OSX]:
149 Use mac_convert_frame_point_to_global.
150 (x_raise_frame): Use mac_bring_window_to_front instead of BringToFront.
151 (x_lower_frame): Use mac_send_window_behind instead of SendBehind.
152 (mac_handle_visibility_change): Use Window instead of WindowRef.
153 Use mac_is_window_visible/mac_is_window_collapsed instead of
154 IsWindowVisible/IsWindowCollapsed, respectively.
155 Use mac_collapse_window/mac_show_window instead of
156 CollapseWindow/ShowWindow, respectively.
157 (x_make_frame_invisible): Use mac_hide_window instead of HideWindow.
158 (x_iconify_frame): Use mac_show_window instead of ShowWindow.
159 Use mac_collapse_window instead of CollapseWindow.
160 (x_free_frame_resources): Use Window instead of WindowRef.
161 Use mac_dispose_frame_window. Clean up focus-related variables before
162 calling mac_dispose_frame_window.
163 (do_zoom_window) [MAC_OS8]: Use mac_clear_area instead of
164 mac_clear_window.
165 (mac_initialize): Use mac_toolbox_initialize instead of
166 initializing any_help_event_p and calling init_apple_event_handler,
167 init_tsm, and init_menu_bar.
168 (any_help_event_p, last_window, save_port_clip_region)
169 (read_socket_inev, saved_menu_event_location): Move variables to
170 mactoolbox.c.
171 (last_scroll_bar_part, scroll_bar_timer)
172 (scroll_bar_timer_event_posted_p) [USE_TOOLKIT_SCROLL_BARS]: Likewise.
173 (font_panel_shown_p) [USE_MAC_FONT_PANEL]: Likewise.
174 (tsm_document_id) [USE_MAC_TSM]: Likewise.
175 (mouse_region) [!TARGET_API_MAC_CARBON]: Likewise.
176 (mac_window_to_frame, DEFAULT_NUM_COLS, MIN_DOC_SIZE, MAX_DOC_SIZE):
177 Move defines to mactoolbox.c.
178 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: Likewise.
179 (SCROLL_BAR_FIRST_DELAY, SCROLL_BAR_CONTINUOUS_DELAY)
180 [USE_TOOLKIT_SCROLL_BARS]: Likewise.
181 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
182 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
183 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID)
184 [USE_MAC_TOOLBAR]: Likewise.
185 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
186 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID): Move defines to macgui.h
187 (x_flush, is_emacs_window, mac_begin_clip, mac_end_clip)
188 (x_scroll_bar_handle_click, x_scroll_bar_report_motion)
189 (mac_get_window_bounds, do_window_update, is_emacs_window)
190 (do_grow_window, do_zoom_window, install_window_handler)
191 (remove_window_handler, XTread_socket, init_menu_bar): Move functions
192 to mactoolbox.c.
193 (mac_flush_display_optional, mac_begin_cg_clip, mac_end_cg_clip)
194 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
195 (mac_scroll_area, mac_event_to_emacs_modifiers, mac_get_mouse_btn)
196 (mac_convert_event_ref, mac_get_ideal_size, mac_store_drag_event)
197 (mac_handle_window_event, mac_handle_keyboard_event)
198 (mac_handle_command_event, mac_handle_mouse_event)
199 (install_application_handler, mac_post_mouse_moved_event)
200 [TARGET_API_MAC_CARBON]: Likewise.
201 (scroll_bar_timer_callback, install_scroll_bar_timer)
202 (set_scroll_bar_timer, control_part_code_to_scroll_bar_part)
203 (construct_scroll_bar_click, get_control_part_bounds)
204 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
205 (x_scroll_bar_handle_drag, x_set_toolkit_scroll_bar_thumb)
206 [USE_TOOLKIT_SCROLL_BARS]: Likewise.
207 (x_scroll_bar_set_handle, x_scroll_bar_note_movement)
208 [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
209 (mac_handle_toolbar_event, mac_create_frame_tool_bar)
210 (update_frame_tool_bar, free_frame_tool_bar)
211 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
212 [USE_MAC_TOOLBAR]: Likewise.
213 (mac_font_panel_visible_p, mac_handle_font_event)
214 (mac_show_hide_font_panel, mac_set_font_info_for_selection)
215 [USE_MAC_FONT_PANEL]: Likewise.
216 (mac_handle_text_input_event, init_tsm) [USE_MAC_TSM]: Likewise.
217 (do_apple_menu, mac_wait_next_event) [!TARGET_API_MAC_CARBON]: Likewise.
218 (mac_store_service_event) [MAC_OSX]: Likewise.
219 (last_mouse_glyph, last_mouse_glyph_frame, last_mouse_scroll_bar)
220 (last_mouse_movement_time, input_signal_count)
221 (mac_screen_config_changed, Qhi_command, Qtoolbar_switch_mode)
222 (Qservice, Qpaste, Qperform, keycode_to_xkeysym_table): Make variables
223 non-static.
224 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
225 (Qtext_input, Vmac_ts_active_input_overlay, Qupdate_active_input_area)
226 (Qunicode_for_key_event, Vmac_ts_script_language_on_focus)
227 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Likewise.
228 (mac_focus_changed, note_mouse_movement, mac_focus_frame)
229 (mac_handle_origin_change, mac_handle_size_change)
230 (mac_handle_visibility_change, mac_to_emacs_modifiers)
231 (mac_mapped_modifiers, mac_get_emulated_btn, do_keystroke)
232 (mac_get_screen_info): Make functions non-static.
233 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
234 (mac_image_spec_to_cg_image) [USE_MAC_TOOLBAR]: Likewise.
235 (mac_store_event_ref_as_apple_event) [TARGET_API_MAC_CARBON]: Likewise.
236 (Qwindow, mac_ready_for_apple_events): Move externs to mactoolbox.c.
237 (Qbefore_string) [USE_MAC_TSM]: Likewise.
238 (mac_toolbox_initialize, x_scroll_bar_report_motion, XTread_socket):
239 Add externs.
240 (mac_flush_display_optional) [USE_CG_DRAWING]: Likewise.
241 (install_drag_handler, remove_drag_handler, install_service_handler)
242 (install_menu_target_item_handler): Remove externs.
243 (XSetWindowBackground): Rename to mac_set_frame_window_background.
244 Take frame as argument instead of display and window.
245 Move to mactoolbox.c.
246 (mac_restore_keyboard_input_source, mac_save_keyboard_input_source)
247 [USE_MAC_TSM]: New functions created from mac_tsm_resume and
248 mac_tsm_suspend, respectively.
249 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: Use them.
250 Move to mactoolbox.c.
251
252 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
253 Move to mactoolbox.c.
254 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
255 (Fx_selection_owner_p): Add EXFUN.
256 (install_window_handler, remove_window_handler, XSetWindowBackground):
257 Remove externs.
258 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
259 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
260 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
261 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
262 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
263 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
264 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
265 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
266 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
267 (create_and_show_popup_menu, mac_get_selection_from_symbol)
268 (mac_valid_selection_target_p, mac_clear_selection)
269 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
270 (mac_put_selection_value, mac_selection_has_target_p)
271 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
272 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
273 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
274 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
275 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
276 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
277 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
278 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
279 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
280
281 * mactoolbox.c: New file.
282
12008-04-05 Chong Yidong <cyd@stupidchicken.com> 2832008-04-05 Chong Yidong <cyd@stupidchicken.com>
2 284
3 * search.c (compile_pattern_1): Treat non-nil and non-string of 285 * search.c (compile_pattern_1): Treat non-nil and non-string of
@@ -132,7 +414,7 @@
132 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for 414 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
133 repositioning window to mac_handle_window_event. 415 repositioning window to mac_handle_window_event.
134 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for 416 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
135 saving window location to mac_handle_window_event 417 saving window location to mac_handle_window_event.
136 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here. 418 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
137 (install_menu_target_item_handler): Remove argument in extern. 419 (install_menu_target_item_handler): Remove argument in extern.
138 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers): 420 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):