1 2008-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
4 (mactoolbox.o): New target.
6 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
7 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
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
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
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
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.
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
92 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
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.
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]:
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.
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
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
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
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
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
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
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):
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.
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):
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.
281 * mactoolbox.c: New file.
283 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
285 * search.c (compile_pattern_1): Treat non-nil and non-string of
286 search-spaces-regexp as nil.
288 2008-04-05 Eli Zaretskii <eliz@gnu.org>
290 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
292 2008-03-31 Chong Yidong <cyd@stupidchicken.com>
294 * xdisp.c (next_overlay_string): Don't set
295 overlay_strings_at_end_processed_p if we're currently reading from
298 * fileio.c (auto_save_error_occurred): New var.
299 (auto_save_error): Set it.
300 (Fdo_auto_save): Don't overwrite the error message if an auto-save
303 2008-03-31 Jason Rumney <jasonr@gnu.org>
305 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
307 2008-03-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
309 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
310 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
312 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
313 [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
314 Use kCFAbsoluteTimeIntervalSince1970.
315 (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
316 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
318 [MAC_OSX] (socket_callback): Do nothing.
319 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
321 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
323 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
325 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
326 (mac_get_window_bounds): Move extern to macterm.h.
327 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
328 (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
329 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
331 * macgui.h: Replace WindowPtr with WindowRef.
332 (USE_MAC_TOOLBAR): New define.
333 (USE_CG_DRAWING): Don't require USE_ATSUI.
335 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
336 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
337 Replace ControlHandle with ControlRef.
338 [!TARGET_API_MAC_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
339 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
340 [TARGET_API_MAC_CARBON] (menu_target_item_handler): Don't call next
341 handler. Return immediately unless popup is activated.
342 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
343 Remove argument. Install handler to application.
344 (set_frame_menubar): Don't change deep_p.
345 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
346 FRAME_OUTER_TO_INNER_DIFF_Y.
347 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
348 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
349 [HAVE_DIALOGS]: New macros.
350 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
352 (fill_menu) [TARGET_API_MAC_CARBON]: Use SetMenuItemHierarchicalMenu.
353 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
354 (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]: Put special
355 treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p in #if 0
356 as it is not compatible with y-or-n-p-with-timeout.
357 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
358 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
359 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
360 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
361 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
362 Run timers during dialog popup.
363 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
364 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: New variable.
365 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
366 event loop should be quit.
367 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Quit dialog event loop
368 if quit_dialog_event_loop is set.
370 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
371 [MAC_OSX] (install_service_handler): Rename from init_service_handler.
372 All callers changed. Return OSStatus value.
373 (Selection): New typedef. Use instead of ScrapRef.
374 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
375 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
376 (mac_clear_selection): Rename from clear_scrap.
377 (get_flavor_type_from_symbol): New argument SEL and subsume function of
378 scrap_has_target_type. All uses changed.
379 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
380 (mac_selection_has_target_p): New functions.
381 (mac_put_selection_value): Rename from put_scrap_string.
382 (mac_get_selection_value): Rename from get_scrap_string.
383 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
384 (put_scrap_private_timestamp, scrap_has_target_type)
385 (get_scrap_private_timestamp): Remove functions.
386 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
387 (x_own_selection, x_get_local_selection):
388 Use mac_valid_selection_value_p.
389 (x_own_selection): Don't use put_scrap_private_timestamp.
390 Record OWNERSHIP-INFO into Vselection_alist instead.
391 (x_get_local_selection): Don't check type if request is local.
392 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
393 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
395 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
396 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
397 Replace ControlHandle with ControlRef.
398 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
399 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
400 (mac_begin_cg_clip): New arg F. Call SetPortWindowPort. All callers
401 changed so as not to call SetPortWindowPort.
402 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
403 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
404 mac_draw_string_common.
405 (mac_draw_image_string_qd): Likewise.
406 (mac_draw_string_common): Use them. Add INLINE.
407 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
408 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
410 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
411 and FRAME_OUTER_TO_INNER_DIFF_Y.
412 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
413 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
414 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
415 repositioning window to mac_handle_window_event.
416 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
417 saving window location to mac_handle_window_event.
418 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
419 (install_menu_target_item_handler): Remove argument in extern.
420 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
421 Also accept command events.
422 (do_keystroke): New function created from XTread_socket.
423 (init_command_handler): Remove functions.
424 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
425 and save window location by kEventWindowShowing and kEventWindowHiding
426 handlers here. Don't call next handler for window state change and
428 (mac_handle_keyboard_event) [TARGET_API_MAC_CARBON]: New function.
429 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
430 kEventWindowShowing and kEventWindowHiding events. Move installation
431 of mouse, font, text input and menu target item handlers to
432 install_application_handler.
433 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
434 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
436 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
438 (XTread_socket) [TARGET_API_MAC_CARBON]:
439 Consolidate SendEventToEventTarget calls.
440 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
441 Move keyboard handler to mac_handle_keyboard_event.
442 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
443 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
444 init_command_handler. Call install_application_handler.
445 (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background to scroll
447 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
448 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
449 scroll bars on frame edge. Check fringe background extension.
450 Don't clear extended fringe background area.
451 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
452 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
453 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
454 [USE_MAC_TOOLBAR]: New macros.
455 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
456 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
457 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
458 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
459 [USE_MAC_TOOLBAR]: New functions.
460 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
461 manually if previous repositioning has failed.
462 (mac_handle_keyboard_event): Use precomputed event kind.
463 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
464 as tool bar item click. Handle mouse movement over tool bar items.
465 (frame_highlight, frame_unhighlight): Don't call
466 ActivateControl/DeactivateControl here.
467 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
468 frame-notice-user-settings is non-nil.
469 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
470 for kEventParamFMFontStyle.
471 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
472 mac_pass_command_to_system and mac_pass_control_to_system here.
473 (XTread_socket): Call ActivateControl/DeactivateControl here.
474 (XTread_socket) [TARGET_API_MAC_CARBON]:
475 Check mac_pass_command_to_system and mac_pass_control_to_system here.
476 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Don't use invisible
477 frame as parent window for repositioning.
479 * macterm.h (struct scroll_bar): Rename member control_handle_low
480 and control_handle_high to control_ref_low and control_ref_high.
482 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
483 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
484 respectively. All uses changed.
485 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
486 (install_window_handler, remove_window_handler): Replace WindowPtr
487 with WindowRef in externs.
488 (mac_get_window_bounds): Move extern from macfns.c.
489 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
490 (struct mac_output) [USE_MAC_TOOLBAR]: New member toolbar_win_gravity.
491 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
492 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
495 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
496 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
498 2008-03-28 Jason Rumney <jasonr@gnu.org>
500 * image.c (pbm_load): Allow color values up to 65535.
501 Throw an error if max_color_idx is outside the supported range.
502 Report an error when image size is invalid.
503 Read two bytes at a time when raw images have max_color_idx above 255.
505 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
507 * regex.c (EXTEND_BUFFER): Change order of pointer addition
508 operations, to avoid having the difference between pointers
511 2008-03-26 Eli Zaretskii <eliz@gnu.org>
513 * w32.c (readdir): If FindFirstFile/FindNextFile return in
514 cFileName a file name that includes `?' characters, use the 8+3
515 alias in cAlternateFileName instead.
517 2008-03-26 Chong Yidong <cyd@stupidchicken.com>
519 * Version 22.2 released.
521 2008-03-10 Kenichi Handa <handa@ni.aist.go.jp>
523 * fileio.c (Finsert_file_contents): Don't make CCL program to
524 append "CCL: Quitted" when the decoding is quitted, but just
527 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
528 append "CCL: Quitted" when the CCL program is quitted.
529 (setup_ccl_program): Initialize ccl->quit_silently to zero.
531 * ccl.h (struct ccl_program): New member quit_silently.
533 2008-03-08 Andreas Schwab <schwab@suse.de>
535 * process.h (struct Lisp_Process): Declare bit field as unsigned.
537 2008-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
539 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
540 size of resulting string.
542 2008-03-05 Jason Rumney <jasonr@gnu.org>
544 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
546 2008-03-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
548 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
549 Don't pretend as if characters with display property haven't been
550 consumed for string-replacing-string case.
552 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
554 * xdisp.c (get_overlay_strings_1): Add missing argument type.
556 2008-02-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
558 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
560 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
562 * process.c (wait_reading_process_output): Check for window
563 changes caused by timers.
564 Suggested by Johan Bockg
\e,Ae
\e(Brd.
566 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
568 * editfns.c (Fformat): Doc fix.
570 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
572 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
574 2008-02-24 Jason Rumney <jasonr@gnu.org>
576 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
578 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
580 * xterm.c (x_set_offset): Don't change the gravity if
581 CHANGE_GRAVITY is -1.
583 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
585 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
586 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
588 2008-02-18 Jason Rumney <jasonr@gnu.org>
590 * w32fns.c (Fw32_shell_execute): Encode parameters.
592 2008-02-15 Jason Rumney <jasonr@gnu.org>
594 * w32term.c (x_draw_glyph_string_background): Clear the background
595 manually when cleartype is in use.
596 (x_draw_glyph_string_foreground): Draw text transparently when
599 2008-02-09 Eli Zaretskii <eliz@gnu.org>
601 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
603 2008-02-05 Jason Rumney <jasonr@gnu.org>
605 * w32term.c (w32_read_socket) <WM_CHAR>: Use locale-coding-system
606 instead of using mule-unicode-* charsets directly.
608 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
610 * unexec.c (make_hdr):
611 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
613 2008-02-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
615 * macterm.c [MAC_OSX] (fn_keycode_to_keycode_table): Add more entries
616 that ignore kEventKeyModifierFnMask.
617 (XTread_socket) [MAC_OSX]: Move code for ignoring
618 kEventKeyModifierFnMask for some keys ...
619 (mac_mapped_modifiers) [MAC_OSX]: ... to here. Add argument KEY_CODE.
621 (mac_to_emacs_modifiers): New argument UNMAPPED_MODS.
623 (mac_quit_char_key_p, XTread_socket): Get Emacs modifiers from
624 mapped modifiers together with original ones.
626 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
628 * ccl.c (CCL_WRITE_CHAR): Fix overflow checking.
629 (CCL_WRITE_MULTIBYTE_CHAR): Likewise.
631 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
633 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
634 return it ORed with ctrl_modifier.
636 2008-01-26 Thien-Thi Nguyen <ttn@gnuvola.org>
638 * fns.c (Fclrhash): Return TABLE.
640 2008-01-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
642 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
643 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
644 is set even without positional changes.
645 (x_scroll_bar_clear): Set bar->redraw_needed_p.
647 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
649 2008-01-19 Kenichi Handa <handa@m17n.org>
651 * coding.c (detect_coding_iso2022): New arg latin_extra_code_state.
652 Allow Latin extra codes only when *latin_extra_code_state is nonzero.
653 (detect_coding_mask): If there is a NULL byte, detect the encoding
654 as UTF-16 or binary. If Latin extra codes exist, detect the encoding
655 as ISO-2022 only when no other proper encoding is found.
657 2008-01-17 Jason Rumney <jasonr@gnu.org>
659 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
661 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
662 the unicode range available in MULE by locale-coding-system.
663 Improve dbcs lead byte detection. Set event timestamp and modifiers
666 2008-01-17 Glenn Morris <rgm@gnu.org>
668 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
669 to HAVE_X86_64_LIB64_DIR.
671 2008-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
673 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
674 [MAC_OSX] (init_mac_osx_environment): Initialize it.
675 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
676 when used on child processes.
678 2008-01-10 Chong Yidong <cyd@stupidchicken.com>
680 * process.c (wait_reading_process_output): Check for window
681 changes caused by timers.
683 2008-01-08 Glenn Morris <rgm@gnu.org>
685 * emacs.c (main): Set copyright year to 2008.
687 2008-01-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
689 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
692 2008-01-04 Richard Stallman <rms@gnu.org>
694 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
696 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
698 * process.c (make_process): Initialize pty_flag to Qnil instead of 0
699 as it is not a bit field on Emacs 22 yet.
701 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
703 2007-12-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
705 * macmenu.c (fill_menubar) [MAC_OSX]: Add workaround for Mac OS X 10.5
706 about not changing Help menu title.
708 2007-12-22 Eli Zaretskii <eliz@gnu.org>
710 * callint.c (syms_of_callint) <command-history>: Add reference to
711 history-length in the doc string.
713 2007-12-17 Jason Rumney <jasonr@gnu.org>
715 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
716 before passing as wParam.
718 2007-12-14 Jason Rumney <jasonr@gnu.org>
720 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
721 for characters above 127.
723 2007-12-13 Jason Rumney <jasonr@gnu.org>
725 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
726 before dereferencing array.
727 (lookup_vk_code): Remove zero comparison.
729 2007-12-02 Magnus Henoch <mange@freemail.hu>
731 * process.c (make_process): Initialize pty_flag to 0.
733 2007-12-02 Jason Rumney <jasonr@gnu.org>
735 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
738 2007-12-01 Richard Stallman <rms@gnu.org>
740 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
742 2007-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
744 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
746 (mac_try_close_socket) [MAC_OSX]: New function.
747 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
748 Update cfsockets_for_select. Replace invalid CFRunLoop source.
750 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
751 Use mac_try_close_socket.
753 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
755 * s/gnu-kfreebsd.h: New file.
757 2007-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
759 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
761 (copy_dysymtab): Compute relocation base here.
762 (rebase_reloc_address) [__ppc64__]: New function.
763 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
766 2007-11-26 Jason Rumney <jasonr@gnu.org>
768 * w32proc.c (sys_spawnve): Quote args with wildcards.
770 2007-11-26 Andreas Schwab <schwab@suse.de>
772 * process.c (list_processes_1): Fix indentation level of the
775 2007-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
777 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
779 (unrelocate) [_LP64]: Set relocation base to address of data segment.
781 2007-11-23 Andreas Schwab <schwab@suse.de>
783 * editfns.c (Fformat): Handle %c specially since it requires the
784 argument to be of type int.
786 2007-11-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
788 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
789 file for image is nil.
791 2007-11-19 Jason Rumney <jasonr@gnu.org>
793 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): CreateFileMapping
794 returns NULL on failure.
796 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
798 * search.c (Fset_match_data): Remove the `evaporate' feature.
799 (unwind_set_match_data): Don't use the `evaporate' feature.
801 2007-11-15 Andreas Schwab <schwab@suse.de>
803 * editfns.c (Fformat): Correctly format EMACS_INT values.
804 Also take precision into account when formatting an integer.
806 2007-11-15 Juanma Barranquero <lekktu@gmail.com>
808 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
809 (Fx_display_pixel_height, Fx_display_planes)
810 (Fx_display_color_cells, Fx_server_max_request_size)
811 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
812 (Fx_display_visual_class, Fx_display_save_under):
813 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
814 (Fx_display_pixel_height, Fx_display_planes)
815 (Fx_display_color_cells, Fx_server_max_request_size)
816 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
817 (Fx_display_mm_height, Fx_display_mm_width)
818 (Fx_display_backing_store, Fx_display_visual_class)
819 (Fw32_select_font, Fx_display_save_under):
820 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
821 (Fx_display_pixel_height, Fx_display_planes)
822 (Fx_display_color_cells, Fx_server_max_request_size)
823 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
824 (Fx_display_save_under): Fix typos in docstrings.
826 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
828 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
829 corresponding to deleted entries; they are an implementation detail.
830 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
832 (Fw32_define_rgb_color, Fw32_load_color_file): Fix typos in docstrings.
833 (Fx_server_version): Reflow docstring.
834 (Fw32_shell_execute): Doc fixes.
836 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
838 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
839 if w32_parse_hot_key returned nil.
841 2007-11-10 Juri Linkov <juri@jurta.org>
843 * puresize.h (BASE_PURESIZE): Increase to 1130000.
845 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
847 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
849 2007-11-07 Chong Yidong <cyd@stupidchicken.com>
851 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
854 * xdisp.c (handle_face_prop): Fix last change.
856 2007-11-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
858 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
859 abort with a message on unhandled store_type values.
861 2007-11-04 Richard Stallman <rms@gnu.org>
863 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
864 not just for after-strings and before-strings.
865 Call face_for_overlay_string and pass the overlay to it.
866 (handle_display_prop): Determine whether property came from an overlay.
867 Pass OVERLAY arg to handle_single_display_spec.
868 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
869 (load_overlay_strings): Fill in it->string_overlays.
870 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
872 * xfaces.c (face_for_overlay_string): Function renamed from
873 face_at_buffer_position_no_overlays, and add arg OVERLAY.
875 * dispextern.h (struct it): New elt string_overlays.
876 New elt from_overlay, also in stack.
877 Rearrange a few elements.
878 (face_for_overlay_string): Decl renamed from
879 face_at_buffer_position_no_overlays, and add argument.
881 2007-11-03 Richard Stallman <rms@gnu.org>
883 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
884 to get the base face for an overlay string.
886 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
888 * xfaces.c (face_at_buffer_position_no_overlays): New function.
890 * xdisp.c (handle_stop): Move some code out of loop.
892 2007-11-01 Johan Bockg
\e,Ae
\e(Brd <bojohan@gnu.org>
894 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
895 Don't set s->stippled_p here, since it has already been set by
896 x_set_glyph_string_gc from x_draw_glyph_string.
898 2007-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
900 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
901 Fix conversion from Lisp object to ATSUFontID.
903 2007-10-30 Jason Rumney <jasonr@gnu.org>
905 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
907 2007-10-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
909 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
910 Don't assume regions are aligned to page boundary.
911 (print_load_command_name): Add LC_UUID if defined.
913 2007-10-30 Richard Stallman <rms@gnu.org>
915 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
917 2007-10-29 Juanma Barranquero <lekktu@gmail.com>
919 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
920 <installation-directory>: Reflow docstring.
922 2007-10-26 Martin Rudalics <rudalics@gmx.at>
924 * window.c (window_min_size_2): Don't count header-line.
926 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
928 * w32.c (init_environment): Fix tiny memory leak.
929 (w32_get_resource): Remove unused variable `ok'.
931 2007-10-24 Jason Rumney <jasonr@gnu.org>
933 * w32fns.c: Include math.h.
935 2007-10-24 Richard Stallman <rms@gnu.org>
937 * frame.c (x_figure_window_size): For fullscreen case,
938 set USPosition | PPosition without clobbering rest of window_prompting.
940 * keyboard.c (Fcurrent_idle_time): Doc fix.
942 * print.c (Fwith_output_to_temp_buffer): Doc fix.
944 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
946 * process.c (Fset_process_filter): Doc fix.
948 2007-10-17 Glenn Morris <rgm@gnu.org>
950 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
951 (syms_of_minibuf): Add Qcompletion_ignore_case.
952 * dired.c (Qcompletion_ignore_case): Change to external.
953 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
954 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
955 (Fread_file_name): Use it rather than intern'ing.
957 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
958 (Fread_coding_system): Ignore case of user input.
960 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
962 * xdisp.c (handle_display_prop): Ignore display specs after
963 replacing one when string text is being replaced.
964 (handle_single_display_spec): Pretend as if characters with display
965 property haven't been consumed only when buffer text is being replaced.
967 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
969 * eval.c (do_autoload): Don't save autoloads.
971 * data.c (Ffset): Save autoload of the function being set.
973 2007-10-07 John Paul Wallington <jpw@pobox.com>
975 * xfns.c (x_create_tip_frame): Set the `display-type' frame
976 parameter before setting up faces.
978 2007-10-13 Eli Zaretskii <eliz@gnu.org>
980 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
981 selected frame'' on MSDOS).
983 2007-10-12 Martin Rudalics <rudalics@gmx.at>
985 * frame.c (Qexplicit_name): New variable.
986 (x_report_frame_params): Report it in parameter alist.
987 (syms_of_frame): Intern and staticpro it.
989 2007-10-09 Jason Rumney <jasonr@gnu.org>
991 * w32term.c (x_set_window_size): Disable code that attempts to tell
992 Lisp code about a size change before it actually happens.
994 2007-10-09 Richard Stallman <rms@gnu.org>
996 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
997 return HANDLED_RETURN.
999 2007-10-06 Martin Rudalics <rudalics@gmx.at>
1001 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
1002 when there's an unread command event.
1004 * frame.c (focus_follows_mouse): Moved here from frame.el to allow
1005 window autoselection act appropriately when leaving selected frame.
1006 (syms_of_frame): Initialize focus_follows_mouse.
1007 * frame.h (focus_follows_mouse): Extern it.
1008 * macterm.c (XTread_socket): When focus_follows_mouse is nil
1009 make SELECT_WINDOW_EVENT only if we don't leave the selected
1011 * msdos.c (dos_rawgetc): Likewise.
1012 * w32term.c (w32_read_socket): Likewise.
1013 * xterm.c (handle_one_xevent): Likewise.
1014 * xdisp.c (syms_of_xdisp): In doc-string of
1015 mouse-autoselect-window mention focus-follows-mouse.
1017 2007-10-06 Andreas Schwab <schwab@suse.de>
1019 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
1021 2007-10-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1023 * macterm.c (mac_load_query_font): Fix missing return value.
1024 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
1027 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
1029 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
1031 2007-10-02 Richard Stallman <rms@gnu.org>
1033 * xdisp.c (get_window_cursor_type): Implement documented behavior
1034 for cursor-in-non-selected-windows = t.
1036 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
1038 * lread.c (Fload): Fix typo in docstring.
1040 2007-09-29 Juri Linkov <juri@jurta.org>
1042 * emacs.c (standard_args): Change priority of "--no-splash"
1043 from 40 to 3. Add "--no-desktop" with the same priority.
1045 2007-09-29 Jason Rumney <jasonr@gnu.org>
1047 * w32.c (w32_get_resource): Always close registry keys.
1049 2007-09-27 Jason Rumney <jasonr@gnu.org>
1051 * makefile.w32-in (LIBS): Add COMCTL32.
1053 * w32fns.c (globals_of_w32fns): Init common controls.
1055 2007-09-21 Richard Stallman <rms@gnu.org>
1057 * image.c (our_memory_buffer): Renamed from omfib_buffer.
1059 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
1061 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
1062 underline_color, to draw strike-through.
1064 2007-09-20 Glenn Morris <rgm@gnu.org>
1066 * process.c (Fmake_network_process): Doc fix.
1068 2007-09-19 Richard Stallman <rms@gnu.org>
1070 * buffer.c (Foverlays_at): Doc fix.
1072 2007-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1074 * fns.c (Fplist_put): Preserve uneven tail data.
1076 2007-09-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1078 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
1079 when we have no file name for the icon.
1080 (xg_tool_bar_expose_callback): Remove.
1081 (xg_create_tool_bar): Don't connect expose signal to
1082 xg_tool_bar_expose_callback.
1084 2007-09-16 Andreas Schwab <schwab@suse.de>
1086 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
1087 values instead of zapping them.
1089 2007-09-15 Glenn Morris <rgm@gnu.org>
1091 * s/hpux.h: No longer define `static' as nothing.
1093 2007-09-14 Glenn Morris <rgm@gnu.org>
1095 * fringe.c (init_fringe_bitmap) <swap nibble>: Move to file scope.
1096 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
1097 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
1098 scope and rename to omfib_buffer for clarity.
1099 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
1101 2007-09-14 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
1103 * gtkutil.c (xg_get_file_with_chooser): Move GCPRO1 after declarations.
1105 * termhooks.h (enum event_kind): Remove trailing comma.
1107 * frame.h (enum): Remove trailing comma.
1109 2007-09-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1111 * keyboard.c, xterm.c, xfaces.c (abs): #undef before #define.
1113 2007-09-12 Glenn Morris <rgm@gnu.org>
1115 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
1116 (menu_grab_callback): All uses changed.
1118 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
1119 (x_reply_selection_request): All uses changed.
1121 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
1123 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
1125 2007-09-06 Glenn Morris <rgm@gnu.org>
1127 * gtkutil.c (menu_grab_callback) <cnt>:
1128 * xselect.c (x_reply_selection_request) <cnt>: Move static
1129 variable to file scope.
1131 2007-09-02 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
1133 * w32proc.c (delete_child): Don't terminate threads of zombies.
1135 2007-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1137 * keyboard.c: Qrtl is new.
1138 (parse_tool_bar_item): Handle :rtl keyword.
1139 (syms_of_keyboard): Intern :rtl keyword.
1141 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
1143 * gtkutil.c (file_for_image, find_rtl_image): New functions.
1144 (xg_get_image_for_pixmap): Use file_for_image
1145 (update_frame_tool_bar): If direction is RTL, use RTL image if
1146 defined. Use Gtk stock images or named theme icons if defined.
1148 2007-08-29 Martin Rudalics <rudalics@gmx.at>
1150 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
1152 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
1153 last-repeatable-command.
1154 (init_kboard): Initialize Vlast_repeatable_command.
1155 (command_loop_1): Set it to real_this_command unless that was
1156 bound to an input event.
1157 (mark_kboards): Mark it.
1159 2007-08-28 Juanma Barranquero <lekktu@gmail.com>
1161 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
1164 2007-08-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1166 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
1167 so no Lisp code is executed.
1169 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1171 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
1172 for nonexistent or zero-width glyph in composition glyph.
1174 2007-08-27 Richard Stallman <rms@gnu.org>
1176 * eval.c (condition-case): Doc fix.
1178 2007-08-27 Masatake YAMATO <jet@gyve.org>
1180 * xfaces.c (tty_supports_face_attributes_p): Fix code
1181 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
1182 was copied and not edited.
1184 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
1186 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
1188 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
1190 * lread.c (Qold_style_backquotes): New var.
1191 (syms_of_lread): Init and staticpro it.
1192 (load_warn_old_style_backquotes): New fun.
1193 (Fload): Use them to warn about old style backquotes.
1194 (end_of_file_error, Fload): Remove unused vars.
1196 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
1198 * lread.c (Vold_style_backquotes): New var.
1199 (syms_of_lread): Init and export it to Elisp.
1200 (read1): Set it when we find an old-style (back)quote.
1202 2007-08-22 Jason Rumney <jasonr@gnu.org>
1204 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
1206 2007-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1208 * insdel.c (reset_var_on_error): New fun.
1209 (signal_before_change, signal_after_change):
1210 Use it to reset (after|before)-change-functions to nil in case of error.
1211 Bind inhibit-modification-hooks to t.
1212 Don't bind (after|before)-change-functions to nil while they run.
1214 2007-08-19 Andreas Schwab <schwab@suse.de>
1216 * alloc.c (pure): Round PURESIZE up.
1218 2007-08-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1220 * xterm.c (handle_one_xevent): Remove check that mouse click is in
1223 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
1225 * term.c (tty_default_color_capabilities): Declare static
1226 variables in file scope, to avoid HPUX compiler problem.
1228 2007-08-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1230 * gtkutil.c (update_frame_tool_bar): Use -1 as index
1231 to gtk_toolbar_insert.
1233 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1235 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
1236 filling pixmap with stippled background.
1238 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
1240 * print.c (new_backquote_output): Rename from old_backquote_output.
1241 (print): Inverse its logic (according to its name) so as to match the
1242 behavior of new_backquote_flag in lread.c.
1244 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1246 * gmalloc.c (posix_memalign): New function.
1248 2007-08-08 Glenn Morris <rgm@gnu.org>
1250 * Replace `iff' in doc-strings and comments.
1252 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
1254 * dispextern.h (struct image): New members.
1256 * image.c: Sync to trunk version.
1257 (search_image_cache, uncache_image, image-refresh): New functions.
1258 Check for fg and bg colors.
1259 (lookup_image): Use search_image_cache. Cache fg and bg colors.
1260 (pbm_load): Another check for invalid image data.
1261 (png_load): Ignore default background field.
1263 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
1265 2007-08-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1267 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
1269 2007-08-07 Sam Steingold <sds@gnu.org>
1271 * gmalloc.c (__morecore): Fix the declaration to comply with the
1274 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1277 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
1278 Call malloc_enable_thread on interactive startup.
1280 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
1281 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
1282 [USE_PTHREAD]: Conditionalize with it.
1283 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
1284 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
1287 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
1289 * xdisp.c (redisplay_window): When restoring original buffer
1290 position, make sure it is still valid.
1292 2007-08-06 Martin Rudalics <rudalics@gmx.at>
1294 * window.c (window_min_size_2): New function.
1295 (window_min_size_1, size_window, Fdisplay_buffer)
1296 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
1297 windows without mode- or header-lines when window-min-height is
1299 (size_window): Reset nodelete_p after testing it, following an
1300 earlier note by Kim F. Storm.
1301 (display_buffer): Do not set split_height_threshold to twice the
1302 value of window_min_height to avoid changing the value of a
1303 customizable variable. Rather explicitly check whether the
1304 height of the window that shall be splitted is at least as large
1305 as split_height_threshold.
1306 (Fwindow_full_width_p): New defun.
1307 (syms_of_window): Defsubr it.
1309 * window.h: Add EXFUN for Fwindow_full_width_p.
1311 2007-08-06 Andreas Schwab <schwab@suse.de>
1313 * window.c (Fdisplay_buffer): Use NILP.
1314 (Fset_window_scroll_bars): Likewise.
1316 2007-08-03 Richard Stallman <rms@gnu.org>
1318 * fileio.c (Fvisited_file_modtime): Use make_time.
1320 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
1322 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
1325 2007-07-30 Stefan Monnier <monnier@iro.umontreal.ca>
1327 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
1329 2007-07-25 Glenn Morris <rgm@gnu.org>
1331 * Relicense all FSF files to GPLv3 or later.
1333 * COPYING: Switch to GPLv3.
1335 2007-07-24 Jason Rumney <jasonr@gnu.org>
1337 * w32fns.c (x_real_positions): Get real position from OS instead of
1340 2007-07-23 Jason Rumney <jasonr@gnu.org>
1342 * filelock.c (current_lock_owner): Allow for @ sign in username.
1344 2007-07-20 Eli Zaretskii <eliz@gnu.org>
1346 * makefile.w32-in (clean): Don't delete *~.
1348 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
1349 Define if not defined.
1351 2007-07-18 Jason Rumney <jasonr@gnu.org>
1353 * w32proc.c (w32_executable_type): Handle 64 bit executables.
1355 2007-07-16 Juanma Barranquero <lekktu@gmail.com>
1357 * coding.c (Ffind_operation_coding_system):
1358 * eval.c (For, Fand, Fprogn):
1359 * keyboard.c (Ftrack_mouse):
1360 * print.c (Fwith_output_to_temp_buffer):
1361 * window.c (Fsave_window_excursion): Doc fixes (some reported
1362 by Johan Bockg
\e,Ae
\e(Brd).
1364 2007-07-15 Richard Stallman <rms@gnu.org>
1366 * data.c (Fsetq_default): Doc fix.
1368 * eval.c (Fsetq): Doc fix.
1370 2007-07-11 Jason Rumney <jasonr@gnu.org>
1372 * makefile.w32-in (LIBS): Include OLE32.
1374 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
1375 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
1377 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1379 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1380 Check WINDOWP before using XWINDOW.
1382 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
1384 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
1386 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1388 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
1389 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
1390 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
1391 (_free_internal, memalign): Use them.
1392 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
1393 Initialize to PTHREAD_MUTEX_INITIALIZER.
1394 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
1395 (morecore_nolock): Rename from morecore. All uses changed.
1396 Use only nolock versions of internal allocation functions.
1397 (_malloc_internal_nolock, _realloc_internal_nolock)
1398 (_free_internal_nolock): New functions created from
1399 _malloc_internal, _realloc_internal, and _free_internal.
1400 (_malloc_internal, _realloc_internal, _free_internal): Use them.
1401 Copy hook value to automatic variable before its use.
1402 (memalign): Copy hook value to automatic variable before its use.
1404 2007-06-21 Jason Rumney <jasonr@gnu.org>
1406 * image.c (convert_mono_to_color_image): Swap fore and background.
1408 2007-06-20 Jason Rumney <jasonr@gnu.org>
1410 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
1411 (w32_free_bdf_font): Unmap memory not handle.
1413 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
1415 * w32.c (_wsa_errlist): Fix typo in error message.
1416 (init_environment): Ignore any environment variable from the
1417 registry having a null value.
1419 2007-06-17 Jason Rumney <jasonr@gnu.org>
1421 * w32menu.c (add_menu_item): Don't use multibyte string functions on
1424 2007-06-17 Juanma Barranquero <lekktu@gmail.com>
1426 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
1427 Fix typo in docstring.
1429 2007-06-16 Eli Zaretskii <eliz@gnu.org>
1431 * w32menu.c (add_menu_item): Escape `&' characters in menu items
1432 and their keybindings.
1434 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
1436 * composite.c (update_compositions): Check validity of compositions.
1438 2007-06-10 Jason Rumney <jasonr@gnu.org>
1440 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
1442 2007-06-06 Jason Rumney <jasonr@gnu.org>
1444 * s/ms-w32.h: Don't define HAVE_TZNAME.
1446 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
1448 * image.c (xpm_load): Remove spurious call to
1449 xpm_init_color_cache.
1451 2007-06-06 Martin Rudalics <rudalics@gmx.at>
1453 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
1455 2007-06-05 Dan Nicolaescu <dann@ics.uci.edu>
1457 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
1458 * xdisp.c (next_element_from_buffer):
1459 * window.c (delete_window):
1460 * term.c (term_mouse_highlight):
1461 * msdos.c (getdefdir):
1462 * macterm.c (mac_create_bitmap_from_bitmap_data)
1463 (init_font_name_table):
1465 * data.c (Fmake_local_variable):
1466 * ccl.c (ccl_driver): Likewise.
1468 2007-06-04 Juanma Barranquero <lekktu@gmail.com>
1470 * window.c (Fshrink_window): Reflow docstring.
1472 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
1474 * Version 22.1 released.
1476 * xfns.c (x_set_name_internal): Undo last change.
1478 2007-06-01 Richard Stallman <rms@gnu.org>
1480 * xfns.c (x_encode_text): Add GCPRO.
1481 (x_set_name_internal): Separate USE_GTK and non-USE_GTK cases.
1483 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1485 * xfns.c (x_set_name_internal): Save encoded name before
1486 x_encode_text in case string data is relocated.
1488 2007-05-31 Richard Stallman <rms@gnu.org>
1490 * buffer.c (syms_of_buffer): Doc fix.
1492 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1494 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
1495 around current_column call.
1497 2007-05-24 Chong Yidong <cyd@stupidchicken.com>
1499 * xdisp.c (redisplay_window): If first window line is a
1500 continuation line, recompute the new window start instead of
1503 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1505 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
1506 Call mac_wakeup_from_rne on window size change.
1508 2007-05-22 Richard Stallman <rms@gnu.org>
1510 * xterm.c (x_connection_closed): Remove NO_RETURN.
1512 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1514 * syntax.c (skip_chars): Update syntax-table only after we checked that
1515 the new location is valid.
1517 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1519 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
1520 mac_get_window_bounds.
1522 2007-05-17 Glenn Morris <rgm@gnu.org>
1524 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
1526 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1528 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
1529 dead key repeat and up events.
1531 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
1533 * xterm.c (XTread_socket): Revert last change.
1535 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
1537 * image.c (pbm_load): Correctly check image size for greyscale pbm.
1539 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
1541 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1543 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object mixup (YAILOM)
1545 2007-05-06 Richard Stallman <rms@gnu.org>
1547 * process.c: Undo May 3 change.
1549 2007-05-03 Per Cederqvist <ceder@lysator.liu.se> (tiny change)
1551 * process.c (Faccept_process_output): Revert 2006-03-22 change so
1552 that the third argument once again is in microseconds (not
1553 milliseconds). This makes it compatible with Emacs 21 and
1554 earlier. Problem found by Henrik Rindl
\e,Av
\e(Bw.
1556 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1558 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
1559 (Fx_popup_dialog) [MAC_OSX]: Likewise.
1561 2007-04-29 Richard Stallman <rms@gnu.org>
1563 * insdel.c (replace_range): For undo, record insertion first.
1565 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1567 * xdisp.c (try_window_reusing_current_matrix): Fix number of
1570 2007-04-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1572 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
1574 * gtkutil.c (xg_update_menubar, create_menus): Create empty
1575 submenu for menu bar items.
1577 2007-04-24 Chong Yidong <cyd@stupidchicken.com>
1579 * xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
1580 values of the actual window.
1582 2007-04-23 Richard Stallman <rms@gnu.org>
1584 * process.c (Fstart_process): Doc fix.
1586 2007-04-23 Eli Zaretskii <eliz@gnu.org>
1588 * process.c (Fstart_process): Doc fix.
1590 2007-04-22 Richard Stallman <rms@gnu.org>
1592 * abbrev.c (Fdefine_abbrev): Doc fix.
1594 * keymap.c (Fdefine_key): Minor doc fix.
1596 2007-04-21 Glenn Morris <rgm@gnu.org>
1598 * keymap.c (Fdefine_key): Fix info ref in doc string.
1600 2007-04-20 Glenn Morris <rgm@gnu.org>
1602 * sysdep.c (init_system_name): Don't accept localhost.localdomain.
1604 2007-04-19 Juanma Barranquero <lekktu@gmail.com>
1606 * minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties)
1607 (Fminibuffer_completion_contents, Fdelete_minibuffer_contents):
1610 2007-04-16 Chong Yidong <cyd@stupidchicken.com>
1612 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
1613 Set garbaged flag in presence of window margins.
1614 (showing_window_margins_p): New function.
1616 * xdisp.c (cursor_row_p): Only end row on newline if it's a
1617 display string. Suggested by Lennart Borgman.
1619 2007-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1621 * alloc.c (mem_insert): Set min_heap_address and max_heap_address
1622 if they are not yet initialized.
1624 2007-04-15 Chong Yidong <cyd@stupidchicken.com>
1626 * xdisp.c (redisplay_window): When deciding whether or not to
1627 recenter, don't use the reset values of BEG_UNCHANGED and
1630 2007-04-13 Kim F. Storm <storm@cua.dk>
1632 * buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes
1633 and check that buffer is still alive upon return.
1635 2007-04-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1637 * macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h.
1638 (mac_screen_config_changed): New variable.
1639 (mac_handle_dm_notification, init_dm_notification_handler)
1640 (mac_get_screen_info): New functions.
1641 [MAC_OS8] (main): Call init_dm_notification_handler.
1642 (mac_initialize) [MAC_OSX]: Likewise.
1643 (XTread_socket): Call mac_get_screen_info if screen config changed.
1644 (mac_initialized): Make static.
1645 (mac_initialize_display_info): Remove function.
1646 (mac_term_init): Call mac_get_screen_info. Add partial contents of
1647 mac_initialize_display_info.
1649 2007-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1651 * mac.c (xrm_get_preference_database, Fmac_get_preference)
1652 [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
1654 * macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
1655 Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
1656 (mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
1657 (mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
1658 dpyinfo->width are those of whole screen.
1660 2007-04-10 Chong Yidong <cyd@stupidchicken.com>
1662 * xdisp.c (note_mode_line_or_margin_highlight): Don't decrement
1663 glyph pointer before start of glyph row.
1665 2007-04-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1667 * s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
1668 (C_SWITCH_SYSTEM): Remove `-I../mac/src'.
1670 2007-04-09 Martin Rudalics <rudalics@gmx.at>
1672 * indent.c (Fmove_to_column): Set next_boundary with correct start pt.
1674 2007-04-08 Richard Stallman <rms@gnu.org>
1676 * xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
1678 2007-04-07 Chong Yidong <cyd@stupidchicken.com>
1680 * editfns.c (Ftranspose_regions): Validate interval before setting
1683 2007-04-03 Eli Zaretskii <eliz@gnu.org>
1685 * emacs.c (main): Fix instructions for building Emacs for profiling.
1687 2007-04-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1689 * gtkutil.c (xg_update_menubar): Call g_list_next after moving
1692 2007-04-02 Juanma Barranquero <lekktu@gmail.com>
1694 * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
1696 2007-04-01 Chong Yidong <cyd@stupidchicken.com>
1698 * keymap.c (Fcommand_remapping): New optional argument.
1699 (where_is_internal): Use new keymaps argument.
1700 (Fkey_binding): Caller changed.
1702 * keyboard.c (command_loop_1): Caller changed.
1704 2007-03-31 Eli Zaretskii <eliz@gnu.org>
1706 * window.c (Fget_lru_window): Doc fix.
1708 2007-03-30 Chong Yidong <cyd@stupidchicken.com>
1710 * undo.c (Fprimitive_undo): Give clearer error message when trying
1711 to change text properties outside accessible part of buffer.
1713 2007-03-29 Kim F. Storm <storm@cua.dk>
1715 * process.c (wait_reading_process_output) [HAVE_PTYS]:
1716 When EIO happens, clear channel from descriptor masks before raising
1717 SIGCHLD signal to avoid busy loop between read and sigchld_handler.
1718 (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
1720 2007-03-29 Juanma Barranquero <lekktu@gmail.com>
1722 * buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.
1724 * process.c (Fformat_network_address): Return nil when the
1725 argument vector contains invalid values.
1727 2007-03-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1729 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
1730 [USE_PTHREAD]: Include pthread.h.
1731 (malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
1732 (malloc_initialize_1): New function created from __malloc_initialize.
1733 (__malloc_initialize): Use it.
1734 (LOCK, UNLOCK): New macros to make malloc etc. thread safe.
1735 (_malloc_internal, _free_internal, _realloc_internal): Use them.
1737 * lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.
1739 2007-03-27 Juanma Barranquero <lekktu@gmail.com>
1741 * process.c (Fformat_network_address): Make args array big enough
1742 to format IPv6 addresses.
1744 2007-03-27 Glenn Morris <rgm@gnu.org>
1746 * m/hp800.h: Restore HP-UX support (removed 2007-01-29).
1748 2007-03-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1750 * macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
1751 screen size in pixels by millimeters per pixel of main display.
1753 * macselect.c (get_scrap_target_type_list, x_own_selection):
1754 Move assignments outside predicate macros.
1755 (Vselection_converter_alist): Doc fix.
1757 * macterm.c (create_text_encoding_info_alist): Move assignments
1758 outside predicate macros.
1759 (mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
1760 dpyinfo->width are those of whole screen.
1762 2007-03-26 Sam Steingold <sds@gnu.org>
1764 * process.c (sigchld_handler): Delay by 1ms instead of 1s to
1765 alleviate sluggishness (the original problem is still fixed).
1767 2007-03-25 Kim F. Storm <storm@cua.dk>
1769 * intervals.c (merge_properties): Use explicit loop instead of
1770 Fplist_member to avoid QUIT. Don't use Fcdr.
1771 (intervals_equal): Likewise. Rewrite loop to perform length check
1772 on the fly rather than calling Flength. Don't use Fcar.
1774 2007-03-24 Eli Zaretskii <eliz@gnu.org>
1776 * editfns.c (Fgoto_char): Doc fix.
1778 * indent.c (Findent_to): Doc fix.
1780 2007-03-24 Chong Yidong <cyd@stupidchicken.com>
1782 * editfns.c (Ftranspose_regions): Use set_text_properties_1
1783 instead of Fset_text_properties to avoid GC. Signal after change.
1785 2007-03-24 Eli Zaretskii <eliz@gnu.org>
1787 * xfns.c (Fx_show_tip): Doc fix.
1789 * macfns.c (Fx_show_tip): Doc fix.
1791 * w32fns.c (Fx_show_tip): Doc fix.
1793 2007-03-23 Kim F. Storm <storm@cua.dk>
1795 * intervals.c (merge_properties, intervals_equal):
1796 Use Fplist_member instead of Fmemq to find properties.
1798 2007-03-23 Glenn Morris <rgm@gnu.org>
1800 * unexhp9k800.c: Restore file with clarified legal status.
1801 * m/sr2k.h: Restore since dependency unexhp9k800.c is restored.
1803 2007-03-22 Chong Yidong <cyd@stupidchicken.com>
1805 * widget.c (EmacsFrameSetCharSize): Catch X errors.
1807 2007-03-22 Kenichi Handa <handa@m17n.org>
1809 * fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
1810 non-encoded file name.
1811 (Frename_file): Likewise.
1812 (Fadd_name_to_file): Likewise.
1813 (Fmake_symbolic_link): Likewise.
1815 2007-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1817 * Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
1818 (dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
1819 (dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
1821 (term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
1823 (macfns.o): Remove duplicate dependency on systime.h.
1825 * dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
1826 (Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
1828 * fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
1829 (Fdo_auto_save): Add BLOCK_INPUT around fwrite.
1831 * keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
1832 (Fopen_dribble_file): Add BLOCK_INPUT around fclose.
1834 * lread.c: Include blockinput.h.
1835 (readchar, Fget_file_char): Add BLOCK_INPUT around getc.
1836 (unreadchar): Add BLOCK_INPUT around ungetc.
1837 (load_unwind): Add BLOCK_INPUT around fclose.
1839 * print.c: Include blockinput.h.
1840 (Fredirect_debugging_output): Add BLOCK_INPUT around fclose.
1842 * process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
1843 Clear immediate_quit before calling freeaddrinfo.
1844 Add BLOCK_INPUT around freeaddrinfo.
1846 * term.c: Include blockinput.h.
1847 (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
1849 2007-03-19 Richard Stallman <rms@gnu.org>
1851 * keyboard.c (NUM_RECENT_KEYS): Bump up to 300.
1853 * buffer.c (syms_of_buffer): Doc fix.
1855 2007-03-18 Chong Yidong <cyd@stupidchicken.com>
1857 * image.c (pbm_load): Signal error for invalid image size.
1859 2007-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1861 * macterm.c (note_mouse_movement): Don't return immediately for
1864 * macmenu.c (popup_activated_flag): New variable.
1865 (x_activate_menubar, mac_menu_show): Set it during menu tracking.
1866 (popup_activated): New function.
1868 * xdisp.c (redisplay_internal, note_mouse_highlight):
1869 Check popup_activated for MAC_OS.
1871 2007-03-17 Juanma Barranquero <lekktu@gmail.com>
1873 * buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
1874 Reported by Nikolaj Schumacher <n_schumacher@web.de>.
1876 2007-03-17 Richard Stallman <rms@gnu.org>
1878 * dired.c (file_name_completion): gcpro NAME.
1880 2007-03-17 Chong Yidong <cyd@stupidchicken.com>
1882 * xdisp.c (try_window_id): Increment matrix positions if the
1883 buffer's byte count has increased, but not the character count.
1885 2007-03-12 Andreas Schwab <schwab@suse.de>
1887 * lisp.h: Declare check_obarray.
1889 * process.c (Fdelete_process): Properly handle deletion of first
1890 element of deleted_pid_list.
1891 (create_process): Declare pid as pid_t.
1893 2007-03-12 Kim F. Storm <storm@cua.dk>
1895 * process.c (sigchld_handler): Change type of pid to pid_t.
1896 Scan deleted_pid_list explicitly to avoid using Fmember which don't
1897 know about mark bits and make_fixnum_or_float which may malloc.
1898 Reported by Andreas Schwab.
1900 * keyboard.c (read_key_sequence): Store original event into keybuf
1901 when replaying sequence with local keymap(s) from string.
1903 2007-03-12 Glenn Morris <rgm@gnu.org>
1905 * editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
1906 savings" to "daylight saving").
1908 2007-03-11 Sam Steingold <sds@gnu.org>
1910 * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
1912 2007-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1914 * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
1916 2007-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1918 * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
1919 Ignore mouse wheel movement on title bar or tool bar.
1921 2007-03-10 Chong Yidong <cyd@stupidchicken.com>
1923 * keyboard.c (help_form_saved_window_configs): New var.
1924 (read_char_help_form_unwind): New function.
1925 (read_char): Don't restore window configuration if a mouse click
1926 arrives while the help form is being displayed.
1928 2007-03-10 Kim F. Storm <storm@cua.dk>
1930 * xdisp.c (redisplay_window): Don't automatically select a new window
1931 start for a contination line during mouse-click.
1933 2007-03-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1935 * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
1937 2007-03-09 Juanma Barranquero <lekktu@gmail.com>
1939 * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
1941 2007-03-08 Richard Stallman <rms@gnu.org>
1943 * keyboard.c (syms_of_keyboard): Doc fix.
1945 2007-03-08 Chong Yidong <cyd@stupidchicken.com>
1947 * minibuf.c (Ftry_completion): Don't short circuit if
1948 completion-ignore-case is non-nil.
1950 2007-03-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1952 * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
1953 Undo 2006-03-06 changes.
1955 * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
1956 bar if its width is smaller than that of Aqua small scroll bar.
1958 2007-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
1960 * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
1961 to handle correctly prompts with read-only property.
1963 2007-03-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1965 * sound.c (wav_play): Check header->data_length to see how much we
1967 (alsa_period_size): Convert ALSA period size in frames to bytes.
1968 (alsa_write): Return if frames is zero.
1970 2007-03-06 Kenichi Handa <handa@m17n.org>
1972 * xselect.c (Vselection_coding_system): Documentation improved.
1974 2007-03-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1976 * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
1977 USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
1978 (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if
1979 internal border width has changed.
1981 * macterm.h (struct mac_output): New member `internal_border_width'.
1983 2007-03-04 Richard Stallman <rms@gnu.org>
1985 * window.c (Fdisplay_buffer): Doc fix.
1987 2007-03-03 Glenn Morris <rgm@gnu.org>
1989 * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
1990 not include -lX11 on Solaris.
1992 2007-03-02 Stuart D. Herring <herring@lanl.gov>
1994 * keymap.c (Fkey_binding): Don't consider one-element lists as events.
1996 2007-03-01 Kenichi Handa <handa@m17n.org>
1998 * process.c (send_process_object): Check the process status and
1999 signal an error if something is wrong.
2001 2007-02-28 Chong Yidong <cyd@stupidchicken.com>
2003 * insdel.c (Fcombine_after_change_execute): Return nil if
2004 combine_after_change_buffer has been invalidated.
2006 2007-02-25 Dan Nicolaescu <dann@ics.uci.edu>
2008 * m/xtensa.h: New file.
2010 2007-02-24 Nick Roberts <nickrob@snap.net.nz>
2012 * .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
2013 as strings and not character arrays.
2015 2007-02-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2017 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
2018 (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
2019 scroll bar handle size in order to avoid `scroll backward' problem.
2020 (x_scroll_bar_create, XTset_vertical_scroll_bar)
2021 [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
2023 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2024 New member `min_handle'.
2026 2007-02-23 Kim F. Storm <storm@cua.dk>
2028 * print.c (print): Reset print_number_index if Vprint_number_table
2031 2007-02-23 Eli Zaretskii <eliz@gnu.org>
2033 * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
2036 2007-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2038 * macmenu.c (mac_menu_show): Call unbind_to early. Use variable
2039 `menu_item_selection' as in W32 version.
2040 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
2041 braces to avoid ambiguous `else'.
2043 * macterm.c (mac_display_info_for_display): Remove function.
2044 (mac_flush_display_optional) [USE_CG_DRAWING]: New function.
2045 (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
2046 flush_display_optional.
2047 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
2048 New argument MOUSE_POS. All uses changed. Set bar->dragging to
2049 negative integer if scroll bar handle is pressed.
2050 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
2051 Negative bar->dragging means scroll bar handle is not dragged.
2052 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
2053 offset of scroll bar handle from negative bar->dragging.
2054 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
2055 bar click is compared against mapped one. Set down/up_modifier
2056 for scroll bar click event with control key.
2058 * macterm.h (x_display_info_for_display): Remove extern.
2059 (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
2060 value to be unpacked to 32-bit on LP64 model.
2062 2007-02-23 Kenichi Handa <handa@m17n.org>
2064 * process.c (send_process_object_unwind): New function.
2065 (send_process_object): New function.
2066 (Fprocess_send_region): Call send_process_object.
2067 (Fprocess_send_string): Likewise.
2069 2007-02-22 Jason Rumney <jasonr@gnu.org>
2071 * w32menu.c (w32_menu_show): Mark the frame's menu as inactive
2072 when popup menu finishes.
2074 * w32fns.c (menubar_in_use): New flag.
2075 (w32_wnd_proc) <WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND>:
2078 * w32menu.c (Fx_popup_menu): Don't free menu strings here.
2079 (w32_menu_show): Do it here instead.
2081 * w32fns.c (w32_wnd_proc) <WM_INITMENU>: Set menubar_active frame
2084 * w32menu.c (current_popup_menu): Make available globally.
2085 (menubar_selection_callback): Free menu strings before pushing the
2086 menu event into the keyboard buffer. Remove menu_command_in_progress.
2088 * w32fns.c (current_popup_menu): Use from w32menu.c.
2089 (w32_wnd_proc) <WM_EXITMENULOOP, WM_TIMER>: Use menubar_active
2090 and current_popup_menu to determine whether a menubar menu has
2093 * w32term.h (w32_output): Remove menu_command_in_progress.
2095 2007-02-22 Kim F. Storm <storm@cua.dk>
2097 * dispnew.c (update_frame, update_single_window): Set force_p here if
2098 redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
2099 (update_window, update_frame_1): ... instead of here.
2100 (update_text_area): Clear mouse face on header lines.
2102 2007-02-21 Kim F. Storm <storm@cua.dk>
2104 * minibuf.c (Fassoc_string): Doc fix. Allow symbol for KEY too.
2106 2007-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2108 * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
2109 [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
2111 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
2112 Layout Services routines to get current Unicode keyboard layout.
2114 2007-02-20 Chong Yidong <cyd@stupidchicken.com>
2116 * frame.c (x_set_screen_gamma): Apply gamma value to the frame's
2119 2007-02-19 Kim F. Storm <storm@cua.dk>
2121 * minibuf.c (Fassoc_string): Allow symbols as keys.
2123 * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
2124 handle while dragging, except when we get close to eob.
2125 Fix position and size calculations so we don't scroll backwards
2126 just by clicking on the handle.
2128 2007-02-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2130 * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
2131 [HAVE_CARBON]: Remove target.
2132 (macosx-app) [HAVE_CARBON]: Don't depend on it.
2134 2007-02-17 Juanma Barranquero <lekktu@gmail.com>
2136 * callproc.c (syms_of_callproc) <doc-directory>:
2137 <configure-info-directory>:
2138 (Fgetenv_internal): Fix typos in docstrings.
2140 * doc.c (Fsubstitute_command_keys): Fix typo in docstring.
2142 2007-02-16 Andreas Schwab <schwab@suse.de>
2144 * frame.c (Fmodify_frame_parameters): Return a value.
2146 * editfns.c (Fformat): Add support for '+' flag.
2147 * doprnt.c (doprnt1): Likewise. Fix overflow checking.
2149 2007-02-14 Chong Yidong <cyd@stupidchicken.com>
2151 * s/umips.h: Unused file removed.
2153 2007-02-14 Juanma Barranquero <lekktu@gmail.com>
2155 * xfaces.c (Fcolor_distance): Don't continue checking a color for
2156 errors after it has been correctly parsed as an RGB list.
2158 2007-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2160 * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
2162 2007-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2164 * macfns.c (Fx_focus_frame): Move current process to foreground if
2166 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
2168 (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
2169 Fmac_set_font_panel_visibility. All uses changed. Rename argument
2172 * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
2173 (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
2174 MakeMeTheFrontProcess.
2176 2007-02-12 Chong Yidong <cyd@stupidchicken.com>
2178 * frame.c (x_set_screen_gamma): Clear face cache.
2180 2007-02-11 Juanma Barranquero <lekktu@gmail.com>
2182 * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
2185 2007-02-10 Eli Zaretskii <eliz@gnu.org>
2187 * window.c (Fwindow_height, Fwindow_hscroll)
2188 (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
2189 (Fwindow_end, Fwindow_display_table, Fwindow_text_height):
2190 Document the effect of WINDOW arg being nil.
2192 2007-02-08 Kim F. Storm <storm@cua.dk>
2194 * minibuf.c (read_minibuf): Fix 2007-01-30 change.
2195 Use Qlambda as interim value of Vminibuffer_completing_file_name.
2196 (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
2197 (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
2199 2007-02-07 Juanma Barranquero <lekktu@gmail.com>
2201 * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
2204 2007-02-07 Eli Zaretskii <eliz@gnu.org>
2206 * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
2209 2007-02-06 Chong Yidong <cyd@stupidchicken.com>
2211 * frame.c (Fmodify_frame_parameters): Don't bind
2212 Qinhibit_default_face_x_resources, which has no effect.
2213 (Qinhibit_default_face_x_resources): Symbol deleted.
2215 2007-02-03 Eli Zaretskii <eliz@gnu.org>
2217 * indent.c (Fmove_to_column): Document that the argument COLUMN is
2218 taken from prefix numeric argument.
2220 2007-02-03 Juanma Barranquero <lekktu@gmail.com>
2222 * lread.c (syms_of_lread) <load-history>: Doc fix.
2224 2007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
2226 * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
2227 Use the foreground color of the scroll-bar face when drawing
2228 the scroll-bar's border.
2230 2007-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2232 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
2233 calling wm_supports.
2235 2007-02-01 Juanma Barranquero <lekktu@gmail.com>
2237 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
2238 Wording by Eli Zaretskii.
2240 2007-01-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2242 * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
2244 2007-01-30 Richard Stallman <rms@gnu.org>
2246 * minibuf.c (read_minibuf):
2247 Save and clear Vminibuffer_completing_file_name.
2248 (read_minibuf_unwind): Restore it.
2249 (Vminibuffer_completion_table, Qminibuffer_completion_table)
2250 (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
2251 (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
2252 (Vminibuffer_completing_file_name): Definitions moved up.
2254 2007-01-29 Chong Yidong <cyd@stupidchicken.com>
2256 * m/hp800.h: Restore, removing HP-UX support.
2258 2007-01-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2260 * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
2262 2007-01-28 Richard Stallman <rms@gnu.org>
2264 * minibuf.c (Ftry_completion, Fall_completions)
2265 (Fcompleting_read, Ftest_completion):
2266 Rename arg ALIST or TABLE to COLLECTION.
2268 2007-01-27 Chong Yidong <cyd@stupidchicken.com>
2270 * unexhp9k800.c: Remove due to lack of legal papers.
2272 * m/sr2k.h, m/hp800.h: Remove due to dependence on above.
2274 2007-01-27 Eli Zaretskii <eliz@gnu.org>
2276 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
2278 * minibuf.c (Fcompleting_read): Doc fix.
2280 2007-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2282 * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
2284 * Makefile.in: Use XFT_LIBS if defined.
2286 2007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2288 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
2289 BLOCK_INPUT/UNBLOCK_INPUT.
2291 * blockinput.h (interrupt_input_blocked): Declare volatile.
2293 * keyboard.c (interrupt_input_blocked): Declare volatile.
2295 * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
2297 2007-01-24 Kim F. Storm <storm@cua.dk>
2299 * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
2301 2007-01-23 Juanma Barranquero <lekktu@gmail.com>
2303 * editfns.c (Finsert_char): Doc fix.
2304 (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
2306 2007-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2308 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
2309 Don't pass keyboard modifiers to mac_store_drag_event, but put
2310 them as kEventParamKeyModifiers Apple event parameter.
2312 2007-01-21 Chong Yidong <cyd@stupidchicken.com>
2314 * xdisp.c (try_window): Revert previous change.
2316 * dispnew.c (update_text_area): Revert 2006-09-17 change.
2317 Always redraw non-mode-line rows with mouse-face.
2319 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
2321 * xdisp.c (try_window): Clear mouse-face highlights first.
2323 * window.c (set_window_buffer): Revert 2006-11-22 change.
2325 2007-01-20 Eli Zaretskii <eliz@gnu.org>
2327 * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
2328 (xbuffer, xcons, xcar, xcdr): Fix doc strings.
2330 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
2332 * keyboard.c (read_key_sequence): Extract local map only if the
2333 given position is in an accessible buffer region.
2335 2007-01-19 Nick Roberts <nickrob@snap.net.nz>
2337 * .gdbinit: Reformat documentation so that first sentence
2338 displays properly with "help user-defined" (like apropos).
2340 2007-01-18 Bruno Haible <bruno@clisp.org> (tiny change)
2342 * epaths.in: Move PATH_DOC from local/info to local/share/info.
2344 2007-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2346 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
2347 Create movable modal window instead of movable alert window.
2348 (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
2351 * macselect.c (Fmac_resume_apple_event): Set error number when
2352 descriptor type of reply is non-null.
2354 2007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2356 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
2357 Use DisableControl for disabled items. Set default button to first
2358 enabled one. Use icon of application in execution.
2360 2007-01-13 Eli Zaretskii <eliz@gnu.org>
2362 * process.c (Fdelete_process, Fprocess_id, sigchld_handler):
2363 Copy PID into EMACS_INT to avoid GCC warnings.
2365 * fns.c (maybe_resize_hash_table): Copy new size of hash table
2366 into EMACS_INT to avoid GCC warnings.
2368 * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
2369 geteuid and getuid into EMACS_INT to avoid GCC warnings.
2371 * dired.c (Ffile_attributes): Fix last change.
2373 2007-01-12 Eli Zaretskii <eliz@gnu.org>
2375 * dired.c (Ffile_attributes): Copy some members of `struct stat'
2376 into int's to avoid GCC warnings about limited range of short in
2377 arguments to FIXNUM_OVERFLOW_P.
2379 2007-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2381 * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
2382 (mac_handle_dialog_event, install_dialog_event_handler)
2383 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
2384 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2385 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
2386 (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2387 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2388 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2389 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2390 (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
2391 (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
2392 (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
2394 * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
2395 Call mac_prepare_for_quickdraw.
2396 (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
2397 outside #ifdef MAC_OSX.
2398 (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
2399 outside #ifdef MAC_OSX.
2400 (mac_check_bundle) [MAC_OSX]: Remove unused function.
2402 * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
2403 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
2405 2007-01-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2407 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
2408 block/unblock SIGIO.
2410 2007-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
2412 * editfns.c (Fformat): Allow integer-format to work with floats of size
2413 larger than most-positive-fixnum (but still smaller than MAXINT).
2415 * dired.c (Ffile_attributes): Use floats for large uids/gids.
2417 2007-01-09 Eli Zaretskii <eliz@gnu.org>
2419 * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
2421 2007-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2423 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
2426 * image.c (XDrawLine) [MAC_OS]: Remove macro.
2427 (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
2428 (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
2431 * macgui.h (Display): Typedef to opaque type.
2433 * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
2434 (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
2435 Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
2436 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
2437 Use mac_quit_char_key_p.
2439 * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
2440 (XCreateGC): Change type of 2nd argument to void *.
2441 (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2443 (mac_to_emacs_modifiers): Change return type to int.
2444 [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
2445 (mac_mapped_modifiers): New function.
2446 (XTread_socket): Use it.
2447 [USE_TSM] (mac_handle_text_input_event): Likewise.
2448 (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2449 (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
2451 (mac_determine_quit_char_modifiers, init_quit_char_handler)
2452 [MAC_OSX]: Remove functions.
2453 (make_ctrl_char) [MAC_OSX]: Add extern.
2454 (mac_quit_char_key_p) [MAC_OSX]: New function.
2455 (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
2457 * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
2458 (XCreateGC): Change type in extern.
2459 (XDrawLine): Rename from mac_draw_line_to_pixmap.
2460 (mac_quit_char_key_p) [MAC_OSX]: Add extern.
2462 2007-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2464 * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
2465 interrupt_input_pending.
2467 * xterm.h (x_display_info): New: net_supported_atoms,
2468 nr_net_supported_atoms and net_supported_window.
2470 * xterm.c (last_user_time): New variable.
2471 (handle_one_xevent): Set last_user_time from events that have Time.
2472 Set net_supported_window to 0 when reparented.
2473 (wm_supports): New function.
2474 (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
2475 (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
2476 and net_supported_window.
2478 2007-01-05 Kim F. Storm <storm@cua.dk>
2480 * indent.c (Fvertical_motion): Fix it overshoot check for overlay
2481 strings without embedded newlines immediately followed by newline.
2483 2007-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2485 * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
2486 (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
2487 gmtime/localtime/emacs_memftimeu/mktime.
2489 * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
2491 [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
2493 * macgui.h (struct _XGC) [USE_CG_DRAWING
2494 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
2497 * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
2498 (restore_show_help_function, menu_target_item_handler)
2499 [TARGET_API_MAC_CARBON]: New functions.
2500 (install_menu_target_item_handler): New function.
2501 (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
2504 * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
2505 (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
2506 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
2507 (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
2508 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
2509 (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
2510 (mac_cg_color_black) [USE_CG_DRAWING
2511 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
2512 (init_cg_color) [USE_CG_DRAWING]: New function.
2513 (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
2514 CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
2515 (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
2516 (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
2517 Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
2518 CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
2519 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
2520 (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
2521 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
2523 (install_drag_handler, remove_drag_handler): Make extern.
2524 (install_menu_target_item_handler): Add extern.
2525 (install_window_handler): Call install_menu_target_item_handler.
2526 [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
2527 (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
2529 * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
2531 2007-01-04 Juanma Barranquero <lekktu@gmail.com>
2533 * window.c (Fwindow_end): Fix use of >= operator.
2535 2007-01-03 Richard Stallman <rms@gnu.org>
2537 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
2539 2007-01-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2541 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
2544 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
2545 parent of the menu item. Get menu item widget from event.
2546 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
2547 unhighlight_id has been removed.
2548 (create_menus): Connect enter/leave-notify-event to the menu instead
2549 of individual items.
2551 2006-12-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2553 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
2554 xg_tool_bar_menu_proxy.
2555 (xg_tool_bar_menu_proxy): New function.
2556 (xg_tool_bar_proxy_callback): New function.
2558 2006-12-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2560 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
2561 (xg_tool_bar_callback): Remove check for button.
2562 (update_frame_tool_bar): Put an event box in the tool bar and a button
2563 in the event box. Attach enter/leave-notify-event to the event box.
2565 2006-12-30 Richard Stallman <rms@gnu.org>
2567 * keymap.c (Fdefine_key): Doc fix.
2569 2006-12-29 Kim F. Storm <storm@cua.dk>
2571 * frame.h (struct frame): New member minimize_tool_bar_window_p.
2573 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
2574 (Vauto_resize_tool_bars): ... this.
2575 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
2576 to describe new value `grow-only', and use of C-l.
2577 (display_tool_bar_line): Only use default face for border below
2578 toolbar if not grow-only (to get acceptable visual appearence).
2579 Explicitly set visible_height for empty toolbar lines.
2580 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
2581 minimize_tool_bar_window_p flag.
2583 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
2584 when called without arg to redraw with minimum toolbar height.
2587 2006-12-29 Jason Rumney <jasonr@gnu.org>
2589 * s/ms-w32.h (tzname): Do not define in msvc8.
2590 (utime): Do not define in msvc8.
2592 * regex.c (regerror): Change parameter name err_code.
2594 2006-12-26 Richard Stallman <rms@gnu.org>
2596 * search.c (Fsearch_forward): Doc fix.
2598 * callint.c (Finteractive): Doc fix.
2600 2006-12-25 Kim F. Storm <storm@cua.dk>
2602 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
2604 2006-12-23 Eli Zaretskii <eliz@gnu.org>
2606 * keyboard.c (some_mouse_moved): Fix last change.
2608 2006-12-22 Eli Zaretskii <eliz@gnu.org>
2610 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
2612 2006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
2614 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
2615 * m/sh3el.h: New file.
2617 2006-12-22 Eli Zaretskii <eliz@gnu.org>
2619 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
2621 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
2622 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
2623 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
2624 (clean): Delete stamp_BLD.
2626 2006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2628 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
2629 Call mac_update_proxy_icon also when buffer modification flag changed.
2630 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
2631 but compare FSRef/FSSpec of resolved alias.
2633 2006-12-21 Kim F. Storm <storm@cua.dk>
2635 * w32.c (_sys_wait_accept): Fix handle leak.
2637 2006-12-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2639 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
2642 2006-12-20 Kim F. Storm <storm@cua.dk>
2644 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
2646 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
2648 * keyboard.c (syms_of_keyboard) <double-click-time>:
2649 * mac.c (Fmac_code_convert_string):
2650 * search.c (Fsearch_forward): Doc fixes.
2652 2006-12-19 Kim F. Storm <storm@cua.dk>
2654 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
2655 a sigusr1 event instead of [signal usr1] sequence, and signal events
2656 are now supposed to be handled via special-event-map.
2658 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
2659 (make_lispy_event): Don't generate Qsignal prefix for code 0.
2660 Abort if signal code is unknown.
2661 (store_user_signal_events): Don't make Qsignal prefix (code 0).
2662 (Qsignal): Move declaration back to process.c.
2663 (syms_of_keyboard): Don't intern or staticpro it here.
2665 * process.c (Qsignal): Declare here.
2666 (syms_of_process): Intern or staticpro it.
2668 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
2670 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
2672 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
2674 * buffer.c (syms_of_buffer) <buffer-display-table>:
2675 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
2677 2006-12-17 Richard Stallman <rms@gnu.org>
2679 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
2680 to Ffile_name_completion.
2682 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
2683 (Ffile_name_completion): New arg PREDICATE.
2685 2006-12-17 Juanma Barranquero <lekktu@gmail.com>
2687 * buffer.c (Fkill_buffer): Doc fix.
2688 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
2690 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
2692 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
2694 2006-12-16 Eli Zaretskii <eliz@gnu.org>
2696 * w32fns.c (w32-window-exists-p): New function.
2697 (syms_of_w32fns): Defsubr it.
2699 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
2701 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
2703 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
2705 2006-12-15 Eli Zaretskii <eliz@gnu.org>
2707 * emacs.c (USAGE3): Clarify documentation of --color.
2709 2006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2711 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
2713 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
2714 [!MAC_OSX] (select): Use them.
2715 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
2716 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
2718 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
2719 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
2720 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
2722 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
2723 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
2725 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
2726 ATSUGetGlyphBounds if not necessary.
2727 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
2728 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
2729 (fm_get_style_from_font, atsu_find_font_from_family_name)
2730 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
2731 [USE_ATSUI]: New functions.
2732 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
2733 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
2734 Don't get metrics for Latin-1 right half characters.
2735 (mac_load_query_font): Don't load font if space width is not positive.
2736 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
2737 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
2738 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
2740 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
2742 2006-12-15 Kim F. Storm <storm@cua.dk>
2744 * keyboard.c (ignore_mouse_drag_p): New global var.
2745 (some_mouse_moved): Return 0 if it is non-zero.
2746 (make_lispy_event): Generate click event on mouse up if
2747 ignore_mouse_drag_p is non-zero, even if mouse moved.
2748 Clear ignore_mouse_drag_p on mouse down/up.
2750 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
2751 is resized to avoid generating a mouse drag event.
2753 2006-12-14 Juanma Barranquero <lekktu@gmail.com>
2755 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
2756 minimum tracking size. Remove non-working old hack to do the same.
2758 2006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2760 * emacs.c (handle_user_signal): Move function to keyboard.c.
2761 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
2763 * keyboard.c (make_lispy_event): Use find_user_signal_name.
2764 (read_avail_input): Store pending user signal events.
2765 (struct user_signal_info): New struct.
2766 (user_signals): New variable.
2767 (add_user_signal, store_user_signal_events)
2768 (find_user_signal_name): New functions.
2769 (handle_user_signal): Move function from emacs.c. Don't store
2770 USER_SIGNAL_EVENT here, but increment number of pending signals.
2772 * keyboard.h (add_user_signals): Add extern.
2774 2006-12-11 Juanma Barranquero <lekktu@gmail.com>
2776 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
2777 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
2778 <line-spacing, left-margin>: Doc fixes.
2780 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
2782 2006-12-10 Kim F. Storm <storm@cua.dk>
2784 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
2786 2006-12-10 Juanma Barranquero <lekktu@gmail.com>
2788 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
2789 * buffer.c (syms_of_buffer) <default-major-mode>:
2790 * keymap.c (Flookup_key):
2791 * lread.c (Feval_buffer, Feval_region):
2792 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
2793 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
2794 * marker.c (Fmarker_insertion_type):
2795 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
2796 * msdos.c (syms_of_msdos) <delete-exited-processes>:
2797 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2798 <x-underline-at-descent-line>:
2799 * xdisp.c (format-mode-line):
2800 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
2801 <x-underline-at-descent-line>: Doc fixes.
2803 2006-12-10 Andreas Schwab <schwab@suse.de>
2805 * systime.h (EMACS_GET_TIME): Remove check for
2806 HAVE_STRUCT_TIMEZONE which is never defined.
2808 2006-12-10 Alan Mackenzie <acm@muc.de>
2810 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
2811 result is now neither the last elt nor optional for OLDSTATE.
2813 2006-12-09 Eli Zaretskii <eliz@gnu.org>
2815 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
2816 extract the process ID from a Lisp float.
2818 2006-12-09 Chong Yidong <cyd@stupidchicken.com>
2820 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
2822 2006-12-08 Eli Zaretskii <eliz@gnu.org>
2824 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
2825 platforms where long is 64-bit.
2827 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
2829 2006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
2831 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
2833 2006-12-08 Kenichi Handa <handa@m17n.org>
2835 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
2837 2006-12-08 Juanma Barranquero <lekktu@gmail.com>
2839 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2841 2006-12-07 Kim F. Storm <storm@cua.dk>
2843 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
2844 (Fsignal_process): Don't use strncasecmp.
2846 2006-12-05 Glenn Morris <rgm@gnu.org>
2848 * abbrev.c (Qforce): New Lisp_Object.
2849 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
2850 abbrevs, unless 'force is applied.
2851 (syms_of_abbrev): Add Qforce.
2853 2006-12-04 Kim F. Storm <storm@cua.dk>
2855 * process.c (parse_signal): Rename macro from handle_signal.
2856 (Fsignal_process): Also accept lower-case variants of signal
2857 names (to align with signal names generated by Emacs itself).
2859 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
2860 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
2861 first with code == 0 [signal] and one with code == sig number.
2862 (main): Use it as handler for SIGUR1 and SIGUSR2.
2864 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
2865 if first event in [signal xxx] sequence.
2866 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
2867 (syms_of_keyboard): Don't intern and staticpro them.
2868 (Qsignal): Declare here.
2869 (syms_of_keyboard): Intern and staticpro it.
2870 (make_lispy_event): Use it. Intern symbols on the fly for other
2871 USER_SIGNAL_EVENTs events.
2873 * process.c (Qsignal): Declare extern.
2874 (syms_of_process): Don't intern/staticpro it here.
2876 * process.c (read_process_output): Abort if carryover < 0.
2878 2006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2880 * config.in: Regenerate.
2882 * fileio.c [__NetBSD__]: Don't define `unix'.
2883 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
2886 2006-12-04 Glenn Morris <rgm@gnu.org>
2888 * Makefile.in (version): New variable, set by configure.
2889 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
2891 2006-12-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2893 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
2896 2006-12-01 Eli Zaretskii <eliz@gnu.org>
2898 * w32fns.c (Fw32_shell_execute): Doc fix.
2900 2006-11-30 Chong Yidong <cyd@stupidchicken.com>
2902 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
2903 lines ending in tab.
2905 2006-11-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2907 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
2909 (XTframe_raise_lower): ... to here.
2911 2006-11-30 Kenichi Handa <handa@m17n.org>
2913 * regex.c (regex_compile): Fix previous change.
2915 2006-11-29 Juanma Barranquero <lekktu@gmail.com>
2917 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
2919 2006-11-28 Chong Yidong <cyd@stupidchicken.com>
2921 * config.in: Regenerate.
2923 2006-11-28 Kenichi Handa <handa@m17n.org>
2925 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
2926 multibyte character.
2928 2006-11-27 Chong Yidong <cyd@stupidchicken.com>
2930 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
2932 2006-11-27 Kim F. Storm <storm@cua.dk>
2934 * window.c (set_window_buffer): Refactor recent changes.
2936 2006-11-27 Jason Rumney <jasonr@gnu.org>
2938 * w32term.c (w32_msg_worker): Declare correctly.
2939 (w32_initialize): Don't cast w32_msg_worker.
2941 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
2943 2006-11-26 Chong Yidong <cyd@stupidchicken.com>
2945 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
2948 2006-11-25 Eli Zaretskii <eliz@gnu.org>
2950 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
2951 as per the calling sequence change on 2006-07-11.
2953 2006-11-25 Chong Yidong <cyd@stupidchicken.com>
2955 * window.c (set_window_buffer): Use BLOCK_INPUT.
2957 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
2959 * fns.c (substring_both): Add missing address operator.
2961 2006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2963 * fns.c: Use AREF/ASIZE macros.
2964 (concat): Provide the full ANSI prototype.
2966 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
2968 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2970 2006-11-23 William Smith <William.Smith@global360.com> (tiny change)
2972 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
2974 2006-11-22 Alfred M. Szmidt <ams@gnu.org> (tiny change)
2976 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
2977 /usr/pkg/lib from the library search path.
2978 (LD_SWITCH_X_DEFAULT): New macro.
2980 2006-11-22 Chong Yidong <cyd@stupidchicken.com>
2982 * window.c (set_window_buffer): Clear mouse highlight if it is in
2985 2006-11-21 Chong Yidong <cyd@stupidchicken.com>
2987 * xfaces.c (realize_default_face): Check if the default font name
2988 exists on this display before trying to use it.
2990 2006-11-21 Richard Stallman <rms@gnu.org>
2992 * fileio.c: Break line before &&, not after.
2994 2006-11-20 Eli Zaretskii <eliz@gnu.org>
2996 * fns.c (concat) [!__GNUC__]: Add prototype.
2998 2006-11-20 Kenichi Handa <handa@m17n.org>
3000 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
3001 check the tailing slash of a filename.
3003 2006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
3005 * indent.c (Fvertical_motion): Include composition in the case of
3008 2006-11-19 Andreas Schwab <schwab@gnu.org>
3010 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
3012 * xmenu.c (Fx_popup_menu): Initialize selection.
3014 2006-11-18 Andreas Schwab <schwab@suse.de>
3016 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
3018 2006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
3020 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
3021 to avoid gcc 2.96 error.
3023 2006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
3025 * search.c (simple_search): In the loop of backward searching,
3026 check also the byte position against the limit.
3028 2006-11-14 Romain Francoise <romain@orebokech.com>
3030 * minibuf.c (Fcompleting_read): Fix typo in docstring.
3032 2006-11-14 Kenichi Handa <handa@m17n.org>
3034 * coding.c (code_convert_region): Initialize coding->heading_ascii.
3035 (decode_coding_string, code_convert_region): Likewise.
3037 2006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3039 * config.in: Regenerate.
3041 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
3042 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
3043 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
3044 CGDisplayScreenSize is available.
3046 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
3047 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
3048 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
3049 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
3050 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
3051 CancelMenuTracking is available.
3053 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
3054 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
3055 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
3056 CGContextShowGlyphsWithAdvances is available.
3058 2006-11-13 Jason Rumney <jasonr@gnu.org>
3060 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
3062 2006-11-13 Nozomu Ando <nand@mac.com>
3064 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
3065 Fix address calculations for case END < START.
3066 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
3068 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
3070 * coding.c (Fencode_sjis_char, Fencode_big5_char):
3071 Improve argument/docstring consistency.
3073 * editfns.c (Fmessage): Doc fixes.
3075 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
3077 2006-11-12 Chong Yidong <cyd@stupidchicken.com>
3079 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
3081 2006-11-12 Romain Francoise <romain@orebokech.com>
3083 * xselect.c (selection-coding-system): Fix docstring.
3085 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
3087 * category.c (Fchar_category_set): Improve arg/docstring consistency.
3090 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
3091 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
3092 (Fstring_make_unibyte): Fix typos in docstrings.
3094 2006-11-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3096 * xterm.h (struct x_display_info): Fix indentation.
3098 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
3099 (x_check_fullscreen): Call do_ewmh_fullscreen.
3100 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
3102 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
3104 * term.c: Define fullscreen_hook.
3105 (syms_of_term): Initialize fullscreen_hook to NULL.
3107 * termhooks.h: Add fullscreen_hook.
3109 2006-11-08 Juanma Barranquero <lekktu@gmail.com>
3111 * bytecode.c (Fbyte_code):
3112 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
3114 2006-11-06 Juanma Barranquero <lekktu@gmail.com>
3116 * lread.c (syms_of_lread):
3117 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
3119 2006-11-06 Martin Rudalics <rudalics@gmx.at>
3121 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
3123 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
3124 Return nil if building without menus.
3126 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
3127 Return nil if building without menus.
3129 2006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
3131 * s/netbsd.h (POSIX_SIGNALS): Define.
3133 2006-11-05 Martin Rudalics <rudalics@gmx.at>
3135 * macmenu.c (Fmenu_or_popup_active_p): New function.
3136 (syms_of_macmenu): Defsubr it.
3138 * w32menu.c (Fmenu_or_popup_active_p): New function.
3139 (syms_of_w32menu): Defsubr it.
3140 (popup_activated_flag, popup_activated): Remove.
3142 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
3143 check popup_activated.
3145 * xmenu.c (Fmenu_or_popup_active_p): New function.
3146 (syms_of_xmenu): Defsubr it.
3148 2006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3150 * unexmacosx.c (malloc_cookie): Remove unused variable.
3151 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
3152 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
3153 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
3154 (num_unexec_regions, unexec_regions): Make variables static.
3155 (print_regions, find_emacs_zone_regions): Make static.
3156 (unexec_region_info): New typedef.
3157 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
3159 (unexec_regions_recorder): Subtract size of trailing null pages from
3160 filesize. Show filesize.
3161 (unexec_regions_merge): Don't merge if null pages of preceding region
3162 is not too small. Use long format in printf.
3163 (copy_segment, copy_data_segment): Show filesize.
3164 (copy_data_segment): Write filesize bytes of region data.
3165 Adjust filesize in segment command accordingly.
3166 (dump_it): Use long format in printf.
3168 2006-11-05 Juanma Barranquero <lekktu@gmail.com>
3170 * dosfns.c (Finsert_startup_screen):
3171 * fns.c (Ffeaturep, syms_of_fns):
3172 * frame.c (syms_of_frame): Fix typos in docstrings.
3174 * unexcw.c (unexec): Fix typo in output message.
3176 2006-11-04 Ralf Angeli <angeli@caeruleus.net>
3178 * w32fns.c (w32_createwindow): Remove code for handling -geometry
3179 command line option and `initial-frame-alist' which is superfluous
3180 after the last change to `w32_createwindow'.
3182 2006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
3184 * w32proc.c (sys_wait): Only wait for processes with fd<0.
3185 Others should be handled by sys_select instead. Fixes problems
3186 with (progn (start-process "" nil "ls") (call-process "ls")).
3188 2006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3190 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
3191 avoid gcc 2.95 error.
3193 2006-11-04 Chong Yidong <cyd@stupidchicken.com>
3195 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
3196 wicon is null, insert an empty button.
3198 2006-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3200 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
3203 2006-11-02 Juanma Barranquero <lekktu@gmail.com>
3205 * emacs.c (Fkill_emacs): Fix typo in docstring.
3207 2006-11-02 Nozomu Ando <nand@mac.com>
3209 * unexmacosx.c (mach_header, segment_command, vm_region, section)
3210 [_LP64]: New defines.
3211 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
3212 (MH_MAGIC) [_LP64]: Redefine.
3213 (delta): Remove variable.
3214 (curr_file_offset, pagesize): New variables.
3215 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
3216 (data_segment_old_fileoff): Initialize explicitly.
3217 (print_region, unexec_regions_recorder, print_load_command_name)
3218 (copy_segment, copy_data_segment): Use long format in printf.
3219 (MAX_UNEXEC_REGIONS): Increase to 400.
3220 (unexec_regions_recorder): Don't warn too many regions here.
3221 (find_emacs_zone_regions): Warn too many regions here.
3222 (print_load_command_name) [_LP64]: Show correct load command name.
3223 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
3224 Show starting virtual memory address. Don't show ending file offset.
3225 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
3226 (dump_it): Use new local variable `linkedit_delta' and pass to them.
3227 Error if trying to handle multiple DATA segments.
3228 (unexec): Initialize variable `pagesize'.
3230 2006-11-01 Juanma Barranquero <lekktu@gmail.com>
3232 * eval.c (Fcatch): Doc fix.
3234 2006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3236 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
3237 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
3238 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
3239 (xpm_load_image): Add const qualifier to arguments.
3240 [MAC_OS] (xpm_color_key_strings): Make static const.
3242 * mac.c (create_apple_event_from_event_ref)
3243 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
3244 (parse_include_file, parse_binding, parse_component)
3245 (parse_resource_name, parse_value, parse_resource_line)
3246 (xrm_merge_string_database, xrm_get_resource)
3247 (xrm_get_preference_database): Add const qualifier to arguments.
3248 [MAC_OSX] (sys_select): Make variable `context' static const.
3250 * macfns.c (mac_color_map): Make static const.
3251 (mac_color_map_lookup): Add const qualifier to arguments.
3253 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
3255 (name_is_separator): Add const qualifier to arguments.
3257 * macselect.c (init_service_handler): Make variable `specs' static
3260 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
3261 `swap_nibbles' static const.
3262 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
3263 `tags', `sizes', `values' static const.
3264 (mac_draw_string_common): Make variables `context' static.
3265 Make variables `tags', `sizes', and `values' static const.
3266 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
3267 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
3268 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
3269 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
3270 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
3271 qualifier to arguments.
3272 (xlfd_scalable_fields, keycode_to_xkeysym_table)
3273 (fn_keycode_to_keycode_table): Make static const.
3274 (mac_load_query_font): Make variables `tags', `sizes', `values',
3275 `types', and `selectors' static const.
3276 (mac_handle_command_event, mac_handle_window_event):
3277 Make variables `names' and `types' static const.
3278 (init_command_handler, install_window_handler): Make variables
3279 `specs*' static const.
3280 (mac_handle_font_event, mac_handle_text_input_event)
3281 (mac_store_service_event): Make variables `names' and `types'
3282 const. Make variables `names_*' and `types_*' static const.
3284 * macterm.h (create_apple_event_from_event_ref)
3285 (create_apple_event_from_drag_ref, xrm_merge_string_database)
3286 (xrm_get_resource, xrm_get_preference_database): Add const
3287 qualifier to arguments in externs.
3289 2006-10-31 Kenichi Handa <handa@m17n.org>
3291 * xfns.c (xic_create_xfontset): Fix previous change.
3293 2006-10-30 Chong Yidong <cyd@stupidchicken.com>
3295 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
3296 /usr/pkg/lib to library search path.
3298 2006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
3300 * ralloc.c (relinquish): Use a long for excess space counter to
3301 handle 64-bit case correctly.
3303 2006-10-29 Jeramey Crawford <jeramey@jeramey.com>
3305 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
3307 2006-10-29 Juanma Barranquero <lekktu@gmail.com>
3309 * window.c (Fdisplay_buffer): Fix typo in docstring.
3311 2006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
3313 * w32term.c (x_draw_glyph_string_foreground): Set background mode
3314 to TRANSPARENT before using overstrike to simulate bold faces.
3316 * xfaces.c (best_matching_font): Fix logic to decide whether to
3317 use overstriking to simulate bold-face (it was reversed).
3319 2006-10-23 Kim F. Storm <storm@cua.dk>
3321 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
3324 * keyboard.c (read_char): Make an element (t . EVENT) in
3325 unread-command-events add EVENT to the current command's key sequence.
3326 (syms_of_keyboard) <unread-command-events>: Update doc.
3328 2006-10-21 Richard Stallman <rms@gnu.org>
3330 * minibuf.c (Vread_expression_map): Define here.
3331 (Qread_expression_history): New variable.
3332 (syms_of_minibuf): Initialize them.
3333 (Feval_minibuffer): Use Vread_expression_map and
3334 Qread_expression_history.
3336 2006-10-21 Kenichi Handa <handa@m17n.org>
3338 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
3339 card, change it to "*".
3340 (xic_create_xfontset): Call XCreateFontSet for each single
3341 fontname in fontsetname.
3343 2006-10-19 Chong Yidong <cyd@stupidchicken.com>
3345 * callint.c (callint_message): Convert to a Lisp string.
3346 (syms_of_callint): Initialize it.
3347 (callint_message_size): Var deleted.
3348 (Fcall_interactively): Use Fformat instead of doprnt to construct
3351 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3353 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
3355 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3357 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
3359 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
3361 2006-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3363 * xselect.c (x_handle_selection_request): If the converted_selection
3364 is nil or XCDR (converted_selection) is nil, decline the request.
3366 2006-10-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3368 * gtkutil.c (get_utf8_string): Remove warnings with casts.
3369 (xg_tool_bar_button_cb): Ditto.
3370 (xg_tool_bar_callback): Ditto.
3372 2006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3374 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
3376 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
3377 menu bar window matrices on non-X systems.
3379 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
3381 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
3382 adjustment is needed.
3383 (mac_load_query_font): Check if width and height are positive.
3385 2006-10-14 Richard Stallman <rms@gnu.org>
3387 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
3389 2006-10-13 Chong Yidong <cyd@stupidchicken.com>
3391 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
3394 2006-10-12 Chong Yidong <cyd@stupidchicken.com>
3396 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
3399 2006-10-12 Romain Francoise <romain@orebokech.com>
3401 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
3403 2006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
3405 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
3407 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
3409 * xterm.c (x_check_expected_move): Remove unused var `count'.
3411 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
3412 Fdefalias is not declared in any *.h file.
3414 2006-10-09 Chong Yidong <cyd@stupidchicken.com>
3416 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
3418 * keyboard.c (command_loop_1): Handle non-number values of
3419 `minibuffer-message-timeout'.
3420 (Fexecute_extended_command): Fix typo.
3422 * minibuf.c (temp_echo_area_glyphs): Sit for
3423 `minibuffer-message-timeout' seconds.
3425 2006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3427 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
3428 Add argument OVERSTRIKE_P.
3429 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
3431 (mac_draw_string, mac_draw_string_16): Remove functions.
3432 (x_draw_glyph_string_foreground): Use overstrike when needed.
3433 (x_draw_composite_glyph_string_foreground): Likewise.
3434 Use mac_draw_image_string_16 instead of mac_draw_string_16.
3435 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
3436 F instead of DPY. All uses changed. Don't save/restore font.
3438 2006-10-07 Ralf Angeli <angeli@caeruleus.net>
3440 * w32fns.c (w32_createwindow): Honour left and top positions if
3441 supplied explicitly.
3443 2006-10-06 Kim F. Storm <storm@cua.dk>
3445 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
3447 2006-10-05 Chong Yidong <cyd@stupidchicken.com>
3449 * frame.c (Qinhibit_face_set_after_frame_default): New var.
3450 (syms_of_frame): Initialize it.
3451 (x_set_frame_parameters): Avoid resetting :font attributes to the
3454 2006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
3456 * lisp.h (clear_regexp_cache): Declare.
3458 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
3459 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
3460 (clear_regexp_cache): Only flush those regexps which depend on
3463 * regex.c (regex_compile): Set the new `used_syntax' bit.
3465 * regex.h: Remove file local variables.
3466 (struct re_pattern_buffer): New field `used_syntax'.
3468 2006-10-03 Kim F. Storm <storm@cua.dk>
3470 * process.c (list_processes_1): Run sentinels before removing dead
3471 processes. Also remove `closed' network connections.
3473 2006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3475 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
3477 2006-09-30 Eli Zaretskii <eliz@gnu.org>
3479 * config.in: Regenerated.
3481 2006-09-29 Juri Linkov <juri@jurta.org>
3483 * buffer.c (syms_of_buffer): Reorder coding systems in the
3484 docstring of %z to the real order displayed in the modeline.
3486 2006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3488 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
3490 2006-09-26 Chong Yidong <cyd@stupidchicken.com>
3492 * indent.c (Fvertical_motion): Do move back if the Lisp string
3493 being displayed contains newlines.
3495 2006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3497 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
3498 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
3500 2006-09-26 Kenichi Handa <handa@m17n.org>
3502 * keymap.c (Fsingle_key_description): For an invalid char, return
3503 "Invalid char code NNNNN".
3505 2006-09-25 Chong Yidong <cyd@stupidchicken.com>
3507 * callint.c (Fcall_interactively): Doc fix.
3509 2006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3511 * macterm.c (x_underline_at_descent_line): New variable.
3512 (syms_of_macterm): DEFVAR_BOOL it.
3513 (x_draw_glyph_string): Use it.
3514 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
3516 2006-09-25 Kenichi Handa <handa@m17n.org>
3518 * keymap.c (Fsingle_key_description): Return unique names for
3521 2006-09-24 Richard Stallman <rms@gnu.org>
3523 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
3525 2006-09-24 Eli Zaretskii <eliz@gnu.org>
3527 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
3528 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
3530 * w32proc.c (nl_langinfo): New function.
3532 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
3533 (w32-pass-lwindow-to-system, w32-enable-num-lock)
3534 (w32-enable-caps-lock, w32-scroll-lock-modifier)
3535 (w32-lwindow-modifier, w32-rwindow-modifier)
3536 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
3538 2006-09-23 Juanma Barranquero <lekktu@gmail.com>
3540 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
3541 (Fdisplay_completion_list): Fix typos in docstrings.
3543 2006-09-23 Romain Francoise <romain@orebokech.com>
3545 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
3547 2006-09-23 Kenichi Handa <handa@m17n.org>
3549 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
3551 2006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
3553 * regex.c (analyse_first): For eight-bit-control chars, mark both the
3554 char's value and its leading byte in the fastmap.
3555 (re_search_2): When fast-scanning without translation, be careful to
3556 check that we only match the leading byte of a multibyte char.
3558 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
3560 (AT_CHAR_BOUNDARY): New macro.
3562 2006-09-22 Kenichi Handa <handa@m17n.org>
3564 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
3565 whose default value is non-nil.
3567 2006-09-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3569 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
3570 Gtk+ versions < 2.10.
3572 * xfns.c (syms_of_xfns): Fix typo in help text for
3573 x-gtk-file-dialog-help-text.
3575 2006-09-21 Kim F. Storm <storm@cua.dk>
3577 * fns.c (Fmemq): Refill doc string.
3578 (Fmemql): New defun, like memq but using eql.
3579 (syms_of_fns): Defsubr it.
3581 2006-09-20 Kim F. Storm <storm@cua.dk>
3583 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
3584 last visible glyph in window.
3586 * window.c (Fset_window_hscroll, Fwindow_line_height):
3587 Doc fix. Use "off-window" instead of "off-screen".
3588 (Fpos_visible_in_window_p): Likewise.
3589 If POS is t, return info for last visible glyph in window.
3591 2006-09-19 Chong Yidong <cyd@stupidchicken.com>
3593 * search.c (struct regexp_cache): New entry syntax_table.
3594 (compile_pattern_1): Set it.
3595 (syms_of_search): Initialize it.
3596 (compile_pattern): Require the syntax_table entry of the cache
3597 element to match the current syntax table entry.
3599 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
3601 * window.c (Fwindow_end): Fix recent change.
3603 2006-09-19 Kim F. Storm <storm@cua.dk>
3605 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
3606 Doc fix. Use "off-screen" instead of "invisible".
3607 (Fwindow_line_height): Make line numbers 0-based. Make line arg
3608 optional; if nil, use current cursor row. Handle text terminals
3609 properly. Return nil if non-interactive or pseudo-window.
3611 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
3613 * keymap.c: Include alloca.h if available.
3614 (Fkey_binding): Only use AREF after checking it's a vector.
3615 Remove unused var `window'.
3617 2006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3619 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
3622 * mac.c [!MAC_OSX] (select): Fix argument name.
3624 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
3625 menu ID for Apple menu.
3626 (menubar_selection_callback): Remove function.
3627 (find_and_call_menu_selection): New function from xmenu.c.
3628 (x_activate_menubar): Use it.
3629 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
3631 * macterm.c (menubar_selection_callback): Remove extern.
3632 (M_APPLE): Change to 234.
3633 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
3634 (do_menu_choice): Remove function.
3636 * macterm.h (struct mac_output): Remove member menubar_active.
3637 (do_menu_choice): Remove extern.
3638 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
3640 2006-09-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3642 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
3643 x_gtk_file_dialog_help_text.
3645 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
3646 to x-gtk-use-old-file-dialog.
3647 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
3648 x_gtk_file_dialog_help_text.
3650 * xfns.c (syms_of_xfns): Ditto.
3652 2006-09-18 Kim F. Storm <storm@cua.dk>
3654 * window.c (Fwindow_line_visibility): Remove.
3655 (Fwindow_line_height): New defun replacing it.
3656 (syms_of_window): Defsubr it.
3658 2006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3660 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
3661 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
3663 2006-09-17 Jay Belanger <belanger@truman.edu>
3668 * strftime.c: Replace "GNU Library General Public License" by "GNU
3669 General Public License" throughout.
3671 2006-09-17 Kim F. Storm <storm@cua.dk>
3673 * dispnew.c (update_text_area): Undo 2000-07-18 change.
3674 Always redrawing whole row if line has mouse-face in it causes
3675 excessive flickering of the mode line.
3677 2006-09-17 Chong Yidong <cyd@stupidchicken.com>
3679 * search.c (clear_regexp_cache): New function.
3681 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
3683 2006-09-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3685 * gtkutil.c (xg_get_file_with_chooser):
3686 Check x-gtk-show-chooser-help-text before adding the help text.
3688 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
3690 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
3691 will simply crash if we fail.
3693 2006-09-16 Richard Stallman <rms@gnu.org>
3695 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
3697 2006-09-15 Kim F. Storm <storm@cua.dk>
3699 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
3700 (syms_of_window): Defsubr it.
3701 (Fwindow_end): Use window's buffer rather than current buffer.
3703 2006-09-15 Jay Belanger <belanger@truman.edu>
3705 * COPYING: Replace "Library Public License" by "Lesser Public
3706 License" throughout.
3708 2006-09-15 David Kastrup <dak@gnu.org>
3710 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
3712 * keymap.c: include "window.h".
3713 (Fcommand_remapping): New optional POSITION argument.
3714 (Fkey_binding): New optional POSITION argument. Completely rework
3715 handling of mouse clicks to get the same order of keymaps as
3716 `read-key-sequence' and heed POSITION. Also temporarily switch
3717 buffers to location of mouse click and back.
3719 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
3720 for additional argument.
3721 (parse_menu_item): Adjust call of `Fkey_binding' for additional
3723 (read_key_sequence): If there are both `local-map' and `keymap'
3724 text properties at some buffer position, heed both.
3726 * keymap.h: Declare additional optional arguments of
3727 `Fcommand_remapping' and `Fkey_binding'.
3729 2006-09-15 Juanma Barranquero <lekktu@gmail.com>
3731 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
3733 2006-09-14 Andreas Schwab <schwab@suse.de>
3735 * print.c: Whitespace fixup.
3737 2006-09-14 Kim F. Storm <storm@cua.dk>
3739 * xdisp.c (produce_image_glyph): Automatically crop wide images at
3740 right window edge so we can draw the cursor on the same row to
3741 avoid confusing redisplay by placing the cursor outside the visible
3744 2006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3746 * xterm.c (x_initialize): Don't install Xt event timer here.
3747 (x_timeout_atimer_activated_flag): New var.
3748 (x_activate_timeout_atimer): New function to install Xt timer.
3749 (x_send_scroll_bar_event, x_process_timeouts): Use it.
3751 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
3752 (create_and_show_popup_menu, create_and_show_dialog): Use it.
3754 * xterm.h (x_activate_timeout_atimer): Add prototype.
3756 2006-09-13 Richard Stallman <rms@gnu.org>
3758 * print.c (print_string): When printcharfun is t,
3759 copy string contents and call strout on the copy.
3761 * keyboard.c (read_char): If end_time specified, don't put the
3762 event into this_command_keys.
3763 (read_key_sequence): If Voverriding_terminal_local_map is specified,
3764 don't check Voverriding_local_map at all.
3766 2006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3768 * textprop.c (Fnext_property_change, Fnext_single_property_change)
3769 (Fprevious_property_change, Fprevious_single_property_change):
3770 Avoid changing limit, so we can correctly catch the case where the
3771 property is constant up to limit.
3773 2006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3775 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3776 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3777 Undo 2006-09-08 change.
3779 2006-09-11 Chong Yidong <cyd@stupidchicken.com>
3781 * keymap.c (Fkey_binding): Use string position for string objects.
3783 2006-09-11 Kim F. Storm <storm@cua.dk>
3785 * keymap.c (Fkey_binding): Fix last change.
3787 * editfns.c (Fmessage): Recommend using (message "%s" ...).
3789 2006-09-10 Chong Yidong <cyd@stupidchicken.com>
3791 * keymap.c (Fkey_binding): Check for local keymap for mouse click
3794 2006-09-10 Kim F. Storm <storm@cua.dk>
3796 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
3797 and Vunread_post_input_method_events.
3799 * dispnew.c (Fredisplay): Document return value.
3801 2006-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3803 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
3805 * gtkutil.c (xg_display_close): Always change default display if needed,
3806 check for < Gtk+ version 2.10 before calling gdk_display_close.
3808 2006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3810 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
3811 Make variable `ofds' static. Remove variable `maxfd'.
3813 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
3816 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
3817 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
3818 Apply 2006-09-08 change for xmenu.c.
3820 * xfns.c (Fx_file_dialog): Call check_x.
3822 2006-09-10 Kim F. Storm <storm@cua.dk>
3824 * xdisp.c (get_window_cursor_type): Use hollow cursor on
3825 non-transparent images.
3827 2006-09-09 Eli Zaretskii <eliz@gnu.org>
3829 * editfns.c (Fsystem_name): Mention "host" in the doc string.
3830 (syms_of_editfns) <system-name>: Likewise.
3832 2006-09-08 Martin Rudalics <rudalics@gmx.at>
3834 * xdisp.c (mouse_autoselect_window): Remove.
3835 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
3837 * dispextern.h (mouse_autoselect_window): Remove extern.
3838 (Vmouse_autoselect_window): Add extern.
3840 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
3841 instead of mouse_autoselect_window.
3843 * msdos.c (dos_rawgetc): Likewise.
3845 * w32term.c (w32_read_socket): Likewise.
3847 * xterm.c (handle_one_xevent): Likewise.
3849 2006-09-08 Richard Stallman <rms@gnu.org>
3851 * xdisp.c (Vmenu_updating_frame): Define here.
3852 (syms_of_xdisp): DEFVAR it here.
3853 (update_menu_bar): Always return hooks_run.
3854 Set Vmenu_updating_frame.
3856 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
3857 before calculating SELECTED_FRAME.
3859 * xmenu.c (Vmenu_updating_frame): Don't define here.
3860 (syms_of_xmenu): Don't DEFVAR it here.
3862 * xterm.c (x_error_quitter): For BadName error, just return.
3864 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
3866 * casetab.c (init_casetab_once): Call set_case_table.
3868 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
3870 * process.c (inhibit_sentinels): New variable.
3871 (exec_sentinel): Test inhibit_sentinels.
3872 (init_process): Initialize it.
3874 * process.h (inhibit_sentinels): Add decl.
3876 * search.c (looking_at_1, string_match_1, search_command):
3877 Make syntax table's canon table point to eqv table.
3879 2006-09-08 Andreas Schwab <schwab@suse.de>
3881 * print.c (strout): Fix whitespace.
3883 2006-09-08 Kim F. Storm <storm@cua.dk>
3885 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
3887 2006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3889 * mac.c [!MAC_OSX]: Don't include keyboard.h.
3890 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
3891 in the same BLOCK_INPUT block, in case that some input has already
3892 been read asynchronously. Pretend to be interrupted by a signal
3893 if some input is available.
3894 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
3895 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
3896 Now used for ReceiveNextEvent timeout instead of select timeout.
3897 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
3898 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
3899 support. Quit event loop.
3900 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
3901 connect support. Reuse previously allocated CFRunLoopSource.
3902 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
3903 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3905 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3906 Specify kWindowAsyncDragAttribute.
3908 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
3909 (mac_get_ideal_size): New functions.
3910 (x_set_offset, x_set_window_size, x_make_frame_visible)
3911 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
3912 (install_window_handler, mac_handle_window_event)
3913 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
3914 kEventWindowBoundsChanged.
3915 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
3918 2006-09-07 Andreas Schwab <schwab@suse.de>
3920 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
3921 use lib64 instead of lib.
3923 2006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
3925 * Makefile.in: Avoid double quotes when possible.
3927 2006-09-06 Kenichi Handa <handa@m17n.org>
3929 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
3930 a Lisp string from the result of emacs_memftimeu call.
3932 2006-09-06 Kim F. Storm <storm@cua.dk>
3934 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
3935 so calculate heights even when pos-visible-in-window-p is called
3936 with partially = t. Don't overshoot last_visible_y in move_it_to.
3937 Return row height and row number in new rowh and vpos args.
3938 (cursor_row_fully_visible_p): First line is always "fully visible".
3939 (try_window): Don't clear matrix if vscrolled.
3941 * lisp.h (pos_visible_p): Update prototype.
3943 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
3944 Return row height and row number for partially visible rows.
3945 Modify return value to a 2 element list for fully visible rows and
3946 6 for partially visible row.
3947 (window_scroll_pixel_based): Use pos_visible_p directly instead of
3948 Fpos_visible_in_window_p. Fix auto vscrolling for partially
3949 visible lines. Only vscroll backwards if already vscrolled
3950 forwards. Unconditionally vscroll forwards if PT is first (and
3951 only) line. Set new window start instead of scrolling at
3952 start/end of tall line.
3954 2006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3956 * macterm.c (install_window_handler, mac_handle_window_event)
3957 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
3958 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
3959 ASCII keystroke event.
3961 2006-09-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3963 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
3964 the file chooser message. Only call gtk_file_chooser_set_current_name
3965 when action is SAVE.
3967 2006-09-04 Andreas Schwab <schwab@suse.de>
3969 * Makefile.in: Double all single and back quotes in C-style
3970 comments to help fontifier.
3972 2006-09-03 Jason Rumney <jasonr@gnu.org>
3974 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
3975 (globals_of_w32): Register it as a signal handler.
3977 2006-09-02 Juri Linkov <juri@jurta.org>
3979 * marker.c (Fmarker_position): Doc fix.
3981 2006-09-03 Eli Zaretskii <eliz@gnu.org>
3983 * window.c (syms_of_window) <split-height-threshold>:
3984 <window-min-height, window-min-width>: Doc fix.
3986 2006-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3988 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
3989 for writing files. Call gtk_file_chooser_set_current_name to keep
3992 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
3994 2006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
3996 * fns.c (concat) [__GNUC__]: Declare with
3997 `__attribute__((noinline))'.
3999 * eval.c (apply1, call2) [__GNUC__]: Declare with
4000 `__attribute__((noinline))'.
4002 2006-09-02 Stuart D. Herring <herring@lanl.gov>
4004 * minibuf.c (Finternal_complete_buffer): New function.
4005 (syms_of_minibuf): Defsubr it.
4006 (Fread_buffer): Use it, instead of Vbuffer_alist.
4008 2006-09-01 Martin Rudalics <rudalics@gmx.at>
4010 * buffer.h (struct buffer_text): New field chars_modiff.
4011 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
4012 * buffer.c (Fbuffer_chars_modified_tick): New function returning
4013 value of BUF_CHARS_MODIFF.
4014 (syms_of_buffer): Defsubr it.
4015 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
4016 * insdel.c (modify_region): New argument preserve_chars_modiff.
4017 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
4018 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
4019 (adjust_after_replace, adjust_after_replace_noundo)
4020 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
4021 * lisp.h (modify_region): Add fourth argument in extern.
4022 * casefiddle.c (casify_region): Call modify_region with fourth
4023 argument zero to assert that CHARS_MODIFF is updated.
4024 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4025 (Ftranspose_regions): Likewise.
4026 * textprop.c (Fadd_text_properties, Fset_text_properties)
4027 (Fremove_text_properties, Fremove_list_of_text_properties):
4028 Call modify_region with fourth argument 1 to avoid that
4029 CHARS_MODIFF is updated.
4031 2006-08-31 Richard Stallman <rms@gnu.org>
4033 * editfns.c (Fformat): Don't sign-extend for %o or %x.
4035 2006-08-29 Chong Yidong <cyd@stupidchicken.com>
4037 * indent.c (Fvertical_motion): Don't move back if we were
4038 displaying a Lisp string, either.
4040 2006-08-28 Kim F. Storm <storm@cua.dk>
4042 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
4043 Don't attempt to replace cursor on image glyphs.
4045 2006-08-28 Kenichi Handa <handa@m17n.org>
4047 * coding.c (Fdetect_coding_region, Fdetect_coding_string):
4048 Fix docstring about ISO-2022 control characters.
4050 2006-08-28 Kim F. Storm <storm@cua.dk>
4052 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
4053 with a hollow box cursor if image is larger than 32x32 (or the default
4054 frame font if that is bigger). Replace any other cursor on images
4055 with hollow box cursor, as redisplay doesn't support bar and hbar
4058 2006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4060 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
4061 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
4063 * dired.c (directory_files_internal_unwind, directory_files_internal)
4064 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
4066 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
4069 * keyboard.c (in_sighandler): Remove variable.
4070 (Fcurrent_idle_time): Add missing `doc:'.
4071 (input_available_signal, init_keyboard): Undo previous change.
4073 * keyboard.h (in_sighandler): Remove extern.
4075 * mac.c (create_apple_event_from_event_ref, select)
4076 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
4077 (Fmac_set_file_type, cfstring_create_normalized)
4078 (mac_get_system_locale, select_and_poll_event, sys_select):
4079 Use OSStatus instead of OSErr.
4081 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
4082 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
4083 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
4085 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
4086 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
4087 (get_scrap_private_timestamp, get_scrap_target_type_list)
4088 (x_own_selection, x_get_foreign_selection)
4089 (Fx_disown_selection_internal, Fx_selection_owner_p)
4090 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
4092 * macterm.c (mac_draw_string_common, mac_query_char_extents)
4093 (x_iconify_frame, XLoadQueryFont, install_window_handler)
4094 (mac_handle_command_event, init_command_handler, init_menu_bar):
4095 Use OSStatus instead of OSErr.
4096 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
4098 (x_query_font): Apply 2006-08-04 change for xterm.c.
4099 (Qhi_command): Rename from Qhicommand. All uses changed.
4101 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
4103 (FRAME_FILE_NAME): Remove macro.
4104 (install_window_handler, create_apple_event_from_event_ref):
4105 Return OSStatus instead of OSErr.
4107 2006-08-26 Kim F. Storm <storm@cua.dk>
4109 * buffer.c (Fset_buffer_multibyte):
4110 * editfns.c (Fcurrent_time, Fget_internal_run_time):
4111 * macfns.c (Fxw_color_values):
4112 * w32fns.c (Fxw_color_values):
4113 * xfns.c (Fxw_color_values): Simplify; use list3.
4115 * fileio.c (Fmake_directory_internal, Fdelete_directory)
4116 (Fdelete_file): Simplify; use list1.
4117 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
4118 Simplify; remove NO_ARG_ARRAY stuff, use list2.
4120 2006-08-25 Richard Stallman <rms@gnu.org>
4122 * buffer.c (Fswitch_to_buffer): Fix previous change.
4124 2006-08-25 Kim F. Storm <storm@cua.dk>
4126 * keyboard.c (Fcurrent_idle_time): Simplify.
4128 2006-08-25 Richard Stallman <rms@gnu.org>
4130 * fns.c (sxhash_string): Rotate properly; don't lose bits.
4132 2006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
4134 * xdisp.c (overline_margin): New variable.
4135 (x_produce_glyphs): Use it.
4136 (syms_of_xdisp): DEFVAR_INT it.
4138 * xterm.c (x_underline_at_descent_line): New variable.
4139 (syms_of_xterm): DEFVAR_BOOL it.
4140 (x_draw_glyph_string): Use it.
4141 Draw underline and overline up to the end of line if the face
4142 extends to the end of line.
4144 * macterm.c: Likewise.
4146 * w32term.c: Likewise.
4148 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
4150 * buffer.c (Fswitch_to_buffer): Move buffer to front of
4151 buffer-alist if necessary.
4153 2006-08-22 Kim F. Storm <storm@cua.dk>
4155 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
4156 number of items changes.
4158 2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
4160 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
4162 2006-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4164 * keyboard.c: Clarify difference between in_sighandler and
4167 2006-08-21 Kim F. Storm <storm@cua.dk>
4169 * macterm.c (x_draw_stretch_glyph_string):
4170 * w32term.c (x_draw_stretch_glyph_string):
4171 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
4172 stretch glyph in left marginal areas on header and mode lines.
4174 2006-08-21 Kenichi Handa <handa@m17n.org>
4176 * keyboard.c (syms_of_keyboard): Docstring of
4177 Vunread_post_input_method_events and Vunread_input_method_events
4180 2006-08-20 Chong Yidong <cyd@stupidchicken.com>
4182 * keyboard.c (show_help_echo): Preserve mouse movement flag if
4185 2006-08-20 Richard Stallman <rms@gnu.org>
4187 * xfaces.c (load_pixmap): Add quotes in error message.
4189 * keyboard.c (Fcurrent_idle_time): New function.
4190 (syms_of_keyboard): defsubr it.
4192 2006-08-18 Nick Roberts <nickrob@snap.net.nz>
4194 * window.c (Fset_window_fringes): Do nothing on a tty.
4195 (Fwindow_fringes): Put ? operator after the line break.
4197 2006-08-16 Andreas Schwab <schwab@suse.de>
4199 * print.c (debug_output_compilation_hack): Fix return type.
4201 2006-08-16 Richard Stallman <rms@gnu.org>
4203 * print.c (debug_output_compilation_hack): New function.
4205 2006-08-16 Kenichi Handa <handa@m17n.org>
4207 * fileio.c (choose_write_coding_system): Use LF for end-of-line
4210 2006-08-15 Chong Yidong <cyd@stupidchicken.com>
4212 * keyboard.c (read_char): Don't change idle timer state at all if
4213 end_time is supplied.
4215 2006-08-15 Kenichi Handa <handa@m17n.org>
4217 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
4218 is exhausted, return with RET.
4219 (detect_coding_emacs_mule, detect_coding_iso2022)
4220 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
4221 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
4224 2006-08-14 Chong Yidong <cyd@stupidchicken.com>
4226 * keyboard.c (read_char): Don't reset idle timers if a time limit
4229 2006-08-14 Kim F. Storm <storm@cua.dk>
4231 * .gdbinit (pitx): Print iterator position.
4232 Limit stack dump in case iterator is not initialized.
4234 2006-08-12 Eli Zaretskii <eliz@gnu.org>
4236 * frame.c (Fmouse_position, Fmouse_pixel_position)
4237 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
4239 2006-08-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4241 * xselect.c (Fx_register_dnd_atom): New function.
4242 (syms_of_xselect): Defsubr it.
4243 (x_handle_dnd_message): Check that message_type is in
4244 dpyinfo->x_dnd_atoms before generating lisp event.
4246 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
4247 of drag and drop Atoms.
4249 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
4251 2006-08-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4253 * keyboard.c: Define in_sighandler.
4254 (input_available_signal): Set in_sighandler.
4255 (init_keyboard): Initialize in_sighandler.
4257 * keyboard.h: Declare in_sighandler.
4259 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
4260 to check if mutex should be locked or not.
4262 2006-08-09 Richard Stallman <rms@gnu.org>
4264 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
4265 (read_key_sequence): Always start fkey.start and fkey.end at 0,
4266 and likewise for keytran.
4268 2006-08-09 Kenichi Handa <handa@m17n.org>
4270 * coding.c (syms_of_coding): Improve the docstring
4271 of file-coding-system-alist.
4273 2006-08-07 Andreas Schwab <schwab@suse.de>
4275 * puresize.h (BASE_PURESIZE): Increase to 1120000.
4277 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
4279 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
4280 (Fkill_all_local_variables): Use it.
4281 (syms_of_buffer): Defvar it.
4283 2006-08-05 Eli Zaretskii <eliz@gnu.org>
4285 * w32.c (w32_valid_pointer_p): New function.
4287 * w32.h: Add prototype for w32_valid_pointer_p.
4289 * alloc.c: Include w32.h.
4290 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
4293 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
4294 is exactly equal to end_time, not only when it is past that.
4296 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
4298 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
4300 * process.c: Reapply 2006-08-01 change.
4302 2006-08-04 Eli Zaretskii <eliz@gnu.org>
4304 * w32fns.c (w32_query_font): Fix last change: use stricmp.
4306 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4308 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
4309 the before-change-functions since they may have altered the buffer.
4311 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
4313 * w32fns.c (w32_createwindow): Handle -geometry command line option
4314 and the geometry settings in the Registry.
4316 2006-08-04 Kenichi Handa <handa@m17n.org>
4318 * w32fns.c (w32_query_font): Compare names by ignoring case.
4320 * xterm.c (x_query_font): Compare names by ignoring case.
4322 2006-08-03 Jason Rumney <jasonr@gnu.org>
4324 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
4325 when no option selected.
4327 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
4329 * process.c: Revert last change.
4331 2006-08-01 Kim F. Storm <storm@cua.dk>
4333 * process.c (wait_reading_process_output_unwind): New function.
4334 Restores waiting_for_user_input_p to saved value.
4335 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
4336 instead of save/restore old value on stack.
4338 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
4340 * editfns.c: Undo 2006-06-27 change.
4342 2006-07-29 Eli Zaretskii <eliz@gnu.org>
4344 * coding.c (Ffind_operation_coding_system): Revert the change from
4347 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
4349 2006-07-28 Richard Stallman <rms@gnu.org>
4351 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
4352 Add conditional aborts for clarity.
4354 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
4355 Used to avoid running the hooks over and over for each frame.
4356 (prepare_menu_bars): Pass value from update_menu_bar
4357 as HOOKS_RUN of next call.
4359 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
4361 2006-07-28 Kim F. Storm <storm@cua.dk>
4363 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
4364 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
4366 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
4368 * keyboard.c (read_char): New arg END_TIME specifying timeout.
4369 All callers changed. Turn off echoing if END_TIME is non-NULL.
4370 (kbd_buffer_get_event): New arg END_TIME.
4372 * lread.c (read_filtered_event): New arg SECONDS to wait until.
4373 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
4375 * lisp.h: Update read-char, read-event, and read_filtered_event
4378 * keyboard.h: Include systime.h. Update read_char prototype.
4380 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4382 * alloc.c (find_string_data_in_pure): New function.
4383 (make_pure_string): Use it to reuse existing string data if possible.
4385 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
4387 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4389 * keymap.c (Fdefine_key): If the key binding definition looks like an
4390 XEmacs-style key sequence, convert it to Emacs's format.
4392 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
4394 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
4395 parameters are bound to some values, use that instead of
4398 2006-07-21 Eli Zaretskii <eliz@gnu.org>
4400 * w32.c (convert_time): Use explicit long double constants to
4401 ensure long double arithmetics is used throughout.
4403 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4405 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
4406 (init_alloc_once): Initialize them.
4407 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
4410 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
4412 2006-07-18 Francis Litterio <franl@world.std.com>
4414 * w32term.c (x_calc_absolute_position): Fix frame positioning
4415 with negative X/Y coordinates.
4417 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
4419 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
4421 * textprop.c (text_read_only): Likewise.
4423 * lread.c (end_of_file_error): Likewise.
4425 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
4428 * eval.c (unwind_to_catch): Likewise.
4430 * buffer.h (buffer_slot_type_mismatch): Likewise.
4432 2006-07-18 Kim F. Storm <storm@cua.dk>
4434 Cleanup Fsignal calls that never returns; now only use it for Qquit.
4436 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
4437 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
4438 (signal_error): New no-return function (from xfaces.c).
4439 (Fthrow): Use xsignal2 instead of Fsignal + abort.
4440 (error): Use xsignal1 instead of Fsignal + abort.
4441 (FletX, Flet, grow_specpdl): Use signal_error.
4442 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
4444 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
4445 (list1): New function.
4447 * lisp.h (list1): Add EXFUN.
4448 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
4449 Add prototypes. Mark them as no-return.
4451 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
4454 * callint.c (check_mark): Use xsignal0.
4456 * casefiddle.c (casify_object): wrong_type_argument is no-return.
4458 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
4460 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
4461 (Fdefine_coding_system_internal): Use xsignal1.
4463 * data.c (circular_list_error): Use xsignal.
4464 (wrong_type_argument): Use xsignal2. Don't care about return value.
4465 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
4466 Remove loop around Fsignal.
4467 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
4468 (indirect_function, Findirect_function, Fstring_to_number)
4469 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
4470 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
4473 * doc.c (Fdocumentation): Use xsignal1.
4475 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
4477 * fileio.c (report_file_error): Use xsignal.
4478 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
4479 (Finsert_file_contents): Use xsignal2.
4480 (syms_of_fileio): Use list2, list3.
4482 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
4483 (range_error2, domain_error2): Use xsignal3.
4484 (rounding_driver, fmod_float): Use xsignal0.
4485 (float_error): Use xsignal1.
4486 (matherr): Use xsignal.
4488 * fns.c (Flength): wrong_type_argument is no-return.
4489 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
4490 (Fmd5): Use xsignal1.
4492 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
4494 * keyboard.c (recursive_edit_1): Use xsignal1.
4496 * keymap.c (Fmap_keymap): Use xsignal1.
4498 * lread.c (Fload): Use xsignal2, signal_error.
4499 (end_of_file_error): Use xsignal0, xsignal1.
4500 (read0): Use xsignal1.
4501 (invalid_syntax): New error function marked no-return.
4502 (read_integer, read1, read_list): Use it.
4504 * macselect.c (x_get_local_selection): Use signal_error.
4506 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
4508 * search.c (compile_pattern_1): Use xsignal1.
4509 (signal_failure): Remove (was only called once).
4510 (search_command): Use xsignal1 instead of signal_failure.
4512 * syntax.c (scan_lists): Use xsignal3.
4514 * textprop.c (text_read_only): Use xsignal0, xsignal1.
4516 * unexsol.c (unexec): Use xsignal.
4518 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4521 * xfaces.c (signal_error): Move to eval.c.
4522 (resolve_face_name): Use xsignal1.
4524 * xfns.c (x_decode_color): Use signal_error.
4526 * xselect.c (x_get_local_selection, copy_multiple_data)
4527 (x_get_window_property_as_lisp_data)
4528 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
4529 (Fx_get_cut_buffer_internal): Use signal_error.
4531 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4533 * macterm.c (XTread_socket): Undo previous change.
4535 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4537 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
4538 directly lookup keycode_to_xkeysym_table.
4539 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
4540 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
4541 (XTread_socket): Use character codes to construct keypad key events.
4542 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
4543 (x_delete_display): Apply 2006-07-04 change for xterm.c.
4545 2006-07-17 Richard Stallman <rms@gnu.org>
4547 * keyboard.c (Vcommand_error_function): New variable.
4548 (syms_of_keyboard): Defvar it.
4549 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
4551 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
4553 2006-07-17 Kim F. Storm <storm@cua.dk>
4555 * xdisp.c (handle_single_display_spec): Ensure the right value of
4556 it->position is saved by push_it.
4557 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
4558 (reseat_1): Don't setup it->object twice.
4559 (set_iterator_to_next): No need to set it->object after pop_it.
4560 (move_it_to): Explicitly check to see if last move reached to_charpos.
4562 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
4564 * xdisp.c (display_mode_line): Preserve match data.
4566 2006-07-14 Kim F. Storm <storm@cua.dk>
4568 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
4569 (init_winsock): Load them. Use ws2_32.dll.
4570 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
4571 (sys_accept): Undo last change. Instead, set child status to
4572 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
4573 sys_select will wakeup the reader thread.
4574 (_sys_wait_accept): New function used by reader thread to wait for
4575 an incoming connection on a server socket.
4577 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
4579 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
4580 server socket (FILE_LISTEN flag).
4582 2006-07-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4584 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
4586 2006-07-14 Kim F. Storm <storm@cua.dk>
4588 * w32.c: Fix high cpu load for server sockets.
4589 (pfn_WSAEventSelect): New function ptr.
4590 (init_winsock): Load it.
4591 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
4592 char_avail event object to FD_ACCEPT.
4593 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
4594 socket's char_avail event object to FD_READ|FD_CLOSE.
4596 * w32.h (FILE_LISTEN): New filedesc flag value.
4598 2006-07-13 Kim F. Storm <storm@cua.dk>
4600 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
4601 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
4602 Simplify loops and use CAR for Bnth and Belt.
4604 * data.c (Findirect_function): Optimize for no indirection.
4606 * eval.c (Fthrow): Remove loop around Fsignal.
4607 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
4608 Use original function name in all signaled errors.
4609 Simplify Fsignal calls (no return).
4610 (funcall_lambda): Simplify Fsignal calls (no return).
4612 2006-07-13 Andreas Schwab <schwab@suse.de>
4614 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
4617 2006-07-13 Kenichi Handa <handa@m17n.org>
4619 * editfns.c (Fformat): Fix calculation of text property positions
4622 2006-07-12 Kim F. Storm <storm@cua.dk>
4624 * lisp.h (CHECK_TYPE): New macro for generic type checking.
4625 (CAR_SAFE, CDR_SAFE): New macros.
4626 (ARRAYP, CHECK_ARRAY): New macros.
4627 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
4628 (CHECK_WINDOW_CONFIGURATION): New macro.
4629 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
4630 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
4631 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
4632 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
4633 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
4634 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
4635 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
4636 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
4638 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
4639 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
4641 * callint.c (Fcall_interactively):
4642 * casefiddle.c (casify_object):
4643 * editfns.c (general_insert_function):
4644 * fns.c (Flength, Felt, Ffillarray):
4645 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
4647 * data.c (wrong_type_argument): Remove loop around Fsignal.
4648 (Farrayp, Fsequencep): Use ARRAYP.
4650 (Fcar_safe): Use CAR_SAFE.
4652 (Fcdr_safe): Use CDR_SAFE.
4653 (Fsetcar, Fsetcdr): Use CHECK_CONS.
4654 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
4655 (Faset): Use CHECK_ARRAY.
4657 * fns.c (Felt): Use CHECK_ARRAY.
4658 (concat): Use CHECK_NUMBER.
4659 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
4660 (Fmemq): Use CHECK_LIST.
4661 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
4662 (assq_no_quit): Use CAR_SAFE.
4663 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
4664 Use CHECK_LIST_CONS.
4665 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
4667 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
4669 * casetab.c (check_case_table):
4670 * category.c (check_category_table):
4671 * marker.c (Fcopy_marker):
4672 * syntax.c (check_syntax_table):
4673 * xfaces.c (load_pixmap): Use CHECK_TYPE.
4675 * fns.c (Fcopy_sequence, concat):
4676 * fringe.c (Fdefine_fringe_bitmap):
4677 * lread.c (check_obarray): Cleanup wrong_type_argument use.
4679 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
4681 * keymap.c (Fdefine_key, Flookup_key):
4682 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
4684 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
4686 * search.c (Fset_match_data): Use CHECK_LIST.
4688 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
4690 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
4691 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
4693 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4695 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
4697 * dired.c: Include blockinput.h.
4698 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
4700 * editfns.c: Include blockinput.h.
4701 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
4704 * fileio.c: Include blockinput.h.
4705 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
4707 (search_embedded_absfilename): Remove spurious xfree.
4709 2006-07-11 Kim F. Storm <storm@cua.dk>
4711 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
4712 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
4713 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
4714 Signal error if TIMEOUT is not a number.
4715 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
4716 The rework of sit_for args also fixes several incorrect Qt args
4717 which should have been 1.
4718 (Fredisplay): Pass 1 instead of Qt to swallow_events and
4719 detect_input_pending_run_timers.
4721 * lisp.h (sit_for): Update prototype.
4722 (Fredisplay): Add EXFUN.
4724 * dispextern.h (sit_for): Remove prototype.
4726 * callint.c (Fcall_interactively):
4727 * minibuf.c (temp_echo_area_glyphs):
4728 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
4729 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
4731 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
4733 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
4735 2006-07-11 Kim F. Storm <storm@cua.dk>
4737 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
4738 input is available. Fix test for redisplay_dont_pause non-nil.
4739 Specbind redisplay-dont-pause to t if FORCE non-nil.
4741 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
4743 * puresize.h (BASE_PURESIZE): Increment to 1211000.
4745 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
4746 (Fsit_for): Function deleted.
4748 * keyboard.c (command_loop_1, Fexecute_extended_command):
4749 Call sit_for instead of Fsit_for.
4751 * minibuf.c (temp_echo_area_glyphs): Likewise.
4753 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
4755 * syntax.c (Fforward_comment): Revert the reversion.
4756 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
4758 2006-07-09 John Paul Wallington <jpw@pobox.com>
4760 * syntax.c (Fforward_comment): Revert previous change.
4762 2006-07-09 Kim F. Storm <storm@cua.dk>
4764 * window.c (Fforce_window_update): Doc fix.
4766 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
4768 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
4769 directory unreadable for better user privacy.
4771 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
4773 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
4775 * lread.c (read_filtered_event): Remove `register' qualifier because it
4776 causes compilation problem with gcc-4.0.2-20051125 on amd64.
4777 (readevalloop): Remove unused var `bpos'.
4778 Yet another int/Lisp_Object mixup (YAILOM).
4780 2006-07-07 Eli Zaretskii <eliz@gnu.org>
4782 * keyboard.c (Fexecute_extended_command): Mention the argument
4783 PREFIXARG in the doc string.
4785 2006-07-07 Kim F. Storm <storm@cua.dk>
4787 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
4789 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
4791 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
4792 clash detection using the base buffer.
4794 * puresize.h (BASE_PURESIZE): Increment to 1210500.
4796 2006-07-04 Kim F. Storm <storm@cua.dk>
4798 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
4800 2006-07-04 Kenichi Handa <handa@m17n.org>
4802 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
4803 to update Voverriding_fontspec_alist.
4805 2006-07-03 Richard Stallman <rms@gnu.org>
4807 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
4809 * xfaces.c (Fface_attribute_relative_p): Doc fix.
4811 * textprop.c (Fget_char_property_and_overlay): Doc fix.
4813 * eval.c (Fdefvaralias): Doc fix.
4815 2006-07-03 Kim F. Storm <storm@cua.dk>
4817 * dispnew.c (sit_for): Fix preempt condition.
4819 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
4821 * lread.c (read_filtered_event): Treat select-window just like
4824 2006-07-02 Kim F. Storm <storm@cua.dk>
4826 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
4827 to ever fit the tool-bar,
4828 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
4829 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
4830 (redisplay_tool_bar): Only clear desired matrix if we actually
4831 change the tool-bar window height. Only try to make the tool-bar
4832 window bigger if there is actually room for it.
4834 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
4836 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
4837 SPI_GETWORKAREA to find the dimensions of the screen work area,
4838 and adjust vertical position of the frame in order to avoid being
4839 covered by the task bar.
4841 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
4842 f->left_pos and SH_SHOW instead of f->top_pos in the call to
4843 CreateWindow. Record the actual position in f->left_pos and
4846 2006-06-30 John Paul Wallington <jpw@pobox.com>
4848 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
4849 Doc fix - default value has changed.
4851 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4853 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
4855 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
4857 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
4859 * macterm.c (Qeql): Add extern.
4860 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
4861 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
4862 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
4863 Change keys of Vmac_atsu_font_table from strings to numbers.
4864 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
4865 (init_font_name_table) [USE_ATSUI]: Use it.
4866 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
4867 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
4868 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
4869 only when saved_ts_script_language_on_focus coincides with
4870 Vmac_ts_script_language_on_focus.
4871 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
4872 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
4873 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
4874 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
4876 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
4878 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
4879 (Ffield_string_no_properties, Ffield_end): Mention
4880 args-out-of-range error condition in docstring.
4882 2006-06-27 Kim F. Storm <storm@cua.dk>
4884 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
4886 2006-06-25 Kim F. Storm <storm@cua.dk>
4888 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
4889 version 2.4 and later.
4891 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
4893 * xfns.c (Fx_create_frame): Set font parameter directly instead of
4894 using x_default_parameter, since x_get_args clears the parm alist.
4896 2006-06-24 Eli Zaretskii <eliz@gnu.org>
4898 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
4901 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
4903 * lread.c (read_escape): When an unknown Unicode code point is
4904 encountered as a string or character escape, signal an error.
4906 2006-06-23 Kim F. Storm <storm@cua.dk>
4908 * .gdbinit (pitx): Dump iterator stack.
4910 * xdisp.c (handle_composition_prop): Push iterator on stack.
4911 (set_iterator_to_next): Pop iterator at end of composition.
4913 2006-06-23 Martin Rudalics <rudalics@gmx.at>
4915 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
4916 itself on DOS_NT platforms, if the old and new names are identical
4917 but for the letter-case.
4919 2006-06-21 Kim F. Storm <storm@cua.dk>
4921 * dispextern.h (struct it): Add `position' member to iterator stack.
4922 Rename `pos' member to `current'. Rearrange and add comments.
4924 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
4925 if we get any overlays.
4926 (set_cursor_from_row): Don't clobber `end' if we rescan from
4928 (push_it, pop_it): Save it->position.
4930 2006-06-19 Richard Stallman <rms@gnu.org>
4932 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
4933 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
4934 for the case of a top-level window and the following minibuffer.
4935 Don't exit because of no `next' when there is a parent.
4936 Use the FIRST_ONLY feature when resizing following windows.
4938 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
4940 2006-06-17 Kim F. Storm <storm@cua.dk>
4942 * dispnew.c (update_frame): Check for input pending on entry.
4943 (update_window, update_frame_1): Break loop if input is detected.
4945 2006-06-16 Francis Litterio <flitterio@gmail.com>
4947 * xterm.c (x_check_expected_move, handle_one_xevent)
4948 (x_set_offset, x_check_fullscreen): Extensive changes to make
4949 frame positioning deterministic under X.
4951 * xterm.h (x_output): Add members left_before_move and
4952 top_before_move. Removed members expected_left and expected_top.
4954 2006-06-16 Kim F. Storm <storm@cua.dk>
4956 * dispextern.h (struct it): Add union to iterator stack to save
4957 image, composition, and stretch specific paramters.
4959 * xdisp.c (next_overlay_string): Fix assert.
4960 (push_it, pop_it): Handle composition and stretch specific values.
4961 Only handle it->slice in image (for now).
4962 (back_to_previous_visible_line_start): Continue search if newline is
4963 part of a compisition. Simplify.
4964 (reseat_1): Set it->object to buffer.
4965 (set_iterator_to_next): Set it->object to string or buffer, when
4966 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
4967 (next_element_from_composition): Set it->object to buffer if not
4969 (set_cursor_from_row): Only save start of string if not already
4970 done to handle multiple strings in a row.
4972 * .gdbinit (pitx): Show composition parameters.
4973 (pgx, pg): New commands to print a glyph structure.
4974 (pgi, pgn): New commands to print specific/next glyph.
4975 (pgrowx, pgrow): New commands to print all glyphs in a row.
4977 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4979 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
4980 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
4982 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
4983 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
4984 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
4985 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
4986 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
4987 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
4988 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
4989 Services functions to get size of main display in pixels.
4991 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
4993 * xdisp.c (back_to_previous_visible_line_start):
4994 Reset it->continuation_lines_width.
4996 2006-06-14 Richard Stallman <rms@gnu.org>
4998 * eval.c (Fdefconst): Mark variable as risky.
5000 * callproc.c (Fcall_process): Doc fix.
5002 * window.c (adjust_window_trailing_edge): Don't break out of the loop
5003 because there's no next window, if there are parallel windows.
5004 Do break out when WINDOW is nil.
5006 2006-06-14 Kim F. Storm <storm@cua.dk>
5008 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
5009 iterator stack (instead of hardcoded number). Increase from 2 to
5010 4 to make room for propertized overlay strings before and after a
5011 display string, image or composition.
5012 (struct it): Add image_id and method members to iterator stack.
5014 * xdisp.c (init_from_display_pos): Don't set it->method and
5015 overlay_string_index after pop_it. Add asserts.
5016 (handle_stop): Look for overlay strings around a display string,
5017 image, or composition. Handle properties on those strings.
5018 (next_overlay_string): Don't set string, pos or method after pop_it.
5019 (get_overlay_strings_1): Split from get_overlay_strings; don't
5020 modify it if no overlay strings are found.
5021 (get_overlay_strings): Use get_overlay_strings_1. Always set
5022 it->string and it->method.
5023 (push_it): Push it->image_id and it->method. Push it->object
5024 instead of it->string if method is GET_FROM_IMAGE.
5025 (pop_it): Pop it->image_id and it->method. Ppo it->object
5026 instead of it->string if method is GET_FROM_IMAGE.
5027 Reset it->current.string_pos if popped it->string is nil.
5028 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
5029 whether a given change was correct; but the change is correct.
5030 Clear it->string_from_display_prop_p.
5031 (set_iterator_to_next): Rely on it->method and it->image_id from
5032 iterator stack, instead of setting them explicitly after pop_it.
5034 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
5035 negative time forces redisplay even when input is available.
5036 (Fsit_for): Doc fix.
5038 2006-06-13 Kim F. Storm <storm@cua.dk>
5040 * dispnew.c: Modify preemptive redisplay to be based on periodic
5042 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
5043 (Vredisplay_preemption_period): New variable.
5044 (syms_of_display): DEFVAR_LISP and initialize it.
5045 (preemption_period, preemption_next_check): New variables.
5046 (update_frame, update_single_window): Initialize them based on
5047 Vredisplay_preemption_period if !force_p.
5048 (update_window, update_frame_1): Use them to determine when to
5051 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
5053 * lread.c (read_escape): Provide a Unicode character escape
5054 syntax; \u followed by exactly four or \U followed by exactly
5055 eight hex digits in a comment or string is read as a Unicode
5056 character with that code point.
5058 2006-06-09 Eli Zaretskii <eliz@gnu.org>
5060 * window.c (window_scroll_pixel_based): Signal "Beginning of
5061 buffer" when scroll-down at the beginning of an empty buffer.
5063 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5065 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
5066 Exclude 0x7f from ASCII range.
5068 2006-06-05 Jason Rumney <jasonr@gnu.org>
5070 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
5071 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
5072 (x_scroll_bar_report_motion): Remove workarounds for
5073 versions of Windows NT < 3.51.
5075 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
5076 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
5078 2006-06-04 David Kastrup <dak@gnu.org>
5080 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
5083 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5085 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
5087 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
5089 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
5090 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
5091 [USE_MAC_TSM]: Likewise.
5092 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
5093 (Qbefore_string) [USE_MAC_TSM]: Add extern.
5094 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
5095 ActivateTSMDocument/DeactivateTSMDocument.
5096 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
5097 (mac_handle_window_event) [USE_MAC_TSM]: Handle
5098 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
5099 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
5100 (install_window_handler) [USE_MAC_TSM]: Install it. Register
5101 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
5102 (keycode_to_xkeysym_table): Add entry for f16.
5103 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
5104 before/after passing keystroke event to toolbox dispatcher.
5105 (init_tsm) [USE_MAC_TSM]: New function.
5106 (mac_initialize) [USE_MAC_TSM]: Call it.
5107 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
5109 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
5111 2006-06-02 John Paul Wallington <jpw@gnu.org>
5113 * xfns.c (x_set_name_internal): Set icon to `text', derived from
5114 name, when frame's icon_name isn't a string rather than only when
5117 2006-06-03 Eli Zaretskii <eliz@gnu.org>
5119 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
5122 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
5124 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
5127 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5129 * xdisp.c (next_element_from_composition): Set it->object to
5130 it->string if composition is coming from string.
5131 (set_cursor_from_row): Don't return 0 unless row displays a
5133 (dump_glyph): Dump composite glyph.
5135 2006-06-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5137 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
5139 2006-06-01 Richard Stallman <rms@gnu.org>
5141 * window.c (Fsplit_window): Doc fix.
5143 2006-06-01 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
5145 * process.c (deleted_pid_list): New variable to store the pids
5146 of deleted processes. Declare it only if SIGCHLD is defined.
5147 (init_process): Initialize it.
5148 (syms_of_process): Staticpro it.
5149 (Fdelete_process): Add pid of the deleted process to it. Check after
5150 the addition and before the kill if the process is already stopped,
5151 in which case it is deleted from the list and not killed.
5152 (sigchld_handler): Define it only if SIGCHLD is. Search the process
5153 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
5154 Original idea by Stefan Monnier.
5156 2006-06-01 Kim F. Storm <storm@cua.dk>
5158 * dispnew.c (sit_for): Perform redisplay even if input is pending
5159 when redisplay-dont-pause is non-nil.
5161 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5163 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
5164 (XTread_socket): Remove obsolete comment.
5166 2006-06-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5168 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
5171 2006-06-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5173 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
5176 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
5178 2006-05-31 Juri Linkov <juri@jurta.org>
5180 * minibuf.c (Vhistory_add_new_input): New variable.
5181 (read_minibuf): Use it.
5182 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
5183 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
5185 2006-05-31 Kim F. Storm <storm@cua.dk>
5187 * process.c (select_wrapper): Add wrapper around select to work around
5188 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
5189 select called from wait_reading_process_output.
5191 2006-05-30 Andreas Schwab <schwab@suse.de>
5193 * xmenu.c (Fmenu_bar_start): Return a value.
5195 2006-05-30 Richard Stallman <rms@gnu.org>
5197 * coding.c (Ffind_operation_coding_system): Doc fix.
5199 2006-05-30 Eli Zaretskii <eliz@gnu.org>
5201 * w32term.c (x_draw_hollow_cursor): Fix last change.
5203 2006-05-29 Kim F. Storm <storm@cua.dk>
5205 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
5207 2006-05-29 Eli Zaretskii <eliz@gnu.org>
5209 * coding.c (Ffind_operation_coding_system): Doc fix.
5211 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5213 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
5214 Call mac_set_font_info_for_selection if font panel is made visible.
5216 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
5217 (mac_font_panel_visible_p, mac_show_hide_font_panel)
5218 [USE_MAC_FONT_PANEL]: New functions.
5219 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection):
5220 Return immediately if font panel is not visible.
5222 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
5225 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
5227 * search.c (matcher_overflow): Mark as NO_RETURN.
5229 * xterm.c (x_connection_closed): Likewise.
5231 * sysdep.c (croak): Likewise.
5233 * sound.c (sound_perror, alsa_sound_perror): Likewise.
5235 * lisp.h (die, nsberror): Likewise.
5237 2006-05-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5239 * sound.c (alsa_open, alsa_configure, alsa_write):
5240 Move assignment to err out of if-statement.
5242 * gtkutil.c (menu_nav_ended): New function.
5243 (create_menus): Connect menu_nav_ended to "selection-done" to fix
5246 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
5248 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
5250 * charset.h (invalid_character): Mark as NO_RETURN.
5252 2006-05-29 Kenichi Handa <handa@m17n.org>
5254 * coding.c (Ffind_operation_coding_system): Call a function by
5255 safe_call1 instead of call1.
5257 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5259 * window.c (struct saved_window): Add `dedicated'.
5260 (Fset_window_configuration, save_window_save): Save/restore the
5263 2006-05-28 Kim F. Storm <storm@cua.dk>
5265 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
5266 don't update w->cursor and return 0. Return 1 on success.
5267 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
5270 * dispextern.h (set_cursor_from_row): Update prototype.
5272 2006-05-28 Kim F. Storm <storm@cua.dk>
5274 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
5275 parameters. Adjust x and width in case cursor in on a partially
5276 visible stretch glyph on the left edge.
5277 (erase_phys_cursor): Don't erase into left fringe/margin in case
5278 previous cursor glyph is a partially visible stretch glyph on left.
5280 * dispextern.h (get_phys_cursor_geometry): Update prototype.
5282 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
5283 cursor and erasing cursor on partially visible stretch glyph on left.
5284 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
5286 * macterm.c: Likewise.
5288 * w32term.c: Likewise.
5290 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5292 * macselect.c (mac_handle_apple_event):
5293 Return errAEEventNotHandled if key binding is not found.
5295 2006-05-26 Eli Zaretskii <eliz@gnu.org>
5297 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
5298 [__MINGW32__]: MinGW-specific declaration of `etext'.
5300 * w32heap.c (etext, edata): Remove unused definitions.
5302 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
5304 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
5305 Incorporate the exclusive file-opening functionality into the behavior
5306 when OK-IF-ALREADY-EXISTS is nil.
5307 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
5309 2006-05-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5311 * sound.c (alsa_configure): Move get period/buffer_size after
5314 2006-05-26 Kenichi Handa <handa@m17n.org>
5316 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
5317 . BUFFER) in TARGET.
5319 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
5321 * image.c (png_load): Don't call fclose on NULL.
5323 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
5325 * fns.c (Fyes_or_no_p):
5326 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
5329 2006-05-25 Juri Linkov <juri@jurta.org>
5331 * lisp.h (Fread_from_minibuffer): Decrement number of args.
5333 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
5334 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
5336 * buffer.c (mode-line-format): Fix docstring.
5338 2006-05-25 Richard Stallman <rms@gnu.org>
5340 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
5342 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
5344 * puresize.h (BASE_PURESIZE): Increase to 1210000.
5346 2006-05-24 Alan Mackenzie <acm@muc.de>
5348 * lread.c (Vload_history): Enhance doc-string to say that the file
5349 is the absolute truename of the loaded file.
5351 * lread.c (Vafter_load_alist): doc-string: state that an element
5352 now has a regexp to match file names, not a file name as such.
5354 * lread.c (readevalloop): Call file-truename on the name for
5355 load-history, except at preloading time.
5357 * lread.c (Fload): At preloading time, preserve the extension of
5358 the filename which goes into load-history. New var hist_file_name.
5360 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
5361 function do-after-load-evaluation.
5363 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5365 * mac.c (ae_attr_table): New variable.
5366 (syms_of_mac): Intern and staticpro its elements.
5367 (mac_aelist_to_lisp): Also convert Apple event attributes.
5368 (mac_ae_put_lisp): New function.
5369 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
5371 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
5373 * macselect.c (Qemacs_suspension_id): New variable.
5374 (syms_of_macselect): Intern and staticpro it.
5375 (struct suspended_ae_info): New struct.
5376 (deferred_apple_events, defer_apple_events)
5377 (Fmac_process_deferred_apple_events): Use it.
5378 (suspended_apple_events): New variable.
5379 (mac_handle_apple_event_1): New function.
5380 (mac_handle_apple_event): Use it. Don't process previously
5382 (cleanup_suspended_apple_events, get_suspension_id)
5383 (cleanup_all_suspended_apple_events): New functions.
5384 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
5386 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
5387 (Fmac_resume_apple_event): New defuns.
5388 (syms_of_macselect): Defsubr them.
5390 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
5391 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
5393 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
5394 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
5395 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
5396 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5397 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5399 (typeUTF8Text, kEventParamWindowMouseLocation)
5400 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
5401 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
5403 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5405 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
5406 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
5407 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
5408 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
5409 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
5410 resource to backtranslate key with modifiers.
5411 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
5413 2006-05-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5415 * xterm.c: Remove declarations already in xterm.h
5417 * xterm.h: Add extern declarations for x_clear_errors,
5418 x_fully_uncatch_errors, x_catching_errors and
5419 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
5421 2006-05-21 Richard Stallman <rms@gnu.org>
5423 * xfaces.c (best_matching_font): Abort for best == NULL
5424 before we start to use it.
5426 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
5428 2006-05-20 Kim F. Storm <storm@cua.dk>
5430 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
5432 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5434 * macterm.c (convert_fn_keycode): Fix last change.
5436 2006-05-19 Eli Zaretskii <eliz@gnu.org>
5438 * w32.c (init_environment): Perform the processing of environment
5439 variables on a copy of default variables and their values, not on
5440 the original. Simplify code that calls ExpandEnvironmentStrings
5441 and make buf1[] and buf2[] more visible for easier debugging.
5443 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5445 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
5447 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
5449 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
5451 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
5452 Forward keyUp events to toolbox_dispatcher.
5454 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
5456 2006-05-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5458 * config.in: Regenerated (HAVE_ALSA).
5460 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
5461 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
5462 (snd_error_quiet, alsa_init): New functions.
5463 (vox_init): Return 0 if unable to open device.
5464 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
5466 (struct sound_device): Add period_size.
5467 (wav_play, au_play): Use period_size if set.
5469 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
5470 (ALL_CFLAGS): Add CFLAGS_SOUND.
5472 2006-05-18 Kenichi Handa <handa@m17n.org>
5474 * callproc.c (Fcall_process): Reject encoding arguments by
5475 ascii-incompatible coding systems (e.g. utf-16).
5477 * coding.c (Qascii_incompatible): New variable.
5478 (syms_of_coding): Setup Qascii_incompatible.
5479 (setup_coding_system): Be sure to initialize coding->common_flags.
5480 Check `ascii-incompatible' property of the coding system.
5482 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
5484 2006-05-18 Kim F. Storm <storm@cua.dk>
5486 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
5487 geometry when backtracking in case last image doesn't fit on line.
5489 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
5491 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
5492 more than height of one frame default line.
5494 2006-05-17 Richard Stallman <rms@gnu.org>
5496 * xfaces.c (better_font_p): Any font beats no font.
5497 (best_matching_font): Simplify based on above change.
5499 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
5501 2006-05-16 Kim F. Storm <storm@cua.dk>
5503 * xterm.c (handle_one_xevent): Check that f is not NULL before
5504 calling x_kill_gs_process.
5506 2006-05-14 Richard Stallman <rms@gnu.org>
5508 * textprop.c (Fnext_single_char_property_change)
5509 (Fprevious_single_char_property_change): Don't allow returning
5510 value beyond LIMIT in any cases.
5511 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
5513 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
5515 2006-05-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5517 * xterm.c (handle_one_xevent): Check that f is not NULL before
5518 calling _XEditResCheckMessages.
5520 2006-05-14 Kim F. Storm <storm@cua.dk>
5522 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
5524 2006-05-13 Eli Zaretskii <eliz@gnu.org>
5526 * frame.c (x_set_border_width): Fix error message to say "frame",
5529 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
5531 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
5533 * intervals.c (set_point_both): Fix mixup before before and after
5536 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
5537 while setting point temporarily.
5539 2006-05-11 Richard Stallman <rms@gnu.org>
5541 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
5543 2006-05-11 Kim F. Storm <storm@cua.dk>
5545 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
5547 2006-05-11 Kenichi Handa <handa@m17n.org>
5549 * fileio.c (Finsert_file_contents): Fix for the case of IO error
5550 while handling replace operation.
5552 2006-05-10 Kenichi Handa <handa@m17n.org>
5554 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
5555 chosen for the default face was different from the frame font,
5556 adjust the frame font.
5558 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5560 * image.c (Qduration) [MAC_OS]: Undo previous change.
5561 (syms_of_image) [MAC_OS]: Likewise.
5562 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
5564 * macfns.c (x_to_mac_color): Fix shift amount change.
5565 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
5566 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
5568 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
5569 Vmac_services_selection. All uses changed.
5570 (mac_store_service_event): Rename from mac_store_services_event in
5573 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
5575 [MAC_OSX] (mac_store_service_event): Rename from
5576 mac_store_services_event. All callers changed.
5577 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
5578 FACE_ID and C. All callers changed.
5579 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
5580 mac_set_font_info_for_selection when focus frame is destroyed.
5581 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
5583 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
5586 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
5588 * keymap.c (describe_map): Avoid generating duplicate entries if
5589 the shadowed binding has the same definition.
5591 2006-05-09 Kenichi Handa <handa@m17n.org>
5593 * keymap.c (push_key_description): Handle invalid character key.
5595 2006-05-08 Kenichi Handa <handa@m17n.org>
5597 * callproc.c (Fcall_process): Use system_eol_type for encoding
5598 arguments if eol_type is not yet decided.
5600 * coding.h (system_eol_type): Extern it.
5602 * coding.c (setup_coding_system): For invalid coding-system, set
5603 coding->eol_type to CODING_EOL_UNDECIDED.
5604 (encode_coding): Cancel previous change.
5605 (shrink_encoding_region): Likewise.
5606 (code_convert_region1): Likewise.
5607 (code_convert_string1): Likewise.
5608 (code_convert_string_norecord): Likewise.
5610 * fileio.c (choose_write_coding_system): Use system_eol_type for
5611 encoding if eol_type is not yet decided.
5613 * process.c (setup_process_coding_systems): Use system_eol_type
5614 for encoding if eol_type is not yet decided.
5615 (read_process_output): Likewise.
5616 (send_process): Likewise.
5618 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
5620 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
5622 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5624 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
5625 (syms_of_mac): Likewise for defsubr.
5627 * macfns.c (mac_set_font): New function.
5628 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
5629 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
5630 kWindowToolbarButtonAttribute when creating window.
5631 (Fmac_clear_font_name_table): Move from macfns.c.
5632 (syms_of_macfns): Likewise for defsubr.
5633 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
5634 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
5636 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
5637 and build is done on Mac OS X 10.2 and later.
5639 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
5640 (mac_store_services_event): Change return type in extern.
5642 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
5644 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
5645 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
5646 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
5647 (QWindow) [MAC_OSX]: Likewise.
5648 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
5649 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
5650 (syms_of_macterm) [USE_ATSUI]: Defvar it.
5651 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
5652 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
5653 (syms_of_macterm): Intern and staticpro them.
5654 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
5655 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
5657 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
5658 [MAC_OSX] (mac_store_services_event): Likewise.
5659 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
5660 kEventWindowToolbarSwitchMode event.
5661 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
5662 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
5663 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
5664 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
5665 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
5667 * macterm.h (mac_set_font_info_for_selection): Add extern.
5669 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5671 * image.c (Qduration) [MAC_OS]: New variable.
5672 (syms_of_image) [MAC_OS]: Intern and staticpro it.
5673 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
5674 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
5675 instead of cfstring_create_with_string.
5677 2006-05-06 Kim F. Storm <storm@cua.dk>
5679 * .gdbinit (xframe): Print frame name.
5680 (xlist): New command to print a list (max 10 elements).
5681 (xpr): Print lisp object of any type.
5682 (pitx): Print it->pixel_width.
5684 2006-05-05 Kenichi Handa <handa@m17n.org>
5686 * xdisp.c (handle_composition_prop): Fix for the case of empty
5687 composition component.
5689 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5691 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
5694 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
5697 * macterm.h (mac_make_lispy_event_code): Remove extern.
5698 (mac_post_mouse_moved_event): Add extern.
5699 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
5700 `const AEDesc *' in externs.
5701 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
5703 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
5705 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
5706 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
5707 Use xrealloc instead of repeated xmalloc/xfree.
5708 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref):
5711 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
5713 * macselect.c: Update copyright year.
5714 (mac_store_apple_event): Change return type to void in extern.
5715 (mac_handle_apple_event): Don't get return value from
5716 mac_store_apple_event.
5717 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
5718 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
5719 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
5720 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
5721 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
5722 implementation using create_apple_event_from_drag_ref.
5723 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
5724 (mac_do_receive_dragUPP): Move variables from macterm.c.
5725 (install_drag_handler, remove_drag_handler): New functions.
5727 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
5728 path select also for proxy icon click.
5729 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
5730 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
5731 (xlfdpat_create): Remove unused label `error' and trailing sentences.
5732 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
5733 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
5735 (install_drag_handler, remove_drag_handler): Add extern.
5736 (mac_store_apple_event): Change return type to void. All uses changed.
5737 Create Lisp object from Apple event and store it into input event.
5738 (mac_make_lispy_event_code): Remove function.
5739 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
5740 (install_window_handler): Call install_drag_handler.
5741 (remove_window_handler): Call remove_drag_handler.
5743 2006-05-03 Richard Stallman <rms@gnu.org>
5745 * sound.c (Fplay_sound_internal): Dynamically allocate
5746 current_sound_device and current_sound.
5747 (sound_cleanup): Free them.
5749 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
5750 when inside a keyboard macro.
5752 2006-05-02 Andreas Schwab <schwab@suse.de>
5754 * xmenu.c (restore_menu_items): Return a value.
5756 2006-05-01 Martin Rudalics <rudalics@gmx.at>
5758 * syntax.c (Fforward_comment): Detect generic comment at beginning of
5759 buffer when moving backwards.
5761 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5763 * dispnew.c (update_window): Don't set changed_p when mode/header
5766 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
5767 (get_glyph_face_and_encoding, get_char_face_and_encoding):
5768 Don't distinguish known faces from others.
5770 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
5771 through typeFileURL failed.
5773 * macfns.c (mac_update_title_bar): New function.
5774 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
5775 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
5776 Call mac_prepare_for_quickdraw.
5778 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
5779 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
5780 (enum pcm_status): New enum.
5781 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
5782 (XCharStructRow): Remove. Now validity is represented by
5783 non-negativeness of sum of ascent and descent.
5784 (struct MacFontStruct): Change type of member `rows'.
5785 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
5787 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
5788 Adjust endpoints of strictly horizontal/vertical lines.
5789 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
5790 (pcm_init, pcm_get_status): New functions.
5791 (x_per_char_metric, XLoadQueryFont): Use them instead of
5792 XCharStructRow and related macros.
5793 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
5794 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
5795 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
5796 and window path pop-up menu on title bar.
5797 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
5799 * macterm.h (mac_update_title_bar): Add extern.
5800 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
5801 (FRAME_FILE_NAME): New macro.
5803 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
5805 2006-04-30 Richard Stallman <rms@gnu.org>
5807 * keymap.c (Fdefine_key): Improve error message
5808 when KEY begins with a non-prefix key.
5810 2006-04-30 Martin Rudalics <rudalics@gmx.at>
5812 * syntax.c (Fforward_comment): Don't forget to break out of the loop
5813 when we skipped backward over a generic comment.
5815 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
5817 * .gdbinit (pp1, pv1): Only print value as expression is now
5818 printed out by gud-print.
5819 (pv1): Correct doc string.
5821 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
5823 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
5824 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
5825 keymap.c:895: error: address of register variable `def' requested.
5827 2006-04-26 Jason Rumney <jasonr@gnu.org>
5829 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
5831 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
5832 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
5833 where we preempt mouse_button_timer.
5835 2006-04-25 Miles Bader <miles@gnu.org>
5837 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
5839 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
5841 * process.h: Include headers for pid_t.
5843 2006-04-24 Kim F. Storm <storm@cua.dk>
5845 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
5846 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
5847 (produce_stretch_glyph): Assume that face box height and width is
5848 already included in stretch glyph size so caller doesn't have to
5849 consider the extra space otherwise added (fixes problem in ses.el).
5851 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
5852 matrices to force recalculation of tool-bar height after font change.
5854 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
5855 Clear it when done, so we don't accidentally draw a second copy of
5856 the tool-bar after resetting f->n_tool_bar_rows.
5857 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
5858 we recalculate f->n_tool_bar_rows.
5860 2006-04-23 Lars Hansen <larsh@soem.dk>
5862 * editfns.c (find_field): Fix comment.
5863 (Ffield_beginning): Fix bug when POS is at field beginning.
5865 2006-04-22 Eli Zaretskii <eliz@gnu.org>
5867 * puresize.h (BASE_PURESIZE): Increase to 1205000.
5869 2006-04-21 Kim F. Storm <storm@cua.dk>
5871 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
5872 window start is at BEGV.
5874 * dispextern.h (struct image): New member `corners'.
5875 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
5877 * image.c (four_corners_best): New arg CORNERS specifies what pixels
5878 to look at in case image has margin.
5879 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
5880 (image_background, image_background_transparent)
5881 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
5882 (gif_load): Set img->corners according to image's margin spec.
5883 Use img->corners values directly where applicable.
5884 Save image extension data in img->data.lisp_val.
5885 (gif_clear_image): New function to free img->data.lisp_val.
5886 (gif_type): Use it instead of generic x_clear_image.
5887 (Fimage_extension_data): New defun.
5888 (syms_of_image): Defsubr it.
5890 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
5892 * window.c (Fdisplay_buffer): Doc fix.
5894 2006-04-21 Eli Zaretskii <eliz@gnu.org>
5896 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
5898 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5900 * image.c [MAC_OS] (xpm_load_image): Fill in background field
5901 while we have ximg handy.
5903 * macmenu.c (restore_menu_items, save_menu_items): New functions
5905 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
5906 changes for xmenu.c.
5908 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
5909 (add_mac_font_name): New function.
5910 (init_font_name_table): Use it. Adopt the first found font from
5911 those having the same family name.
5913 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
5915 * xdisp.c (note_mouse_highlight): Use build_string.
5917 2006-04-20 Lars Hansen <larsh@soem.dk>
5919 * textprop.c (Fremove_list_of_text_properties):
5920 Ensure modify_region is called only when buffer is modified and that
5921 signal_after_change is allways called in that case.
5923 * print.c (PRINTFINISH): Call signal_after_change.
5925 2006-04-20 Kim F. Storm <storm@cua.dk>
5927 * xdisp.c (redisplay_window): Fix last change.
5929 * xdisp.c (redisplay_window): If current window start is not at the
5930 beginning of a line, select a new window start if buffer is modified
5931 and window start is in the modified region, but the first change is
5932 before window start.
5934 2006-04-18 Richard Stallman <rms@gnu.org>
5936 * xmenu.c (restore_menu_items, save_menu_items): New fns.
5937 (set_frame_menubar): Use save_menu_items. Save updated vector in
5938 the frame before unwinding it. Don't use unuse_menu_items.
5939 Don't use discard_menu_items.
5940 (digest_single_submenu): Abort if an item is not in a pane.
5941 (init_menu_items): Put the error check at the top.
5943 * keymap.c (describe_map): Make "shadowed" warning more verbose.
5945 * window.c (adjust_window_trailing_edge): Correctly distinguish
5946 series vs parallel cases, even when window has no parent.
5948 * abbrev.c (record_symbol): New function.
5949 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
5951 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5953 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
5956 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
5957 (create_apple_event_from_event_ref, xrm_get_preference_database)
5958 (cfstring_create_normalized): Don't check return value of xmalloc.
5960 * macselect.c (get_scrap_target_type_list, defer_apple_events)
5961 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
5962 return value of xmalloc/xrealloc.
5964 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
5965 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
5966 (XLoadQueryFont, mac_store_apple_event): Don't check return value
5969 2006-04-17 Kim F. Storm <storm@cua.dk>
5971 * window.c (coordinates_in_window): On the vertical border,
5972 calculate the row number measured from the top of the window, not
5973 the top of the frame.
5974 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
5975 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
5977 2006-04-16 Eli Zaretskii <eliz@gnu.org>
5979 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
5981 2006-04-16 Romain Francoise <romain@orebokech.com>
5983 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
5985 2006-04-16 Andreas Schwab <schwab@suse.de>
5987 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
5989 2006-04-15 Romain Francoise <romain@orebokech.com>
5991 * puresize.h (BASE_PURESIZE): Increment to 1210000.
5993 2006-04-13 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
5995 * print.c (Fprin1_to_string): Mention in the `doc' that the
5996 behavior is modified by `print-level' and `print-length'.
5998 2006-04-13 Kenichi Handa <handa@m17n.org>
6000 * coding.c (setup_coding_system): If eol-type is not yet decided
6001 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
6002 If coding_system is nil, return 0.
6003 (code_convert_region1): Even if coding_system is nil, don't skip
6004 conversion if system_eol_type is not LF.
6005 (code_convert_string1): Likewise.
6006 (code_convert_string_norecord): Likewise.
6008 2006-04-13 Kenichi Handa <handa@m17n.org>
6010 * coding.c (setup_coding_system): Fix previous change.
6011 (encode_coding): If eol_type is not yet decided, use system_eol_type.
6012 (shrink_encoding_region): If eol_type is not yet decided and
6013 system_eol_type is not LF, don't shrink.
6015 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
6017 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
6020 2006-04-12 Richard Stallman <rms@gnu.org>
6022 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
6024 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
6025 (Fprocess_send_eof): Abort if fail to open null device.
6027 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6029 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
6031 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
6032 assignment used as truth value. Add explicit braces to avoid
6034 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
6036 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
6037 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
6038 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
6039 Put externs in #ifdef HAVE_X_WINDOWS.
6040 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
6041 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
6042 (init_mac_osx_environment) [MAC_OSX]: Add extern.
6044 * mac.c (init_process): Remove undef.
6045 (select) [MAC_OSX]: Undefine before including sysselect.h.
6046 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
6047 Remove functions and prototypes.
6048 (parse_value): Add parentheses around + inside shift.
6049 (path_from_vol_dir_name): Make static.
6050 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
6051 [!MAC_OSX] (get_path_to_system_folder): Likewise.
6052 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
6054 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
6055 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
6057 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
6058 (x_set_mouse_color): Remove unused variable `dpy'.
6059 (Fx_create_frame): Remove unused variable `x_frame_count'.
6060 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
6061 (x_sync): Move from macterm.c.
6062 (Fx_file_dialog): Remove unused variable `default_filter_index'.
6064 * macmenu.c (min_menu_id): Make element type explicit.
6066 * macselect.c (get_flavor_type_from_symbol): Remove unused
6068 (get_scrap_private_timestamp, x_get_foreign_selection)
6069 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
6070 (Fmac_process_deferred_apple_events): Remove unused variables
6071 `keyword', `reply', `apple_event', `count', and `err'.
6073 * macterm.c: Don't include gnu.h.
6074 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
6075 (x_sync): Move to macfns.c.
6076 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
6077 variable `mask_bits'.
6078 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
6079 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
6080 (x_mac_to_emacs_modifiers): Remove function.
6081 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
6082 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
6083 Add explicit braces to avoid ambiguous `else'.
6084 (x_make_frame_visible): Remove unused variables `type',
6085 `original_top', and `original_left'.
6086 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
6087 (x_load_font): Remove unused variables `full_name', and `value'.
6088 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
6090 (do_zoom_window): Reorganize variables with respect to conditionals.
6091 (init_command_handler): Remove unused variable `err'.
6092 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
6094 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
6095 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
6096 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
6097 (do_menu_choice, have_menus_p, x_real_positions)
6098 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
6099 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
6100 (free_frame_menubar): Add externs.
6102 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
6103 (malloc, realloc, free): Add undefs.
6104 (read_load_commands): Remove unused variable `n' and `j'.
6105 (copy_data_segment): Remove unused variable `r'.
6107 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
6108 within ||. Add explicit braces to avoid ambiguous `else'.
6109 (dump_glyph_row): Remove label for `inverse_p' from legend.
6111 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
6112 Add explicit braces to avoid ambiguous `else'.
6114 2006-04-11 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
6116 * dispnew.c (init_display): Don't init X display if the user asked
6117 for a non-X display.
6119 2006-04-12 Kenichi Handa <handa@m17n.org>
6121 * coding.c (setup_coding_system): Use system_eol_type for default
6124 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
6126 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
6128 * data.c (wrong_type_argument): Try to avoid compiler warnings due
6129 to the fact the function is now marked as NO_RETURN.
6131 2006-04-10 Eli Zaretskii <eliz@gnu.org>
6133 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
6135 2006-04-10 Romain Francoise <romain@orebokech.com>
6137 * xrdb.c (gethomedir): Use xstrdup.
6139 2006-04-10 Andreas Schwab <schwab@suse.de>
6141 * xrdb.c (gethomedir): Make sure to always return a pointer that
6142 can be passed to free.
6144 2006-04-09 Richard Stallman <rms@gnu.org>
6146 * lisp.h (Fkill_emacs): Undo previous change.
6148 2006-04-08 Richard Stallman <rms@gnu.org>
6150 * search.c (boyer_moore): Test ch >= 0400, not >.
6152 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
6154 * puresize.h (pure_write_error): Mark as NO_RETURN.
6156 * lisp.h (args_out_of_range, args_out_of_range_3)
6158 2006-04-08 Eli Zaretskii <eliz@gnu.org>
6160 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
6161 if a menu is active on this frame.
6163 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
6165 * lisp.h (report_file_error): Mark as NO_RETURN.
6167 2006-04-08 Eli Zaretskii <eliz@gnu.org>
6169 * alloc.c [STDC_HEADERS]: Include stddef.h.
6171 * lisp.h (PSEUDOVECSIZE): Fix last change.
6173 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
6175 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
6176 `raw_status_high', and `raw_status_low' with plain integers, and move
6177 them to the end of the structure.
6179 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
6180 pseudovector's size field so only the Lisp_Object fields get GC'd.
6182 * process.c (update_status, make_process, Fdelete_process)
6183 (Fprocess_status, list_processes_1, start_process_unwind)
6184 (create_process, Fmake_network_process, server_accept_connection)
6185 (wait_reading_process_output, send_process, Fprocess_running_child_p)
6186 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
6187 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
6188 `pid' and `raw_status'.
6189 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
6190 representing PIDs that are larger than most-positive-fixnum.
6192 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
6194 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
6196 2006-04-08 Eli Zaretskii <eliz@gnu.org>
6198 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
6200 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
6202 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
6203 ../lib-src/b2m.c and ../lib-src/editfns.c.
6204 (Fcurrent_time_string): Use it.
6205 Document that the year might not consume 4 columns if it's outside
6206 the range 1000-9999.
6207 Check for asctime failure.
6208 Don't assume that the output string length is always exactly 24.
6210 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6212 * macterm.c (XTread_socket): Initialize variable `f' before its use.
6214 2006-04-03 Kenichi Handa <handa@m17n.org>
6216 * image.c: Include "charset.h" and "coding.h".
6217 (x_find_image_file): Return an encoded file name.
6219 2006-04-01 Eli Zaretskii <eliz@gnu.org>
6221 * configure: Regenerated.
6223 2006-03-31 Kenichi Handa <handa@m17n.org>
6225 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
6227 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6229 * xdisp.c (syms_of_xdisp): Fix variable name.
6231 2006-03-30 Kenichi Handa <handa@m17n.org>
6233 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
6235 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
6237 * keyboard.c (process_tool_bar_item): Reorder dummy args.
6239 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
6241 * keyboard.c (tool_bar_items): Use map_keymap.
6242 (process_tool_bar_item): Add dummy args to fit the required interface.
6244 2006-03-25 Eli Zaretskii <eliz@gnu.org>
6246 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
6247 to zero before calling debug_print or safe_debug_print.
6249 * print.c (print_output_debug_flag): New global variable.
6250 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
6251 OutputDebugString if print_output_debug_flag is zero.
6253 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
6255 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
6256 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
6257 (Fdecode_time): Cast tm_year to EMACS_INT.
6258 (Fcurrent_time_string): Report an invalid time specification if
6259 the argument is invalid. Also, check for out-of-range time stamps.
6261 2006-03-24 Kim F. Storm <storm@cua.dk>
6263 * xterm.c (handle_one_xevent):
6264 * w32term.c (w32_read_socket):
6265 * macterm.c (XTread_socket): Don't let key-press clear mouse face
6266 on in toolbar window if mouse-highlight is an integer.
6268 * fns.c (sxhash_list): Include last non-nil CDR in hash.
6270 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6272 * macmenu.c (enum mac_menu_kind): New enum.
6273 (min_menu_id): New variable.
6274 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
6275 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
6276 min_menu_id and enumerators in enum mac_menu_kind.
6277 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
6278 All uses changed. Add range check for menu ID.
6279 (fill_menubar): Add range check for menu ID.
6280 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
6282 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
6285 2006-03-22 Kim F. Storm <storm@cua.dk>
6287 * xdisp.c: Undo 2006-03-21 change.
6289 * term.c: Define aliases for append_glyph and produce_stretch_glyph
6290 when `static' is defined to avoid name clash with those in xdisp.c.
6292 * process.c (Faccept_process_output): Fix to comply with lisp
6293 reference. Change arg "timeout" to "seconds" and allow both
6294 integer and float value. Change arg "timeout-msec" to "millisec"
6295 and interpret" as milliseconds rather than microseconds. Fix doc
6298 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
6300 * xdisp.c (store_next_glyph): Rename from append_glyph.
6301 (generate_stretch_glyph): Rename from produce_stretch_glyph.
6302 All callers changed accordingly.
6304 2006-03-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6306 * xterm.c: x_session_initialized new variable.
6307 (x_term_init): Use x_session_initialized to check if
6308 x_session_initialize should be called.
6309 (x_initialize): Initialize x_session_initialized.
6311 2006-03-21 Kim F. Storm <storm@cua.dk>
6313 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
6314 bitmap here, but ...
6315 (update_window_fringes): ... here, so we can test if it has changed.
6317 2006-03-20 Andreas Schwab <schwab@suse.de>
6319 * dispnew.c (init_display): Check DISPLAY here.
6321 * emacs.c (main): Don't check here.
6323 * xterm.c (x_display_ok): Don't use DISPLAY env var.
6325 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6327 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
6330 2006-03-20 Eli Zaretskii <eliz@gnu.org>
6332 * emacs.c (main): Fix last change.
6334 2006-03-20 Kenichi Handa <handa@m17n.org>
6336 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
6338 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
6340 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
6342 * xterm.c (x_term_init): Remove unnecessary GCPRO.
6344 2006-03-19 Kim F. Storm <storm@cua.dk>
6346 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
6347 so it doesn't associate overlay string with following glyph by default.
6348 Allow integer property value to specify explicit number of buffer
6349 positions associate with overlay string.
6351 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
6353 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
6355 2006-03-18 Nozomu Ando <nand@mac.com>
6357 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
6358 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
6359 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
6362 * m/mips.h: Don't use unexmips on NetBSD.
6363 (LIBS_MACHINE): Move definition lower, so it doesn't use
6364 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
6365 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
6367 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
6368 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
6369 option is broken (e.g., MIPS/NetBSD).
6371 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
6373 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
6374 Remove the HAVE_X_WINDOWS conditional.
6376 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
6378 * emacs.c (main): If user asks for a display that is unavailable,
6381 * xterm.c (x_display_ok): New function.
6383 * xterm.h: Add prototype for x_display_ok.
6385 2006-03-18 Eli Zaretskii <eliz@gnu.org>
6387 * w32fns.c (Fw32_select_font): Doc fix.
6389 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6391 * image.c [MAC_OS] (XPutPixel, XGetPixel)
6392 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
6393 version when depth is 32.
6394 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
6396 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
6397 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
6399 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
6400 Create GWorld in ARGB pixel format.
6401 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
6403 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
6404 instead of mac_copy_area/mac_copy_area_with_mask.
6406 2006-03-15 Kim F. Storm <storm@cua.dk>
6408 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
6409 empty row. Fixes memory corruption revealed by 2006-03-02 change.
6410 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
6411 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
6412 width is exactly the same as the window width. Don't count a final
6413 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
6415 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
6417 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
6418 conditional on HAVE_NTGUI, not WINDOWS_NT.
6420 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6422 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
6424 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
6426 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
6427 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
6428 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
6429 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
6430 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
6431 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
6432 instead of mac_draw_bitmap.
6433 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
6434 define_fringe_bitmap and destroy_fringe_bitmap.
6436 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
6438 * xterm.c (x_uncatch_errors): Block input for entire function.
6440 2006-03-12 Jason Rumney <jasonr@gnu.org>
6442 * w32fns.c (Fx_create_frame): Remove call to
6443 Qface_set_after_frame_default (from xfns.c 2003-05-26).
6445 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
6446 finished with the menu.
6448 * w32term.c: Sync 2005-10-24 xterm.c changes.
6449 (last_mouse_glyph_frame): New var.
6450 (note_mouse_movement): Say mouse moved if current frame differs
6451 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6452 (w32_mouse_position): Set last_mouse_glyph_frame.
6453 Remove OLD_REDISPLAY_CODE block.
6455 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6457 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
6459 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
6460 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
6462 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
6464 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
6466 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
6467 (x_draw_composite_glyph_string_foreground)
6468 (x_draw_image_foreground): Undo previous changes.
6469 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
6470 argument of mac_draw_rectangle.
6471 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
6472 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
6473 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
6474 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
6475 [USE_CG_DRAWING]: New functions.
6476 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
6477 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
6478 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
6479 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
6480 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
6481 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
6482 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
6484 2006-03-12 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
6486 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
6488 2006-03-11 Jason Rumney <jasonr@gnu.org>
6490 * w32fns.c (signal_user_input): New function.
6491 (post_character_message): Use it for keyboard input.
6492 (w32_msg_pump): Use it for mouse input.
6494 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
6496 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
6497 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
6499 2006-03-11 Eli Zaretskii <eliz@gnu.org>
6501 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
6502 if a menu is already active (the menubar_active flag is on).
6504 2006-03-11 David Ponce <david@dponce.com>
6506 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
6508 2006-03-11 Eli Zaretskii <eliz@gnu.org>
6510 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
6511 the list of unused display error handling functions.
6513 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
6515 (internal_condition_case, internal_condition_case_1)
6516 (internal_condition_case_2): Call x_catching_errors only if
6519 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
6520 Don't include sys/resource.h unless defined.
6522 2006-03-11 Richard Stallman <rms@gnu.org>
6524 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
6526 * vm-limit.c (get_lim_data, lim_data, data_space_start):
6527 Move from mem-limits.h.
6528 (enum warnlevel): New data type.
6529 (check_memory_limits): Rewrite the logic about warnings.
6530 Use standard `struct rlimit'. Check return values for nonsense.
6531 (memory_warnings): Always clear lim_data.
6533 * mem-limits.h (get_lim_data, lim_data, data_space_start):
6536 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
6538 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
6539 (internal_condition_case_1, internal_condition_case_2):
6540 Abort if within unclosed x_catch_errors.
6542 2006-03-11 Romain Francoise <romain@orebokech.com>
6544 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
6546 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6548 * lisp.h: Remove duplicate prototypes. Make the prototype of
6549 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
6551 2006-03-11 Eli Zaretskii <eliz@gnu.org>
6553 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
6554 argument of XDrawRectangle.
6556 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
6558 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
6559 (x_draw_glyph_string_foreground)
6560 (x_draw_composite_glyph_string_foreground)
6561 (x_draw_image_foreground): Don't subtract 1 from width and height
6562 arguments to mac_draw_rectangle.
6563 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
6565 2006-03-10 Kim F. Storm <storm@cua.dk>
6567 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
6569 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
6571 * alloc.c (USE_POSIX_MEMALIGN): New macro.
6572 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
6574 2006-03-09 Kenichi Handa <handa@m17n.org>
6576 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
6577 ASCII component of a composition.
6579 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
6581 * window.c: Declare preserve_y as a static global variable.
6582 (window_scroll_pixel_based): No longer declare preserve_y;
6584 (syms_of_window): Set preserve_y to -1.
6586 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6588 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
6590 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
6593 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
6595 * xdisp.c (handle_invisible_prop): Don't update it->position with
6596 a buffer position if we're in a display string.
6598 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6600 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
6601 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
6603 * macfns.c (x_default_scroll_bar_color_parameter)
6604 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
6605 Remove unnecessary prototypes.
6606 (x_set_scroll_bar_default_width):
6607 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
6608 (mac_set_scroll_bar_width): New function.
6609 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
6611 * macterm.c (get_control_part_bounds): Fix type of return value.
6612 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6613 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
6614 scroll bar if it is not tall enough to display scroll bar thumb.
6615 [USE_CARBON_EVENTS] (mac_convert_event_ref)
6616 (mac_handle_command_event, mac_handle_window_event)
6617 (mac_handle_mouse_event): Check error code of GetEventParameter.
6618 (convert_fn_keycode) [MAC_OSX]: Likewise.
6620 2006-03-05 Andreas Schwab <schwab@suse.de>
6622 * xselect.c (x_catch_errors_unwind): Fix missing return value.
6624 2006-03-02 Kim F. Storm <storm@cua.dk>
6626 * frame.h (struct frame): New member n_tool_bar_rows.
6628 * xdisp.c: Minimize the unpleasent visual impact of the requirement
6629 that non-toolkit tool-bars must occupy an integral number of screen
6630 lines, by distributing the rows evenly over the tool-bar screen area.
6631 (Vtool_bar_border): New variable.
6632 (syms_of_xdisp): DEFVAR_LISP it.
6633 (display_tool_bar_line): Add HEIGHT arg for desired row height.
6634 Make tool-bar row the desired height. Use default face for border
6636 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
6637 actual tool-bar rows.
6638 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
6639 Adjust the height of the tool-bar rows to fill tool-bar screen area.
6640 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
6643 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
6645 * search.c (Fregexp_quote): Do not precede a literal `]' with two
6646 backslashes to try to make clear that it has a literal meaning; it
6647 does not do that. (It could close a character alternative
6648 containing a backslash.)
6650 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
6652 * xselect.c (x_catch_errors_unwind): New function.
6653 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
6654 (Fx_get_atom_name): Call x_uncatch_errors earlier.
6656 * window.c (Qscroll_up, Qscroll_down): New syms.
6657 (window_scroll_pixel_based): Make preserve_y static to avoid
6658 getting point stuck when scrolling 1 line.
6660 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
6662 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
6664 * xterm.c (x_load_font, x_term_init, XTmouse_position)
6665 (handle_one_xevent, x_connection_closed, x_list_fonts):
6666 No arg for x_uncatch_errors.
6668 * xselect.c (x_own_selection, x_decline_selection_request)
6669 (x_reply_selection_request, x_get_foreign_selection)
6670 (Fx_get_atom_name, Fx_send_client_event): Likewise.
6672 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
6675 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
6677 * lread.c: Declare Vload_file_rep_suffixes instead of
6678 deleted variable default_suffixes.
6679 (Fget_load_suffixes): New function.
6680 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
6681 No longer use deleted variable default_suffixes. Update docstring.
6682 (syms_of_lread): defsubr Sget_load_suffixes.
6683 Expand `load-suffixes' docstring.
6684 Delete default_suffixes and DEFVAR_LISP the new variable
6685 `load-file-rep-suffixes'.
6687 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
6690 * lisp.h: EXFUN Fget_load_suffixes.
6691 Extern Vload_file_rep_suffixes.
6693 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
6696 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
6698 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
6699 qualifier which was trying to avoid the bug that was fixed by
6700 yesterday's changes to xterm.c.
6702 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
6704 * xterm.h (x_catch_errors) Return value changed to void.
6705 (x_uncatch_errors): Delete unused count argument.
6707 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
6708 it can be called in a signal handler.
6709 (x_catch_errors_unwind): Function deleted.
6710 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
6711 (x_check_errors): Call x_uncatch_errors before signalling error.
6713 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
6714 (x_connection_closed, x_list_fonts): Use new versions of
6715 x_catch_errors and x_uncatch_errors.
6717 * xselect.c (x_own_selection, x_decline_selection_request)
6718 (x_reply_selection_request, x_get_foreign_selection)
6719 (Fx_get_atom_name, Fx_send_client_event): Likewise.
6721 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
6724 * eval.c (record_unwind_protect): Add an assertion.
6726 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
6728 * process.c (Fmake_network_process): Init the process's mark.
6730 2006-02-25 Kim F. Storm <storm@cua.dk>
6732 * buffer.c (modify_overlay): Force redisplay if we modify an
6733 overlay at the end of the buffer.
6735 2006-02-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6737 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
6738 nil the image file has been removed, in that case use the (cached)
6741 2006-02-24 Kenichi Handa <handa@m17n.org>
6743 * fileio.c (Finsert_file_contents): When a text is replaced
6744 partially, be sure to set point before the inserted characters.
6746 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
6748 * xfns.c (Fx_file_dialog): Return a decoded file name.
6750 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6752 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
6753 glyph whose face is extended to the text area end.
6755 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
6756 values if control is not visible or values are not changed.
6758 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
6760 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
6761 The default `window' should not be "on a different frame".
6763 2006-02-22 Kim F. Storm <storm@cua.dk>
6765 * indent.c (Fvertical_motion): Only try to move back if we can.
6767 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6769 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
6772 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
6775 * macterm.c (GC_CLIP_REGION): Remove macro.
6776 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
6777 All uses changed. Don't do clipping if n_clip_rects is zero.
6778 (mac_set_clip_rectangles): Use xassert instead of abort.
6779 Set n_clip_rects. Don't make clip_region empty when number of
6780 clipping rectangles is zero.
6781 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
6782 calling mac_set_clip_rectangles.
6783 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
6784 avoid multiple redraws.
6786 2006-02-22 Kim F. Storm <storm@cua.dk>
6788 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
6790 2006-02-21 Kim F. Storm <storm@cua.dk>
6792 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
6794 2006-02-21 Zhang Wei <brep@newsmth.org>
6796 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
6799 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6801 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
6802 (standard_bitmaps): Use it.
6804 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6806 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
6807 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
6808 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
6809 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
6810 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
6811 Draw background if BG_WIDTH is not zero. Use float constants as
6812 divisors instead of double. Use alloca instead of xmalloc/xfree.
6813 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
6814 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
6815 mac_draw_image_string* functions.
6816 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
6817 some fonts when srcCopy text transfer mode might be used.
6818 (mac_begin_clip, mac_end_clip): Check if region is empty.
6819 (mac_set_clip_rectangles): When resetting clip region, make it
6820 empty instead of disposing of it.
6822 2006-02-20 Kim F. Storm <storm@cua.dk>
6824 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
6826 * buffer.h (struct buffer): New members fringe_indicator_alist and
6827 fringe_cursor_alist.
6829 * buffer.c (init_buffer_once): Set dummy default values for
6830 fringe-indicator-alist and fringe-cursor-alist. The proper
6831 default values are set by pre-loading fringe.el.
6832 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
6833 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
6834 corresponding default- variables.
6836 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
6838 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
6840 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
6841 (Qhollow_small): New variables.
6842 (syms_of_fringe): Intern and staticpro them.
6843 (question_mark_bits): Rename from unknown_bits.
6844 (left_curly_arrow_bits): Rename from continuation_bits.
6845 (right_curly_arrow_bits): Rename from continued_bits.
6846 (left_triangle_bits): Rename from ov_bits.
6847 (right_triangle_bits): Add.
6848 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
6849 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
6850 (filled_square_bits): Add.
6851 (vertical_bar_bits): Rename from bar_cursor_bits.
6852 (horizontal_bar_bits): Rename from hbar_cursor_bits.
6853 (empty_line_bits): Rename from zv_bits.
6854 (standard_bitmaps): Update to use new names.
6855 (draw_fringe_bitmap_1): Make static.
6856 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
6857 to map from logical cursors and indicators to physical bitmaps.
6858 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
6859 bitmaps using symbol names instead of bitmap numbers.
6860 (update_window_fringes): Use logical indicator symbol names
6861 instead of bitmap numbers for logical. Add bitmap cache.
6862 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
6864 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
6866 * regex.c: Revert 2006-02-19 change.
6867 (xmalloc, xrealloc): Define these when not linked to Emacs.
6868 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
6870 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
6872 * regex.c (extend_range_table_work_area): Fix typo.
6874 2006-02-19 Richard M. Stallman <rms@gnu.org>
6876 * xterm.c (x_catch_errors): Use xmalloc.
6878 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
6879 (regex_compile): Likewise.
6880 (regcomp): Use xmalloc.
6882 * gtkutil.c (malloc_widget_value): Use xmalloc.
6884 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
6885 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
6887 * xmenu.c (digest_single_submenu): When pane_string is empty,
6888 do initialize save_wv.
6890 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6892 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
6893 w->update_mode_line if arg F is not the selected frame.
6895 * macmenu.c (popup_activated_flag, submenu_id)
6896 (next_menubar_widget_id): Remove variables.
6897 (initialize_frame_menubar): Remove function.
6898 (pop_down_menu, mac_menu_show): Simplify save value.
6899 (dispose_menus): New function.
6900 (pop_down_menu, fill_menubar): Use it.
6901 (fill_submenu): Remove function. All uses changed to fill_menu.
6902 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
6903 POS. Don't call SetMenuItemHierarchicalID here.
6904 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
6905 used next. Call SetMenuItemHierarchicalID here.
6906 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
6907 objects if needed. Reuse existing menu bar titles if possible.
6908 (set_frame_menubar): Don't clean up menu objects here.
6910 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
6912 * window.c (window_min_size_1): Ensure room for the scroll bar and
6915 2006-02-17 Romain Francoise <romain@orebokech.com>
6917 * puresize.h (BASE_PURESIZE): Increment to 1200000.
6919 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
6921 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
6922 addition of the BLOCK_INPUTs.
6924 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
6926 * window.c (Fset_window_scroll_bars): Doc fix.
6928 2006-02-17 Kenichi Handa <handa@m17n.org>
6930 * xdisp.c (display_mode_element): Call display_string with correct
6931 PREC arg (which must be a number of characters, not column width).
6933 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6935 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
6937 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
6939 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
6941 2006-02-14 Richard M. Stallman <rms@gnu.org>
6943 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
6945 * m/ibms390x.h: New file.
6947 2006-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6949 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
6950 value of x-gtk-whole-detached-tool-bar.
6951 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
6953 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
6955 2006-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6957 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
6959 * xterm.h: Declare x_x_to_emacs_modifiers.
6961 * gtkutil.c (xg_tool_bar_button_cb): New function.
6962 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
6963 store modifiers in event.
6964 (update_frame_tool_bar): Connect button-release-event to
6965 xg_tool_bar_button_cb.
6967 2006-02-13 Richard M. Stallman <rms@gnu.org>
6969 * .gdbinit (xwindow): Update the code to show the window box.
6971 2006-02-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6973 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
6975 2006-02-12 Richard M. Stallman <rms@gnu.org>
6977 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
6979 2006-02-11 Eli Zaretskii <eliz@gnu.org>
6981 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
6982 (syms_of_keyboard): DEVFAR_LISP and initialize it.
6983 (parse_tool_bar_item, parse_menu_item): If that variable is
6984 non-nil, don't disable menu items and tool-bar buttons.
6986 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
6988 * doc.c (Fsubstitute_command_keys): Doc fix.
6990 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
6992 * data.c (Findirect_function): Rewrite docstring.
6993 Fix omission bug: Declare new arg NOERROR.
6995 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6997 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
6998 if window_desc is not set yet.
6999 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
7000 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
7001 parameter `visibility' is `icon'.
7002 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
7003 instead of "fontset-mac".
7004 (Fx_focus_frame): New defun.
7005 (syms_of_macfns): Defsubr it.
7007 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
7008 for unfocused frame.
7009 (x_raise_frame): Call BringToFront instead of SelectWindow.
7010 (x_lower_frame): Use NULL instead of nil.
7011 (x_make_frame_visible): Don't call SelectWindow.
7012 (XTread_socket): Increment handling_signal at the start, decrement
7014 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
7015 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
7017 2006-02-10 Kim F. Storm <storm@cua.dk>
7019 * data.c (Findirect_function): Add NOERROR arg. All callers changed
7020 to pass Qnil for NOERROR.
7022 * keymap.c (current_minor_maps_error): Remove.
7023 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
7024 instead of using internal_condition_case_1+current_minor_maps_error.
7026 2006-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7028 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
7029 frames for GTK, in that case it is the tool bar. This is so that
7030 highlighted text get reset properly.
7032 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
7034 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
7036 2006-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7038 * window.c (adjust_window_trailing_edge): Check that shrinking
7039 does not set a window to size zero or less.
7041 2006-02-08 Miles Bader <miles@gnu.org>
7043 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
7044 of Fget_text_property (other field functions work with overlays as
7045 well as text-properties).
7047 2006-02-07 Kenichi Handa <handa@m17n.org>
7049 * dispextern.h (unibyte_display_via_language_environment): Extern it.
7051 * xterm.h (unibyte_display_via_language_environment):
7052 * w32term.h (unibyte_display_via_language_environment):
7053 * macterm.h (unibyte_display_via_language_environment): Delete extern.
7055 2006-02-07 Kenichi Handa <handa@m17n.org>
7057 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
7058 (produce_glyphs): Set the character to print in
7059 it->char_to_display. Handle unibyte-display-via-language-environment.
7060 (produce_stretch_glyph): Set character to print in it->char_to_display.
7062 2006-02-06 Kenichi Handa <handa@m17n.org>
7064 * lread.c (openp): Initialize encoded_fn before GCPRO it.
7066 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
7068 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
7070 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
7071 Cast bitfield value to EMACS_INT, to suppress gcc warning.
7073 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
7076 2006-02-03 Kim F. Storm <storm@cua.dk>
7078 * xdisp.c: Cache last merged escape glyph face.
7079 (last_escape_glyph_frame, last_escape_glyph_face_id)
7080 (last_escape_glyph_merged_face_id): New variables.
7081 (get_next_display_element): Use/update them.
7082 (redisplay_internal): Reset them before redisplay.
7084 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
7085 Only recheck faces after displaying ellipsis.
7087 2006-02-02 Kenichi Handa <handa@m17n.org>
7089 * coding.c (decode_composition_emacs_mule): Fix handling of
7090 incorrect format data.
7092 2006-01-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7094 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
7095 gtk_toolbar_insert() so we can have tool bars of different sizes.
7097 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
7099 * data.c (Flistp): Doc fix.
7101 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
7103 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
7104 Fix typos in docstrings.
7106 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
7108 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
7110 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
7112 * alloc.c (make_interval, allocate_string)
7113 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
7114 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
7117 2006-01-27 Eli Zaretskii <eliz@gnu.org>
7119 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
7120 the MSDOS definition.
7122 2006-01-26 Richard M. Stallman <rms@gnu.org>
7124 * alloc.c (check_pure_size): Make overflow message an "error message".
7126 * keymap.c (Fmap_keymap): Doc fix.
7128 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
7129 unless they were cleared out.
7131 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
7133 2006-01-26 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
7135 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
7136 (find_field): Set before_field to after_field when pos is at BEGV.
7137 (Fline_beginning_position, Fline_end_position):
7138 Clarify confusing doc string.
7140 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
7143 2006-01-26 Kenichi Handa <handa@m17n.org>
7145 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
7146 current_dir, and error_file. On reporting an error, decode them
7149 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
7151 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
7152 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
7153 Don't check for quit, since any loop will go through fail or jump.
7155 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
7157 * alloc.c (allocate_string_data): Update next_free immediately, to
7158 reduce risk of memory clobberage.
7160 2006-01-24 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
7162 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
7163 display when point moves across an ellipsis. If there are
7164 adjacent invisible texts, don't lose the second one's ellipsis.
7165 (x_produce_glyphs): Doc fix.
7167 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
7169 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
7171 2006-01-23 Kim F. Storm <storm@cua.dk>
7173 * xdisp.c (handle_single_display_spec): Fix handling of space
7174 property on char from string: set *position rather than
7176 (produce_stretch_glyph): Reduce width of stretch glyphs so they
7177 don't get wider than the window (unless truncate-lines is on).
7179 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
7181 * xterm.c: Avoid allocating Lisp data from a signal handler.
7182 (x_error_message): New var to replace x_error_message_string.
7183 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
7184 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
7185 (syms_of_xterm): Use it instead of x_error_message_string.
7187 * alloc.c (lisp_align_free): Add an assertion.
7188 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
7189 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
7192 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
7194 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
7196 2006-01-21 Romain Francoise <romain@orebokech.com>
7198 * xdisp.c (get_window_cursor_type): Fix last change.
7199 Update copyright year.
7201 2006-01-20 Eli Zaretskii <eliz@gnu.org>
7203 * lread.c (Fload): Don't leak the file descriptor returned by
7204 openp if we are going to signal an error.
7206 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
7208 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
7209 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
7211 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
7214 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
7217 2006-01-20 Kenichi Handa <handa@m17n.org>
7219 * puresize.h (BASE_PURESIZE): Increment to 1190000.
7221 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
7223 * xdisp.c (get_window_cursor_type): Use cursor type specified by
7224 the selected buffer for the echo area too.
7226 2006-01-19 Richard M. Stallman <rms@gnu.org>
7228 * keymap.c (Fmap_keymap): Doc fix.
7230 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
7232 * keyboard.c (echo_char): Don't omit the space between first two
7235 * minibuf.c (read_minibuf): Fix previous change.
7237 2006-01-19 Kenichi Handa <handa@m17n.org>
7239 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
7241 2006-01-17 Richard M. Stallman <rms@gnu.org>
7243 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
7244 value in f->param_alist.
7246 2006-01-15 Andreas Schwab <schwab@suse.de>
7248 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
7250 2006-01-13 Richard M. Stallman <rms@gnu.org>
7252 * Makefile.in: Define new macro WINDOW_SUPPORT.
7254 (SOME_MACHINE_LISP): Add conditionally loaded files.
7256 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7258 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
7259 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
7260 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
7263 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
7264 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
7265 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
7266 macro. Also try member ifr_addr when getting netmask.
7268 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
7270 * fileio.c (Fexpand_file_name): Remove redundant tests.
7271 Fix elimination of // so that it doesn't prevent elimination of an
7272 immediately following /. or /..
7274 2006-01-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7276 * gtkutil.c (xg_toggle_notify_cb): New function.
7277 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
7278 xg_toggle_notify_cb.
7279 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
7280 parameter value changes so the toggle button gets updated.
7282 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
7284 * .gdbinit: Fix typo.
7286 2006-01-05 Eli Zaretskii <eliz@gnu.org>
7288 * .gdbinit: Fix last change.
7290 2006-01-05 Kim F. Storm <storm@cua.dk>
7292 * process.c (Fmake_network_process): Use AF_INET instead of
7293 AF_UNSPEC when AF_INET6 is not defined.
7295 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7297 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
7298 Don't check that the other type is known file-related one.
7300 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
7301 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
7302 OS X 10.4 and later.
7304 2006-01-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7306 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
7307 let GTK do all image processing. Importing Emacs own pixmaps to GTK
7308 looks bad for inactive tool bar items with some Gnome themes.
7310 2006-01-04 Eli Zaretskii <eliz@gnu.org>
7312 * .gdbinit: Avoid a warning message when x_error_quitter is not
7315 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
7318 2006-01-04 Kim F. Storm <storm@cua.dk>
7320 * process.c: Add IPv6 support.
7321 (Qipv4, Qipv6): New vars.
7322 (syms_of_process): Intern and staticpro them.
7323 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
7324 with or without port number. Handle 4 element vector as IPv4 address
7325 without port number.
7326 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
7327 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
7328 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
7329 request that address family only. :family nil or omitted means to
7330 determine address family from the specified :host and :service.
7331 (ifflag_table): Add missing OpenBSD IFF_ flags.
7332 (server_accept_connection): Handle IPv6 addresses.
7333 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
7335 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
7336 determine which breakpoints to set.
7338 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
7340 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
7342 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
7344 2006-01-03 Romain Francoise <romain@orebokech.com>
7346 * emacs.c (main): Update copyright year.
7348 2006-01-03 Ken Raeburn <raeburn@gnu.org>
7350 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
7351 nil for the call to internal_delete_file.
7353 2006-01-01 Ken Raeburn <raeburn@gnu.org>
7355 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
7356 to nil for the call to Fwrite_region.
7358 2005-12-31 Richard M. Stallman <rms@gnu.org>
7360 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
7362 2005-12-31 Eli Zaretskii <eliz@gnu.org>
7364 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
7366 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
7368 * textprop.c (set_text_properties): Reword description of return value.
7369 Return Qnil if caller wants to remove all text properties from a
7370 string and the string already has no intervals.
7372 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
7374 * term.c (visible_cursor): New boolean var.
7375 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
7377 (syms_of_term): Export the new var as "visible-cursor".
7379 2005-12-30 Eli Zaretskii <eliz@gnu.org>
7381 * .gdbinit: Tell users not to worry about GDB warnings that some
7382 functions do not exist in the binary.
7384 2005-12-30 Andreas Schwab <schwab@suse.de>
7386 * process.c (Fnetwork_interface_info): Correctly terminate the
7387 loop over ifflag_table.
7389 2005-12-29 Richard M. Stallman <rms@gnu.org>
7391 * lread.c (readevalloop): Test for reading a whole buffer
7392 before actually reading anything. Handle all cases, including
7393 START = END = nil and an already-narrowed buffer.
7394 Convert END to a marker if it is a number.
7396 * keymap.c (describe_map): Put sparse map elements into an array,
7397 sort them, then output a sequence of identical bindings on one line.
7398 (struct describe_map_elt): New data type.
7399 (describe_map_compare): New function.
7401 2005-12-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7403 * gtkutil.c (xg_get_file_with_chooser): Change message shown
7406 2005-12-27 Richard M. Stallman <rms@gnu.org>
7408 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
7409 not the current one.
7411 * minibuf.c (Fminibuffer_message): Doc fix.
7412 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
7414 * eval.c (do_autoload): Ignore elements of Vautoload_queue
7415 where car is not symbol.
7417 2005-12-27 Kenichi Handa <handa@m17n.org>
7419 * charset.c (lisp_string_width): Check multibyteness of STRING.
7421 2005-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7423 * xfns.c (x_show_hidden_files): New variable.
7424 (syms_of_xfns): Defvar it.
7426 * gtkutil.c (xg_toggle_visibility_cb): New function.
7427 (xg_get_file_with_chooser): Add toggle hidden files and a message
7428 to the new file chooser dialog. Show hidden files if
7429 x_show_hidden_files is non-zero.
7431 2005-12-26 Richard M. Stallman <rms@gnu.org>
7433 * keyboard.h: Undo previous change.
7435 * Makefile.in (undo.o): Undo previous change.
7437 * undo.c: Undo previous change.
7439 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
7441 * keyboard.h: extern last_point_position_window.
7443 * undo.c: include keyboard.h.
7445 * Makefile.in (undo.o): Depend on keyboard.h.
7447 2005-12-26 Richard M. Stallman <rms@gnu.org>
7449 * commands.h (last_point_position_window): Declare.
7451 * undo.c: Depend on window.h.
7452 (record_point): Save old point from the correct window.
7454 * keyboard.c (last_point_position_window): New variable.
7455 (command_loop_1): Set last_point_position_window.
7456 (syms_of_keyboard): Init it.
7458 * Makefile.in (undo.o): Depend on window.h.
7460 2005-12-25 Richard M. Stallman <rms@gnu.org>
7462 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
7463 to undo a `provide'.
7465 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
7467 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
7469 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
7470 define for FreeBSD on this platform.
7472 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7474 * macterm.h (TYPE_FILE_NAME): New define.
7475 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
7477 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
7478 Add prototypes. Make static.
7479 (mac_aedesc_to_lisp): Initialize err to noErr.
7480 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
7481 (init_coercion_handler): New functions.
7482 (Fmac_coerce_ae_data): Use coercion of Apple event data for
7483 translation from/to file names.
7485 * macterm.c: Don't include sys/param.h.
7486 (init_coercion_handler): Add extern.
7487 [MAC_OS8] (main): Call init_coercion_handler.
7488 (mac_initialize) [MAC_OSX]: Likewise.
7489 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
7490 Apple event data for translation from/to file names.
7492 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
7494 * image.c [MAC_OS] (find_image_fsspec): Likewise.
7496 2005-12-23 Martin Rudalics <rudalics@gmx.at>
7498 * insdel.c (insert, insert_and_inherit, insert_before_markers)
7499 (insert_before_markers_and_inherit): Make sure FROM is correct
7500 when `after-change-functions' are called.
7502 2005-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7504 * xfns.c (Fx_uses_old_gtk_dialog): New function.
7506 * gtkutil.c (xg_uses_old_file_dialog): New function.
7507 (xg_get_file_name): Use xg_uses_old_file_dialog.
7509 * gtkutil.h: Declare xg_uses_old_file_dialog.
7511 2005-12-22 Richard M. Stallman <rms@gnu.org>
7513 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
7515 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7517 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
7519 * macgui.h (XCharStruct): Remove member `valid_p'.
7520 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
7521 (XCharStructRow): New typedef.
7522 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
7524 (struct MacFontStruct): Add member `bounds'. Remove member
7525 `per_char'. All uses for QuichDraw Text fonts are changed to
7526 `bounds.per_char'. ATSUI font bounds are represented as an array
7527 `bounds.rows' of XCharStructRow's, each of which consists of a
7528 bitmap of valid entries and an array of char bounds.
7530 * macterm.c (mac_per_char_metric): Add prototype.
7531 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
7532 (mac_query_char_extents): New function.
7533 (x_per_char_metric): Use it.
7534 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
7535 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
7536 Use mac_per_char_metric instead of x_per_char_metric.
7537 (mac_text_extents_16): New function.
7538 (mac_compute_glyph_string_overhangs): Use it.
7539 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
7541 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7543 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
7544 (Fminibuffer_completion_help): Remove duplicates before display.
7546 2005-12-21 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
7548 * print.c (print_preprocess): Don't lose print_depth levels while
7551 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7553 * macmenu.c (Qmac_apple_event): Add extern.
7554 (set_frame_menubar, mac_menu_show keymp_panes)
7555 (single_keymap_panes, list_of_panes, list_of_item)
7556 (single_menu_item): Add argument types to prototypes.
7557 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
7558 (struct skp): New struct (from xmenu.c).
7559 (single_keymap_panes, single_menu_item, list_of_panes)
7560 (list_of_item): Sync with xmenu.c.
7561 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
7562 POSITION if it is mac-apple-event event.
7563 (menubar_selection_callback): Don't use menu_command_in_progress.
7564 (set_frame_menubar): First parse all submenus, then make
7565 widget_value trees from them. Don't allocate any widget_value
7566 objects until we are done with the parsing.
7567 (parse_single_submenu, digest_single_submenu): New functions.
7568 (single_submenu): Function deleted, replaced by those two.
7569 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
7570 or dispose of EventHandlerUPP. Install hander to all submenus.
7571 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
7572 instead of ENCODE_SYSTEM.
7573 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
7575 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
7576 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
7577 format menu item string. Don't use NULL for integer value.
7579 * macterm.h (struct mac_output): Remove unused member
7580 menu_command_in_progress.
7582 2005-12-20 Juri Linkov <juri@jurta.org>
7584 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
7585 position is non-nil, else set it to nil.
7587 * macmenu.c (Fx_popup_menu): Add `else' to set
7588 Vmenu_updating_frame to nil only if position is nil.
7590 * w32menu.c (Fx_popup_menu): Add `else' to set
7591 Vmenu_updating_frame to nil only if position is nil.
7593 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7595 * keyboard.c (make_lispy_event): Drag-and-drop items are now
7596 stored in member `args' of struct input_event.
7598 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
7600 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
7601 stored in member `args' of struct input_event.
7603 * w32term.c (construct_drag_n_drop): Likewise.
7605 * macterm.c (mac_do_receive_drag): Likewise.
7606 (x_use_underline_position_properties): Undo 2005-07-13 change.
7607 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
7608 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
7609 (mac_pass_command_to_system, mac_pass_control_to_system):
7610 New boolean variables renamed from Lisp_Object ones
7611 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
7612 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
7614 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
7615 Make them user options.
7616 (mac_handle_command_event, mac_store_services_event):
7617 Call create_apple_event_from_event_ref without 5th argument.
7618 (backtranslate_modified_keycode): Mask off modifier keys that are
7619 mapped to some Emacs modifiers before passing it to KeyTranslate.
7620 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
7621 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
7622 Fix docstrings of `mac-*-modifier'.
7624 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
7625 (do_applescript): Change argument types to Lisp_Object.
7628 * macterm.h (create_apple_event_from_event_ref): Remove 5th
7629 argument from extern.
7631 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7633 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
7634 the answer, return `lambda', not nil.
7636 2005-12-17 Eli Zaretskii <eliz@gnu.org>
7638 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
7639 enclosed in $(ARGQUOTE)s should not be split between two lines, as
7640 that will break with GNU Make >3.80, when sh.exe is used and
7641 arg quoting is with '..'.
7643 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
7645 * print.c (print_preprocess): Just signal an error if print_depth
7648 2005-12-17 Eli Zaretskii <eliz@gnu.org>
7650 * .gdbinit: Set a breakpoint on w32_abort.
7652 2005-12-16 Juri Linkov <juri@jurta.org>
7654 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
7655 created from minibuffer_completion_contents.
7656 (minibuffer_completion_contents): Remove.
7657 (do_completion, Fminibuffer_complete_word)
7658 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
7659 with Fminibuffer_completion_contents.
7660 (syms_of_minibuf): Add Sminibuffer_completion_contents.
7661 (Fdisplay_completion_list): Doc fix.
7662 (display_completion_list_1): Use `nil' for second arg of
7663 `Fdisplay_completion_list'.
7665 2005-12-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7667 * xfns.c (compute_tip_xy): Handle negative dx and dy.
7669 * w32fns.c (compute_tip_xy): Ditto.
7671 * macfns.c (compute_tip_xy): Ditto.
7673 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
7675 * print.c (print_preprocess): Go to a deeper print_depth to avoid
7678 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
7680 * coding.c (code_convert_region_unwind): GCPRO arg.
7682 2005-12-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7684 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
7685 i.e. dy is offset from top of frame instead of bottom.
7687 * macfns.c (compute_tip_xy): Ditto.
7689 * w32fns.c (compute_tip_xy): Ditto.
7691 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
7692 (xg_get_image_for_pixmap, xg_create_frame_widgets)
7693 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
7695 * xmenu.c (menubar_selection_callback): Do nothing if the callback
7696 is for an unselected radio menu item.
7698 2005-12-11 Richard M. Stallman <rms@gnu.org>
7700 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
7702 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
7704 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
7705 (Flookup_key): Doc fix.
7706 (syms_of_keymap) <function-key-map>: Doc fix.
7708 * fns.c (Frequire): Treat evaluating from a source file
7709 like loading the file.
7711 * floatfns.c (Flog): Doc fix.
7713 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
7714 when we change the buffer.
7716 2005-12-11 Juri Linkov <juri@jurta.org>
7718 * minibuf.c (display_completion_list_1):
7719 Call `minibuffer_completion_contents' instead of using `nil' as
7720 second arg of `Fdisplay_completion_list'.
7721 (keys_of_minibuf): Unbind SPC in
7722 Vminibuffer_local_filename_completion_map (see also related
7723 change on 2005-12-06).
7725 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7727 * emacs.c (main) [MAC_OS8]: Undo previous change.
7729 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
7730 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
7732 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7734 * Makefile.in (macselect.o): Depend on keymap.h.
7736 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
7739 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
7740 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
7742 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
7743 (syms_of_keyboard) [MAC_OS]: Initialize it.
7744 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
7746 * mac.c (Qundecoded_file_name): New variable.
7747 (syms_of_mac): Initialize it.
7748 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
7749 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
7750 (Fmac_coerce_ae_data): New defun.
7751 (syms_of_mac): Defsubr it.
7753 * macselect.c: Include keymap.h.
7754 (mac_ready_for_apple_events): New variable.
7755 (Vmac_apple_event_map, Qmac_apple_event_class)
7756 (Qmac_apple_event_id): New variables.
7757 (syms_of_macselect): Initialize them.
7758 (Qundefined, mac_store_apple_event): Add externs.
7759 (struct apple_event_binding): New struct.
7760 (find_event_binding_fun, find_event_binding)
7761 (mac_find_apple_event_spec, defer_apple_events)
7762 (mac_handle_apple_event, init_apple_event_handler)
7763 (copy_scrap_flavor_data): New functions.
7764 (Fmac_process_deferred_apple_events): New defun.
7765 (syms_of_macselect): Defsubr it.
7766 (mac_store_services_event): Fix extern.
7767 (mac_handle_service_event): Don't allocate Lisp objects during
7768 asynchronous input processing. Use mac_store_services_event
7769 instead of mac_store_application_menu_event.
7771 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
7772 (Qpreferences): Remove variables.
7773 (syms_of_macterm): Don't initialize them.
7774 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
7775 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
7776 (init_required_apple_events, do_ae_open_application)
7777 (do_ae_print_documents, do_ae_open_documents)
7778 (do_ae_quit_application): Remove functions and prototypes.
7779 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
7780 (mac_find_apple_event_spec): Add externs.
7781 (mac_store_application_menu_event): Remove function.
7782 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
7783 (mac_handle_command_event): Create Apple event from Carbon event.
7784 Use mac_store_apple_event instead of mac_store_application_menu_event.
7785 [MAC_OSX] (mac_store_services_event): Likewise.
7786 (struct SelectionRange, SelectionRange): Remove struct and typedef.
7787 [MAC_OS8] (main): Call init_apple_event_handler instead of
7788 init_required_apple_events.
7789 (mac_initialize) [MAC_OSX]: Likewise.
7790 [!USE_CARBON_EVENTS] (mac_wait_next_event):
7791 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
7793 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
7795 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
7796 (Fmac_get_preference): Add EXFUN.
7798 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
7801 2005-12-09 Richard M. Stallman <rms@gnu.org>
7803 * xfns.c (Fx_create_frame): Reinstate previous change.
7805 2005-12-09 Eli Zaretskii <eliz@gnu.org>
7807 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
7808 GDB to the abort dialog.
7810 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
7812 * indent.c (Fvertical_motion): Force move if starting on
7815 2005-12-08 Richard M. Stallman <rms@gnu.org>
7817 * lread.c (read_escape) <\s>: Don't treat strings specially.
7819 * xfns.c (Fx_create_frame): Comment out previous change.
7821 2005-12-07 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
7823 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
7826 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
7828 * minibuf.c (keys_of_minibuf): Just unbind SPC in
7829 Vminibuffer_local_filename_completion_map rather than forcing it
7830 explicitly to the same binding as the global map.
7832 2005-12-06 Ken Raeburn <raeburn@gnu.org>
7834 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
7835 * bytecode.c (Fbyte_code): Likewise.
7836 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
7837 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
7838 * undo.c (truncate_undo_list): Likewise.
7840 2005-12-05 Richard M. Stallman <rms@gnu.org>
7842 * window.c (enlarge_window): Eliminate arg preserve_before.
7843 Assume it is 0. All callers changed.
7844 (Fenlarge_window, Fshrink_window): Likewise.
7846 2005-12-02 Eli Zaretskii <eliz@gnu.org>
7848 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
7851 2005-12-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7853 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
7855 * xfns.c (x_real_positions): int ign => unsigned int.
7856 (xg_set_icon_from_xpm_data): Remove unused variable err.
7857 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
7858 to remove compiler warning.
7859 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
7861 2005-12-02 David Reitter <david.reitter@gmail.com>
7863 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
7864 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
7865 and Vminibuffer_local_must_match_filename_map keymaps.
7866 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
7868 * keymap.c (Vminibuffer_local_filename_completion_map)
7869 (Vminibuffer_local_must_match_filename_map): New variables.
7870 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
7871 parent to be Vminibuffer_local_completion_map and
7872 Vminibuffer_local_must_match_map, respectively.
7874 * commands.h (Vminibuffer_local_filename_completion_map)
7875 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
7877 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
7879 * window.c (Fset_window_configuration): Don't accidentally copy the
7880 window-point of one window to another.
7882 2005-11-30 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
7884 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
7886 2005-11-30 Kim F. Storm <storm@cua.dk>
7888 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
7889 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
7890 passing it to `emacs_write'.
7892 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
7894 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
7896 2005-11-27 Richard M. Stallman <rms@gnu.org>
7898 * window.c (adjust_window_trailing_edge): New function.
7899 (Fadjust_window_trailing_edge): New function.
7900 (syms_of_window): Defsubr it.
7901 (window_deletion_count): New variable.
7902 (delete_window): Update window_deletion_count.
7904 2005-11-26 Eli Zaretskii <eliz@gnu.org>
7906 * minibuf.c (syms_of_minibuf): Mention the extension of
7907 `completion-auto-help's meaning by complete.el.
7909 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
7911 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
7912 Handle :inherit property as a lisp expression.
7914 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7916 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
7917 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
7918 Qsuper, and Qmodifier_value.
7919 (Vmac_control_modifier, Vmac_option_modifier)
7920 (Vmac_command_modifier, Vmac_function_modifier)
7921 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
7922 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
7923 (Vmac_charset_info_alist): Doc fixes.
7925 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7927 * emacs.c (main) [MAC_OSX]: Change working directory to home
7928 directory if `-psn_*' option is specified.
7930 * mac.c (DECODE_UTF_8): Remove macro.
7931 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
7932 created from cfstring_to_lisp.
7933 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
7934 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
7936 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
7939 2005-11-21 Ken Raeburn <raeburn@gnu.org>
7941 * keymap.c (shadow_lookup): Use make_number to pass a number to
7944 2005-11-21 Juri Linkov <juri@jurta.org>
7946 * puresize.h (BASE_PURESIZE): Increment to 1180000.
7948 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
7950 * xfaces.c (Finternal_set_lisp_face_attribute):
7951 Use :ignore-defface for new frame defaults when `unspecified' is
7953 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
7954 (merge_face_vectors): Don't do :ignore-defface overwriting here.
7955 (Finternal_merge_in_global_face): Do it here.
7957 2005-11-20 Juri Linkov <juri@jurta.org>
7959 * charset.c (invalid_character): Use Lisp-readable syntax
7960 for octal and hex. Reorder decimal, octal and hex values.
7962 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
7964 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
7965 this type is recognised when debugging.
7967 2005-11-19 Andreas Schwab <schwab@suse.de>
7969 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
7970 Lisp_Cons and Lisp_Float.
7972 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7974 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
7976 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
7977 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
7978 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
7979 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
7981 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
7983 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
7985 * xfaces.c (Qignore_defface): New variable.
7986 (syms_of_xfaces): Provide `:ignore-defface'.
7987 (IGNORE_DEFFACE_P): New macro.
7988 (check_lface_attrs, lface_fully_specified_p)
7989 (Finternal_set_lisp_face_attribute)
7990 (Fface_attribute_relative_p, Fmerge_face_attribute):
7991 Handle Qignore_defface as a possible value.
7992 (merge_face_vectors): The merged face is `unspecified' if the
7993 mergee specifies `:ignore-defface'.
7995 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
7997 * lread.c (readevalloop): Add missing GCPROs.
7999 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
8001 * xfns.c (xg_set_icon_from_xpm_data): New function.
8003 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
8004 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
8006 * xterm.c (x_bitmap_icon): Use the xpm if available.
8008 * image.c (x_create_bitmap_from_xpm_data): New function.
8009 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
8011 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
8013 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
8015 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
8017 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
8019 2005-11-15 Andreas Schwab <schwab@suse.de>
8021 * lisp.h (struct Lisp_Cons): Make cdr a union.
8022 (XCDR_AS_LVALUE): Adjust.
8023 (struct Lisp_Float): Make data a union.
8024 (XFLOAT_DATA): Adjust.
8026 * alloc.c (free_float): Make free list chaining aliasing-safe.
8027 (make_float): Likewise.
8028 (free_cons): Likewise.
8030 (check_cons_list): Likewise.
8031 (Fmake_symbol): Likewise.
8032 (allocate_misc): Likewise.
8033 (free_misc): Likewise.
8034 (gc_sweep): Likewise.
8036 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8038 * mac.c (HASHKEY_QUERY_CACHE): New define.
8039 (xrm_create_database, xrm_q_put_resource): Empty query cache.
8040 (xrm_get_resource): Use query cache.
8042 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
8043 inhibit_window_system is set.
8045 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8047 * macgui.h (USE_CG_TEXT_DRAWING): New define.
8048 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
8051 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
8052 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
8053 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
8054 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
8055 not used and font substitution never occurs for ASCII and Latin-1
8057 (XLoadQueryFont): Maximum and minimum metrics are now those among
8059 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
8060 height adjustments for Courier, Helvetica, and Times.
8062 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
8064 2005-11-11 David Reitter <david.reitter@gmail.com>
8066 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
8067 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
8068 Vmac_control_modifier / mac-control-modifier,
8069 Vmac_option_modifier / mac-option-modifier,
8070 Vmac_command_modifier / mac-command-modifier.
8071 (mac_to_emacs_modifiers): Use the new style modifier
8072 variables. Return UInt32 (modifiers are longs now.)
8073 (backtranslate_modified_keycode): New function (refactoring).
8074 (XTread_socket): Use new modifier variables and refactored function.
8075 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
8076 no dedicated meta key. Not in use anyway.)
8077 (convert_fn_keycode): Map Fn-keys to their original keycode
8078 using a table (english keyboard only).
8080 2005-11-11 Kim F. Storm <storm@cua.dk>
8082 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
8083 Add post hook to "backtrace" to always dump lisp call stack to
8084 increase chance of people sending it to us when reporting bugs.
8086 * doc.c (Fsubstitute_command_keys): Doc fix.
8088 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
8090 * xdisp.c (handle_stop): Skip overlay string handling if
8091 ignore_overlay_strings_at_pos_p is set.
8092 (set_iterator_to_next): At end of display vector, set
8093 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
8094 string, so we skip those overlay strings at current pos.
8096 2005-11-10 Lars Hansen <larsh@soem.dk>
8098 * fileio.c (file-regular-p): Doc fix.
8100 2005-11-10 Kim F. Storm <storm@cua.dk>
8102 * alloc.c (valid_lisp_object_p): New function to validate that
8103 an object is really a valid Lisp_Object.
8105 * lisp.h (valid_lisp_object_p): Add prototype.
8107 * print.c (safe_debug_print): New function to be called from gdb
8108 to print Lisp objects; use valid_lisp_object_p to avoid crashing
8109 if user tries to print something which is not a Lisp object.
8111 * .gdbinit (pp, pp1): Use safe_debug_print.
8112 (pv, pv1): New commands to print value of a lisp variable.
8114 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
8116 * .gdbinit (pp1): New user-defined function.
8118 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8120 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
8122 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
8123 related variables for dumped executable.
8125 * unexmacosx.c (unexec_write_zero): New function.
8126 (copy_data_segment): Clear uninitialized local variables in
8127 statically linked libraries.
8129 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
8131 2005-11-09 Juri Linkov <juri@jurta.org>
8133 * keymap.c (shadow_lookup): If Flookup_key returns a number,
8134 call it again with a sub-key-sequence, and if its return value
8135 is non-nil (sub-key is bound), return nil.
8137 2005-11-08 Kim F. Storm <storm@cua.dk>
8139 * process.c (Fsignal_process): Recognize signal names with and
8140 without SIG prefix, e.g. SIGHUP and HUP.
8142 * search.c (search_buffer): No need to initialize base_pat.
8144 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
8146 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
8147 Don't abuse the `mini' arg. Use the `obj' arg instead.
8149 2005-11-04 Kim F. Storm <storm@cua.dk>
8151 * xdisp.c (show_mouse_face): Clear mouse face to eol.
8153 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
8155 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
8156 font-lock.elc and jit-lock.elc.
8158 2005-11-03 Richard M. Stallman <rms@gnu.org>
8160 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
8161 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
8162 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
8164 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
8166 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
8168 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
8170 * window.c (Fdisplay_buffer): Fix last change to not use
8173 2005-11-01 Kim F. Storm <storm@cua.dk>
8175 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
8176 Instead, rotate the bottom angle bitmap 180 degrees to indicate
8177 that the bottom row does not end in a newline.
8179 2005-11-01 Andreas Schwab <schwab@suse.de>
8181 * unexelf.c (unexec): Handle .plt section in BSS segment.
8183 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8185 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
8187 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
8188 determine whether to consider dedicated windows as well.
8189 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
8190 (Fdisplay_buffer): Do consider dedicated windows in those cases where
8191 we will split the window rather than reuse it.
8192 Don't try to use windows on other displays.
8194 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
8196 * puresize.h (BASE_PURESIZE): Increment to 1170000.
8198 2005-10-31 Romain Francoise <romain@orebokech.com>
8200 * macfns.c: Update copyright year.
8201 * m/gould.h: Likewise.
8203 2005-10-30 Kim F. Storm <storm@cua.dk>
8205 * xdisp.c (display_line): Restore it->current_x and call
8206 extend_face_to_end_of_line when last glyph doesn't fit on line.
8207 (set_glyph_string_background_width): Remove specific tests here
8208 to see if face background should extend to end of line. Simplify.
8210 2005-10-30 Richard M. Stallman <rms@gnu.org>
8212 * alloc.c (BYTES_USED): Use uordblks, not arena.
8213 (bytes_used_when_reconsidered): New variable.
8214 (emacs_blocked_free): Set that.
8216 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
8218 * alloc.c (emacs_blocked_free): Fix typo.
8220 2005-10-29 Richard M. Stallman <rms@gnu.org>
8222 * data.c (Fmake_variable_frame_local): Doc fix.
8224 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
8225 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
8226 controls whether to save and restore mode_line_proptrans_alist.
8228 (unwind_format_mode_line): Work with that feature.
8229 (redisplay_internal): Don't call prepare_menu_bars if memory full.
8230 (move_elt_to_front): New function.
8231 (display_mode_element): Use move_elt_to_front.
8232 Don't bother munging text props on a null string.
8233 Delete obsolete elts from mode_line_proptrans_alist.
8234 (decode_mode_spec): Test Vmemory_full, not spare_memory.
8235 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
8237 * lisp.h (memory_full_cons_threshold): Declare.
8238 (internal_lisp_condition_case): Declare.
8240 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
8241 (Fmemory_full_p): Function deleted.
8242 (syms_of_alloc): Don't defsubr it.
8243 (memory_full_cons_threshold): New variable.
8244 (spare_memory): Now a vector of 7 elts.
8245 (buffer_memory_full): Don't set Vmemory_full here.
8246 (xfree): Don't try to refill here.
8247 (emacs_blocked_free): Record BYTES_USED in local var.
8248 (memory_full): Now free all the slots in spare_memory.
8249 (refill_memory_reserve): Allocate each slot in spare_memory.
8250 (init_alloc_once): Call refill_memory_reserve.
8252 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
8254 * eval.c (internal_lisp_condition_case): New function.
8255 (Fcondition_case): Use internal_lisp_condition_case.
8256 (Feval): Test Vmemory_full and memory_full_cons_threshold.
8257 (Ffuncall): Likewise.
8259 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
8261 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
8263 * syntax.c (Fparse_partial_sexp): Fix docstring.
8265 2005-10-28 Romain Francoise <romain@orebokech.com>
8267 * puresize.h (BASE_PURESIZE): Increment to 1130000.
8269 2005-10-28 Richard M. Stallman <rms@gnu.org>
8271 * xfns.c (syms_of_xfns): Provide `x' as feature.
8273 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
8275 * editfns.c (Fformat): Don't include string padding
8276 between info[n].start and info[n].end.
8278 * alloc.c (spare_memory): No longer static.
8279 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
8281 * puresize.h (BASE_PURESIZE): Increment to 1120000.
8283 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
8285 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
8287 * fringe.c (update_window_fringes): Handle case where buffer ends
8290 2005-10-27 Kenichi Handa <handa@m17n.org>
8292 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
8294 2005-10-24 Kenichi Handa <handa@m17n.org>
8296 * charset.h (charset_mule_unicode_0100_24ff)
8297 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
8300 * charset.c (charset_mule_unicode_0100_24ff)
8301 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
8303 (Fsetup_special_charsets): Initialize them.
8305 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
8306 supported Unicode characters.
8308 2005-10-25 Jason Rumney <jasonr@gnu.org>
8310 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
8312 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8314 * image.c [MAC_OS] (image_load_qt_1): Check image size.
8315 Use GraphicsImportGetImageDescription instead of
8316 GraphicsImportGetNaturalBounds.
8317 [MAC_OSX] (image_load_quartz2d): Check image size.
8318 [MAC_OS] (xpm_load_image): Likewise.
8320 * macterm.c (last_mouse_glyph_frame): New var.
8321 (note_mouse_movement): Say mouse moved if current frame differs
8322 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
8323 (XTmouse_position): Set last_mouse_glyph_frame.
8324 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
8325 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
8327 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
8328 (x_per_char_metric, XLoadQueryFont)
8329 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
8331 (mac_to_x_fontname, mac_do_list_fonts)
8332 (mac_initialize_display_info): Change screen resolutions to 72dpi.
8334 2005-10-25 Masatake YAMATO <jet@gyve.org>
8336 * minibuf.c (Fdisplay_completion_list): Small doc fix.
8338 2005-10-24 Kim F. Storm <storm@cua.dk>
8340 * xterm.c: Undo 2005-10-23 change.
8341 (last_mouse_glyph_frame): New var.
8342 (note_mouse_movement): Say mouse moved if current frame differs
8343 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
8344 (XTmouse_position): Set last_mouse_glyph_frame.
8345 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
8346 last_mouse_glyph] on mouse up/down event.
8348 * editfns.c (Fcompare_buffer_substrings): Fix last change.
8350 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
8352 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
8354 2005-10-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8356 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
8357 so tool tips don't interfere with press on tool bar button.
8359 2005-10-23 Richard M. Stallman <rms@gnu.org>
8361 * casetab.c (Fset_case_table): Doc fix.
8363 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
8364 (readevalloop): Compute ENTIRE properly.
8365 (syms_of_lread) <load-history>: Doc fix.
8367 2005-10-21 Richard M. Stallman <rms@gnu.org>
8369 * lread.c (Fload): Simplify gcpro structure.
8370 Gcpro FOUND as well as FILE, but not EFOUND.
8371 Unless preloading, record FOUND instead of FILE in Vload_history.
8372 Rename repeat local FILE to MSG_FILE.
8373 (syms_of_lread) <load-history>: Doc fix.
8375 2005-10-21 Kenichi Handa <handa@m17n.org>
8377 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
8379 2005-10-20 Kim F. Storm <storm@cua.dk>
8381 * buffer.c (clone_per_buffer_values): Remove unused var tem.
8382 (init_buffer): Remove unused vars dotstat, pwdstat.
8384 * ccl.c (check_ccl_update): Remove unused var vp.
8386 * fileio.c (auto_save_error): Call SAFE_FREE.
8388 * fns.c (Fchar_table_range): Remove unused var i.
8390 * minibuf.c (display_completion_list_1): New wrapper function
8391 for Fdisplay_completion_list.
8392 (Fminibuffer_completion_help): Use it.
8394 * term.c (encode_terminal_code): Remove unused var src_start.
8396 * window.c (Fwindow_tree): Remove unused var alist.
8398 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
8400 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
8402 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
8404 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
8406 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
8408 2005-10-20 Andreas Schwab <schwab@suse.de>
8410 * minibuf.c (Fdisplay_completion_list): Doc fix.
8412 2005-10-19 Kim F. Storm <storm@cua.dk>
8414 * image.c (check_image_size): Handle integer Vmax_image_size value
8415 directly as max pixel value. Use default frame size for null frame.
8416 (syms_of_image) <max-image-size>: Describe integer value.
8418 2005-10-19 Romain Francoise <romain@orebokech.com>
8420 * emacs.c (main): Update copyright year.
8422 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
8424 * image.c (Vmax_image_size): New variable.
8425 (check_image_size): New function.
8426 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
8427 (gif_load, gs_load): Use it.
8428 (lookup_image): Try loading again if previous load failed.
8429 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
8430 to display in, NULL if none.
8431 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
8434 2005-10-18 Richard M. Stallman <rms@gnu.org>
8436 * search.c (Fstring_match): Doc fix.
8438 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8440 * macterm.c (note_mouse_movement): Use PtInRect.
8441 (XTread_socket): Also ignore mouse motion just before a button
8442 release event. Don't process button release event when mouse is
8445 2005-10-16 Masatake YAMATO <jet@gyve.org>
8447 * minibuf.c (Fdisplay_completion_list): Add new optional
8448 argument COMMON_SUBSTRING. Bind `completion-common-substring'
8449 to the optional argument during running `completion-setup-hook'.
8451 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8453 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
8454 Allow nil as argument.
8455 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
8456 for encoding arguments as UTF-16 in native byte order, no BOM.
8458 * macfns.c (Fx_create_frame): Add debugging code.
8459 (Fx_show_tip): Set frame pixel width and height.
8461 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
8462 (FRAME_NORMAL_GC): New macro.
8463 (mac_draw_line, mac_clear_area, mac_clear_window)
8464 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
8465 (mac_draw_image_string, mac_draw_image_string_16): Rename from
8466 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
8467 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
8469 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
8470 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
8471 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
8472 (mac_draw_string_16, mac_draw_image_string)
8473 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
8474 (mac_scroll_area): Drawing functions now take frame as destination.
8476 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
8477 (x_draw_fringe_bitmap): Set clipping area in face->gc.
8479 * macterm.h (mac_clear_area): Add extern.
8481 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8483 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
8484 changes for xterm.c.
8486 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
8488 2005-10-14 Kenichi Handa <handa@m17n.org>
8490 * search.c (search_buffer): Give up BM search on case-fold-search
8491 if one of a target character has a case-equivalence of different
8492 charset even if that target charcter is an ASCII.
8494 * casefiddle.c (casify_object): Fix for the case that case
8495 conversion change the byte length.
8497 2005-10-14 Kim F. Storm <storm@cua.dk>
8499 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
8500 (handle_one_xevent): Only clear help_echo_string; restore it if
8501 note_mouse_movement didn't record any mouse movement.
8503 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
8504 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
8506 * keyboard.c (make_lispy_position): Adjust wx for left margin if
8508 (Fposn_at_x_y): Fix calculation of x coordinate.
8509 (Fposn_at_point): Return nil if point is hscrolled out of view.
8511 2005-10-13 Andreas Schwab <schwab@suse.de>
8513 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
8514 non-interactive mode.
8516 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8518 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
8520 2005-10-12 Kim F. Storm <storm@cua.dk>
8522 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
8524 2005-10-12 Romain Francoise <romain@orebokech.com>
8526 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
8528 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8530 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
8531 get end of text rows. Obtain header-line/mode-line rows directly.
8533 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
8534 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
8536 2005-10-12 Kim F. Storm <storm@cua.dk>
8538 * xdisp.c (remember_mouse_glyph): New generic version based on
8539 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
8540 properly handle all different window areas.
8542 * dispextern.h (remember_mouse_glyph): Add prototype.
8544 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
8545 (note_mouse_movement, XTmouse_position): Use generic
8546 remember_mouse_glyph, add last_mouse_glyph arg.
8548 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
8549 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
8550 (note_mouse_movement, w32_mouse_position): Use generic
8551 remember_mouse_glyph, add last_mouse_glyph arg.
8553 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
8554 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
8555 (XTmouse_position): Adapt to use generic remember_mouse_glyph
8556 instead of pixel_to_glyph_coords.
8558 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
8559 Fix x position for ON_TEXT when left margin width > 0.
8561 2005-10-11 Kim F. Storm <storm@cua.dk>
8563 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
8565 * keyboard.c (make_lispy_position): Fix buffer calculations for
8566 mouse click or movement in right fringe and the margins.
8568 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
8570 * image.c (fn_jpeg_stdio_src): Don't define it.
8571 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
8572 (our_common_init_source): Rename from `our_init_source'.
8573 (our_common_term_source): Rename from `our_term_source'.
8574 (our_memory_fill_input_buffer): Rename from
8575 `our_fill_input_buffer'.
8576 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
8577 (jpeg_memory_src): Use the new names.
8578 (struct jpeg_stdio_mgr): New struct.
8579 (JPEG_STDIO_BUFFER_SIZE): New constant.
8580 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
8581 (jpeg_file_src): New functions.
8582 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
8584 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8586 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
8587 (fm_font_family_alist): New variable.
8588 (syms_of_macterm): Initialize and staticpro it.
8589 (decode_mac_font_name): Replace '-' in family name with '_' if it
8590 occurs just once. Lower family name.
8591 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
8592 All uses changed. Remove argument MF and code conversion for it.
8593 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
8594 to CHARSET. Parse font size. Lower family name. Return integer
8595 value for status of parsing.
8596 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
8597 Don't use Fdowncase because family name is already lowered by
8598 decode_mac_font_name.
8599 (init_font_name_table): Always call decode_mac_font_name.
8600 Add pair of family name and its reference to fm_font_family_alist.
8601 (mac_clear_font_name_table): Clear fm_font_family_alist.
8602 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
8603 Lookup fm_font_family_alist to get font family reference.
8604 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
8605 name is already lowered by parse_x_font_name.
8607 2005-10-11 Kim F. Storm <storm@cua.dk>
8609 * xterm.c (glyph_rect): Return 0 if position is outside text area.
8611 * keyboard.c (make_lispy_position): Fix buffer position calculation for
8612 mouse click or movement in fringe.
8614 2005-10-10 Jason Rumney <jasonr@gnu.org>
8616 * xterm.c (remember_mouse_glyph): New function.
8617 (note_mouse_movement): Use it to remember the current glyph if changed.
8618 (XTmouse_position): Fix calculation of fake glyph under mouse.
8619 Move code to calculate glyph under mouse into remember_mouse_glyph.
8621 2005-10-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8623 * emacs.c (USAGE3, standard_args): -nb => -nbi.
8625 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
8627 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
8628 (next_frame, prev_frame, set_term_frame_name): Make static.
8630 * window.c (Fwindow_tree): Fix spelling.
8632 2005-10-09 Romain Francoise <romain@orebokech.com>
8634 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
8636 2005-10-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8638 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
8639 Add options -nb, --no-bitmap-icon.
8641 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
8643 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8645 * macgui.h (MAX_CLIP_RECTS): New define.
8646 (struct _XGC): New member clip_region.
8647 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
8650 * macterm.c (GC_CLIP_REGION): New macro.
8651 (saved_port_clip_region): New variable.
8652 (mac_begin_clip, mac_end_clip): New functions.
8653 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
8654 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
8655 (mac_copy_area_with_mask, mac_scroll_area): Use them.
8656 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
8657 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
8658 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
8659 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
8660 rectangles stored in gc.
8661 (XFreeGC): Dispose of clipping region.
8662 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
8663 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
8664 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
8665 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
8666 (x_draw_bar_cursor): Use them.
8667 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
8668 get multiple clipping rectangles.
8670 * macterm.h (mac_term_init): Add types to extern.
8671 (struct mac_output): Remove members mWP and pending_menu_activation.
8672 Put members scroll_bar_foreground_pixel and
8673 scroll_bar_background_pixel in #if 0.
8674 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
8676 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
8679 2005-10-08 Kim F. Storm <storm@cua.dk>
8681 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
8683 2005-10-07 Kim F. Storm <storm@cua.dk>
8685 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
8686 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
8687 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
8689 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8691 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
8692 to for_overlaps. Now occupy 3 bits.
8693 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
8694 (OVERLAPS_ERASED_CURSOR): New defines.
8695 (struct redisplay_interface): Add new OVERLAPS arg to member
8696 fix_overlapping_area.
8697 (x_fix_overlapping_area): Add new OVERLAPS arg.
8698 (get_glyph_string_clip_rects): Add extern.
8700 * dispnew.c (redraw_overlapping_rows):
8701 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
8703 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
8705 (get_glyph_string_clip_rects): New function created from
8706 get_glyph_string_clip_rect. Set clipping rectangles according to the
8707 value of for_overlaps. Enable to store multiple clipping rectangles.
8708 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
8709 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
8710 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
8711 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
8712 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
8713 calculating clipping rectangles later. Call x_fix_overlapping_area
8714 with new OVERLAPS arg to draw only erased cursor area.
8715 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
8716 to draw overlaps in both preceding and succeeding rows.
8718 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
8719 struct glyph_string to for_overlaps.
8721 2005-10-04 Richard M. Stallman <rms@gnu.org>
8723 * alloc.c (refill_memory_reserve): Conditionalize the body,
8724 not the function's existence.
8726 2005-10-04 Kim F. Storm <storm@cua.dk>
8728 * window.c (window_split_tree): New function.
8729 (Fwindow_split_tree): New defun.
8730 (syms_of_window): Defsubr it.
8732 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8734 * macterm.c (mac_invert_rectangle): New function.
8737 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
8739 * regex.h (re_char): Don't expose it in the interface.
8740 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
8742 * regex.c (re_char): Move it back here.
8743 (re_set_whitespace_regexp): Change the arg's type to not use it.
8745 * keyboard.c (make_lispy_event): If point has moved between down and up
8746 event, make it a drag, not a click, to mirror what
8747 mouse-drag-region expects.
8749 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8751 * lisp.h (fatal): Undo previous change.
8752 * term.c (fatal): Undo previous change.
8754 2005-10-01 Richard M. Stallman <rms@gnu.org>
8756 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
8758 2005-10-01 Kim F. Storm <storm@cua.dk>
8760 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
8762 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8764 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
8766 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
8767 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
8768 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
8769 Try ATSUI-compatible 12pt Monaco font first.
8771 * macgui.h (struct _XCharStruct): New member valid_p.
8772 (STORE_XCHARSTRUCT): Set valid_p.
8773 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
8775 * macterm.c (mac_draw_string_common, x_per_char_metric)
8776 (mac_compute_glyph_string_overhangs, init_font_name_table)
8777 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
8778 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
8779 (x_draw_glyph_string_background)
8780 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
8781 XDrawImageString. Always draw background and foreground separately.
8782 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
8783 functions for one-byte chars when using ATSUI-compatible fonts.
8784 (atsu_font_id_hash) [USE_ATSUI]: New variable.
8785 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
8786 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
8787 max_char_or_byte2 more in detail.
8788 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
8790 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
8792 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
8793 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
8795 * unexelf.c (fatal): Fix prototype.
8797 * term.c (fatal): Implement using varargs.
8799 * regex.c (re_char): Move typedef ...
8800 * regex.h (re_char): ... here.
8801 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
8803 * emacs.c (malloc_set_state): Fix return type.
8806 * lisp.h (fatal): Add argument types.
8808 * dispextern.h (fatal): Delete prototype.
8810 * systime.h (make_time): Prototype moved from ...
8811 * editfns.c (make_time): ... here.
8813 * editfns.c: Move systime.h include after lisp.h.
8816 * process.c: Likewise.
8818 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
8819 Add parameter types.
8820 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
8821 (emacs_blocked_free): Change definition to match __free_hook.
8822 (emacs_blocked_malloc): Change definition to match __malloc_hook.
8823 (emacs_blocked_realloc): Change definition to match __realloc_hook.
8825 2005-09-30 Romain Francoise <romain@orebokech.com>
8827 * minibuf.c (Fread_buffer): Follow convention for reading from the
8828 minibuffer with a default value. Doc fix.
8830 2005-09-29 Juri Linkov <juri@jurta.org>
8832 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
8833 Rename argument name `string' to `format-string'.
8836 2005-09-28 Kim F. Storm <storm@cua.dk>
8838 * image.c (gif_load): Fix size of allocated image buffer
8839 for images where a sub-image may be larger than the image's
8840 total height/width specifications.
8842 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8844 * macgui.h (struct _XCharStruct): Each member now takes short value.
8846 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
8848 * xfaces.c (lookup_derived_face): Add parameter type.
8850 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
8852 * marker.c (verify_bytepos): Add parameter type.
8854 * process.c (get_operating_system_release): Move prototype ...
8856 * systime.h (get_operating_system_release): ... here.
8858 * xterm.c (handle_one_xevent): Refer to union field to match the
8859 type required by the function definition.
8860 (set_vertical_scroll_bar): Move prototype ...
8862 * xterm.h: ... here.
8864 * fns.c (internal_equal, seed_random): Fix prototypes.
8865 (internal_equal): Add missing parameter.
8867 2005-09-25 Richard M. Stallman <rms@gnu.org>
8869 * keyboard.c (update_menu_bindings): Variable deleted.
8870 (syms_of_keyboard): Don't defvar it.
8871 (parse_menu_item): Don't test it.
8873 2005-09-23 Richard M. Stallman <rms@gnu.org>
8875 * editfns.c (Fformat): Explicitly test for end of format string
8876 and don't use `index'.
8878 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
8880 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
8881 Define BROKEN_GET_CURRENT_DIR_NAME.
8883 * sysdep.c (get_current_dir_name): Also define if
8884 BROKEN_GET_CURRENT_DIR_NAME.
8886 * m/ibmrs6000.h: Test for USG5, not USG5_4.
8888 2005-09-22 Kim F. Storm <storm@cua.dk>
8890 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
8891 (message2): Fix commentary. Ok to use alloca'ed memory.
8892 Still not ok to use Lisp string data (because of GC).
8893 (set_message): Add comment why GC cannot happen.
8895 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8897 * macterm.c (xlfdpat_block_match_1): Fix assertion.
8898 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
8899 variants for a scalable font multiple times.
8901 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8903 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
8904 Setup slave tty options before forking.
8906 2005-09-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8908 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
8909 positions have been set for the frame (as is done for frames in
8910 special-display-buffer-names).
8912 2005-09-19 Kim F. Storm <storm@cua.dk>
8914 * editfns.c (Fformat): Don't scan past end of format string that
8915 ends in %. Reported by Johan Bockg
\e,Ae
\e(Brd.
8917 2005-09-18 Andreas Schwab <schwab@suse.de>
8919 * window.h (struct window): Remove height_fixed_p, no longer set.
8921 * window.c (make_window): Don't initialize height_fixed_p.
8922 (window_fixed_size_p): Don't use it.
8924 2005-09-18 John Paul Wallington <jpw@pobox.com>
8926 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
8928 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8930 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
8932 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
8934 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
8937 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
8939 2005-09-17 Eli Zaretskii <eliz@gnu.org>
8941 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
8942 (obj): Use XMENU_OBJ, not a literal xmenu.o.
8944 2005-09-16 Romain Francoise <romain@orebokech.com>
8946 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
8948 2005-09-15 Richard M. Stallman <rms@gnu.org>
8950 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
8951 (display_mode_element): Instead of `lisp_string' and `this',
8952 record `offset' and increment that.
8953 `last_offset' replaces `last'.
8955 * Makefile.in (XMENU_OBJ): Variable deleted.
8956 (obj): Use xmenu.o unconditionally.
8957 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
8959 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
8961 2005-09-15 Kim F. Storm <storm@cua.dk>
8963 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
8964 (reseat_at_next_visible_line_start): Likewise (in xassert).
8966 2005-09-14 Romain Francoise <romain@orebokech.com>
8968 * fileio.c (write_region_inhibit_fsync): New variable.
8969 (Fwrite_region): Use it to skip call to fsync.
8970 (syms_of_fileio): Initialize it.
8972 2005-09-14 Kenichi Handa <handa@m17n.org>
8974 * coding.c (code_convert_region_unwind): Argument format changed.
8975 (run_pre_post_conversion_on_str): If pre-write-conversion function
8976 changed the current buffer, delete the new buffer.
8977 (run_pre_write_conversin_on_c_str): Likewise.
8979 * fileio.c (Fexpand_file_name): Check multibyteness of
8982 2005-09-13 Kenichi Handa <handa@m17n.org>
8984 * composite.c (compose_chars_in_text): Delete it.
8986 * composite.h (compose_chars_in_text): Delete extern.
8988 2005-09-13 Kim F. Storm <storm@cua.dk>
8990 * print.c (print_error_message): Fix last change.
8992 2005-09-12 Kim F. Storm <storm@cua.dk>
8994 * composite.c (compose_chars_in_text): Fix setup of `pend'.
8995 Unconditionally reload `ptr' and `pend' after eval.
8997 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
8999 * print.c (print_error_message): Pass copy of caller name to
9002 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
9004 2005-09-12 Kenichi Handa <handa@m17n.org>
9006 * xdisp.c (display_mode_element): Be sure to make variables THIS
9007 and LISP_STRING point into a string data of ELT.
9009 2005-09-12 Kim F. Storm <storm@cua.dk>
9011 * editfns.c (Ftranslate_region_internal): Reload `tt' after
9012 signal_after_change that may have GC'ed.
9013 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
9015 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
9016 after insert while runs signal_after_change.
9018 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
9019 declaration to where it is used.
9021 * w32.c (check_windows_init_file): Fix allocation of error buffer.
9023 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
9024 (x_set_name_internal): Call x_encode_text with new FREEP arg to
9025 know if xfree is needed instead of guessing.
9027 * xterm.h (x_encode_text): Remove prototype.
9029 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
9031 * w32term.c (x_bitmap_icon): Load small icons too.
9033 2005-09-10 Romain Francoise <romain@orebokech.com>
9035 * buffer.c (init_buffer): Grow buffer to add directory separator
9036 and terminal zero. Fix typos.
9038 2005-09-10 Eli Zaretskii <eliz@gnu.org>
9040 * buffer.c (init_buffer): Fix error message for failed call to
9041 get_current_dir_name.
9042 (get_current_dir_name): Remove prototype.
9044 * xsmfns.c (get_current_dir_name): Remove prototype.
9046 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
9049 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
9050 Don't #undef NULL after including blockinput.h.
9052 * config.in: Regenerated.
9054 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
9056 Remove the MAXPATHLEN limitations:
9058 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
9061 * buffer.c (init_buffer): Use it.
9063 * xsmfns.c (smc_save_yourself_CB): Ditto.
9065 2005-09-09 Kim F. Storm <storm@cua.dk>
9067 * doc.c (Fsubstitute_command_keys): Lookup key binding for
9068 commands that are remapped from some other command.
9070 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
9071 flag in disabled rows below the window.
9073 * frame.h (struct frame): New member updated_p.
9075 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
9076 member. Remove local `updated' array and associated variables.
9078 2005-09-07 Kim F. Storm <storm@cua.dk>
9080 * xdisp.c (handle_display_prop): Respect overlay window property.
9082 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
9083 Fixes crash reported by YAMAMOTO Mitsuharu.
9085 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9087 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
9088 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
9089 (xlfdpat_block_match_1, xlfdpat_match): New functions.
9090 (xlfdpat_block_match): New macro.
9091 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
9092 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
9093 (add_font_name_table_entry): Increase font_name_table_size more
9095 (mac_c_string_match): Remove function.
9096 (mac_do_list_fonts): Use XLFD pattern match instead of regular
9099 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
9101 2005-09-03 Richard M. Stallman <rms@gnu.org>
9103 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
9104 (move_it_in_display_line_to): Stop after last char on line even
9105 on a windowing terminal, if that's the specified stop position.
9107 * fns.c (Fsort): Doc fix.
9109 * editfns.c (Fpropertize): Don't insist that properties be symbols.
9111 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
9113 * dired.c (directory_files_internal_unwind, directory_files_internal)
9114 (file_name_completion): Use a Save_Value object rather than a cons of
9115 two 16bit ints to store the DIR*.
9116 (directory_files_internal, file_name_completion): Handle both EINTR and
9117 EAGAIN consistently after `readdir'.
9119 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
9121 * intervals.c (update_interval): Add position info in error.
9123 * dispnew.c (window_to_frame_hpos, update_window):
9124 Avoid gcc warning about unused variable `f'.
9126 2005-08-31 Jason Rumney <jasonr@gnu.org>
9128 * w32menu.c (add_menu_item): If unicode_append_menu returns an
9129 error, revert to using AppendMenu.
9131 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9133 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
9135 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
9137 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
9138 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
9139 Use posix_pathname_to_fsspec.
9140 [MAC_OS] (xpm_load_image): Fill in background_transparent field
9143 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
9145 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
9147 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
9149 * syntax.c (update_syntax_table): Properly reproduce the special +1
9150 setting of e_property at the end of the buffer when bumping into the
9151 INTERVALS_AT_ONCE limit.
9153 2005-08-27 Eli Zaretskii <eliz@gnu.org>
9155 * emacs.c (USAGE1): Fix the description of the -Q option.
9157 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
9159 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
9161 2005-08-26 Kim F. Storm <storm@cua.dk>
9163 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
9164 Don't move PT to new window start.
9166 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9168 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
9169 ICONIFY/DEICONIFY_EVENT.
9171 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
9172 Restore background color.
9173 (mac_handle_visibility_change): New function.
9174 (x_make_frame_invisible, x_iconify_frame)
9175 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
9176 [USE_CARBON_EVENTS] (mac_handle_window_event)
9177 (install_window_handler): Handle visibility change events.
9178 (x_make_frame_visible): Don't reposition window if it is iconified
9179 or asked for visible before. Select and uncollapse window when it
9181 (x_make_frame_invisible): Don't reset x_highlight_frame.
9182 (x_iconify_frame): Likewise. Make invisible frame visible before
9184 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
9185 (do_window_update): Don't change visibility of invisible frame.
9187 2005-08-22 Juri Linkov <juri@jurta.org>
9189 * term.c (turn_on_face): Check for TS_set_foreground and
9190 TS_set_background depending on standout_mode. Simplify.
9192 2005-08-21 Kim F. Storm <storm@cua.dk>
9194 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
9195 bitmaps on fully visible rows.
9197 * fringe.c (update_window_fringes): Replace FORCE_P arg with
9198 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
9201 * xdisp.c (redisplay_window): Call update_window_fringes with
9202 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
9204 2005-08-20 Richard M. Stallman <rms@gnu.org>
9206 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
9207 (resize_mini_window): Set w->start, and PT, so as to display the tail
9208 end of the buffer, if it doesn't all fit.
9210 2005-08-18 Kim F. Storm <storm@cua.dk>
9212 * xdisp.c (calc_pixel_width_or_height): Use actual display
9213 resolution when available instead of Vdisplay_pixels_per_inch.
9215 2005-08-17 Kim F. Storm <storm@cua.dk>
9217 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
9219 * dispnew.c (buffer_posn_from_coords): Check that target row is
9222 2005-08-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9224 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
9225 xg_set_frame_icon and call it.
9227 * gtkutil.c (xg_set_frame_icon): New function.
9229 * gtkutil.h (xg_set_frame_icon): Declare it.
9231 2005-08-16 Kim F. Storm <storm@cua.dk>
9233 * dispnew.c (increment_row_positions): Skip non-enabled rows.
9235 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
9236 (Fcurrent_window_configuration): Use VECSIZE macro instead.
9238 2005-08-15 Richard M. Stallman <rms@gnu.org>
9240 * xdisp.c (message3_nolog): Clear echo_message_buffer.
9242 2005-08-15 Kim F. Storm <storm@cua.dk>
9244 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
9246 * process.c (deactivate_process, status_notify, read_process_output)
9247 (update_status, status_convert, decode_status, allocate_pty)
9248 (make_process, remove_process, list_processes_1)
9249 (create_process_1, unwind_request_sigio, read_process_output)
9250 (send_process, keyboard_bit_set): Declare static.
9251 (Fdelete_process): Simplify. Pass process to status_notify, so we
9252 don't try to read output from it.
9253 (status_notify): New arg deleting_process--don't try to read
9254 output from that process.
9256 * lisp.h (deactivate_process, status_notify, read_process_output):
9259 2005-08-14 Richard M. Stallman <rms@gnu.org>
9261 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
9264 2005-08-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9266 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
9267 (xg_get_image_for_pixmap): Move some code to
9268 xg_get_pixbuf_from_pix_and_mask, and call it.
9270 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
9272 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
9273 to get an GTK icon and set it with GTK functions to avoid having GTK
9274 override an icon set with just X functions.
9276 2005-08-11 Richard M. Stallman <rms@gnu.org>
9278 * image.c (syms_of_image): Init image_types here, and call
9280 (init_image): Not here.
9282 2005-08-09 Richard M. Stallman <rms@gnu.org>
9284 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
9286 * lisp.h (QUIT): Throw t to Vthrow_on_input.
9288 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
9290 * floatfns.c (Fexpt): Use floats for negative exponent.
9292 2005-08-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9294 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
9295 should not be there, causing menu display errors with GTK 2.6.9.
9297 2005-08-07 Richard M. Stallman <rms@gnu.org>
9299 * floatfns.c (Fexpt): Undo previous change.
9301 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
9302 so it can be used with various state vectors.
9304 * emacs.c (endif): Convert -script into -scriptload.
9305 (standard_args): Add -scriptload. Allow -basic-display with one dash.
9307 * fns.c (syms_of_fns): Add `emacs' to features.
9309 * term.c (set_terminal_modes): If no TS_termcap_modes string,
9310 output newlines to scroll the old screen contents off the screen.
9312 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
9314 * floatfns.c (Fexpt): Use floats for negative exponent.
9317 2005-08-02 Richard M. Stallman <rms@gnu.org>
9319 * frame.c (Fframe_char_width): Doc fix.
9321 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
9323 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
9326 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
9328 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
9329 (my_create_window, my_create_tip_window): Make static.
9331 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
9332 (my_set_foreground_window, my_destroy_window): Make static.
9334 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
9336 Merge gnulib getopt implementation into Emacs.
9338 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
9339 now part of lib-src.
9341 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
9343 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
9345 2005-07-25 Jason Rumney <jasonr@gnu.org>
9347 * w32menu.c (w32_menu_display_help): Suppress tooltip when
9348 navigating menus with the keyboard.
9350 2005-07-23 Richard M. Stallman <rms@gnu.org>
9352 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
9354 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
9355 gc_relative_threshold, one by one.
9357 * keyboard.c (read_char): Test gc_cons_threshold.
9358 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
9360 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
9361 gc_relative_threshold, one by one.
9363 * alloc.c (gc_cons_threshold): Not static.
9364 (gc_cons_combined_threshold): Var deleted.
9365 (gc_relative_threshold): New variable.
9366 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
9367 instead of gc_cons_combined_threshold.
9369 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
9370 (gc_cons_combined_threshold): Declaration deleted.
9372 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9374 * mac.c: Don't include stdlib.h or string.h.
9375 (Fdo_applescript, Fmac_file_name_to_posix)
9376 (Fmac_file_name_to_posix): Doc fixes.
9377 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
9378 (Fmac_code_convert_string): Likewise.
9379 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
9380 if the executable is not contained in a bundle.
9382 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
9383 (gray_width, gray_height): Remove defines.
9384 (gray_bits, gray_bitmap_width, gray_bitmap_height)
9385 (gray_bitmap_bits): Remove variables.
9386 (lispy_function_keys): Remove extern.
9387 (free_frame_menubar): Add extern.
9388 (x_window_to_frame): Remove function.
9389 (unwind_create_tip_frame): Add declaration.
9390 (x_set_name_internal): New function.
9391 (x_set_name, x_set_title): Use it.
9392 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
9393 (Fx_display_pixel_height, Fx_display_planes)
9394 (Fx_display_color_cells, Fx_server_max_request_size)
9395 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9396 (Fx_display_mm_height, Fx_display_mm_width)
9397 (Fx_display_backing_store, Fx_display_visual_class)
9398 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
9400 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
9402 * macselect.c (Fx_own_selection_internal): Follow error conventions.
9403 (Fx_get_selection_internal, Fx_selection_owner_p)
9404 (Fx_selection_exists_p): Doc fixes.
9405 (syms_of_macselect) <selection-converter-alist>: Likewise.
9407 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
9409 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
9411 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
9412 (Fccl_execute_on_string): Likewise; add usage info.
9414 * composite.c (Fcompose_region_internal)
9415 (Fcompose_string_internal):
9416 Improve argument/docstring consistency.
9418 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
9419 Fix typos in docstrings.
9421 * textprop.c (Fnext_char_property_change)
9422 (Fprevious_char_property_change): Doc fixes.
9424 * window.c (Fset_window_margins, Fset_window_fringes):
9425 Improve argument/docstring consistency.
9427 * xfaces.c (Finternal_lisp_face_p): Doc fix.
9429 2005-07-21 Andreas Schwab <schwab@suse.de>
9431 * eval.c (restore_stack_limits): Return a value.
9433 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
9435 * eval.c (Fdefvar): Doc fix.
9437 2005-07-20 Kim F. Storm <storm@cua.dk>
9439 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
9440 Use make_save_value to unwind protect stream.
9442 * lread.c (Fload, load_unwind):
9443 Use make_save_value to unwind protect stream.
9445 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
9447 * eval.c (Fprog2, Fcalled_interactively_p),
9448 (syms_of_eval) <debug-on-quit>: Doc fixes.
9449 (syms_of_eval) <max-specpdl-size>:
9450 (Finteractive_p): Fix typos in docstrings.
9452 2005-07-19 Kim F. Storm <storm@cua.dk>
9454 * w32fns.c (Vx_hand_shape): Variable removed.
9455 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
9457 2005-07-19 Kenichi Handa <handa@m17n.org>
9459 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
9461 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
9463 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
9465 2005-07-18 Kim F. Storm <storm@cua.dk>
9467 * frame.h (struct frame): New member already_hscrolled_p.
9469 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
9470 to avoid redisplay looping hscrolling back and forth ad infinitum.
9472 2005-07-18 Juri Linkov <juri@jurta.org>
9474 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
9475 * keymap.c (Fminor_mode_key_binding):
9476 * macterm.c (mac-emulate-three-button-mouse):
9477 Delete duplicate duplicate words.
9479 2005-07-18 Ken Raeburn <raeburn@gnu.org>
9481 * minibuf.c (Ftest_completion): Fix odd syntax in test.
9483 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9485 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
9487 * macgui.h (struct _XGC): New struct.
9489 (GCForeground, GCBackground, GCFont): Use X11 mask values.
9490 (XCreateGC, XParseGeometry): Move externs to macterm.h.
9492 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
9493 (XSetFont): Add declaration.
9494 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
9496 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
9498 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
9499 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
9500 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
9502 (mac_erase_rectangle): New function.
9503 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
9504 (x_draw_stretch_glyph_string): Use it.
9505 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
9506 (XSetBackground, XSetFont): Adjust for new GC implementation.
9507 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
9508 (XTset_vertical_scroll_bar): Clear area under scroll bar.
9510 * macterm.h (struct mac_display_info): Change types of
9511 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
9512 (XCreateGC, XParseGeometry): Move externs from macgui.h.
9514 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
9516 2005-07-16 Richard M. Stallman <rms@gnu.org>
9518 * buffer.c (Fmake_overlay): Doc fix.
9520 2005-07-16 Eli Zaretskii <eliz@gnu.org>
9522 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
9523 Vw32_valid_locale_ids, and Vw32_valid_codepages.
9525 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9527 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
9528 Use Fstring_as_unibyte instead of string_make_unibyte.
9530 2005-07-15 Richard M. Stallman <rms@gnu.org>
9532 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
9534 2005-07-15 Kim F. Storm <storm@cua.dk>
9536 * xdisp.c: Fix redisplay loop in last change.
9537 (IT_POS_VALID_AFTER_MOVE_P): New macro.
9538 (move_it_vertically_backward, move_it_by_lines): Use it.
9540 2005-07-14 Jason Rumney <jasonr@gnu.org>
9542 * w32.c (init_environment): Default HOME directory to user's
9543 appdata directory if possible.
9545 2005-07-14 Kim F. Storm <storm@cua.dk>
9547 * .gdbinit (pitx): Fix output format. Print string charpos.
9549 * lread.c (syms_of_lread): Initialize seen_list.
9551 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
9553 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
9554 Staticpro re_match_object.
9556 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9558 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
9561 * macterm.c (mac_window_to_frame): Remove duplicate define.
9563 2005-07-14 Kenichi Handa <handa@m17n.org>
9565 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
9566 (code_convert_region): Adjust for the above change.
9567 (set_conversion_work_buffer): If the work buffer is already in
9568 use, generate a new buffer and return it. Otherwise return Qnil.
9569 (run_pre_post_conversion_on_str): Adjust for the above change.
9570 (run_pre_write_conversin_on_c_str): Likewise.
9572 2005-07-13 Kim F. Storm <storm@cua.dk>
9574 * xdisp.c (start_display): Don't reseat to next visible line start
9575 if current start position is in a string or image.
9576 (move_it_vertically_backward): Be sure to move out of strings and
9577 images when moving it2 forward.
9578 (move_it_by_lines): When moving forward, move to next buffer
9579 position if we end up in a string or image. When moving backward,
9580 count rows moved over when moving to start of current row in case
9581 row starts in middle of a string or image. Also move further
9582 backward if we end up in a string or image.
9583 (try_cursor_movement): If overlay string spans multiple lines,
9584 move backward to set cursor on start of an overlay string.
9585 (cursor_row_p): Row is ok if cursor is at newline from string, but
9586 string starts on this line (so we always position cursor at start
9589 * indent.c (Fvertical_motion): If start position is on an image,
9590 don't move back if we move too far (that's almost certain to happen).
9592 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
9593 row in minibuffer windows.
9594 (try_window): Don't check margins in minibuffer windows.
9596 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9598 * macterm.c: Don't include stdlib.h or composite.h.
9599 (x_use_underline_position_properties, last_mouse_press_frame)
9600 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
9601 (syms_of_macterm, mac_initialize): Don't initialize them.
9602 (waiting_for_input, initial_argv, initial_argc)
9603 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
9604 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
9605 (extra_keyboard_modifiers): Fix type in extern.
9606 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
9607 (x_scroll_bar_report_motion): Add argument types to declaration.
9608 (mac_compute_glyph_string_overhangs): Add declaration.
9609 (disable_mouse_highlight): Remove unused variable.
9610 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
9611 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
9612 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
9613 All callers changed.
9614 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
9616 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
9617 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
9618 only when its width is less than the height.
9619 (XTredeem_scroll_bar): Sync with xterm.c.
9620 (font_name_table, font_name_table_size, font_name_count):
9622 (drag_and_drop_file_list): Remove variable. Previous use is now
9624 (do_ae_open_documents): Move DRAG_N_DROP event construction part
9626 (XTread_socket): Consolidate setting of event timestamp.
9627 Move DRAG_N_DROP event construction part to do_ae_open_documents.
9628 Support extra_keyboard_modifiers.
9630 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
9631 beginning with that for ASCII.
9633 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
9635 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
9636 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
9637 (syms_of_alloc): Declare gc-cons-percentage.
9639 * eval.c (Feval, Ffuncall):
9640 * keyboard.c (read_char):
9641 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
9643 * lisp.h (gc_cons_combined_threshold): Declare.
9645 2005-07-12 Kim F. Storm <storm@cua.dk>
9647 * coding.c (Qprocess_argument):
9648 * coding.h (Qprocess_argument): Remove unused var.
9650 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
9652 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9654 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
9656 [!MAC_OSX] (fchmod, fchown): New functions.
9657 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
9658 Use SBYTES and EndianU32_BtoN.
9659 (mac_get_object_from_code): Return 4 byte string even if argument
9660 is 0. Use make_unibyte_string and EndianU32_NtoB.
9661 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
9662 (Fmac_set_file_type): Fix documents and argument declarations.
9663 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
9665 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
9667 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
9669 2005-07-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9671 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
9672 Lucid if X_I18N, font otherwise.
9674 2005-07-10 Steven Tamm <steventamm@mac.com>
9676 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
9677 (Fmac_set_file_type, Fmac_set_file_creator): Add.
9678 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9680 2005-07-10 Richard M. Stallman <rms@gnu.org>
9682 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
9683 (syms_of_lread): Set up eval-buffer-list.
9684 (Feval_buffer, Feval_region): Bind eval-buffer-list.
9686 2005-07-08 Richard M. Stallman <rms@gnu.org>
9688 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
9690 2005-07-08 Kim F. Storm <storm@cua.dk>
9692 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
9693 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
9695 2005-07-07 Kim F. Storm <storm@cua.dk>
9697 * window.c (Frecenter): Fix last change (set iarg before use).
9699 2005-07-06 Richard M. Stallman <rms@gnu.org>
9701 * window.c (Frecenter): When arg is inside the scroll margin,
9702 move it out of the margin.
9704 2005-07-06 Jason Rumney <jasonr@gnu.org>
9706 * w32console.c (initialize_w32_display): Detect when the console
9707 dimensions are insane, and default to 80x25 instead.
9708 (w32_use_full_screen_buffer): Default to nil.
9710 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9712 * macterm.c (mac_draw_vertical_window_border): Use foreground of
9713 VERTICAL_BORDER_FACE_ID for vertical border line.
9714 (mac_encode_char): Call check_ccl_update in advance.
9715 (mac_to_x_fontname, x_font_name_to_mac_font_name)
9716 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
9717 Don't assume that font family length is less than 32.
9718 (x_compute_min_glyph_bounds): Make static.
9719 (x_load_font): Never set fonts_changed_p to zero.
9721 2005-07-04 Lute Kamstra <lute@gnu.org>
9723 * Update FSF's address in GPL notices.
9725 2005-07-03 Richard M. Stallman <rms@gnu.org>
9727 * xdisp.c (try_window): Fix previous change in how it handles
9728 a partially-visible line or one only partly past the margin.
9730 * window.c (window_scroll_pixel_based): Take account
9731 of this_scroll_margin when finding point when scrolling up.
9733 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
9735 * window.c (window_scroll_pixel_based, window_scroll_line_based):
9736 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
9737 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
9739 2005-07-02 Juri Linkov <juri@jurta.org>
9741 * w32term.c (w32_draw_vertical_window_border): Use foreground of
9742 VERTICAL_BORDER_FACE_ID for vertical border line.
9744 2005-07-02 Eli Zaretskii <eliz@gnu.org>
9746 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
9747 fchmod so that chmod doesn't get called on MSDOS before the file
9750 2005-07-01 Jason Rumney <jasonr@gnu.org>
9752 * w32term.c (cleartype_active): New flag for enabling sub-pixel
9754 (w32_initialize): Initialize it.
9755 (w32_native_per_char_metric): Allow a couple of extra pixels when
9756 Cleartype is active.
9758 * w32term.c (w32_initialize): Move check for screen reader here
9759 from syms_of_w32term.
9761 2005-06-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9763 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
9766 2005-07-01 Masatake YAMATO <jet@gyve.org>
9768 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
9770 2005-06-30 Juri Linkov <juri@jurta.org>
9772 * xdisp.c (x_draw_vertical_border): If left fringe is not present
9773 decrease x coord of vertical border by 1 pixel to not occupy text
9774 area of the right window.
9776 * xterm.c (x_draw_vertical_window_border): Use foreground of
9777 VERTICAL_BORDER_FACE_ID for vertical border line.
9779 * term.c (turn_on_face): In standout mode apply specified
9780 fg to bg, and specified bg to fg (this makes the logic of
9781 inversion on terminal consistent with X).
9783 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
9785 * eval.c (user_variable_p_eh): New function.
9786 (Fuser_variable_p): Use it. Clarify docstring.
9787 Return t for aliases of user options, nil for alias loops.
9789 2005-06-27 Richard M. Stallman <rms@gnu.org>
9791 * eval.c (Fdefvar): Improve error message.
9793 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9795 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
9798 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
9800 * eval.c (Fdefvar): Don't try to set constant symbols.
9802 2005-06-25 Richard M. Stallman <rms@gnu.org>
9804 * macfns.c (Fx_show_tip): Pass new arg to try_window.
9806 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
9808 * xfns.c (Fx_show_tip): Pass new arg to try_window.
9810 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
9811 (redisplay_window): Handle try_window reporting point in scroll margin.
9813 * dispextern.h (try_window): Declare new arg.
9815 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
9816 Use fchmod to copy the file modes.
9817 (Frename_file): Don't copy UID and GID here;
9818 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
9820 * eval.c (call_debugger): Take full care of extending stack limits
9821 to make space for the debugger, and restore the change afterward.
9822 Bind debug-on-error to nil.
9823 (restore_stack_limits): New subroutine.
9824 (Fsignal): Extend specpdl bound along with eval depth bound,
9825 for calling edebug. Don't do either one, for calling debugger.
9826 (find_handler_clause): Don't bind debug-on-error here.
9827 Don't unbind anything either.
9828 Temporarily advance max_specpdl_size for calling
9829 internal_with_output_to_temp_buffer.
9830 (grow_specpdl): Don't alter max_specpdl_size before signaling
9832 (syms_of_eval) <max-specpdl-size>: Doc fix.
9834 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
9836 2005-06-24 Eli Zaretskii <eliz@gnu.org>
9838 * fileio.c (Frename_file): Undo last change: no need to ifdef away
9839 chown on DOS_NT platforms.
9841 * w32.c (sys_chown): New function.
9843 * s/ms-w32.h (chown): New; define to sys_chown.
9845 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
9847 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
9848 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
9850 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
9852 2005-06-23 Richard M. Stallman <rms@gnu.org>
9854 * xdisp.c (get_next_display_element): Finish reversing the tests of
9855 Vnobreak_char_display.
9857 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
9859 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
9860 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
9862 * fileio.c (Frename_file): Preserve owner and group, if possible,
9865 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
9867 * abbrev.c (Funexpand_abbrev):
9868 * category.c (Fmake_category_set):
9869 * dispnew.c (Fsleep_for, Fsit_for):
9870 * editfns.c (Fsubst_char_in_region):
9871 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
9872 * frame.c (make_frame_without_minibuffer):
9873 * lread.c (read_vector):
9874 * macfns.c (check_x_frame):
9875 * process.c (Fstop_process, Fcontinue_process):
9876 * search.c (Freplace_match):
9877 * syntax.c (Fstring_to_syntax):
9878 * w32fns.c (check_x_frame, check_x_display_info):
9879 * xfaces.c (x_supports_face_attributes_p):
9880 * xselect.c (Fx_own_selection_internal): Follow error conventions.
9882 * image.c (fn_png_init_io): Don't define it.
9883 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
9884 (png_read_from_file): New function, based on png_read_from_memory.
9885 (png_load): Use it, instead of fn_png_init_io.
9887 2005-06-23 Kim F. Storm <storm@cua.dk>
9889 * search.c (Fmatch_data): Remove evaporate option.
9890 (Fset_match_data): Do not mention evaporate option in doc string.
9891 Add commentary explaining evaporate arg (for internal use only).
9892 (unwind_set_match_data): Add comment on evaporate use.
9894 2005-06-22 Miles Bader <miles@gnu.org>
9896 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
9897 (realize_basic_faces, syms_of_xfaces): Update references to it.
9898 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
9899 to `VERTICAL_BORDER_FACE_ID'.
9900 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
9902 2005-06-21 Juri Linkov <juri@jurta.org>
9904 * dispextern.h: Add extern Qframe_set_background_mode.
9906 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
9907 Qframe_set_background_mode.
9909 * frame.c (Fmodify_frame_parameters):
9910 Call frame-set-background-mode after changing the background color
9911 on non-window non-dos branch.
9913 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
9915 * fns.c (Fchar_table_range):
9916 * process.c (Fmake_network_process): Fix spellings.
9918 2005-06-20 Kim F. Storm <storm@cua.dk>
9920 * fns.c (Fsort): Doc fix.
9922 2005-06-20 Miles Bader <miles@gnu.org>
9924 * xfaces.c (Qvertical_divider): New variable.
9925 (realize_basic_faces): Realize its face.
9926 (syms_of_xfaces): Initialize it.
9928 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
9930 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
9931 window-separator on ttys using `vertical-divider' face by default.
9933 2005-06-17 Richard M. Stallman <rms@gnu.org>
9935 * xdisp.c (get_next_display_element):
9936 Reverse test of Vshow_nonbreak_escape.
9938 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
9939 (Ftty_no_underline): New function.
9940 (syms_of_term): defsubr it.
9942 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
9944 * dispnew.c (spec_glyph_lookup_face): New function.
9945 (build_frame_matrix_from_leaf_window): Use it.
9947 * dispextern.h (spec_glyph_lookup_face): Add declaration.
9949 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
9951 2005-06-12 Richard M. Stallman <rms@gnu.org>
9953 * keyboard.c (read_char): After catching a longjmp,
9954 call restore_getcjmp.
9956 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
9958 * xselect.c (lisp_data_to_selection_data): Fix spelling.
9960 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9962 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
9963 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
9964 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
9966 (XTread_socket): Don't pass keyboard events with the option
9967 modifier to the system when Vmac_command_key_is_meta is nil or
9968 Vmac_option_modifier is non-nil.
9969 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
9970 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
9971 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
9973 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
9974 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
9975 handler part to mac_handle_mouse_event.
9977 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
9979 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
9980 NEW-ALIAS and BASE-VARIABLE, respectively.
9982 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9984 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
9985 (get_phys_cursor_geometry, format_mode_line_unwind_data)
9986 (get_line_height_property, x_produce_glyphs): Remove unused vars.
9988 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
9990 2005-06-13 Eli Zaretskii <eliz@gnu.org>
9992 * w32term.c (x_use_underline_position_properties): New variable.
9993 (x_draw_glyph_string): Remind in a comment to change doc string of
9994 x-use-underline-position-properties if/when underline positioning
9996 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
9997 and initialize it to nil.
9999 2005-06-12 Jason Rumney <jasonr@gnu.org>
10001 * w32fns.c (NEWOPENFILENAME): New struct.
10002 (Fx_file_dialog): Use it to trick the system into giving us up to
10003 date dialogs on systems that are documented to support it.
10004 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
10006 2005-06-12 Eli Zaretskii <eliz@gnu.org>
10008 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
10009 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
10011 2005-06-11 Eli Zaretskii <eliz@gnu.org>
10013 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
10014 to CreateDIBSection to avoid a compiler warning.
10015 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
10017 (png_load): Cast return values of fn_png_create_read_struct and
10018 fn_png_create_info_struct, to avoid compiler warnings on W32.
10019 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
10020 to avoid compiler warnings.
10021 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
10022 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
10023 avoid a compiler warning.
10024 (tiff_load): Cast return values of fn_TIFFOpen and
10025 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
10026 to IMAGE_BACKGROUND to avoid a compiler warning.
10027 (gif_load): Cast return values of fn_DGifOpenFileName and
10028 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
10029 IMAGE_BACKGROUND to avoid a compiler warning.
10030 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
10033 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
10034 the call to CreateDIBSection, to avoid a compiler warning.
10036 2005-06-11 Jason Rumney <jasonr@gnu.org>
10038 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
10040 * macfns.c (Fx_file_dialog): Likewise.
10042 2005-06-10 Eli Zaretskii <eliz@gnu.org>
10044 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
10046 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
10048 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
10049 * w32fns.c (syms_of_w32fns): Fix spellings.
10051 2005-06-10 Eli Zaretskii <eliz@gnu.org>
10053 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
10054 `verbose'; print diagnostic messages only if it is non-zero.
10055 All callers changed to pass a zero value unless DEBUG_DUMP is defined
10056 in the environment.
10057 (copy_executable_and_dump_data): Print section names with %.8s.
10059 2005-06-10 Masatake YAMATO <jet@gyve.org>
10061 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
10062 when mouse_face is not given.
10064 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
10066 * window.c (Fselect_window): Adapt call to Fselect_frame.
10068 * lisp.h: Update EXFUN of Fselect_frame.
10070 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
10072 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
10074 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
10075 Adapt to above change.
10077 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
10079 * fns.c (Fmemq, Fmaphash): Doc fixes.
10081 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
10083 * xfaces.c (Fdisplay_supports_face_attributes_p):
10084 Fix typo in docstring.
10086 2005-06-08 Steven Tamm <steventamm@mac.com>
10088 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
10089 used by gcc4 on intel mac.
10091 2005-06-09 Kim F. Storm <storm@cua.dk>
10093 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
10094 in REUSE list if non-nil; free them if equal to evaporate.
10095 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
10096 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
10097 (restore_search_regs): Rename from restore_match_data. Uses changed.
10098 (unwind_set_match_data): New function.
10099 (record_unwind_save_match_data): New function like save-match-data.
10101 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
10102 (record_unwind_save_match_data): Add prototype.
10103 (restore_search_regs): Rename from restore_match_data.
10105 * composite.c (compose_chars_in_text):
10106 * eval.c (do_autoload):
10107 * macmenu.c (set_frame_menubar):
10108 * process.c (read_process_output, exec_sentinel):
10109 * xmenu.c (set_frame_menubar):
10110 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
10111 * w32menu.c (set_frame_menubar):
10112 Use record_unwind_save_match_data.
10114 2005-06-08 Richard M. Stallman <rms@gnu.org>
10116 * xdisp.c (get_next_display_element): Alter previous change:
10117 Distinguish Vshow_nonbreak_escape = t or not t.
10118 For t, use escape_glyph once again, as before previous change.
10119 Use space or hyphen for display, instead of the non-ASCII char.
10120 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
10122 * process.c (Fstart_process): Don't touch command_channel_p slot.
10124 * process.h (struct process): Delete command_channel_p.
10126 2005-06-07 Masatake YAMATO <jet@gyve.org>
10128 * xdisp.c (note_mode_line_or_margin_highlight):
10129 Check the overlapping of re-rendering area to avoid flickering.
10130 (note_mouse_highlight): Call clear_mouse_face if PART
10131 is not ON_MODE_LINE nor ON_HEADER_LINE.
10133 2005-06-07 Kim F. Storm <storm@cua.dk>
10135 * process.c: Improve commentary for adaptive read buffering.
10137 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
10139 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
10142 2005-06-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10144 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
10145 New functions for popping down menus on C-g.
10146 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
10148 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
10151 * config.in: Add HAVE_CANCELMENUTRACKING.
10153 2005-06-06 Eli Zaretskii <eliz@gnu.org>
10155 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
10157 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
10159 * w32proc.c (RVA_TO_PTR): New macro.
10161 * w32heap.c (RVA_TO_PTR): No need to #undef now.
10163 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
10164 Depend on w32heap.h.
10166 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
10168 * keyboard.c (command_loop_1): Update Vthis_original_command.
10170 2005-06-06 Richard M. Stallman <rms@gnu.org>
10172 * xmenu.c (popup_get_selection): Undo previous change.
10174 2005-06-06 Juri Linkov <juri@jurta.org>
10176 * xdisp.c (Qno_break_space): New variable.
10177 (syms_of_xdisp): Initialize it.
10178 (get_next_display_element): Add no-break space and soft hypen
10179 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
10180 Use `no-break-space' face for no-break spaces.
10182 2005-06-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10184 * window.c (delete_window): Handle the case where a h/vchild has
10187 2005-06-05 Eli Zaretskii <eliz@gnu.org>
10189 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
10190 call to pfn_setsockopt, cast optval to `const char *'.
10192 2005-06-04 Eli Zaretskii <eliz@gnu.org>
10194 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
10195 (open_unc_volume): Cast return value of map_w32_filename, to avoid
10198 * s/ms-w32.h (fileno): Don't define if already defined.
10200 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
10202 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
10204 2005-06-04 Richard M. Stallman <rms@gnu.org>
10206 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
10208 2005-06-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10210 * macmenu.c (cleanup_popup_menu): New function.
10211 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
10212 mac_menu_show Quit:s.
10213 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
10216 2005-06-04 Kim F. Storm <storm@cua.dk>
10218 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
10220 * callproc.c (Fcall_process): Don't use alloca to gradually
10221 increase size of buf, as it effectively uses twice the necessary
10222 space on the stack. Instead, pre-allocate buf of full size, and
10223 gradually increase the read size.
10225 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
10227 * eval.c (unbind_to): Preserve value of Vquit_flag.
10229 * xterm.c (handle_one_xevent): Also ignore mouse motion just
10230 before a button release event.
10232 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
10234 * xfaces.c (Finternal_lisp_face_equal_p): Really report
10235 on faces in a frame, if the argument FRAME is non-nil.
10236 Improve argument/docstring consistency.
10238 2005-06-02 Kim F. Storm <storm@cua.dk>
10240 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
10241 (x_consider_frame_title, Fformat_mode_line): Save offset into
10242 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
10244 2005-06-01 Kim F. Storm <storm@cua.dk>
10246 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
10248 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10250 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
10251 resolution fields for scalable fonts to 0.
10253 * xfaces.c (build_scalable_font_name): Round pixel size to the
10256 2005-06-01 Kim F. Storm <storm@cua.dk>
10258 * xdisp.c (display_mode_line): Support nested calls to redisplay
10259 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
10261 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
10263 * fileio.c (Finsert_file_contents):
10264 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
10266 2005-05-31 Kim F. Storm <storm@cua.dk>
10268 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
10269 (mode_line_noprop_ptr): Rename from frame_title_*.
10270 (store_mode_line_noprop_char): Rename from store_frame_title_char.
10271 (store_mode_line_noprop): Rename from store_frame_title.
10272 (mode_line_target): New enum to specify current output target
10273 for mode line formatting.
10274 (display_mode_element): Test it rather than frame_title_ptr and
10275 mode_line_string_list to determine where output should go.
10276 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
10277 (Vmode_line_unwind_vector): New variable.
10278 (format_mode_line_unwind_data, unwind_format_mode_line):
10279 New functions for unwind protection in mode line formatting.
10280 (x_consider_frame_title): Use them and new local var 'title_start'
10281 to support nested calls to format-mode-line and redisplay.
10282 Set mode_line_target to MODE_LINE_TITLE.
10283 (Fformat_mode_line): Use them and new local var 'string_start' to
10284 support nested calls to format-mode-line and redisplay.
10285 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
10286 Don't trim trailing dashes.
10287 (decode_mode_spec): Don't make infinite number of trailing dashes
10288 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
10289 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
10290 mode_line_string_face_prop, and Vmode_line_unwind_vector.
10291 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
10292 Initialize mode_line_target to MODE_LINE_DISPLAY.
10294 2005-05-29 Richard M. Stallman <rms@gnu.org>
10296 * buffer.c (Fbuffer_local_value): Call indirect_variable.
10298 2005-05-28 Masatake YAMATO <jet@gyve.org>
10300 * xdisp.c (note_mode_line_or_margin_highlight): Change the
10301 pointer to a hand cursor when hoovering over a mouse-face.
10303 2005-05-27 Kenichi Handa <handa@m17n.org>
10305 * xterm.c (x_encode_char): Call check_ccl_update in advance.
10307 * ccl.c: Now an element of Vccl_program_table is a vector of
10309 (ccl_get_compiled_code): New arg idx. Caller changed.
10310 Adjust for the change of Vccl_program_table.
10311 (setup_ccl_program): Adjust for the change of Vccl_program_table.
10312 (check_ccl_update): New function.
10313 (Fregister_ccl_program): Use ASET to set an element of a vector.
10314 Adjusted for the change of Vccl_program_table.
10316 * ccl.h (struct ccl_program): New member idx.
10317 (check_ccl_update): Extern it.
10319 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
10321 * image.c (Vimage_library_alist): Move from image.el.
10322 (syms_of_image): Defvar it.
10323 (lookup_image_type): Use it.
10325 * buffer.c (Fbuffer_local_value): Make argument name match its use
10328 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
10330 * keyboard.c (Frecursive_edit): Fix typo in docstring.
10331 (Fposn_at_x_y): Make argument name match its use in docstring.
10333 2005-05-26 Lute Kamstra <lute@gnu.org>
10335 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
10337 2005-05-24 Masatake YAMATO <jet@gyve.org>
10339 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
10342 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
10344 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
10345 select frame title ("Question"/"Information").
10346 (xdialog_show): Use it.
10348 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
10350 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
10352 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
10353 a third argument (Qnil).
10355 * lisp.h: x-popup-dialog can have three arguments.
10357 * editfns.c (Fmessage_box): Use "Information" for frame title.
10359 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
10361 * termcap.c [VMS]: Include <starlet.h>.
10363 2005-05-23 Masatake YAMATO <jet@gyve.org>
10365 * xdisp.c (note_mode_line_or_margin_highlight): Add code
10366 for mouse-face. Change the type of the first argument from `window'
10368 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
10369 window instead of w.
10371 2005-05-22 Andreas Schwab <schwab@suse.de>
10373 * process.c (send_process): Move misplaced volatile.
10375 2005-05-21 Richard M. Stallman <rms@gnu.org>
10377 * xdisp.c (display_mode_element): If we're processing a list and
10378 padding is specified, put it after the last element.
10380 2005-05-21 Eli Zaretskii <eliz@gnu.org>
10382 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
10383 "superroot" on DOS_NT systems.
10385 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
10387 * process.c (send_process): Restore the SIGPIPE handler if we
10390 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
10392 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
10393 misleading comments).
10394 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
10396 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10398 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
10399 Correct the right value.
10401 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
10403 * keyboard.c (syms_of_keyboard): Remove Lisp variables
10404 post-command-idle-hook and post-command-idle-delay.
10405 (command_loop_1): Don't try to execute post-command-idle-hook.
10407 2005-05-16 Kim F. Storm <storm@cua.dk>
10409 * xdisp.c (handle_display_prop): Handle empty replacement.
10410 (handle_single_display_spec): Return -1 for empty replacement.
10412 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
10414 * .gdbinit (pitx): Print more info about iterator.
10416 2005-05-16 Andreas Schwab <schwab@suse.de>
10418 * unexmacosx.c (unexec_realloc): Move declarations before statements.
10420 2005-05-14 Richard M. Stallman <rms@gnu.org>
10422 * xdisp.c (message3): Call cancel_echoing.
10424 * alloc.c (Fmemory_full_p): New function.
10425 (syms_of_alloc): defsubr it.
10427 * process.c (send_process_trap): Unblock SIGPIPE.
10428 (send_process): Reset SIGPIPE handler before reporting error.
10430 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
10432 * emacs.c (syms_of_emacs): Fix doc string for system-type.
10434 2005-05-13 Richard M. Stallman <rms@gnu.org>
10436 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
10437 (Finsert_file_contents): If we read 0 bytes from a special file,
10438 unlock the visited file if we locked it.
10439 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
10440 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
10442 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10444 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
10446 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
10447 Regard toolkit scroll bar thumb drag events as squeezable and prevent
10448 redisplay from being paused by them.
10450 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
10451 [!MAC_OSX] (target_ticks): Remove variable.
10452 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
10453 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
10454 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
10455 event occurs before timeout, behave as if the function were interrupted.
10456 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
10457 handling using Time Manager routines.
10458 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
10460 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
10461 (setitimer): New functions.
10463 * macfns.c, macmenu.c: Don't include signal.h.
10465 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
10466 Rename from get_control_part_bound. All callers changed.
10467 (x_scroll_bar_clear): New function.
10468 (x_clear_frame): Use it.
10469 (XTset_vertical_scroll_bar): Don't call Draw1Control.
10470 (x_scroll_bar_handle_click): Change type of second argument from
10471 int to ControlPartCode.
10472 (check_alarm): Remove declaration.
10473 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
10474 (XTread_socket): Use ControlPartCode instead of SInt16.
10476 2005-05-13 Nozomu Ando <nand@mac.com>
10478 * unexmacosx.c: Include assert.h.
10479 (MACOSX_MALLOC_MULT16): New define.
10480 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
10481 ptr is in unexec regions by checking it is multiple of 16.
10482 (unexec_malloc_header_t): New typedef.
10483 (unexec_malloc, unexec_realloc, unexec_free): Store and use
10484 allocated size information in unexec_malloc_header.
10486 2005-05-10 Richard M. Stallman <rms@gnu.org>
10488 * xterm.c (noinclude): Add #undef.
10490 * image.c, xfns.c, xmenu.c: Don't include signal.h.
10492 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
10494 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
10495 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
10498 * dired.c (Ffile_name_completion): Make argument name
10499 match its use in docstring.
10501 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
10503 * eval.c (Fdefvaralias): Remove any pre-existing
10504 variable-documentation property of the alias.
10506 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
10508 * xfns.c (start_hourglass): Do nothing when running on a tty.
10510 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
10512 * fns.c (Fchar_table_range): Fix typos in docstring.
10514 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10516 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
10518 2005-05-06 Eli Zaretskii <eliz@gnu.org>
10520 * lread.c (Flocate_file_internal): Doc fix.
10522 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
10524 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10526 * macselect.c (x_own_selection): Accept Lisp string as result of
10527 selection converter function.
10528 (x_clear_frame_selections): Don't call x-lost-selection-functions
10529 if Emacs is not owner of the selection.
10530 (Vmac_services_selection): Put variable and initialization in
10532 (syms_of_macselect) [MAC_OSX]: Set default value of
10533 Vmac_services_selection to PRIMARY.
10535 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
10536 (mac_handle_tool_bar_click): Remove unused function and declaration.
10537 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
10538 (install_scroll_bar_timer, set_scroll_bar_timer)
10539 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
10540 (get_control_part_bound, x_scroll_bar_handle_press)
10541 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
10542 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
10543 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
10544 (scroll_bar_timer_event_posted_p): New variables.
10545 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
10546 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
10547 (x_scroll_bar_create): Set control reference with NewControl.
10548 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
10549 Initialize track_top and track_height to nil.
10550 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
10551 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
10552 (XTset_vertical_scroll_bar): Don't make space between scroll bar
10553 and associated window.
10554 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
10555 from window config.
10556 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10557 Set track_top and track_height to nil when scroll bar size is changed.
10558 Recalculate them if they are nil.
10559 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
10560 clicked control is a scroll bar.
10561 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
10562 event handler functions. Don't add modifiers to scroll bar click
10563 events. Call scroll bar release handler when window is deactivated.
10564 (mac_initialize): Remove unused code for X toolkit.
10565 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
10566 Initialize Vx_toolkit_scroll_bars to nil.
10568 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10569 New members track_top and track_height.
10571 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
10572 init_process when including sys/select.h.
10574 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
10576 * eval.c (Fdefvaralias): Doc fix.
10578 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
10580 2005-05-05 Kim F. Storm <storm@cua.dk>
10582 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
10584 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
10585 Fix type of cursor-in-non-selected-windows.
10587 2005-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10589 * mac.c: #undef init_process so not to conflict with system headers.
10591 2005-05-02 Richard M. Stallman <rms@gnu.org>
10593 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
10595 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
10597 * xdisp.c (Vcursor_in_non_selected_windows)
10598 (Qcursor_in_non_selected_windows): Vars deleted.
10599 (syms_of_xdisp): Don't initialize them.
10600 (get_window_cursor_type): Use cursor_in_non_selected_windows
10603 2005-05-02 Kim F. Storm <storm@cua.dk>
10605 * macros.c (executing_kbd_macro_index): Rename from
10606 executing_macro_index. All uses changed.
10607 (executing_kbd_macro_iterations): Rename from
10608 executing_macro_iterations. All uses changed.
10609 (executing_kbd_macro): Rename from executing_macro.
10611 (syms_of_macros): Rename Lisp var executing-macro-index to
10612 executing-kbd-macro-index.
10614 * xdisp.c (move_it_in_display_line_to): Fix last change.
10616 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
10618 * xmenu.c (Fx_popup_menu): Doc fix.
10620 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
10622 2005-05-02 Jason Rumney <jasonr@gnu.org>
10624 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
10626 2005-05-02 Nozomu Ando <nand@mac.com>
10628 * sysselect.h: Fix typo.
10630 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
10632 * charset.c (Fchars_in_region): Remove as obsolete.
10634 2005-05-01 Kim F. Storm <storm@cua.dk>
10636 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
10637 TO_CHARPOS. This may happen if last glyphs was an image or stretch
10640 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
10642 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
10644 2005-05-01 Richard M. Stallman <rms@gnu.org>
10646 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
10647 If user cancels the menu, quit unless FOR_CLICK.
10649 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
10651 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
10652 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
10653 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
10654 * commands.h (Vexecuting_kbd_macro): Likewise.
10656 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
10658 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
10660 2005-04-30 Richard M. Stallman <rms@gnu.org>
10662 * fileio.c (Ffind_file_name_handler): Handle the `operations'
10663 property of the file name handler.
10664 (Qoperations): New variable.
10665 (syms_of_fileio): Initialize and staticpro it.
10667 * xdisp.c (set_message_1): Delete xassert.
10669 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10671 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
10673 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
10675 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
10676 before/after including Carbon.h if there is a working mktime.
10678 2005-04-28 Kim F. Storm <storm@cua.dk>
10680 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
10681 Fix cyclic alias check. If alias loop is detected, signal
10682 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
10684 2005-04-28 Lute Kamstra <lute@gnu.org>
10686 * eval.c (do_autoload): Record only autoloads in the autoload
10687 property of symbols.
10689 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
10691 * emacs.c (USAGE1): Add --basic-display and --quick options.
10693 2005-04-27 Kim F. Storm <storm@cua.dk>
10695 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
10697 2005-04-26 Richard M. Stallman <rms@gnu.org>
10699 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
10700 (syms_of_window): Doc fixes.
10702 * indent.c (Fvertical_motion): Undo previous change.
10704 2005-04-26 Kenichi Handa <handa@m17n.org>
10706 * fns.c (char_table_range): New function.
10707 (Fchar_table_range): Signal an error if characters in the range
10708 have inconsistent values. Don't check the parent.
10710 2005-04-25 Kenichi Handa <handa@m17n.org>
10712 * fontset.c (fontset_set): Fix previous change.
10714 2005-04-24 Richard M. Stallman <rms@gnu.org>
10716 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
10718 2005-04-24 Eli Zaretskii <eliz@gnu.org>
10720 * regex.c (re_search_2, re_match_2_internal): Convert second arg
10721 of RE_TRANSLATE to int, to shut up GCC warnings.
10723 * fileio.c (Fcopy_file): Doc fix.
10724 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
10727 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10729 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
10730 (SOME_MACHINE_OBJECTS): Likewise.
10731 (mac.o): Depend on ccl.h.
10732 (macselect.o): New target.
10734 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
10735 Call syms_of_macselect.
10737 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
10739 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
10740 (QCLIPBOARD): Remove variable.
10741 (syms_of_mac): Don't initialize it.
10742 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
10744 (syms_of_mac): Don't defsubr them.
10745 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
10746 (QHFS_plus_D, QHFS_plus_C): New variables.
10747 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
10748 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
10749 (cfstring_create_normalized): New functions.
10750 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
10751 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
10753 * macterm.c (handling_window_update, terminate_flag):
10755 (do_window_update, do_ae_quit_application, XTread_socket):
10757 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
10758 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
10759 (init_service_handler): Move to macselect.c. Remove declarations.
10760 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
10761 (Qapplication, Qabout): New variables.
10762 (syms_of_mac): Initialize them.
10763 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
10764 (Qperform): New variables.
10765 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
10766 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
10767 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
10768 (mac_store_application_menu_event, init_menu_bar): New functions.
10769 [USE_CARBON_EVENTS] (mac_handle_command_event)
10770 (init_command_handler): New functions.
10771 (mac_handle_window_event): Return noErr on window update event.
10772 (do_ae_quit_application): Call mac_store_application_menu_event.
10773 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
10776 * macterm.h (x_clear_frame_selections): Add extern.
10778 * macselect.c: New file for selection processing on Mac OS.
10780 2005-04-23 Richard M. Stallman <rms@gnu.org>
10782 * fileio.c (Fcopy_file): New arg MUSTBENEW.
10783 (Frename_file): Pass new arg to Fcopy_file.
10785 * window.c (window_size_fixed): Variable deleted.
10786 (syms_of_window): Initialize window-size-fixed to nil.
10787 But don't DEFVAR window_size_fixed.
10789 2005-04-23 Andreas Schwab <schwab@suse.de>
10791 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
10792 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
10793 use lib64 instead of lib.
10794 (_LP64) [_ARCH_PPC64]: Define if not defined.
10796 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
10798 * s/ms-w32.h (HAVE_PWD_H): Define.
10800 2005-04-22 Kenichi Handa <handa@m17n.org>
10802 * fns.c (copy_sub_char_table): Explicitly copy the default value
10803 of the sub-chartable.
10805 * fontset.c (fontset_set): When a sub-chartable is created,
10806 explicitly sets the defalt value.
10808 2005-04-22 Kim F. Storm <storm@cua.dk>
10810 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
10811 (Fsafe_plist_get): Rename to Fplist_get.
10812 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
10813 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
10815 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
10817 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
10818 (note_mode_line_or_margin_highlight, note_mouse_highlight):
10819 Use Fplist_get instead of Fsafe_plist_get.
10821 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
10823 2005-04-21 Miles Bader <miles@gnu.org>
10825 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
10827 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
10829 * sysdep.c: Remove reference to defunct vms-pwd.h.
10830 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
10831 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
10833 * config.in: Regenerate.
10835 2005-04-20 Kenichi Handa <handa@m17n.org>
10837 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
10838 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
10839 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
10841 * alloc.c (make_sub_char_table): Argument changed to initial
10842 value of the slots.
10844 * data.c (Faref): Handle special slots used as default values of
10845 ascii, eight-bit-control, eight-bit-control. Don't ignore a
10846 default value set for a group of characters.
10847 (Faset): Signal an error if IDXVAL is not a valid character code.
10848 Make a sub-chartable with correct initial value.
10850 * fns.c (Fset_char_table_range): Don't set slots used as default
10851 values for ascii, eight-bit-control, eight-bit-graphic.
10852 Don't call Faref with charset-id.
10853 (Fset_char_table_default): Document how to treat normal character
10854 argument. Handle special slots used as default values of ascii,
10855 eight-bit-control, eight-bit-control. Make a sub chartable if
10858 2005-04-20 Kenichi Handa <handa@m17n.org>
10860 * search.c (boyer_moore): Fix previous change.
10862 2005-04-19 Kim F. Storm <storm@cua.dk>
10864 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
10865 face unless last visible char and first invisible char have the
10866 same face. Also use default face if saved_face_id is undefined.
10868 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10870 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
10872 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
10873 mac_scriptcode member.
10875 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
10876 (syms_of_mac): Don't initialize them.
10877 (Vmac_charset_info_alist): New variable.
10878 (syms_of_mac): Defvar it.
10879 (create_text_encoding_info_alist): New function.
10880 (decode_mac_font_name, mac_to_x_fontname)
10881 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
10882 code the correspondence among XLFD charsets, Mac script codes, and
10883 Emacs coding systems. Use Vmac_charset_info_alist and result of
10884 create_text_encoding_info_alist instead.
10885 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
10886 routines also on Mac OS Classic.
10887 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
10888 Use add_font_name_table_entry.
10889 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
10890 specified. Derive unspecified scalable fields from specified one.
10891 (x_list_fonts): Consider Valternate_fontname_alist.
10892 (kDefaultFontSize): Change value from 9 to 12.
10893 (XLoadQueryFont): Get decoded font family, font face, and charset
10894 from x_font_name_to_mac_font_name. Set full name of loaded font.
10895 (mac_unload_font): Free `full_name' member.
10896 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
10897 NULL. Copy full_name member of struct MacFontStruct to that of
10900 2005-04-19 Kim F. Storm <storm@cua.dk>
10902 * xdisp.c (handle_stop): Set saved_face_id to current face if
10903 selective_display_ellipsis_p so ellipsis will be shown in same
10904 face as preceding text.
10905 (setup_for_ellipsis): Don't set saved_face_id here.
10906 (next_element_from_display_vector): Default to saved_face_id.
10908 * fns.c (Fsafe_get): New function.
10909 (syms_of_fns): Defsubr it.
10911 * lisp.h (Fsafe_get): EXFUN it.
10913 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
10914 loops in case of bad face property lists. Limit number of face
10915 alias lookups to 10 (in case of face alias loops).
10917 2005-04-18 Kim F. Storm <storm@cua.dk>
10919 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
10920 It replaces the corresponding member from struct window, as a
10921 window may now show multiple overlay arrows.
10922 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
10924 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
10925 Compare overlay_arrow_bitmap than overlay_arrow_p members.
10927 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
10928 rather than from window.
10929 (update_window_fringes): Compare overlay_arrow_bitmap rather than
10930 overlay_arrow_p members.
10931 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
10934 * window.h (struct window): Remove member overlay_arrow_bitmap.
10936 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
10938 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
10939 Calls changed. Don't check for overlay-arrow-bitmap property here.
10940 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
10941 fringe is present, return Lisp integer for bitmap (or -1 for default).
10942 Fix value of overlay-arrow-bitmap property to be a symbol, use
10943 lookup_fringe_bitmap to parse it.
10944 (display_line): Change call to overlay_arrow_at_row. Store integer
10945 return value as overlay bitmap in row rather than window.
10946 Only show overlay arrow if row displays text, or if no other overlay
10947 arrow is seen in window (if overlay marker is at point-max).
10949 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
10951 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
10953 2005-04-18 Lute Kamstra <lute@gnu.org>
10955 * lread.c (Vloads_in_progress): Static.
10956 * fns.c (Vloads_in_progress): Remove extern.
10957 (load_in_progress): Add extern.
10958 (Frequire): Use load_in_progress instead of Vloads_in_progress.
10960 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
10962 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
10964 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10966 * macterm.c (XTread_socket): Don't beep on keyboard input even if
10967 no frame is visible.
10969 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10971 * term.c (struct keys): Add support for shifted keys.
10973 2005-04-16 Richard M. Stallman <rms@gnu.org>
10975 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
10976 (set_message): Call with_echo_area_buffer with WHICH = 0.
10977 (set_message_1): Erase the echo area buffer first thing.
10978 (echo_area_display): Don't clear echo_message_buffer.
10980 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10982 * Makefile.in (mac.o): Depend on charset.h and coding.h.
10984 * mac.c: Include charset.h and coding.h.
10985 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
10986 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
10987 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
10989 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
10991 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
10993 * macterm.c (x_autoselect_window_p): Remove variable.
10994 (last_window): New variable.
10995 (XTreassert_line_highlight, x_change_line_highlight):
10996 Remove declarations.
10997 (mac_focus_changed, x_detect_focus_change): New functions and
10999 (XTextExtents16, front_emacs_window): Remove function.
11000 (mac_focus_frame): New function.
11001 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
11002 (mac_check_for_quit_char): Use it instead of front_emacs_window.
11003 (x_scroll_bar_report_motion): Obtain window from control owner.
11004 (x_make_frame_invisible): Set window manager size hint.
11005 (do_mouse_moved): Remove function.
11006 (XTread_socket): Move its contents here. Generate select-window
11007 event on mouse movement if needed. Use x_detect_focus_change on
11008 activate/deactivate events. Don't deiconify frame or invalidate
11009 window rectangle when dnd items are dropped.
11010 Don't activate/deactivate root control.
11011 (frame_highlight, frame_unhighlight): Activate/deactivate root
11013 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
11015 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
11018 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
11020 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
11022 (SOME_MACHINE_LISP): Add tooltip.
11024 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11026 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
11027 Don't include TextEncodingConverter.h.
11028 (mac_system_script_code, Vmac_system_locale): New variables.
11029 (syms_of_mac): Defvar them.
11030 (mac_get_system_locale): New function.
11032 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
11033 Use ENCODE_SYSTEM to encode title bar string.
11034 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
11035 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
11036 Use CFStringGetSystemEncoding to get system default string encoding.
11038 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
11039 TextEncodingConverter.h.
11041 2005-04-13 Steven Tamm <steventamm@mac.com>
11043 * macterm.c (syms_of_macterm): Remove redundant definition of
11044 mac-pass-control-to-system.
11046 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11048 * window.c (Fset_window_configuration): Be careful when you choose
11049 among several possible points for the new_current_buffer.
11051 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11053 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
11054 poll_for_input_1. Set interrupt_input_pending to 1 instead.
11055 (Qlanguage_change) [MAC_OS]: New variable.
11056 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
11057 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
11059 * macterm.c (mac_keyboard_text_encoding)
11060 (current_mac_keyboard_text_encoding): Remove variables.
11061 (XTread_socket): Store language-change event if keyboard script change
11062 is detected. Don't convert input to `mac_keyboard_text_encoding'.
11063 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
11065 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
11067 2005-04-10 Richard M. Stallman <rms@gnu.org>
11069 * emacs.c (standard_args): Rename --bare-bones to --quick.
11070 Add -D aka --basic-display.
11072 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
11074 2005-04-09 Richard M. Stallman <rms@gnu.org>
11076 * keymap.c (where_is_internal): Convert a string used as event type
11077 into "(any string)".
11079 * lread.c (Vloads_in_progress): Not static.
11080 * fns.c (Vloads_in_progress): Add extern.
11081 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
11083 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
11085 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
11087 2005-04-09 Lute Kamstra <lute@gnu.org>
11089 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
11090 within the accessible part of the buffer.
11092 2005-04-09 Kim F. Storm <storm@cua.dk>
11094 * lread.c (readevalloop): Add args START and END as region in
11095 current buffer to read. Callers changed.
11096 When specified, narrow to this region only when reading,
11097 not during eval. Track next point to read from during eval.
11098 Also restore point to "real" buffer position before eval.
11099 (Feval_region): Don't save excursion and restriction here, and
11100 don't narrow to region. Just pass region to readevalloop.
11101 Note: Point is now preserved even when PRINTFLAG is nil.
11103 2005-04-08 Kim F. Storm <storm@cua.dk>
11105 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
11107 2005-04-06 Kim F. Storm <storm@cua.dk>
11109 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
11111 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11113 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
11114 (Fmac_get_preference): Doc fix.
11116 * macfns.c (Fx_create_frame, x_create_tip_frame):
11117 Add "fontset-mac" to fallback font/fontsets.
11119 2005-04-04 Kim F. Storm <storm@cua.dk>
11121 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
11123 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
11124 Call it again after autoload.
11126 2005-04-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11128 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
11131 * ralloc.c (r_alloc_init): Ditto.
11133 2005-04-01 Kenichi Handa <handa@m17n.org>
11135 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
11136 (Vascii_eqv_table): Extern them.
11138 * casetab.c (set_case_table): If standard is nonzero, setup
11139 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
11141 * search.c (looking_at_1): Use current_buffer->case_canon_table,
11142 not DOWNCASE_TABLE.
11143 (string_match_1): Likewise.
11144 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
11145 Vascii_downcase_table.
11146 (fast_string_match_ignore_case): Likewise.
11147 (search_buffer): Fix checking of boyer-moore usability.
11148 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
11149 No need of tranlating characters in PAT. Fix calculation of
11152 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
11154 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
11155 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
11156 Use XtNtopShadowPixel and XtNbottomShadowPixel.
11157 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
11158 really work and that breaks with some versions of Xaw3d.
11160 2005-03-31 Kenichi Handa <handa@m17n.org>
11162 * coding.c (syms_of_coding): Fix previous change.
11164 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
11166 * fileio.c (search_embedded_absfilename): Fix last change.
11168 2005-03-25 Kenichi Handa <handa@m17n.org>
11170 * coding.c (syms_of_coding): Suggest to use set-coding-category in
11171 the docstring of coding-category-list.
11173 2005-03-31 Kim F. Storm <storm@cua.dk>
11175 * keyboard.c (Qmouse_fixup_help_message): New var.
11176 (syms_of_keyboard): Intern and staticpro it.
11177 (show_help_echo): Apply mouse-fixup-help-message to help string.
11179 2005-03-30 Kim F. Storm <storm@cua.dk>
11181 * xdisp.c (display_line): Allow multiple overlay arrows in window.
11183 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
11185 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
11186 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
11187 (Ffile_name_absolute_p): Use it.
11188 (search_embedded_absfilename): New fun, extracted from
11189 Fsubstitute_in_file_name. Use file_name_absolute_p.
11190 Free the pw data after use.
11191 (Fsubstitute_in_file_name): Use it.
11192 After cutting a prefix, re-check file-name-handler.
11194 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
11196 * w32term.h (x_output): Add focus_state.
11198 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
11199 (w32_read_socket) <WM_SETFOCUS>: Call w32_detect_focus_change.
11201 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11203 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
11204 Use Fexit_minibuffer.
11205 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
11207 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11209 * dired.c (Ffile_attributes): Add a missing gcpro.
11211 * alloc.c (make_number): The arg can be bigger than `int'.
11212 * lisp.h (make_number): Make prototype more precise.
11214 * process.c, dired.c (Vfile_name_coding_system)
11215 (Vdefault_file_name_coding_system):
11216 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
11217 (Vdefault_file_name_coding_system): Remove unused declarations.
11219 2005-03-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11221 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
11222 if it failed to pop up (Gnome "show pointer on ctrl" option makes
11223 menus fail to pop up).
11225 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11227 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
11228 Just prepend a backslash without replacing the NBSP by an SPC.
11230 2005-03-22 Kim F. Storm <storm@cua.dk>
11232 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
11233 * dispextern.h (lookup_derived_face): Fix prototype.
11234 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
11236 * xdisp.c (handle_single_display_spec): Derive left-fringe and
11237 right-fringe face from fringe face.
11239 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
11240 Derive face from fringe face.
11242 2005-03-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11244 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
11246 2005-03-22 David Kastrup <dak@gnu.org>
11248 * textprop.c (Fnext_char_property_change)
11249 (Fprevious_char_property_change): Allow marker as limit.
11250 (Fnext_single_char_property_change)
11251 (Fprevious_single_char_property_change): Check that limit is a
11253 (Fnext_single_char_property_change): Coerce position to integer.
11254 (Fprevious_single_char_property_change): Same here.
11256 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
11258 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
11260 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11262 * frame.c (Fignore_event): Remove.
11263 (syms_of_frame): Don't defsubr it.
11265 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
11266 redundant `ignore-event'.
11268 2005-03-19 Eli Zaretskii <eliz@gnu.org>
11270 * unexec.c (write_segment, unexec): Move these functions to avoid
11271 forward references (which cause errors with "gcc -gcoff").
11273 2005-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11275 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
11276 that it doesn't become "tooltip". The specbind is enough.
11278 * xrdb.c (x_load_resources): Use different char *helv when I18N
11281 2005-03-17 Kenichi Handa <handa@m17n.org>
11283 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
11285 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11287 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
11288 Use xic_create_fontsetname even for non-Motif menus.
11289 Don't forget to free the fontsetname.
11291 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
11293 2005-03-17 Richard M. Stallman <rms@gnu.org>
11295 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
11297 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
11298 (Fmake_symbolic_link): Use G to read the new file name.
11300 * callint.c (Finteractive): Document G option.
11301 (Fcall_interactively): Implement G option.
11303 * buffer.c (buffer_lisp_local_variables): New function,
11304 broken out from Fbuffer_local_variables.
11305 (clone_per_buffer_values): Use buffer_lisp_local_variables.
11307 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11309 * xfns.c (xic_create_fontsetname): Add `motif' argument.
11310 Always return a freshly allocated string.
11311 (xic_create_xfontset): Adjust call.
11313 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
11314 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
11315 (dump_realized_face): Fix warning.
11317 * emacs.c (Fkill_emacs): YAILOM.
11319 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
11321 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11323 * mac.c (HASHKEY_TERMINAL): Remove.
11324 (HASHKEY_MAX_NID): New macro.
11325 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
11327 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
11328 (xrm_create_database, xrm_q_put_resource)
11329 (xrm_merge_string_database, xrm_q_get_resource_1)
11330 (xrm_q_get_resource): Change resource database representation so
11331 that it may not use multiple hash tables for a single database.
11332 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
11334 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
11336 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
11338 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
11339 locale-coding-system, as was already done for WINDOWSNT.
11341 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
11342 translation for chars in the 0-255 range.
11344 2005-03-16 Lute Kamstra <lute@gnu.org>
11346 * floatfns.c (Ffloor): Doc fix.
11348 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11350 * mac.c: Include macterm.h instead of directly including Carbon.h.
11351 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
11352 (Qarray, Qdictionary): New variables.
11353 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
11354 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
11355 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
11356 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
11357 in callback for CFDictionaryApplyFunction.
11358 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
11359 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
11360 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
11361 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
11362 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
11363 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
11364 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
11365 (skip_white_space, parse_comment, parse_include_file)
11366 (parse_binding, parse_component, parse_resource_name, parse_value)
11367 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
11368 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
11369 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
11372 * macfns.c (mac_get_rdb_resource): Remove function.
11373 (x_get_string_resource): Use xrm_get_resource.
11375 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
11377 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
11379 (mac_make_rdb): Create resource database from preferences and
11381 (mac_term_init): Save resource database to cddr part of
11384 * macterm.h (xrm_merge_string_database, xrm_get_resource)
11385 (xrm_get_preference_database): Add externs.
11386 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
11387 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
11388 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
11390 * process.c (init_process): Change `#ifdef DARWIN' to `#if
11391 defined (DARWIN) || defined (MAC_OSX)'
11393 * s/darwin.h (DARWIN): Don't define.
11395 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11397 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
11398 Remove unused variables.
11399 (syms_of_macfns): Don't initialize them. Likewise for
11400 Qface_set_after_frame_default. Defvar and initialize
11401 Vx_window_horizontal_drag_shape.
11402 (x_set_mouse_color): Change mouse pointer shape.
11403 (mac_window) [!MAC_OSX]: Create root control.
11404 (Fx_create_frame): Remove initializations of mouse pointer shapes.
11405 (hourglass_started): New function (from xfns.c).
11406 (start_hourglass, cancel_hourglass): Put function body in #ifdef
11408 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
11409 indicator for each non-tooltip frame if needed, and show it.
11410 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
11412 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
11413 Controls.h. Use ThemeCursor instead of CursHandle.
11415 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
11416 Remove functions and declarations.
11417 (mac_set_colors): Take argument for saving background color.
11418 All callers changed.
11419 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
11420 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
11422 (x_update_end, mac_do_track_drag): Don't reset background color.
11423 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
11424 Use SetThemeCursor.
11425 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
11426 indicator control to the upper-right corner of the window.
11427 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
11428 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
11429 (do_window_update): Update controls after updating content area.
11430 (mac_handle_window_event): Remove unused extern.
11431 (XTread_socket): Check both control handle and control part code
11432 to determine whether a scroll bar is clicked. Activate/deactivate
11433 root control instead of contained scroll bar controls.
11434 (make_mac_terminal_frame): Use ThemeCursor constants.
11436 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
11437 New member hourglass_control.
11438 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
11439 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
11441 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11443 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
11444 coincides with that in Apple X11 except `clear', `enter' on
11445 laptops, and fn + `enter' on laptops.
11447 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11449 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
11450 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
11451 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
11453 * xfns.c (xic_defaut_fontset): New constant.
11454 (xic_create_fontsetname): New function.
11455 Extracted from create_frame_xic. Try to generate a slightly
11457 (xic_create_xfontset): Use it.
11458 (create_frame_xic): Simplify.
11460 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
11462 * fileio.c (Fmake_symbolic_link): Fix last change.
11464 2005-03-11 Richard M. Stallman <rms@gnu.org>
11466 * fileio.c (Frename_file, Fadd_name_to_file)
11467 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
11468 expand the basename of FILE relative to it.
11470 2005-03-11 Kenichi Handa <handa@m17n.org>
11472 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
11473 before calling setup_coding_system so that autoloading of a coding
11476 2005-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11478 * xfns.c (hourglass_started): New function.
11480 * dispextern.h: Declare hourglass_started.
11482 * keyboard.c (Fexecute_extended_command): Restart hourglass
11483 after call to Fcompleting_read if already started.
11485 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
11486 GTK main loop is entered in xterm.c, thus doing the redraw.
11488 2005-03-10 Kim F. Storm <storm@cua.dk>
11490 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
11492 2005-03-08 Kenichi Handa <handa@m17n.org>
11494 * frame.c (x_set_font): Call set_default_ascii_font if an
11495 available font is found.
11497 * fontset.c (set_default_ascii_font): New function.
11498 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
11500 * fontset.h (set_default_ascii_font): Extern it.
11502 2005-03-07 Kim F. Storm <storm@cua.dk>
11504 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
11505 (clear_image_cache_count): New var.
11506 (redisplay_internal): Don't clear face and image caches in the
11507 middle of redisplay; do it afterwards.
11509 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
11511 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
11512 is valid. If not, clear phys_cursor_on_p and return.
11514 2005-03-07 Andreas Schwab <schwab@suse.de>
11516 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
11518 2005-03-06 Richard M. Stallman <rms@gnu.org>
11520 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
11522 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
11523 (Feval, Ffuncall): Use CHECK_CONS_LIST.
11525 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
11527 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
11528 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
11530 2005-03-05 Juri Linkov <juri@jurta.org>
11532 * emacs.c (USAGE1): Replace Info node name "command arguments"
11533 with "emacs invocation".
11534 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
11535 allow arguments `--color' and `MODE' to be separated by space.
11536 Add --no-blinking-cursor, -nbc.
11537 (standard_args): Add -nbc, --no-blinking-cursor.
11539 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
11541 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
11542 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
11543 * fileio.c (Fexpand_file_name) [VMS]:
11544 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
11545 * doc.c (munge_doc_file_name) [VMS]: Likewise.
11546 (Fsnarf_documentation): Call munge_doc_file_name.
11548 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
11550 * s/vms.h (FILE_SYSTEM_CASE): New macro.
11551 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
11552 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
11554 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11556 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
11557 defined (MAC_OSX) && defined (HAVE_CARBON)'.
11559 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
11561 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
11562 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
11563 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
11564 (mac_clear_font_name_table): Move extern to macterm.h.
11566 * macfns.c (install_window_handler): Move extern to macterm.h.
11567 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
11568 valid. Don't check !NILP (dir) because it is already checked with
11570 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
11571 specifying the default location and obtaining the selected filename.
11573 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
11575 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
11576 are included via Carbon.h.
11578 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
11579 Define USE_CARBON_EVENTS to 1.
11580 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
11581 (x_free_frame_resources): Call remove_window_handler for
11582 non-tooltip windows.
11583 [TARGET_API_MAC_CARBON]: Don't include headers that are included
11585 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
11586 (mac_do_receive_dragUPP): New variables.
11587 (mac_handle_service_event, init_service_handler): Put declarations
11588 and definitions in #ifdef MAC_OSX.
11589 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
11590 drag-and-drop handler functions and register them.
11591 (remove_window_handler): New function.
11592 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
11593 Use fsspec_to_posix_pathname.
11594 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
11595 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
11596 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
11597 Set default cursors.
11598 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX]: Don't call
11599 init_service_handler or init_quit_char_handler.
11600 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
11602 * macterm.h (install_window_handler, remove_window_handler)
11603 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
11604 (mac_clear_font_name_table): New externs.
11606 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
11608 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
11609 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
11610 (Fexpand_file_name): Likewise.
11612 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
11614 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
11615 no longer special-case VMS. Add bogus return value.
11617 2005-03-02 Kim F. Storm <storm@cua.dk>
11619 * dispextern.h (XASSERTS): Define to 0 if not already defined.
11620 (xassert) [!XASSERTS]: Define dummy version.
11622 2005-03-02 Kim F. Storm <storm@cua.dk>
11624 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
11625 Reported by David Kastrup.
11627 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
11629 * xdisp.c (get_next_display_element): Fix control and escape
11630 glyph from display vector.
11632 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
11634 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
11636 2005-02-27 Richard M. Stallman <rms@gnu.org>
11638 * xdisp.c (fast_find_position): Rename END to BEG.
11639 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
11641 2005-02-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11643 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
11644 gtk_window_resize and x_wm_set_size_hint.
11646 2005-02-25 Kim F. Storm <storm@cua.dk>
11648 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
11650 * xdisp.c (init_from_display_pos): Don't read past end of
11651 it->overlay_strings array.
11653 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
11655 * buffer.c (syms_of_buffer): Fix typo.
11657 2005-02-23 Lute Kamstra <lute@gnu.org>
11659 * buffer.c (Foverlay_buffer): Doc fix.
11661 2005-02-22 Kim F. Storm <storm@cua.dk>
11663 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
11664 and symbol keys in alists and hash tables.
11666 * xdisp.c (fast_find_position): Fix search for start of overlay.
11668 2005-02-21 Kim F. Storm <storm@cua.dk>
11670 * window.c (window_scroll_pixel_based): When scrolling backwards,
11671 handle partial visible line at end of window even when we hit PT.
11673 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11675 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
11677 2005-02-21 Kim F. Storm <storm@cua.dk>
11679 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
11680 I think those asserts are bogus if buffer contains invisible text
11683 2005-02-21 David Kastrup <dak@gnu.org>
11685 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
11687 2005-02-20 Kim F. Storm <storm@cua.dk>
11689 * xdisp.c (pos_visible_p): Be sure to move to the specified
11690 position. Always get the full ascent / descent of the
11691 corresponding row, to return reliable rtop and rbot values.
11692 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
11693 Must look one character back, as back_to_previous_line_start
11694 returns position after the newline.
11695 (move_it_vertically_backward): Fix heuristic for when to move further
11696 back in case line_height * 2/3 is larger than window height.
11697 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
11698 as it does not do anything anymore. Add arg current_matrix_p to
11699 use current matrix rather than desired matrix when set.
11700 (try_cursor_movement): Don't scroll to make cursor row fully
11701 visible if cursor didn't move. This avoids unexpected recentering
11702 in case of blinking cursor or accepting process output.
11703 Use current matrix to check cursor row visibility.
11704 (redisplay_window): Fix whether to recenter or move to top in case
11705 cursor line is taller than window height.
11706 (find_first_unchanged_at_end_row): Stop search if we reach a row
11707 which not enabled (instead of abort).
11709 2005-02-18 Kim F. Storm <storm@cua.dk>
11711 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
11712 to be nil in a :box attribute value list; customize prints that
11713 as lisp value when no box color is specified.
11715 * .gdbinit (pitx, pit): Pretty print display iterator.
11716 (prowx, prow): Pretty print glyph row.
11717 (pcursorx, pcursor): Pretty print a window cursor.
11718 (pwinx, pwin): Pretty print struct window.
11720 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11722 * alloc.c (BLOCK_BYTES): Harmless typo.
11724 2005-02-17 Andreas Schwab <schwab@suse.de>
11726 * xfns.c (hack_wm_protocols): Use correct type for last parameter
11727 of XGetWindowProperty to avoid aliasing issues.
11728 (Fx_window_property): Likewise.
11730 * xselect.c (Fx_disown_selection_internal): Use union of struct
11731 input_event and struct selection_input_event to avoid aliasing issues.
11733 * xterm.c (handle_one_xevent): Use union of struct input_event and
11734 struct selection_input_event to avoid aliasing issues.
11735 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
11737 2005-02-17 Kim F. Storm <storm@cua.dk>
11739 * dispextern.h (enum it_method): New enum.
11740 (GET_FROM_*): Its members.
11741 (struct it): Change member method from function pointer to enum.
11743 * xdisp.c (check_it, init_from_display_pos, handle_stop)
11744 (setup_for_ellipsis, handle_single_display_spec)
11745 (handle_composition_prop, next_overlay_string)
11746 (get_overlay_strings, reseat_1, reseat_to_string)
11747 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
11748 (in_display_vector_p, display_line, get_next_display_element):
11749 Change it->method from function pointer to enum.
11750 (get_next_element): New array to map it->method to function.
11751 (get_next_display_element): Use it.
11752 (set_iterator_to_next): Use switch instead of if/else chain.
11754 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
11756 * w32select.c: Summary: Thorough rework to implement Unicode
11757 clipboard operations and delayed rendering.
11759 Drop last_clipboard_text and related code, keep track of
11760 ownership via clipboard_owner instead. Drop old #if0 sections.
11762 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
11763 (clipboard_owner, modifying_clipboard, cfg_coding_system)
11764 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
11765 (current_coding_system, current_requires_encoding)
11766 (current_num_nls, current_clipboard_type, current_lcid):
11767 New static variables.
11769 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
11770 (render, render_all, run_protected, lisp_error_handler)
11771 (owner_callback, create_owner, setup_config)
11772 (enum_locale_callback, cp_from_locale, coding_from_cp):
11773 New local functions.
11775 (term_w32select, globals_of_w32select): New global functions.
11777 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
11778 clipboard_owner instead. Use delayed rendering and provide
11779 all text formats. Provide CF_LOCALE if necessary.
11781 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
11782 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
11783 available. Force DOS line-ends for decoding.
11785 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
11787 (syms_of_w32select): Init and register new variables.
11789 * w32.h: Add prototypes for globals_of_w32select and
11790 term_w32select. Make the neighboring K&R declarations into
11793 * emacs.c: Include w32.h to get function prototypes.
11794 (main): Call globals_of_w32select.
11796 * w32.c (term_ntproc): Call term_w32select.
11798 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
11800 2005-02-16 Kim F. Storm <storm@cua.dk>
11802 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
11803 at end of display vector.
11805 2005-02-15 Richard M. Stallman <rms@gnu.org>
11807 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
11808 for mode and header lines.
11810 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
11812 * keymap.h (describe_map_tree): Change decl.
11814 * keyboard.c (command_loop_1): Always use safe_run_hooks
11815 to run Qdeferred_action_function.
11817 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
11818 (describe_map, describe_vector): Likewise. When it's 1,
11819 don't omit shadowed bindings, instead mark them as shadowed.
11821 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
11822 for describe_map_tree. Pass 1 for MENTION_SHADOW.
11824 * data.c (Fsetq_default): Allow no arg case.
11826 2005-02-14 Kenichi Handa <handa@m17n.org>
11828 * coding.c (encode_coding_string): Always return a unibyte string.
11829 If NOCOPY is nonzero and there's no need of encoding, make STR
11832 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
11833 multibyte string, signal an error instead of aborting.
11835 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
11837 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
11839 2005-02-12 Kim F. Storm <storm@cua.dk>
11841 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
11843 2005-02-10 Kim F. Storm <storm@cua.dk>
11845 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
11846 if it moves outside window or it doesn't display text.
11848 2005-02-09 Kim F. Storm <storm@cua.dk>
11850 * undo.c (Fprimitive_undo): Check that undo function does not
11853 2005-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11855 * xselect.c (selection_data_to_lisp_data): For the special case
11856 type == XA_ATOM, data contains array of int, not array of Atom.
11857 (x_property_data_to_lisp, selection_data_to_lisp_data):
11858 Comment update: data must be array of int for format == 32.
11860 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11862 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
11864 2005-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11866 * xfns.c (Fx_change_window_property): Use long array when format is 32.
11867 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
11868 convert long array returned from XGetWindowProperty to an int array.
11869 (x_set_tool_bar_lines): Check that width and height is greater than
11870 zero before clearing area.
11872 * xselect.c (x_reply_selection_request): Pass long array to
11873 XChangeProperty so that 64 bit longs are handeled correctly.
11874 (x_get_window_property): If format is 32 and long is bigger than 32
11875 bits convert data from XGetWindowProperty from long array to int array.
11876 (lisp_data_to_selection_data): When the input is a vector and the
11877 format is 32, allocate a long array even if long is bigger than 32 bits.
11878 (x_fill_property_data): Use char, short and long as the man page
11879 for XChangeProperty specifies. This way the data returned is OK for
11880 both 32 and 64 bit machines.
11881 (x_handle_dnd_message): Calculate size correctly even for 64 bit
11883 (Fx_send_client_event): Undo change from 2005-02-05,
11884 x_fill_property_data now handles that case.
11886 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
11887 reason for the approach in the code.
11889 2005-02-07 Kim F. Storm <storm@cua.dk>
11891 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
11893 2005-02-06 Richard M. Stallman <rms@gnu.org>
11895 * eval.c (Frun_hook_with_args)
11896 (Frun_hook_with_args_until_success)
11897 (Frun_hook_with_args_until_failure): Doc fixes.
11899 2005-02-05 Andreas Schwab <schwab@suse.de>
11901 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
11903 2005-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11905 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
11906 the longs in a XClientMessageEvent correctly when long is 64 bits.
11908 2005-02-05 Eli Zaretskii <eliz@gnu.org>
11910 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
11911 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
11913 2005-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11915 * xmenu.c (menubar_selection_callback): Force out GTK buffered
11916 events so the menu event comes after them. This is to prevent sit-for
11917 from exiting on buffered events directly after a menu selection,
11918 lisp code for Help => About Emacs uses sit-for.
11920 * gtkutil.c (create_menus): Connect selection-done event instead of
11921 the deactivate event to deactivate_cb. This will make the last
11922 leave event come before the call to deactivate_cb, so the leave
11923 event does not make sit-for exit after a menu selection.
11925 2005-02-03 Kim F. Storm <storm@cua.dk>
11927 * dispnew.c (build_frame_matrix_from_leaf_window)
11928 [!GLYPH_DEBUG]: Fix xassert.
11930 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
11932 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11934 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11936 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
11937 the compiling OS version.
11939 * macfns.c (x_create_tip_frame): Likewise.
11941 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
11943 2005-02-03 Richard M. Stallman <rms@gnu.org>
11945 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
11947 * xdisp.c (echo_area_display): Clear echo_message_buffer.
11949 * buffer.c (Fbury_buffer): Doc fix.
11951 2005-02-02 Steven Tamm <steventamm@mac.com>
11953 * macfns.c (unwind_create_frame): Fix compile error due to
11954 xassert being uncondition, but predicate is.
11955 * dispnew.c (update_window): Fix compile error due to
11956 xassert being uncondition, but predicate is.
11958 2005-02-02 Miles Bader <miles@gnu.org>
11960 * dispextern.h (xassert): Enable unconditionally.
11962 2005-02-02 Kim F. Storm <storm@cua.dk>
11964 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
11966 2005-02-02 Kenichi Handa <handa@m17n.org>
11968 * casefiddle.c (casify_object): Enable changing characters of
11969 different byte length.
11970 (casify_region): Fix loop condition, args to replace_range_2, and
11971 update opoint_byte.
11973 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
11975 2005-02-01 Kim F. Storm <storm@cua.dk>
11977 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
11978 stack before calling handle_display_prop.
11980 2005-01-31 Kim F. Storm <storm@cua.dk>
11982 * undo.c (Qapply): New lisp var.
11983 (syms_of_undo): Intern and staticpro it.
11984 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
11985 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
11987 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
11989 2005-01-30 Jesper Harder <harder@phys.au.dk>
11991 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
11992 <mac-emulate-three-button-mouse>: Fix docstring indentation.
11994 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
11996 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
11997 Increase value to 3 Meg.
11999 2005-01-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12001 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
12002 button events are not received otherwise.
12004 2005-01-29 Richard M. Stallman <rms@gnu.org>
12006 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
12008 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
12010 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
12012 * keymap.c (access_keymap): YAILOM.
12014 2005-01-27 Kim F. Storm <storm@cua.dk>
12016 * xdisp.c (get_phys_cursor_geometry): New function to calculate
12017 phys cursor position and size for hollow cursor. Position is
12018 aligned with get_glyph_string_clip_rect and ensures that a hollow
12019 cursor is shown, even when the actual glyph is not visible.
12021 * dispextern.h (get_phys_cursor_geometry): Add prototype.
12023 * xterm.c (x_clip_to_row): Ensure y >= 0.
12024 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
12026 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
12028 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
12030 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
12032 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
12034 2005-01-27 Kim F. Storm <storm@cua.dk>
12036 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
12037 glyph, even when row is only partially visible and actual cursor
12038 position is not visible.
12040 2005-01-24 Richard M. Stallman <rms@gnu.org>
12042 * xterm.c (x_error_quitter): No longer static, and moved after
12045 2005-01-24 Kim F. Storm <storm@cua.dk>
12047 * xdisp.c (move_it_by_lines): If we move forward after going too
12048 far back, cancel move if end position is same as start position.
12050 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12052 * dispextern.h (struct glyph_string): New members clip_head and
12055 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
12056 region to the area between clip_head and clip_tail.
12057 (draw_glyphs): Record the area that need to be actually redrawn to
12058 the new variables clip_head and clip_tail when there are
12059 overhangs. Set values of these variables to the corresponding
12060 members in struct glyph_string. Refine x coordinates for
12061 notice_overwritten_cursor using clip_head and clip_tail.
12063 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
12065 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
12067 (x_draw_glyph_string): Don't fill the background of the successor
12068 of a glyph with a right overhang if the successor will draw a cursor.
12069 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
12070 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
12072 2005-01-24 Kim F. Storm <storm@cua.dk>
12074 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
12075 direction if window height was smaller than next-screen-context-lines.
12076 Now always scroll at least one line in the requested direction.
12077 Ensure that we actually do scroll backwards when requested to do so.
12079 * xdisp.c (redisplay_window): Only try to make cursor line fully
12080 visible once (to avoid redisplay loop).
12082 2005-01-23 Kim F. Storm <storm@cua.dk>
12084 * window.c (Fpos_visible_in_window_p): Simplify return value for
12085 partially visible rows.
12086 (window_scroll_pixel_based): Adapt to that change.
12088 * window.c (window_scroll_pixel_based): Force moving to next line
12089 if scrolling doesn't move start point, e.g. if looking at tall image.
12091 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
12092 Clear last_height before calling line_bottom_y to get real height.
12093 Fix calculation of y.
12095 2005-01-22 Steven Tamm <steventamm@mac.com>
12097 * s/darwin.h: Removed PTY_ITERATION from here.
12100 * process.c (init_process): Default process-connection-type to
12101 nil on darwin 6 or less, t if it is 7 or higher. This way the
12102 broken pty behavior is still allowed on darwin 6 for interactive
12103 processes for people that know what they are doing.
12105 2005-01-22 Kim F. Storm <storm@cua.dk>
12107 * window.c (auto_window_vscroll_p): New boolean.
12108 (syms_of_window): DEFVAR_BOOL it.
12109 (Fpos_visible_in_window_p): Extend return value to include RTOP
12110 and RBOT values if FULLY is nil.
12111 (window_scroll_pixel_based): Adjust vscroll for partially visible
12112 rows if auto_window_vscroll_p is set.
12113 (Fset_window_vscroll): Do nothing if vscroll is not modified.
12115 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
12116 to return number of partially invisible pixels at top and bottom
12117 of the dislay row at POS.
12119 * lisp.h (pos_visible_p): Fix prototype.
12121 2005-01-21 Richard M. Stallman <rms@gnu.org>
12123 * fileio.c (Fcopy_file): Doc fix.
12125 2005-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12127 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
12128 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
12129 start of function for older compilers.
12131 2005-01-20 Richard M. Stallman <rms@gnu.org>
12133 * editfns.c (Fmessage): If arg is "", return "" (as before).
12135 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
12137 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
12140 2005-01-20 Steven Tamm <steventamm@mac.com>
12142 * editfns.c (Voperating_system_release): Add.
12143 (init_editfns): Assign new variable operating-system-release
12144 based on call to uname if available.
12145 (get_operating_system_release): Add function to
12146 allow c-level access to operating system release.
12148 * config.h: Regenerated.
12150 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
12151 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
12154 2005-01-20 Kim F. Storm <storm@cua.dk>
12156 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
12158 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
12159 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
12161 * macterm.c (x_draw_glyph_string_box): Likewise.
12163 * w32term.c (x_draw_glyph_string_box): Likewise.
12165 * indent.c (Fvertical_motion): Temporarily disable selective display.
12167 2005-01-19 Kim F. Storm <storm@cua.dk>
12169 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
12172 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
12174 2005-01-18 Kim F. Storm <storm@cua.dk>
12176 * xdisp.c (fast_find_position): Backtrack to find first row if
12177 charpos is inside a display overlay that spans multiple lines.
12179 2005-01-18 Kenichi Handa <handa@m17n.org>
12181 * coding.c (decode_coding_iso2022): Translate invalid codes if
12182 translation-table is specified.
12184 2005-01-18 Kim F. Storm <storm@cua.dk>
12186 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
12187 change. If handle_display_prop indicates newline is replaced by
12188 image or text, move back to start of relevant overlay or interval
12189 and continue scan from there. Simplify.
12191 2005-01-17 Kim F. Storm <storm@cua.dk>
12193 * dispnew.c (mode_line_string, marginal_area_string):
12194 Fix off-by-one error in search for glyph.
12196 2005-01-16 Kim F. Storm <storm@cua.dk>
12198 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
12200 2005-01-16 Steven Tamm <steventamm@mac.com>
12202 * macterm.c (mac_to_x_fontname): Remove spurious argument.
12204 2005-01-16 Andreas Schwab <schwab@suse.de>
12206 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
12208 2005-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12210 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
12211 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
12213 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12215 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
12216 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
12217 New flags for readable_events.
12218 (get_filtered_input_pending, readable_filtered_events): Remove.
12219 (tracking_off): Call readable_events and get_input_pending with
12220 flag READABLE_EVENTS_DO_TIMERS_NOW.
12221 (readable_events): Move code from old readable_filtered_events here,
12222 but check new READABLE_EVENTS_* in argument flags instead of previous
12223 two boolean arguments do_timers_now and filter_events.
12224 If we are doing mouse tracking and the mouse moved, return only if
12225 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
12226 (swallow_events): Call get_input_pending with flag
12227 READABLE_EVENTS_DO_TIMERS_NOW.
12228 (get_input_pending): Move code from old get_filtered_input_pending
12229 here. Replace boolean arguments do_timers_now, filter_events with
12230 flags, and pass flags to readable_events. Document new
12231 READABLE_EVENTS_* flags.
12232 (detect_input_pending_ignore_squeezables): New function.
12233 (detect_input_pending_run_timers): Call get_input_pending with flag
12234 READABLE_EVENTS_DO_TIMERS_NOW.
12235 (Finput_pending_p): Call get_input_pending with flags
12236 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
12238 * dispnew.c (update_window, update_frame_1): Replace calls to
12239 detect_input_pending with detect_input_pending_ignore_squeezables
12240 so that redisplay is not paused if the event queue contains only
12243 * lisp.h: Declare detect_input_pending_ignore_squeezables.
12245 2005-01-15 Steven Tamm <steventamm@mac.com>
12247 * macterm.c (Vmac_use_core_graphics): Declare variable for
12248 mac-allow-anti-aliasing.
12249 (syms_of_macterm): DEFVAR_LISP and initialize it.
12250 (mac_draw_string_common): Use core graphics text rendering if
12251 mac-allow-anti-aliasing is enabled.
12253 * macfns.c (Fx_file_dialog): Save As dialog includes only the
12254 file name in the text box.
12256 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12258 * macfns.c (x_set_foreground_color, x_set_background_color):
12260 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
12261 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
12262 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
12264 2005-01-14 Kim F. Storm <storm@cua.dk>
12266 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
12268 2005-01-13 Richard M. Stallman <rms@gnu.org>
12270 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
12271 if Voverriding_terminal_local_map is non-nil.
12273 * keyboard.c (syms_of_keyboard): Doc fix.
12275 2005-01-13 Kim F. Storm <storm@cua.dk>
12277 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
12278 (specify 0 for FACE instead). Reorder arg list. Doc fix.
12280 2005-01-12 Richard M. Stallman <rms@gnu.org>
12282 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
12283 face property for characters that don't specify one.
12285 * fns.c (Frequire): Record in load-history unconditionally.
12287 2005-01-10 Kim F. Storm <storm@cua.dk>
12289 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
12291 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
12293 Add support to merge with lisp face id too (if face_name is t).
12295 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12296 Don't lookup lface_id from display table glyphs here; instead use
12297 merge_faces to merge the lisp face id into current face.
12299 2005-01-09 Kim F. Storm <storm@cua.dk>
12301 * dispextern.h (struct it): New member dpvec_face_id.
12302 (merge_into_realized_face): Add prototype.
12304 * xfaces.c (merge_into_realized_face): New function. Used to
12305 merge escape-glyph face or face from display table into current face.
12307 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
12308 (syms_of_xdisp): DEFVAR_LISP it.
12309 (escape_glyph_face): Remove var.
12310 (redisplay_window): Don't initialize it.
12311 (setup_for_ellipsis, get_next_display_element):
12312 Set it->dpvec_face_id to -1.
12313 (get_next_display_element): Test Vshow_nonbreak_escape.
12314 Do not setup escape_glyph_face.
12315 Properly merge escape-glyph face or face from display table with
12316 current face for escape and control characters.
12317 Set it->dpvec_face_id to relevant face id instead of adding it to each
12318 element of display vector.
12319 (next_element_from_display_vector): If it->dpvec_face_id is set,
12320 use that instead of lface_id from glyph itself.
12322 2005-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12324 * xterm.h (struct x_output): New member, toolbar_detached.
12326 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
12328 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
12329 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
12330 (xg_create_tool_bar): Initialize toolbar_detached.
12331 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
12332 toolbar_detached is zero.
12334 2005-01-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12336 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
12337 gtk_menu_popup if not for_click, so callbacks for the menu are called.
12339 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
12340 (xg_tool_bar_callback, xg_tool_bar_help_callback)
12341 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
12343 * xselect.c (x_get_foreign_selection, x_fill_property_data)
12344 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
12345 XFLOAT_DATA to get extract number from Lisp object.
12347 2005-01-07 Kim F. Storm <storm@cua.dk>
12349 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
12350 Set stop_charpos to current charpos instead of 0.
12352 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
12354 * xdisp.c (Fformat_mode_line): First arg now required.
12356 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12358 * macterm.c (XLoadQueryFont): Correctly handle 0 size
12359 font widths that are returned from some Japanese fonts.
12361 2005-01-06 Kim F. Storm <storm@cua.dk>
12363 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
12364 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
12365 (destroy_fringe_bitmap): Set fringe_faces element to nil.
12366 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
12367 fringe_faces array and init elements to nil.
12368 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
12369 non-persistent face id.
12370 (mark_fringe_data): New function for GC.
12372 * alloc.c (mark_fringe_data): Declare extern.
12373 (Fgarbage_collect): Call mark_fringe_data.
12375 * alloc.c (overrun_check_free): Invalidate freed memory if
12376 XMALLOC_CLEAR_FREE_MEMORY is defined.
12378 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12380 * macfns.c: Include sys/param.h.
12381 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
12383 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
12384 of filename string. Set event callback function when creating
12385 dialog boxes. Add code conversions for filenames. Don't dispose
12386 of apple event descriptor record if failed to create it.
12388 * macterm.c: Include sys/param.h.
12389 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
12390 kEventWindowUpdate.
12391 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
12392 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
12393 of FSSpec from apple event descriptor record.
12394 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
12395 size of filename string.
12396 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
12397 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
12398 file dialog is in action.
12399 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
12400 Reject only when there are no filename items. Set background color
12401 before (un)highlighting the window below the dragged items.
12402 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
12404 2005-01-05 Romain Francoise <romain@orebokech.com>
12406 * term.c (encode_terminal_code): Fix buffer size computation.
12408 2005-01-04 Richard M. Stallman <rms@gnu.org>
12410 * xdisp.c (Fformat_mode_line): Doc fix.
12412 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
12414 * alloc.c (refill_memory_reserve): Move.
12415 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
12416 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
12418 2005-01-03 Richard M. Stallman <rms@gnu.org>
12420 * window.c (window_scroll_pixel_based): Don't correct preserve_y
12421 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
12423 2005-01-03 Jason Rumney <jasonr@gnu.org>
12425 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
12426 fontp->space_width to FONT_WIDTH so they are valid.
12428 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
12429 average width. Set fontp->average_width and fontp->space_width to
12430 their appropriate values.
12432 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
12433 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
12434 fontp->space_width.
12436 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12438 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
12439 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
12440 metrics for max and min bounds.
12441 (x_load_font): Correctly calculate average font width metrics.
12443 2005-01-02 Richard M. Stallman <rms@gnu.org>
12445 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
12447 2004-12-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12449 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
12451 2004-12-31 Richard M. Stallman <rms@gnu.org>
12453 * xdisp.c (setup_for_ellipsis, get_next_display_element):
12454 Set it->ellipsis_p to 1 or 0.
12455 (display_line): Record whether row ends in mid-ellipsis.
12456 (set_cursor_from_row): If ends in ellipsis, find start of it.
12457 (cursor_row_p): If PT's at the end of the ellipsis the row
12458 ends within, don't display cursor on this row.
12460 * dispextern.h (struct it): New element ellipsis_p.
12461 (struct glyph_row): New element ends_in_ellipsis_p.
12463 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
12464 position if we're reading from something other than the buffer.
12466 * window.c (window_scroll_pixel_based): Only look at
12467 Vscroll_preserve_screen_position if the old PT can't be kept.
12468 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
12470 2004-12-30 Kim F. Storm <storm@cua.dk>
12472 * xdisp.c (get_line_height_property): New function extracted from
12473 original calc_line_height_property.
12474 (calc_line_height_property): Rework. Handle t and (nil . ratio).
12475 (x_produce_glyphs): Use them to handle line-height and
12476 line-spacing according to new height spec.
12478 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
12480 2004-12-30 Kenichi Handa <handa@m17n.org>
12482 * fileio.c (Finsert_file_contents): Don't use
12483 current_buffer->buffer_file_coding_system even if REPLACE is
12484 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
12486 * fontset.h (struct font_info): New members space_width and
12489 * frame.h (struct frame): New member space_width.
12490 (FRAME_SPACE_WIDTH): New macro.
12492 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
12494 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
12495 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
12496 fontp->space_width.
12497 (x_load_font): Calculate fontp->space_width and fontp->average_width.
12498 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
12500 * xdisp.c (x_produce_glyphs): Calculate tab width by
12501 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
12503 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
12505 * macterm.c (SelectionRange): Add Xcode position apple event struct.
12506 (do_ae_open_documents): Handle Xcode-style file position open events.
12508 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
12510 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
12512 2004-12-29 Richard M. Stallman <rms@gnu.org>
12514 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
12516 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12518 * macfns.c (install_window_handler): Modify extern to return OSErr
12520 (mac_window): Handle return value of install_window_handler.
12522 * macterm.c (reflect_byte): Remove function.
12523 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
12524 Lookup table instead.
12525 (mac_do_font_lists): Simplify calculation of the longest
12527 (init_mac_drag_n_drop): Remove function and declaration.
12528 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12529 init_mac_drag_n_drop.
12530 (mac_do_track_drag): New function and declaration.
12531 (install_window_handler): Return OSErr value.
12532 (install_window_handler) [TARGET_API_MAC_CARBON]:
12533 Register handlers for tracking/receiving drag-and-drop items.
12534 (do_ae_open_documents): Generate unibyte strings for filenames.
12535 (mac_do_receive_drag) [TARGET_API_MAC_CARBON]: Likewise.
12536 Reject only non-filename items. Set event modifiers, and return value.
12538 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
12540 * coding.c (decode_coding): Fix previous change.
12542 2004-12-28 Richard M. Stallman <rms@gnu.org>
12544 * xdisp.c (back_to_previous_visible_line_start):
12545 Don't call handle_display_prop.
12547 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
12549 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
12550 (decode_coding_emacs_mule, encode_coding_emacs_mule)
12551 (decode_coding_iso2022, encode_designation_at_bol)
12552 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
12553 (decode_coding): Constify arguments and local vars.
12555 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12557 * xmenu.c (popup_get_selection): Only pop down dialogs
12559 (popup_get_selection): Remove parameter down_on_keypress.
12560 (create_and_show_popup_menu, create_and_show_dialog):
12561 Remove parameter down_on_keypress to popup_get_selection.
12563 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12565 * dispextern.h: Change HAVE_CARBON to MAC_OS.
12566 (struct glyph_string): Likewise.
12568 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
12571 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
12572 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
12574 * fns.c (vector): Change MAC_OSX to MAC_OS.
12576 * frame.c (x_set_frame_parameters, x_report_frame_params)
12577 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
12578 (x_set_border_width, Vdefault_frame_scroll_bars):
12579 Change HAVE_CARBON to MAC_OS.
12581 * image.c [MAC_OS]: Include sys/stat.h.
12582 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
12583 QuickTimeComponents.h.
12585 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
12586 [!MAC_OSX] (select): Use mac_wait_next_event.
12587 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
12588 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
12589 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
12590 (mac_clear_font_name_table): Add extern.
12591 (Fmac_clear_font_name_table): New defun.
12592 (syms_of_mac): Defsubr it.
12593 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
12594 [MAC_OSX] (select_and_poll_event): New function.
12595 [MAC_OSX] (sys_select): Use it.
12596 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
12597 [MAC_OSX && SELECT_USE_CFSOCKET]
12598 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
12599 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
12600 RunLoop for simultaneously monitoring two kinds of inputs, window
12601 events and process outputs, without periodically polling.
12603 * macfns.c (mac_initialized): Remove extern.
12604 (stricmp): Put in #if 0. All callers changed to use xstricmp in
12606 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
12607 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
12608 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
12609 (mac_get_rdb_resource): New function (from w32reg.c).
12610 (x_get_string_resource): Use it.
12611 (install_window_handler): Add extern.
12612 (mac_window): New function.
12613 (Fx_create_frame): Use it instead of make_mac_frame.
12614 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
12615 (Fx_open_connection, Fx_close_connection): New defuns.
12616 (syms_of_macfns): Defsubr them.
12617 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
12618 Add kWindowNoUpdatesAttribute to the window attribute.
12619 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
12620 (x_create_tip_frame): Don't call ShowWindow.
12621 (Fx_show_tip): Call ShowWindow.
12622 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
12623 TARGET_API_MAC_CARBON'.
12624 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
12625 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
12627 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
12628 (Window): Typedef to WindowPtr and move outside `#if
12629 TARGET_API_MAC_CARBON'.
12630 (XSizeHints): New struct.
12632 * macterm.c (x_update_begin, x_update_end)
12633 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
12635 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
12636 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
12637 (construct_mouse_click): Put in #if 0.
12638 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
12639 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
12640 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
12641 (activate_scroll_bars, deactivate_scroll_bars)
12642 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
12643 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
12644 if the position is neither user-specified nor program-specified.
12645 (x_free_frame_resources): Free size_hints.
12646 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
12647 (mac_clear_font_name_table): New function.
12648 (mac_do_list_fonts): Initialize font_name_table if needed.
12649 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
12650 around mac_do_list_fonts.
12651 (mac_unload_font): New function.
12652 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
12653 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
12654 and definitions with #if TARGET_API_MAC_CARBON.
12655 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
12656 (install_window_handler): Add decl.
12657 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
12658 window. Use UpdateControls. Get the rectangle that should be
12659 updated and restrict the target of expose_frame to it.
12660 (do_grow_window): Set minimum height/width according to size_hints.
12661 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
12662 (do_zoom_window): Don't use x_set_window_size.
12663 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
12664 (install_window_handler): New function.
12665 [!USE_CARBON_EVENTS] (mouse_region): New variable.
12666 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
12667 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
12668 GetEventDispatcherTarget inside BLOCK_INPUT.
12669 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
12670 Update mouse_region when mouse is moved.
12671 (make_mac_frame): Remove.
12672 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
12673 Initialize mouse pointer shapes. Change values of f->left_pos and
12674 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
12675 Don't call ShowWindow.
12676 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
12677 Vinvocation_name and Vsystem_name.
12678 (mac_make_rdb): New function (from w32term.c).
12679 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
12680 already been opened. Don't pass argument to
12681 mac_initialize_display_info. Don't set dpyinfo->height/width.
12682 Add entries to x_display_list and x_display_name_list.
12683 (x_delete_display): New function.
12684 (mac_initialize): Don't call mac_initialize_display_info.
12685 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
12687 * macterm.h (check_mac): Add extern.
12688 (struct mac_output): New member size_hints.
12689 (FRAME_SIZE_HINTS): New macro.
12690 (mac_unload_font): Add extern.
12692 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
12694 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
12696 2004-12-27 Richard M. Stallman <rms@gnu.org>
12698 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
12699 (syms_of_buffer): Don't defsubr it.
12701 * process.c (list_processes_1): Set undo_list instead
12702 of calling Fbuffer_disable_undo.
12704 * xdisp.c (single_display_spec_string_p): Rename from
12705 single_display_prop_string_p.
12706 (single_display_spec_intangible_p): Rename from
12707 single_display_prop_intangible_p.
12708 (handle_single_display_spec): Rename from handle_single_display_prop.
12709 Rewritten to be easier to understand.
12711 Change in load-history format. Functions now get (defun . NAME),
12712 and variables get just NAME.
12714 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
12716 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
12717 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
12718 (Qdefvar): Var deleted.
12719 (syms_of_eval): Don't initialze it.
12721 * lread.c (syms_of_lread) <load-history>: Doc fix.
12723 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12725 * xmenu.c (popup_get_selection): Pop down on C-g.
12726 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
12727 pops down menu on C-g.
12728 (xdialog_show): If dialog popped down and no button in the dialog was
12729 pushed, call Fsignal to quit.
12730 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
12733 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
12735 * gtkutil.c (xg_initialize): Install bindings for C-g so that
12736 dialogs and menus pop down.
12738 2004-12-27 Kenichi Handa <handa@m17n.org>
12740 * coding.c (code_convert_region): Fix calculation of `ratio'.
12742 2004-12-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12744 * gtkutil.c (update_frame_tool_bar): Make the value of
12745 tool-bar-button-margin control margins of images in tool bar.
12747 * alloc.c (check_depth): New variable.
12748 (overrun_check_malloc, overrun_check_realloc): Only add
12749 overhead and write check pattern if check_depth is 1 (to handle
12750 recursive calls). Increase/decrease check_depth in entry/exit.
12751 (overrun_check_free): Only check for overhead if check_depth is 1.
12752 Increase/decrease check_depth in entry/exit.
12754 2004-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12756 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
12757 before touching input_available_clear_time, to avoid accessing it
12758 from multiple threads.
12760 2004-12-23 Jason Rumney <jasonr@gnu.org>
12762 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
12765 2004-12-22 Richard M. Stallman <rms@gnu.org>
12767 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
12769 * lisp.h (Vundo_outer_limit): Fix decl.
12771 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
12773 (syms_of_undo): Initialize appropriately.
12774 (truncate_undo_list): If it's nil, there's no limit.
12776 2004-12-22 Kenichi Handa <handa@m17n.org>
12778 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
12780 2004-12-21 Richard M. Stallman <rms@gnu.org>
12782 * eval.c (unwind_to_catch): Clear immediate_quit.
12784 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
12785 specially as `\ ' and `\-'.
12787 * keyboard.c (kbd_buffer_store_event_hold):
12788 In the code for while-no-input, handle immediate_quit.
12790 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
12791 Call that at the very start.
12792 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
12793 (syms_of_alloc): Don't define undo-limit,
12794 undo-strong-limit and undo-outer-limit here.
12796 * undo.c (truncate_undo_list): Return void.
12797 Take just one argument, the buffer.
12798 Make it current, and inhibit recursive GC.
12799 Access and update the undo list directly; return void.
12800 Refer to the undo...limit variables directly.
12801 Test undo_outer_limit only after counting the whole current command.
12802 When it's exceeded, call the function in undo-outer-limit-function.
12803 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
12804 (Vundo_outer_limit_function): New variable.
12805 (syms_of_undo): Define undo-limit, undo-strong-limit
12806 and undo-outer-limit here, and undo-outer-limit-function.
12809 * lisp.h (truncate_undo_list): Update decl.
12811 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
12813 * fileio.c (Fread_file_name): Delete duplicates in
12814 file-name-history when history_delete_duplicates is true.
12816 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12818 * macterm.c (mac_do_list_fonts): Fix memory leak
12820 2004-12-20 Richard M. Stallman <rms@gnu.org>
12822 * regex.c (re_match_2_internal) <symend, wordend>:
12823 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
12825 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12827 * macterm.c (endif, x_font_name_to_mac_font_name):
12828 Use maccentraleurroman instead of maccentraleuropean
12829 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
12830 quickly finding a specific font without needing regexps.
12832 2004-12-15 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12834 * syssignal.h: Declare main_thread.
12835 (SIGNAL_THREAD_CHECK): New macro.
12837 * keyboard.c (input_available_signal): Move thread checking code
12838 to macro SIGNAL_THREAD_CHECK and call that macro.
12839 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
12841 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
12843 * emacs.c: Define main_thread.
12844 (main): Initialize main_thread.
12845 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
12846 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
12848 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
12850 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
12852 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
12854 * process.c (send_process_trap, sigchld_handler):
12855 Call SIGNAL_THREAD_CHECK.
12857 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
12859 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
12861 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
12862 returning when xg_ignore_gtk_scrollbar is true.
12864 2004-12-14 Kim F. Storm <storm@cua.dk>
12866 * keyboard.c (read_char): Save and restore echo_string when
12867 handling input method.
12869 2004-12-13 Richard M. Stallman <rms@gnu.org>
12871 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
12873 * keyboard.c (Vthrow_on_input): New variable.
12874 (syms_of_keyboard): Defvar and initialize it.
12875 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
12877 * lisp.h (QUIT): Check for Vthrow_on_input.
12878 (Vthrow_on_input): Declare it.
12880 2004-12-13 Kim F. Storm <storm@cua.dk>
12882 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
12885 2004-12-12 Richard M. Stallman <rms@gnu.org>
12887 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
12889 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
12890 (Ftry_completion): Really use outer `zero'; eliminate inner one.
12892 2004-12-12 Kenichi Handa <handa@m17n.org>
12894 * term.c (encode_terminal_code): Fix previous change.
12896 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
12898 * keyboard.c (handle_async_input): Remove pthread mutex handling.
12899 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
12901 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
12902 in macro arguments.
12904 * minibuf.c (Ftry_completion, Fall_completions): Don't use
12907 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
12909 2004-12-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12911 * w32term.c (x_calc_absolute_position): Remove calculation of
12912 difference between inner and outer window. Don't subtract difference
12913 for left and top calculations.
12915 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
12916 for left and top calculations. Remove call to x_real_positions.
12917 [Bug report by Drew Adams in November.]
12918 (x_check_expected_move): Do not set change_gravity to 1 when calling
12921 2004-12-08 Richard M. Stallman <rms@gnu.org>
12923 * xdisp.c (get_next_display_element): Use `escape-glyph' for
12924 control chars and escaped octal codes.
12925 (Qescape_glyph): New variable.
12926 (syms_of_xdisp): Initialize it.
12927 (escape_glyph_face): New variable.
12928 (redisplay_window): Initialize it.
12930 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
12932 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
12933 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
12935 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12937 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
12938 reset_malloc_hooks.
12940 * keyboard.c (handle_async_input, input_available_signal):
12941 Add ! defined (SYSTEM_MALLOC) around thread code.
12943 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
12945 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
12947 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
12949 * config.in: Regenerate.
12951 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12953 * xmenu.c (Fx_popup_menu): Correct documentation about position.
12954 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
12955 if not given by a mouse click to correspond with x-popup-menu
12958 * config.in: Regenerate.
12960 * gtkutil.c: Include signal.h and syssignal.h.
12961 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
12963 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
12964 new variables main_thread and alloc_mutex,
12965 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
12966 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
12967 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
12968 as (UN)BLOCK_INPUT.
12969 (emacs_blocked_free, emacs_blocked_malloc)
12970 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
12971 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
12972 (reset_malloc_hooks): New function.
12974 * lisp.h: Declare reset_malloc_hooks.
12976 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
12978 * keyboard.c: Conditionally include pthread.h.
12979 (handle_async_input, input_available_signalt): If not in the main
12980 thread, block signal, send signal to main thread and return.
12982 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
12983 Set current folder in file chooser if default_filename is a directory.
12985 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
12987 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
12988 Remove redundant correctness checks.
12989 (regex_compile): Fix up error codes for \{..\} expressions.
12991 2004-12-05 Richard M. Stallman <rms@gnu.org>
12993 * regex.c (regex_compile): Fix end-of-pattern case for space.
12995 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12997 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
12998 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
12999 crashes with invalid characters.
13000 * macmenu.c (add_menu_item): Use it.
13001 * image.c (image_load_quartz2d): Likewise.
13002 * macfns.c (x_set_name, x_set_title): Likewise.
13003 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
13004 creating them each time for labels.
13006 2004-12-02 Richard M. Stallman <rms@gnu.org>
13008 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
13011 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
13012 (interactive_p): Skip Scalled_interactively_p frames
13013 like Sinteractive_p frames.
13014 (unwind_to_catch): Clear handling_signal.
13016 * data.c (Fmake_variable_buffer_local): Doc fix.
13017 (Fmake_local_variable): Doc fix.
13019 * insdel.c (insert_from_string_before_markers)
13020 (insert_from_string): Don't modify buffer on empty insertion.
13022 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
13024 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13026 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
13027 menu text as UTF8 fails.
13029 2004-12-01 Kim F. Storm <storm@cua.dk>
13031 * alloc.c: Add commentary for last change.
13032 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
13033 sizeof(size_t) != 4.
13034 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
13035 Use them. Also clear header and trailer of freed memory.
13036 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
13037 (string_overrun_cookie): Rename from string_overrun_pattern.
13038 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
13040 2004-12-01 Andreas Schwab <schwab@suse.de>
13042 * lisp.h: Declare string_to_multibyte.
13044 2004-12-01 Kenichi Handa <handa@m17n.org>
13046 * w32console.c (w32con_write_glyphs): Decide coding here.
13047 Adjusted for the change of encode_terminal_code.
13049 * term.c (encode_terminal_code): Don't make it "static".
13051 2004-11-30 Kenichi Handa <handa@m17n.org>
13053 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
13054 (encode_terminal_code): Argument changed. Encode all
13055 characters at once, and return a pointer to the result of encoding.
13056 (write_glyphs): Decide coding here. Adjusted for the above change.
13057 (insert_glyphs): Likewise.
13058 (term_init): Initialize encode_terminal_bufsize to 0.
13060 * coding.c (Vcode_conversion_workbuf_name): New variable.
13061 (syms_of_coding): Initialize and staticpro it.
13062 (set_conversion_work_buffer): New function.
13063 (run_pre_post_conversion_on_str): Use it.
13064 (run_pre_write_conversin_on_c_str): New function.
13066 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
13068 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13070 * keyboard.c: Don't undef SIGIO
13071 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
13072 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
13073 (macfns.o): Don't depend on ccl.h.
13074 * macfns.c (mac_frame_parm_handlers): Set handlers for
13075 Qleft_fringe and Qright_fringe.
13076 * macterm.c (mac_fill_rectangle_to_pixmap)
13077 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
13078 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
13080 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
13081 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
13082 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
13083 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
13084 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
13085 XDrawImageString. Always draw background and foreground separately.
13086 (x_draw_image_foreground): Use clipping instead of computing the
13087 intersection rectangle.
13088 (x_draw_image_glyph_string): Don't draw an image with mask to a
13090 (x_redisplay_interface): Set flush_display_optional member to 0.
13091 (XTread_socket): Correctly reset the TEConverter
13094 2004-11-30 Kim F. Storm <storm@cua.dk>
13096 * lisp.h: New defines to enable buffer overrun checking.
13097 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
13098 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
13100 * alloc.c: Add more checks for buffer overruns.
13101 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
13102 xmalloc_overrun_check_trailer, overrun_check_malloc)
13103 overrun_check_realloc, overrun_check_free): Add.
13104 (GC_STRING_EXTRA, string_overrun_pattern): Add.
13105 (check_sblock, allocate_string_data, compact_small_strings):
13106 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
13107 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
13108 (check_string_free_list): Add.
13109 (allocate_string, sweep_strings): Call check_string_free_list.
13111 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
13112 XMALLOC_OVERRUN_CHECK to avoid crash during load.
13114 2004-11-29 Kim F. Storm <storm@cua.dk>
13116 * fns.c (concat): Use SAFE_ALLOCA.
13118 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
13120 * sysdep.c (emacs_write): Don't use QUIT.
13122 2004-11-29 Kenichi Handa <handa@m17n.org>
13124 * buffer.c (init_buffer): Set current_buffer->directory to a
13125 multibyte string made by string_to_multibyte.
13127 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
13129 2004-11-27 Andreas Schwab <schwab@suse.de>
13131 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
13133 * s/gnu-linux.h: Enable no-op gcpros on ia64.
13134 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
13136 * filelock.c (lock_file_1): Call get_boot_time early.
13137 Increase buffer size.
13139 2004-11-27 Eli Zaretskii <eliz@gnu.org>
13141 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
13144 2004-11-27 Kim F. Storm <storm@cua.dk>
13146 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
13147 marker out of doc string.
13149 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
13151 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
13152 which was not mentioned in the log.
13154 2004-11-26 Kim F. Storm <storm@cua.dk>
13156 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
13157 angle bitmaps at top/bottom line.
13159 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
13160 set it when it->method is set to next_element_from_display_vector.
13161 (setup_for_ellipsis): Add LEN argument. Callers changed.
13162 Set it->saved_face_id.
13163 (get_next_display_element): Use loop instead of recursion.
13164 Set it->saved_face_id. Combine duplicate code for ctr chars.
13165 (next_element_from_display_vector): Do not set it->saved_face_id.
13166 (next_element_from_ellipsis): Use setup_for_ellipsis.
13168 2004-11-26 Eli Zaretskii <eliz@gnu.org>
13170 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
13171 prevent compiler warnings.
13173 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
13175 * keyboard.c (command_loop_1): Print a message describing the key
13176 the user just pressed when this key has no binding.
13178 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
13179 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
13181 * lread.c (readchar): Check QUIT when `getc' is interrupted.
13183 2004-11-24 Richard M. Stallman <rms@gnu.org>
13185 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
13187 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
13189 2004-11-24 Kim F. Storm <storm@cua.dk>
13191 * xdisp.c (move_it_in_display_line_to, display_line):
13192 Restore saved_face_id also when truncate-lines or hscrolled.
13194 2004-11-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13196 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
13197 x-use-old-gtk-file-dialog.
13199 * xfns.c: Define x_use_old_gtk_file_dialog.
13200 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
13201 outside ifdef USE_GTK.
13203 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
13205 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
13206 Don't use XFASTINT blindly.
13208 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
13210 * indent.c (skip_invisible): Avoid non-idempotent side-effects
13211 in macro arguments.
13213 * keymap.c (Flookup_key): Check INTEGERP before XINT.
13215 * lread.c (oblookup): Don't use XFASTINT blindly.
13217 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
13218 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
13220 2004-11-23 Kim F. Storm <storm@cua.dk>
13222 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
13223 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
13225 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
13226 signal_p is zero and face name is unknown.
13227 (Fx_list_fonts): Don't signal error in lookup_named_face.
13228 (Fface_font): Signal error in lookup_named_face.
13229 (ascii_face_of_lisp_face): Likewise.
13231 * dispextern.h (lookup_named_face): Fix prototype.
13233 * xdisp.c (handle_single_display_prop): Don't signal error in
13234 lookup_named_face for unknown fringe face name.
13235 (highlight_trailing_whitespace): Don't signal error in
13236 lookup_named_face if trailing-whitespace face unknown.
13237 (calc_line_height_property): Don't signal error in
13238 lookup_named_face if specified face name is unknown.
13240 * fringe.c (update_window_fringes): Show top row indicator if
13241 window has header-line. Don't show arrow at bob and eob
13242 if the boundary indicators are not used.
13243 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
13245 * window.c (set_window_buffer): Clear display_error_modiff.
13247 2004-11-22 Kim F. Storm <storm@cua.dk>
13249 * fringe.c (update_window_fringes): Provide sensible fall-back
13250 value for non-nil indicate-buffer-boundaries setting.
13252 2004-11-22 Markus Rost <rost@ias.edu>
13254 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
13256 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
13258 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
13260 2004-11-21 Kim F. Storm <storm@cua.dk>
13262 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
13264 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
13265 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
13267 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
13268 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
13270 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
13271 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
13273 * xdisp.c (move_it_in_display_line_to, display_line):
13274 Restore saved_face_id if overflow-newline-into-fringe is enabled and
13275 line is continued before or in middle of element from display vector.
13277 * indent.c (Fvertical_motion): Fix last change. Use another
13278 method to detect if iterator moved too far ahead after reseat.
13280 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
13281 expand matrix width for overflow in zero-width area.
13282 (append_glyph, append_composite_glyph, produce_image_glyph)
13283 (append_stretch_glyph): Use it to avoid loop in redisplay.
13284 (note_mode_line_or_margin_highlight): Don't let help-echo from
13285 string override help-echo from image map.
13287 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
13289 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
13290 * callint.c (Fcall_interactively): Ditto.
13292 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
13294 * minibuf.c (Fminibuffer_complete_and_exit):
13295 Fixup the case of the completed value, for case-indep completion.
13297 2004-11-20 Richard M. Stallman <rms@gnu.org>
13299 * lisp.h (Fread_from_minibuffer): Add arg in decl.
13301 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
13302 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
13304 * search.c (Vsearch_spaces_regexp):
13305 Rename from Vsearch_whitespace_regexp. All uses changed.
13307 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
13309 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
13311 2004-11-19 Richard M. Stallman <rms@gnu.org>
13313 * search.c (Vsearch_whitespace_regexp): New variable.
13314 (syms_of_search): Defvar it.
13315 (compile_pattern_1): Call re_set_whitespace_regexp with it.
13316 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
13318 (struct regexp_cache): New element whitespace_regexp.
13319 (syms_of_search): Initialize whitespace_regexp elements.
13320 (compile_pattern): Compare whitespace_regexp elements.
13321 (compile_pattern_1): Set whitespace_regexp elements.
13323 * regex.c (regex_compile): Substitute whitespace_regexp
13324 for spaces, if it is nonzero.
13325 (whitespace_regexp): New variable.
13326 (re_set_whitespace_regexp): New function.
13328 2004-11-19 Kim F. Storm <storm@cua.dk>
13330 * indent.c (Fvertical_motion): Fix last change.
13332 2004-11-18 Kim F. Storm <storm@cua.dk>
13334 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
13335 Instead, move back again if reseating moves too far ahead.
13337 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
13339 * xdisp.c (message3): Call clear_message.
13341 2004-11-17 Kim F. Storm <storm@cua.dk>
13343 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
13345 2004-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13347 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
13349 * xmenu.c (x_menu_in_use): Remove.
13350 (x_menu_set_in_use): Also set popup_activated_flag.
13352 * xfns.c (Fx_file_dialog): Call popup_activated instead of
13353 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
13355 * xterm.h (x_menu_in_use): Remove.
13357 2004-11-16 Richard M. Stallman <rms@gnu.org>
13359 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
13360 Use map-keymap-internal to implement that.
13362 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
13364 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
13366 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
13367 a window before using XWINDOW.
13369 * window.c (make_window, Fselect_window, make_dummy_parent)
13370 (save_window_save):
13371 * frame.c (make_frame):
13372 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
13374 * lisp.h (NILP): Use EQ rather than XFASTINT.
13376 2004-11-16 Kim F. Storm <storm@cua.dk>
13378 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
13380 * indent.c (Fvertical_motion): Fix last change. Only reseat when
13383 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
13385 * dispextern.h: Extern reseat_at_previous_visible_line_start.
13387 2004-11-16 Kenichi Handa <handa@m17n.org>
13389 * xdisp.c (display_mode_element): Fix previous change (calculate
13390 end position of substring to display correctly).
13392 2004-11-16 Kim F. Storm <storm@cua.dk>
13394 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
13395 Reported by Andrew M. Scott.
13397 2004-11-15 Kim F. Storm <storm@cua.dk>
13399 * fns.c (Fsafe_plist_get): New defun.
13400 (syms_of_fns): Defsubr it.
13402 * lisp.h (Fsafe_plist_get): Add EXFUN.
13404 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
13405 Use Fsafe_plist_get.
13406 (note_mode_line_or_margin_highlight, note_mouse_highlight):
13407 Fix image map element parsing. Use Fsafe_plist_get.
13409 2004-11-15 Richard M. Stallman <rms@gnu.org>
13411 * xdisp.c (get_next_display_element): Fix previous change.
13413 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13415 * window.c (shrink_windows): Handle special case of one window left
13416 when trying to shrink the final reminder. Grow windows if
13417 total_removed is less than total_shrink.
13419 * xmenu.c (pop_down_menu): Remove global variable current_menu,
13420 extract pointer from arg with XSAVE_VALUE.
13421 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
13422 Construct arg to record_unwind_protect with make_save_value.
13424 2004-11-13 Richard M. Stallman <rms@gnu.org>
13426 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
13427 (get_next_display_element): Fix previous change to apply only to \n.
13429 * indent.c (Fvertical_motion): Scan to PT from start of line to
13430 make iterator consistent.
13432 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
13434 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13436 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
13438 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
13439 Record unwind with clean_up_file_dialog.
13441 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
13444 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
13446 2004-11-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13448 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
13449 (xg_file_sel_destroy): Remove.
13450 (xg_file_response_cb, pop_down_file_dialog)
13451 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
13453 (xg_get_file_with_chooser, xg_get_file_with_selection):
13454 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
13455 Move common code to xg_get_file_name. Return widget created.
13456 (xg_get_file_name): Set name, transient for, modal and destroy
13457 with parent here. Connect response signal to xg_file_response_cb,
13458 connect delete-event to gtk_true. Record pop_down_file_dialog
13459 for unwind. Do event loop and call x_menu_wait_for_event in loop.
13460 (xg_create_widget): Make dialogs modal.
13462 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
13464 (popup_get_selection): Move unwind protect ...
13465 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
13466 Move destroy of widget to pop_down_menu.
13467 (popup_widget_loop): Move unwind protect ...
13468 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
13469 Move destroy of widget to pop_down_menu.
13470 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
13471 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
13472 x_mouse_leave and grabbed = 0 to pop_down_menu.
13474 2004-11-13 Kim F. Storm <storm@cua.dk>
13476 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
13477 (syms_of_xdisp): DEFVAR_BOOL it.
13478 (make_cursor_line_fully_visible, try_cursor_movement)
13479 (try_window_id): Use it.
13481 2004-11-12 Kim F. Storm <storm@cua.dk>
13483 * dispextern.h (struct glyph_row): New member extra_line_spacing.
13484 (struct it): New member max_extra_line_spacing.
13485 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
13486 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
13487 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
13488 part of last line is only extra line spacing (so the text on the
13489 line is fully visible). Use helper macros.
13490 Add W arg (to use them). All callers changed.
13491 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
13492 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
13494 * window.c (window_scroll_pixel_based, Frecenter):
13495 Use move_it_vertically_backward directly.
13496 (Frecenter): Fix calculation of new start pos for negative arg.
13497 Before, the new start pos was sometimes chosen too far back, so
13498 the last line became only partially visible, and thus would be
13499 either only semi-visible or automatically scrolled to the middle
13500 of the window by redisplay.
13502 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
13503 (move_it_vertically_backward): Don't recure to move further back.
13504 (move_it_vertically): Remove superfluous condition.
13505 (move_it_by_lines): Clear last_height when moved 0 lines.
13506 (resize_mini_window): Use it.max_extra_line_spacing.
13507 (display_tool_bar_line): Clear row->extra_line_spacing.
13508 (try_scrolling): Use move_it_vertically_backward directly.
13509 (redisplay_window): Likewise.
13510 (compute_line_metrics): Set row->extra_line_spacing.
13511 (display_line, display_string): Likewise.
13512 (x_produce_glyphs): Update it->max_extra_line_spacing.
13514 * xmenu.c (pop_down_menu): Return nil.
13516 2004-11-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13518 * xmenu.c (x_menu_wait_for_event): New function.
13519 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
13521 (popup_widget_loop): Add argument do_timers.
13522 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
13523 do_timers to popup_widget_loop.
13524 (xmenu_show): Call XMenuActivateSetWaitFunction so that
13525 x_menu_wait_for_event is called by XMenuActivate.
13526 (create_and_show_popup_menu): Pass 1 for do_timers to
13527 popup_get_selection.
13528 (pop_down_menu): New function.
13529 (popup_get_selection, popup_widget_loop): Unwind protect to
13531 (popup_widget_loop): Add argument widget.
13532 (create_and_show_popup_menu, create_and_show_dialog): Pass new
13533 argument widget to popup_widget_loop.
13535 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
13537 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
13539 2004-11-09 Kim F. Storm <storm@cua.dk>
13541 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
13542 Fix various comments referring to XEvents instead of input events.
13543 (x_queue_event): Fix format strings.
13544 (x_stop_queuing_selection_requests): Likewise.
13546 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
13547 (pint2hrstr): Add extra braces to silence compiler.
13549 * print.c (print_object): Fix format string.
13551 * lread.c (read1): Fix next_char matching.
13553 * lisp.h (Fdelete): Add EXFUN.
13554 (replace_range_2): Add prototype.
13556 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
13558 * intervals.h (NULL_INTERVAL_P): Add separate version when
13559 ENABLE_CHECKING is not defined to silence compiler.
13560 (compare_string_intervals): Add prototype.
13562 * fringe.c (destroy_fringe_bitmap): Fix return type.
13563 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
13565 * emacs.c (Fdump_emacs): Fix format string.
13567 * doc.c: Include <ctype.h>.
13568 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
13570 * data.c (store_symval_forwarding): Remove unused variables.
13572 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
13574 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13576 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
13579 2004-11-09 Kim F. Storm <storm@cua.dk>
13581 * process.c (Fmake_network_process): Remove kludge for interrupted
13582 connects on BSD. If connect is interrupted, just close socket and
13583 start over rather than sleeping and retry with same socket.
13585 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13587 * .cvsignore: Add buildobj.lst.
13589 * doc.c: New variable Vbuild_files.
13590 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
13591 file names from buildobj.lst. Only attach docstrings from files
13592 that are in Vbuild_files.
13593 (syms_of_doc): Defvar Vbuild_files.
13595 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
13597 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
13598 (mostlyclean): Rm buildobj.lst
13600 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
13603 2004-11-09 Kim F. Storm <storm@cua.dk>
13605 * fringe.c (update_window_fringes): Update fringe bitmaps if
13606 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
13607 also update previous row to get rid of misc. artifacts.
13609 2004-11-08 Kim F. Storm <storm@cua.dk>
13611 * xdisp.c (fast_find_position): Fix start pos if header line present.
13612 (note_mouse_highlight): Clear mouse face if we move out of text area.
13614 2004-11-08 Eli Zaretskii <eliz@gnu.org>
13616 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
13617 Don't include <sys/time.h> explicitly.
13618 Include <stdio.h> unconditionally, not just on MacOS.
13620 2004-11-08 Kenichi Handa <handa@m17n.org>
13622 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
13623 don't pay attention to '\' before '*'.
13624 (fontset_pattern_regexp): Change the meaning of the second arg.
13625 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
13626 (check_fontset_name): Try NAME as literal at first, and if it
13627 failes, try NAME as pattern.
13629 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13631 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
13633 2004-11-07 Andreas Schwab <schwab@suse.de>
13635 * lisp.h (Fmsdos_downcase_filename): Declare.
13636 * dired.c (Fmsdos_downcase_filename): Don't declare here.
13637 * fileio.c: Likewise.
13639 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13641 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
13642 comparisons with integers instead of Lisp_Object address.
13643 (Fmsdos_set_keyboard): Declare argument allkeys.
13645 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
13647 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
13648 int/Lisp_Object mixup.
13652 2004-11-06 Steven Tamm <steventamm@mac.com>
13654 * editfns.c: Need to include sys/time.h before resource.h on darwin.
13656 2004-11-06 Richard M. Stallman <rms@gnu.org>
13658 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
13660 * xfaces.c (merge_named_face): GCPRO the face_name in the
13661 named_merge_point struct that we make.
13662 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
13664 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
13665 before deciding whether to inactivate mark.
13667 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
13669 * config.in: Regenerate (add HAVE_GETRUSAGE).
13670 * editfns.c (Fget_internal_run_time): New function.
13671 (syms_of_data): Defsubr it.
13672 * fns.c (sxhash): As far as possible, merge calculation of
13673 hash code for symbols and strings.
13675 2004-11-06 Eli Zaretskii <eliz@gnu.org>
13677 * frame.c (syms_of_frame): Fix the example in the doc string.
13679 2004-11-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13681 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
13683 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
13684 (create_and_show_dialog): Revert change from 2004-10-31.
13686 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
13688 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
13690 2004-11-05 Kim F. Storm <storm@cua.dk>
13692 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
13694 * fileio.c (Ffile_modes): Doc fix.
13695 (auto_save_1): Check for Ffile_modes nil value.
13697 2004-11-05 Kim F. Storm <storm@cua.dk>
13699 * xselect.c (struct selection_event_queue, selection_queue)
13700 (x_queue_selection_requests, x_queue_event)
13701 (x_start_queuing_selection_requests)
13702 (x_stop_queuing_selection_requests): Add new queue for selection
13703 input events to replace previous XEvent queue in xterm.c.
13704 (queue_selection_requests_unwind): Adapt to new queue.
13705 (x_reply_selection_request): Adapt to new queue.
13706 Unexpect wait_object in case of x errors (memory leak).
13707 (x_handle_selection_request, x_handle_selection_clear): Make static.
13708 (x_handle_selection_event): New function. May queue selection events.
13709 (wait_for_property_change_unwind): Use save_value instead of cons.
13710 Clear property_change_reply_object.
13711 (wait_for_property_change): Abort if already waiting.
13712 Use save_value instead of cons for unwind data.
13713 (x_handle_property_notify): Skip events already arrived, but don't
13714 free them, as "arrived" field is checked by wait_for_property_change,
13715 and it will be freed by unwind or explicit unexpect_property_change.
13716 (x_get_foreign_selection): Add to new queue.
13717 (receive_incremental_selection): Don't unexpect wait_object when done
13718 as it has already been freed by previous wait_for_property_change.
13720 * xterm.h (x_start_queuing_selection_requests)
13721 (x_stop_queuing_selection_requests, x_handle_selection_request)
13722 (x_handle_selection_clear): Remove prototypes.
13723 (x_handle_selection_event): Add prototype.
13725 * xterm.c (handle_one_xevent): Don't queue X selection events
13726 here, it may be too late if we start queuing after we have already
13727 stored some selection events into the kbd buffer.
13728 (struct selection_event_queue, queue, x_queue_selection_requests)
13729 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
13730 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
13731 (x_catch_errors_unwind): Block input around final XSync.
13733 * keyboard.h (kbd_buffer_unget_event): Add prototype.
13735 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
13736 (kbd_buffer_unget_event): New function.
13737 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
13738 and use x_handle_selection_event.
13739 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
13741 2004-11-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13743 * xselect.c (TRACE3): New debug macro.
13744 (x_reply_selection_request): Use it.
13745 (receive_incremental_selection): In call to TRACE0, the name of
13746 a symbol is in xname.
13748 2004-11-05 Kim F. Storm <storm@cua.dk>
13750 * fontset.c (fontset_pattern_regexp): Use unsigned char.
13752 2004-11-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13754 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
13756 * gtkutil.h (use_old_gtk_file_dialog): Declare.
13758 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
13759 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
13760 * xfns.c (syms_of_xfns): ... to here.
13762 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
13763 it doesn't start with /.
13765 2004-11-04 Kenichi Handa <handa@m17n.org>
13767 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
13768 treat it as a literal character.
13770 2004-11-03 Kim F. Storm <storm@cua.dk>
13772 * .gdbinit (ppt): New function.
13774 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13776 * xterm.c (x_window_to_scroll_bar): Only call
13777 xg_get_scroll_id_for_window if toolkit scroll bars are used.
13779 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
13782 2004-11-02 Andreas Schwab <schwab@suse.de>
13784 * window.c (Fscroll_right): Fix last change.
13786 2004-11-02 Kim F. Storm <storm@cua.dk>
13788 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
13790 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13792 * callproc.c (Fcall_process): Block input around vfork.
13794 2004-11-02 Kim F. Storm <storm@cua.dk>
13796 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
13797 (syms_of_eval): Defsubr it.
13799 2004-11-02 Richard M. Stallman <rms@gnu.org>
13801 * insdel.c (replace_range_2): New function.
13803 * casefiddle.c (casify_region): Handle changes in byte-length
13804 using replace_range_2.
13806 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
13808 * xdisp.c (back_to_previous_visible_line_start):
13809 Subtract 1 from pos when checking previous newline for invisibility.
13811 * window.c (window_scroll_pixel_based): Update preserve_y
13812 for header line if any.
13813 (Fscroll_left, Fscroll_right): Don't call interactive_p;
13814 use a new second argument instead.
13816 * eval.c (Fcall_interactive_p): New function.
13817 (interactive_p): Don't test INTERACTIVE here.
13818 (Finteractive_p): Doc fix.
13820 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
13822 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13824 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
13825 comparing font names.
13827 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13829 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
13830 Fx_file_dialog if only directories should be read.
13832 * lisp.h: Fx_file_dialog takes 5 parameters.
13834 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
13835 Add parameter only_dir_p.
13836 In Motif version, don't put DEFAULT_FILENAME in filter part of the
13837 dialog, just text field part. Do not add DEFAULT_FILENAME
13838 to list of files if it isn't there.
13839 In GTK version, pass only_dir_p parameter to xg_get_file_name.
13841 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
13842 Check only_dir_p instead of comparing prompt to "Dired". When using
13843 a save dialog, add option kNavDontConfirmReplacement, change title
13844 to "Enter name", change text for save button to "Ok".
13846 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
13847 Check only_dir_p instead of comparing prompt to "Dired".
13849 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
13850 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
13851 and HAVE_GTK_FILE_SELECTION_NEW respectively.
13852 (xg_get_file_name): Add parameter only_dir_p.
13853 Call xg_get_file_with_chooser or xg_get_file_with_selection
13854 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
13855 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
13857 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
13859 * config.in: Rebuild (added HAVE_GTK_FILE_*).
13861 2004-11-01 Kim F. Storm <storm@cua.dk>
13863 * process.c (connect_wait_mask, num_pending_connects):
13864 Only declare and use them if NON_BLOCKING_CONNECT is defined.
13865 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
13866 (IF_NON_BLOCKING_CONNECT): New helper macro.
13867 (wait_reading_process_output): Only declare and use local vars
13868 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
13870 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
13872 * w32term.c (x_scroll_run): Delete region objects after use.
13874 2004-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13876 * xmenu.c: Add prototypes for forward function declarations.
13877 (popup_get_selection): Remove parameter do_timers, remove call to
13879 (create_and_show_popup_menu, create_and_show_dialog):
13880 Remove parameter do_timers from call to popup_get_selection.
13882 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
13883 tool_bar_items and assign the result to f->tool_bar_items if
13884 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
13885 tool_bar_items to assignment of result.
13887 * atimer.c (alarm_signal_handler): Do not call set_alarm if
13888 pending_atimers is non-zero.
13890 2004-10-31 Kim F. Storm <storm@cua.dk>
13892 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
13894 2004-10-28 Will <will@glozer.net>
13896 * macterm.c: Allow user to assign key modifiers to the Mac Option
13897 key via a 'mac-option-modifier' variable.
13899 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
13901 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
13902 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
13903 (x_handle_selection_request, x_handle_selection_clear)
13904 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
13906 2004-10-28 Richard M. Stallman <rms@gnu.org>
13908 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
13910 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
13912 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
13914 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
13915 comment-starter over a 1-char one.
13917 2004-10-27 Richard M. Stallman <rms@gnu.org>
13919 * xdisp.c (get_next_display_element): In mode lines,
13920 treat newline and tab like other control characters.
13922 * editfns.c (Fmessage): Doc fix.
13924 * indent.c (vmotion): When moving up, check the newline before.
13925 Make prevline an int, not a Lisp_Object.
13927 2004-10-27 Kim F. Storm <storm@cua.dk>
13929 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
13930 Only allocate info and discarded tables once.
13932 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
13933 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
13934 (SAFE_FREE): Test it to determine if we need to unwind to free.
13935 Remove size arg. All users changed.
13936 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
13938 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13940 * gtkutil.c: Put empty line between comment and function body.
13941 (xg_destroy_widgets): Rename from remove_from_container.
13942 Just destroy all widgets in list. Argument wcont removed.
13943 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
13944 instead of remove_from_container.
13945 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
13946 (free_frame_tool_bar): Add comment.
13948 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
13949 is not NULL before strcmp.
13951 2004-10-26 Kim F. Storm <storm@cua.dk>
13953 * callint.c (Fcall_interactively): Add 'U' code to get the
13954 up-event discarded by a previous 'k' or 'K' argument.
13956 2004-10-26 David Kastrup <dak@gnu.org>
13958 * buffer.c (syms_of_buffer): Fix a few typos.
13960 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13962 * xsmfns.c: Put empty line between comment and function body.
13963 Use two spaces before comment end.
13965 2004-10-25 Kenichi Handa <handa@m17n.org>
13967 * fontset.c (fontset_pattern_regexp): Optimize for the case that
13968 PATTERN is full XLFD.
13970 2004-10-24 Kenichi Handa <handa@m17n.org>
13972 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
13974 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
13975 (regex_compile): Return REG_ERANGEX if appropriate.
13977 2004-10-22 Kenichi Handa <handa@m17n.org>
13979 * editfns.c (Ftranslate_region_internal): New function.
13980 (syms_of_editfns): Defsubr it.
13982 2004-10-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13984 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
13986 2004-10-21 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
13988 * xterm.h (x_output): New member `xic_base_fontname'.
13989 (FRAME_XIC_BASE_FONTNAME): New macro.
13990 (xic_free_xfontset): Declare.
13992 * xfns.c (xic_create_xfontset): Share fontsets between frames
13993 based on base_fontname.
13994 (xic_free_xfontset): New function.
13995 (free_frame_xic): Use it.
13996 (xic_set_xfontset): Ditto.
13998 * xterm.c (xim_destroy_callback): Ditto.
14000 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
14002 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
14004 2004-10-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14006 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
14009 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
14010 New variables and constant.
14011 (main): Calculate heap_bss_diff. If we are dumping and the
14012 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
14013 and exec ourself again.
14014 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
14017 * lastfile.c: Make my_endbss and my_endbss_static available on all
14020 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
14021 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
14023 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
14025 * data.c (Flocal_variable_if_set_p): Doc fix.
14027 2004-10-19 Jason Rumney <jasonr@gnu.org>
14029 * w32.c (init_environment): Set emacs_dir correctly when running
14030 emacs from the build directory.
14032 2004-10-19 Richard M. Stallman <rms@gnu.org>
14034 * editfns.c (Fdelete_and_extract_region):
14035 If region is empty, return null string.
14037 2004-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14039 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
14041 (xg_frame_cleared): Remove.
14043 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
14044 (xg_find_top_left_in_fixed): Remove.
14045 (xg_create_scroll_bar): Put an event box widget between
14046 the scroll bar widget and the edit widget.
14047 (xg_show_scroll_bar): Show the parent widget (the event box).
14048 (xg_remove_scroll_bar): Destroy parent (the event box) also.
14049 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
14050 Move the parent (the event box) widget inside the fixed widget.
14051 Move window clear to xterm.c.
14053 * gtkutil.h (xg_frame_cleared): Remove.
14055 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
14056 (x_scroll_bar_create, XTset_vertical_scroll_bar):
14057 Remove arguments left and width to xg_update_scrollbar_pos.
14058 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
14060 2004-10-19 Kenichi Handa <handa@m17n.org>
14062 * xdisp.c (display_mode_element): Fix display of wide chars.
14064 2004-10-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14066 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
14067 gdk_window_clear and move gdk_window_process_all_updates after
14068 clear so events are sent to the X server in correct order.
14070 2004-10-18 Kenichi Handa <handa@m17n.org>
14072 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
14073 comparing font names.
14074 (fs_query_fontset): Use fast_string_match for comparing fontset names.
14075 (list_fontsets): Likewise.
14077 * search.c (fast_string_match_ignore_case): New function.
14079 * lisp.h (fast_string_match_ignore_case): Extern it.
14081 2004-10-17 Kim F. Storm <storm@cua.dk>
14083 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
14084 than bitmap if there is not left fringe.
14085 (get_overlay_arrow_glyph_row): Also used on windows system.
14086 (display_line): Display overlay string if no left fringe.
14088 2004-10-16 Jason Rumney <jasonr@gnu.org>
14090 * w32fns.c (w32_font_match): Encode font name being matched.
14092 2004-10-16 Richard M. Stallman <rms@gnu.org>
14094 * window.c (Fspecial_display_p): Doc fix.
14096 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
14098 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
14099 Don't ignore menus, because where-is-internal already does it for us.
14101 2004-10-15 Kim F. Storm <storm@cua.dk>
14103 * xdisp.c (redisplay_window): Only update fringes and vertical
14104 border on window frames.
14106 2004-10-14 Andreas Schwab <schwab@suse.de>
14108 * m/ia64.h (DATA_SEG_BITS): Don't define.
14110 2004-10-14 Kim F. Storm <storm@cua.dk>
14112 * xterm.h: Include Xutil.h after keysym.h to work around bug
14113 in some X versions.
14115 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
14117 * fns.c (map_char_table): Add missing gcpros.
14119 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
14121 * keymap.c (get_keymap): An autoload form is not a keymap.
14123 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
14125 2004-10-13 Kim F. Storm <storm@cua.dk>
14127 * callproc.c (Fcall_process): Simplify handling of display arg.
14128 Resume `display_on_the_fly' once a coding system is determined.
14130 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
14132 2004-10-12 Kim F. Storm <storm@cua.dk>
14134 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
14135 caller, such as call-process, is not going to poll for input.
14136 (calc_line_height_property): Handle case where it->object is nil.
14138 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
14140 2004-10-12 Kenichi Handa <handa@m17n.org>
14142 * xdisp.c (get_next_display_element):
14143 If unibyte_display_via_language_environment is zero, display 8-bit
14144 chars in octal in unibyte buffer.
14146 2004-10-12 Kim F. Storm <storm@cua.dk>
14148 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
14149 are no ordinary bindings.
14151 2004-10-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14153 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
14155 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14157 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
14158 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
14159 (make_mac_frame): Add BLOCK_INPUT around the making of a
14161 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
14162 * macgui.h (mktime): Use emacs_mktime.
14163 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
14164 Make a cancel file-open dialog be like C-g.
14165 * mac.c (mktime): Use emacs_mktime.
14166 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
14167 (Fmac_paste_function): Add better error handling for carbon cut/paste.
14169 2004-10-10 Kim F. Storm <storm@cua.dk>
14171 * keyboard.c (timer_resume_idle): New function to resume idle
14172 timer without resetting timers on the idle list.
14173 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
14174 (timer_start_idle, timer_stop_idle): Declare static.
14175 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
14177 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
14179 2004-10-08 Steven Tamm <steventamm@mac.com>
14181 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
14182 * macterm.c (mac_check_for_quit_char): Remove warning for using
14183 NULL where 0 should be used.
14184 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
14186 * mac.c: Include time.h for Tiger compatibility.
14188 2004-10-07 Kim F. Storm <storm@cua.dk>
14190 * xdisp.c (redisplay_window): Fix flicker on vertical line between
14191 windows. Update vertical line after drawing window fringes, but
14192 only if actually drawing any bitmaps--or there is no fringe.
14194 * xterm.c (x_update_window_end): Likewise.
14195 * macterm.c (x_update_window_end): Likewise.
14196 * w32term.c (x_update_window_end): Likewise.
14198 * fringe.c (draw_window_fringes): Return value now indicates if
14199 any fringe bitmaps were redrawn (or there are no fringes).
14201 * dispextern.h (draw_window_fringes): Update prototype.
14203 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14205 * macfns.c (mac_get_window_bounds): Add extern.
14206 (x_real_positions): Use mac_get_window_bounds.
14208 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
14211 * macterm.c [!MAC_OSX]: Include Windows.h.
14212 (front_emacs_window): Rename from mac_front_window. All uses
14213 changed. Return the frontmost non-tooltip emacs window.
14214 (mac_get_window_bounds): New function.
14215 (x_calc_absolute_position): Use the difference of width and height
14216 between the inner and outer window.
14217 (x_set_offset): Specify window position by the coordinae of the
14218 outer window. Adjust the position if the title bar is completely
14219 outside the screen.
14220 (app_is_suspended, app_sleep_time): Remove unused variables.
14221 (do_app_resume, do_app_suspend): Remove their contents because
14222 window-activate/deactivate events will do the job.
14223 (do_zoom_window): Remove unused variables. Make compliant to the
14224 standard way of zooming. Set f->left_pos and f->top_pos.
14225 (XTread_socket): Don't use argument `expected'. Don't use
14226 FrontWindow to determine the clicked window. Exclude unprocessed
14227 mouseUp cases in the early stage. Add parentheses to fix operator
14229 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
14231 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14233 * config.in: Regenerate.
14235 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
14238 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14240 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
14241 a row if Alt or Meta has been found for that row. Also stop scanning
14242 for Keysyms for that row.
14244 2004-10-04 Kim F. Storm <storm@cua.dk>
14246 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
14247 to list. Include overlay arrow bitmap in return value.
14249 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
14250 bars with fractional column width. If scroll bar separates two
14251 windows, move it towards the window it belongs to. Only update
14252 the padding area below the scroll bar widget when necessary,
14253 i.e. when scroll bar widget is created, moved, or resized.
14255 * xdisp.c (define_frame_cursor1): Do not change frame cursor
14256 while tracking/dragging mouse.
14257 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
14259 * window.c (coordinates_in_window): Relax check for cursor
14260 on vertial border between mode lines.
14261 (Fset_window_fringes): Do not allow negative widths.
14262 (Fset_window_scroll_bars): Likewise.
14264 * .gdbinit (pp): Shorthand for p ARG + pr.
14265 (ff): New command: flush frame updates (X only).
14267 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
14269 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
14271 2004-09-30 Kenichi Handa <handa@m17n.org>
14273 * process.c (send_process): Free composition data.
14275 * fileio.c (Finsert_file_contents): Free composition data.
14277 * coding.c (code_convert_region): Don't skip ASCIIs if there are
14278 compositions to encode.
14279 (encode_coding_string): Likewise. Free composition data.
14281 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
14283 * coding.c (code_convert_region): Free composition data.
14285 2004-09-29 Kim F. Storm <storm@cua.dk>
14287 * fringe.c: Remove limit on number of bitmaps.
14288 (fringe_bitmaps, fringe_faces): Change to pointers.
14289 (max_fringe_bitmaps): New var.
14290 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
14291 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
14293 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
14294 (struct glyph_row): Reorder fringe_bitmap related fields.
14295 (struct it): Likewise.
14297 * w32term.c (fringe_bmp): Change to pointer.
14298 (max_fringe_bmp): New var.
14299 (w32_define_fringe_bitmap): Expand fringe_bmp.
14300 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
14301 (w32_destroy_fringe_bitmap): Likewise.
14303 2004-09-29 Kim F. Storm <storm@cua.dk>
14305 * fringe.c: Simplify last change.
14306 (lookup_fringe_bitmap): New function.
14307 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
14308 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
14309 Keep standard bitmaps in Vfringe_bitmaps.
14310 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
14311 (Fset_fringe_bitmap_face): Likewise.
14313 * dispextern.h (lookup_fringe_bitmap): Add prototype.
14314 (valid_fringe_bitmap_p): Remove prototype.
14316 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
14318 2004-09-29 Kim F. Storm <storm@cua.dk>
14320 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
14321 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
14323 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
14325 * fringe.c (Vfringe_bitmaps): New variable.
14326 (syms_of_fringe): DEFVAR_LISP it.
14327 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
14328 Change arg to Lisp_Object and fail if not an integer.
14329 (get_fringe_bitmap_name, resolve_fringe_bitmap)
14330 (destroy_fringe_bitmap): New functions.
14331 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
14332 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
14333 clear its fringe property.
14334 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
14335 Fdestroy_fringe_bitmap.
14336 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
14337 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
14338 and set fringe property. Signal error if no free slots.
14339 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
14340 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
14342 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
14343 symbols with a fringe property.
14345 2004-09-27 Kim F. Storm <storm@cua.dk>
14347 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
14348 Doc fix. Format may now be a symbol or alist, not a cons.
14350 * fringe.c (update_window_fringes): Handle new formats of
14351 indicate-buffer-boundaries (symbol or alist). No longer
14352 allow a simple cons.
14353 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
14355 2004-09-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14357 * config.in: Rebuild.
14359 2004-09-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14361 * config.in: Rebuild.
14363 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
14365 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
14367 * xterm.c (x_term_init): Work around a bug in some X servers.
14369 2004-09-18 Richard M. Stallman <rms@gnu.org>
14371 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
14373 * xdisp.c (try_window_reusing_current_matrix):
14374 Handle the case where we reach the old displayed text,
14375 out of sync with the old line boundary.
14377 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
14379 * fileio.c (Finsert_file_contents): Fix case of replacement in a
14382 2004-09-14 Kim F. Storm <storm@cua.dk>
14384 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
14386 * xfaces.c (Qface_no_inherit): New var.
14387 (syms_of_xfaces): Intern and staticpro it.
14388 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
14389 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
14390 Don't increment face_change_count when face has non-nil
14391 face-no-inherit property.
14393 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
14395 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
14396 (Fbyte_code): Remove dead code after `wrong_type_argument'.
14398 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
14399 before doing the mark_stack_check_gcpros since they're not on the stack.
14401 2004-09-12 Kim F. Storm <storm@cua.dk>
14403 * editfns.c (Fformat): Handle format strings with multiple text
14404 properties. Reverse text property list from the format string,
14405 so the positions are in increasing order.
14407 2004-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14409 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
14410 x_uncatch_errors so that possible protocol errors are delivered.
14412 2004-09-10 Eli Zaretskii <eliz@gnu.org>
14414 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
14416 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
14417 charset.h, and coding.h
14418 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
14419 (term.o): Depend on window.h and keymap.h.
14420 (abbrev.o): Depend on syntax.h.
14421 (callint.o): Depend on keymap.h.
14422 (casefiddle.o): Depend on charset.h and keymap.h.
14423 (category.o): Depend on keymap.h.
14424 (coding.o): Depend on dispextern.h.
14425 (cmds.o): Depend on keyboard.h and keymap.h.
14426 (dispnew.o): Depend on indent.h and intervals.h.
14427 (doc.o): Depend on keymap.h.
14428 (editfns.o): Depend on frame.h.
14429 (emacs.o): Depend on dispextern.h.
14430 (fileio.o): Don't depend on ccl.h.
14431 (filelock.o): Depend on charset.h and coding.h.
14432 (frame.o): Depend on w32term.h and macterm.h.
14433 (insdel.o): Depend on region-cache.h.
14434 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
14435 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
14436 (search.o): Depend on $(INTERVALS_SRC).
14437 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
14438 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
14439 xterm.h, w32term.h, and macterm.h.
14440 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
14441 w32term.h, and macterm.h.
14442 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
14443 region-cache.h, xterm.h, w32term.h, and macterm.h.
14444 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
14445 (data.o): Depend on frame.h.
14446 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
14447 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
14448 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
14449 (intervals.o): Depend on keymap.h.
14451 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
14452 Add debugging print-out to termscript.
14454 2004-09-09 Richard M. Stallman <rms@gnu.org>
14456 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
14458 2004-09-08 Richard M. Stallman <rms@gnu.org>
14460 * window.c (Fset_window_buffer): Doc fix.
14462 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
14464 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
14466 * minibuf.c (history_delete_duplicates): New variable.
14467 (read_minibuf): Use it.
14468 (syms_of_minibuf): Create the corresponding lisp variable.
14470 2004-09-08 Kim F. Storm <storm@cua.dk>
14472 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
14473 overlay just before point.
14475 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
14477 * buffer.h (struct buffer): Add auto_save_file_format field.
14478 * buffer.c (reset_buffer, init_buffer_once):
14479 Handle auto_save_file_format field.
14480 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
14481 `buffer-auto-save-file-format'.
14482 * fileio.c: Delete declaration for removed Vauto_save_file_format.
14483 (build_annotations): Adapt to replacement of
14484 `auto-save-file-format' with the new buffer-local variable
14485 `buffer-auto-save-file-format'.
14486 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
14488 2004-09-07 Jason Rumney <jasonr@gnu.org>
14490 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
14492 * w32fns.c (w32_wnd_proc) <WM_MEASUREITEM, WM_DRAWITEM>:
14493 Handle Unicode menu titles.
14495 2004-09-07 Kim F. Storm <storm@cua.dk>
14497 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
14498 property from text property or overlay strings at point.
14500 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
14502 * xmenu.c (update_submenu_strings): YAILOM.
14503 (set_frame_menubar): Make sure last_i is initialized.
14505 2004-09-03 Jason Rumney <jasonr@gnu.org>
14507 * w32menu.c (_widget_value): Add lname and lkey.
14508 (digest_single_submenu): Set lname and lkey in widget_value
14509 instead of name and key.
14510 (update_submenu_strings): New function.
14511 (set_frame_menubar): Remove call to inhibit_garbage_collection,
14512 call update_submenu_strings.
14514 * w32menu.c (globals_of_w32menu): Check for Unicode API.
14515 (digest_single_submenu, w32_menu_show): Encode menu strings as
14516 UTF-8 if Unicode API is available.
14517 (utf8to16): New function.
14518 (add_menu_item): Use it when calling Unicode API.
14520 2004-09-03 Kim F. Storm <storm@cua.dk>
14522 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
14523 in overlay or text-property strings; set cursor on corresponding
14524 glyph rather than at end of the string.
14526 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14528 * macfns.c (x_real_positions): Save the current window port and
14529 set a new one before obtaining the global coordinate.
14530 Use FRAME_MAC_WINDOW.
14531 (x_set_name, x_set_title): Encode title to UTF8.
14532 Use SetWindowTitleWithCFString.
14533 (Fx_server_version): Get correct OS version.
14535 * macmenu.c (add_menu_item): Remove unused variable `i'.
14536 Don't let separator items destroy refence constants of other menu items.
14538 * macterm.c (x_update_end): Move SetPortWindowPort to inside
14540 (x_set_offset): Use FRAME_MAC_WINDOW.
14542 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
14543 nontext_cursor if it is on a scroll bar.
14545 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
14547 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
14550 2004-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14552 * xfns.c (x_set_name_internal): New function. Check if we shall call
14553 xfree before ENCODE_UTF_8.
14554 (x_set_name, x_set_title): Call x_set_name_internal.
14556 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
14558 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
14561 2004-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14563 * macmenu.c (_widget_value): Add lname and lkey.
14564 (single_submenu): Set lname and lkey in widget_value
14565 instead of name and key.
14566 (update_submenu_strings): New function.
14567 (set_frame_menubar): Remove call to inhibit_garbage_collection,
14568 call update_submenu_strings.
14570 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
14571 instead of name and key.
14572 (update_submenu_strings): New function.
14573 (set_frame_menubar): Remove call to inhibit_garbage_collection,
14574 call update_submenu_strings.
14576 * gtkutil.h (_widget_value): Added lname and lkey.
14578 2004-08-30 Steven Tamm <steventamm@mac.com>
14580 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
14581 by using different names for inner loop variables.
14583 2004-08-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14585 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
14586 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
14588 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
14589 tool bar items is 0.
14591 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14593 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
14594 strings in menu items.
14595 (single_submenu): Use ENCODE_MENU_STRING
14596 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
14597 button release isn't passed to event loop
14598 (add_menu_item): Use SetMenuItemWithCFString
14600 2004-08-26 Steven Tamm <steventamm@mac.com>
14602 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
14603 tool-bar/menu click.
14604 * macfns.c (Fx_file_dialog): Implement using NavServices.
14606 2004-08-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14608 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
14610 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14611 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14612 (x_top_window_to_frame): Return 0 if wdesc is None.
14614 2004-08-22 Richard M. Stallman <rms@gnu.org>
14616 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
14617 HAVE_TERMIOS]: If there's no char for this signal, drop through
14618 and use system calls.
14620 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
14622 2004-08-20 Kim F. Storm <storm@cua.dk>
14624 * process.c (wait_reading_process_output): Rename from
14625 wait_reading_process_input. All uses changed.
14626 (wait_reading_process_output_1): Rename from
14627 wait_reading_process_input_1. All uses changed.
14629 * dispnew.c (Fsleep_for): Remove obsolete code.
14631 2004-08-20 Kenichi Handa <handa@m17n.org>
14633 * syntax.c (skip_chars): Fix for unibyte case.
14635 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
14637 * syntax.c (char_quoted): Mixup byte/char pos.
14638 (back_comment): Fixup globals in all cases.
14640 2004-08-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14642 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
14643 passing it to gtk_window_set_title.
14645 2004-08-19 Kim F. Storm <storm@cua.dk>
14647 * process.c (wait_reading_process_input): Clean up.
14648 Add wait_for_cell, wait_proc, and just_wait_proc args
14649 to avoid overloading `read_kbd' and `do_display' args.
14650 Change read_kbd arg to int. All callers changed.
14652 * process.c (process_send_signal): Use CDISABLE.
14654 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
14656 2004-08-18 Kim F. Storm <storm@cua.dk>
14658 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
14659 forward to wait_reading_process_input via DO_DISPLAY arg.
14660 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
14661 object, only process output from that process; also inhibit
14662 running timers if DO_DISPLAY==-2.
14664 2004-08-17 Kim F. Storm <storm@cua.dk>
14666 * process.c (process_send_signal): Fix last change--use
14667 _POSIX_VDISABLE instead of CVDISABLE when available.
14669 2004-08-16 Richard M. Stallman <rms@gnu.org>
14671 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
14672 Set VQUIT and VINTR chars to the standard ones if they are unset.
14673 [AIX]: Don't do that here. And don't force VINTR to standard
14674 when SIGNALS_VIA_CHARACTERS.
14676 * process.c (process_send_signal)
14677 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
14678 Do nothing if the character is CVDISABLE.
14680 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
14682 * intervals.c (move_if_not_intangible):
14683 Force POSITION to be between BEGV and ZV.
14685 2004-08-14 John Paul Wallington <jpw@gnu.org>
14687 * buffer.c (Frestore_buffer_modified_p): Doc fix.
14689 * fileio.c (Fread_file_name): Doc fix.
14691 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
14693 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
14695 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
14697 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
14699 * keyboard.c: Declare Qdisabled_command_function instead of
14700 Qdisabled_command_hook.
14701 (Fcommand_execute): Use Qdisabled_command_function instead of
14702 Qdisabled_command_hook.
14703 (syms_of_keyboard): Ditto.
14705 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
14707 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
14708 (syms_of_keymap) <key-translation-map>: Doc fixes.
14710 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
14712 * window.c (window_list_1): YAILOM.
14714 * fileio.c (make_temp_name): Handle multibyte prefixes.
14716 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
14718 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
14721 2004-08-03 Kenichi Handa <handa@m17n.org>
14723 * coding.c (decode_coding_string): Adjust coding->consumed, and
14724 etc. with shrinked_bytes.
14726 2004-08-03 Kim F. Storm <storm@cua.dk>
14728 * indent.c (compute_motion): Fix check for full width window
14729 in non-window case. Do not count left truncation glyph on
14732 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
14734 * data.c (Finteractive_form): Doc fix.
14736 2004-08-02 Kim F. Storm <storm@cua.dk>
14738 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
14739 properly accounting for continuation glyph on non-window systems.
14740 (Fcompute_motion): Use actual window width if WIDTH is nil, and
14741 actual window width/height if TOPOS is nil, properly accounting for
14742 continuation glyphs on non-window systems, and optional header lines.
14743 (vmotion): Let compute_motion calculate actual window width.
14745 * window.c (window_scroll_line_based): Let compute_motion
14746 calculate actual window width.
14748 2004-08-02 Kim F. Storm <storm@cua.dk>
14750 * process.c (read_process_output): Use whole read buffer.
14751 Don't trigger adaptive read buffering on errors.
14753 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
14755 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
14757 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
14759 * callint.c (Fcall_interactively): Doc fix.
14761 2004-07-30 Richard M. Stallman <rms@gnu.org>
14763 * abbrev.c (Fexpand_abbrev): Undo previous change.
14765 2004-07-30 Kim F. Storm <storm@cua.dk>
14767 * editfns.c (Fformat): Allocate extra (dummy) element in info.
14769 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
14771 * eval.c (Fdefvar, Fdefconst): Doc fixes.
14773 2004-07-27 Kim F. Storm <storm@cua.dk>
14775 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
14776 we have ensured that the glyph fits on the current line (or returned
14777 MOVE_LINE_CONTINUED otherwise).
14779 2004-07-26 Kim F. Storm <storm@cua.dk>
14781 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
14782 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
14783 if target position is at end of display line but char is not a newline.
14785 2004-07-25 Richard M. Stallman <rms@gnu.org>
14787 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
14788 instead of ON_VERTICAL_BORDER, when on scroll bar.
14789 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
14791 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
14793 * window.c (Fcoordinates_in_window_p):
14794 Take account of FRAME_INTERNAL_BORDER_WIDTH.
14796 * alloc.c (check_cons_list): New function (contents commented out).
14798 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
14800 * xfaces.c (Fcolor_supported_p): Doc fix.
14802 * frame.c (Fselect_frame, Fset_frame_selected_window)
14803 (Fframe_visible_p, Fraise_frame): Doc fixes.
14805 2004-07-24 Richard M. Stallman <rms@gnu.org>
14807 * keyboard.h (not_single_kboard_state): Declare.
14809 * fileio.c (Fwrite_region): Doc fix.
14811 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
14813 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
14814 only when a real abbrev is present.
14816 * xfns.c (x_icon_verify): New function.
14817 (Fx_create_frame): Use it.
14819 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
14821 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
14823 2004-07-21 Kim F. Storm <storm@cua.dk>
14825 * window.h (struct glyph_matrix): New members nrows_scale_factor
14826 and ncols_scale_factor.
14828 * window.c (make_window): Initialize nrows_scale_factor and
14829 ncols_scale_factor members.
14831 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
14832 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
14833 (required_matrix_height): Apply nrows_scale_factor.
14834 (required_matrix_width): Apply ncols_scale_factor.
14836 * xdisp.c (display_line): Increment nrows_scale_factor and set
14837 fonts_changed_p if past last allocated row.
14838 (append_glyph, append_composite_glyph, produce_image_glyph)
14839 (append_stretch_glyph): Increment ncols_scale_factor and set
14840 fonts_changed_p if current area is full.
14842 2004-07-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14844 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
14846 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
14848 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
14849 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
14850 (Fset_window_start, Fscroll_up, Fscroll_down)
14851 (Fother_window_for_scrolling, Fscroll_other_window)
14852 (Fsave_window_excursion, Fset_window_vscroll)
14853 (syms_of_window) <window-size-fixed>: Doc fixes.
14855 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14857 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
14858 ENCODE_SYSTEM for filenames.
14860 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14862 * mac.c (sys_select): Block input around call to
14863 ReceiveNextEvent to prevent breakage. Correctly handle
14864 blocking on event queue only by calling ReceiveNextEvent
14865 instead of select (since GUI events aren't on an fd).
14866 (sys_read): Remove function
14867 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
14869 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14871 * mac.c (sys_select): Redo sys_select to use alarm-based
14872 polling instead of 1 sec timeouts (like solaris).
14874 * macterm.c (x_make_frame_visible): Comment in polling on
14877 * keyboard.c: Undef SIGIO on Carbon
14879 * atimer.c (alarm_signal_handler): Call alarm handlers after
14882 * eval.c (Feval): Remove quit_char test
14884 * process.c (wait_reading_process_input): Remove clearing
14885 stdin for select call on process input.
14887 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
14889 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
14890 capitalization error in docstring.
14892 2004-07-17 Juanma Barranquero <lektu@terra.es>
14894 * keyboard.c (not_single_kboard_state): Do nothing unless
14895 MULTI_KBOARD is defined.
14897 2004-07-17 Richard M. Stallman <rms@gnu.org>
14899 * window.c (coordinates_in_window): Inside the window but outside
14900 its box to the L or R, return ON_VERTICAL_BORDER.
14901 (window_list_1): Rotate the list to start with WINDOW.
14903 * print.c (print_preprocess): Test for print_depth at limit
14904 before entering in being_printed.
14906 * keyboard.c (not_single_kboard_state): New function.
14907 (stuff_buffered_input): Now no-op only if no SIGTSTP.
14909 * frame.c (Fdelete_frame): If we're in single_bboard_state on
14910 this kboard, and we delete its last frame, go to any_kboard_state.
14912 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
14914 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14916 * w32fns.c (Fx_file_dialog): Encode strings in system coding
14917 system before passing them to OS functions for display.
14919 2004-07-15 David Kastrup <dak@gnu.org>
14921 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
14922 Apparently fixes an abort condition.
14924 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
14926 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
14929 2004-07-14 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
14931 * keyboard.c (echo_dash): Do nothing if there already is a dash
14932 at the end of the echo string.
14934 2004-07-12 Kim F. Storm <storm@cua.dk>
14936 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
14939 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
14941 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
14943 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
14944 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
14945 (Freplace_buffer_in_windows, Fset_window_buffer)
14946 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
14947 (syms_of_window): Expand docstring of `display-buffer-function'.
14949 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
14951 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
14952 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
14953 that time values of the type (HIGH . LOW) are considered obsolete.
14955 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
14957 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
14960 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
14962 2004-07-06 John Paul Wallington <jpw@gnu.org>
14964 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
14966 * fns.c (Fclear_string): Signal an error if STRING is not a string.
14968 2004-07-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14970 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
14971 instead of CGMainDisplayID (only in OSX 10.2 and later).
14973 2004-07-04 John Paul Wallington <jpw@gnu.org>
14975 * fileio.c (read_file_name_completion_ignore_case): New variable.
14976 (syms_of_fileio): Declare and initialise it.
14977 (Fread_file_name): Bind `completion-ignore-case' to respect it.
14979 2004-07-03 Eli Zaretskii <eliz@gnu.org>
14981 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
14982 for event.x and event.y.
14984 2004-07-01 Kenichi Handa <handa@m17n.org>
14986 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
14987 after getting a new string by pre-write-conversion.
14989 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
14991 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
14992 (x_calc_absolute_position): Remove unused var `child'.
14994 * xfaces.c (x_supports_face_attributes_p)
14995 (Fdisplay_supports_face_attributes_p): YAILOM.
14996 (tty_supports_face_attributes_p): Remove unused var `i'.
14998 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
15001 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
15003 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
15006 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
15008 2004-06-30 Andreas Schwab <schwab@suse.de>
15010 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
15011 (Finit_image_library): Pass LIBRARIES through to
15012 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
15013 (lookup_image_type): Pass Qnil as second argument to
15014 Finit_image_library.
15016 * lisp.h (Finit_image_library): Declare.
15018 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15020 * macterm.c (do_window_activate, do_window_deactivate): Remove.
15021 (XTread_socket): Send mouse button events to the toolbox
15022 dispatcher even when the mouse is grabbed. Don't process window
15023 activate events for non-Emacs windows. Replace function calls to
15024 do_window_activate and do_window_deactivate with their contents.
15025 Reset mouse grabbing status when a window is deactivated.
15027 2004-06-29 Steven Tamm <steventamm@mac.com>
15029 * macterm.c (mac_get_emulated_btn)
15030 (mac_event_to_emacs_modifiers): Fix emulated mouse button
15031 support to correctly mask out modifiers.
15033 2004-06-29 David Kastrup <dak@gnu.org>
15035 * search.c (Fset_match_data): Allow buffer before end of list
15036 which can happen if set-match-data is using a pre-consed list.
15038 2004-06-28 Steven Tamm <steventamm@mac.com>
15040 * macterm.c (XTread_socket): Correctly set the frame position
15041 after the window is moved.
15043 2004-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15045 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
15046 gpix and gmask just before return to avoid memory leak.
15047 (xg_get_image_for_pixmap): Add workaround for monochrome displays
15048 so insensitive and activated icons look ok.
15050 2004-06-27 Jason Rumney <jasonr@gnu.org>
15052 * w32fns.c (file_dialog_callback): Disable edit control if set
15053 to directories only on CDN_INITDONE message.
15054 (Fx_file_dialog): Default to directories only when prompt starts
15057 2004-06-25 Kim F. Storm <storm@cua.dk>
15059 * alloc.c (allocate_misc): Update total_free_markers.
15060 (free_misc): New function.
15061 (safe_alloca_unwind, free_marker): Use it.
15063 * lisp.h (free_misc): Add prototype.
15065 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
15067 2004-06-24 Richard M. Stallman <rms@gnu.org>
15069 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
15070 (syms_of_emacs): Lisp variables deleted.
15072 2004-06-23 David Kastrup <dak@gnu.org>
15074 * search.c (Freplace_match): Adjust the match-data more thoroughly
15075 when replacing strings in the buffer.
15076 (Fmatch_data): When INTEGERS is non-nil and the last match was in
15077 a buffer, add the buffer as last element to the match data.
15078 (Fset_match_data): If an additional element of the match-data is a
15079 buffer, restore it to last_thing_searched.
15080 (save_search_regs): Save last_thing_searched as part of the match data.
15081 (restore_match_data): Restore it again.
15083 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
15085 * keymap.c (Ftext_char_description): Doc fix.
15086 * doc.c (Fsnarf_documentation): Doc fix.
15088 2004-06-22 Kim F. Storm <storm@cua.dk>
15090 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
15092 * lisp.h (struct Lisp_Save_Value): New member dogc.
15093 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
15094 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
15095 (SAFE_FREE_LISP): New macro.
15097 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
15098 (make_save_value): Init new dogc member.
15099 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
15101 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
15102 SAFE_FREE_LISP macros.
15104 2004-06-22 Kim F. Storm <storm@cua.dk>
15106 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
15107 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
15108 in that memory area are unknown to GC. Add comments.
15110 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
15112 2004-06-21 Kim F. Storm <storm@cua.dk>
15114 * lisp.h (MAX_ALLOCA): Define here.
15115 (safe_alloca_unwind): Add prototype.
15116 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
15118 * alloc.c (safe_alloca_unwind): New function.
15120 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
15122 * charset.c (Fstring): Use SAFE_ALLOCA.
15124 * coding.c (MAX_ALLOCA): Remove define.
15126 * data.c (MAX_ALLOCA): Remove define.
15127 (Faset): Use SAFE_ALLOCA.
15129 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
15131 * fns.c (string_make_multibyte, string_to_multibyte)
15132 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
15133 (MAX_ALLOCA): Remove define.
15134 (Fbase64_encode_region, Fbase64_encode_string)
15135 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
15136 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
15137 memory leak if encoding fails.
15139 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
15141 2004-06-21 Eli Zaretskii <eliz@gnu.org>
15143 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15145 2004-06-20 Richard M. Stallman <rms@gnu.org>
15147 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
15149 * search.c (match_limit): Cleaner err msg when no match data available.
15151 * window.c (syms_of_window): Doc fix.
15153 * keyboard.c (command_loop_1): Handle values `only' and `identity'
15154 for Vtransient_mark_mode.
15156 * buffer.c (syms_of_buffer): Doc fix.
15158 2004-06-21 David Kastrup <dak@gnu.org>
15160 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
15161 and unbinding of `case-fold-search' according to
15162 `completion-ignore-case' around calls of string-match and
15163 predicates, respectively. Should give satisfactory performance
15164 in all relevant cases.
15166 2004-06-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15168 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
15171 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
15173 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
15175 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
15178 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
15180 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
15182 2004-06-16 Kim F. Storm <storm@cua.dk>
15184 * dispextern.h (Vimage_types): Remove extern.
15186 2004-06-16 Miles Bader <miles@gnu.org>
15188 * image.c (lookup_image_type): Initialize image type if necessary.
15190 2004-06-15 Kim F. Storm <storm@cua.dk>
15192 * xdisp.c (try_cursor_movement): Exclude header line from scroll
15193 margin at top of window.
15194 (try_window_reusing_current_matrix): Calculate proper cursor position
15195 after scrolling up with non-zero scroll margin, as the old cursor
15196 position corresponds to value of PT before executing this command.
15197 (try_window_id): Consider scroll margin at bottom of window too;
15198 otherwise we fail to scroll when hl-line-mode is enabled.
15200 * syntax.c (skip_chars): Only recognize [:class:] when it has the
15201 proper format and class is a lower-case word.
15203 2004-06-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15205 * gtkutil.c (xg_get_image_for_pixmap): New function.
15206 (xg_get_gdk_pixmap_and_mask): Remove.
15207 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
15208 xg_get_gdk_pixmap_and_mask.
15210 * xterm.h (struct x_display_info): Typo in comment fixed.
15212 2004-06-14 Juanma Barranquero <lektu@terra.es>
15214 * dispextern.h (Vimage_types): Make it conditional on
15215 HAVE_WINDOW_SYSTEM.
15217 * image.c (Vimage_types): Move from xdisp.c.
15218 (Vimage_type_cache): New variable.
15219 (define_image_type): New argument indicating whether an image
15220 library was loaded; cache loaded status and return t on success,
15222 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
15223 (w32_delayed_load): New function to load an image library from a
15224 list of possible filenames.
15225 (init_xpm_functions, init_png_functions, init_jpeg_functions)
15226 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
15227 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
15228 (Finit_image_library): New function, extracted from `init_image'.
15229 Try to initialize an image library on demand and cache whether we
15230 were successful or not.
15231 (syms_of_image): Initialize `Vimage_types' and
15232 `Vimage_type_cache'. Add recognized image types to Vimage_types.
15233 Export `init-image-library'.
15234 (init_image): Remove initialization of all image types, except xbm
15237 * xdisp.c (Vimage_types): Delete (moved to image.c).
15239 2004-06-14 Andreas Schwab <schwab@suse.de>
15241 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
15242 Avoid calling specbind when completion-regexp-list is empty.
15244 2004-06-13 Richard M. Stallman <rms@gnu.org>
15246 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
15247 (re_wctype, re_iswctype, re_wctype_to_bit):
15248 Non-function definitions moved here from regex.c.
15250 * regex.c (re_wctype, re_iswctype): Function defs longer static.
15251 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
15252 (re_wctype, re_iswctype, re_wctype_to_bit):
15253 Non-function definitions moved to regex.h.
15255 * window.c (Fselect_window): Doc fix.
15257 * syntax.c: Include regex.h.
15258 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
15259 If requested, make a list of classes, then check the scanned
15260 chars for membership in them.
15261 (in_classes): New function.
15264 * keyboard.c (cmd_error): Don't call any_kboard_state
15265 if inside a recursive edit level.
15267 2004-06-13 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
15269 * keyboard.c (command_loop): Call any_kboard_state before
15270 command_loop_2 when at top level.
15272 2004-06-13 Andreas Schwab <schwab@suse.de>
15274 * print.c (print_object): Always use %ld for printing EMACS_INT.
15276 * keyboard.c (cancel_hourglass_unwind): Return a value.
15277 (modify_event_symbol): Always use %ld for printing EMACS_INT.
15278 (Fexecute_extended_command): Likewise.
15280 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
15282 (SYNTAX): Likewise.
15283 (SYNTAX_WITH_FLAGS): Likewise.
15284 (SYNTAX_MATCH): Likewise.
15286 * syntax.c (char_quoted): Avoid warning about undefined operation.
15287 (find_defun_start): Likewise.
15288 (scan_lists): Likewise.
15289 (INC_FROM): Likewise.
15290 (scan_sexps_forward): Likewise.
15292 * image.c: Include <ctype.h>.
15294 * xfaces.c (face_attr_equal_p): Declare parameters.
15296 2004-06-13 Kenichi Handa <handa@m17n.org>
15298 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
15300 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
15302 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
15304 2004-06-12 Kenichi Handa <handa@m17n.org>
15306 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
15307 ccl_prog_stack_struct and update it.
15308 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
15309 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
15310 ccl->eof_ic on EOF.
15311 (ccl_debug_hook): New function.
15312 (struct ccl_prog_stack): New member eof_ic.
15313 (ccl_driver): Handle EOF in subrountine call correctly.
15315 2004-06-11 Kenichi Handa <handa@m17n.org>
15317 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
15319 2004-06-11 Kim F. Storm <storm@cua.dk>
15321 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
15323 2004-06-11 Juanma Barranquero <lektu@terra.es>
15325 * keyboard.c (Fposn_at_point): Doc fix.
15327 2004-06-11 David Kastrup <dak@gnu.org>
15329 * search.c (match_limit): Don't flag an error if match-data
15330 exceeding the allocated search_regs.num_regs gets requested, just
15333 2004-06-08 Miles Bader <miles@gnu.org>
15335 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
15337 2004-06-07 Juanma Barranquero <lektu@terra.es>
15339 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
15340 (Fcurrent_time_string, Fcurrent_time_zone)
15341 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
15343 2004-06-07 Miles Bader <miles@gnu.org>
15345 * xfaces.c (struct named_merge_point): New type.
15346 (push_named_merge_point): New function.
15347 (merge_named_face): New function.
15348 (merge_face_ref, face_at_buffer_position, face_at_string_position):
15349 Use `merge_named_face'.
15350 (merge_face_inheritance): Function removed.
15351 (merge_face_ref): Rename from `merge_face_vector_with_property'.
15352 Add new `err_msgs' and `named_merge_points' args. Return error
15353 status. Only print error messages if ERR_MSGS is true. Don't try to
15354 do :inherit attribute validation.
15355 (merge_face_heights): Handle `unspecified' in both directions.
15356 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
15357 Call `merge_face_ref' instead of `merge_face_inheritance'.
15358 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
15359 (compute_char_face, face_at_buffer_position)
15360 (face_at_string_position): Call `merge_face_ref' instead of
15361 `merge_face_vector_with_property'.
15363 2004-06-07 Kenichi Handa <handa@m17n.org>
15365 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
15366 the necessary places.
15368 2004-06-07 Kim F. Storm <storm@cua.dk>
15370 * process.c (Fdelete_process): Undo 2004-05-28 change.
15371 Instead, call status_notify also for network process.
15372 (status_message): Use process instead of status as arg.
15373 Give messages "deleted" or "connection broken by remote peer" for
15374 an exited network process.
15375 (status_notify): Change call to status_message.
15376 (read_process_output): Increase readmax to 4096. Do not increase
15377 buffer size for datagram channels (default is now large enough).
15379 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
15381 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
15382 problem due to newly defined variable.
15384 2004-06-06 Miles Bader <miles@gnu.org>
15386 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
15387 immediately if non-interactive or not initialized.
15389 2004-06-05 Richard M. Stallman <rms@gnu.org>
15391 * minibuf.c (Fcompleting_read): Doc fix.
15393 2004-06-05 Andreas Schwab <schwab@suse.de>
15395 * macfns.c (x_create_tip_frame): Fix declaration after statement.
15397 2004-06-05 Juanma Barranquero <lektu@terra.es>
15399 * keymap.c (Fdescribe_vector): Fix docstring.
15400 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
15402 2004-06-05 Miles Bader <miles@gnu.org>
15404 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
15405 attributes have different values than the default face.
15407 2004-06-04 Eli Zaretskii <eliz@gnu.org>
15409 * xfaces.c (x_supports_face_attributes_p): Make this function
15410 conditional on HAVE_WINDOW_SYSTEM.
15411 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
15412 Don't call x_supports_face_attributes_p if it was not compiled in.
15414 2004-06-04 Miles Bader <miles@gnu.org>
15416 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
15417 from Ftty_supports_face_attributes_p.
15418 (x_supports_face_attributes_p): New function.
15419 (Ftty_supports_face_attributes_p): Function deleted.
15420 (Fdisplay_supports_face_attributes_p): New function.
15421 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
15422 (face_attr_equal_p): New function.
15423 (lface_equal_p): Use it.
15425 2004-06-03 Juanma Barranquero <lektu@terra.es>
15427 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
15428 (Vw32_color_map): Fix typo in docstring.
15429 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
15430 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
15431 Make argument names match their use in docstring.
15433 2004-06-02 Juanma Barranquero <lektu@terra.es>
15435 Work around bugs/problems with MinGW builds of graphics libraries
15436 called from MSVC builds of Emacs.
15438 * image.c (lookup_image): Make pointer to img static.
15439 (png_read_from_memory): Disable "global" optimization.
15441 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
15443 * eval.c (Fcondition_case): Fix usage. Simplify.
15445 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
15447 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15449 * macfns.c: Don't include ccl.h.
15450 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
15451 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
15453 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
15454 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
15455 display height/width.
15456 (compute_tip_xy, Vx_max_tooltip_size): Declare.
15457 (unwind_create_tip_frame, compute_tip_xy): New functions.
15458 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
15459 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
15460 and last_show_tip_args.
15462 * macgui.h [!MAC_OSX]: Include Gestalt.h.
15463 (Cursor, No_Cursor): New defines.
15464 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
15465 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
15467 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
15469 * macterm.c: Don't include Gestalt.h.
15470 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
15471 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
15472 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
15473 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
15474 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
15475 (construct_mouse_click, XTmouse_position)
15476 (x_scroll_bar_report_motion, x_calc_absolute_position)
15477 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
15478 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
15479 (note_mouse_movement): Clear the mouse face and reset the pointer
15480 shape when the pointer goes outside the frame without grabbing.
15481 (mac_front_window): New function.
15482 (mac_window_to_frame): New macro.
15483 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
15484 (do_window_activate, do_window_deactivate, do_app_resume)
15485 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
15486 (do_zoom_window, mac_do_receive_drag, XTread_socket)
15487 (mac_check_for_quit_char): Use mac_front_window and/or
15488 mac_window_to_frame.
15489 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
15490 scroll-bar click event.
15491 (mac_define_frame_cursor): Change the pointer shape.
15492 (x_free_frame_resources): Reset tip_window to NULL when it is
15494 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
15495 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
15496 (do_window_update): Don't do anything if the updated window is the
15498 (do_mouse_moved): Handle mouse movement events here (previously in
15499 XTread_socket). Clear the mouse face if
15500 dpyinfo->mouse_face_hidden is set.
15501 (do_os_event, do_events): Remove (now in XTread_socket).
15502 (XTread_socket): Immediately return if interrupt_input_blocked.
15503 Loop until all the events in the queue are processed.
15504 Rearrange codes for mouse grabbing. Add tooltip support. Include the
15505 contents of do_os_event and do_events. Remove mouse movement
15506 handling (now in do_mouse_moved). Add the case where
15507 Vmouse_highlight has an integer value.
15508 (NewMacWindow): Remove.
15509 (make_mac_frame): Do what NewMacWindow previously did. Don't do
15510 excess initializations.
15511 (make_mac_terminal_frame): Previous initializations in
15512 make_mac_frame are moved here.
15513 (mac_initialize_display_info):
15514 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
15516 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
15517 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
15519 2004-05-29 Richard M. Stallman <rms@gnu.org>
15521 * lisp.h (truncate_undo_list): Update decl.
15523 * alloc.c (undo_outer_limit): New variable.
15524 (syms_of_alloc): Defvar it.
15525 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
15527 * undo.c (truncate_undo_list): New arg LIMITSIZE.
15529 * alloc.c (lisp_align_malloc): Check for base == 0
15530 regardless of HAVE_POSIX_MEMALIGN.
15531 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
15533 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15535 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
15536 (marker_blocks_pending_free): Remove.
15537 (Fgarbage_collect): Sweep after cleaning up undo-lists.
15538 Mark the undo lists after claning them up.
15539 Don't free block in marker_blocks_pending_free.
15540 (mark_buffer): Don't mark undo_list.
15541 (gc_sweep): Sweep hash-tables and strings first.
15542 Do free marker blocks that are empty.
15544 2004-05-28 Jim Blandy <jimb@redhat.com>
15546 * regex.c (print_partial_compiled_pattern): Add missing 'break'
15547 after 'case wordend'. For symbeg and symend, print to stderr,
15548 like the other cases.
15550 2004-05-28 Noah Friedman <friedman@splode.com>
15552 * process.c (Fdelete_process): Do not call remove_process.
15554 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15556 * alloc.c (struct backtrace): Remove.
15557 (Fgarbage_collect): Use the new mark_backtrace.
15559 * eval.c (mark_backtrace): New function.
15561 * minibuf.c (run_exit_minibuf_hook): New function.
15562 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
15563 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
15565 2004-05-27 Kim F. Storm <storm@cua.dk>
15567 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
15568 over display properties, e.g. images, that replace buffer text.
15570 2004-05-25 Kim F. Storm <storm@cua.dk>
15572 * alloc.c (marker_blocks_pending_free): New var.
15573 (gc_sweep): Store free marker blocks on that list.
15574 (Fgarbage_collect): Free them after undo-list cleanup.
15576 * process.c (wait_reading_process_input): Check connect_wait_mask
15577 before actually accepting connection in case it has already been
15578 accepted due to recursion.
15580 2004-05-23 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
15582 * coding.c (Fset_safe_terminal_coding_system_internal):
15583 Set suppress_error in safe_terminal_coding, not terminal_coding.
15585 2004-05-22 Richard M. Stallman <rms@gnu.org>
15587 * alloc.c (Fmake_string): Doc fix.
15589 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
15590 and the alist pairs too.
15592 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
15594 * emacs.c (main): Update copyright year.
15596 * fileio.c (Fread_file_name): Expand DIR if not absolute.
15598 * insdel.c (del_range_2, replace_range): Don't write an anchor
15599 if the gap is empty.
15601 * xdisp.c (try_scrolling): If scroll-up-aggressively or
15602 scroll-down-aggressively is small but positive, put point
15603 near the screen edge.
15605 2004-05-22 Juanma Barranquero <lektu@terra.es>
15607 * keymap.c (Fdefine_key): Doc fix.
15609 2004-05-22 Kim F. Storm <storm@cua.dk>
15611 * alloc.c (struct backtrace): Add debug_on_exit member.
15612 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
15613 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
15614 the removed cons cells.
15615 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
15616 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
15617 any cons cells pointing to unallocated stings.
15618 Do not lisp_free any marker blocks, as there may still be pointers
15619 to them from buffer undo lists at this stage of GC.
15621 * keyboard.c (struct backtrace): Add debug_on_exit member.
15622 (Fcommand_execute): Clear it.
15624 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
15626 * intervals.c (lookup_char_property): Do not prematurely return nil.
15628 2004-05-19 Jim Blandy <jimb@redhat.com>
15630 Add support for new '\_<' and '\_>' regexp operators, matching the
15631 beginning and end of symbols.
15633 * regex.c (enum syntaxcode): Add Ssymbol.
15634 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
15635 (re_opcode_t): New opcodes `symbeg' and `symend'.
15636 (print_partial_compiled_pattern): Print the new opcodes properly.
15637 (regex_compile): Parse the new operators.
15638 (analyse_first): Skip sym(beg|end) (they match only the empty string).
15639 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
15640 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
15641 (re_match_2_internal): Match symbeg and symend.
15643 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
15645 2004-05-19 Kim F. Storm <storm@cua.dk>
15647 * .gdbinit (xsymbol): Fix last change.
15649 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
15651 * .gdbinit (xprintstr): New fun.
15652 (xstring, xprintsym): Use it.
15654 * w32proc.c (create_child): Use INTMASK.
15656 * alloc.c (Fgarbage_collect): Do all the marking before flushing
15657 unmarked elements of the undo list.
15659 2004-05-18 David Ponce <david@dponce.com>
15661 * print.c (print): Reset print_depth before to call print_object.
15663 2004-05-18 Jason Rumney <jasonr@gnu.org>
15665 * w32console.c: Prefix RIF functions with w32con_ to avoid
15666 namespace clash with functions in term.c and w32term.c.
15668 * w32menu.c (add_menu_item, w32_menu_display_help)
15669 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
15671 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
15673 2004-05-18 Eli Zaretskii <eliz@gnu.org>
15675 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
15677 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
15679 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
15682 2004-05-18 Kim F. Storm <storm@cua.dk>
15684 * blockinput.h (INPUT_BLOCKED_P): New macros.
15686 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
15687 (Ftop_level): Unblock input if blocked.
15689 * buffer.h (GET_OVERLAYS_AT): New macro.
15690 * msdos.c (IT_note_mouse_highlight): Use it.
15691 * textprop.c (get_char_property_and_overlay): Use it.
15692 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
15693 * xfaces.c (face_at_buffer_position): Use it.
15695 * print.c (print_object): Increase buf size.
15697 2004-05-17 Jason Rumney <jasonr@gnu.org>
15699 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
15700 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
15701 Lisp_Object using i member.
15702 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
15703 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
15706 * w32proc.c (create_child): Use make_number instead of masking pid.
15708 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
15709 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
15710 Use EQ to compare Lisp_Objects.
15711 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
15713 * w32term.c (w32_num_mouse_buttons): Rename from
15714 Vw32_num_mouse_buttons and make it an int.
15716 * w32.c (init_environment): Use it.
15718 * w32fns.c (w32_wnd_proc): Likewise.
15720 * w32proc.c (w32_pipe_read_delay): Rename from
15721 Vw32_pipe_read_delay and make it an int.
15723 * w32.c (_sys_read_ahead): Use it.
15725 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
15727 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
15729 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
15730 (key_event): Don't mix Lisp_Object and int.
15732 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
15734 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
15735 modifiers in language change event.
15737 2004-05-17 Kim F. Storm <storm@cua.dk>
15739 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
15740 Such objects may be freed markers which still exist on an undo list.
15742 2004-05-16 Juanma Barranquero <lektu@terra.es>
15744 * data.c (Fset_default): Make argument names match their use in
15747 2004-05-15 Andreas Schwab <schwab@suse.de>
15749 * emacs.c (gdb_array_mark_flag): Define.
15750 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
15752 2004-05-15 Eli Zaretskii <eliz@gnu.org>
15754 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
15755 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
15756 defined for the MS-DOS build.
15758 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
15760 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
15762 2004-05-14 Kenichi Handa <handa@m17n.org>
15764 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
15766 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15768 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
15769 section to frame.c section.
15770 (Fxw_display_color_p, Fx_file_dialog): Declare if
15771 HAVE_WINDOW_SYSTEM defined.
15773 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
15775 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
15777 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
15778 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
15779 (XTread_socket): Fix int/Lisp_Object mixup.
15780 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
15782 * macterm.h (struct frame, struct face, struct image)
15783 (display_x_get_resource, Fx_display_color_p)
15784 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
15787 2004-05-14 Kim F. Storm <storm@cua.dk>
15789 * process.c (wait_reading_process_input): Make reentrant.
15790 Make Available and Connecting non-static. Save and restore value
15791 of waiting_for_user_input_p.
15793 2004-05-13 Kim F. Storm <storm@cua.dk>
15795 * keyboard.c (mark_kboards): Don't mark x and y members
15796 that are overloaded in selection request events.
15798 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15800 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
15802 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
15804 * window.c (Fdisplay_buffer, Fsplit_window)
15805 (split-height-threshold): Doc fix.
15807 2004-05-13 Juanma Barranquero <lektu@terra.es>
15809 * xfaces.c (Ftty_supports_face_attributes_p)
15810 (Finternal_copy_lisp_face): Fix typo in docstring.
15811 (Finternal_get_lisp_face_attribute): Fix docstring.
15813 2004-05-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15815 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
15817 2004-05-11 Steven Tamm <steventamm@mac.com>
15819 * macfns.c (Fx_create_frame): Default to using tool-bar by
15820 setting tool-bar-lines to 1 in default-frame-alist.
15822 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15824 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
15825 (xpm_get_color_table_v, xpm_make_color_table_h)
15826 (xpm_put_color_table_h, xpm_get_color_table_h)
15827 (xpm_str_to_color_key, xpm_load_image, xpm_load)
15828 (syms_of_image): Support XPM on Carbon Emacs. Does not
15829 depend on libXpm, but only supports XPM version 3 without extensions.
15831 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15833 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
15834 instead of FRAME_X_P
15836 2004-05-11 Kim F. Storm <storm@cua.dk>
15838 * process.c (read_process_output): Grow decoding_buf when needed;
15839 this could cause a crash in allocate_string and compact_small_strings.
15841 2004-04-29 Jim Blandy <jimb@redhat.com>
15843 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
15844 against proper opcode.
15846 2004-05-10 Juanma Barranquero <lektu@terra.es>
15848 * process.c (Fstart_process): Fix docstring.
15850 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
15851 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
15852 (Fsplit_char, Fchar_charset): Make argument names match their use
15855 2004-05-10 Richard M. Stallman <rms@gnu.org>
15857 * print.c (print_preprocess): Use being_printed, loop_count and
15858 halftail to detect overdeep nesting and cyclic cdr chains.
15860 2004-05-10 Andreas Schwab <schwab@suse.de>
15862 * lisp.h (Fmake_symbolic_link): Declare.
15864 * fileio.c (Frename_file): Remove extra argument in call to
15865 Fmake_symbolic_link.
15867 2004-05-10 Kim F. Storm <storm@cua.dk>
15869 * xdisp.c (calc_line_height_property): Use string position when
15870 object is a string.
15872 2004-05-10 Kenichi Handa <handa@m17n.org>
15874 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
15875 inhibit-modification-hooks to t temporarily before calling
15878 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
15879 inhibit-modification-hooks to t temporarily before calling
15882 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
15883 inhibit-modification-hooks to t temporarily before calling
15886 * fns.c (count_combining): Delete it.
15887 (concat): Don't check combining bytes.
15889 2004-05-09 Jason Rumney <jasonr@gnu.org>
15891 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
15892 (globals_of_w32fns): Set it.
15894 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
15896 * data.c (Fquo): Simplify.
15898 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
15900 * data.c (Fquo): If any argument is float, do the computation in
15903 2004-05-08 Juanma Barranquero <lektu@terra.es>
15905 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
15906 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
15907 Fix spelling of Emacs on docstring.
15908 (Fset_process_coding_system, Fprocess_coding_system)
15909 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
15910 Make argument names match their use in docstring.
15911 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
15914 * editfns.c (Finsert_buffer_substring): Make argument names match their
15917 * syntax.c (Fmodify_syntax_entry): Fix docstring.
15919 2004-05-07 Steven Tamm <steventamm@mac.com>
15921 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
15922 around call to ReceiveEvent to avoid certain crashes.
15924 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15926 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
15927 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
15928 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
15929 Save/restore the current graphics port and device handle when
15930 drawing into an offscreen graphics world.
15932 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
15933 (gif_load): Likewise.
15935 2004-05-07 Juanma Barranquero <lektu@terra.es>
15937 * window.c (Fset_window_buffer): Fix docstring.
15939 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
15941 * emacs.c (main) [VMS]: Fix var ref.
15943 2004-05-06 Romain Francoise <romain@orebokech.com>
15945 * data.c (Fsetq_default): Fix docstring.
15947 2004-05-06 Jason Rumney <jasonr@gnu.org>
15949 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
15950 to avoid name clash.
15952 2004-05-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15954 * fileio.c (barf_or_query_if_file_exists): Use lstat.
15955 (Frename_file): Handle renaming of symlinks across file systems.
15956 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
15958 2004-05-04 Kim F. Storm <storm@cua.dk>
15960 * xdisp.c (Qtotal): New var.
15961 (syms_of_xdisp): Intern and staticpro it.
15962 (calc_line_height_property): New arg total. Set it if
15963 line-spacing property has format (total . VALUE).
15964 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
15965 Handle total line-spacing property.
15967 2004-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15969 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
15970 "under" scroll bar when size/position changes.
15972 2004-05-03 Jason Rumney <jasonr@gnu.org>
15974 * makefile.nt: Remove.
15976 2004-05-02 Eli Zaretskii <eliz@gnu.org>
15978 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
15979 Avoid compiler warnings.
15981 * Makefile.in (region-cache.o): Depend on config.h.
15983 2004-05-02 Romain Francoise <romain@orebokech.com>
15985 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
15986 with continuation lines, too.
15988 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
15990 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
15992 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
15994 * xdisp.c (calc_line_height_property): YAILOM (yet another
15995 int/Lisp_Object mixup).
15997 2004-05-01 Eli Zaretskii <eliz@gnu.org>
15999 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
16000 undo bad effect of pack(4) in some versions of system headers.
16002 2004-05-01 Jason Rumney <jasonr@gnu.org>
16004 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
16006 2004-04-30 Kim F. Storm <storm@cua.dk>
16008 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
16009 (syms_of_buffer) <cursor-type>: Doc fix.
16011 * dispextern.h (struct it): Remove member use_default_face.
16012 Add members override_ascent, override_descent, override_boff.
16014 * xdisp.c (init_iterator): Handle line-spacing float value.
16015 Initialize override_ascent member.
16016 (append_space_for_newline): Reset override_ascent.
16017 Remove use_default_face.
16018 (calc_line_height_property): New function to calculate value of
16019 line-height and line-spacing properties. Look at overlays, too.
16020 Set override_ascent, override_descent, override_boff members when
16021 using another face than the current face. Float values are now
16022 relative to the frame default font, by default; accept a cons
16023 of ratio and face name to specify value relative to a specific face.
16024 (x_produce_glyphs): Use calc_line_height_property.
16025 Use override_ascent etc. when set to handle different face heights.
16026 A negative line-spacing property value is interpreted as a total
16027 line height, rather than inter-line spacing.
16028 (note_mouse_highlight): Allocate room for 40 overlays initially.
16030 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
16032 * data.c (Fsubr_name): New fun.
16033 (syms_of_data): Defsubr it.
16035 2004-04-29 Kim F. Storm <storm@cua.dk>
16037 * xdisp.c (null_glyph_slice): New var.
16038 (append_glyph, append_composite_glyph, append_stretch_glyph):
16039 Use it to initialize glyph slice.
16041 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
16043 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
16044 (on_hot_spot_p): Make sure we always return a value.
16045 (Flookup_image_map): Remove unused var ix and iy.
16046 (note_mode_line_or_margin_highlight): Remove unused var `image'.
16048 2004-04-27 Eli Zaretskii <eliz@gnu.org>
16050 * msdos.c (init_environment): If one of the TMP... environment
16051 variables is set to a drive letter without a trailing slash,
16054 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
16056 * editfns.c (lisp_time_argument): Provide externally.
16058 * fileio.c (Fset_file_times): New function.
16059 (syms_of_fileio): Intern and staticpro it.
16061 2004-04-27 Kim F. Storm <storm@cua.dk>
16063 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
16064 header line strings.
16066 * dispextern.h (struct it): New member use_default_face.
16068 * xdisp.c (Qline_height): New variable.
16069 (syms_of_xdisp): Intern and staticpro it.
16070 (append_space_for_newline): Partially undo 2004-04-25 change;
16071 add default_face_p arg, and restore callers.
16072 Clear it->use_default_face after use.
16073 (x_produce_glyphs): Set default font for ascii char if
16074 it->use_default_font is set. Change line-spacing property to set
16075 just extra line spacing. Handle new line-height property.
16077 2004-04-26 Andreas Schwab <schwab@suse.de>
16079 * print.c (print_object): Print non-ascii characters in bool
16080 vector representation as octal escapes.
16082 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
16083 * print.c (print_object): Use it instead of BITS_PER_CHAR for
16085 * lread.c (read1): Likewise.
16086 * alloc.c (Fmake_bool_vector): Likewise.
16087 * data.c (Faref, Faset): Likewise.
16088 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
16089 (mapcar1): Likewise.
16091 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
16093 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
16095 2004-04-26 Miles Bader <miles@gnu.org>
16097 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
16099 2004-04-26 Juanma Barranquero <lektu@terra.es>
16101 * buffer.c (Fpop_to_buffer): Fix docstring.
16103 2004-04-26 Steven Tamm <steventamm@mac.com>
16105 * lread.c (init_lread): Don't display missing lisp directory
16106 warnings with Carbon Emacs because self-contained bundled Emacs
16107 may be built without correct installation path.
16109 2004-04-25 Kim F. Storm <storm@cua.dk>
16111 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
16113 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
16115 * xdisp.c (append_space_for_newline): Rename from append_space.
16116 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
16117 (x_produce_glyphs): Handle line-spacing property on newline char.
16118 If value is t, adjust ascent and descent to fit current row height.
16119 If value is an integer or float, set extra_line_spacing to integer
16120 value, or to float value x current line height.
16122 2004-04-23 Kenichi Handa <handa@m17n.org>
16124 * fontset.c (Finternal_char_font): If POSITION is nil, return
16125 font for displaying CH with the default face.
16127 2004-04-23 Juanma Barranquero <lektu@terra.es>
16129 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
16131 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16133 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
16134 Don't make assumptions about the relative place of i and val.
16135 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
16137 2004-04-21 Kim F. Storm <storm@cua.dk>
16139 * dispextern.h (struct glyph_slice): New struct.
16140 (struct glyph): New member slice.
16141 (GLYPH_SLICE_EQUAL_P): New macro.
16142 (GLYPH_EQUAL_P): Use it.
16143 (struct glyph_string): New member slice.
16144 (struct it_slice): New struct.
16145 (struct it): New member slice, add member to stack too.
16146 New member constrain_row_ascent_descent_p.
16147 (image_ascent): Add prototype.
16149 * dispnew.c (buffer_posn_from_coords): Return full image width
16150 and height even for image slices (posn is relative to full image).
16151 (marginal_area_string): Adjust x0,y0 for image slice.
16153 * image.c (image_ascent): Add slice arg; calculate ascent for
16154 image slice (or full image).
16156 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
16157 (syms_of_keyboard): Defsubr them.
16159 * lisp.h (pos_visible_p): Fix prototype.
16161 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
16162 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
16163 (x_draw_image_foreground, x_draw_image_relief)
16164 (x_draw_image_foreground_1, x_draw_image_glyph_string):
16165 Draw sliced images.
16167 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
16168 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
16169 (x_draw_image_foreground, x_draw_image_relief)
16170 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
16171 Draw sliced images.
16173 * w32term.h (image_ascent): Remove prototype.
16175 * window.c (Fpos_visible_in_window_p): Return pixel position if
16176 PARTIALLY arg is non-nil. Simplify. Doc fix.
16177 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
16178 to return/set vscroll in pixels.
16180 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
16182 * xdisp.c (Qslice): New variable.
16183 (syms_of_xdisp): Intern and staticpro it.
16184 (pos_visible_p): Return pixel position in new x and y args.
16185 (init_iterator): Reset it->slice info.
16186 (handle_display_prop): Parse (slice ...) property.
16187 (push_it, pop_it): Save/restore slice info.
16188 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
16189 force repositioning of tall row if window is vscrolled, as that
16190 would reset vscroll.
16191 (append_space): Set it->constrain_row_ascent_descent_p to avoid
16192 increasing row height if row is non-empty.
16193 (fill_image_glyph_string): Copy slice info.
16194 (take_vertical_position_into_account): Simplify.
16195 (produce_image_glyph): Handle iterator slice info, setup glyph
16196 slice info. Do not force minimum line height.
16197 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
16198 do not increase height (ascent/descent) of non-empty row when
16199 adding normal character glyph; instead reduce glyph ascent/descent
16200 appropriately; if row is higher than current glyph, adjust glyph
16201 descent/ascent to reposition glyph within the existing row.
16202 Likewise, when char is newline, only set ascent/descent if row is
16204 (note_mouse_highlight): Handle hotspots with sliced image.
16206 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
16207 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
16208 (x_draw_image_foreground, x_draw_image_relief)
16209 (x_draw_image_foreground_1, x_draw_image_glyph_string):
16210 Draw sliced images.
16212 * xterm.h (image_ascent): Remove prototype.
16214 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
16216 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
16218 2004-04-20 John Paul Wallington <jpw@gnu.org>
16220 * fns.c (Fassoc, Feql): Fix indentation.
16222 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
16224 2004-04-19 John Paul Wallington <jpw@gnu.org>
16226 * fns.c (Feql): New function.
16227 (syms_of_fns): Defsubr it.
16229 2004-04-18 Jason Rumney <jasonr@gnu.org>
16231 * w32select.c (Fw32_set_clipboard_data): Get sequence number
16232 after closing the clipboard.
16234 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
16236 * buffer.c (Fbuffer_base_buffer): Doc fix.
16238 2004-04-17 Kim F. Storm <storm@cua.dk>
16240 * keymap.c (Fkey_description): Add optional PREFIX arg.
16241 Combine prefix with KEYS to make up the full key sequence to describe.
16242 Correlate meta_prefix_char and following (simple) key to describe
16243 as meta modifier. All callers changed.
16244 (describe_map): Rename arg `keys' to `prefix'. Remove local
16245 `elt_prefix' var. Use Fkey_description with prefix instead of
16246 elt_prefix combined with Fsingle_key_description.
16247 (describe_vector): Declare static. Replace arg `elt_prefix' with
16248 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
16249 if !KEYMAP_P. Use Fkey_description with prefix instead of
16250 Fsingle_key_description.
16252 * keymap.h (Fkey_description): Fix prototype.
16253 (describe_vector): Remove prototype.
16255 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
16257 * image.c (PNG_BG_COLOR_SHIFT): Remove.
16258 (png_load): Fix calculation of transparent background color on X
16261 2004-04-16 Juanma Barranquero <lektu@terra.es>
16263 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
16264 not too large before computing how much to scroll.
16266 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
16268 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
16270 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
16272 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
16273 Add hyperlink to Elisp manual to the docstring.
16275 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
16277 * callint.c (fix_command): Use XDCR.
16279 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
16281 * window.c (Fget_lru_window): Doc fix.
16283 2004-04-14 Kim F. Storm <storm@cua.dk>
16285 * editfns.c (Fformat): Fix allocation size of precision array.
16287 * dispnew.c (update_window): Only set changed_p if
16288 scrolling_window actually did scroll.
16289 (scrolling_window): Only return 1 if we actually did scroll.
16291 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
16292 height to glyph height when cursor row is not fully visible.
16293 (make_cursor_line_fully_visible): Add FORCE_P arg to return
16294 failure in case row is higher than window. Callers changed.
16295 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
16296 Try to scroll partially visible, higher-than-window cursor row.
16297 (redisplay_window): Always try to scroll partially visible,
16298 higher-than-window cursor row - both initially and again with
16299 centering_position = 0.
16300 Clear desired matrix before retrying with centering_position = 0.
16302 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
16304 * syntax.c (scan_lists): Simplify backward string scan.
16305 Fix off-by-one boundary check for string and comment fences.
16307 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
16309 * sheap.c, unexcw.c: New files.
16311 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
16313 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
16314 base buffer has been killed. Correct the error message if the
16315 base buffer does not exist.
16317 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
16319 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
16320 Cygwin itself. Add support for Xaw3d scrollbars.
16322 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
16324 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
16326 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
16327 before Cygwin unexec.
16329 * Makefile.in: Link changes for Cygwin unexec() support.
16331 2004-04-12 Andreas Schwab <schwab@suse.de>
16333 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
16335 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
16337 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
16338 IGNORE argument equals NAME. Doc fix.
16340 2004-04-11 Masatake YAMATO <jet@gyve.org>
16342 * buffer.c (fix_start_end_in_overlays): Make overlays
16343 empty if they are backwards.
16345 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16347 * xfaces.c (face_color_supported_p): Fix compilation without X11.
16349 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
16351 * doc.c (Fsnarf_documentation): Ignore new file name entries.
16353 2004-04-06 Kim F. Storm <storm@cua.dk>
16355 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
16356 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
16358 * w32term.c (w32_read_socket): Set mouse_face_hidden after
16359 clearing highlight.
16361 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
16363 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
16364 clearing highlight.
16366 * indent.c (vmotion): Do not reserve one column for continuation
16367 marks on window frames.
16369 2004-04-04 Eli Zaretskii <eliz@gnu.org>
16371 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
16374 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16376 * .gdbinit-union: Remove.
16378 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
16379 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
16380 ($nonvalbits): Remove.
16381 ($valmask): Set it by calling xreload to avoid redundancy.
16383 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
16384 (gdb_emacs_intbits): Remove.
16386 2004-03-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16388 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
16390 2004-03-30 Kenichi Handa <handa@m17n.org>
16392 * editfns.c (Fformat): Fix initialization of the array info.
16394 2004-03-30 Kim F. Storm <storm@cua.dk>
16396 * xterm.c (x_mouse_click_focus_ignore_position): New var.
16397 (syms_of_xterm): DEFVAR_BOOL it.
16398 (ignore_next_mouse_click_timeout): New var.
16399 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
16400 Use it to filter mouse clicks following focus event.
16402 2004-03-29 David Ponce <david@dponce.com>
16404 * callint.c (Fcall_interactively): Fix last change.
16406 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
16408 * eval.c (Fcommandp): Simplify.
16410 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
16411 Extend to handle all kinds of functions.
16413 * lisp.h (Finteractive_form): Declare.
16415 * callint.c (Fcall_interactively): Use it.
16417 2004-03-26 Kim F. Storm <storm@cua.dk>
16419 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
16420 to catch errors in calc_pixel_width_or_height during redisplay.
16422 2004-03-26 Masatake YAMATO <jet@gyve.org>
16424 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
16426 * lisp.h (fix_start_end_in_overlays): Likewise.
16428 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
16430 * editfns.c (Ftranspose_regions): Likewise.
16432 2004-03-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16434 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
16436 2004-03-19 Richard M. Stallman <rms@gnu.org>
16438 * s/sol2-6.h: Delete previous change.
16440 2004-03-19 Kim F. Storm <storm@cua.dk>
16442 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
16443 to_charpos corresponds to newline in right fringe. Use local
16444 BUFFER_POS_REACHED_P macro.
16446 2004-03-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16448 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
16449 to compile on non-window system.
16451 2004-03-19 Kim F. Storm <storm@cua.dk>
16453 * dispextern.h (calc_pixel_width_or_height): Add prototype.
16455 * image.c (Qcenter): Move to xdisp.c.
16457 * xdisp.c (Qcenter): Declare here.
16458 (syms_of_xdisp): Intern and staticpro it.
16459 (handle_single_display_prop): Allow space display property on all
16461 (display_mode_line): Set mode_line_p before displaying line.
16462 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
16463 handling. Remove complex cases for fringes and scroll-bars.
16464 Add left, right, and center alignment positions. Add text (area)
16465 width/height. Return width or height for image specs.
16466 (produce_stretch_glyph): Improve handling of :align-to. Is now
16467 relative to left of text area by default, but other base offsets
16468 can be specified -- also for text lines.
16470 * term.c (produce_glyphs): Handle IT_STRETCH.
16471 (produce_stretch_glyph): New function to handle space width and
16472 align-to display properties on non-window systems.
16474 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16476 * fileio.c (Fread_file_name): Set completion-ignore-case for
16477 case-insensitive systems.
16479 2004-03-14 Masatake YAMATO <jet@gyve.org>
16481 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
16482 when keymap and cursor are setup.
16484 2004-03-14 Steven Tamm <steventamm@mac.com>
16486 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
16488 2004-03-14 Kim F. Storm <storm@cua.dk>
16490 * dispextern.h (x_find_image_file): Add prototype.
16492 * image.c (x_find_image_file): Make extern.
16494 * xfns.c (x_find_image_file): Remove prototype.
16496 2004-03-13 Eli Zaretskii <eliz@gnu.org>
16498 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
16500 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
16502 2004-03-12 Richard M. Stallman <rms@gnu.org>
16504 * fns.c (internal_equal): New arg PROPS controls comparing
16505 text properties. All callers changed.
16506 (Fequal_including_properties): New function.
16507 (syms_of_fns): defsubr it.
16509 2004-03-12 Kim F. Storm <storm@cua.dk>
16511 Fix image support on MAC. From YAMAMOTO Mitsuharu.
16513 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
16514 (image_background, image_background_transparent): Fix prototypes.
16516 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
16518 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
16519 (x_query_font, x_find_ccl_program, x_set_window_size)
16520 (x_make_frame_visible, mac_initialize, XCreatePixmap)
16521 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
16522 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
16524 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
16525 (x_query_font, x_find_ccl_program, x_set_window_size)
16526 (x_make_frame_visible, mac_initialize, XCreatePixmap)
16527 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
16528 (mac_draw_line_to_pixmap): Add prototypes.
16530 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16532 * macterm.c (XTread_socket): Fix mouse click on tool bar.
16534 2004-03-11 Kim F. Storm <storm@cua.dk>
16536 * dispextern.h: Move image related prototypes from xfns.c section
16537 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
16540 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
16541 Move gtkutil.o to new GTK_OBJ list.
16542 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
16543 (GTK_OBJ) [USE_GTK]: New declaration.
16544 (obj): Add $(GTK_OBJ) to list.
16546 2004-03-11 Steven Tamm <steventamm@mac.com>
16548 * image.c [MAC_OSX]: Include sys/stat.h.
16550 * macfns.c (syms_of_macfns): Remove definitions of things now
16551 defined in image.c.
16553 2004-03-11 Kim F. Storm <storm@cua.dk>
16555 The following changes consolidates the identical/similar image
16556 support code previously found in xfns.c, w32fns.c, and macfns.c
16557 into a new file image.c.
16559 * makefile.w32-in (OBJ1): Add image.o.
16560 ($(BLD)/image.$(O)): Add dependencies.
16562 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
16563 (image.o): Add dependencies.
16565 * image.c: New file with consolidated image support code.
16566 (COLOR_TABLE_SUPPORT): New define to control whether
16567 color table support is available (X only).
16568 (Bitmap_Record): Common name for x_bitmap_record,
16569 w32_bitmap_record, and mac_bitmap_record.
16570 (XImagePtr): Common name for pointer to XImage or equivalent.
16571 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
16572 to XImagePtr on X+MAC, and to HDC on W32.
16573 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
16574 (NO_PIXMAP): Common name for "None" or equivalent.
16575 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
16576 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
16577 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
16578 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
16579 Define with suitable equivalents on W32 and MAC for code sharing.
16580 (XDrawLine): Define on MAC for code sharing.
16581 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
16582 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
16583 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16584 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16585 (x_reference_bitmap, x_create_bitmap_from_data)
16586 (x_create_bitmap_from_file, x_destroy_bitmap)
16587 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16588 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16589 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16590 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16591 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16592 (define_image_type, lookup_image_type, valid_image_p)
16593 (image_error, enum image_value_type, struct image_keyword)
16594 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16595 (make_image, free_image, prepare_image_for_display, image_ascent)
16596 (four_corners_best, image_background, image_background_transparent)
16597 (x_clear_image_1, x_clear_image, x_alloc_image_color)
16598 (make_image_cache, free_image_cache, clear_image_cache)
16599 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16600 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16601 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16602 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
16603 (init_image_func_pointer, image_load_quartz2d)
16604 (struct ct_color, init_color_table, free_color_table)
16605 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16606 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16607 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16608 (x_disable_image, x_build_heuristic_mask)
16609 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16610 (TIFF support, GIF support, Ghostscript support): Consolidate image
16611 code from xfns.c, w32fns.c, and macfns.c.
16612 (syms_of_image): Consolidate image related symbol setup here.
16613 (init_image): Consolidate image related initializations here.
16615 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
16616 and init_image. Remove call to init_xfns.
16618 * macterm.h (struct mac_bitmap_record): Add file member.
16619 Not currently used, but simplifies code sharing.
16621 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16622 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16623 (x_reference_bitmap, x_create_bitmap_from_data)
16624 (x_create_bitmap_from_file, x_destroy_bitmap)
16625 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16626 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16627 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16628 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16629 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16630 (define_image_type, lookup_image_type, valid_image_p)
16631 (image_error, enum image_value_type, struct image_keyword)
16632 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16633 (make_image, free_image, prepare_image_for_display, image_ascent)
16634 (four_corners_best, image_background, image_background_transparent)
16635 (x_clear_image_1, x_clear_image, x_alloc_image_color)
16636 (make_image_cache, free_image_cache, clear_image_cache)
16637 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16638 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16639 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16640 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
16641 (init_image_func_pointer, image_load_quartz2d)
16642 (struct ct_color, init_color_table, free_color_table)
16643 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16644 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16645 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16646 (x_disable_image, x_build_heuristic_mask)
16647 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16648 (TIFF support, GIF support, Ghostscript support): Merge with image
16649 code from xfns.c and macfns.c into image.c.
16650 (syms_of_xfns): Move image related symbols to image.c.
16651 (init_external_image_libraries, init_xfns): Remove; initialization
16652 moved to init_image in image.c.
16654 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16655 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16656 (x_reference_bitmap, x_create_bitmap_from_data)
16657 (x_create_bitmap_from_file, x_destroy_bitmap)
16658 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16659 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16660 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16661 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16662 (define_image_type, lookup_image_type, valid_image_p)
16663 (image_error, enum image_value_type, struct image_keyword)
16664 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16665 (make_image, free_image, prepare_image_for_display, image_ascent)
16666 (four_corners_best, image_background, image_background_transparent)
16667 (x_clear_image_1, x_clear_image, x_alloc_image_color)
16668 (make_image_cache, free_image_cache, clear_image_cache)
16669 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16670 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16671 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16672 (struct ct_color, init_color_table, free_color_table)
16673 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16674 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16675 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16676 (x_disable_image, x_build_heuristic_mask)
16677 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16678 (TIFF support, GIF support, Ghostscript support): Merge with image
16679 code from xfns.c and macfns.c into image.c.
16680 (syms_of_xfns): Move image related symbols to image.c.
16681 (init_external_image_libraries, init_xfns): Remove; initialization
16682 moved to init_image in image.c.
16684 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16685 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16686 (x_reference_bitmap, x_create_bitmap_from_data)
16687 (x_create_bitmap_from_file, x_destroy_bitmap)
16688 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16689 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16690 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16691 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16692 (define_image_type, lookup_image_type, valid_image_p)
16693 (image_error, enum image_value_type, struct image_keyword)
16694 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16695 (make_image, free_image, prepare_image_for_display, image_ascent)
16696 (four_corners_best, image_background, image_background_transparent)
16697 (x_clear_image_1, x_clear_image, x_alloc_image_color)
16698 (make_image_cache, free_image_cache, clear_image_cache)
16699 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16700 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16701 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16702 (struct ct_color, init_color_table, free_color_table)
16703 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16704 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16705 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16706 (x_disable_image, x_build_heuristic_mask)
16707 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16708 (TIFF support, GIF support, Ghostscript support): Merge with
16709 w32fns.c and macfns.c image code into image.c.
16710 (syms_of_xfns): Move image related symbols to image.c.
16711 (init_xfns): Remove; initialization moved to init_image in image.c.
16713 * lisp.h (syms_of_image, init_image): Add protoypes.
16714 (init_xfns): Remove prototype.
16716 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16717 (x_reference_bitmap, x_create_bitmap_from_data)
16718 (x_create_bitmap_from_file, x_destroy_bitmap)
16719 (x_create_bitmap_mask): Move prototypes from dispextern.h.
16720 (gamma_correct) [MAC_OS]: Add prototype.
16722 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16723 (x_reference_bitmap, x_create_bitmap_from_data)
16724 (x_create_bitmap_from_file, x_destroy_bitmap)
16725 (x_create_bitmap_mask): Move prototypes to dispextern.h.
16727 2004-03-09 Kenichi Handa <handa@etlken2>
16729 * coding.c (decode_coding_emacs_mule): Handle insufficent source
16732 2004-03-04 Richard M. Stallman <rms@gnu.org>
16734 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
16736 * window.c (Fdisplay_buffer): Doc fix.
16738 * buffer.c (Fpop_to_buffer): Doc fix.
16740 2004-03-03 Kim F. Storm <storm@cua.dk>
16742 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
16744 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
16746 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
16748 2004-03-02 Richard M. Stallman <rms@gnu.org>
16750 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
16752 2004-03-02 Kenichi Handa <handa@m17n.org>
16754 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
16756 2004-03-02 Kim F. Storm <storm@cua.dk>
16758 * window.h (struct window): New member overlay_arrow_bitmap.
16760 * window.c (make_window): Initialize overlay_arrow_bitmap.
16762 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
16763 implement and integrate multiple overlay arrows with redisplay.
16764 (syms_of_xdisp): DEFVAR_LISP and initialize it.
16765 (last_arrow_position, last_arrow_string): Replace by properties.
16766 (Qlast_arrow_position, Qlast_arrow_string)
16767 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
16768 (syms_of_xdisp): Intern and staticpro them.
16769 (overlay_arrow_string_or_property, update_overlay_arrows)
16770 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
16771 (overlay_arrow_at_row): New functions for multiple overlay arrows.
16772 (redisplay_internal): Use them instead of directly accessing
16773 Voverlay_arrow_position etc. for multiple overlay arrows.
16774 (mark_window_display_accurate): Use update_overlay_arrows.
16775 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
16776 (try_window_id): Use overlay_arrows_changed_p.
16777 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
16778 (display_line): Use overlay_arrow_at_row to check multiple
16779 overlay arrows, and get relevant overlay-arrow-string and
16780 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
16781 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
16782 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
16784 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
16785 (update_window_fringes): Remove unused code.
16787 2004-03-01 Jason Rumney <jasonr@gnu.org>
16789 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
16791 2004-03-01 Juanma Barranquero <lektu@terra.es>
16793 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
16795 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
16797 2004-03-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16799 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
16800 how many colors can be displayed.
16802 2004-03-01 Kenichi Handa <handa@m17n.org>
16804 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
16807 2004-02-28 Kim F. Storm <storm@cua.dk>
16809 * dispnew.c (update_window): Update header line also if there are
16810 no other changes in window (move code after set_cursor label).
16812 * lisp.h (mark_window_display_accurate): Remove prototype.
16814 * window.c (window_loop, Fforce_window_update): Force mode line
16815 updates by setting prevent_redisplay_optimizations_p and
16818 2004-02-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16820 * xfns.c (x_window): Fix indentation.
16822 * xterm.c (x_calc_absolute_position): Call x_real_positions
16823 to get WM window sizes and use those to calculate position.
16824 (x_set_offset): Remove code commented out.
16826 2004-02-28 Miles Bader <miles@gnu.org>
16828 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
16830 2004-02-28 Kim F. Storm <storm@cua.dk>
16832 * keyboard.c (kbd_buffer_store_event_hold): New function to store
16833 an event into kbd fifo, but with special handling of quit event;
16834 a quit event is saved for later, and further events are discarded
16835 until the saved quit event has been processed.
16836 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
16837 (gen_help_event): Store help event in kbd fifo.
16838 (NREAD_INPUT_EVENTS): Remove.
16839 (read_avail_input): Adapt to new read_socket_hook interface.
16840 Remove allocation and initialization of local input_event buffer,
16841 as read_socket_hook stores events directly in fifo. Allocate and
16842 initialize local hold_quit event to handle postponed quit event
16843 (and store it if set by kbd_buffer_store_event_hold).
16845 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
16846 (gen_help_event): Fix prototype.
16848 * macterm.c (XTread_socket): Remove bufp_r and
16849 numcharsp args. Add hold_quit arg.
16850 Rework to use just one, local, inev input_event. Store inev
16851 directly in fifo using kbd_buffer_store_event_hold.
16853 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
16854 (read_input_waiting): Adapt to new read_socket_hook interface.
16855 Remove allocation and initialization of local input_event buffer,
16856 as read_socket_hook stores events directly in fifo. Allocate and
16857 initialize local hold_quit event to handle postponed quit event
16858 (and store it if set by kbd_buffer_store_event_hold).
16860 * term.c (read_socket_hook): Fix arg list.
16862 * termhooks.h (read_socket_hook): Fix prototype.
16864 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
16865 numcharsp args. Add hold_quit arg.
16866 Rework to use just one, local, inev input_event. Store inev
16867 directly in fifo using kbd_buffer_store_event_hold.
16869 * w32inevt.h (w32_console_mouse_position): Fix prototype.
16871 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
16872 Add hold_quit arg. Rework to use just one, local, inev
16873 input_event. Store inev directly in fifo using
16874 kbd_buffer_store_event_hold. Update count in one place.
16875 Postpone call to gen_help_event until inev is stored; use new
16876 local do_help for this.
16877 Remove local emacs_event in handing of ButtonPress event; just use
16878 inev instead (so no reason to copy it later).
16880 * xsmfns.c (x_session_check_input): Remove numchars arg.
16882 * xterm.c (x_focus_changed, x_detect_focus_change):
16883 Remove numchars arg. Always store event into bufp arg.
16884 Return nothing. Callers changed accordingly.
16885 (glyph_rect): Simplify.
16886 (STORE_KEYSYM_FOR_DEBUG): New macro.
16887 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
16888 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
16889 (current_hold_quit) [USE_GTK]: Add.
16890 (event_handler_gdk): Adapt to new handle_one_xevent.
16891 (handle_one_xevent): Remove bufp_r and numcharsp args.
16892 Add hold_quit arg. Rework to use just one, local, inev
16893 input_event. Store inev directly in fifo using
16894 kbd_buffer_store_event_hold. Update count in one place.
16895 Postpone call to gen_help_event until inev is stored; use new
16896 local do_help for this.
16897 Simplify handling of keysyms (consolidate common code). Fix bug
16898 where count was updated with nchars instead of nbytes.
16899 Remove local emacs_event in handing of ButtonPress event; just use
16900 inev instead (so no reason to copy it later).
16901 Remove `out' label. Rename label `ret' to `done'; add various
16902 `goto done' to clarify code flow in deeply nested blocks.
16903 (x_dispatch_event): Simplify as handle_one_xevent now calls
16904 kbd_buffer_store_event itself.
16905 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
16906 arg. Call handle_one_xevent with new arglist. Store event from
16907 x_session_check_input in fifo.
16908 [USE_GTK]: Setup current_hold_quit.
16909 Decrement handling_signal before unblocking input.
16910 (x_initialize) [USE_GTK]: Initialize current_count.
16912 * xterm.h (x_session_check_input): Fix prototype.
16914 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16916 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
16918 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
16921 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
16923 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
16924 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
16925 (init_process) [MAC_OSX]: Avoid conflicts with Carbon/Carbon.h.
16926 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
16927 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
16928 (Bitmap): Remove typedef.
16929 (Pixmap): Change int to GWorldPtr.
16931 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
16933 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
16934 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
16935 New #define to extract 16-bit depth color components from unsigned
16936 long representation.
16937 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
16938 colors used for masks.
16939 (struct mac_display_info): Add color_p. Remove n_cbits.
16941 * macfns.c: Include sys/types.h and sys/stat.h.
16942 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
16943 Include QuickTime/QuickTime.h.
16944 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16945 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
16946 functions defined in macterm.c.
16947 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
16948 (ZPixmap): New #define for compatibility with xfns.c.
16949 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16950 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
16951 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
16953 (four_corners_best, x_create_x_image_and_pixmap)
16954 (x_destroy_x_image, unwind_create_frame, x_disable_image)
16955 (x_edge_detection, init_color_table, colors_in_color_table)
16956 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
16957 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
16958 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
16959 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
16960 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
16962 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
16963 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
16964 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
16965 (x_set_cursor_type, Fxw_color_values, valid_image_p)
16966 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
16967 (x_alloc_image_color, clear_image_cache, lookup_image)
16968 (x_find_image_file, xbm_read_bitmap_file_data)
16969 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
16970 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
16971 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
16972 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
16973 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
16974 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
16975 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
16977 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
16978 #if 0. Free white_relief.gc and black_relief.gc.
16979 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
16980 New functions (from xfns.c).
16981 (Fx_create_frame): Record unwind_create_frame.
16982 (Fxw_display_color_p): Use dpyinfo->color_p.
16983 (Fx_display_grayscale_p, Fx_display_planes): Don't use
16985 (Fx_display_color_cells): Use dpyinfo->n_planes;
16986 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
16987 (Qheuristic, cross_disabled_images, emboss_matrix)
16988 (laplace_matrix): New variables (from xfns.c).
16989 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
16990 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
16991 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
16992 (image_background_transparent): New function (from xfns.c).
16993 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
16994 (image_load_quicktime): Add declaration.
16995 [MAC_OSX] (image_load_quartz2d): Likewise.
16996 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
16997 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
16998 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
16999 (xbm_load_image_from_file, x_laplace_read_row)
17000 (x_laplace_write_row, pbm_read_file): Remove functions.
17001 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
17002 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
17003 (colors_in_color_table): Sync with xfns.c (although not used).
17004 (lookup_rgb_color): Don't lookup color table. Just do gamma
17006 (COLOR_INTENSITY): New #define (from xfns.c).
17007 (x_disable_image): New function (from xfns.c).
17008 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17009 (x_build_heuristic_mask): Sync with xfns.c.
17010 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17011 (HAVE_PBM): Remove #ifdef.
17012 (pbm_load): Sync with xfns.c. Set img->width and img->height
17013 before IMAGE_BACKGROUND.
17014 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
17015 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
17016 Don't enclose with #if HAVE_PNG.
17017 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
17018 symbol _CGImageCreateWithPNGDataProvider is defined.
17019 Otherwise use image_load_quicktime.
17020 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
17021 [HAVE_PNG] (png_load): Sync with xfns.c.
17022 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17023 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
17025 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
17026 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
17027 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
17028 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
17029 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
17030 (tiff_image_p, tiff_load): Don't enclose declarations with #if
17032 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
17033 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
17034 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
17035 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
17036 New functions (from xfns.c).
17037 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
17038 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
17039 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
17040 Don't enclose with #if HAVE_GIF.
17041 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
17042 animated gif. Otherwise use image_load_quicktime.
17043 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
17044 gif_DrawText to avoid conflict with QuickdrawText.h.
17045 [HAVE_GIF] (gif_load): Sync with xfns.c.
17046 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
17047 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
17048 Ghostscript is not supported yet).
17049 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
17050 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
17051 cross_disabled_images (from xfns.c). Remove #if 0 for supported
17052 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
17053 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
17054 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
17055 HAVE_PNG. Call EnterMovies to support animated gifs.
17056 Call init_image_func_pointer to bind a symbol
17057 _CGImageCreateWithPNGDataProvider if it is defined.
17059 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
17060 (x_draw_bar_cursor): Sync declaration with xterm.c.
17061 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
17062 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
17064 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
17065 (mac_draw_line_to_pixmap, XCreatePixmap)
17066 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
17067 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
17069 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
17070 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
17071 Cast bits to char *.
17072 (reflect_byte): New function (from w32fns.c).
17073 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
17074 due to byte alignment.
17075 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
17076 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
17077 (XSetForeground): Remove static (now used in macfns.c).
17078 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
17079 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
17080 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
17081 (x_draw_glyph_string_box, x_draw_image_foreground)
17082 (x_draw_image_foreground_1, x_draw_image_glyph_string)
17083 (x_draw_stretch_glyph_string, x_draw_glyph_string)
17084 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
17086 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
17087 than the xterm.c version when a strictly horizontal or vertical
17089 (XTset_terminal_window): Add static.
17090 (x_make_frame_visible): Add UNBLOCK_INPUT.
17091 (x_free_frame_resources): New funcion (from xterm.c).
17092 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
17093 occurs in tool bar area.
17094 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
17095 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
17096 Initialize image cache.
17097 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
17098 Enclose unused functions with #if 0.
17099 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
17100 (decode_mac_font_name): New function to apply code conversions
17101 from a mac font name to an XLFD font name according to its script code.
17102 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
17103 font name to a mac font name according to REGISTRY and ENCODING fields.
17104 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
17105 whose name starts with `.'.
17106 (init_font_name_table): Use decode_mac_font_name. Add both
17107 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
17108 of a font is smJapanese.
17109 (mac_do_list_fonts): New function to list fonts that match a given
17111 (x_list_fonts, XLoadQueryFont): Use it.
17112 (XLoadQueryFont): Set rbearing field for each variable width
17113 character to avoid needless redraw.
17114 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
17116 2004-02-26 Kim F. Storm <storm@cua.dk>
17118 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
17119 as read_socket_hook handler on X aborts if buffer is too small
17120 and W32 handler doesn't always check buffer limit.
17122 * xdisp.c (handle_single_display_prop): Handle left-fringe and
17123 right-fringe similar to a display margin image. Specifically,
17124 the characters having the fringe prop are no longer shown, and
17125 we use IT_IMAGE/next_element_from_image with image_id = -1 to
17126 do this. Set fringe bitmap face_id in it->face_id.
17127 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
17128 still realize it->face (i.e. the fringe bitmap face).
17130 2004-02-25 Miles Bader <miles@gnu.org>
17132 * xdisp.c (check_it): Check string/string_pos consistency.
17133 (init_iterator): Initialize string-related fields properly.
17135 2004-02-11 Miles Bader <miles@gnu.org>
17137 * xdisp.c (produce_image_glyph): Force negative descents to zero.
17139 2004-02-10 Miles Bader <miles@gnu.org>
17141 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
17142 BLOCK_INPUT can be nested, so it doesn't make much sense.
17144 2004-02-24 Michael Mauger <mmaug@yahoo.com>
17146 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
17147 (xbm_read_bitmap_data): Use unsigned char for image data.
17149 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
17151 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
17153 2004-02-22 Jason Rumney <jasonr@gnu.org>
17155 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
17156 correctly over other bitmaps.
17158 2004-02-21 Eli Zaretskii <eliz@gnu.org>
17160 * emacs.c (USAGE1): Split into two halves.
17161 (USAGE2): Second half of the old USAGE1.
17162 (USAGE3): Rename from USAGE2.
17163 (USAGE4): Rename from USAGE3.
17165 2004-02-21 Juri Linkov <juri@jurta.org>
17167 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
17168 Fix --multibyte. Move --help, --version to USAGE2. Add alias
17169 --file. Fix -f, -l. Sort options. Untabify.
17170 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
17172 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
17174 * category.c (Fdefine_category, Fcategory_docstring)
17175 (Fget_unused_category, Fset_category_table)
17176 (Fcategory_set_mnemonics): Doc fixes.
17178 2004-02-20 Kim F. Storm <storm@cua.dk>
17180 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
17181 The following changes are relative to the 2004-01-21 revision.
17182 (NREAD_INPUT_EVENTS): Define as max number of input events to read
17183 in one call to read_socket_hook. Value is 8.
17184 (read_avail_input): Separate and rework handling of read_socket_hook
17185 and non-read_socket_hook cases. Use smaller input_event buffer
17186 in read_socket_hook case, and repeat if full buffer is read.
17187 Use new local variable 'discard' to skip input after C-g.
17188 In non-read_socket_hook case, just use a single input_event, and
17189 call kbd_buffer_store_event on the fly for each character.
17191 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17193 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
17194 Remove unused `gu' alternative.
17196 2004-02-19 Andreas Schwab <schwab@suse.de>
17198 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
17201 2004-02-18 Kim F. Storm <storm@cua.dk>
17203 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
17206 2004-02-17 Kim F. Storm <storm@cua.dk>
17208 * xdisp.c (fast_find_position): Fix return value of new version;
17209 it was inverted compared to the 21.1 version.
17210 (get_window_cursor_type): Don't look at glyph if NULL.
17211 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
17213 * keyboard.c: Rework previous change; it didn't consider that the
17214 buf array was allocated on the stack.
17215 (prev_read): Remove variable.
17216 (read_avail_input_buf): New static event buffer array.
17217 (in_read_avail_input): New static variable to handle re-entrancy.
17218 (read_avail_input): Change buf to pinter to read_avail_input_buf.
17219 Use in_read_avail_input to handle re-entrance; when re-entered,
17220 fully initialize and use tmp_buf array instead of read_avail_input_buf.
17221 Do not initialize read_avail_input_buf in full here; instead assume it
17222 is always cleared on entry. To ensure that, we clear (just) the
17223 entries that were used before we return.
17224 (init_keyboard): Initialize read_avail_input_buf here.
17226 2004-02-16 Jesper Harder <harder@ifa.au.dk>
17228 * cmds.c (Fend_of_line): Doc fix.
17230 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
17232 * keyboard.c (prev_read): New static variable.
17233 (read_avail_input): Use it to zero out only those slots in buf[]
17234 that were used last time we were called.
17236 2004-02-16 Eli Zaretskii <eliz@gnu.org>
17238 * Makefile.in (obj): Move fringe.o from here...
17239 (XOBJ, MAC_OBJ): ...to here.
17241 2004-02-16 Stephen Eglen <stephen@gnu.org>
17243 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
17245 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
17247 * data.c (Fbyteorder):
17248 * fringe.c (Fdefine_fringe_bitmap):
17249 * xdisp.c (handle_single_display_prop):
17250 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
17252 2004-02-16 Jason Rumney <jasonr@gnu.org>
17254 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
17256 2004-02-15 Steven Tamm <steventamm@mac.com>
17258 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
17259 controlling emulation of a three button mouse with option and
17261 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
17262 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
17264 2004-02-15 Kim F. Storm <storm@cua.dk>
17266 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
17268 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
17269 Perform byte-swapping.
17271 2004-02-14 Kim F. Storm <storm@cua.dk>
17273 * dispextern.h (struct draw_fringe_bitmap_params): Change member
17274 bits from char to short to facilitate wider bitmaps.
17275 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
17278 * fringe.c (struct fringe_bitmap): Change member bits from char to
17279 short to facilitate 16 bits wide bitmaps. Modify all standard
17280 bitmaps accordingly.
17281 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
17282 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
17283 (draw_fringe_bitmap): Ditto.
17284 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
17285 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
17286 handle up to 16 bits wide bitmaps.
17287 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
17288 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
17290 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
17291 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
17292 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
17294 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
17295 so it is no longer necessary to expand them here.
17297 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
17299 2004-02-12 Kim F. Storm <storm@cua.dk>
17301 * window.c (Fwindow_fringes): Doc fix.
17303 2004-02-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17305 * xselect.c (x_get_foreign_selection): Add new optional parameter
17307 (Fx_get_selection_internal): Ditto, pass time_stamp to
17308 x_get_foreign_selection.
17310 * data.c (Fbyteorder): New function.
17312 2004-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17314 * atimer.c: Move include stdio.h to same place as in other files.
17316 * region-cache.c: Ditto.
17322 2004-02-09 Sam Steingold <sds@gnu.org>
17324 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
17326 2004-02-09 Kim F. Storm <storm@cua.dk>
17328 * fringe.c: New file. Move original fringe related declarations
17329 and code from dispextern.h and xdisp.c here.
17330 Rework code to support user defined fringe bitmaps, redefining
17331 standard bitmaps, ability to overlay user defined bitmap with
17332 overlay arrow bitmap, and add faces to bitmaps.
17333 (Voverflow_newline_into_fringe): Declare here.
17334 (enum fringe_bitmap_align): New enum.
17335 (..._bits): All bitmaps are now defined without bitswapping; that
17336 is now done in init_fringe_once (if necessary).
17337 (standard_bitmaps): New array with specifications for the
17338 standard fringe bitmaps.
17339 (fringe_faces): New array.
17340 (valid_fringe_bitmap_id_p): New function.
17341 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
17342 (draw_fringe_bitmap): New function which draws fringe bitmap,
17343 possibly overlaying bitmap with cursor in right fringe or the
17344 overlay arrow in the left fringe.
17345 (update_window_fringes): Do not handle overlay arrow here.
17346 Compare and copy fringe bitmap faces.
17347 (init_fringe_bitmap): New function.
17348 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
17349 define and destroy user defined fringe bitmaps.
17350 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
17351 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
17352 (syms_of_fringe): New function. Defsubr new DEFUNs.
17353 DEFVAR_LISP Voverflow_newline_into_fringe.
17354 (init_fringe_once, init_fringe): New functions.
17355 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
17357 * Makefile.in (obj): Add fringe.o.
17358 (fringe.o): New dependencies.
17360 * dispextern.h (FRINGE_ID_BITS): New definition for number of
17361 bits allocated to hold a fringe number. Increase number of bits
17362 from 4 to 8 to allow user defined fringe bitmaps.
17363 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
17364 left_user_fringe_face_id, right_user_fringe_bitmap,
17365 right_user_fringe_face_id.
17366 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
17367 Move to new file fringe.c.
17368 (MAX_FRINGE_BITMAPS): Define here.
17369 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
17370 and overlay_p. Change member which to int.
17371 (struct redisplay_interface): New members define_fringe_bitmap
17372 and destroy_fringe_bitmap.
17373 (valid_fringe_bitmap_id_p): Add prototype.
17374 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
17376 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
17378 (update_frame): Do flush_display if force_flush_display_p to
17379 ensure display (specifically fringes) are updated in a timely
17380 manner when resizing the frame by dragging the mouse.
17381 (update_window_line): Update row if overlay arrow changed.
17382 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
17383 or overlay arrow changed.
17385 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
17386 syms_of_fringe, and init_fringe.
17388 * frame.h (struct frame): New member force_flush_display_p.
17390 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
17393 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
17394 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
17395 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
17396 Use cursor color for displaying cursor in fringe.
17397 (x_redisplay_interface): Add null handlers for
17398 define_fringe_bitmap and destroy_fringe_bitmap functions.
17400 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
17401 xterm.c to handle overlayed fringe bitmaps and to use cursor color
17402 for displaying cursor in fringe.
17403 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
17404 specific functions to define and destroy fringe bitmaps in fringe_bmp.
17405 (w32_redisplay_interface): Add them to redisplay_interface.
17406 (w32_term_init): Call w32_init_fringe instead of explicitly
17407 defining fringe bitmaps in fringe_bmp array.
17408 (x_delete_display): Call w32_reset_fringes instead of explicitly
17409 destroying fringe bitmaps in fringe_bmp array.
17411 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
17412 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
17413 (continued_bits, continuation_bits, ov_bits, first_line_bits)
17414 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
17415 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
17416 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
17417 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
17418 Move fringe handling vars and code to new file fringe.c.
17419 (handle_display_prop): Handle left-fringe and right-fringe
17420 display properties; store user fringe bitmaps in iterator.
17421 (move_it_in_display_line_to): Handle cursor in fringe at eob.
17422 (clear_garbaged_frames): Set force_flush_display_p if resized.
17423 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
17424 (display_line): Handle cursor in fringe at eob.
17425 (display_line): Set row user fringe bitmaps from iterator.
17427 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
17428 Use cursor color for displaying cursor in fringe.
17429 (x_redisplay_interface): Add null handlers for
17430 define_fringe_bitmap and destroy_fringe_bitmap functions.
17432 2004-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17434 * macfns.c (Fx_change_window_property): Make doc string and
17435 parameters same as for X version.
17437 * w32fns.c (Fx_change_window_property): Ditto.
17439 2004-02-07 Kim F. Storm <storm@cua.dk>
17441 * xdisp.c (hscroll_window_tree): Position cursor near to right
17442 margin in hscrolled window when jumping to end of line (rather
17443 than centering cursor).
17445 * process.c (wait_reading_process_input): Don't do adaptive read
17446 buffering if waiting for a specific process.
17448 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
17450 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
17451 (Fread_minibuffer, Feval_minibuffer)
17452 (Fread_string, Fread_no_blanks_input)
17453 (Fcompleting_read): Doc fixes.
17454 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
17455 completion-regexp-list. Define Qcase_fold_search and staticpro it.
17456 (read_minibuf): Fix initial comment.
17457 (Ftry_completion, Fall_completions, Ftest_completion): Bind
17458 case-fold-search to the value of completion-ignore-case when
17459 checking completion-regexp-list.
17460 (Fdisplay_completion_list): Make it handle arguments that are
17463 2004-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17465 * xterm.h: Add declaration of free_frame_menubar.
17467 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
17468 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
17469 (Fx_change_window_property): Add declaration of parameters type and
17470 format. Remove unused variable cons.
17472 * xselect.c: Include stdio.h.
17474 2004-02-05 Kenichi Handa <handa@m17n.org>
17476 * fns.c (Fset_char_table_range): Fix previous change.
17478 * buffer.c (Fset_buffer_multibyte): Fix docstring.
17480 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
17482 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
17484 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
17486 * keymap.c (Vmouse_events): Rename from Vmenu_events.
17487 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
17489 2004-02-04 Kenichi Handa <handa@m17n.org>
17491 * fns.c (Fset_char_table_range): Handle charsets ascii,
17492 eight-bit-control, and eight-bit-graphic correctly.
17494 2004-02-03 Jason Rumney <jasonr@gnu.org>
17496 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
17498 * w32fns.c (x_to_w32_font): Likewise.
17500 2004-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17502 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
17503 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
17505 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
17508 * xselect.c: Include termhooks.h and X11/Xproto.h.
17509 (x_check_property_data, x_fill_property_data)
17510 (x_property_data_to_lisp, mouse_position_for_drop)
17511 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
17512 (Fx_send_client_event): Move here from xfns.c.
17513 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
17515 * xfns.c (x-send-client-message): Move to xselect.c.
17516 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
17518 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
17519 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
17520 if vector_ret_p is true.
17521 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
17523 2004-02-02 Eli Zaretskii <eliz@gnu.org>
17525 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
17526 basename of FILE relative to it, not FILE itself.
17528 2004-02-02 Kenichi Handa <handa@m17n.org>
17530 * coding.c (coding_restore_composition): Check invalid
17531 composition data more rigidly.
17533 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
17535 * fileio.c (Fread_file_name_internal): Correctly handle the case
17536 where insert-default-directory is nil.
17537 (Fread_file_name): Always return an empty string if the user exits
17538 with an empty minibuffer. Adapt the docstring accordingly.
17539 (syms_of_fileio): Adapt the docstring of insert-default-directory
17540 to the change in Fread_file_name.
17542 2004-01-29 Eli Zaretskii <eliz@gnu.org>
17544 * alloca.c [!alloca]: Fix the prototype for xfree.
17546 2004-01-29 Kenichi Handa <handa@m17n.org>
17548 * fns.c (string_char_to_byte): Optimize for ASCII only string.
17549 (string_byte_to_char): Likewise.
17551 2004-01-28 Peter Runestig <peter@runestig.com>
17553 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
17555 2004-01-27 Steven Tamm <steventamm@mac.com>
17557 * unexmacosx.c (unexec_copy): Do not copy more than was
17558 requested to prevent overwriting during unexec.
17560 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17562 * process.c (sigchld_handler): Add comment about not calling malloc.
17564 * process.h: Add extern to synch_process_termsig.
17566 2004-01-27 Steven Tamm <steventamm@mac.com>
17568 * macterm.c (make_mac_frame, make_mac_terminal_frame):
17569 Move setting of scroll bars from make_mac_frame to
17570 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
17572 2004-01-26 Richard M. Stallman <rms@gnu.org>
17574 * search.c (Freplace_match): Handle nonexistent
17575 back-references properly.
17577 2004-01-03 Richard M. Stallman <rms@gnu.org>
17579 * window.c (decode_any_window): New function.
17580 (Fwindow_height, Fwindow_width, Fwindow_edges)
17581 (Fwindow_pixel_edges, Fwindow_inside_edges)
17582 (Fwindow_inside_pixel_edges): Use decode_any_window.
17584 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17586 * process.h: synch_process_termsig new variable.
17588 * callproc.c: Define synch_process_termsig.
17589 (Fcall_process): Initiate synch_process_termsig to zero and
17590 check if non-zero and get signal name after subprocess has ended.
17592 * process.c (sigchld_handler): Set synch_process_termsig
17593 if terminated by a signal. synch_process_death setting removed.
17595 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
17597 2004-01-26 Andreas Schwab <schwab@suse.de>
17599 * print.c (print_preprocess): Declare size as EMACS_INT to not
17601 (print_object): Likewise.
17602 * alloc.c (Fpurecopy): Likewise.
17604 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
17606 * window.c (Fwindow_minibuffer_p): Doc fix.
17608 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
17610 * editfns.c (Fformat): Make both passes accept the same set of flags.
17612 2004-01-23 Kenichi Handa <handa@m17n.org>
17614 * fns.c (Fmd5): If OBJECT is a buffer different from the current
17615 one, set buffer to OBJECT temporarily.
17617 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
17619 * keyboard.c (kbd_buffer_gcpro): Remove.
17620 (kbd_buffer_store_event, clear_event, Fdiscard_input)
17621 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
17622 Don't initialize and/or maintain the variable any more. It was made
17623 redundant by my commit of 2003-06-15.
17625 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
17627 2004-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17629 * lisp.h: Add undef DECL_ALIGN.
17631 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
17633 * process.c (wait_reading_process_input) [SYNC_INPUT]:
17634 Check interrupt_input_pending explicitly.
17636 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
17638 * keyboard.c (handle_async_input): New fun,
17639 extracted from input_available_signal.
17640 (input_available_signal, reinvoke_input_signal): Use it.
17642 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
17644 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
17646 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
17647 manipulation macros for when tags are in the lower bits.
17648 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
17649 (DECL_ALIGN): New macro.
17652 * lisp.h [ENABLE_CHECKING]: Don't force union type.
17654 * s/darwin.h (__attribute__): Remove outdated workaround.
17656 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
17658 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
17659 Don't check range of malloc address.
17660 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
17662 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
17664 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
17666 2004-01-19 Kenichi Handa <handa@m17n.org>
17668 * fontset.c (fontset_font_pattern): Fix previous change.
17670 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
17672 * xdisp.c (Voverflow_newline_into_fringe)
17673 (move_it_in_display_line_to, redisplay_internal)
17674 (update_window_fringes, redisplay_window, display_line, window):
17675 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
17676 that it compiles without a window-system.
17677 * dispnew.c (direct_output_for_insert, update_window): Likewise.
17679 2004-01-16 Kim F. Storm <storm@cua.dk>
17681 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
17683 * buffer.c (init_buffer_once): Set buffer_defaults and
17684 buffer_local_flags for indicate_buffer_boundaries.
17685 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
17686 default- variable for it.
17688 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
17689 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
17690 New members exact_window_width_line_p and cursor_in_fringe_p for
17691 overflowing newlines into right fringe.
17692 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
17693 and indicate_bottom_line_p for buffer boundaries and scrolling.
17694 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
17695 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
17696 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
17697 and HOLLOW_SQUARE_BITMAP.
17698 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
17701 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
17702 instead of related indicator fields.
17703 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
17704 (direct_output_for_insert): Handle exact width lines like
17705 contined lines. Call update_window_fringes.
17706 (update_window): Call update_window_fringes.
17707 (scrolling_window): Don't skip desired rows with changed bitmaps.
17708 Check if fringe bitmaps changes when assigning scrolled rows.
17710 * xdisp.c (Voverflow_newline_into_fringe): New variable.
17711 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
17712 (move_it_in_display_line_to): Overflow newline into fringe for
17713 rows that are exactly as wide as the window.
17714 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
17715 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
17716 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
17717 (fringe_bitmaps): Add new bitmaps.
17718 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
17719 Select proper bitmap for cursor in fringe when appropriate.
17720 Handle alignment of bitmap to top or bottom of row.
17721 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
17722 done by update_window_fringes.
17723 (update_window_fringes, draw_window_fringes): New functions.
17724 (redisplay_internal): Call update_window_fringes in case only
17725 cursor row is updated.
17726 (redisplay_window): Call update_window_fringes.
17727 Explicitly call draw_window_fringes if redisplay was done using
17728 the current matrix or the overlay arrow is in the window.
17729 (try_window_reusing_current_matrix): Mark scrolled rows for
17730 fringe update (to update buffer-boundaries / scrolling icons).
17731 (find_last_unchanged_at_beg_row): Handle exact width lines line
17733 (display_line): Overflow newline into fringe for rows that are
17734 exactly as wide as the window. Don't append space for newline
17736 (notice_overwritten_cursor): Explicitly clear cursor bitmap
17737 in fringe as if it had been overwritten.
17738 (erase_phys_cursor): Erase cursor bitmap in fringe.
17739 (syms_of_xdisp): Mark show-trailing-whitespace and
17740 void-text-area-pointer as user options.
17741 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
17743 * xterm.c (x_update_window_end): Call draw_window_fringes.
17744 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
17745 in row instead of actually drawing fringe bitmaps.
17746 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
17747 (x_draw_window_cursor): Draw cursor in fringe.
17749 * w32term.c (x_update_window_end): Call draw_window_fringes.
17750 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
17751 in row instead of actually drawing fringe bitmaps.
17752 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
17753 (w32_draw_window_cursor): Draw cursor in fringe.
17755 * macterm.c (x_update_window_end): Call draw_window_fringes.
17756 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
17757 in row instead of actually drawing fringe bitmaps.
17758 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
17759 (mac_draw_window_cursor): Draw cursor in fringe.
17761 2004-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17763 * xterm.c (handle_one_xevent): Don't handle characters that are part
17764 of an old style (XLookupString) compose sequence.
17766 2004-01-15 Kenichi Handa <handa@m17n.org>
17768 * search.c (Freplace_match): Use make_multibyte_string or
17769 make_unibyte_string according to the buffer multibyteness.
17771 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
17773 * alloc.c (struct interval_block, struct string_block)
17774 (struct symbol_block, struct marker_block, live_string_p)
17775 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
17776 Better preserve alignment for objects in blocks.
17777 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
17779 * lread.c (defvar_per_buffer): Remove dead declaration.
17781 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
17784 2004-01-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17786 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
17787 if a key press should pop down. Only pop down if a key is pressed
17788 outside the menu/dialog.
17789 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
17790 popup_get_selection.
17791 (create_and_show_dialog): Pass 1 for down_on_keypress to
17792 popup_get_selection.
17794 2004-01-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17796 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
17797 BLOCK/UNBLOCK_INPUT.
17799 2004-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17801 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
17804 2004-01-08 Kenichi Handa <handa@m17n.org>
17806 * editfns.c (Fformat): Fix '&' to '&&'.
17808 2004-01-08 Andreas Schwab <schwab@suse.de>
17810 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
17811 size if PSEUDOVECTOR_FLAG is set.
17813 2004-01-07 Kenichi Handa <handa@m17n.org>
17815 * charset.c (Fdeclare_equiv_charset): Fix docstring.
17817 * fontset.c (fontset_ref_via_base): Fix previous change.
17819 2004-01-07 Kim F. Storm <storm@cua.dk>
17821 * process.c (read_process_output): Only activate adaptive
17822 buffering if we read less than 256 bytes at a time.
17824 2004-01-06 Kim F. Storm <storm@cua.dk>
17826 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
17827 object and image object. Return glyph width and height.
17828 (mode_line_string, marginal_area_string): Ditto.
17830 * dispextern.h (buffer_posn_from_coords, mode_line_string)
17831 (marginal_area_string): Fix prototypes.
17833 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
17834 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
17835 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
17837 * keyboard.c (make_lispy_position): Use modified mode_line_string,
17838 buffer_posn_from_coords, and marginal_area_string functions to
17839 include both string object and image object in the lispy position.
17840 Also add actual glyph width and height to position.
17841 (read_key_sequence): Use real buffer position from mouse
17842 event to find keymap property even when click is in marginal area.
17844 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
17845 mode_line_string and marginal_area_string functions to handle
17846 both string object and image object properties.
17848 2004-01-06 Andreas Schwab <schwab@suse.de>
17850 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
17853 2004-01-02 Andreas Schwab <schwab@suse.de>
17855 * macterm.c (emacs_options, x_initialized, same_x_server):
17856 Remove unused (and duplicated) definitions.
17858 2004-01-02 Kim F. Storm <storm@cua.dk>
17860 * process.h (struct Lisp_Process): New members for adaptive read
17861 buffering: adaptive_read_buffering, read_output_delay, and
17864 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
17865 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
17866 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
17867 (process_output_delay_count, process_output_skip): New vars.
17868 (Vprocess_adaptive_read_buffering): New variable.
17869 (make_process): Initialize adaptive read buffering members.
17870 (Fstart_process): Set adaptive_read_buffering member.
17871 (deactivate_process): Cleanup adaptive read buffering.
17872 (wait_reading_process_input): Temporarily omit delayed
17873 subprocesses from the set of file descriptors to read from;
17874 adjust the select timeout if we skipped any subprocesses.
17875 (read_process_output): Increase adaptive read buffering delay if
17876 we read less than a full buffer; reduce delay when we read a
17878 (send_process): Simplify using local Lisp_Process var.
17879 Reset adaptive read buffering delay after write.
17880 (init_process): Initialize process_output_delay_count and
17881 process_output_skip.
17882 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
17884 2004-01-01 Jason Rumney <jasonr@gnu.org>
17886 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
17888 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
17890 * print.c (Ferror_message_string): Add hyperlink in the docstring
17891 to the definition of `signal' in the Elisp manual.
17892 * eval.c (Fsignal): Ditto.
17894 2003-12-29 James Clark <jjc@jclark.com>
17896 * fns.c (internal_equal): Return t for two NaN arguments.
17898 2003-12-29 Richard M. Stallman <rms@gnu.org>
17900 * data.c (store_symval_forwarding): Handle setting
17901 default-fill-column, etc., by changing the value in
17902 buffers that use the default.
17904 * minibuf.c (Fset_minibuffer_window): Doc fix.
17906 * fileio.c (choose_write_coding_system): Ignore auto_saving
17907 if using the visited file for auto saves.
17908 (Fwrite_region): Don't update SAVE_MODIFF
17909 if auto-saving in visited file.
17911 2003-12-29 Kenichi Handa <handa@m17n.org>
17913 * dispextern.h (face_font_available_p): Extern it.
17915 * fontset.c (Voverriding_fontspec_alist): New variable.
17916 (lookup_overriding_fontspec): New function.
17917 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
17918 (fontset_font_pattern): Likewise.
17919 (regulalize_fontname): New function.
17920 (Fset_fontset_font): Call regulalize_fontname.
17921 (Fset_overriding_fontspec_internal): New function.
17922 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
17923 Defsubr Sset_overriding_fontspec_internal.
17925 * xfaces.c (face_font_available_p): New function.
17927 2003-12-28 Richard M. Stallman <rms@gnu.org>
17929 * buffer.c (Fother_buffer): Don't crash if BUF is nil
17930 or if its name is nil.
17932 * buffer.c (Fkill_buffer): Don't delete auto-save file
17933 if it's the same as the visited file.
17935 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
17937 * coding.c (Fcheck_coding_system): Doc fix.
17939 2003-12-28 Kim F. Storm <storm@cua.dk>
17941 * Makefile.in (eval.o): Depend on dispextern.h.
17943 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
17944 image glyph using image's ascent.
17945 (mode_line_string): Return image glyph as object clicked on.
17946 Adjust y0 for image glyph using image's ascent.
17948 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
17949 (struct glyph): New members, ascent and descent. Used to save
17950 this glyph's ascent and descent, instead of having.
17951 (struct glyph): Declare member face_id using FACE_ID_BITS.
17952 (find_hot_spot): Add prototype.
17954 * keyboard.c (Qimage): Remove extern (now in lisp.h).
17955 (QCmap): Declare extern.
17956 (make_lispy_position): When position is inside image hot-spot,
17957 use hot-spot element's id as posn element.
17959 * lisp.h (IMAGEP): New macro to test for image object type.
17960 (Qimage): Declare extern.
17962 * macfns.c (Qimage): Remove extern (now in lisp.h).
17963 (valid_image_p, parse_image_spec): Use IMAGEP macro.
17965 * macterm.c (Qface, Qmouse_face): Remove unused externs.
17967 * w32fns.c (Qimage): Remove extern (now in lisp.h).
17968 (valid_image_p, parse_image_spec): Use IMAGEP macro.
17970 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
17972 * w32term.c (Qface, Qmouse_face): Remove unused externs.
17974 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
17976 (Qrelative_width, Qalign_to): Remove unused variables.
17977 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
17978 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
17980 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
17981 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
17983 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
17984 than row's ascent and height, to get sensible height on tall rows.
17985 (build_desired_tool_bar_string): Remove Qimage extern.
17986 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
17987 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
17988 image glyph is alone on the last line.
17989 (append_glyph, append_composite_glyph, produce_image_glyph)
17990 (append_stretch_glyph): Set glyph's ascent and descent.
17991 (on_hot_spot_p): New function to check if position is inside an
17992 rectangular, circular, or polygon-shaped image hot-spot,
17993 (find_hot_spot): New function to search for image hot-spot.
17994 (Flookup_image_map): New defun to search for image hot-spot.
17995 (define_frame_cursor1): New aux function to determine frame
17997 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
17998 `pointer' text property and :pointer image property to control
17999 frame pointer shape. Detect image hot-spots for pointer and
18000 help_echo properties. Use define_frame_cursor1.
18001 (note_mouse_highlight): Use Vvoid_text_area_pointer.
18002 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
18003 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
18004 Vshow_text_cursor_in_void.
18006 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
18008 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
18009 (Qimage): Remove extern (now in lisp.h).
18010 (valid_image_p, parse_image_spec): Use IMAGEP macro.
18012 * xmenu.c (show_help_event): Remove unused code.
18014 * xterm.c (Qface, Qmouse_face): Remove unused externs.
18015 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
18016 row's ascent and descent, to get a sensible height on tall rows.
18018 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
18020 * minibuf.c (Fcompleting_read): Undo previous change.
18022 2003-12-25 Lars Hansen <larsh@math.ku.dk>
18024 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
18025 Arguments GCPRO'ed in call to file name handler.
18027 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
18029 * termcap.c (tgetst1): Scan for "%pN"; if all
18030 N are continuous in [1,9], remove all "%pN".
18032 2003-12-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18034 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
18036 * xfaces.c (lface_fully_specified_p): Take into account that
18037 MAC OS always have unspecified stipple.
18039 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
18041 * tparam.c (tparam1): Add handling for `%pN', which
18042 means use param N for the next substitution.
18044 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
18046 * xfaces.c (Fcolor_gray_p): Fix omission bug:
18047 In case `frame' is nil, consult the selected frame.
18048 (Fcolor_supported_p): Likewise.
18050 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
18052 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
18055 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
18056 and an integer. Adapt the introductory comment accordingly.
18057 (Fread_from_minibuffer): Delete code moved into read_minibuf.
18059 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
18061 (Fcompleting_read): Delete code moved into read_minibuf.
18062 (Ftest_completion): Make it handle obarrays and hash tables correctly.
18064 2003-12-03 Kenichi Handa <handa@m17n.org>
18066 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
18069 2003-12-01 Kenichi Handa <handa@m17n.org>
18071 * composite.c (syms_of_composite): Don't make the compostion hash
18074 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
18076 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
18077 * textprop.c (Fget_char_property_and_overlay): New function.
18078 (syms_of_textprop): Defsubr it.
18080 2003-11-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18082 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
18083 to compile on terminal configuration.
18085 * fileio.c (Fread_file_name): Check use_file_dialog also before
18086 calling Fx_file_dialog.
18088 * fns.c (use_file_dialog): New variable.
18089 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
18091 2003-11-29 Kim F. Storm <storm@cua.dk>
18093 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
18094 (syms_of_msdos): Don't intern and staticpro them.
18096 2003-11-27 Kim F. Storm <storm@cua.dk>
18098 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
18099 coordinates relative to glyph at posn. If glyph is an image,
18100 return that as object at posn. Callers changed.
18101 (mode_line_string, marginal_area_string): Calculate and return
18102 pixel coordinates relative to glyph. Callers changed.
18104 * dispextern.h (buffer_posn_from_coords, mode_line_string)
18105 (marginal_area_string): Fix prototypes.
18106 (window_box_left_offset, window_box_right_offset): Add prototypes.
18108 * frame.h (get_specified_cursor_type, get_window_cursor_type):
18111 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
18113 * keyboard.c (make_lispy_position): Add x and y coordinates
18114 relative to the current glyph as 7th element of position.
18115 If glyph is an image, return it in the object element.
18116 (read_key_sequence): Skip checks for keymap property in cases
18117 where POSN_STRING is not a string (e.g. an image).
18119 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
18120 (Vshow_text_cursor_in_void): New variable.
18121 (glyph_to_pixel_coords): Don't use negative hpos.
18122 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
18123 (append_stretch_glyph): Change ascent arg to be actual value
18124 in pixels rather than ratio to height. Callers changed.
18125 (calc_pixel_width_or_height): New aux function, implementing
18126 pixel based artihmetic for glyph widths and heights.
18127 (produce_stretch_glyph): Use calc_pixel_width_or_height for
18128 :width, :height, :align-to, and :ascent, thus allowing these to
18129 be specified in pixels as well as multiples of characters.
18130 Don't produce stretch glyphs with zero width or height.
18131 (get_specified_cursor_type): Declare static.
18132 (get_window_cursor_type): Declare static. Add glyph arg to be
18133 able to know when cursor is on an image; always substitute
18134 hollow-box cursor for filled-box cursor on images, to avoid
18135 negative images and flicker when blinking the cursor.
18136 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
18137 (note_mode_line_or_margin_highlight): Use non-text cursor rather
18138 than vertical scroll-bar cursor in display margins.
18139 (note_mouse_highlight): Use non-text cursor rather than text
18140 cursor in fringes and over images in the text area.
18141 Use non-text cursor when mouse pointer is outside editable text,
18142 i.e. in the void after end-of-line or end-of-buffer; this was
18143 already done for W32, but is now standard for all systems --
18144 user can toggle show-text-cursor-in-void to get old behaviour.
18145 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
18146 Vdisplay_pixels_per_inch.
18148 2003-11-25 Andreas Schwab <schwab@suse.de>
18150 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
18151 EMACS_INT to not lose bits.
18152 (Ffillarray): Don't set bits beyond the size of a bool vector.
18154 2003-11-25 Kim F. Storm <storm@cua.dk>
18156 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
18157 define this defun on systems that cannot use stderr as lvalue.
18159 2003-11-24 Gerd Moellmann <gerd@gnu.org>
18161 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
18162 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
18163 ld's default is incompatible with unexec.
18165 2003-11-23 Kim F. Storm <storm@cua.dk>
18167 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
18168 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
18169 (Fforce_window_update): New defun.
18170 (syms_of_window): Defsubr it.
18171 (Fset_window_margins, Fset_window_fringes): Doc fix.
18173 * print.c (Fredirect_debugging_output): New defun.
18174 (syms_of_print): Defsubr it.
18176 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
18178 * fns.c (Fset_char_table_parent): Doc fix.
18180 2003-11-22 Kim F. Storm <storm@cua.dk>
18182 * dispnew.c (buffer_posn_from_coords): Return actual row/column
18183 for glyph clicked on, rather than (unused) pixel positions.
18184 (mode_line_string, marginal_area_string): Change X and Y args to
18185 pointers for returning actual row/column for glyph clicked on.
18186 Simplify and optimize loops.
18188 * dispextern.h (mode_line_string, marginal_area_string):
18191 * keyboard.c (make_lispy_position): New function for generating
18192 mouse click positions from frame and pixel coordinates.
18193 Enhanced to return buffer position and actual row/column for
18194 events outside the text area using updated mode_line_string and
18195 marginal_area_string functions.
18196 Return left-fringe and right-fringe clicks as such, rather than
18197 clicks in text area.
18198 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
18199 pixel_to_glyph_coords, as we never use the results.
18200 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
18201 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
18202 Eliminate unused code in WHEEL_EVENT handling.
18203 (make_lispy_movement): Use make_lispy_position.
18205 * window.c (coordinates_in_window): Remove redundant tests.
18206 Fix returned X pixel value for left-margin.
18208 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
18209 mode_line_string and marginal_area_string parameters.
18211 2003-11-22 Lars Hansen <larsh@math.ku.dk>
18213 * w32.c (struct the_group, getgrgid): Add.
18214 * mac.c (struct my_group, getgrgid): Add.
18216 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
18218 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
18220 2003-11-21 Lars Hansen <larsh@math.ku.dk>
18222 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
18223 include in call to file name handler. Optionally translate numeric
18224 UID and GID to strings. Update docstring.
18225 (directory_files_internal): Add parameter ID-FORMAT.
18226 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
18227 include in call to file name handler and call to
18228 directory_files_internal. Update Docstring.
18229 (Fdirectory_files): Add dummy parameter in call to
18230 directory_files_internal.
18231 * lisp.h (Qinteger): Add.
18232 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
18233 (Ffile_attributes): Add parameter.
18234 * data.c (Qinteger): Export.
18236 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
18238 * fns.c (Freverse, Fnreverse): Doc fixes.
18240 2003-11-19 Kim F. Storm <storm@cua.dk>
18242 * xdisp.c (init_iterator): Initialize it->start to position
18243 before reseating (in case start position is invisible).
18244 (init_to_row_start): Set it->start to row-start.
18245 (redisplay_window): Accept optional_new_start if start position
18246 is invisible (in which case IT_CHARPOS overshoots PT).
18247 (display_line): Setup row->start from it->start (rather than
18248 it->current which is wrong if first char on line is invisible).
18249 When done, reseat it->start to it->current (= start of next row).
18250 (expose_area): Fix exposure of text area when first char (e.g. TAB)
18251 is only partially visible.
18253 * dispextern.h (struct it): New member start.
18255 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
18257 * alloc.c (make_float, Fcons): Clear the markbit at init time.
18258 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
18259 of block_index outside of the macro call.
18260 (Fgarbage_collect): Remove null code.
18262 * m/amdx86-64.h: Don't redefine XPNTR.
18264 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
18267 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
18268 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
18269 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
18271 * lisp.h (VALMASK): Only define for non-union type.
18273 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
18274 (XTYPE): Define unconditionally.
18275 (XSETTYPE): Remove one more remnant.
18276 (EQ): Define differently for the union and non-union cases.
18277 (INTMASK): New bit mask.
18278 (struct Lisp_Marker): Move down to prepare for upcoming patch.
18279 (GC_EQ): Delegate to EQ.
18281 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
18283 2003-11-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18285 * xterm.c (x_window_to_scroll_bar): Move check of display to
18286 where window_id is compared.
18288 2003-11-17 Kim F. Storm <storm@cua.dk>
18290 * dispextern.h (struct it): New member first_vpos.
18292 * xdisp.c (start_display): Set it->first_vpos.
18293 (try_window_id): Use first_vpos to start display in first _text_
18294 line if no reusable lines at start of window with header line.
18296 2003-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18298 * w32fns.c (XPutPixel):
18299 * w32bdf.c (w32_init_bdf_font):
18300 * sunfns.c (sel_read):
18301 * process.c (Fmake_network_process):
18302 * frame.c (store_frame_param):
18303 * fontset.c (Fset_fontset_font):
18304 * emacs.c (shut_down_emacs):
18305 * ccl.c (ccl_driver): Remove period at end of error message.
18307 * config.in: Regenerate.
18309 * xfns.c (x_window_to_frame, x_any_window_to_frame)
18310 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
18311 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
18312 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
18313 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
18315 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
18317 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
18318 (XTmouse_position, handle_one_xevent): Pass Display* to
18319 x_window_to_scroll_bar.
18320 (x_window_to_scroll_bar): Take a Display* argument.
18321 Check that display for frame is equal to Display* argument.
18322 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
18323 x_display_info_for_display instead. Use Display in xev instead
18325 (x_dispatch_event): Call x_display_info_for_display.
18326 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
18327 (x_connection_closed): Call xg_display_close for GTK.
18328 (x_term_init): Call xg_display_open for additional displays.
18329 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
18332 * xmenu.c (single_menu_item, mouse_position_for_popup)
18333 (x_activate_menubar): Formatting adjustments.
18335 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
18338 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
18339 (xg_display_close, xg_create_default_cursor)
18340 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
18342 (xg_left_ptr_cursor): Remove.
18343 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
18345 (xg_win_to_widget): Take Display* argument, call
18346 gdk_xid_table_lookup_for_display.
18347 (xg_create_frame_widgets, xg_get_file_name, create_menus)
18348 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
18349 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
18350 in FRAME_X_DISPLAY_INFO.
18351 (xg_get_scroll_id_for_window): Take Display* argument.
18352 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
18353 (xg_initialize): Remove xg_left_ptr_cursor.
18355 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
18357 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
18359 2003-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18361 * xterm.c (x_detect_focus_change): Do not change focus frame for
18362 Enter/LeaveNotify if the current focus frame has explicit focus.
18364 2003-11-14 Kim F. Storm <storm@cua.dk>
18366 * dispnew.c (update_text_area): Fix redisplay error when hscroll
18367 is active and first glyph is only partially visible.
18369 2003-11-13 Kenichi Handa <handa@m17n.org>
18371 * xdisp.c (select_frame_for_redisplay): New function.
18372 (redisplay_internal): Record also selected_frame for
18373 unwind_redisplay. Call select_frame_for_redisplay before
18374 redrawing each frame.
18375 (unwind_redisplay): Argument changed to a cons.
18377 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
18379 * fns.c (Fstring_to_multibyte): Doc fix.
18381 2003-11-11 Kenichi Handa <handa@m17n.org>
18383 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18385 2003-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18387 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
18388 program specified positions.
18390 2003-11-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18392 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
18394 2003-11-08 Kenichi Handa <handa@m17n.org>
18396 * Makefile.in (lisp): Add kannada.el.
18397 (shortlisp): Likewise.
18399 2003-11-07 Kenichi Handa <handa@m17n.org>
18401 * coding.c (coding_allocate_composition_data):
18402 Reset coding->composing to COMPOSITION_NO.
18403 (coding_restore_composition): Detect invalid composition data.
18404 Give Fstring and Fvector a Lispy integer, not C int.
18406 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
18408 * floatfns.c (Flogb): Don't use VALMASK.
18410 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
18411 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
18413 * lisp.h (XINT): Move the cast to clarify what is going on.
18414 (GCTYPEMASK, XSETTYPE): Remove.
18415 (XGCTYPE): Make it an alias of XTYPE.
18417 2003-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18419 * xterm.c (x_term_init): Fix formatting.
18421 2003-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18423 * gtkutil.h (xg_have_tear_offs): Declare.
18424 (xg_keep_popup, xg_did_tearoff): Remove.
18426 * gtkutil.c: Remove variable xg_did_tearoff.
18427 (xg_have_tear_offs): New function.
18428 (tearoff_remove): Just decrease xg_detached_menus.
18429 (tearoff_activate): Increase xg_detached_menus and call
18430 tearoff_remove when tearoff is removed.
18431 (xg_keep_popup): Remove function.
18432 (create_menus): Give add_tearoff_p as argument to recursive
18433 call to create_menus.
18434 (xg_create_widget): Use variables instead of multiple
18435 strcmp. Tell create_menus to create tear off only for
18437 (xg_update_menubar): Change title for a detached menu also.
18438 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
18440 (xg_initialize): Initialize xg_detached_menus, remove
18441 initialization of xg_did_tearoff.
18443 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
18444 xg_have_tear_offs returns non-zero.
18445 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
18446 call to xg_keep_popup.
18448 2003-11-01 Andrew Choi <akochoi@shaw.ca>
18450 * macterm.c (XTread_socket): Handle menubar selection and grow
18451 window only for mouseDown events.
18453 2003-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18455 * xterm.c (x_term_init): For GTK part, increase x_initialized
18456 to check for more than one display. Use error instead of return 0.
18458 2003-10-31 Andrew Choi <akochoi@shaw.ca>
18460 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
18461 (copy_dysymtab): Call it.
18463 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
18465 * eval.c (Fdefvaralias): Doc fix.
18467 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
18469 * data.c (Fsetplist): Doc fix.
18471 2003-10-14 Lute Kamstra <lute@gnu.org>
18473 * window.c (Fset_window_fringes): Clarify docstring.
18475 2003-10-14 Kim F. Storm <storm@cua.dk>
18477 * window.c (Fset_window_margins): Simplify arg checking.
18479 2003-10-13 Richard M. Stallman <rms@gnu.org>
18481 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
18482 (print_partial_compiled_pattern): Replace assert with a printout.
18483 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
18485 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
18487 * window.c (Fset_window_margins): Allow only integers as args.
18488 (syms_of_window) <special-display-buffer-names,
18489 special-display-regexps>: Doc fixes.
18491 2003-10-13 Lute Kamstra <lute@gnu.org>
18493 * window.c (Fset_window_fringes): Elaborate docstring.
18495 2003-10-12 Andrew Choi <akochoi@shaw.ca>
18497 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
18499 * s/darwin.h (GC_MARK_STACK): Define.
18501 2003-10-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18503 * window.c (shrink_windows): New function.
18504 (size_window): Call shrink_windows to calculate window sizes when
18505 shrinking frame with more than one window.
18507 2003-10-12 Kim F. Storm <storm@cua.dk>
18509 * xdisp.c (compute_fringe_widths): Doc fix.
18511 2003-10-08 Kenichi Handa <handa@m17n.org>
18513 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
18515 2003-10-07 Kenichi Handa <handa@m17n.org>
18517 * coding.c (Qcoding_system_define_form): New variable.
18518 (syms_of_coding): Intern and staticpro it.
18519 (Fcheck_coding_system): Try to autoload the definition of
18522 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
18524 * fns.c (Frequire): Doc fix.
18526 2003-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18528 * xfns.c (Fx_send_client_event): New function as a base for
18529 manipulating extended window manager hints.
18530 (Fx_send_client_event): Remove unused variable s.
18532 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
18533 that function is removed.
18535 * xterm.c (x_set_offset): Use move_offset_left/top instead of
18536 x/y_pixels_outer_diff.
18537 (x_check_expected_move): Calculate move_offset_left/top.
18539 * xterm.h (struct x_output): New members: move_offset_top/left.
18541 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
18542 call x_set_offset directly.
18544 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
18546 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
18548 * xterm.c (x_delete_display): Free font names and font_encoder
18549 in dpyinfo->font_table.
18551 * xfns.c (Fx_close_connection): Only call XFreeFont here.
18552 Move xfree of font names to x_delete_display.
18554 * xterm.h (struct x_display_info): New member, wm_type.
18555 (struct x_output): New members, expected_top/left and
18556 check_expected_move.
18558 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
18560 (handle_one_xevent): Rename x_check_expected_move from
18561 x_check_fullscreen_move.
18562 (x_set_offset): Only add WM decoration sizes to modified_top/left
18563 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
18564 (x_check_expected_move): Rename from x_check_fullscreen_move.
18565 Removed fullscreen specific code. Use check_expected_move,
18566 expected_left/top instead. Also, set wm_type.
18567 (x_term_init): Initialize wm_type to unknown.
18569 * frame.c (x_fullscreen_move): Remove addition of WM decoration
18572 2003-10-03 Kenichi Handa <handa@m17n.org>
18574 * macterm.c (x_load_font): Clear all members of FONTP before start
18577 2003-10-02 Kenichi Handa <handa@m17n.org>
18579 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
18580 before calling find_ccl_program_func. Call find_ccl_program_func
18581 only when fontp->font_encoder is not NULL.
18583 * xterm.c (x_load_font): Clear all members of FONTP before start
18586 2003-10-03 John Paul Wallington <jpw@gnu.org>
18588 * keymap.c (map_keymap): Don't abort when binding is a vector.
18590 2003-10-02 Jason Rumney <jasonr@gnu.org>
18592 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
18593 Sync dependencies with Makefile.in.
18594 (alloca.o): Remove.
18596 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
18599 * w32bdf.c (w32_load_bdf_font): Likewise.
18601 2003-09-30 Richard M. Stallman <rms@gnu.org>
18603 * term.c (set_tty_color_mode): Calculate current_mode_spec
18604 regardless of value of VAL.
18606 * intervals.c (graft_intervals_into_buffer):
18607 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
18608 Handle over_used when splitting UNDER.
18610 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18612 * regex.c (regex_compile): Free the stack when returning from function.
18614 2003-09-28 Kenichi Handa <handa@m17n.org>
18616 * fontset.c (Finternal_char_font): Change return value to
18617 cons (FONT-NAME . GLYPH-CODE).
18619 2003-09-28 Eli Zaretskii <eliz@gnu.org>
18621 * term.c (tty_setup_colors): Treat any negative argument as -1.
18623 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
18625 * process.c (send_process): Delete unused temp_buf.
18627 2003-09-26 Dave Love <fx@gnu.org>
18629 * xterm.c (x_bitmap_mask): Declare.
18631 2003-09-25 Dave Love <fx@gnu.org>
18633 * Makefile.in (fns.o): Depend on md5.h.
18635 2003-09-25 Kim F. Storm <storm@cua.dk>
18637 * window.c (set_window_buffer): Fix redisplay problems when
18638 switching between buffers with different display margin widths.
18640 2003-09-23 Kim F. Storm <storm@cua.dk>
18642 * process.c (set_socket_option): Fix :bindtodevice option.
18643 (Fset_network_process_option): Update process contact list when
18644 setting option succeeds.
18645 (Fmake_network_process): Doc fix.
18647 2003-09-23 Dave Love <fx@gnu.org>
18649 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
18651 2003-09-22 Eli Zaretskii <eliz@gnu.org>
18653 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
18654 color mode is an integer number (it could be -1).
18656 2003-09-22 Richard M. Stallman <rms@gnu.org>
18658 * intervals.c (graft_intervals_into_buffer): Correct the main loop
18659 in the case where OVER is longer than UNDER.
18661 2003-09-22 Masatake YAMATO <jet@gyve.org>
18663 * window.c (Fset_window_scroll_bars): Validate the value of
18666 2003-09-21 Kim F. Storm <storm@cua.dk>
18668 * frame.c (Vdefault_frame_scroll_bars): New variable.
18669 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
18670 (syms_of_frame): DEFVAR_LISP it, and initialize according to
18671 window-system default scroll bar position.
18673 * window.c (Fwindow_scroll_bars): Doc fix.
18675 2003-09-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18677 * xterm.c (x_set_offset): Take window manager decorations into account.
18679 2003-09-19 Richard M. Stallman <rms@gnu.org>
18681 * atimer.h: Don't include lisp.h.
18682 (P_): Define it here (as well as elsewhere).
18684 * print.c (Fprin1_to_string): Move the PRINTPREPARE
18685 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
18687 * data.c (Fvariable_binding_locus): New function.
18688 (syms_of_data): defsubr it.
18689 (Flocal_variable_p): Delete duplicate call to indirect_variable.
18691 2003-09-18 Dave Love <fx@gnu.org>
18693 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
18695 * process.c (Fnetwork_interface_info): Fix type error.
18696 (Fnetwork_interface_list): Doc fix.
18697 (read_process_output, read_process_output): Delete unused var.
18699 2003-09-17 Kim F. Storm <storm@cua.dk>
18701 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
18702 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
18703 (Fnetwork_interface_info): Check that ifreq struct has required
18704 fields before accessing them; this requires that those fields are
18705 defined as macros, which may be too restrictive on some platforms,
18706 but it is better than failing on other platforms.
18707 (syms_of_process): Only defsubr above fns when included.
18709 2003-09-17 Dave Love <fx@gnu.org>
18711 * unexalpha.c: Don't include varargs.h.
18713 2003-09-17 Kim F. Storm <storm@cua.dk>
18715 * process.c (Fset_process_sentinel): Add sentinel to childp plist
18716 for network process.
18717 (socket_options): Add `:' prefix to option names. Add optbit field.
18718 (set_socket_option): Remove no_error arg and special handling of s < 0.
18719 Return 1<<optbit for known option, 0 for unknown.
18720 Do not interpret 0 as false for boolean option (only nil).
18721 Pass failed option and value to report_file_error.
18722 (Fset_network_process_options): Replace by Fset_network_process_option.
18723 (Fset_network_process_option): New function to set just one option.
18724 (Fmake_network_process): Allow :coding arg to be a cons.
18725 Allow :server arg to be an integer specifying backlog size.
18726 Remove :options arg, and allow options to be specified directly
18727 as :KEY, VALUE pairs. Parse these options before binding socket.
18728 As before, :reuseaddr t is default for a server process, but this
18729 can now be disabled by specifying :reuseaddr nil.
18730 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
18731 (init_process): Availability of network options is now checked with
18732 simpler syntax (featurep 'make-network-process :OPTION); use loop to
18734 (syms_of_process): Fix defsubr's for the replaced functions.
18736 2003-09-16 Dave Love <fx@gnu.org>
18738 * Makefile.in: Depend on coding.h.
18740 2003-09-14 Kim F. Storm <storm@cua.dk>
18742 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
18743 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
18744 (syms_of_process): Defsubr them.
18746 * config.in: Regenerate.
18748 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
18750 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
18751 * m/news-r6.h (XUNMARK): Remove.
18752 * m/mips.h (XUNMARK): Remove.
18753 * m/mips-siemens.h (XUNMARK): Remove.
18754 * m/iris4d.h (XUNMARK): Remove.
18755 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
18757 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18759 * lisp.h (VALBITS): Don't remove 1 for the markbit.
18760 (union Lisp_Object): Use unsigned int for types. Remove markbit.
18761 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
18762 (XTYPE): Use unsigned right-shift.
18763 (XMARKBIT, XMARK, XUNMARK): Remove.
18765 * alloc.c (init_intervals, init_symbol, init_marker):
18766 Don't preallocate anything.
18767 (Fgarbage_collect, mark_object): Ignore the markbit.
18769 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
18771 2003-09-08 Lute Kamstra <lute@gnu.org>
18773 * xdisp.c (pint2hrstr): New function.
18774 (decode_mode_spec): Add `%i' and `%I' specs.
18775 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
18776 for `mode-line-format'.
18778 2003-09-07 Andreas Schwab <schwab@suse.de>
18780 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
18783 2003-09-07 Eli Zaretskii <eliz@gnu.org>
18785 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
18787 2003-09-03 Kim F. Storm <storm@cua.dk>
18789 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
18790 change (superseded by 2002-08-30 change); the default blink-off
18791 cursor is now again "no cursor".
18793 2003-09-01 Jason Rumney <jasonr@gnu.org>
18795 * makefile.w32-in (alloca.o): Remove.
18796 (coding.o): Depend on intervals.h
18797 (emacs.o, bytecode.o): Depend on window.h
18799 2003-09-01 Dave Love <fx@gnu.org>
18801 * Makefile.in (alloca.o): Remove commands.
18802 (coding.o): Depend on intervals.h composite.h window.h.
18803 (emacs.o): Depend on window.h keyboard.h keymap.h.
18804 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
18805 (bytecode.o): Depend on window.h.
18807 2003-08-31 Jason Rumney <jasonr@gnu.org>
18809 * w32term.c (w32_per_char_metric): Allow cached metrics to be
18810 returned even when font_type is unknown.
18812 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
18814 2003-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18816 * xterm.c (x_term_init): Initialize new fields in x_display_info.
18818 * xterm.h (struct x_display_info): Add red/green/blue_bits and
18821 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
18822 calculate pixel value.
18824 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
18826 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
18827 Don't tell redisplay display is accurate when it's actually been
18828 paused for pending input.
18830 2003-08-29 Richard M. Stallman <rms@gnu.org>
18832 * dispnew.c (adjust_glyph_matrix): Call window_box
18833 whenever W is nonzero.
18835 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18836 (Fkill_local_variable, Fmake_variable_frame_local)
18837 (Flocal_variable_p, Flocal_variable_if_set_p):
18838 Use indirect_variable to trace thru variable aliases.
18840 * config.in: Updated.
18842 * callint.c (Fcall_interactively): Save and restore
18843 Vthis_command, Vthis_original_command, real_this_command,
18844 and current_kboard->Vlast_command.
18846 * abbrev.c (Fexpand_abbrev): Insert before deleting.
18848 2003-08-29 Gerd Moellmann <gerd@gnu.org>
18850 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
18852 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
18854 * coding.c (decode_coding_iso2022): Initialize local variable c2.
18855 (decode_coding_sjis_big5): Likewise.
18857 2003-08-27 Jason Rumney <jasonr@gnu.org>
18859 * w32.c (sys_pipe): Protect against file descriptor overflow.
18861 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
18863 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
18865 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
18867 * xfns.c (Vgtk_version_string): New variable.
18868 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
18870 2003-08-24 Eli Zaretskii <eliz@gnu.org>
18872 * term.c (term_init): Remove `const' from buffer_size's declaration.
18874 * Makefile.in (msdos.o): Depend on intervals.h.
18876 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
18878 2003-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18880 * xterm.h (struct x_display_info): New fields: client_leader_window
18881 and Xatom_wm_client_leader.
18883 * xterm.c (x_initialize): Move call to x_session_initialize to ...
18884 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
18886 * xsmfns.c (create_client_leader_window): New function.
18887 (x_session_initialize): Call create_client_leader_window, take
18888 dpyinfo as argument.
18890 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
18892 * Makefile.in (xsmfns.o): Add more depenedencies.
18894 2003-08-21 Dave Love <fx@gnu.org>
18896 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
18898 2003-08-21 Kenichi Handa <handa@m17n.org>
18900 * term.c (term_init): Fix previous change; don't rely on the
18901 length of `buffer' if TERMINFO is defined.
18903 2003-08-20 Dave Love <fx@gnu.org>
18905 * atimer.h: Include lisp.h.
18907 * lisp.h (EMACS_LISP_H): New.
18908 (popup_activated_flag): Don't declare.
18910 * alloca.c: Some merging with gnulib. Change logic and doc
18911 concerning (x)malloc/(x)free -- no longer Emacs-specific.
18912 [DO_BLOCK_INPUT]: Don't include lisp.h.
18913 (xmalloc, xfree): Declare.
18914 (malloc): Don't declare.
18916 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
18917 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
18918 atimer.h, blockinput.h.
18920 * alloc.c (lisp_align_malloc): Change type of `aligned'.
18922 * alloca.s: Remove.
18924 2003-08-19 Gerd Moellmann <gerd@gnu.org>
18926 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
18929 * term.c (term_init): Use a buffer of size 4096 for tgetent since
18930 FreeBSD returns something longer than 2044. Abort if the end of
18931 the buffer is overwritten.
18933 2003-08-19 Miles Bader <miles@gnu.org>
18935 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
18937 2003-08-19 Gerd Moellmann <gerd@gnu.org>
18939 * alloc.c (lisp_align_malloc): Check for memory full when
18940 allocating ablocks, which also avoids freeing a pointer into an
18943 * puresize.h (BASE_PURESIZE): Increase to 1100000.
18945 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
18947 2003-08-16 Richard M. Stallman <rms@gnu.org>
18949 * editfns.c (Fencode_time): Doc fix.
18951 2003-08-16 David Ponce <david@dponce.com>
18953 * fileio.c (Fwrite_region): Fix conditional expression to issue
18956 2003-08-16 Juri Linkov <juri@jurta.org>
18958 * syntax.c (Fforward_word): Argument changed to optional.
18959 Set default value to 1.
18961 2003-08-15 Kenichi Handa <handa@m17n.org>
18963 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
18965 (best_matching_font): Once we find a better scalable font, set
18966 non_scalable_has_exact_height_p to 1.
18967 (try_font_list): Call try_alternative_families to try any family
18968 with the given registry.
18970 2003-08-09 Andreas Schwab <schwab@suse.de>
18972 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
18974 * print.c (print_string): Fix printing of multibyte string with
18975 nontrivial printcharfun.
18977 2003-07-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18979 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
18981 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
18983 2003-07-31 Kenichi Handa <handa@m17n.org>
18985 * process.c (read_process_output): Return the actually read bytes
18986 instead of the result of decoding.
18988 2003-07-31 Kenichi Handa <handa@m17n.org>
18990 * xterm.h (struct x_bitmap_record): New member have_mask.
18992 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
18994 (x_create_bitmap_from_file): Likewise.
18995 (x_destroy_bitmap): Check have_mask member before freeing a mask.
18996 (x_destroy_all_bitmaps): Likewise.
18997 (x_create_bitmap_mask): Set have_mask member to 1.
18999 2003-07-30 Richard M. Stallman <rms@gnu.org>
19001 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
19003 2003-07-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19005 * gtkutil.c (xg_mark_data): Update calls to mark_object.
19007 2003-07-29 Richard M. Stallman <rms@gnu.org>
19009 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
19010 Conditionalize XIM code on HAVE_XIM.
19012 * fns.c (Fclear_string): New function.
19013 (syms_of_fns): defsubr it.
19015 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
19017 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
19019 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
19021 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
19023 * buffer.c (delete_all_overlays): New function.
19024 * buffer.h (delete_all_overlays): Declare.
19025 * coding.c (run_pre_post_conversion_on_str):
19026 * print.c (temp_output_buffer_setup):
19027 * fileio.c (Finsert_file_contents):
19028 * minibuf.c (get_minibuffer): Use it.
19030 2003-07-22 Andrew Choi <akochoi@shaw.ca>
19032 * unexmacosx.c (unexec_regions_sort_compare):
19033 (unexec_regions_merge): New functions. Sort and merge unexec
19034 regions before dumping them.
19036 2003-07-22 Dave Love <fx@gnu.org>
19038 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
19040 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
19042 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
19043 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
19044 MARKBIT as the gcmarkbit for strings.
19046 2003-07-21 Richard M. Stallman <rms@gnu.org>
19048 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
19050 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
19051 (syms_of_fns): Corresponding change.
19053 * alloc.c (syms_of_alloc): Doc fixes.
19055 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
19057 * s/netbsd.h: Use -Wl syntax.
19059 2003-07-17 Richard M. Stallman <rms@gnu.org>
19061 * xterm.c (xim_initialize): Redo 6/24 change.
19063 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
19065 * buffer.c (copy_overlays): Use EMACS_INT for positions.
19066 (Fswitch_to_buffer): Don't signal an error when switching to the same
19067 buffer in a dedicated window.
19069 * alloc.c: Use bitmaps for cons, as was done for floats.
19070 (init_float, init_cons): Let the normal code allocate the first block.
19071 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
19072 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
19074 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
19075 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
19076 (live_cons_p): Check the pointer is not past the `conses' array.
19077 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
19078 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
19079 (survives_gc_p): Use CONS_MARKED_P and simplify.
19080 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
19082 2003-07-13 Paul Eggert <eggert@twinsun.com>
19084 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
19085 puts it into BSS instead, at least on Solaris 8 and 9.
19086 This is a valid optimization, and it may occur on other platforms,
19087 so Emacs should not assume that initializing a static variable to
19088 zero puts it into data.
19089 * alloc.c (pure, staticvec):
19090 Initialize these arrays to nonzero, so that they're not
19091 put into BSS by that optimization.
19093 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
19095 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
19096 (lisp_align_malloc): Use posix_memalign is available.
19097 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
19098 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
19099 for consistency. Update users.
19101 2003-07-13 Richard M. Stallman <rms@gnu.org>
19103 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
19105 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
19107 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
19108 and use the Gtk+ function gtk_window_icon_from_file if available.
19110 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
19111 handle mask of bitmaps.
19112 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
19114 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
19116 * xterm.h (xg_set_icon): New function.
19118 2003-07-12 Paul Eggert <eggert@twinsun.com>
19120 * unexelf.c (unexec): Consider a section to precede the .bss
19121 section if its addresses overlap that of .bss.
19123 2003-07-12 Richard M. Stallman <rms@gnu.org>
19125 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
19127 * config.in (HAVE_CRTIN): Add #undef.
19128 (INLINE): Really inline only if OPTIMIZE is defined.
19130 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
19132 (START_FILES_1, END_FILES_1): New macros (conditional).
19133 (LD_SWITCH_SYSTEM_TEMACS): Define.
19135 * s/openbsd.h: Don't include bsd4-3.h.
19136 (TERMINFO): Define.
19137 (LIBS_TERMCAP): Define.
19138 (LD_SWITCH_SYSTEM): Define (two definitions).
19140 * xfns.c: Include libpng/png.h instead of png.h.
19142 2003-07-11 Andreas Schwab <schwab@suse.de>
19144 * buffer.c (modify_overlay): Update prototype.
19145 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
19148 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
19150 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
19151 (struct interval): Move to intervals.h.
19152 (struct Lisp_Marker): Use EMACS_INT for position info.
19153 (forward_point): Remove prototype of defunct function.
19154 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
19155 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
19156 (syms_of_textprop, set_text_properties): Remove prototypes that are
19157 already in intervals.h.
19159 * intervals.h (struct interval): Move from lisp.h.
19160 Use EMACS_INT for position and size info.
19162 * coding.c: Include intervals.h for Fset_text_properties.
19164 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
19165 position and length information.
19167 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
19169 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
19170 position and length information.
19172 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
19174 Change overlays_after and overlays_before so the overlays themselves
19175 are linked into lists, rather than using cons cells. After all each
19176 Lisp_Misc already occupies 5 words, so we can add a `next' field to
19177 Lisp_Overlay for free and save up one cons cell per overlay (not
19178 to mention one indirection when traversing the list of overlay).
19180 * lisp.h (struct Lisp_Overlay): New field `next'.
19182 * buffer.h (struct buffer): Change overlays_before and overlays_after
19183 from Lisp lists of overlays to pointers to overlays.
19185 * buffer.c (overlay_strings, recenter_overlay_lists):
19186 Fix typo in eassert in last commit.
19187 (unchain_overlay): New function.
19188 (add_overlay_mod_hooklist): Use AREF.
19189 (copy_overlays, reset_buffer, overlays_at, overlays_in)
19190 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
19191 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
19192 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
19193 (report_overlay_modification, evaporate_overlays, init_buffer_once):
19194 Adjust to new type of overlays_(before|after).
19196 * alloc.c (mark_object): Mark the new `next' field of overlays.
19197 (mark_buffer): Manually mark the overlays_(after|before) fields.
19199 * coding.c (run_pre_post_conversion_on_str):
19200 * editfns.c (overlays_around):
19201 * xdisp.c (load_overlay_strings):
19202 * fileio.c (Finsert_file_contents):
19203 * indent.c (current_column):
19204 * insdel.c (signal_before_change, signal_after_change):
19205 * intervals.c (set_point_both):
19206 * print.c (temp_output_buffer_setup): Use new type for
19207 overlays_(before|after).
19209 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
19211 * buffer.c (report_overlay_modification): Don't run hooks while
19212 traversing the list of overlays.
19214 * buffer.h (struct buffer): Use an int for overlay_center.
19215 (overlays_at, evaporate_overlays, recenter_overlay_lists)
19216 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
19218 * buffer.c (reset_buffer, recenter_overlay_lists)
19219 (adjust_overlays_for_insert, adjust_overlays_for_delete)
19220 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
19221 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
19222 (overlays_at, evaporate_overlays, recenter_overlay_lists)
19223 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
19225 * xdisp.c (fast_find_position): Remove unused var.
19227 * cmds.c (Qexpand_abbrev): New sym.
19228 (syms_of_cmds): Initialize it.
19229 (internal_self_insert): Use it to call expand-abbrev.
19231 2003-07-09 Kim F. Storm <storm@cua.dk>
19233 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
19234 was configured with --without-xim.
19235 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
19237 2003-07-07 Richard M. Stallman <rms@gnu.org>
19239 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
19241 * alloc.c (Fgarbage_collect): Doc fix.
19243 2003-07-07 Nozomu Ando <nand@mac.com>
19245 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
19247 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
19249 * minibuf.c (read_minibuf): UNGCPRO before returning.
19250 (Ftry_completion, Fall_completions): Doc fix.
19252 * alloc.c (live_float_p): Check that p is not past the `floats' array,
19253 now that `floats' is not the last element of the struct any more.
19255 2003-07-06 Jason Rumney <jasonr@gnu.org>
19257 * w32term.h (ClipboardSequence_Proc): New type.
19259 * w32fns.c (clipboard_sequence_fn): New variable.
19260 (globals_of_w32fns): Initialize it.
19262 * w32select.c (last_clipboard_sequence_number): New variable.
19263 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
19264 number if possible.
19266 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
19268 * m/amdx86-64.h (MARKBIT):
19269 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
19270 MARKBIT and ARRAY_MARK_FLAG any more.
19272 * m/hp800.h (XSETMARKBIT):
19273 * m/sr2k.h (XSETMARKBIT):
19274 * lisp.h (XSETMARKBIT): Remove unused macro.
19276 * lisp.h (mark_object): Change prototype.
19278 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
19279 (last_marked): Change accordingly.
19280 (mark_interval, mark_maybe_object, mark_maybe_pointer)
19281 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
19282 (mark_buffer): Update calls to mark_object.
19284 * bytecode.c (mark_byte_stack):
19285 * fns.c (sweep_weak_table):
19286 * keyboard.c (mark_kboards): Update calls to mark_object.
19288 2003-07-06 Jason Rumney <jasonr@gnu.org>
19290 * alloc.c (struct ablock): Only include padding when there is some.
19292 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
19294 * alloc.c (ALIGN): Add casts to simplify usage.
19295 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
19296 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
19297 (struct ablock, struct ablocks): New types.
19298 (free_ablock): New global var.
19299 (lisp_align_malloc, lisp_align_free): New functions.
19300 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
19301 (struct float_block): Reorder and add gcmarkbits.
19302 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
19303 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
19304 (init_float, make_float): Use lisp_align_malloc.
19305 (free_float, live_float_p): Don't use `type' any more.
19306 (make_float): Use FLOAT_UNMARK to access to mark bit.
19307 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
19308 Use FLOAT_MARKED_P to access the mark bit.
19309 (pure_alloc): Simplify use of ALIGN.
19310 (mark_object): Use FLOAT_MARK to access the mark bit.
19311 (gc_sweep): Use new macros to access the float's mark bit.
19312 (init_alloc_once): Init free_ablock.
19314 * lisp.h (struct Lisp_Float): Remove unused field `type'.
19316 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
19318 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
19319 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
19320 (allocate_buffer): Move.
19321 (string_bytes): Don't mask markbit of `size_byte'.
19322 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
19323 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
19324 Use the `size' field of buffers (rather than the `name' field) for
19325 the mark bit, as is done for all other vectorlike objects.
19326 Use the new macros to access the mark bit of vectorlike objects.
19328 2003-06-26 Richard M. Stallman <rms@gnu.org>
19330 * puresize.h (BASE_PURESIZE): Increment base size.
19332 * xdisp.c (fast_find_position): Enable Gerd's new definition.
19334 * xterm.c (xim_initialize): Undo previous change.
19336 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
19338 * alloc.c (survives_gc_p): Simplify.
19340 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
19342 * window.c (Fset_window_dedicated_p): Simplify.
19343 (display_buffer_1): Don't raise the win from which minibuf was entered.
19344 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
19345 (Fminibuffer_selected_window): Simplify.
19347 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
19349 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
19350 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
19352 * insdel.c (check_markers, adjust_markers_for_delete)
19353 (adjust_markers_for_insert, adjust_markers_for_replace)
19354 (prepare_to_modify_buffer, RESTORE_VALUE):
19355 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
19356 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
19357 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
19358 * alloc.c (Fmake_marker, free_marker, gc_sweep):
19359 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
19360 * editfns.c (save_excursion_restore, transpose_markers):
19361 * window.c (delete_window):
19362 * xdisp.c (message_dolog): Update for new types.
19364 2003-06-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19366 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
19367 (realize_default_face): Use default_face_done_p for the force_p
19368 argument to set_lface_from_font_name. Set default_face_done_p to one.
19370 * frame.c (make_frame): Initialize default_face_done_p.
19372 * frame.h (struct frame): Add default_face_done_p.
19374 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
19377 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
19379 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
19380 Initialize the new field `gcmarkbit'.
19381 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
19382 (mark_interval_tree): Don't mark the tree separately from the nodes.
19383 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
19384 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
19385 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
19387 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
19388 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
19389 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
19390 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
19391 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
19393 2003-06-24 Dave Love <fx@gnu.org>
19395 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
19397 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
19400 2003-06-21 Richard M. Stallman <rms@gnu.org>
19402 * fileio.c (Fwrite_region): Alternate messages
19403 for append and partial write.
19405 * keyboard.c (read_key_sequence): When converting upcase fn key to
19406 downcase, update fkey and keytran so `backspace' gets translated.
19408 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
19410 * process.c (wait_reading_process_input): Don't signal SIGIO
19413 2003-06-17 Kenichi Handa <handa@m17n.org>
19415 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
19418 * xselect.c: Don't include charset.h, coding.h, composite.h.
19419 (Qforeign_selection): New variable.
19420 (syms_of_xselect): Intern and static it.
19421 (selection_data_to_lisp_data): Return a unibyte string made from
19422 data with `foreign-selection' text property.
19424 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
19426 * termhooks.h (EVENT_INIT): New macro.
19428 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
19430 * alloc.c (mark_kboards): Move to keyboard.c.
19432 * keyboard.c (record_asynch_buffer_change, read_avail_input):
19433 * xterm.c (x_dispatch_event):
19434 * xmenu.c (find_and_call_menu_selection):
19435 * xdisp.c (handle_tool_bar_click):
19436 * w32menu.c (menubar_selection_callback):
19437 * sysdep.c (kbd_input_ast, read_input_waiting):
19438 * msdos.c (dos_rawgetc):
19439 * macterm.c (mac_check_for_quit_char):
19440 * macmenu.c (menubar_selection_callback):
19441 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
19442 data to kbd_buffer_store_event.
19444 2003-06-15 Kim F. Storm <storm@cua.dk>
19446 * xdisp.c (x_fix_overlapping_area): Always use area relative X
19447 to fix redisplay problem with tall characters (such as
\e,AC
\e(B).
19449 2003-06-13 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
19451 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
19453 2003-06-12 Kenichi Handa <handa@m17n.org>
19455 * fileio.c (Fwrite_region): Save and restore restriction.
19457 2003-06-12 Dave Love <fx@gnu.org>
19459 * alloca.c (alloca): Declare arg as size_t.
19461 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
19462 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
19464 2003-06-11 Dave Love <fx@gnu.org>
19466 * search.c (shrink_regexp_cache): Use xrealloc.
19467 (syms_of_search): Use xmalloc.
19469 2003-06-10 Kim F. Storm <storm@cua.dk>
19471 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
19472 Adjust phys_cursor.x to be relative to window box, rather than
19473 text area before checking -- to ensure cursor is redrawn when
19475 Note: This also fixes a similar (older) bug if display margins
19478 2003-06-06 Kenichi Handa <handa@m17n.org>
19480 * coding.c (encoding_buffer_size): If coding->type is
19481 coding_type_ccl, double magnification on CRLF encoding.
19483 2003-06-06 Jason Rumney <jasonr@gnu.org>
19485 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
19486 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
19488 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
19491 2003-06-05 Dave Love <fx@gnu.org>
19493 * strftime.c: Merge changes from gnulib.
19495 * mktime.c (__mktime_internal): Merge changes from gnulib
19496 involving year 69 and dst2.
19498 Changes to merge with gnulib version and be consistent with the
19501 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
19502 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
19503 [HAVE_LOCALE_H]: Include locale.h.
19504 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
19506 2003-06-05 Kim F. Storm <storm@cua.dk>
19508 * window.c (coordinates_in_window): Convert X and Y to window
19509 relative coordinates inside mode-line and header-line parts.
19510 Convert X and Y to margin area relative coordinates inside left
19511 and right display margin parts.
19513 2003-06-05 Jason Rumney <jasonr@gnu.org>
19515 * w32fns.c (add_system_logical_colors_to_map): New function.
19516 (Fx_open_connection): Use it.
19518 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
19520 * process.c (allocate_pty): Revert part of the previous patch.
19521 (Faccept_process_output): Simplify.
19523 2003-06-04 Jason Rumney <jasonr@gnu.org>
19525 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
19527 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
19528 (lispy_mouse_wheel_names): Remove.
19529 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
19530 Always define drag_and_drop_syms.
19532 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
19533 WHEEL_EVENT events.
19535 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
19537 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
19539 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
19541 2003-06-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19543 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
19546 2003-06-03 Richard M. Stallman <rms@gnu.org>
19548 * window.c (Fwindow_edges): Doc fix.
19549 (Fwindow_pixel_edges, Fwindow_inside_edges)
19550 (Fwindow_inside_pixel_edges): New functions.
19551 (syms_of_window): defsubr them.
19553 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
19554 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
19556 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
19558 * dispnew.c (Fsit_for): Don't lie about the number of args.
19560 2003-06-02 Dave Love <fx@gnu.org>
19562 * callproc.c: Use HAVE_FCNTL_H, not USG5.
19563 (syms_of_callproc) <process-environment>: Doc fix.
19565 * doc.c: Use HAVE_FCNTL_H, not USG5.
19567 * xfaces.c (font_rescale_ratio): Fix for K&R.
19569 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
19571 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
19573 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
19575 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
19576 (xg_create_frame_widgets): Use ENCODE_UTF_8.
19578 * xterm.c (Qutf_8): Move to coding.c
19580 * xmenu.c (ENCODE_MENU_STRING): New.
19581 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
19584 * coding.h (ENCODE_UTF_8): New.
19587 * coding.c (Qutf_8): New.
19588 (syms_of_coding): Intern it.
19590 * fns.c: Doc fixes.
19592 2003-06-02 Kenichi Handa <handa@m17n.org>
19594 * buffer.c (Fset_buffer_multibyte): Fix previous change.
19596 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
19598 * lread.c (openp): Make sure STR is a string.
19600 2003-06-01 David Ponce <david@dponce.com>
19602 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
19603 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
19605 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
19606 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
19607 (discard_mouse_events): Discard WHEEL_EVENT events too.
19608 (lispy_wheel_names, wheel_syms): New.
19609 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
19610 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
19611 (make_lispy_event): Add WHEEL_EVENT handler.
19613 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
19614 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
19615 WHEEL_EVENT events.
19617 2003-05-31 John Paul Wallington <jpw@gnu.org>
19619 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
19620 timer are in lisp/emacs-lisp.
19622 2003-05-31 Kenichi Handa <handa@m17n.org>
19624 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
19625 region when a buffer is changed to unibyte.
19627 * charset.h (VALID_LEADING_CODE_P): New macro.
19628 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
19630 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
19631 is nonzero, accept multibyte form of eight-bit-control chars.
19632 (decode_composition_emacs_mule): Likewise.
19633 (decode_coding_emacs_mule): Likewise.
19634 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
19635 multibyte form of eight-bit-control chars.
19637 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
19638 (Finsert_file_contents): If coding-system-for-read is bound to
19639 Qauto_save_coding, use the coding system emacs-mule with special
19640 setting for recovering a file.
19641 (choose_write_coding_system): On auto saving, use the coding
19642 system emacs-mule with special setting for auto saving.
19643 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
19645 2003-05-30 Kenichi Handa <handa@m17n.org>
19647 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
19648 properly before calling ccl_driver.
19650 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
19652 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
19653 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
19654 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
19656 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
19658 * xfaces.c (realize_default_face): Do not abort if lface is
19659 non-existent - reverts change from 2003-05-19.
19661 2003-05-29 Kenichi Handa <handa@m17n.org>
19663 * coding.c (decode_coding_iso2022): Pay attention to the byte
19664 sequence of CTEXT extended segment, and retain those bytes as is.
19666 2003-05-28 Kenichi Handa <handa@m17n.org>
19668 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
19669 of CODING_REPLACEMENT_CHARACTER.
19670 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
19671 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
19672 check this flag on encoding.
19673 (encode_coding_sjis_big5):
19674 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
19675 (Fset_terminal_coding_system_internal):
19676 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
19677 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
19679 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
19680 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19681 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
19683 2003-05-28 Richard M. Stallman <rms@gnu.org>
19685 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
19687 * eval.c (unbind_to): Move init of this_binding to separate statement.
19689 2003-05-28 Kim F. Storm <storm@cua.dk>
19691 * xdisp.c (expose_window): Fix error in calculation of
19692 window relative coordinates of area to redisplay.
19694 2003-05-27 Jason Rumney <jasonr@gnu.org>
19696 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
19698 2003-05-27 David Ponce <david@dponce.com>
19700 Handle W32 mouse wheel events as mouse click events, like in X.
19702 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
19703 MOUSE_WHEEL_EVENT anymore.
19705 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
19706 Scrolling down/up the mouse wheel is respectively mapped to mouse
19708 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
19709 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
19710 WM_MOUSEWHEEL events.
19712 2003-05-27 Andreas Schwab <schwab@suse.de>
19714 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
19716 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
19717 partially visible line.
19719 * alloc.c (Fgarbage_collect): Fix last change.
19721 2003-05-26 John Paul Wallington <jpw@gnu.org>
19723 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
19725 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
19727 * window.c (Fset_window_buffer): Add type of `keep_margins'.
19728 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
19730 * window.h (window_box_text_cols): Declare.
19732 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
19733 (x_draw_vertical_border): Remove unused var `f'.
19735 * xfaces.c (build_scalable_font_name): Remove `unused var
19736 pixel_size' warning.
19738 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
19740 * unexelf.c (unexec): Remove `unused var n' warning.
19742 * strftime.c (my_strftime_localtime_r): Remove `defined but
19745 * process.c (allocate_pty): Remove `unused var stb' and
19746 `cp might be used uninitialized' warnings.
19748 * dispnew.c (mode_line_string): Remove unused var `f'.
19750 * coding.c (find_safe_codings): Remove unused var `i'.
19752 * bytecode.c (Fbyte_code): Remove `unused val' warning.
19754 * buffer.c (Fkill_buffer): Remove unused var `list'.
19756 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
19758 2003-05-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19760 * frame.c (make_frame): Condition want_fullscreen with
19761 HAVE_WINDOW_SYSTEM.
19763 2003-05-25 Juanma Barranquero <lektu@terra.es>
19765 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
19766 (Fwindow_scroll_bars): Fix typo in docstring.
19768 2003-05-24 Kim F. Storm <storm@cua.dk>
19770 The following changes serve several purposes:
19772 1) Swap the position of fringes and display margins in windows, i.e.
19773 the fringes are now displayed between the margins and the text area
19776 2) Allow fringe and scroll bar parameters to be set per-buffer and
19777 per-window (like display margins). Such settings are now stored
19778 in window configurations, preserved when frames are resized, and
19779 copied when windows are split vertically or horizontally.
19780 Several bugs related to display margins have been fixed.
19782 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
19784 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
19785 rather than FRAME_WIDTH (FRAME_FONT (f)).
19787 5) Introduce a consistent naming of variables, members and macros
19788 depending on whether their value is measured in pixels or in
19789 canonical columns/lines. Pixel dimensions are named *_width and
19790 *_height, while canonical columns/lines are named *_cols and
19791 *_lines. Pixel positions are named *_x and *_y, while column/line
19792 positions are named *_col and *_line.
19794 6) Consolidate more of the X, W32, and MAC gui code by moving
19795 common data into struct frame, and generalize it for the non-gui
19796 case by using suitable defaults.
19798 7) Cleanup and consolidate the macros controlling frame and window
19799 layout into frame.h and window.h, and generalize the use of the
19800 various window_box_* functions (enhanced to handle the new fringe
19801 position and the per-window fringe and scroll bar settings).
19803 * frame.h (struct frame): Rename members height to text_lines,
19804 width to text_cols, window_height to total_lines, window_width to
19805 total_cols, new_height to new_text_lines, new_width to
19806 new_text_cols. All uses changed.
19807 (struct frame): New members which consolidate common members of
19808 x_output, w32_output, and mac_output structures: left_pos,
19809 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
19810 win_gravity, size_hint_flags, border_width, internal_border_width,
19811 line_height, fringe_cols, left_fringe_width, right_fringe_width,
19812 want_fullscreen. All uses changed.
19813 (struct frame): New member column_width contaning the canonical
19814 column width, analogue to line_height. All uses changed.
19815 (struct frame): Rename members scroll_bar_pixel_width to
19816 config_scroll_bar_width, and scroll_bar_cols to
19817 config_scroll_bar_cols. All uses changed.
19818 (struct frame): New member scroll_bar_actual_width which
19819 consolidates and renames the vertical_scroll_bar_extra member of
19820 x_output, w32_output, and mac_output structures. All uses changed.
19821 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
19822 from x/w32/macterm.h files. All uses changed. Also change code
19823 which referred to f->output_data...->pixel_height.
19824 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
19825 from x/w32/macterm.h files. All uses changed. Also change code
19826 which referred to f->output_data...->pixel_width.
19827 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
19828 Also change code which referred to f->height.
19829 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
19830 Also change code which referred to f->width.
19831 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
19832 to update new_text_lines and new_text_cols members directly.
19833 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
19834 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
19835 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
19836 FRAME_SCROLL_BAR_COLS. All uses changed.
19837 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
19838 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
19839 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
19840 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
19841 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
19842 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
19843 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
19844 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
19845 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
19846 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
19847 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
19848 Unconditionally return line_height member (it now has proper value
19849 also for non-window frames).
19850 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
19851 return new column_width member (rather than the default font width).
19852 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
19853 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
19854 from x/w32/macterm.h files. Unconditionally return corresponding
19855 member of frame structure (they now have proper values also for
19856 non-window frames).
19857 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
19858 Calculate return value from left and right widths.
19859 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
19860 internal_border_width member (has proper value for non-window frame).
19861 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
19862 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
19863 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
19864 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
19865 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
19866 consolidated from xterm.h, macterm.h, and w32term.h.
19867 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
19868 consolidated from xterm.h, macterm.h, and w32term.h.
19869 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
19870 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
19871 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
19872 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
19873 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
19874 consolidated from x/mac/w32term.h.
19875 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
19876 consolidated from x/mac/w32term.h.
19877 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
19878 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
19879 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
19880 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
19882 * window.h (struct window): Rename members left to left_col,
19883 top to top_line, height to total_lines, width to total_cols,
19884 left_margin_width to left_margin_cols, right_margin_width to
19885 right_margin_cols, orig_height to orig_total_lines, orig_top to
19886 orig_top_line. All uses changed.
19887 (struct window): New members left_fringe_width, right_fringe_width,
19888 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
19889 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
19890 New macros primarily used to simplify other macros.
19891 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
19892 referred to XINT (w->width).
19893 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
19894 referred to XINT (w->height).
19895 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
19896 referred to XINT (w->width) * canon_x_unit.
19897 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
19898 referred to XINT (w->height) * canon_y_unit.
19899 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
19900 referred to XINT (w->left).
19901 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
19902 all uses and code that referred to XINT (w->left) + XINT (w->width).
19903 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
19904 referred to XINT (w->top).
19905 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
19906 referred to XINT (w->top) + XINT (w->height).
19907 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
19908 referred to XINT (w->left) * canon_x_unit.
19909 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
19910 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
19911 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
19912 referred to XINT (w->top) * canon_y_unit.
19913 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
19914 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
19915 (WINDOW_LEFTMOST_P): New macro.
19916 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
19918 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
19920 (WINDOW_BOX_LEFT_EDGE_X): Rename from
19921 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
19922 Do not exclude left fringe width.
19923 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
19924 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
19925 Do not exclude fringe widths.
19926 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
19927 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
19928 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
19929 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
19930 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
19931 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
19932 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
19933 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
19934 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
19935 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
19936 New macros. Change code which referenced corresponding
19937 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
19938 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
19939 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
19940 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
19941 allow per-window scroll-bar settings.
19942 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
19943 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
19944 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
19945 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
19946 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
19947 FRAME_SCROLL_BAR_WIDTH.
19948 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
19949 (WINDOW_SCROLL_BAR_AREA_X): New macros.
19950 (WINDOW_HEADER_LINE_HEIGHT): Rename from
19951 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
19952 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
19953 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
19954 (WINDOW_BOX_TEXT_HEIGHT): Rename from
19955 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
19956 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
19957 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
19958 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
19959 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
19960 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
19961 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
19962 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
19963 (window_from_coordinates): Update prototype.
19964 (Fset_window_buffer): Update EXFUN.
19965 (set_window_buffer): Update prototype.
19967 * dispextern.h (struct glyph_matrix): Rename members window_left_x
19968 to window_left_col, window_top_y to window_top_line. All uses
19970 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
19971 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
19972 internal_border_width is now set to 0 for non-window frames.
19973 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
19974 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
19975 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
19976 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
19977 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
19978 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
19979 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
19980 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
19981 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
19982 Move to window.h and renamed [see window.h changes].
19983 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
19984 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
19985 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
19986 Use WINDOW_TOTAL_LINES.
19987 (frame_update_line_height): Remove prototype.
19989 * buffer.h (struct buffer): Rename members measured in columns:
19990 left_margin_width to left_margin_cols, right_margin_width to
19991 right_margin_cols. All uses changed.
19992 New members left_fringe_width, right_fringe_width,
19993 fringes_outside_margins for per-buffer fringe settings.
19994 New members scroll_bar_width and vertical_scroll_bar_type for
19995 per-buffer scroll bar settings.
19997 * buffer.c (init_buffer_once): Set buffer_defaults and
19998 buffer_local_flags for new buffer-local variables
19999 left_fringe_width, right_fringe_width, fringes_outside_margins,
20000 scroll_bar_width, and vertical_scroll_bar_type.
20001 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
20002 default-* variables for them.
20004 * dispnew.c: Make (many) trivial substitutions for renamed and
20005 new macros in dispextern.h, frame.h and window.h.
20006 (mode_line_string): No need to adjust width for mode lines, as it
20007 is already adjusted by the caller.
20008 (marginal_area_string): Handle fringes inside/outside margins.
20010 * frame.c: Make (many) trivial substitutions for renamed and
20011 new macros in dispextern.h, frame.h and window.h.
20012 (make_frame): Initialize left_fringe_width, right_fringe_width,
20013 fringe_cols, scroll_bar_actual_width, border_width,
20014 internal_border_width, column_width, line_height, x_pixels_diff,
20015 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
20016 members with values suitable for a non-window frames.
20018 * gtkutil.c: Make (many) trivial substitutions for renamed and
20019 new macros in dispextern.h, frame.h and window.h.
20021 * indent.c: Make (few) trivial substitutions for renamed and
20022 new macros in dispextern.h, frame.h and window.h.
20024 * keyboard.c: Make (many) trivial substitutions for renamed and
20025 new macros in dispextern.h, frame.h and window.h.
20026 (make_lispy_event): Use window positions returned from
20027 window_from_coordinates when constructing the lisp event for
20028 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
20029 (incorrect) values locally.
20030 (make_lispy_movement): Use window positions returned from
20031 window_from_coordinates when constructing the lisp event, rather
20032 than calculating (incorrect) values locally.
20034 * scroll.c: Make (some) trivial substitutions for renamed and
20035 new macros in dispextern.h, frame.h and window.h.
20037 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
20040 * sysdep.c: Make (few) trivial substitutions for renamed and
20041 new macros in dispextern.h, frame.h and window.h.
20043 * term.c: Make (some) trivial substitutions for renamed and
20044 new macros in dispextern.h, frame.h and window.h.
20046 * widget.c: Make (few) trivial substitutions for renamed and
20047 new macros in dispextern.h, frame.h and window.h.
20049 * window.c: Make (many) trivial substitutions for renamed and
20050 new macros in dispextern.h, frame.h and window.h.
20051 (make_window): Initialize new members
20052 left_margin_cols, right_margin_cols, left_fringe_width,
20053 right_fringe_width, fringes_outside_margins, scroll_bar_width,
20054 and vertical_scroll_bar_type.
20055 (coordinates_in_window): Adapt to new fringe/margin positions
20056 and per-window fringes and scroll-bars.
20057 Fix bug related to incorrectly adjusting coordinates by
20058 frame's internal_border_width (the effect normally negible since
20059 the internal_border_width is typically 0 or 1 pixel, but very
20060 noticeable for an internal_border_width of e.g. 25 pixels).
20061 Upon successful return (other than ON_NOTHING), the coordinates
20062 are now always properly converted to window relative for the
20063 given display element.
20064 (window_from_coordinates): Add new parameters wx and wy to
20065 return the window relative x and y position in the returned
20066 window and part. A null arg means, don't return the position.
20067 All callers changed.
20068 (adjust_window_margins): New function which may reduce the width
20069 of the display margins if a window's text area is too small after
20070 resizing or splitting windows.
20071 (size_window): Fix bug that did not account for display margin
20072 widths when checking the minimum width of a window; use
20073 adjust_window_margins.
20074 (set_window_buffer): Call Fset_window_fringes and
20075 Fset_window_scroll_bars to setup per-window elements.
20076 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
20077 existing display margin, fringe widths, and scroll bar settings
20078 (e.g. after splitting a window or resizing the frame).
20079 All callers changed.
20080 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
20081 (Fsplit_window): Duplicate original window's display margin,
20082 fringe, and scroll-bar settings; then call Fset_window_buffer with
20083 KEEP_MARGINS non-nil. This fixes a bug which caused a split
20084 window to only preserve the display margins in one of the windows.
20085 When splitting horizontally, call adjust_window_margins on both
20086 windows to ensure that the text area of the new windows is non too
20087 narrow. This fixes a bug which could cause Emacs to trap if the
20088 width of the split window was less than the width of the display
20090 (window_box_text_cols): Rename from window_internal_width.
20091 All uses changed. Adapt to per-window fringes and scroll bars.
20092 Fix bug that caused vertical separator to be subtracted also on
20093 window frames. Fix another bug that did not reduce the returned
20094 value by the columns used for display margins.
20095 (window_scroll_line_based): Fix bug related to scrolling too much
20096 when display margins are present (implicitly fixed by the fix to
20097 window_box_text_cols).
20098 (scroll_left, scroll_right): Fix bug related to scrolling too far
20099 by default when display margins are present (implicitly fixed by
20100 the fix to window_box_text_cols).
20101 (struct saved_window): Rename members left to left_col, top to
20102 top_line, width to total_cols, height to total_lines, orig_top to
20103 orig_top_line, orig_height to orig_total_lines. All uses changed.
20104 New members left_margin_cols, right_margin_cols,
20105 left_fringe_width, right_fringe_width, fringes_outside_margins,
20106 scroll_bar_width, and vertical_scroll_bar_type for saving
20107 per-window display elements.
20108 (Fset_window_configuration): Restore display margins, fringes,
20109 and scroll bar settings. This fixes a bug which caused display
20110 margins to be discarded when saving and restoring a window
20112 (save_window_save): Save display margins, fringes, and scroll bar
20113 settings. This fixes a bug which caused display margins to be
20114 discarded when saving and restoring a window configuration.
20115 (Fset_window_margins): Do nothing if display margins are not
20116 really changed. Otherwise, call adjust_window_margins to ensure
20117 the text area doesn't get too narrow. This fixes a bug which
20118 could cause Emacs to trap if setting display margins wider than
20119 the width of the window.
20120 (Fset_window_fringes): New defun to allow user to specifically set
20121 this window's fringe widths and position vs. display margins.
20122 (Fwindow_fringes): New defun to return window's actual fringe settings.
20123 (Fset_window_scroll_bars): New defun to allow user to specifically
20124 set this window's scroll bar width and position.
20125 (Fwindow_scroll_bars): New defun to return window's actual scroll
20127 (compare_window_configurations): Also compare display margins,
20128 fringes, and scroll bar settings.
20129 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
20131 * xdisp.c: Make (many) trivial substitutions for renamed and
20132 new macros in dispextern.h, frame.h and window.h.
20133 (window_box_width): Adapt to per-window fringes and scroll bars,
20134 and new fringe vs. display margin position. Note that returned
20135 value is no longer guaranteed to be a whole multiple of the frame
20136 column width, since per-window fringes may now be any width.
20137 (window_box_left_offset): New function like window_box_left, but
20138 value is relative to left border of window (rather than frame).
20139 (window_box_right_offset): New function like window_box_right,
20140 but value is relative to left border of window.
20141 (window_box_left): Adapt to per-window fringes and scroll bars,
20142 and new fringe vs. display margin position. Simplify by using
20143 WINDOW_LEFT_EDGE_X and window_box_left_offset.
20144 (window_box): Allow null args for unnecessary return values;
20145 change/simplify relevant callers.
20146 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
20147 and new fringe vs. display margin position.
20148 Use window_box_left_offset and window_box_right_offset
20149 (get_glyph_string_clip_rect): Adapt to per-window fringes and
20150 scroll bars, and new fringe vs. display margin position.
20151 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
20152 (draw_fringe_bitmap): Rework to handle per-window fringes and new
20153 fringe vs. display margin position.
20154 (hscroll_window_tree): Use window_box_width instead of window_box.
20155 (redisplay_window): Adapt to per-window scroll bars.
20156 (draw_glyphs): Rework to handle per-window fringes and scroll
20157 bars, and new fringe vs. display margin position.
20158 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
20159 (x_clear_end_of_line): Adapt to per-window fringes and scroll
20160 bars, and new fringe vs. display margin position. Fix bug which
20161 increased total width of full_width rows by width of scroll bars
20162 although window's total width already includes that.
20163 (x_fix_overlapping_area): Simplify using window_box_left_offset.
20164 (expose_area): Simplify using window_box_left_offset.
20165 (x_draw_vertical_border): Handle per-window scroll bar settings,
20166 mixing windows with left, right and no scroll bars.
20168 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
20169 where it's used in x_list_fonts (for clarity).
20170 (frame_update_line_height): Remove unused function; functionality
20171 is now done directly when setting the default font in x_set_font.
20173 * xfns.c: Make (many) trivial substitutions for renamed and
20174 new macros in dispextern.h, frame.h and window.h.
20176 * xmenu.c: Make (some) trivial substitutions for renamed and
20177 new macros in dispextern.h, frame.h and window.h.
20179 * xterm.h (struct x_output): Move members left_pos, top_pos,
20180 border_width, pixel_height, pixel_width, line_height,
20181 internal_border_width, vertical_scroll_bar_extra,
20182 left_fringe_width, right_fringe_width, fringe_cols,
20183 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
20184 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
20185 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
20186 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
20187 (PIXEL_WIDTH, PIXEL_HEIGHT)
20188 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
20189 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
20190 frame.h and renamed [see frame.h changes].
20191 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
20192 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
20193 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
20194 and renamed [see frame.h changes].
20196 * xterm.c: Make (several) trivial substitutions for renamed and
20197 new macros in dispextern.h, frame.h and window.h.
20198 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
20199 (scroll_run): Adapt to new fringe position.
20200 (glyph_rect): Use window coordinates returned from
20201 window_from_coordinates rather than frame_to_window_pixel_xy.
20202 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
20204 (handle_one_xevent): Simplify a USE_GTK conditional.
20205 (x_clip_to_row): Remove superfluous whole_line_p arg and code
20206 (fringes are now inside margins, i.e. always in the clipping area).
20207 All callers changed.
20208 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
20209 directly, then call compute_fringe_widths. Don't call
20210 frame_update_line_height.
20212 * w32term.h (struct w32_output): Move members left_pos, top_pos,
20213 border_width, pixel_height, pixel_width, line_height,
20214 internal_border_width, vertical_scroll_bar_extra,
20215 left_fringe_width, right_fringe_width, fringe_cols,
20216 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
20217 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
20218 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
20219 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
20220 (PIXEL_WIDTH, PIXEL_HEIGHT)
20221 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
20222 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
20223 frame.h and renamed [see frame.h changes].
20224 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
20225 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
20226 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
20227 and renamed [see frame.h changes].
20229 * w32term.c: Make (several) trivial substitutions for renamed and
20230 new macros in dispextern.h, frame.h and window.h.
20231 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
20232 (glyph_rect): Use window coordinates returned from
20233 window_from_coordinates rather than frame_to_window_pixel_xy.
20234 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
20236 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
20237 (fringes are now inside margins, i.e. always in the clipping area).
20238 All callers changed.
20239 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
20240 directly, then call compute_fringe_widths. Don't call
20241 frame_update_line_height.
20243 * w32console.c: Make (few) trivial substitutions for renamed and
20244 new macros in dispextern.h, frame.h and window.h.
20246 * w32fns.c: Make (many) trivial substitutions for renamed and
20247 new macros in dispextern.h, frame.h and window.h.
20249 * w32menu.c: Make (few) trivial substitutions for renamed and
20250 new macros in dispextern.h, frame.h and window.h.
20252 * macterm.h (struct mac_output): Move members left_pos, top_pos,
20253 border_width, pixel_height, pixel_width, line_height,
20254 internal_border_width, vertical_scroll_bar_extra,
20255 left_fringe_width, right_fringe_width, fringe_cols,
20256 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
20257 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
20258 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
20259 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
20260 (PIXEL_WIDTH, PIXEL_HEIGHT)
20261 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
20262 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
20263 frame.h and renamed [see frame.h changes].
20264 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
20265 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
20266 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
20267 and renamed [see frame.h changes].
20269 * macterm.c: Make (several) trivial substitutions for renamed and
20270 new macros in dispextern.h, frame.h and window.h.
20271 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
20272 (glyph_rect): Use window coordinates returned from
20273 window_from_coordinates rather than frame_to_window_pixel_xy.
20274 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
20276 (x_clip_to_row): Remove superfluous whole_line_p arg and code
20277 (fringes are now inside margins, i.e. always in the clipping area).
20278 All callers changed.
20279 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
20280 directly, then call compute_fringe_widths. Don't call
20281 frame_update_line_height.
20283 * macfns.c: Make (several) trivial substitutions for renamed and
20284 new macros in dispextern.h, frame.h and window.h.
20285 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
20287 * macmenu.c: Make (few) trivial substitutions for renamed and
20288 new macros in dispextern.h, frame.h and window.h.
20290 * msdos.h (struct x_output): Remove members left_pos, top_pos,
20291 and line_height, and use corresponding new members in struct
20292 frame. All uses changed.
20293 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
20294 superseeded by corresponding macros in frame.h.
20296 * msdos.c: Make (several) trivial substitutions for renamed and
20297 new macros in dispextern.h, frame.h and window.h.
20298 (IT_note_mouse_highlight): Use updated window coordinates returned
20299 by window_from_coordinates, rather than adjusting them locally.
20300 (internal_terminal_init): No need to initialize line_height here;
20301 it now defaults to 1.
20303 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
20305 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
20306 dropping `down' events.
20308 2003-05-24 Andreas Schwab <schwab@suse.de>
20310 * coding.c (find_safe_codings): Fix last change.
20312 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
20314 * xfns.c (x_window): Fix typo from 2003-05-21 change.
20316 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
20318 * xdisp.c (display_mode_element): Increase max depth.
20319 Simplify the error handling code. Use a different error string
20320 for the case where we hit the depth limit.
20322 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
20324 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
20326 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
20328 * intervals.c (get_local_map): Don't get char-property of previous
20329 point any more: get_pos_property already does it and better.
20331 2003-05-21 Dave Love <fx@gnu.org>
20333 [Merged from unicode branch.]
20335 * xfns.c (x_window, x_window): Use use_xim.
20337 * xterm.c (use_xim): Initialize.
20338 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20339 (x_term_init): Maybe set use_xim.
20341 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20343 2003-05-21 Jason Rumney <jasonr@gnu.org>
20345 * unexw32.c (_start): Remove _fmode initialization.
20347 * emacs.c (main) [WINDOWSNT]: Move it here.
20349 2003-05-20 Dave Love <fx@gnu.org>
20351 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
20353 2003-05-19 Richard M. Stallman <rms@gnu.org>
20355 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
20356 as value for QCfont attribute.
20357 (realize_default_face): lface should already exist; crash if not.
20358 Specify 0 for FORCE_P when calling set_lface_from_font_name.
20360 * frame.c (Fignore_event): Doc fix.
20362 2003-05-19 Kenichi Handa <handa@m17n.org>
20364 * coding.c (decode_coding_string): Handle post-read-conversion
20365 even if the coding doesn't require decoding.
20367 2003-05-18 Richard M. Stallman <rms@gnu.org>
20369 * callproc.c (Fcall_process_region): Doc fix.
20371 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
20373 * lread.c (Fload): Print a message if package is obsolete.
20375 * window.c (Fselect_window): Add optional `norecord' arg.
20376 (select_window_1): Fold into Fselect_window.
20377 (select_window_norecord): New function.
20378 (temp_output_buffer_show): Use it. Preserve current buffer.
20380 * window.h (Fselect_window): Update declaration.
20382 * window.c (delete_window, Fother_window, Fset_window_configuration):
20383 * minibuf.c (read_minibuf):
20384 * macterm.c (x_new_focus_frame):
20385 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
20386 * callint.c (Fcall_interactively):
20387 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
20389 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
20391 2003-05-17 David Kastrup <dak@gnu.org>
20393 * process.c (read_process_output): Back out change from 2003-03-09.
20395 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
20397 * editfns.c (get_pos_property): Don't assume that `object' = nil.
20399 * textprop.c (text_property_stickiness): New arg `buffer'.
20401 * intervals.h (text_property_stickiness): New arg `buffer'.
20402 (get_pos_property): Declare.
20404 * intervals.c (get_local_map): Use get_pos_property, to obey
20405 stickiness and empty overlays.
20406 (create_root_interval, graft_intervals_into_buffer): Use BEG.
20407 (merge_properties, intervals_equal, merge_properties_sticky):
20409 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
20411 2003-05-17 Richard M. Stallman <rms@gnu.org>
20413 * minibuf.c (read_minibuf): If buffer is empty, record the default
20415 (Fminibuffer_complete_word): When deleting the overlap, take account
20416 of its real position.
20418 * fns.c (map_char_table): Fix previous change.
20420 * syntax.c (find_defun_start):
20421 When open_paren_in_column_0_is_defun_start,
20422 return beginning of buffer.
20424 * lisp.h (map_char_table): Declare added arg.
20426 * fns.c (map_char_table): New arg TABLE gets the master table.
20428 Process default and inheritance, resorting to Faref if necessary.
20430 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20431 (Faccessible_keymaps): Pass new arg to map_char_table.
20433 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
20435 * casetab.c (set_case_table): Pass new arg to map_char_table.
20437 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
20439 * lisp.h (specbinding_func): New typedef.
20440 (struct specbinding): Use specbinding_func, to put the `volatile'
20441 in the right place.
20443 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
20444 to avoid GCC warning.
20446 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
20448 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
20450 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
20452 * keyboard.c (apply_modifiers): Don't fill the other cache.
20454 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
20456 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
20458 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
20459 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
20460 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
20461 (Fset_window_configuration, Fcurrent_window_configuration)
20462 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
20463 (Fpos_visible_in_window_p, mark_window_cursors_off)
20464 (window_internal_height, window_internal_width, Frecenter)
20465 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
20466 (replace_buffer_in_all_windows, init_window_once, init_window)
20467 (syms_of_window, keys_of_window): Move from lisp.h.
20468 * lisp.h: Move window.c declarations to window.h.
20470 * bytecode.c: Include window.h.
20471 * emacs.c: Include window.h.
20473 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
20474 (keyremap): Add `parent' field.
20475 (keyremap_step): Use it. Remove `parent' argument.
20476 (read_key_sequence): Setup and use the new `parent' field.
20478 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
20480 * keyboard.c (adjust_point_for_property): Ensure termination.
20482 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
20484 * keyboard.c (follow_key): Remove dead variable `did_meta'.
20485 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
20486 duplicated handling of function-key-map and key-translation-map
20487 in read_key_sequence.
20488 (read_key_sequence): Use them.
20490 * keyboard.c (adjust_point_for_property): Try harder to move point
20491 to the non-sticky end of an invisible property.
20493 * xdisp.c (single_display_prop_intangible_p): Make `space' display
20494 property intangible as well.
20496 2003-05-10 Andreas Schwab <schwab@suse.de>
20498 * xmenu.c (single_menu_item): Change last parameter to void* to
20501 2003-05-09 Richard M. Stallman <rms@gnu.org>
20503 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
20504 Bind Qinhibit_modification_hooks to t so there will be no GC.
20505 Rename local `tem' to `save_deactivate_mark'.
20507 * eval.c (specpdl_ptr): Declare volatile.
20508 (unbind_to): Copy the whole binding and decrement specpdl_ptr
20509 before doing the work of unbinding it.
20511 * lisp.h (struct specbinding): Declare elements volatile.
20512 (specpdl_ptr): Declare volatile.
20514 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
20516 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
20517 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
20519 2003-05-08 Dave Love <fx@gnu.org>
20521 * coding.c (Vlast_coding_system_used): Doc fix.
20523 2003-05-07 Jason Rumney <jasonr@gnu.org>
20525 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
20526 when system does not support them.
20528 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
20530 * fileio.c (Qwrite_region_annotate_functions): New var.
20531 (build_annotations): Use it to process the global part of the hook.
20532 (syms_of_fileio): Init and staticpro it.
20534 * keyboard.c (safe_run_hooks_error): Display a message instead of
20535 silently ignoring the error.
20537 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
20539 * keyboard.c (input_available_signal): Mark static.
20540 (menu_bar_items): Use map_keymap.
20541 (menu_bar_one_keymap): Remove.
20542 (menu_bar_item): Adjust arglist (for use in map_keymap).
20543 Properly hide a second binding when not both are keymaps.
20545 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
20546 (single_keymap_panes): Use it and map_keymap.
20547 (single_menu_item): Use skp as well.
20549 * keymap.h (map_keymap_function_t): New type.
20550 (map_keymap): Declare.
20552 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
20553 (map_keymap_call, Fmap_keymap): New functions.
20554 (syms_of_keymap): Defsubr map-keymap.
20556 2003-05-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20558 * gtkutil.c (create_dialog, make_widget_for_menu_item)
20559 (make_menu_item, create_menus, xg_update_menu_item): Don't call
20560 ..._with_mnemonic functions for menu items.
20562 2003-05-01 Kenichi Handa <handa@m17n.org>
20564 * coding.c (coding_system_accept_latin_extra_p): Delete this
20566 (find_safe_codings): Pay attention to
20567 the property tranlsation-table-for-encode of each codings.
20568 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
20570 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
20572 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
20574 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
20576 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
20578 * lisp.h (CHECK): Wrap args in parenthesis.
20579 (specbind): Fix doc: symbol = Qnil is not supported any more.
20581 * bytecode.c (Fbyte_code) <unwind-protect>:
20582 Use Fprogn rather than 0 and Qnil.
20584 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
20585 `double', and `triple' modifiers as well.
20587 2003-04-30 Richard M. Stallman <rms@gnu.org>
20589 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
20591 * alloc.c (abort_on_gc): New variable.
20592 (Fgarbage_collect): Abort if abort_on_gc is set.
20594 * lisp.h (abort_on_gc): Add decl.
20596 * eval.c (Fsignal): Clear abort_on_gc.
20598 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
20599 Reinit FORMAT_START and END before second scan.
20601 * xdisp.c (move_it_vertically_backward): Do the final big else
20602 even if nlines is 0.
20604 * xdisp.c (redisplay_internal): Finish the per-frame loop
20605 even if redisplay is suspended by input.
20607 2003-04-24 Andrew Choi <akochoi@shaw.ca>
20609 * macterm.c (x_list_fonts): Return all fonts that match if
20612 2003-04-25 Kenichi Handa <handa@m17n.org>
20614 * syntax.c (skip_chars): Fix previous change.
20616 2003-04-24 Kenichi Handa <handa@m17n.org>
20618 * syntax.c (skip_chars): Make the code faster by using the common
20619 technique of *p, *stop, and *endp.
20621 2003-04-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20623 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
20624 tool_bar_items so GTK tool bar expose callback does not access items
20627 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
20629 * eval.c (Fapply): Undo last change and add a comment about why.
20631 2003-04-18 Miles Bader <miles@gnu.org>
20633 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
20634 pickier PARSE_MULTIBYTE_SEQ.
20636 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
20638 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
20639 Use XCDR, XCAR, CONSP.
20640 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
20641 (Fapply): Remove unnecessary GCPRO.
20643 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
20645 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
20647 * buffer.h: Don't hardcode BEG==1.
20649 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
20651 2003-04-16 Richard M. Stallman <rms@gnu.org>
20653 * xdisp.c (try_window, try_window_reusing_current_matrix):
20654 When at end of window, set window_end_pos to Z-ZV.
20656 * buffer.c (Foverlay_recenter): Doc fix.
20658 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
20660 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
20662 2003-04-14 Andrew Choi <akochoi@shaw.ca>
20664 * macterm.c (mac_check_for_quit_char): Don't check more often than
20667 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
20669 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
20670 specially, so that they can't hide an implicit switch-frame event.
20671 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
20672 (head_table): Use switch-frame as event_kind for select-window.
20673 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
20675 * editfns.c (Fformat): Lisp_Object/int mixup.
20676 (format2): Remove unused var numargs.
20678 2003-04-11 Kenichi Handa <handa@m17n.org>
20680 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
20681 (Qafter_insert_file_set_coding): New variable.
20682 (syms_of_fileio): Initialize and staticpro it. Delete declaration
20683 for after-insert-file-adjust-coding-function.
20684 (Finsert_file_contents): Call Qafter_insert_file_set_coding
20685 instead of Vafter_insert_file_adjust_coding_function.
20687 2003-04-11 Kenichi Handa <handa@m17n.org>
20689 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
20691 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
20692 string. Callers changed.
20694 2003-04-10 Kenichi Handa <handa@m17n.org>
20696 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
20697 (syms_of_fileio): Declare it as a lisp variable.
20698 (Finsert_file_contents):
20699 Call Vafter_insert_file_adjust_coding_function before calling
20702 2003-04-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20704 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
20705 get GtkAdjustment as widget now is a GtkRange.
20707 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
20708 GtkRange to avoid memory leak.
20710 2003-04-09 Kenichi Handa <handa@m17n.org>
20712 * xfaces.c (Vface_font_rescale_alist): New variable.
20713 (struct font_name): New member rescale_ratio.
20714 (font_rescale_ratio): New function.
20715 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
20716 (better_font_p): On comparing point sized, pay attention to
20717 recale_ratio member of fonts.
20718 (build_scalable_font_name): Reflect font->rescale_ratio in the
20720 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20722 * lread.c (read1): Before calling index, check if the 2nd
20723 arguemnt is in ASCII range.
20725 2003-04-08 Richard M. Stallman <rms@gnu.org>
20727 * fileio.c (Ffile_symlink_p): Doc fix.
20729 * editfns.c (Fformat): Translate positions of text properties
20730 in the format string to apply them to the result.
20732 * fileio.c (Finsert_file_contents): Doc fix.
20733 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20735 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
20737 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
20739 2003-04-08 Steven Tamm <steventamm@mac.com>
20741 * mac.c (init_mac_osx_environment): Switch libexec and bin so
20742 that self-contained application finds libexec files.
20744 2003-04-08 Kenichi Handa <handa@m17n.org>
20746 * coding.c (code_convert_region_unwind):
20747 Set Vlast_coding_system_used to the argument.
20748 (code_convert_region): If post-read-conversion function changed
20749 the value of last-coding-sytem, keep the new value in
20750 coding->symbol so that it won't be overridden.
20751 (run_pre_post_conversion_on_str): Likewise.
20752 (coding_system_accept_latin_extra_p): New function.
20753 (find_safe_codings): Pay attention to characters registered in
20754 latin-extra-code-table.
20756 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
20758 * Makefile.in (md5.o): Add missing dependency info.
20760 2003-04-06 Richard M. Stallman <rms@gnu.org>
20762 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
20764 * marker.c (verify_bytepos): New function.
20766 * intervals.c (set_intervals_multibyte_1): When becoming
20767 multibyte, adjust right and left child sizes to a whole set of
20768 characters. If an interval gets zero total-length, delete it.
20769 If an interval consists of just its children, delete one of them.
20771 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
20772 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
20774 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
20776 (lisp_malloc): Do the work here directly.
20778 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
20780 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
20783 2003-04-04 Kenichi Handa <handa@m17n.org>
20785 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
20786 destructively change "%S" to "%s".
20788 2003-04-03 Miles Bader <miles@gnu.org>
20790 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
20793 2003-04-01 Dave Love <fx@gnu.org>
20795 * xfns.c (xpm_lookup_color): Grok "opaque".
20797 2003-03-31 Andrew Choi <akochoi@shaw.ca>
20799 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
20802 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
20804 * macterm.h (struct mac_output): Define x_pixels_diff and
20807 2003-03-31 Juanma Barranquero <lektu@terra.es>
20809 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
20810 blockinput.h and files included from it.
20812 2003-03-31 Kim F. Storm <storm@cua.dk>
20814 The following changes consolidates the common code related to
20815 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
20816 files into frame.c.
20818 * frame.c: Include blockinput.h.
20819 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
20820 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
20821 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
20823 (struct frame_parm_table, frame_parms): New table for describing
20824 frame parameters and their associated Q-variable.
20825 The order of the parameters corresponds to the sequence of the
20826 frame_parm_handlers table in redisplay_interface.
20827 (x_fullscreen_move, x_set_frame_parameters)
20828 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
20829 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
20830 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20831 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
20832 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
20833 Generic functions for processing of frame parameters.
20834 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
20835 (display_x_get_resource, x_get_resource_string): Functions for
20836 generic access to X resources.
20837 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
20838 (x_default_parameter, Fx_parse_geometry): Functions for generic
20839 access to frame parameters.
20840 (x_figure_window_size): Generic calculation of frame size.
20841 Fixed to add space needed for tool bar. Also setup size_hint_flags.
20842 (syms_of_frame): Intern and staticpro frame parameter variables.
20843 Defvar_lisp Vx_resource_class and Vx_resource_name here.
20844 Defsubr Sx_get_resource and Sx_parse_geometry.
20846 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
20847 parameter related vars defined in frame.c.
20848 (EMACS_CLASS): Define here.
20849 (enum FULLSCREEN_*): Define here.
20850 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
20851 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
20852 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
20853 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
20854 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
20855 (x_set_visibility, x_set_autoraise, x_set_autolower)
20856 (x_set_unsplittable, x_set_vertical_scroll_bars)
20857 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
20858 (x_figure_window_size): Add prototypes.
20860 * dispextern.h (frame_parm_handler): New typedef.
20861 (struct redisplay_interface): New member frame_parm_handlers.
20862 (enum resource_types): Move declaration here.
20863 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
20864 (x_default_parameter): Add prototypes.
20866 * window.c: Remove extern decl for frame parameter vars.
20867 (change_window_heights): New generic function;
20868 replaces x_change_window_heights. All users changed.
20870 * window.h (change_window_heights): Add prototype.
20872 * xfaces.c: Remove extern decl for frame parameter vars.
20874 * xterm.h (EMACS_CLASS): Remove. Use generic define.
20875 (struct w32_display_info): Fix type of xrdb member.
20876 (enum FULLSCREEN_*): Remove.
20877 Remove prototypes for generic functions (in frame.h).
20879 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
20880 parameters now defined in frame.h and frame.c.
20881 (Vx_resource_name): Remove. Use generic var.
20882 (enum x_frame_parms): Remove (bogus, unused enum).
20883 (check_x_display_info): Make non-static (for frame.c).
20884 (struct x_frame_parm_table, x_frame_parms): Remove.
20885 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
20886 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
20887 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20888 (x_change_window_heights, x_set_autoraise, x_set_autolower)
20889 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
20890 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
20891 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
20892 Remove. Use generic functions instead.
20893 (enum resource_types): Remove.
20894 (x_set_scroll_bar_default_width): New global function (for frame.c).
20895 (Fx_create_frame): Depend on x_figure_window_size to add space for
20896 toolbar and setup size_hint_flags.
20897 (x_frame_parm_handlers): New table for redisplay_interface.
20898 (syms_of_xfns): Don't intern/staticpro removed vars.
20900 * xterm.c: Remove unnecessary extern declarations.
20901 (x_fullscreen_adjust): Remove. Use generic instead.
20902 (x_redisplay_interface): Add x_frame_parm_handlers member.
20904 * w32gui.h (XrmDatabase): New (dummy) typedef.
20906 * w32term.h (EMACS_CLASS): Remove. Use generic define.
20907 (struct w32_display_info): Fix type of xrdb member.
20908 (enum FULLSCREEN_*): Remove.
20909 (x_fullscreen_adjust): Remove prototype.
20911 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
20912 parameters now defined in frame.h and frame.c.
20913 (Vx_resource_name): Remove. Use generic var.
20914 (enum x_frame_parms): Remove (bogus, unused enum).
20915 (check_x_display_info): Make non-static (for frame.c).
20916 (struct x_frame_parm_table, x_frame_parms): Remove.
20917 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
20918 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
20919 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20920 (x_change_window_heights, x_set_autoraise, x_set_autolower)
20921 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
20922 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
20923 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
20924 Remove. Use generic functions instead.
20925 (enum resource_types): Remove.
20926 (x_set_scroll_bar_default_width): New global function (for frame.c).
20927 (Fx_create_frame): Depend on x_figure_window_size to add space for
20928 toolbar and setup size_hint_flags.
20929 (w32_frame_parm_handlers): New table for redisplay_interface.
20930 (syms_of_w32fns): Don't intern/staticpro removed vars.
20932 * w32term.c: Remove unnecessary extern declarations.
20933 (x_fullscreen_adjust): Remove. Use generic instead.
20934 (x_redisplay_interface): Add w32_frame_parm_handlers member.
20936 * w32reg.c (x_get_string_resource): Use XrmDatabase.
20938 * macgui.h (XrmDatabase): New (dummy) typedef.
20940 * macterm.h (EMACS_CLASS): Remove.
20941 (struct mac_display_info): Add xrdb member.
20942 (struct mac_output): Add want_fullscreen member.
20944 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
20945 parameters now defined in frame.h and frame.c.
20946 (Vx_resource_name): Remove. Use generic var.
20947 (check_x_display_info): Make non-static (for frame.c).
20948 (struct x_frame_parm_table, x_frame_parms): Remove.
20949 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
20950 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
20951 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20952 (x_change_window_heights, x_set_autoraise, x_set_autolower)
20953 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
20954 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
20955 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
20956 Remove. Use generic functions instead.
20957 (enum resource_types): Remove.
20958 (x_set_scroll_bar_default_width): New global function (for frame.c).
20959 (mac_frame_parm_handlers): New table for redisplay_interface.
20960 (syms_of_macfns): Don't intern/staticpro removed vars.
20962 * macterm.c: Remove unnecessary extern declarations.
20963 (x_redisplay_interface): Add mac_frame_parm_handlers member.
20965 * Makefile.in (frame.o): Add dependency on blockinput.h and files
20966 included from it (atimer.h and systime.h).
20968 2003-03-30 Andreas Schwab <schwab@suse.de>
20970 * xdisp.c (x_insert_glyphs): Fix swapped width and height
20971 parameters for shift_glyphs_for_insert.
20973 * macterm.c (x_redisplay_interface): Add missing entry for
20974 draw_vertical_window_border.
20976 2003-03-29 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
20978 * fileio.c (Fexpand_file_name): In the no-handler case, after
20979 expanding, look again for a handler and invoke it. This is needed
20980 for filenames like "/foo/../user@host:/bar/../baz" -- the first
20981 expansion produces "/user@host:/bar/../baz" which needs to be
20982 expanded again for the finame result "/user@host:/baz".
20984 2003-03-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20986 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
20987 of area to be redrawn for better performance.
20989 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
20991 * xterm.c (take_vertical_position_into_account): Remove.
20992 (xt_action_hook): Call set_vertical_scroll_bar if needed.
20993 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
20994 (xm_scroll_callback, x_create_toolkit_scroll_bar)
20995 (x_set_toolkit_scroll_bar_thumb): Simplify.
20996 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
20997 (XTread_socket): Remove unused var.
20998 (x_make_frame_invisible): Replace goto with else.
21000 * xdisp.c (set_vertical_scroll_bar): New fun.
21001 (redisplay_window): Use it.
21003 2003-03-26 Richard M. Stallman <rms@gnu.org>
21005 * xdisp.c (update_tool_bar): Recompute tool bar if
21006 update_mode_lines is set. Set w->update_mode_line
21007 only if the tool bar contents actually change.
21008 (update_menu_bar): Undo previous change.
21010 2003-03-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21012 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
21013 (xg_frame_set_char_size): Calculate scroll bar width before frame
21014 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
21015 (xg_separator_p): Check for all documented separator types.
21016 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
21017 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
21019 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
21020 so tool bar gets updated.
21022 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
21024 * data.c (store_symval_forwarding): Re-instate part of the code
21025 that was deleted with too much enthusiasm.
21027 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
21029 * data.c (store_symval_forwarding): Delete special read-only
21030 hack for type == -1, since we now use ->constant instead.
21031 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
21033 * buffer.c (overlays_in): Declare static.
21034 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
21035 `constant' field rather than the variable's `type' field.
21037 2003-03-24 Andrew Choi <akochoi@shaw.ca>
21039 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
21041 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
21043 * fns.c [MAC_OSX]: Do not redefine vector.
21045 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
21047 * macgui.h: Remove definition of No_Cursor.
21049 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
21051 * xdisp.c: Define No_Cursor.
21052 (x_write_glyphs, notice_overwritten_cursor)
21053 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
21054 (note_mouse_highlight): Remove Mac-specific code.
21055 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
21057 2003-03-24 John Paul Wallington <jpw@gnu.org>
21059 * xdisp.c (redisplay_window): If mini window's buffer is not
21060 empty, then redisplay it like other windows.
21062 2003-03-23 Kim F. Storm <storm@cua.dk>
21064 * w32term.c (w32_draw_window_cursor): Fix last change.
21066 2003-03-23 Kenichi Handa <handa@m17n.org>
21068 * alloc.c (make_string_from_bytes, make_specified_string):
21069 Add `const' for the arg CONTENTS.
21071 * lisp.h (make_string_from_bytes, make_specified_string):
21072 Prototypes adjusted.
21074 2003-03-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21076 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
21078 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
21079 (XG_SB_RANGE): New define.
21081 * gtkutil.c (xg_fixed_handle_expose): New function.
21082 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
21084 (xg_update_scrollbar_pos): Take two more arguments, left and width
21085 of scroll bar including borders.
21086 Clear left and right part outside scroll bar separately as some
21087 themes have bars that are not an even number of pixels.
21088 Don't set reallocate_redraws, don't call
21089 gdk_window_process_all_updates.
21090 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
21091 so no need to change it. Calculate size and value with XG_SB_RANGE.
21093 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
21094 Pass left and width of scroll bar including borders to
21095 xg_update_scrollbar_pos.
21097 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
21099 * Makefile.in: Make sure space precedes end-of-line backslashes.
21101 2003-03-22 Kim F. Storm <storm@cua.dk>
21103 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
21104 Add generic versions here. Remove system specific versions
21107 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
21110 * xterm.h (STORE_NATIVE_RECT): New macro.
21112 2003-03-21 Kim F. Storm <storm@cua.dk>
21114 * xdisp.c (get_glyph_string_clip_rect):
21115 Use FRAME_INTERNAL_BORDER_WIDTH.
21117 * dispextern.h (struct redisplay_interface): Add active_p
21118 argument to draw_window_cursor member. All uses changed.
21120 2003-03-21 Kim F. Storm <storm@cua.dk>
21122 The following changes consolidate code related to writing and
21123 inserting glyphs, exposing frame, the tool bar, the mouse face,
21124 the output cursor, and help echo from xterm.c, w32term.c and
21125 macterm.c into xdisp.c. It also generalizes the use of the
21126 window_part enum instead of using numeric values throughout.
21128 * xdisp.c: Consolidate gui-independent code here.
21130 (Qhelp_echo): Import.
21131 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
21132 (help_echo_string, help_echo_window, help_echo_object)
21133 (previous_help_echo_string, help_echo_pos): Declare here.
21134 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
21135 (estimate_mode_line_height): Define here. Handle windowing
21136 systems directly (without using estimate_mode_line_height_hook).
21137 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
21138 (update_window_cursor, update_cursor_in_window_tree)
21139 (fast_find_position, fast_find_string_pos)
21140 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
21141 (expose_area, expose_line, expose_overlaps, expose_window)
21142 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
21143 declared static as they are only used locally in xdisp.c.
21144 (draw_glyphs): Rename from x_draw_glyphs and make static.
21145 (tool_bar_item_info, notice_overwritten_cursor): Make static.
21146 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
21147 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
21148 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
21149 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
21150 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
21151 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
21152 (note_mouse_highlight, x_clear_window_mouse_face)
21153 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
21154 (x_intersect_rectangles): New generic functions for use by xdisp.c
21155 and GUI front-ends.
21156 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
21157 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
21159 * dispextern.h (Display_Info): Generic typedef for *_display_info.
21160 (NativeRectangle): Generic typedef for rectangle type.
21161 (enum window_part): Move here from window.c.
21162 (struct redisplay_interface): New members flush_display_optional,
21163 define_frame_cursor, clear_frame_area, draw_window_cursor,
21164 draw_vertical_window_border, shift_glyphs_for_insert.
21165 Rename member clear_mouse_face to clear_window_mouse_face.
21166 (estimate_mode_line_height_hook): Remove hook.
21167 (auto_raise_tool_bar_buttons_p): Don't declare extern.
21168 (tool_bar_item_info): Remove prototype.
21169 (help_echo_string, help_echo_window, help_echo_object)
21170 (previous_help_echo_string, help_echo_pos)
21171 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
21172 (x_stretch_cursor_p, output_cursor): Declare extern.
21173 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
21174 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
21175 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
21176 (display_and_set_cursor, set_output_cursor, x_cursor_to)
21177 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
21178 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
21179 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
21180 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
21181 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
21183 (mode_line_string, marginal_area_string): Fix prototypes.
21185 * window.c (enum window_part): Move to dispextern.h.
21186 (coordinates_in_window): Use enum window_part member names
21187 instead of numbers to describe return value.
21188 (struct check_window_data): Change part member to window_part.
21189 (check_window_containing): Return window_part unaltered.
21190 (window_from_coordinates): Change part arg from int to enum
21191 window_part. Allow part arg to be null. All users changed.
21193 * window.h (window_from_coordinates): Fix prototype.
21195 * term.c (estimate_mode_line_height): Move to xdisp.c.
21197 * keyboard.c (make_lispy_event): Use enum window_part.
21199 * dispnew.c (mode_line_string, marginal_area_string): Use enum
21200 window_part instead of int in arg list. Users changed.
21202 * xterm.h (No_Cursor): Declare as None for X.
21203 (struct mac_output): Replace member cross_cursor by hand_cursor.
21205 * xterm.c: Remove consolidated defines and code.
21206 (BETWEEN): Remove unused macro.
21207 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
21208 (x_define_frame_cursor, x_clear_frame_area)
21209 (x_draw_window_cursor): New X-specific functions for RIF.
21210 (x_redisplay_interface): Add new members.
21212 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
21214 * w32term.h (struct w32_output): Remove cross_cursor member.
21216 * w32term.c: Remove consolidated defines and code.
21217 (BETWEEN): Remove unused macro.
21218 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
21219 (w32_define_frame_cursor, w32_clear_frame_area)
21220 (w32_draw_window_cursor): New W32-specific functions for RIF.
21221 (w32_redisplay_interface): Add new members.
21223 * w32gui.h (No_Cursor): Define as 0 for W32.
21224 (XRectangle): Add X compatible rectangle type.
21225 (NativeRectangle): Declare as RECT for W32.
21226 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
21228 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
21230 * w32console.c: Remove consolidated defines and code.
21232 * msdos.h (Display_Info): Add generic typedef.
21234 * msdos.c: Remove consolidated defines and code.
21235 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
21237 * macterm.h (struct mac_output): Replace member cross_cursor by
21239 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
21241 * macterm.c: Remove consolidated defines and code.
21242 (BETWEEN): Remove unused macro.
21243 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
21244 (mac_define_frame_cursor, mac_clear_frame_area)
21245 (mac_draw_window_cursor): New Mac-specific functions for RIF.
21246 (x_redisplay_interface): Add new members.
21248 * macgui.h (No_Cursor): Define as 0 for Mac.
21249 (XRectangle): Add X compatible rectangle type.
21250 (NativeRectangle): Declare as Rect for Mac.
21251 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
21253 * macfns.c (x_set_mouse_color): Setup hand_cursor.
21254 (x_set_cursor_color): Use x_display_and_set_cursor.
21256 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
21257 included from it. Add dependency on keymap.h.
21259 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
21261 2003-03-21 Kenichi Handa <handa@m17n.org>
21263 * fileio.c (Fexpand_file_name): Fix previous change.
21265 2003-03-19 Kenichi Handa <handa@m17n.org>
21267 * fileio.c (Ffile_name_directory): Reconstruct file name by
21268 make_specified_string.
21269 (Ffile_name_nondirectory, Ffile_name_as_directory)
21270 (Fdirectory_file_name, Fexpand_file_name)
21271 (Fsubstitute_in_file_name): Likewise.
21272 (Fread_file_name): Compare decoded homedir with DIR and
21275 * alloc.c (make_specified_string): If NCHARS is negative, count
21276 the number of characters.
21278 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21280 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
21283 * gtkutil.h: Removed xg_ignore_next_thumb.
21285 2003-03-18 Kenichi Handa <handa@m17n.org>
21287 * coding.c (Vchar_coding_system_table): Remove this variable.
21288 (Vcoding_system_safe_chars): New variable.
21289 (intersection): Remove this function.
21290 (find_safe_codings): Don't use Vchar_coding_system_table, but try
21291 all codings in SAFE_CODINGS.
21292 (Ffind_coding_systems_region_internal): Adjust for the change of
21293 find_safe_codings. Get generic coding systems from
21294 Vcoding_system_safe_chars.
21295 (Fdefine_coding_system_internal): New function.
21296 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
21297 Initialize and staticpro Vcoding_system_safe_chars.
21299 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21301 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
21302 equal old values before updating.
21304 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
21306 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
21308 2003-03-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21310 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
21311 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
21312 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
21313 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
21314 (xg_create_scroll_bar): Pass bar to button event callback.
21315 (xg_find_top_left_in_fixed): New function.
21316 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
21317 whole scroll bar area. Get old position with
21318 xg_find_top_left_in_fixed, calculate and only clear needed areas.
21319 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
21320 dragging is in progress. Calculate whole as for Motif.
21321 Remove code that saved last values. Call gtk_range functions to
21322 set scroll bar sizes.
21324 * gtkutil.h: Removed xg_ignore_next_thumb.
21326 2003-03-17 Juanma Barranquero <lektu@terra.es>
21328 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
21329 and files included from it.
21331 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
21333 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
21334 multiple occurrences of the same keymap under different prefixes.
21335 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
21337 2003-03-16 Jason Rumney <jasonr@gnu.org>
21339 * w32gui.h: Use HDC for Display.
21341 * w32term.c (w32_encode_char): Prevent double-byte chars from
21344 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
21347 2003-03-16 Juanma Barranquero <lektu@terra.es>
21349 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
21351 2003-03-16 Kim F. Storm <storm@cua.dk>
21353 The following changes consolidate some of the gui-independent
21354 parts of the processing and drawing of "glyph strings" from
21355 xterm.c, w32term.c, and macterm.c into xdisp.c.
21357 * dispextern.h (struct glyph): Reduce face_id member from 22 to
21358 21 bits (this reduces number of faces from 4M to 2M).
21359 Replace W32 specific w32_font_type member (2 bits) by generic
21360 font_type member (3 bits) for portability.
21361 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
21362 (enum draw_glyphs_face): Define here.
21363 (struct glyph_string): Define here. Merge W32 and X versions.
21364 (struct redisplay_interface): New members per_char_metric,
21365 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
21366 (VCENTER_BASELINE_OFFSET): Define here.
21367 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
21368 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
21370 * xdisp.c: Consolidate gui-independent "glyph string" code here.
21371 (dump_glyph_string): Moved here.
21372 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
21373 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
21374 (fill_composite_glyph_string, fill_glyph_string)
21375 (fill_image_glyph_string, fill_stretch_glyph_string)
21376 (left_overwritten, left_overwriting, right_overwritten)
21377 (right_overwriting, get_char_face_and_encoding)
21378 (set_glyph_string_background_width, compute_overhangs_and_x)
21379 (append_glyph, append_composite_glyph, produce_image_glyph)
21380 (take_vertical_position_into_account, append_stretch_glyph)
21381 (produce_stretch_glyph): New generic functions (based on X version).
21382 Call platform specific functions through rif.
21383 (INIT_GLYPH_STRING): New macro, hides W32 details.
21384 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
21385 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
21386 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
21387 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
21388 (notice_overwritten_cursor):
21389 Generic functions exported to platform modules. Users changed.
21391 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
21392 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
21393 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
21394 New macros for consolidated code.
21396 * xterm.c: Remove consolidated defines and code.
21397 (x_per_char_metric, x_encode_char)
21398 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
21399 (x_redisplay_interface): Add new members.
21401 * w32gui.h (Display): Add dummy typedef for consolidation.
21402 (XChar2b): Define alias for wchar_t for consolidation.
21403 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
21405 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
21406 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
21407 New macros for consolidation.
21409 * w32term.c: Remove consolidated defines and code.
21410 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
21411 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
21412 (w32_per_char_metric): Change font_type arg to int for RIF.
21413 (w32_encode_char): Return int according to RIF requirements.
21414 (w32_compute_glyph_string_overhangs): Adapt to RIF.
21415 (w32_get_glyph_overhangs): New function for RIF. Uses generic
21416 x_get_glyph_overhangs.
21417 (w32_redisplay_interface): Add new members.
21419 * macgui.h (XChar2b): Move typedef here for consolidation.
21420 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
21422 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
21423 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
21426 * macterm.c: Remove consolidated defines and code.
21427 (mac_per_char_metric): New function for RIF.
21428 (mac_encode_char): Adapt to new RIF requirements.
21429 (mac_compute_glyph_string_overhangs): Adapt for RIF.
21430 (x_redisplay_interface): Add new members.
21432 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
21434 * keymap.c (Vmenu_events): New var.
21435 (syms_of_keymap): Initialize it.
21436 (where_is_internal): Check more carefully what is a menu event.
21438 2003-03-14 Richard M. Stallman <rms@gnu.org>
21440 * lread.c (read1): After #!, exit loop on eof.
21442 2003-03-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21444 * gtkutil.h: Add declaration for xg_frame_cleared.
21446 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
21448 * gtkutil.c (struct xg_last_sb_pos): New structure.
21449 (handle_fixed_child): New function.
21450 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
21451 and force a redraw on them.
21452 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
21453 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
21454 so we can avoid unneeded redraws.
21455 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
21456 and force a redraw on the scroll bar.
21457 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
21458 if xg_last_sb_pos shows the positions are up to date.
21459 (xg_frame_cleared): New function.
21461 2003-03-13 Kenichi Handa <handa@m17n.org>
21463 * coding.c (Fdetect_coding_region): Fix docstring.
21464 (Fdetect_coding_string): Fix docstring.
21466 2003-03-13 Andreas Schwab <schwab@suse.de>
21468 * gtkutil.c: Add prototype for create_menus.
21470 * data.c (long_to_cons): Fix type of top.
21472 * xselect.c (selection_data_to_lisp_data): Use int instead of
21473 long for an integer of size 4.
21475 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
21476 (xg_tool_bar_help_callback): Likewise.
21478 2003-03-12 Andreas Schwab <schwab@suse.de>
21480 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
21482 2003-03-12 Kim F. Storm <storm@cua.dk>
21484 The following changes consolidate the fringe handling from
21485 xterm.c, w32term.c, and macterm.c into xdisp.c.
21487 * xdisp.c: Consolidate fringe handling code here.
21488 (left_bits, right_bits, continued_bits, continuation_bits)
21489 (ov_bits, zv_bits): Define fringe bitmaps.
21490 (fringe_bitmaps): New array holding fringe bitmaps.
21491 (draw_fringe_bitmap): Draw a specific bitmap; call display
21492 specific drawing routine via rif->draw_fringe_bitmap.
21493 (draw_row_fringe_bitmaps): Generic replacement for
21494 x_draw_row_fringe_bitmaps; all callers changed.
21495 (compute_fringe_widths): Generic replacement for
21496 x_compute_fringe_widths; all callers changed.
21498 * dispextern.h (enum fringe_bitmap_type): Define here.
21499 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
21500 (fringe_bitmaps): Declare extern.
21501 (struct redisplay_interface): New member draw_fringe_bitmap.
21502 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
21504 * xterm.c: Remove generic fringe code.
21505 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
21506 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
21508 * w32term.c: Remove generic fringe code.
21509 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
21510 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
21512 * macterm.c: Remove generic fringe code.
21513 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
21514 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
21516 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
21518 * print.c (Fprin1_to_string): Return unibyte string if possible.
21520 2003-03-09 David Kastrup <dak@gnu.org>
21522 * process.c (read_process_output): We have allocated enough space
21523 for readmax and carryover, so actually use the alloted space.
21525 2003-03-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21527 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
21528 toolkit scrollbar click.
21530 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
21532 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
21534 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
21535 scrollbar and control is pressed, call x_scroll_bar_handle_click.
21537 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
21539 * gtkutil.c (xg_get_scroll_id_for_window): New function.
21540 (xg_tool_bar_item_expose_callback): New function.
21541 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
21542 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
21543 on the tool bar widget.
21544 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
21545 to expose on the tool bar item widgets.
21547 2003-03-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21549 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
21550 struct image* when deciding to update (struct image* may have been
21551 deleted from the image cache).
21553 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
21554 the event isn't for a frame (i.e. for dialogs).
21556 2003-03-07 Kenichi Handa <handa@m17n.org>
21558 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
21559 composition components reaches the limit, terminate composing.
21560 (COMPOSITION_OK): New macro.
21561 (detect_coding_iso2022): Use it if an escape sequence for
21562 composition is found.
21563 (coding_restore_composition): Adjust the number of composition
21564 components if it is not sane.
21566 2003-03-06 Juanma Barranquero <lektu@terra.es>
21568 * w32term.h (struct w32_display_info): Add xrdb member to support
21569 passing resources via -xrm on Windows.
21571 * w32term.c (w32_make_rdb): New function.
21572 (w32_term_init): Use it to initialize xrdb member of w32_display_info
21573 struct. Delete leftover code.
21575 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
21576 for resources passed on the command line.
21578 * w32reg.c (w32_get_rdb_resource): New function.
21579 (x_get_string_resource): Use it, so resources passed with -xrm
21580 supercede the ones in the registry.
21582 2003-03-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21584 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
21585 instead of x_top_window_to_frame.
21587 2003-03-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21589 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
21590 when restarting Emacs.
21592 2003-03-03 Richard M. Stallman <rms@gnu.org>
21594 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
21595 to run kill-buffer-query-functions.
21596 (Qkill_buffer_query_functions): New var.
21597 (syms_of_buffer): Init and staticpro it.
21599 2003-03-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21601 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
21603 2003-02-25 Kim F. Storm <storm@cua.dk>
21605 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
21606 If centering point failed to make whole line visible and vscroll
21607 is non-zero, disable vscroll and try centering point again.
21609 * lread.c (read1): Accept `single space' syntax like (? x).
21611 2003-02-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21613 * keyboard.c (cancel_hourglass_unwind): Surround with
21614 #ifdef HAVE_X_WINDOWS.
21616 2003-02-25 Kenichi Handa <handa@m17n.org>
21618 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
21619 process only when "subprocesses" is defined.
21621 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
21623 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
21625 2003-02-24 Juanma Barranquero <lektu@terra.es>
21627 * callint.c (fix_command): Declare as static void and move before
21628 Fcall_interactively.
21630 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
21631 (syms_of_xdisp): Don't initialize Qwhen.
21633 2003-02-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21635 * keyboard.c (cancel_hourglass_unwind): New function.
21636 (command_loop_1): Cancel hourglass with unwind-protect.
21638 2003-02-23 Richard M. Stallman <rms@gnu.org>
21640 * callint.c (fix_command): New subroutine, from Fcall_interactively.
21641 Detect (when ... (region-beginning)) etc.
21642 (Fcall_interactively): Call fix_command.
21643 (Qif, Qwhen): New variables.
21644 (syms_of_callint): Init and staticpro them.
21646 * regex.c (print_partial_compiled_pattern): Output to stderr.
21648 2003-02-23 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
21650 * dired.c (directory_files_internal): Don't expand directory.
21651 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
21652 instead. From Lars Hansen <larsh@math.ku.dk>.
21654 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
21656 * fns.c (string_to_multibyte): Remove unused var i.
21657 (Flanginfo): Fix int/Lisp_Object mixup.
21658 (void_call2): New fun.
21659 (Fmap_char_table): Use it in place of call2.
21661 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
21663 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
21665 * keymap.c (copy_keymap_1): Make it static.
21667 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
21669 2003-02-22 David Ponce <david@dponce.com>
21671 * lread.c (Fload): Don't check STRING_MULTIBYTE.
21673 2003-02-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21675 * process.h: Removed subtty field from struct Lisp_Process.
21677 * process.c (create_process): Remove setting of subtty.
21678 (emacs_get_tty_pgrp): New function.
21679 (Fprocess_running_child_p, process_send_signal):
21680 Call emacs_get_tty_pgrp instead of ioctl.
21681 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
21683 2003-02-21 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
21685 * keymap.c (Fdefine_key): Doc fix.
21687 2003-02-21 Juanma Barranquero <lektu@terra.es>
21689 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
21691 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
21692 POLLING_PROBLEM_IN_SELECT.
21694 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
21695 Delete #undef of POLLING_PROBLEM_IN_SELECT.
21697 * s/hpux10-20.h: New file.
21699 * process.c (wait_reading_process_input):
21700 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
21702 2003-02-20 Kenichi Handa <handa@m17n.org>
21704 * fontset.c (check_fontset_name): If NAME is nil, return the
21706 (override_font_info): New function.
21707 (Fset_fontset_font): Document that NAME nil means the default fontset.
21708 (Ffontset_info): If FONTSET is not the default fontset, merge
21709 FONTSET onto the copy of the default fontset, and work on that
21710 copy. Document that NAME nil means the default fontset.
21711 (Ffontset_font): Document that NAME nil means the default fontset.
21713 * process.c (setup_process_coding_systems): If the process's
21714 in/out descriptor is -1, do nothing.
21716 2003-02-19 Andreas Schwab <schwab@suse.de>
21718 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
21721 2003-02-19 Kenichi Handa <handa@m17n.org>
21723 * xfaces.c (try_alternative_families): Try all scalable fonts if
21724 Vscalable_fonts_allowed is not Qt.
21726 2003-02-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21728 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
21730 2003-02-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21732 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
21735 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
21736 (sorted_font_list): Move allocation of struct font_name to
21738 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
21739 (Fx_list_fonts): Set maxnames to -1 to get all font names.
21741 2003-02-18 Kim F. Storm <storm@cua.dk>
21743 * lread.c (read1): Fix last change.
21744 "`" is not always special. Allow "?" after a character constant.
21746 2003-02-18 Andrew Choi <akochoi@shaw.ca>
21748 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
21750 2003-02-18 Andreas Schwab <schwab@suse.de>
21752 * window.c (window_scroll_pixel_based): Move outside a
21753 multi-glyph character before setting new window start.
21755 * xdisp.c (in_display_vector_p): New function.
21756 * dispextern.h (in_display_vector_p): Declare.
21758 2003-02-18 Kim F. Storm <storm@cua.dk>
21760 * lread.c (read1): Fix and relax read syntax.
21761 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
21762 Only recognize "," after dotted-pair dot if inside backquote.
21763 Never include "`" or "," (inside backquote) in a symbol.
21764 Allow dotted-pair dot after a character constant.
21765 Allow "`" and "," (inside backquote) after a character constant.
21767 2003-02-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21769 * gtkutil.c (xg_tool_bar_expose_callback): New function.
21770 (xg_create_tool_bar): Force style of tool bar to be horizontal with
21771 icons. Set name of tool bar to emacs-toolbar.
21772 (update_frame_tool_bar): Connect expose event to
21773 xg_tool_bar_expose_callback.
21775 2003-02-17 Richard M. Stallman <rms@gnu.org>
21777 * keyboard.c (this_command_key_count_reset): New variable.
21778 Initiatize to 0 where this_command_key_count is set.
21779 (read_char): Save and restore this_command_key_count_reset
21780 around input method code.
21781 (read_char): If this_command_key_count_reset, echo reread commands.
21782 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
21784 2003-02-17 Kenichi Handa <handa@m17n.org>
21786 * fns.c (string_to_multibyte): Always return a multibyte string.
21788 2003-02-16 Jason Rumney <jasonr@gnu.org>
21790 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
21791 Negative max_fonts parameter means list all.
21793 2003-02-14 Dave Love <fx@gnu.org>
21795 * fns.c (Flanginfo): Doc fix.
21797 2003-02-13 Kim F. Storm <storm@cua.dk>
21799 * lread.c (read_escape): Interpret \s as a SPACE character, except
21800 for \s-X in a character constant which still is the super modifier.
21801 (read1): Signal an `invalid read syntax' error if a character
21802 constant is immediately followed by a digit or symbol character.
21804 * search.c (Fmatch_data): Doc fix. Explicitly state that
21805 match-data is undefined if last search failed.
21807 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
21810 2003-02-12 Juanma Barranquero <lektu@terra.es>
21812 * eval.c (Fdefmacro): Fix typo.
21814 2003-02-12 Kim F. Storm <storm@cua.dk>
21816 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
21817 macro is a string, convert meta modifiers in string when copying
21818 the string into a vector.
21820 2003-02-11 Kim F. Storm <storm@cua.dk>
21822 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
21824 2003-02-11 Kenichi Handa <handa@m17n.org>
21826 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
21828 2003-02-10 Kim F. Storm <storm@cua.dk>
21830 * process.c: Doc fixes.
21831 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
21833 2003-02-10 Kenichi Handa <handa@m17n.org>
21835 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
21837 * process.c (QCfilter_multibyte): New variable.
21838 (setup_process_coding_systems): New function.
21839 (Fset_process_buffer, Fset_process_filter):
21840 Call setup_process_coding_systems.
21841 (Fstart_process): Initialize the member `filter_multibyte' of
21842 struct Lisp_Process.
21843 (create_process): Call setup_process_coding_systems.
21844 (Fmake_network_process): New keyward `:filter-multibyte'.
21845 Initialize the member `filter_multibyte' of struct Lisp_Process.
21846 Call setup_process_coding_systems.
21847 (server_accept_connection): Call setup_process_coding_systems.
21848 (read_process_output): If the process has a filter, decide the
21849 multibyteness of a string to given to the filter by
21850 `filter_multibyte' member of the process. If the process doesn't
21851 have a filter and the result of conversion is unibyte, use
21852 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
21854 (Fset_process_coding_system): Call setup_process_coding_systems.
21855 (Fset_process_filter_multibyte): New function.
21856 (Fprocess_filter_multibyte_p): New function.
21857 (syms_of_process): Intern and staticpro QCfilter_multibyte.
21858 Defsubr Sset_process_filter_multibyte and
21859 Sprocess_filter_multibyte_p.
21861 * process.h (struct Lisp_Process): New member filter_multibyte.
21863 * lisp.h (setup_process_coding_systems): Add prototype.
21865 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
21866 process, update coding systems for the process.
21868 2003-02-09 Kenichi Handa <handa@m17n.org>
21870 * fns.c (string_to_multibyte): New function.
21871 (Fstring_to_multibyte): New function.
21872 (syms_of_fns): Defsubr it.
21874 2003-02-08 Andreas Schwab <schwab@suse.de>
21876 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
21877 instead of the substitution.
21879 2003-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21881 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
21883 * xmenu.c (menu_position_func): Adjust menu popup position so that
21884 the menu is fully visible.
21886 2003-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21888 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
21889 (x_make_frame_invisible, x_wm_set_icon_position):
21890 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
21892 * xfns.c (x_set_name, x_set_title): Ditto.
21894 2003-02-04 Richard M. Stallman <rms@gnu.org>
21896 * keyboard.c (echo_now): Update before_command_echo_length.
21897 (Freset_this_command_lengths): Reset this_command_key_count etc.
21898 immediately rather than arranging to do it later.
21899 (before_command_key_count_1, before_command_echo_length_1)
21900 (before_command_restore_flag): Vars deleted.
21901 (add_command_key): Don't handle before_command_restore_flag.
21902 (read_char, record_menu_key): Don't update before_command_key_count or
21903 before_command_echo_length.
21904 (read_char): Don't handle before_command_restore_flag.
21906 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
21907 in direct-output clauses if it wouldn't be called in the ordinary case.
21909 2003-02-04 Kim F. Storm <storm@cua.dk>
21911 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
21913 2003-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21915 * gtkutil.c (remove_from_container): Copying list is not needed.
21916 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
21917 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
21918 on list returned from gtk_container_get_children to avoid memory leak.
21920 2003-02-01 Jason Rumney <jasonr@gnu.org>
21922 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
21924 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
21925 definitions in xpm.h.
21926 (init_xpm_functions): New function.
21927 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
21928 (init_external_image_libraries): Try to load libXpm.dll.
21930 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
21933 2003-01-31 Dave Love <fx@gnu.org>
21935 * syntax.c (Fskip_chars_forward)
21936 (open-paren-in-column-0-is-defun-start): Doc fix.
21938 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
21940 * fileio.c: Support // at start of name for Cygwin (just added proper
21941 preprocessor tests).
21943 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
21945 * Makefile.in: Use @EXEEXT@ for Cygwin.
21947 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
21949 * s/cygwin.h: Added for Cygwin port.
21951 2003-01-31 Juanma Barranquero <lektu@terra.es>
21953 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
21954 when including gif_lib.h.
21955 (init_gif_functions, init_tiff_functions): New functions.
21956 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
21957 Windows. Disable color table lookups. Call library functions
21958 through pointers determined at runtime.
21959 (init_external_image_libraries): Try to load libungif.dll and
21962 2003-01-31 Kenichi Handa <handa@m17n.org>
21964 * xdisp.c (SKIP_GLYPHS): New macro.
21965 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
21967 2003-01-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21969 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
21971 2003-01-30 Dave Love <fx@gnu.org>
21973 * alloc.c (Vgc_elapsed, gcs_done): New variables.
21974 (Fgarbage_collect): Use them.
21975 (init_alloc, syms_of_alloc): Set them up.
21977 2003-01-30 Juanma Barranquero <lektu@terra.es>
21979 * w32fns.c (init_external_image_libraries): Add missing operator.
21981 2003-01-29 Jason Rumney <jasonr@gnu.org>
21983 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
21984 an alternative name for jpeg.dll.
21986 2003-01-29 Kenichi Handa <handa@m17n.org>
21988 * xdisp.c (set_cursor_from_row): Pay attention to string display
21991 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
21993 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
21995 (keycode_to_xkeysym_table): Reformat and add more comments.
21996 (XTread_socket): Drop special case for backspace.
21998 2003-01-28 Andrew Choi <akochoi@shaw.ca>
22000 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
22001 values in old-style RGB specs.
22003 2003-01-27 Juanma Barranquero <lektu@terra.es>
22005 * w32fns.c (init_external_image_libraries): Try alternate names for the
22008 2003-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22010 * gtkutil.c (create_dialog, xg_separator_p)
22011 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
22012 before calling strcmp or strlen.
22014 2003-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22016 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
22017 and handle image load failure.
22019 2003-01-26 Jason Rumney <jasonr@gnu.org>
22021 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
22023 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
22024 Disable color table lookups. Call jpeg library functions
22025 through pointers determined at runtime.
22026 (init_external_image_libraries): Try to load jpeg.dll.
22028 2003-01-25 Richard M. Stallman <rms@gnu.org>
22030 * lisp.h: Declare format2 instead of format1.
22032 * fileio.c (barf_or_query_if_file_exists):
22033 Call format2 instead of format1.
22035 * editfns.c (format2): New function, replaces format1
22036 but takes exactly two Lisp Objects as format args.
22038 * buffer.c (Fkill_buffer): Call format2 instead of format1.
22040 2003-01-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22042 * xterm.h: Change to return value of x_dispatch_event to int.
22044 * xterm.c (x_filter_event): New function.
22045 (event_handler_gdk, XTread_socket): Call x_filter_event.
22046 (x_dispatch_event): Change to return value of finish.
22047 (event_handler_gdk): Use return value from x_dispatch_event.
22049 * xfns.c (x_window): Call create_frame_xic for GTK version to
22050 initialize input methods.
22052 * gtkutil.h: Add (void) prototypes.
22054 * gtkutil.c (create_menus): Remove code that puts the help menu to
22057 2003-01-25 Jason Rumney <jasonr@gnu.org>
22059 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
22060 [HAVE_PNG]: Sync with xfns.c version.
22061 (png_load): Adjust colors for Windows. Use Windows
22062 bitmaps. Disable color table lookups.
22063 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
22064 (init_png_functions): New function.
22065 (png_read_from_memory, png_load): Call png library functions
22066 through pointers determined at runtime.
22067 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
22068 (init_external_image_libraries): New function.
22069 (init_xfns): Call it.
22071 2003-01-24 Andreas Schwab <schwab@suse.de>
22073 * minibuf.c (Fminibuffer_message): Verify type of parameter.
22075 2003-01-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22077 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
22078 of static initializer.
22080 2003-01-24 Dave Love <fx@gnu.org>
22082 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
22085 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
22088 2003-01-24 Kenichi Handa <handa@m17n.org>
22090 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
22091 It it is nonzero, don't pretend that an invisible area doesn't exist.
22092 (command_loop_1): Call adjust_point_for_property with proper
22095 2003-01-22 Jason Rumney <jasonr@gnu.org>
22097 Sync changes with xterm.c and xfns.c.
22099 * w32term.c (x_draw_glyph_string_foreground)
22100 (x_draw_composite_glyph_string_foreground): Implement overstriking.
22102 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
22103 phys_cursor's hpos is overwritten. This is still not completely
22104 correct, as it doesn't really make sense to use hpos at all to
22105 get the cursor glyph (as that is relative to the width of the
22106 characters on the line, which may have changed during the update).
22108 * w32term.c (notice_overwritten_cursor): Handle the special case
22109 of the cursor being in the first blank non-text line at the
22112 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
22113 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
22114 Compute from the x position returned by x_draw_glyphs.
22116 (x_display_and_set_cursor): Don't set phys_cursor_width here,
22117 except for NO_CURSOR and system caret, to make phys_cursor_width
22118 contain what its name suggests.
22119 (notice_overwritten_cursor): Consider the cursor image erased if
22120 the output area intersects the cursor image in y-direction.
22122 * w32term.c (note_mode_line_or_margin_highlight): Rename from
22123 note_mode_line_highlight and extend.
22125 * w32term.c (last_window): New variable.
22126 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
22127 (note_mouse_movement): Remove reimplemented code in #if 0.
22129 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
22130 not update_mode_lines, and always set it to 1.
22132 2003-01-21 Jason Rumney <jasonr@gnu.org>
22134 * w32fns.c (IDC_HAND): Define it if system headers don't.
22136 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
22138 * w32term.h (struct w32_output): New member hand_cursor.
22139 (WM_EMACS_SETCURSOR): New message definition.
22141 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
22142 function w32_define_cursor.
22143 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
22144 position, change member name output_data.x to output_data.w32 and
22145 add function w32_define_cursor.
22146 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
22147 and change member name output_data.x to output_data.w32.
22148 (w32_initialize_display_info):
22149 Setup dpyinfo->vertical_scroll_bar_cursor.
22151 * w32fns.c (Vx_hand_shape): New variable.
22152 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
22153 WM_EMACS_SETCURSOR.
22154 (x-create-frame): Setup Cursor types.
22156 2003-01-21 David Ponce <david@dponce.com>
22158 * w32term.c (w32_encode_char): For DIM=1 charset, set
22159 ccl->reg[2] to -1 before calling ccl_driver.
22160 (Sync. with xterm.c x_encode_char change by Kenichi Handa
22161 <handa@m17n.org> on 2002-09-30.)
22162 (w32_draw_relief_rect): Declare all args.
22163 (w32_define_cursor): New.
22165 * w32fns.c (w32_load_cursor): New function.
22166 (w32_init_class): Use it.
22167 (x_put_x_image): Declare all args.
22169 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
22171 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
22173 2003-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22175 * gtkutil.c: Must include stdio.h before termhooks.h.
22177 2003-01-21 Dave Love <fx@gnu.org>
22179 * alloc.c (Fgc_status): Print zombie list.
22180 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
22181 Fix assignment of zombies.
22182 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
22183 Don't take car of non-cons.
22185 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
22187 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
22189 2003-01-20 David Ponce <david@dponce.com>
22191 * w32menu.c (digest_single_submenu): Declare all args.
22193 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
22194 changes in xmenu.c:
22196 (parse_single_submenu): Use individual keymap's prompt
22197 string as pane name, if there is one.
22198 (set_frame_menubar): Save menu_items_n_panes from each call to
22199 parse_single_submenu and use it when calling digest_single_submenu.
22201 2003-01-20 Steven Tamm <steventamm@mac.com>
22203 * macterm.c (XTread_socket): Check for valid, visible window
22204 before sending a scroll-wheel event.
22206 2003-01-20 Richard M. Stallman <rms@gnu.org>
22208 * xdisp.c (redisplay_window): If mini window's buffer is not
22209 a minibuffer, then redisplay it like other windows.
22211 2003-01-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22213 * gtkutil.c (xg_create_frame_widgets): Check if there is an
22214 external tool bar before setting tool bar height.
22216 2003-01-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22218 * xterm.c (handle_one_xevent): Surround popup_activated
22219 with #ifdef:s for non-toolkit version.
22221 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
22222 (gtkutil.o): New file.
22223 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
22224 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
22226 * gtkutil.c: New file for GTK version.
22228 * gtkutil.h: New file for GTK version.
22230 * xterm.h: Add xt_or_gtk_widget.
22231 Include gtk files for USE_GTK.
22232 (struct x_output): Add toolbar_height.
22233 (struct x_output): Add GTK widgets and Gdk size_hints.
22234 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
22235 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
22236 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
22238 * xterm.c: Include gtkutil.h for USE_GTK.
22239 (free_frame_menubar): Declare extern void for USE_GTK.
22240 (note_mouse_highlight): Check popup_activated for USE_GTK.
22241 (xt_action_hook): Don't compile if USE_GTK.
22242 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
22243 (xg_scroll_callback): New function.
22244 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
22245 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
22247 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
22248 xg_show_scroll_bar for USE_GTK.
22249 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
22250 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
22251 (event_handler_gdk): New function for USE_GTK.
22252 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
22253 (handle_one_xevent): Make sure widget is mapped before
22254 calling x_real_positions for USE_GTK.
22255 (XTread_socket): Add GTK event loop for USE_GTK.
22256 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
22257 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
22258 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
22259 (x_iconify_frame): Add code for USE_GTK.
22260 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
22261 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
22263 (x_term_init): Add initialization for GTK.
22264 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
22266 * xmenu.c: Include gtkutil.h for USE_GTK.
22267 (Fx_popup_menu): Use current position if x and y are nil.
22268 (single_menu_item, single_menu_item, Fx_popup_dialog):
22270 (popup_widget_loop): New function for USE_GTK.
22271 (x_activate_menubar): Add code for USE_GTK.
22272 (popup_activate_callback, popup_deactivate_callback)
22273 (menu_highlight_callback, menubar_selection_callback):
22274 Add USE_GTK versions.
22275 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
22276 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
22277 (free_frame_menubar): Only compile if not USE_GTK. GTK version
22279 (popup_selection_callback): New version for USE_GTK.
22280 (create_and_show_popup_menu): New fuction, one USE_GTK version and
22281 one USE_X_TOOLKIT version.
22282 (xmenu_show): Call create_and_show_popup_menu.
22283 (dialog_selection_callback): New version for USE_GTK.
22284 (create_and_show_dialog): New fuction, one USE_GTK version and
22285 one USE_X_TOOLKIT version.
22286 (xdialog_show): Call create_and_show_dialog.
22288 * xfns.c: Include gtkutil for USE_GTK.
22289 (x_window_to_frame, x_any_window_to_frame)
22290 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
22291 (x_top_window_to_frame): Add code for USE_GTK.
22292 (x_set_background_color): Call xg_set_background_color for GTK.
22293 (x_set_menu_bar_lines): Check for USE_GTK.
22294 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
22295 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
22296 (x_window): Call xg_create_frame_widgets for USE_GTK.
22297 (Fx_create_frame): Check for USE_GTK.
22298 (Fx_file_dialog): New implementation for USE_GTK.
22300 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
22301 (update_menu_bar): Add check for USE_GTK.
22302 (update_tool_bar): Add check for USE_GTK and external tool bar.
22303 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
22304 (redisplay_internal): Add check for USE_GTK and popup_activated.
22305 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
22306 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
22307 (display_menu_bar): Add check for USE_GTK
22309 * lisp.h (Vx_resource_name): Declare extern.
22311 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
22313 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
22315 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
22316 (FRAME_EXTERNAL_TOOL_BAR): New macro.
22317 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
22319 * fileio.c (Fread_file_name): Add check for USE_GTK.
22321 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
22322 Add check for USE_GTK.
22324 * config.in: Added HAVE_GTK.
22326 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
22328 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
22330 * charset.h (Funibyte_char_to_multibyte): Export.
22332 2003-01-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22334 * xmenu.c (mouse_position_for_popup): New function.
22335 (Fx_popup_menu): Call mouse_position_for_popup for X and
22336 mouse_position_hook for others.
22338 2003-01-17 Kim F. Storm <storm@cua.dk>
22340 * editfns.c (Finsert): Mention `string-make-multibyte' and
22341 `string-as-multibyte' in doc string.
22343 2003-01-17 Kenichi Handa <handa@m17n.org>
22345 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
22347 * editfns.c (Fformat): Convert an unibyte char argument that is
22348 formatted by "%c" to multibyte if the total result must be a
22351 2003-01-16 Kim F. Storm <storm@cua.dk>
22353 * process.c (set-process-filter): Document unibyte/multibyte-ness
22354 of string argument.
22356 2003-01-16 Kenichi Handa <handa@m17n.org>
22358 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
22360 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
22361 (re_search_2): Likewise.
22363 2003-01-15 Kenichi Handa <handa@m17n.org>
22365 * xdisp.c (message_dolog): Fix bug of the case that *Message*
22368 2003-01-15 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22370 * fns.c (Fsubstring): Clarify doc string.
22372 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
22373 (Fprevious_char_property_change)
22374 (Fnext_single_char_property_change)
22375 (Fprevious_single_char_property_change, Fnext_property_change)
22376 (Fnext_single_property_change, Fprevious_property_change)
22377 (Fprevious_single_property_change, Fadd_text_properties)
22378 (Fput_text_property, Fset_text_properties)
22379 (Fremove_text_properties, Fremove_list_of_text_properties)
22380 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
22382 2003-01-14 Kim F. Storm <storm@cua.dk>
22384 * process.h (struct Lisp_Process): New member plist replaces old
22385 member private_vars. All uses changed.
22387 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
22388 (QCplist): Rename from QCvars. Change all uses.
22389 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
22390 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
22391 (syms_of_process): Intern, staticpro, defsubr these.
22392 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
22394 2003-01-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22396 * m/delta.h: Remove (obsolete).
22398 2003-01-13 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22400 * fileio.c (Fdelete_directory, Fdelete_file): Document the
22401 behaviour in front of symlinks.
22402 (Fdelete_file): Raise an error on directories.
22404 2003-01-13 Dave Love <fx@gnu.org>
22406 * fns.c (Freverse): Use QUIT.
22408 2003-01-13 Richard M. Stallman <rms@gnu.org>
22410 * minibuf.c (minibuffer_completion_contents):
22411 Error if point is inside prompt.
22413 * keyboard.c (command_loop_1): Don't redisplay directly
22414 if there's a post-command-hook.
22416 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
22417 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
22419 2003-01-12 Kim F. Storm <storm@cua.dk>
22421 * process.h (struct Lisp_Process): New member private_vars.
22423 * process.c (QCvars): New variable.
22424 (syms_of_process): Intern and staticpro it.
22425 (Fset_process_contact): Removed function.
22426 (Fprocess_variable, Fset_process_variable): New functions.
22427 (syms_of_process): Defsubr them.
22428 (Fstart_process): Initialize private_vars plist to nil.
22429 (Fmake_network_process): New arg :vars to setup the private
22430 variables for new network process.
22431 (server_accept_connection): Copy server's private variables to
22434 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
22435 crashes). Code rewritten and simplified. Now directly aligns the
22436 pointer and recalculates pure_bytes_used, rather than aligning the
22437 size and adjusting the pointer.
22439 2003-01-11 Kim F. Storm <storm@cua.dk>
22441 * process.c (Fset_process_contact): New function.
22442 (syms_of_process): defsubr it.
22443 (make-network-process): Update doc.
22445 2003-01-10 Andreas Schwab <schwab@suse.de>
22447 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
22448 Reported by Berthold Gunreben <b.gunreben@web.de>.
22450 2003-01-10 Dave Love <fx@gnu.org>
22452 * composite.c (syms_of_composite): Make composition_hash_table weak.
22454 2003-01-09 Kim F. Storm <storm@cua.dk>
22456 * process.c (Fmake_network_process): Convert new port number
22457 to host byte order for `:service t' case. From Mario Lang.
22459 2003-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22461 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
22462 instead of XtAppProcessEvent.
22464 * xterm.c (handle_one_xevent): New function.
22465 (x_dispatch_event): New function.
22466 (XTread_socket): Call handle_one_xevent.
22468 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
22470 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
22471 call XQueryPointer to get coordinates.
22472 (popup_get_selection): Do not set popup_activated_flag to zero,
22473 let popup_deactivate_callback do that. Needed for Motif.
22474 Call x_dispatch_event instead of XtDispatchEvent.
22475 (xmenu_show): Calculate root coordinate from frame top/left position.
22477 2003-01-08 Kim F. Storm <storm@cua.dk>
22479 * process.c (server_accept_connection): Fix recording of new
22480 connection's local address in :local property of contact info.
22481 (Fmake_network_process): Record local network address for new
22482 client processes in :local property of contact info.
22483 (format-network-address): Add arg OMIT-PORT. Change callers.
22485 2003-01-07 Dave Love <fx@gnu.org>
22487 * Makefile.in (fns.o): Depend on coding.h.
22489 2003-01-06 Dave Love <fx@gnu.org>
22491 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
22492 (Vlocale_coding_system): Declare.
22493 (Qcodeset, Qdays, Qmonths, Qpaper): New.
22495 (syms_of_fns): Initialize new stuff.
22497 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
22499 * minibuf.c (Fread_variable): Doc fix.
22501 * eval.c (Fuser_variable_p): Doc change. For custom variables,
22502 use the same test as for custom-variable-p.
22504 2003-01-05 Richard M. Stallman <rms@gnu.org>
22506 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
22507 Count LAST_LINE_MISFIT in scroll margin for end of window.
22508 Move label too_near_end before setting SCROLL_MARGIN_POS.
22509 Set LAST_LINE_MISFIT before jumping there.
22511 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
22512 scroll_conservatively case. If scrolling that much doesn't change
22513 STARTP, move it down one line.
22515 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
22516 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
22518 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
22521 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
22522 (syms_of_keymap): Staticpro them.
22523 (Fapropos_internal): Initialize them and clear them out.
22526 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
22528 * lisp.h: New misc type Lisp_Save_Value.
22529 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
22530 (XSAVE_VALUE): New macro.
22531 (struct Lisp_Save_Value): New data type.
22532 (union Lisp_Misc): Add u_save_value alternative.
22533 (make_save_value): Declare.
22535 * alloc.c (make_save_value): New function.
22537 * xterm.c (x_catch_errors): Save dpy using make_save_value.
22538 (x_catch_errors_unwind): Call XSync.
22540 2003-01-01 Richard M. Stallman <rms@gnu.org>
22542 * window.c (window_scroll_pixel_based): Partially undo last change.
22544 * keyboard.c (command_loop_1): Call adjust_point_for_property
22545 in direct action cases for Qforward_char and Qbackward_char.
22546 Set already_adjusted so it won't be done twice.
22548 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
22550 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
22551 type definition of size_t.
22553 2003-01-02 Steven Tamm <steventamm@mac.com>
22555 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
22556 distinguish Carbon GUI builds from X11 builds on darwin.
22558 2002-12-30 Steven Tamm <steventamm@mac.com>
22560 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
22563 2002-12-29 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22565 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
22567 2002-12-28 Steven Tamm <steventamm@mac.com>
22569 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
22570 allow building in a different directory than source. Uses some
22571 GNU Make extensions, but there is no other make on Mac OS X.
22573 2002-12-26 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22575 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
22576 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
22577 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
22578 (Fstring_to_number): Mention the returned value in the doc strings.
22580 2002-12-23 Richard M. Stallman <rms@gnu.org>
22582 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
22583 <scroll-down-aggressively>: Doc fix.
22585 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
22586 string as pane name, if there is one.
22587 (set_frame_menubar): Save menu_items_n_panes from each call to
22588 parse_single_submenu and use it when calling digest_single_submenu.
22590 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
22591 Don't try to make last line fully visible if it is past end of window.
22593 2002-12-22 Steven Tamm <steventamm@mac.com>
22595 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
22596 (mac_menu_show): Add support for hierarchical popup menus.
22597 (add_menu_item): Remove indentation support.
22598 (fill_submenu, fill_menu): Create hierarchical menus
22599 instead of using indentation.
22601 2002-12-22 Richard M. Stallman <rms@gnu.org>
22603 * xdisp.c (try_cursor_movement): Don't call try_window here.
22604 (redisplay_window): Never redisplay minibuffer when inactive.
22606 * window.c (select_window_1): Undo 9/21 change.
22608 2002-12-22 Steven Tamm <steventamm@mac.com>
22610 * macterm.c (XTread_socket): Call KeyTranslate for control and
22611 meta to deal correctly shifted non-alpha characters, like C-S-5
22612 being treated like C-%. Do not look for shift key to deal
22613 with masking off control-key with mac-reverse-ctrl-meta.
22615 2002-12-21 Richard M. Stallman <rms@gnu.org>
22617 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
22618 If it is non-nil, run timers. Use an unwind-protect to requeue
22619 the events that were read ahead.
22620 (popup_get_selection_unwind): New subroutine.
22621 (popup_get_selection_queue): File-scope variable now holds that queue.
22622 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
22623 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
22624 Use an unwind-protect to pop down the dialog box.
22625 (xdialog_show_unwind): New subroutine implements that.
22627 * xdisp.c (row_containing_pos): Change exit test using last_y.
22628 (try_window_id): Abort if row_containing_pos returns null.
22630 * lread.c (load_error_handler): New function.
22631 (Fload): Handle errors in Fsubstitute_in_file_name.
22632 Don't expect Fsignal to return.
22634 * eval.c: Errors and throws work right with interrupt blocking.
22635 (struct catchtag): New elt interrupt_input_blocked.
22636 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
22637 (internal_catch, Fcondition_case, internal_condition_case)
22638 (internal_condition_case_1, internal_condition_case_2): Save it.
22639 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
22641 * editfns.c (Fformat): Add parens.
22643 * dired.c (file_name_completion): Fix that change.
22644 Delete special quit-handling code; just use QUIT.
22646 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
22648 * dired.c (file_name_completion): Close directory on error
22649 just as in directory_files_internal.
22651 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
22653 * window.c (Fset_window_configuration): Set old_point to correct
22654 value when new_current_buffer == current_buffer.
22656 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
22658 Revisited my earlier fix for the following entry in etc/PROBLEMS:
22659 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
22660 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
22662 These changes were in part based upon suggestions made by Peter
22663 'Luna' Runestig [peter@runestig.com].
22665 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
22666 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
22667 (g_b_init_get_sid_identifier_authority ): Add several static
22670 * w32.c (globals_of_w32): New function. Used to initialize those
22671 global variables that must always be initialized on startup even
22672 when the global variable initialized is non zero. Its primary
22673 purpose at this time is to set the global variables
22674 g_b_init_is_windows_9x, g_b_init_open_process_token,
22675 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
22676 g_b_init_get_sid_identifier_authority to 0 on startup.
22679 * w32.c (is_windows_9x): Perform initialization only if
22680 g_b_init_is_windows_9x is equal to 0. On initialization set
22681 g_b_init_is_windows_9x equal to 1.
22683 * w32.c (open_process_token): Perform initialization only if
22684 g_b_init_open_process_token is equal to 0. On initialization set
22685 g_b_init_open_process_token equal to 1.
22687 * w32.c (get_token_information): Perform initialization only if
22688 g_b_init_get_token_information is equal to 0. On initialization
22689 set g_b_init_get_token_information equal to 1.
22691 * w32.c (lookup_account_sid): Perform initialization only if
22692 g_b_init_lookup_account_sid is equal to 0. On initialization
22693 set g_b_init_lookup_account_sid equal to 1.
22695 * w32.c (get_sid_identifier_authority): Perform initialization
22696 only if g_b_init_get_sid_identifier_authority is equal to 0.
22697 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
22699 * w32fns.c (globals_of_w32fns): New function. Used to initialize
22700 those global variables that must always be initialized on startup
22701 even when the global variable initialized is non zero.
22702 Its primary purpose at this time is to initialize the global variable
22703 track_mouse_event_fn.
22705 * w32fns.c (w32_wnd_proc): Remove initialization of
22706 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
22708 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
22710 * w32menu.c (globals_of_w32menu): New function. Used to
22711 initialize those global variables that must always be initialized
22712 on startup even when the global variable initialized is non zero.
22713 Its primary purpose at this time is to initialize the global
22714 variables get_menu_item_info and set_menu_item_info.
22716 * w32menu.c (initialize_frame_menubar): Remove initialization of
22717 get_menu_item_info and set_menu_item_info.
22719 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
22721 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
22724 * emacs.c (main): Call globals_of_w32 prior to calling
22725 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
22726 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
22729 * w32term.c (x_update_window_begin): Fix Windows API error
22730 detected by BoundsChecker. Test to determine if
22731 w32_system_caret_hwnd is NULL prior to attempting to use
22732 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
22734 * w32term.c (x_update_window_end): Fix Windows API error
22735 detected by BoundsChecker. Test to determine if
22736 w32_system_caret_hwnd is NULL prior to attempting to use
22737 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
22739 2002-12-17 Kenichi Handa <handa@m17n.org>
22741 * coding.c (coding_system_require_warning): New variable.
22742 (syms_of_coding): DEFVAR it.
22744 * coding.h (coding_system_require_warning): Extern it.
22746 * fileio.c (choose_write_coding_system): Even if
22747 Vcoding_system_for_write is non-nil, if
22748 coding_system_require_warning is nonzero, call
22749 Vselect_safe_coding_system_function.
22751 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
22753 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
22754 (lisp): Add font-core.
22756 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
22758 * textprop.c (text_read_only): New arg `propval'.
22759 (get_char_property_and_overlay): Remove unused var `next_overlay'.
22760 (verify_interval_modification): Use text_read_only's new arg.
22762 2002-12-13 Kenichi Handa <handa@m17n.org>
22764 * coding.c (Funencodable_char_position): Set pend correctly.
22766 2002-12-12 Jason Rumney <jasonr@gnu.org>
22768 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
22769 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
22770 Be more careful about when help_events are generated.
22772 2002-12-12 Steven Tamm <steventamm@mac.com>
22774 * macterm.c (mac_check_for_quit_char): Correctly set the
22775 modifiers of the event to 0.
22776 * mac.c (sys_select): Duplicate rfds before calling select to
22777 ensure that rfds survive the while loop.
22779 2002-12-11 Kim F. Storm <storm@cua.dk>
22781 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
22782 row_containing_pos returned NULL.
22784 2002-12-10 Steven Tamm <steventamm@mac.com>
22786 * mac.c (sys_read): Fix sys_read to not call select if IO is
22788 (sys_select): Fix sys_select to not use a timeout larger than
22791 2002-12-10 Juanma Barranquero <lektu@terra.es>
22793 * editfns.c (Fformat): Use alloca, not _alloca.
22795 2002-12-09 Richard M. Stallman <rms@gnu.org>
22797 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
22800 2002-12-09 Dave Love <fx@gnu.org>
22802 * s/sol2-8.h: Removed. (Not necessary.)
22804 2002-12-09 Matthew Swift <swift@alum.mit.edu>
22806 * editfns.c (Fformat): Handle precision in string conversion
22807 specifiers like libc functions do (ie, print at most that many
22810 2002-12-08 Richard M. Stallman <rms@gnu.org>
22812 * xdisp.c (row_containing_pos): Check more carefully
22813 whether charpos is really in the row before returning it.
22815 2002-12-07 Steven Tamm <steventamm@mac.com>
22817 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
22819 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
22820 each stack frame. This may change as it could be time consuming.
22822 * macterm.c (mac_check_for_quit_char, quit_char_comp)
22823 (init_quit_char_handler, mac_determine_quit_char_modifiers)
22824 (mac_initialize): Add code to check for pressing of quit_char
22825 in the OS event queue.
22827 * mac.c (sys_select): Call mac_check_for_quit_char every second
22828 while blocking on select.
22830 * mac.c (sys_read): Use sys_select to test for input first
22831 before calling read, to allow C-g to break.
22833 2002-12-07 Richard M. Stallman <rms@gnu.org>
22835 * minibuf.c (Fcompleting_read): Doc fix.
22837 * lread.c (syms_of_lread) <load-history>: Doc fix.
22839 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
22841 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
22844 * data.c (Fdefalias): Record in load-history redefining an autoload.
22846 * alloca.c: Undo ifdef change accidentally made on 12-04.
22848 2002-12-06 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22850 * xfns.c (png_load): Avoid double gamma correction for PNG images.
22852 2002-12-04 Richard M. Stallman <rms@gnu.org>
22854 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
22856 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
22858 * alloca.c: Don't use #error.
22860 2002-12-03 Dave Love <fx@gnu.org>
22862 * buffer.c (Qucs_set_table_for_input): New.
22863 (Fget_buffer_create): Use it.
22864 (Qset_buffer_major_mode_hook): Deleted.
22865 (Fset_buffer_major_mode): Revert previous change.
22866 (init_buffer_once): Intern ucs-set-table-for-input.
22867 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
22868 Add &Qucs_set_table_for_input.
22870 2002-12-03 Andreas Schwab <schwab@suse.de>
22872 * callint.c (Fcall_interactively): Use next_event only if less
22875 2002-12-02 Andrew Choi <akochoi@shaw.ca>
22877 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
22878 names to 255 characters.
22880 * macterm.c (XTread_socket): If all frames have been collapsed,
22881 expand the first one before handling drag-and-drop events.
22883 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
22884 which is detected by autoconf.
22886 2002-12-01 Steven Tamm <steventamm@mac.com>
22888 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
22889 offset in two hints table to allow prebinding to be redone and
22890 allow the executable to be stripped.
22892 2002-11-29 Dave Love <fx@gnu.org>
22894 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
22897 2002-11-29 Richard M. Stallman <rms@gnu.org>
22899 * xdisp.c (start_display): Check more intelligently for
22900 whether the line is continued.
22901 (move_it_vertically_backward): Clear it->continuation_lines_width.
22903 2002-11-28 Dave Love <fx@gnu.org>
22905 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
22906 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
22908 2002-11-27 Steven Tamm <steventamm@mac.com>
22910 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
22911 more descriptive error output from lread.c:Fload upon most require
22912 cycles during boostrapping.
22914 2002-11-27 Jason Rumney <jasonr@gnu.org>
22916 * fileio.c (Finsert_file_contents): Give a more appropriate error
22917 for files bigger than 2Gb when off_t is 32 bit.
22919 * dired.c (Ffile_attributes): Don't return negative file sizes for
22920 files bigger than 2Gb when off_t is 32 bit.
22922 2002-11-27 Dave Love <fx@gnu.org>
22924 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
22926 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
22927 Test GETPGRP_VOID instead.
22928 [BSD_TERMIOS]: Remove definitions (never used).
22930 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
22932 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
22934 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
22936 2002-11-25 Jason Rumney <jasonr@gnu.org>
22938 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
22941 2002-11-25 Dave Love <fx@gnu.org>
22943 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
22945 * Makefile.in (TEMACS_LDFLAGS): Update last change.
22947 2002-11-25 Andreas Schwab <schwab@suse.de>
22949 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
22951 2002-11-24 Steven Tamm <steventamm@mac.com>
22953 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
22954 determine the size of pointers alloced in unexed space instead
22955 of using possibly invalid emacs_zone pointers. This fixes the
22956 binary incompatibility problems caused by updates to libSystem.B.
22958 2002-11-24 Richard M. Stallman <rms@gnu.org>
22960 * search.c (Fstring_match): Doc fix.
22962 * callint.c (Fcall_interactively): If a command fails because
22963 `*' detects a read-only buffer, but RECORD_FLAG is set,
22964 record it anyway if the args don't actually do tty input.
22966 2002-11-22 Dave Love <fx@gnu.org>
22968 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
22970 * keyboard.c (interrupt_signal): Provide forward declaration.
22971 (kbd_buffer_store_event): Don't declare interrupt_signal.
22973 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
22975 2002-11-21 Richard M. Stallman <rms@gnu.org>
22977 * eval.c (interactive_p): Skip any number of bytecode
22978 and special form frames, in any order.
22980 2002-11-20 Jason Rumney <jasonr@gnu.org>
22982 * w32fns.c (convert_mono_to_color_image): New function.
22983 (xbm_load, xbm_load_image): Use it when foreground or background
22986 2002-11-19 Dave Love <fx@gnu.org>
22988 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
22990 2002-11-18 Jason Rumney <jasonr@gnu.org>
22992 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
22993 (XPutPixel): Swap blue and red.
22994 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
22995 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
22996 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
22997 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
22999 2002-11-18 Dave Love <fx@gnu.org>
23001 * m/orion105.h (HAVE_ALLOCA): Don't define.
23003 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
23005 * m/intel386.h: Don't include alloca.h or define alloca.
23007 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
23008 malloc, realloc, calloc.
23010 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
23011 (bcmp): Don't define.
23013 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
23015 * m/amdahl.h: Don't define LIB_STANDARD.
23017 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
23019 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
23021 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
23022 Don't include alloca.h.
23024 * s/aix3-2.h (HAVE_FSYNC): Don't define.
23026 * regex.c (_GNU_SOURCE): Don't define.
23028 * process.c (_GNU_SOURCE): Don't define.
23030 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
23032 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
23034 * s/sol2-8.h: Include sol2-6.h.
23036 2002-11-18 Miles Bader <miles@gnu.org>
23038 * dispextern.h (struct face): Add `overstrike' field.
23039 * xterm.c (x_draw_glyph_string_foreground)
23040 (x_draw_composite_glyph_string_foreground): Implement overstriking.
23041 * xfaces.c (load_face_font): Set `face->overstrike' based on
23042 result from choose_face_font.
23043 (best_matching_font, choose_face_font): Add `needs_overstrike'
23044 argument, and use it to return whether overstriking is desirable
23045 for this face/font combo.
23046 (set_font_frame_param: Pass new argument to choose_face_font.
23048 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
23050 This change is my fix for the following entry in etc/PROBLEMS:
23051 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
23052 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
23054 * w32.c: Added wrapper functions around the win32 API functions
23055 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
23056 GetSidIdentifierAuthority. These wrapper functions serve two
23058 1. They ensure that the wrapped function can never be called
23059 when Emacs is running on an operating system on which they are
23060 not supported (Microsoft Windows 95 / 98 / ME).
23061 2. They call the wrapped functions via function pointers rather
23062 than calling them directly. This avoids taking advantage of the
23063 undocumented fact that although these functions are not supported
23064 in the 9x branch of Microsoft Windows, the functions do exist in
23065 the version of advapi32.dll that is found in the 9x branch of
23068 * w32.c (init_user_info): Replace the calls to the win32 API
23069 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
23070 and GetSidIdentifierAuthority with calls to the newly added
23073 * w32.h: Added extern declarations for the following functions:
23074 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
23075 syms_of_w32menu, and void syms_of_fontset.
23077 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
23078 function pointer track_mouse_event_fn in the handler for the
23079 WM_SETFOCUS message.
23081 * w32menu.c (initialize_frame_menubar): Add code to
23082 reinitialize the function pointers set_menu_item_info and
23083 get_menu_item_info.
23085 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
23087 * sound.c: Added a partial implementation of play-sound-internal
23088 for Microsoft Windows. Added various #ifdef / #else / #endif
23089 code blocks to separate the code that will compile under
23090 Microsoft Windows from the code that is specific to GNU/Linux.
23091 Moved several blocks of code around to make this separation of code
23092 into Windows compatible and GNU/Linux compatible code blocks easier.
23094 * makefile.w32-in: Include sound.c and link with WinMM.lib.
23096 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
23097 added support for play-sound-internal under Windows would be
23098 included in the build of Emacs.
23100 2002-11-16 Jason Rumney <jasonr@gnu.org>
23102 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
23104 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
23106 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
23108 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
23109 (adjust_point_for_property): Move out of display and invisible even if
23110 we were already inside before (in case a property was added while
23111 we weren't looking). Be more careful when handling invisible props.
23112 Skip invisible text as if it really wasn't there at all.
23114 2002-11-15 Jason Rumney <jasonr@gnu.org>
23116 * w32term.c (x_draw_image_foreground)
23117 (w32_draw_image_foreground_1): Use standard copy and invert
23118 operations to draw images.
23120 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
23122 (xbm_read_bitmap_data): Invert bits as xbm is read in.
23123 (XPutPixel): Don't invert bits here.
23125 2002-11-15 Jason Rumney <jasonr@gnu.org>
23127 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
23128 (w32_draw_image_foreground_1): Handle image masks.
23129 (x_draw_image_glyph_string): Don't BitBlt transparently.
23131 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
23132 (x_from_xcolors): Adjust RGB values for W32.
23133 (image_background, image_background_transparent)
23134 (postprocess_image, x_to_xcolors, x_disable_image)
23135 (x_build_heuristic_mask): Adapt for W32 and enable.
23136 (x_create_x_image_and_pixmap): Mark images with palettes as such.
23137 (xbm_load): Remove unused variable.
23139 2002-11-14 Richard M. Stallman <rms@gnu.org>
23141 * buffer.c (syms_of_buffer): Doc fix.
23143 2002-11-14 Dave Love <fx@gnu.org>
23145 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
23147 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
23148 * xmenu.c (unuse_menu_items, digest_single_submenu):
23149 * xfns.c (x_put_x_image):
23150 * xdisp.c (message2_nolog, set_message):
23151 * undo.c (record_point):
23152 * terminfo.c (tparam):
23153 * syntax.c (scan_sexps_forward):
23154 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23155 * composite.c (update_compositions):
23156 * cm.c (calccost, cmgoto):
23157 * charset.c (c_string_width): Declare all args (per C99).
23159 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
23161 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
23164 * emacs.c (main) [!VMS]: Avoid third arg.
23166 * fns.c (Fcopy_sequence): Doc fix.
23167 (Fmap_char_table): Cast `call2'.
23169 2002-11-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
23171 * s/sol2-8.h: New file.
23173 2002-11-14 Kim F. Storm <storm@cua.dk>
23175 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
23176 dependency on `risky-local-variable' and the :propertize form.
23178 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
23180 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
23182 * syntax.c (scan_sexps_forward): Undo last patch.
23183 Use a more obvious fix: check eob before updating the syntax table.
23185 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
23187 * syntax.c (scan_sexps_forward): Update syntax table before reading
23188 a char rather than after so we don't update the table past eob.
23190 2002-11-09 Dave Love <fx@gnu.org>
23192 * buffer.c (Fset_buffer_major_mode): Fix last change.
23194 * regex.c (regexec): Fix pmatch declaration.
23196 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
23198 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
23199 to self-inserting characters.
23200 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
23202 * coding.c (Vtranslation_table_for_input): New.
23203 (syms_of_coding): DEFVAR it.
23205 2002-11-08 Juanma Barranquero <lektu@terra.es>
23207 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
23210 2002-11-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23212 * process.c (Fformat_network_address): Remove unused locals p,
23215 2002-11-06 Dave Love <fx@gnu.org>
23217 * buffer.c (Qset_buffer_major_mode_hook): New.
23218 (Fset_buffer_major_mode): Use it.
23220 2002-11-06 Richard M. Stallman <rms@gnu.org>
23222 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
23225 * process.c (wait_reading_process_input):
23226 Test POLLING_PROBLEM_IN_SELECT, not hpux.
23227 Avoid initialization for auto Lisp_Object var.
23229 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
23231 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
23233 2002-11-05 Richard M. Stallman <rms@gnu.org>
23235 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
23237 * callint.c (Fcall_interactively): New local filter_specs.
23238 (Fcall_interactively): Check for progn as well as let.
23240 (Qprogn): New variable.
23241 (syms_of_callint): Staticpro and init Qprogn.
23243 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
23245 * lread.c (Feval_buffer): Doc fix.
23247 2002-11-04 Dave Love <fx@gnu.org>
23249 * keyboard.c (read_char): Always translate iff
23250 Vkeyboard_translate_table is a char table and c is valid.
23252 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23255 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
23257 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
23259 * editfns.c (get_pos_property): Don't hardcode Qfield.
23261 * keyboard.c (adjust_point_for_property): Handle `display' prop on
23262 overlays. Also handle `invisible' prop.
23264 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
23266 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
23267 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
23269 2002-11-01 Andreas Schwab <schwab@suse.de>
23271 * editfns.c (Fmessage): Revert last change to properly handle %%.
23273 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
23275 * xmenu.c (unuse_menu_items): New fun.
23276 (menu_items_inuse): New var.
23277 (syms_of_xmenu): Initialize it.
23278 (init_menu_items): Use it to detect re-entrance.
23279 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
23280 (Fx_popup_menu): Remove spurious XSETFRAME.
23282 * editfns.c (find_field): Make an exception for nil fields.
23284 2002-11-01 Dave Love <fx@gnu.org>
23286 * m/gec63.h: Deleted.
23288 2002-10-31 Dave Love <fx@gnu.org>
23290 * xterm.c (XTread_socket): Fix last change.
23291 (xaw_scroll_callback): Cast call_data to long to avoid warning.
23293 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
23295 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
23297 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
23299 * editfns.c (overlays_around, get_pos_property): New funs.
23300 (find_field): Use them.
23301 Also be careful not to modify POS before its last use.
23302 (Fmessage): Don't Fformat if there's nothing to format.
23304 2002-10-30 Dave Love <fx@gnu.org>
23306 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
23307 [HAVE_PTY_H]; Include pty.h.
23309 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
23311 * xterm.c (Qeql): Declare.
23312 (Vx_keysym_table): New.
23313 (syms_of_xterm): Initialize it.
23314 (XTread_socket): Use it. Deal with ASCII keysyms.
23315 (XSetIMValues) [HAVE_X11R6]: Prototype.
23317 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
23318 (lispy_kana_keys): Comment out.
23319 (make_lispy_event) [XK_kana_A]: Comment out.
23320 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
23323 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
23325 (TERMINFO, LIBS_TERMCAP): Define.
23327 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
23328 (bcmp): Define conditional on HAVE_BCMP.
23329 (NO_SIOCTL_H): Don't define.
23330 (TIOCSIGSEND): Don't make conditional on IRIX6.
23332 * s/sol2-5.h: Don't include strings.h.
23333 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
23335 * s/irix6-0.h (IRIX6): Don't define.
23336 (bcopy, bcmp, bzero): Don't undef.
23338 * s/irix6-5.h: Don't include strings.h.
23339 (IRIX6): Don't define.
23340 (bcopy, bcmp, bzero): Don't undef.
23342 * syntax.c (Fforward_comment): Doc fix.
23344 2002-10-29 Kim F. Storm <storm@cua.dk>
23346 * process.c (Fsignal_process): Allow PROCESS to be specified by
23347 name in addition to pid (as integer or string).
23349 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
23351 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
23354 2002-10-27 Kim F. Storm <storm@cua.dk>
23356 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
23358 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
23360 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
23362 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
23364 2002-10-26 Richard M. Stallman <rms@gnu.org>
23366 * editfns.c (Fformat): Detect invalid format letters for floats.
23368 2002-10-25 Kenichi Handa <handa@m17n.org>
23370 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
23371 (x_set_title): Likewise.
23373 2002-10-25 Juanma Barranquero <lektu@terra.es>
23376 * w32gui.h: Remove definition of XColor.
23378 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
23380 2002-10-24 Kim F. Storm <storm@cua.dk>
23382 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
23383 Callers changed (supply dummy arg).
23385 * lisp.h (get_window_cursor_type): Update prototype.
23387 * w32term.c (x_display_and_set_cursor): Get active_cursor from
23388 get_window_cursor_type to track system caret.
23390 2002-10-24 Kim F. Storm <storm@cua.dk>
23392 * process.c (Fformat_network_address): New function.
23393 (syms_of_process): Defsubr it.
23394 (list_processes_1): Use it to format :local/:remote address if
23395 service/host is not set; before Emacs would crash in that case.
23396 (Fmake_network_process): Don't use Ffind_operation_coding_system
23397 to setup coding system if host or service is not set.
23399 2002-10-23 Juanma Barranquero <lektu@terra.es>
23401 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
23403 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
23407 * w32gui.h: Add definition of XColor.
23411 * xfaces.c: Remove definition of XColor.
23413 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
23415 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
23417 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
23418 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
23419 window if it is dedicated.
23420 (Fshrink_window): Add preserve_before as was done for enlarge_window.
23421 (Vspecial_display_function): Update docstring.
23423 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
23424 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
23425 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
23427 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
23429 * casefiddle.c (casify_region): Don't treat a prefix char as part
23430 of a word when at the beginning.
23432 2002-10-17 Juanma Barranquero <lektu@terra.es>
23434 * lread.c (syms_of_lread): Fix typos.
23436 2002-10-17 Dave Love <fx@gnu.org>
23438 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
23440 2002-10-16 Richard M. Stallman <rms@gnu.org>
23442 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
23444 2002-10-14 Juanma Barranquero <lektu@terra.es>
23446 * w16select.c (syms_of_win16select): Fix docstring for
23447 `selection-coding-system'.
23449 * w32select.c (syms_of_w32select): Likewise.
23451 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
23453 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
23454 a backslash-quoted char.
23455 (scan_lists, scan_sexps_forward): Pacify the compiler.
23457 2002-10-13 Richard M. Stallman <rms@gnu.org>
23459 * window.c (window_scroll): Set immediate_quit.
23461 * print.c (print): When backquote form is the car of a list,
23462 output in old style. Use old_backquote_output to output all
23463 comma forms inside it in old style too.
23465 * buffer.h (struct buffer): Move `undo_list' down below `name'.
23467 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
23469 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
23472 * lread.c (Fload): Doc fix (load-suffixes).
23474 2002-10-10 Steven Tamm <steventamm@mac.com>
23476 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
23477 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
23478 Also switch the default to Qnil from Qt.
23480 2002-10-08 Kenichi Handa <handa@m17n.org>
23482 * coding.c (code_convert_region): When we need more GAP for
23483 conversion, pay attention to the case that coding->produced is not
23484 greater than coding->consumed.
23486 2002-10-07 Richard M. Stallman <rms@gnu.org>
23488 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
23490 2002-10-06 Andrew Choi <akochoi@shaw.ca>
23492 * macmenu.c (mac_menu_show): Add j to count menu items; match
23493 menu_item_selection to it to find selected item.
23495 2002-10-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
23497 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
23498 cases. The correct fix is to pass ReparentNotify to Xt.
23499 The shell widget interprets ConfigureNotify differently depending
23500 on if it has been reparented or not.
23502 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
23504 * editfns.c (Fformat_time_string): Doc fix.
23506 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
23508 * fns.c (Flength): Doc fix.
23510 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
23512 * keyboard.c (keyremap): New struct.
23513 (read_key_sequence): Use it: globally replace keytran_foo with
23514 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
23515 keytran_next and fkey_next to just `next'.
23517 2002-10-04 Steven Tamm <steventamm@mac.com>
23519 * macterm.c (keycode_to_xkeysym_table): Change return to be
23520 treated like an X keysym.
23522 2002-10-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
23524 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
23525 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
23526 This is to also handle x/y changes that occur because of a resize.
23528 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
23530 * frame.c (Vdelete_frame_functions): New variable.
23531 (syms_of_frame): Initialize and defvar it.
23532 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
23533 it when frame's `tooltip' parameter is non-nil.
23535 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
23537 * w32fns.c (x_create_tip_frame): Likewise.
23539 * macfns.c (x_create_tip_frame): Likewise.
23541 2002-09-30 Kenichi Handa <handa@m17n.org>
23543 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
23544 -1 before calling ccl_driver.
23546 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
23547 Only when it is non-nil, handle composition sequence.
23548 (setup_coding_system) <0>: Don't force composition handling.
23550 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
23552 2002-09-29 Richard M. Stallman <rms@gnu.org>
23554 * search.c (Freplace_match): Adjust match data for the substitution
23555 just made in the buffer.
23557 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
23558 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
23560 2002-09-27 Richard M. Stallman <rms@gnu.org>
23562 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
23563 (read_char): Use them. Do all exits thru the end of the function.
23565 2002-09-27 Kenichi Handa <handa@etl.go.jp>
23567 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
23570 2002-09-26 Richard M. Stallman <rms@gnu.org>
23572 * regex.h (__restrict_arr): Don't define if already defined.
23574 * coding.c (run_pre_post_conversion_on_str):
23575 Save and restore Vdeactivate_mark.
23577 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
23579 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
23581 2002-09-26 Kenichi Handa <handa@etl.go.jp>
23583 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
23584 nonzero, try face's family at first. Otherwise try FAMILY at first.
23585 (choose_face_font): If C is a single byte char or latin-1, call
23586 try_font_list with PREFER_FACE_FAMILY 1.
23588 2002-09-21 Richard M. Stallman <rms@gnu.org>
23590 * window.c (select_window_1): Don't select frame.
23591 Set frame's selected window only when frame itself is selected.
23592 (Fselect_window): Doc fix.
23594 2002-09-18 Kim F. Storm <storm@cua.dk>
23596 * process.c (make-network-process): Doc fix (there is no
23597 network-server-log-function hook).
23599 2002-09-18 Richard M. Stallman <rms@gnu.org>
23601 * print.c (print): Clear out the unused parts of Vprint_number_table.
23602 (syms_of_print): Doc fix for `print-number-table'.
23604 * unexelf.c (unexec): Undo previous change.
23606 2002-09-17 Andreas Schwab <schwab@suse.de>
23608 * m/alpha.h [LINUX]: Don't define DATA_START.
23610 2002-09-16 Dave Love <fx@gnu.org>
23612 * unexelf.c (unexec): Deal with .got, reinstating change from
23615 2002-09-13 Richard M. Stallman <rms@gnu.org>
23617 * s/sol2-6.h (UNEXEC): Comment out definition.
23619 * unexsol.c (unexec): Don't downcase first letter of error msg.
23621 * xfaces.c (Fcolor_supported_p): Just one arg is required.
23623 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
23625 * unexsol.c: Include buffer.h, charset.h, coding.h.
23627 2002-09-11 Richard M. Stallman <rms@gnu.org>
23629 * unexsol.c: Don't use report_file_error; do it by hand
23632 * process.c (wait_reading_process_input, both versions):
23633 Before calling turn_on_atimers, call stop_polling.
23635 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
23637 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
23638 we go to too_near_end, call clear_glyph_matrix.
23639 (redisplay_window): After make_cursor_line_fully_visible,
23640 call clear_glyph_matrix and bypass `goto done'.
23642 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
23643 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
23645 2002-09-10 Richard M. Stallman <rms@gnu.org>
23647 * fileio.c (Fdo_auto_save): Catch error making directory.
23648 Only call push_message if we need to.
23649 At the same time, make an unwind-protect to pop it.
23650 Rename local message_p to old_message_p.
23651 (do_auto_save_make_dir, do_auto_save_eh): New functions.
23652 (do_auto_save_unwind): Don't call pop_message.
23654 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
23656 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
23658 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
23660 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
23662 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
23664 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
23665 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
23666 (re_match_2_internal): Be more careful with infinite loops.
23668 2002-09-10 Kim F. Storm <storm@cua.dk>
23670 * macros.c (end_kbd_macro): New function.
23671 (Fend_kbd_macro): Use it.
23673 * macros.h (end_kbd_macro): Declare extern.
23675 * keyboard.c (Fdiscard_input): If defining keyboard macro,
23676 end and save it instead of discarding it.
23678 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
23680 * s/sol2-6.h: Fix typo. Add comment.
23682 2002-09-09 Richard M. Stallman <rms@gnu.org>
23684 * regex.c (regnum_t): Use signed int, not unsigned int.
23686 * s/sol2-6.h: New file.
23688 * s/sol2-5.h (UNEXEC): Definition deleted.
23690 2002-09-08 Kim F. Storm <storm@cua.dk>
23692 * macros.c (executing_macro_index): Change type to EMACS_INT.
23693 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
23695 * macros.h (executing_macro_index): Change type to EMACS_INT.
23697 2002-09-06 Richard M. Stallman <rms@gnu.org>
23699 * casetab.c (set_case_table): Make canon table point to eqv table.
23701 2002-09-06 Juanma Barranquero <lektu@terra.es>
23703 * coding.c (syms_of_coding): Fix spacing.
23705 * composite.c (Fcompose_region_internal)
23706 (Fcompose_string_internal): Likewise.
23708 * data.c (Flsh): Likewise.
23710 * fontset.c (Fset_fontset_font): Likewise.
23712 * macfns.c (Fx_server_max_request_size): Likewise.
23714 * w16select.c (syms_of_win16select): Likewise.
23716 * w32select.c (syms_of_w32select): Likewise.
23718 * xselect.c (syms_of_xselect): Likewise.
23720 2002-09-05 Richard M. Stallman <rms@gnu.org>
23722 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
23723 call EXTEND_RANGE_TABLE and return a proper value.
23724 (set_image_of_range): Don't call set_image_of_range_1
23725 if no TRANSLATE or if range includes all of Latin-1.
23726 Only call it for the Latin-1 part of the range.
23727 For other cases, make two separate ranges,
23728 one for the original specified characters and one for
23729 their case-conversions.
23731 2002-09-04 Richard M. Stallman <rms@gnu.org>
23733 * s/sol2-5.h (UNEXEC): Use unexsol.o.
23735 * window.c (displayed_window_lines): Correct for one-off bug
23736 in HEIGHT on non-window displays.
23738 * regex.c (set_image_of_range_1): New function.
23739 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
23740 Return a value to indicate running out of memory.
23741 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
23742 (extend_range_table_work_area): New subroutine.
23743 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
23744 Different calling conventions, and used from set_image_of_range{,_1}.
23745 (IMMEDIATE_QUIT_CHECK): Definitions moved.
23747 2002-09-04 Juanma Barranquero <lektu@terra.es>
23749 * makefile.w32-in: All dependencies updated.
23751 2002-09-01 Richard M. Stallman <rms@gnu.org>
23753 * unexsol.c: New file.
23755 * xfns.c (Qbox): Declare external, don't define.
23757 * xdisp.c (redisplay_window) <force-start case>:
23758 If point is on semi-visible last line, reposition
23759 it at previous line.
23761 * alloc.c (display_malloc_warning): Use display-warning.
23762 (malloc_warning_1): Function deleted.
23764 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
23766 * lread.c (read1): Handle #! by skipping the line.
23768 2002-08-31 Richard M. Stallman <rms@gnu.org>
23770 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
23771 Don't include LDFLAGS.
23772 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
23774 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
23776 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
23777 member of x_display_info unless we compile for some window system.
23779 2002-08-31 Kim F. Storm <storm@cua.dk>
23781 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
23782 (get_window_cursor_type): Don't use them.
23783 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
23785 2002-08-30 Kenichi Handa <handa@etl.go.jp>
23787 * xdisp.c (get_next_display_element): Fix previous change.
23789 2002-08-30 Andrew Choi <akochoi@shaw.ca>
23791 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
23792 (expose_window): Use it to fix the display of overlapping
23793 rows (merge code from xterm.c).
23795 * macfns.c (Qbox): Add extern declaration.
23797 2002-08-30 Juanma Barranquero <lektu@terra.es>
23799 * w32fns.c (Qbox): Make extern.
23800 (syms_of_w32fns): Remove initialization of Qbox.
23802 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
23804 * xfns.c (Fx_open_connection): Fix error message.
23806 2002-08-30 Kim F. Storm <storm@cua.dk>
23808 The following changes consolidates the handling of the cursor
23809 type in xdisp.c, moving duplicate code and functionality from
23810 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
23812 * frame.h (enum text_cursor_kinds): Consolidated here.
23813 Added DEFAULT_CURSOR value.
23814 (struct frame) <desired_cursor, cursor_width>
23815 <blink_off_cursor, blink_off_cursor_width>: New fields.
23816 Consolidated from output_x, output_w32 and output_mac structs.
23817 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
23818 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
23820 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
23821 Variables consolidated here.
23822 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
23823 (Vcursor_in_non_selected_windows): Renamed from
23824 cursor_in_non_selected_windows and changed to Lisp_Object.
23825 (syms_of_xdisp): Define and staticpro new and moved variables.
23826 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
23827 consolidated here. Recognize Qhollow setting.
23828 (set_frame_cursor_types): New function to set frame cursor types
23829 based on the frame parameters.
23830 (get_window_cursor_type): New function to calculate new cursor
23831 type and width for the specified window. Based on duplicated
23832 code consolidated here.
23833 Enhancements: cursor-in-non-selected-windows may be a cursor type,
23834 check buffer-local alternate-cursor-type and blink-cursor-alist
23835 before using built-in blink off methods.
23837 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
23839 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
23840 (get_specified_cursor_type, get_window_cursor_type)
23841 (set_frame_cursor_types): Added prototypes.
23843 * macfns.c (x_specified_cursor_type): Removed.
23844 (x_set_cursor_type): Use set_frame_cursor_types.
23845 (Qbar, Qbox): Removed.
23846 (syms_of_macfns): Don't intern or staticpro them.
23848 * macterm.c (x_specified_cursor_type): Remove prototype.
23849 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
23850 (x_display_and_set_cursor): Use get_window_cursor_type.
23851 Remove unused local variables cursor_non_selected, active_cursor.
23852 Redraw cursor if hbar cursor width changes.
23853 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
23855 * macterm.h (enum text_cursor_kinds): Removed.
23856 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
23857 <blink_off_cursor, blink_off_cursor_width>: Members removed.
23858 (FRAME_DESIRED_CURSOR): Macro removed.
23860 * w32fns.c (Vblink_cursor_alist): Removed.
23861 (Qbar, Qhbar, Qbox, Qhollow): Removed.
23862 (syms_of_w32fns): Don't intern, staticpro, or define them.
23863 (x_specified_cursor_type): Removed.
23864 (x_set_cursor_type): Use set_frame_cursor_types.
23866 * w32term.c (x_specified_cursor_type): Remove prototype.
23867 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
23868 (x_display_and_set_cursor): Use get_window_cursor_type.
23869 Remove unused local variables cursor_off_state.
23870 Redraw cursor if hbar cursor width changes.
23871 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
23873 * w32term.h (enum text_cursor_kinds): Removed.
23874 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
23875 <blink_off_cursor, blink_off_cursor_width>: Members removed.
23876 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
23877 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
23878 (struct w32_display_info) <x_highlight_frame>: Renamed member from
23879 w32_highlight_frame.
23881 * xfns.c (Vblink_cursor_alist): Removed.
23882 (Qbar, Qhbar, Qbox, Qhollow): Removed.
23883 (syms_of_xfns): Don't intern, staticpro, or define them.
23884 (x_specified_cursor_type): Removed.
23885 (x_set_cursor_type): Use set_frame_cursor_types.
23887 * xterm.c (x_specified_cursor_type): Remove prototype.
23888 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
23889 (x_display_and_set_cursor): Use get_window_cursor_type.
23890 Remove unused local variables cursor_off_state.
23891 Redraw cursor if hbar cursor width changes.
23893 * xterm.h (enum text_cursor_kinds): Removed.
23894 (struct output_x) <current_cursor, desired_cursor, cursor_width>
23895 <blink_off_cursor, blink_off_cursor_width>: Members removed.
23896 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
23897 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
23898 (x_specified_cursor_type): Remove prototype.
23900 2002-08-28 Richard M. Stallman <rms@gnu.org>
23902 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
23903 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
23904 (Vblink_cursor_alist): New variable.
23905 (syms_of_w32fns): Initialize and defvar it.
23906 (x_specified_cursor_type): Recognize Qbox for filled box.
23907 Exceptions are hollow boxes.
23908 (Qbox, Qhollow): New variables.
23909 (syms_of_w32fns): Initialize and staticpro them.
23911 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
23913 (struct w32_output): New fields blink_off_cursor,
23914 blink_off_cursor_width.
23915 (FRAME_CURSOR_WIDTH): New macro.
23917 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
23918 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
23920 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
23923 * w32term.c (expose_overlaps): New function.
23924 (expose_window): Use it to fix the display of overlapping rows.
23926 2002-08-28 Simon Josefsson <jas@extundo.com>
23928 * xfns.c (Fx_open_connection): Improve help when X connection
23929 fails, xhost is insecure and xauth is better.
23931 2002-08-28 Juanma Barranquero <lektu@terra.es>
23933 * makefile.w32-in: Add missing dependencies on w32term.h and
23936 * emacs.c (USAGE1): Add missing newline.
23938 2002-08-27 Andrew Choi <akochoi@shaw.ca>
23940 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
23942 2002-08-27 Richard M. Stallman <rms@gnu.org>
23944 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
23945 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
23946 (Vblink_cursor_alist): New variable.
23947 (syms_of_xfns): Initialize and defvar it.
23948 (x_specified_cursor_type): Recognize Qbox for filled box.
23949 Exceptions are hollow boxes.
23950 (Qbox, Qhollow): New variables.
23951 (syms_of_xfns): Initialize and staticpro them.
23953 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
23955 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
23957 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
23958 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
23960 * emacs.c (main): Handle --script.
23961 (USAGE1): Mention --script.
23962 (standard_args): Define sort order for --script.
23964 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
23966 * xdisp.c (redisplay_updating_p): Variable removed.
23967 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
23969 (init_iterator): Don't free realized faces if
23970 inhibit_free_realized_faces is set.
23971 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
23972 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
23973 initialize Qinhibit_free_realized_faces.
23975 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
23976 when iterator is adding glyphs to a glyph matrix.
23978 2002-08-27 Kenichi Handa <handa@etl.go.jp>
23980 * xdisp.c (get_next_display_element): In unibyte case, don't use
23981 octal form for such eight-bit characters that can be converted to
23984 2002-08-26 Kim F. Storm <storm@cua.dk>
23986 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
23987 foreground and background colors. From Joe Buehler.
23989 2002-08-26 Miles Bader <miles@gnu.org>
23991 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
23993 2002-08-25 Andrew Choi <akochoi@shaw.ca>
23995 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
23996 defined instead of MAC_OSX.
23998 * s/darwin.h (select): Define select to sys_select only if
23999 HAVE_CARBON is defined.
24000 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
24001 (DONT_REOPEN_PTY): #def it.
24003 * macterm.c (XTread_socket): Remove code to call
24004 SendEventToEventTarget for keys with command modifiers when
24005 mac_command_key_is_meta is nil.
24007 2002-08-24 Andreas Schwab <schwab@suse.de>
24009 * eval.c (Fdefvar): Fix last change.
24011 2002-08-23 Richard M. Stallman <rms@gnu.org>
24013 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
24014 Record variables in load history as (defvar . VAR).
24015 (Fdefvar): Don't record in load history if no initial value.
24016 (Qdefvar): New variable.
24017 (syms_of_eval): Init and staticpro it.
24019 * lread.c (syms_of_lread): Doc fix.
24020 (build_load_history): Use Fmember to see if a definition
24021 is already in the Vload_history element.
24023 * process.c (Fstart_process): Remove /: from program name.
24025 * emacs.c (decode_env_path): Don't add /: if file name handler
24026 has a `safe-magic' property.
24028 * callproc.c (Fcall_process): Remove /: from program name.
24030 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
24032 * regex.c (PATFETCH): Remove the translating fetch.
24033 (PATFETCH_RAW): Rename to PATFETCH.
24034 (set_image_of_range): New fun.
24035 (SET_RANGE_TABLE_WORK_AREA): Use it.
24036 (regex_compile): Don't translate the pattern chars so eagerly.
24037 Only do it when inserting an `exactn' bytecode or when handling
24039 (mutually_exclusive_p): Avoid empty statement.
24041 2002-08-22 Kim F. Storm <storm@cua.dk>
24043 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
24044 end up on a partially visible line; this reverts a specific part
24045 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
24046 display error which has been reported several times now.
24047 However it introduces the problem that changes was supposed to fix.
24048 See my comments in the source if you want to debug this further.
24050 2002-08-20 Kenichi Handa <handa@etl.go.jp>
24052 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
24054 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
24056 * msdos.c (croak): Add `void' to definition.
24058 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
24059 Don't define them, they are defined in msdos.c.
24061 * mem-limits.h [MSDOS]: Declare etext.
24063 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
24064 `const' since CORRECT_DIR_SEPS modifies its target.
24066 2002-08-19 Kim F. Storm <storm@cua.dk>
24068 * keyboard.c (Fclear_this_command_keys): Add optional arg
24069 KEEP-RECORD to avoid clearing lossage when we just want to clear
24070 the current key sequence (kmacro needs this).
24072 2002-08-19 Kenichi Handa <handa@localhost>
24074 * composite.c (run_composition_function): Call FUNC if it is fboundp.
24076 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
24079 2002-08-17 Richard M. Stallman <rms@gnu.org>
24081 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
24083 * sysdep.c [!VMS]: Include sys/files.h.
24085 * editfns.c (save_restriction_restore): Defend from unchained marker.
24087 * buffer.c (overlays_at): Handle extending vec uniformly.
24088 (overlays_in): Handle extending vec from length 0 as in overlays_at.
24090 2002-08-15 Andrew Choi <akochoi@shaw.ca>
24092 * mac.c (init_mac_osx_environment): New function.
24094 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
24096 2002-08-14 Kim F. Storm <storm@cua.dk>
24098 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
24099 executing macro before appending to it (when used from Lisp).
24100 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
24101 which is called prior to each iteration of macro (for kmacro.el).
24102 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
24104 * lisp.h (Fexecute_kbd_macro): Update prototype.
24106 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
24108 2002-08-14 Kenichi Handa <handa@etl.go.jp>
24110 * xselect.c (QUTF8_STRING): New variable.
24111 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
24112 (x_atom_to_symbol): Likewise.
24113 (x_get_local_selection): New argument local_request. If it is
24114 nonzero, call handler_fn with the second arg nil.
24115 (x_handle_selection_request): Call x_get_local_selection with
24117 (lisp_data_to_selection_data): Don't encode the string here.
24118 (Fx_get_selection_internal): Call x_get_local_selection with
24120 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
24122 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
24124 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
24126 2002-08-13 Richard M. Stallman <rms@gnu.org>
24128 * minibuf.c (Fminibufferp): New function.
24129 (syms_of_minibuf): Defsubr it.
24130 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
24132 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
24134 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
24136 2002-08-12 Richard M. Stallman <rms@gnu.org>
24138 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
24139 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
24140 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
24143 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
24145 2002-08-11 Andrew Choi <akochoi@shaw.ca>
24147 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
24148 (Vmac_pass_command_to_system): New variable.
24149 (Vmac_pass_control_to_system): New variable.
24150 (do_mouse_moved): Check wp with is_emacs_window.
24151 (XTread_socket): Check window_ptr with is_emacs_window.
24152 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
24153 events back to Mac Toolbox for processing, depending on values of
24154 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
24155 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
24156 Vmac_pass_control_to_system.
24158 2002-08-10 Kenichi Handa <handa@etl.go.jp>
24160 * coding.c (unencodable_char_position): New function.
24161 (Funencodable_char_position): New function.
24162 (syms_of_coding): Defsubr Funencodable_char_position.
24164 2002-08-10 Andrew Choi <akochoi@shaw.ca>
24166 * mac.c (sys_select) [MAC_OSX]: New function.
24168 * macterm.c (MakeMeTheFrontProcess): New function.
24169 (mac_initialize): Call MakeMeTheFrontProcess.
24171 * s/darwin.h: Define select to sys_select.
24173 2002-08-09 Richard M. Stallman <rms@gnu.org>
24175 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
24177 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
24179 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
24182 2002-08-08 Ken Raeburn <raeburn@gnu.org>
24184 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
24186 * puresize.h (BASE_PURESIZE): Increase to 910000.
24188 2002-08-08 Kenichi Handa <handa@etl.go.jp>
24190 * coding.c (Ffind_operation_coding_system): For write-region, if
24191 VISIT is a filename, make it the target.
24193 2002-08-07 Richard M. Stallman <rms@gnu.org>
24195 * alloc.c (mark_object): Detect long lists for debugging.
24196 (mark_object_loop_halt): New variable.
24198 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
24200 * data.c (Fmake_variable_frame_local): Doc fix.
24202 2002-08-01 David Ponce <david@dponce.com>
24204 * w32menu.c (local_heap, local_alloc, local_free): New macros.
24205 (malloc_widget_value, free_widget_value)
24206 (w32_free_submenu_strings): Use them.
24208 (push_submenu_start, push_submenu_end, push_left_right_boundary)
24209 (push_menu_pane, push_menu_item, single_keymap_panes)
24210 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
24211 (single_submenu, set_frame_menubar)
24212 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
24214 (Fx_popup_menu): Don't show pop up menu until preceding one is
24215 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
24217 * w32menu.c: Changes adapted from xmenu.c
24218 (set_frame_menubar): First parse all submenus,
24219 then make widget_value trees from them.
24220 Don't allocate any widget_value objects
24221 until we are done with the parsing.
24222 (parse_single_submenu): New function.
24223 (digest_single_submenu): New function.
24224 (single_submenu): Function deleted, replaced by those two.
24226 2002-08-04 Andrew Choi <akochoi@shaw.ca>
24228 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
24229 returns a valid window pointer before proceeding for keyDown and
24232 2002-08-03 Andrew Choi <akochoi@shaw.ca>
24234 * macterm.c (USE_CARBON_EVENTS): New macro.
24235 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
24236 (x_iconify_frame): Call CollapseWindow.
24237 (Vmac_reverse_ctrl_meta): New variable.
24238 (Vmac_wheel_button_is_mouse_2): New variable.
24239 (init_mac_drag_n_drop): New function.
24240 (mac_do_receive_drag): New function.
24241 (mac_handle_service_event): New function.
24242 (init_service_handler): New function.
24243 (mac_to_emacs_modifiers): New function.
24244 (mac_event_to_emacs_modifiers): New function.
24245 (mac_get_mouse_btn): New function.
24246 (mac_convert_event_ref): New function.
24247 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
24248 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
24250 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
24252 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
24253 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
24254 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
24255 TOOL_BAR_EVENT for MAC_OS as well.
24256 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
24258 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
24260 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
24262 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
24264 * xdisp.c (forward_to_next_line_start): Fix a condition that
24265 lead to a newline being skipped.
24267 2002-08-02 Andrew Choi <akochoi@shaw.ca>
24269 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
24271 2002-08-01 Richard M. Stallman <rms@gnu.org>
24273 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
24275 2002-07-31 Andrew Choi <akochoi@shaw.ca>
24277 * macfns.c: #undef init_process before #define-ing it.
24279 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
24280 HAVE_CARBON is defined.
24282 2002-07-31 Richard M. Stallman <rms@gnu.org>
24284 * xmenu.c (set_frame_menubar): First parse all submenus,
24285 then make widget_value trees from them.
24286 Don't allocate any widget_value objects
24287 until we are done with the parsing.
24288 (parse_single_submenu): New function.
24289 (digest_single_submenu): New function.
24290 (single_submenu): Function deleted, replaced by those two.
24292 2002-07-30 Juanma Barranquero <lektu@terra.es>
24294 * w32proc.c (syms_of_ntproc): Fix docstring of
24295 `w32-get-true-file-attributes'.
24297 2002-07-28 Richard M. Stallman <rms@gnu.org>
24299 * s/hpux8.h (HPUX8): Define this before including hpux.h.
24300 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
24302 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
24304 * keyboard.c (make_lispy_event):
24305 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
24306 Explicitly clear up_modifier in event->modifiers.
24308 2002-07-27 Richard M. Stallman <rms@gnu.org>
24310 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
24312 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
24315 2002-07-26 Kenichi Handa <handa@etl.go.jp>
24317 * coding.c (detect_coding_iso2022): While checking a byte sequence
24318 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
24319 it in the normal loop.
24321 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
24323 * xterm.c (expose_overlaps): New function.
24324 (expose_window): Use it to fix the display of overlapping rows.
24326 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
24328 2002-07-23 Ken Raeburn <raeburn@gnu.org>
24330 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
24331 since it only depends on XUINT.
24333 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
24334 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
24335 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
24338 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
24339 its value over other approaches.
24340 * sysdep.c (start_of_data): Don't define the function if a macro
24341 form has been defined.
24343 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
24345 * xdisp.c (redisplay_updating_p): New variable.
24346 (init_iterator): Don't free realized faces when
24347 redisplay_updating_p is set.
24348 (redisplay_internal): Set redisplay_updating_p while updating
24351 2002-07-23 Richard M. Stallman <rms@gnu.org>
24353 * editfns.c (Fmessage): Treat "" like nil.
24355 2002-07-23 Kenichi Handa <handa@etl.go.jp>
24357 * xdisp.c (face_before_or_after_it_pos):
24358 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
24360 2002-07-22 Juanma Barranquero <lektu@terra.es>
24362 * callproc.c (init_callproc) [DOS_NT]:
24363 Initialize Vshared_game_score_directory to nil.
24364 (syms_of_callproc) [DOS_NT]: Likewise.
24366 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
24368 * xdisp.c (display_line): Replace an abort with xassert.
24370 2002-07-21 Richard M. Stallman <rms@gnu.org>
24372 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
24373 and END_UNCHANGED when setting buffer_unchanged_p.
24374 Use current_matrix_up_to_date_p to decide whether to use
24375 try_cursor_movement.
24377 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
24379 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
24381 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
24382 Set to nil if dir does not exist.
24383 (syms_of_callproc): Init unconditionally and simply.
24385 * buffer.c (Fbuffer_list): Doc fix.
24387 2002-07-21 Ken Raeburn <raeburn@gnu.org>
24389 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
24391 * buffer.c (mmap_realloc): When shrinking, make sure number of
24392 pages to unmap is rounded towards zero.
24394 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
24395 (XSETINT): Deleted.
24397 * m/att3b.h (XINT): Don't define.
24398 (VALBITS, VALMASK, XTYPE): Deleted.
24399 (DATA_SEG_BITS): Define.
24400 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
24401 ARRAY_MARK_FLAG): Deleted.
24402 (DATA_SEG_BITS): Define.
24403 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
24404 (DATA_SEG_BITS): Define.
24406 2002-07-20 Richard M. Stallman <rms@gnu.org>
24408 * print.c (print_error_message): New args CONTEXT and CALLER.
24411 * lisp.h (print_error_message): Declare new args.
24413 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
24414 and CONTEXT to print_error_message, don't print them here.
24415 For a Quit, don't use Vsignaling_function.
24416 Call message_log_maybe_newline.
24418 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
24420 2002-07-20 Kim F. Storm <storm@cua.dk>
24422 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
24424 2002-07-19 Ken Raeburn <raeburn@gnu.org>
24426 * bytecode.c (struct byte_stack): Pointers into byte string now
24428 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
24430 * charset.h (BCOPY_SHORT): Source pointer now points to const.
24431 * coding.c (encode_eol, detect_coding, detect_eol):
24432 (decode_coding, encode_coding, detect_coding_system):
24433 Source strings now treated as const.
24434 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
24435 modify Lisp string contents.
24436 * coding.h (decode_coding, encode_coding, detect_coding,
24437 detect_eol): Declarations updated.
24438 * composite.c (compose_chars_in_text): Treat Lisp string contents
24440 * dispnew.c (safe_bcopy): Source pointer now points to const.
24441 * lisp.h (STRING_COPYIN): New macro.
24442 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
24443 (internal_with_output_to_temp_buffer): Declarations updated.
24444 * print.c (temp_output_buffer_setup):
24445 (internal_with_output_to_temp_buffer): Buffer name argument is now
24447 * sound.c (struct sound_device): Function pointer field "write"
24448 buffer argument now points to const.
24449 (vox_write): Buffer argument points to const.
24450 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
24452 * sysdep.c (emacs_write): Buffer pointer now const.
24453 * term.c (encode_terminal_code): Buffer pointer now const.
24454 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
24455 (x_face_list_fonts, x_update_menu_appearance):
24456 (hash_string_case_insensitive): Treat Lisp string contents as const.
24458 2002-07-19 Juanma Barranquero <lektu@terra.es>
24460 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
24462 * fileio.c (syms_of_fileio): Likewise.
24463 (Ffile_name_as_directory): Fix argument name in docstring.
24464 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
24466 2002-07-18 Richard M. Stallman <rms@gnu.org>
24468 * data.c (Fdefalias): Doc fix.
24470 2002-07-17 Dave Love <fx@gnu.org>
24472 * intervals.h (text_property_stickiness): Use P_.
24474 * ccl.c: Remove `emacs' conditionals.
24475 (ccl_backtrace_table): Fix size spec.
24476 (ccl_driver): Fix type errors.
24478 2002-07-16 Ken Raeburn <raeburn@gnu.org>
24480 * alloc.c (xstrdup, make_string, make_unibyte_string)
24481 (make_multibyte_string, build_string): String pointer args now
24483 * charset.c (find_charset_in_text, c_string_width):
24484 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
24485 * fileio.c (report_file_error):
24486 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
24487 (count_combining_before, count_combining_after, insert_1_both):
24488 (insert, insert_and_inherit, insert_string):
24489 (insert_before_markers, insert_before_markers_and_inherit):
24490 * lread.c (intern, oblookup, hash_string):
24491 * minibuf.c (temp_echo_area_glyphs):
24492 * search.c (fast_c_string_match_ignore_case):
24493 * sysdep.c (emacs_open, set_file_times):
24494 * xfaces.c (xstricmp):
24495 * xdisp.c (store_frame_title, string_char_and_length):
24496 (message_dolog, message2, message2_nolog, set_message): Likewise.
24497 (set_message_1): Cast message string argument to const pointer.
24498 * editfns.c (general_insert_function): Insertion function now
24499 takes pointer to const for input data.
24500 * charset.h (find_charset_in_text, c_string_width):
24501 (parse_str_as_multibyte): Declarations updated.
24502 * dispextern.h (xstricmp): Declaration updated.
24503 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
24504 (count_size_as_multibyte, count_combining_before):
24505 (count_combining_after, insert_1, insert_1_both, message_dolog):
24506 (insert, insert_and_inherit, insert_before_markers)
24507 (insert_before_markers_and_inherit, set_message, message2):
24508 (message2_dolog, build_string, make_string, make_unibyte_string):
24509 (make_multibyte_string, intern, oblookup, report_file_error):
24510 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
24511 (emacs_open, xstrdup): Declarations updated.
24512 * systime.h (set_file_times): Declaration updated.
24514 * charset.c (find_charset_in_text, lisp_string_width): Use const
24515 for pointer to lisp string data.
24516 * charset.h (FETCH_STRING_CHAR_ADVANCE):
24517 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
24518 * coding.c (Ffind_coding_systems_region_interval):
24519 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
24520 (Fmake_directory_internal, Fdelete_directory):
24521 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
24522 * fontset.c (font_family_registry, fs_query_fontset):
24524 * frame.c (Fframe_parameter):
24525 * keyboard.c (cmd_error_internal):
24526 * keymap.c (Fdescribe_buffer_bindings):
24527 * lread.c (complete_filename_p, openp):
24528 * minibuf.c (Fminibuffer_complete_word):
24529 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
24530 (face_before_or_after_it_pos, next_element_from_string):
24531 (get_overlay_arrow_glyph_row, display_mode_element):
24532 (decode_mode_spec_coding):
24533 * xterm.c (same_x_server): Likewise.
24535 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
24536 settings of non-existent fields.
24538 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
24541 * lread.c (Fintern_soft): Use string macros instead of
24542 Lisp_String fields.
24543 * keyboard.c (echo_char, parse_modifiers_uncached):
24544 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
24545 * textprop.c (validate_interval_range, interval_of): Likewise.
24547 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
24549 * charset.h (FETCH_STRING_CHAR_ADVANCE)
24550 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
24551 XSTRING()->size_byte.
24553 * lisp.h (SDATA, SREF): Produce rvalue.
24555 * alloc.c (make_event_array): Use SSET for storing into a string.
24556 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
24558 * casefiddle.c (casify_object): Use SSET.
24559 * charset.h (FETCH_STRING_CHAR_ADVANCE)
24560 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
24561 address of string contents.
24562 * data.c (Faref): Use SDATA.
24563 (Faset): Use SDATA, SSET.
24564 * dired.c (directory_files_internal): Use SSET.
24565 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
24566 (Fread_file_name): Use SREF, SSET.
24567 * fns.c (concat): Use SSET.
24568 (concat, Fdelete): Use SDATA.
24569 * insdel.c (insert_from_string_1): Use SDATA.
24570 * keyboard.c (Fevent_convert_list): Use SREF.
24571 * lread.c (Fload): Use SDATA, SSET.
24572 * macfns.c (validate_x_resource_name): Use SSET.
24573 * process.c (status_message): Use SSET.
24574 * search.c (wordify): Use SDATA.
24575 (Freplace_match): Use SREF.
24576 * w32fns.c (validate_x_resource_name): Use SSET.
24577 * xfns.c (validate_x_resource_name): Use SSET.
24578 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
24580 2002-07-16 Richard M. Stallman <rms@gnu.org>
24582 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
24584 * xdisp.c (reconsider_clip_changes):
24585 Don't test prevent_redisplay_optimizations_p.
24586 (redisplay_internal): Test prevent_redisplay_optimizations_p
24587 along with clip_changed in some cases.
24588 (try_window_id): Likewise.
24589 (redisplay_window): New local var buffer_unchanged_p.
24591 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
24593 * process.c (create_process): Test USG_SUBTTY_WORKS.
24594 (process_send_signal): Clean up handling of GID.
24595 Detect errors in ioctls meant to set GID.
24597 * window.c (temp_output_buffer_show):
24598 Don't set prevent_redisplay_optimizations_p.
24600 2002-07-15 Juanma Barranquero <lektu@terra.es>
24602 * eval.c (Fdefvaralias): Add docstring argument.
24604 2002-07-15 Ken Raeburn <raeburn@gnu.org>
24606 * lisp.h (STRING_INTERVALS): Produce rvalue.
24607 (STRING_SET_INTERVALS): New macro.
24608 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
24609 * fns.c (Fstring_as_multibyte): Likewise.
24610 * intervals.c (balance_possible_root_interval, delete_interval)
24611 (create_root_interval, copy_intervals_to_string): Likewise.
24612 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
24615 2002-07-14 Ken Raeburn <raeburn@gnu.org>
24617 * lisp.h (STRING_SET_CHARS): New macro.
24618 (SCHARS, SBYTES): Produce rvalues.
24619 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
24620 * fns.c (concat): Likewise.
24621 * lread.c (read_vector): Likewise.
24623 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
24624 (STRING_SET_UNIBYTE): New macro.
24625 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
24626 length of -1) changed to use STRING_SET_UNIBYTE.
24627 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
24628 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
24629 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
24630 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
24631 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
24632 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
24633 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
24634 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
24635 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
24636 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
24637 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
24638 STRING_BYTES or indirection changed to SCHARS, SBYTES,
24639 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
24642 2002-07-13 Kim F. Storm <storm@cua.dk>
24644 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
24646 2002-07-12 Richard M. Stallman <rms@gnu.org>
24648 * fileio.c (Fwrite_region): Doc fix.
24650 * print.c (print_error_message): Don't handle Vsignaling_function here.
24652 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
24653 (command_loop_1): Avoid certain actions after memory-full error.
24655 * eval.c (Fsignal): Don't call cancel_hourglass.
24656 For a memory-full error, don't call Vsignal_hook_function
24657 and don't set Vsignaling_function.
24659 * process.c (process_send_signal): Add abort call.
24661 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
24663 * keymap.c (Fkey_binding): Fix typo.
24665 2002-07-11 Richard M. Stallman <rms@gnu.org>
24667 * alloc.c (Vmemory_full): New variable.
24668 (Vmemory_signal_data): Rename from memory_signal_data.
24670 (syms_of_alloc): Defvar them.
24671 (memory_full, buffer_memory_full): Set Vmemory_full.
24673 * lisp.h (Vmemory_full): Add declaration.
24674 (current_column, indented_beyond_p): Change declaration.
24676 * indent.c (last_known_column): Declare as double, not float.
24677 (current_column, current_column_1, string_display_width)
24678 (position_indentation): Return `double'.
24679 (indented_beyond_p): Arg `column' is `double'. Callers changed.
24681 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
24682 (back_to_previous_visible_line_start)
24683 (reseat_at_next_visible_line_start, next_element_from_buffer):
24684 Use `double', not `float', when calling indented_beyond_p.
24686 * s/hpux11.h (BROKEN_SA_RESTART): Define.
24688 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
24690 2002-07-11 Juanma Barranquero <lektu@terra.es>
24692 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
24693 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
24694 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
24695 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
24696 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
24697 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
24699 2002-07-10 Juanma Barranquero <lektu@terra.es>
24701 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
24702 All callers changed.
24704 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
24706 * data.c (Fdefalias): Add an optional `docstring' argument.
24707 (set_internal, Fsetq_default): Use XCAR/XCDR.
24709 * composite.c (HASH_VALUE, HASH_KEY):
24710 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
24712 2002-07-09 Kenichi Handa <handa@etl.go.jp>
24714 * callproc.c (Fcall_process): Fix previous change.
24716 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
24718 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
24719 Add support for hash-tables.
24720 (Ftry_completion): Return t even if the string appears multiple times.
24722 * fns.c (Fnconc): Use XCDR.
24723 (Fprovide): Use CONSP and XCDR.
24724 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
24725 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
24726 (Fmake_hash_table): Accept `:size nil'.
24727 (Fmakehash): Delete: moved to subr.el.
24728 (syms_of_fns): Don't defsubr makehash.
24730 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
24731 (HASH_TABLE_SIZE): Move from fns.c.
24733 2002-07-07 Richard M. Stallman <rms@gnu.org>
24735 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
24736 Instead just return 0 when there is something to be done.
24737 (try_scrolling): If make_cursor_line_fully_visible returns 0,
24738 retry scrolling as if cursor were off the bottom.
24739 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
24740 return CURSOR_MOVEMENT_MUST_SCROLL.
24741 (redisplay_window): If make_cursor_line_fully_visible returns 0,
24742 go to try_to_scroll.
24744 * buffer.c (Fbuffer_local_value): Store current value into its binding
24745 so we get the up-to-date value for the binding that is loaded.
24747 * eval.c (Fdefmacro): Doc fix.
24749 2002-07-05 Dave Love <fx@gnu.org>
24751 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
24754 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
24755 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
24756 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
24757 CCL_LookupCharConstTbl.
24758 (syms_of_ccl): Defvar translation-hash-table-vector.
24760 2002-07-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24762 * xdisp.c: Remove unused variable `face'.
24764 2002-07-04 Juanma Barranquero <lektu@terra.es>
24766 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
24767 obsolescence information.
24769 2002-07-03 Andrew Choi <akochoi@shaw.ca>
24771 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
24772 pattern. Search cache first.
24773 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
24775 (XLoadQueryFont): Use it.
24777 2002-07-02 Richard M. Stallman <rms@gnu.org>
24779 * keymap.c (Fdefine_key): Doc fix.
24781 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
24783 2002-07-02 Juanma Barranquero <lektu@terra.es>
24785 * keymap.c (syms_of_keymap): Fix typo.
24787 2002-07-01 Andrew Choi <akochoi@shaw.ca>
24789 * s/darwin.h: Define POSIX_SIGNALS.
24791 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
24792 and FSRefMakePath to convert FSSpec returned with Apple Event to
24794 (mac_initialize) [TARGET_API_MAC_CARBON]:
24795 Call init_required_apple_events and disable the `Quit' menu item
24796 provided automatically by the Carbon Toolbox.
24798 2002-07-01 Dave Love <fx@gnu.org>
24800 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
24803 * xterm.c: Fix prototype for K&R.
24805 * term.c (costs_set): Declare static, non-initialized for pcc.
24807 2002-07-01 Richard M. Stallman <rms@gnu.org>
24809 * keyboard.c (timer_last_idleness_start_time): New variable.
24810 (timer_start_idle): Set that.
24811 (read_key_sequence): Use that to reset timer_idleness_start_time
24814 * window.c (Frecenter): With arg, set optional_new_start.
24816 * xdisp.c (redisplay_internal): Make optional_new_start really work.
24818 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
24819 buffer for completion.
24821 2002-06-29 Ken Raeburn <raeburn@gnu.org>
24823 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
24825 2002-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
24827 * keyboard.c (readable_filtered_events): New function that filters
24828 FOCUS_IN_EVENT depending on parameter.
24829 (readable_events): Calls readable_filtered_events, not filtering
24831 (get_filtered_input_pending): New function, filtering parameter passed
24832 to readable_filtered_events.
24833 (get_input_pending): Calls get_filtered_input_pending, not filtering
24835 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
24838 * xterm.h (struct x_output): Add focus_state.
24840 * xterm.c (x_focus_changed): New function.
24841 (x_detect_focus_change): New function.
24842 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
24843 EnterNotify and LeaveNotify to track X focus changes.
24845 2002-06-28 Andreas Schwab <schwab@suse.de>
24847 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
24849 2002-06-27 Kim F. Storm <storm@cua.dk>
24851 * xdisp.c (mode_line_string_list, mode_line_string_face)
24852 (mode_line_string_face_prop): New variables.
24853 (store_mode_line_string): New function.
24854 (display_mode_element): Use store_mode_line_string to
24855 add mode-line string elements to mode_line_string_list
24856 when mode_line_string_list is non-nil.
24857 (Fformat_mode_line): Now returns propertized string by
24858 default. New arg NO-PROPS to ignore properties.
24859 (decode_mode_spec): Only add two dashes for %- in propertized
24861 (syms_of_xdisp): Init and staticpro mode_line_string_list.
24863 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
24865 * minibuf.c (minibuffer_completion_contents): Add return type.
24867 2002-06-27 Juanma Barranquero <lektu@terra.es>
24869 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
24871 2002-06-26 Juanma Barranquero <lektu@terra.es>
24873 * fileio.c (read_file_name_cleanup): Add missing return.
24875 2002-06-26 Richard M. Stallman <rms@gnu.org>
24877 * window.c (Frecenter): Don't set force_start flag.
24879 * minibuf.c (do_completion, Fminibuffer_complete_word)
24880 (Fminibuffer_completion_help): Complete just the text before point.
24881 (minibuffer_completion_contents): New function.
24883 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
24885 * frame.c (frames_bury_buffer): Function deleted.
24887 2002-06-25 Miles Bader <miles@gnu.org>
24889 * callint.c (Fcall_interactively): When checking to see if doprnt hit
24890 the end of callint_message, allow for a terminating '\0'.
24892 2002-06-24 Juanma Barranquero <lektu@terra.es>
24894 * w32select.c: Include composite.h.
24896 * w16select.c: Likewise.
24898 2002-06-24 Kenichi Handa <handa@etl.go.jp>
24900 * callproc.c (Fcall_process): If code detection is necessary,
24901 call detect_coding directly here.
24903 * coding.c (detect_eol): Preserve coding->cmp_data.
24905 * w16select.c (Fw16_get_clipboard_data):
24906 * w32fns.c (w32_to_x_font):
24907 * w32select.c (Fw32_get_clipboard_data):
24908 * xselect.c (selection_data_to_lisp_data):
24909 * xterm.c (XTread_socket): Disable composition handling.
24911 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
24913 * print.c (temp_output_buffer_setup): Kill all local variables.
24915 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
24917 * lread.c (Fread): Remove redundant and imprecise declaration.
24919 * xfns.c (check_x_display_info): Use check_x_frame.
24921 * .gdbinit (xprintsym): Use the new `xname' field.
24924 2002-06-22 Jason Rumney <jasonr@gnu.org>
24926 * w32fns.c (file_dialog_callback): New function.
24927 (Fx_file_dialog): Allow selecting directories as well as files.
24929 2002-06-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24931 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
24932 OpenBSD. Add support for mipseb-*-netbsd* machines.
24934 2002-06-17 Andrew Choi <akochoi@shaw.ca>
24936 * macterm.c (mac_scroll_area): Set foreground and backcolor to
24937 black and white before scrolling. Restore frame background and
24938 foreground color after scrolling.
24939 (do_window_update): Call XClearWindow before calling expose_frame.
24940 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
24941 FRAME_FOREGROUND_PIXEL of frame.
24943 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
24944 test Mac command key as <ALT> key.
24946 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
24948 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
24950 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
24951 Lookup keys in function-key-map immediately so that key-translation-map
24952 can be applied earlier.
24953 Remove function_key_possible and key_translation_possible, replaced
24954 by checking `keytran_start < t'.
24956 * .gdbinit (xsymbol): Use the new `xname' field.
24958 2002-06-17 Andrew Choi <akochoi@shaw.ca>
24960 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
24961 test Mac command key as <ALT> key.
24963 * mac.c (do_applescript): Call initialize_applescript if necessary
24964 when first called. Dispose of result_desc only when there is no error.
24965 (Fdo_applescript): Use %d format specifier instead of %ld.
24967 2002-06-16 Andrew Choi <akochoi@shaw.ca>
24969 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
24970 of FrontWindow for cases keyDown and autoKey.
24972 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
24973 Vdefault_fontset to Monaco with mac-roman coding.
24975 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
24976 init_process before and after inclusion of Carbon/Carbon.h, resp.
24978 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
24980 (add_font_name_table_entry): New function.
24981 (init_font_name_table): Use add_font_name_table_entry; add italic,
24982 bold, and bold-italic entries for truetype fonts.
24984 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
24986 (try_font_list) [MAC_OS]: If no font matches given registry, try
24987 fonts with any registry matching face_family.
24988 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
24990 * s/darwin.h: If autoconf detects the Ncurses library, define
24991 LIBS_TERMCAP to -lncurses to use it.
24993 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
24995 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
24997 2002-06-15 Richard M. Stallman <rms@gnu.org>
24999 * window.c (Fset_window_configuration): Explicitly preserve
25000 the point value that new_current_buffer had at the start.
25002 2002-06-14 Juanma Barranquero <lektu@terra.es>
25004 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
25007 2002-06-14 Kim F. Storm <storm@cua.dk>
25009 * insdel.c (insert_1_both, insert_from_string_1)
25010 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
25011 insert happened in the end_unchanged region. Otherwise, the
25012 redisplay may be confused and duplicate the last line in the
25013 buffer [seen after save-buffer when require-final-newline==t].
25015 2002-06-13 Jason Rumney <jasonr@gnu.org>
25017 * w32.c (init_environment): Remove EMACSLOCKDIR.
25018 (stat): Swap _S_IFDIR and _S_IFREG.
25020 2002-06-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25022 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
25023 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
25024 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
25025 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
25026 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
25027 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
25028 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
25029 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
25030 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
25031 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
25032 SELECTION_REQUEST_EVENT, selection_clear_event to
25033 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
25034 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
25035 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
25036 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
25037 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
25038 no_event to NO_EVENT.
25040 2002-06-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25042 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
25044 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
25046 * intervals.c (textget): Don't forget to `return'.
25047 (lookup_char_property): Use XCAR/XCDR.
25049 2002-06-12 Juanma Barranquero <lektu@terra.es>
25051 * xdisp.c (Fformat_mode_line): Fix typo.
25053 2002-06-12 Kim F. Storm <storm@cua.dk>
25055 * xdisp.c (Fformat_mode_line): New function.
25056 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
25057 (store_frame_title_char, store_frame_title): Use unconditionally.
25058 (init_xdisp): Defsubr Fformat_mode_line.
25059 Initialize frame_title_buf etc. unconditionally.
25061 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
25063 * keyboard.c (read_key_sequence):
25064 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
25065 things through those maps after downcasing events.
25066 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
25067 applies after function-key-map.
25068 Make sure that keytran can be done in the middle in the sequence.
25069 Be careful not to throw away events past the one we downcase.
25071 * lread.c (read_integer): Remove unused var `tem'.
25072 (read1): Fix int/Lisp_Object mixup.
25074 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
25076 2002-06-11 Richard M. Stallman <rms@gnu.org>
25078 * keyboard.c (readable_events): Ignore any number of
25079 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
25081 2002-06-09 Miles Bader <miles@gnu.org>
25083 * xfaces.c (Ftty_supports_face_attributes_p): New function.
25084 (parse_rgb_list, tty_lookup_color): New functions.
25085 (tty_defined_color): Use `tty_lookup_color' to do all the work.
25086 (color_distance, Fcolor_distance): New functions.
25087 (TTY_SAME_COLOR_THRESHOLD): New macro.
25088 (Qtty_color_standard_values): New variable.
25089 (syms_of_xfaces): Initialize new vars & functions.
25091 2002-06-08 Colin Walters <walters@verbum.org>
25093 * textprop.c (Vchar_property_alias_alist): New variable.
25094 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
25096 * intervals.c (lookup_char_property): New function for looking up
25097 overlay and text properties, created from textget.
25100 * intervals.h (lookup_char_property): Declare.
25101 (Vchar_property_alias_alist): Declare.
25103 * buffer.c (Foverlay_get): Use lookup_char_property.
25105 2002-06-07 Sam Steingold <sds@gnu.org>
25107 * xselect.c (lisp_data_to_selection_data): Fix last change:
25108 *data_ret is not a Lisp string, while unibyte_string is.
25110 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
25112 * xselect.c (lisp_data_to_selection_data): Fix last change:
25115 2002-06-07 Andreas Schwab <schwab@suse.de>
25117 * m/amdx86-64.h: New file.
25119 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
25121 * fns.c (Fstring_make_unibyte): Doc fix.
25123 * xselect.c (lisp_data_to_selection_data): If the requested type
25124 is STRING, call string_make_unibyte to encode the selected text
25127 * window.c (Fset_window_hscroll): Doc fix.
25129 2002-06-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25131 * fileio.c (choose_write_coding_system):
25132 Call select-safe-coding-system properly.
25134 2002-06-03 Richard M. Stallman <rms@gnu.org>
25136 * xdisp.c (message_with_string): Error if STRING is not a string.
25138 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
25140 * fileio.c (choose_write_coding_system): Pass FILE arg to
25141 Vselect_safe_coding_system_function.
25143 2002-06-03 Ken Raeburn <raeburn@gnu.org>
25145 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
25147 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
25149 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
25150 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
25151 * keymap.c (describe_command): Likewise.
25152 * minibuf.c (read_minibuf): Likewise.
25154 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
25155 Cast `current_column' return value to int.
25156 (back_to_previous_visible_line_start)
25157 (reseat_at_next_visible_line_start, next_element_from_buffer):
25158 Cast `indented_beyond_p' 3rd arg to float.
25160 * indent.c (last_known_column): Now a float.
25161 (current_column_1, position_indentation, current_column)
25162 (string_display_width): Return float.
25163 (Fcurrent_column): Cast `current_column' return value to int.
25164 (Fcurrent_indentation): Cast `position_indentation' retval to int.
25165 (indented_beyond_p): Third arg now a float.
25166 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
25168 * lisp.h (current_column): Now returns float.
25169 (indented_beyond_p): 3rd arg now a float.
25171 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
25173 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
25174 is Qcompound_text_with_extensions.
25176 * xselect.c (lisp_data_to_selection_data): Always set selection
25177 type as string if x_encode_text returns streingp non-NULL.
25179 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
25181 2002-05-30 Richard M. Stallman <rms@gnu.org>
25183 * window.c (Fset_window_configuration): Correct the handling
25184 of point in current buffer, to work with multiple windows.
25186 2002-05-29 Colin Walters <walters@verbum.org>
25188 * lread.c (Fread_from_string): Don't depend on order of evaluation
25189 for C function parameters.
25191 2002-05-28 Richard M. Stallman <rms@gnu.org>
25193 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
25194 way for blinked-off state and for a nonselected window.
25196 * window.c (window_scroll_pixel_based): Don't call Fbolp;
25197 instead, see if the new start pos is at beginning of line.
25199 * fileio.c (Fwrite_region): If START is a string, don't
25200 make any annotations.
25202 * eval.c (syms_of_eval): Doc fix.
25204 2002-05-28 Colin Walters <walters@debian.org>
25206 * emacs.c (USAGE1): Add --no-splash.
25207 (standard_args): Ditto.
25209 2002-05-28 Colin Walters <walters@gnu.org>
25211 * lread.c (readchar_count): New variable.
25212 (readchar): Increment it.
25213 (unreadchar): Decrement it.
25214 (read_multibyte): Decrement it.
25215 (Vread_with_symbol_positions): New variable.
25216 (Vread_symbol_positions_list): New variable.
25217 (read_internal_start): New function, created from Fread and
25218 Fread_from_string. Handle Vread_symbol_positions_list and
25219 Vread_with_symbol_positions.
25220 (readevalloop, Fread, Fread_from_string): Use it.
25221 (read1): Use readchar_count to add symbol positions to
25222 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
25223 (syms_of_lread): DEFVAR_LISP and initialize them.
25225 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
25226 (substitute_object_recurse, substitute_object_in_subtree)
25227 (substitute_in_interval): Prototype.
25228 (read_multibyte): Return c if it's less than zero.
25230 2002-05-28 Kim F. Storm <storm@cua.dk>
25232 * fileio.c (Fread_file_name_internal): Added brute-force
25233 speed up for using predicate file-directory-p.
25235 2002-05-28 Kim F. Storm <storm@cua.dk>
25237 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
25239 (syms_of_fileio): DEFVAR_LISP them.
25240 (read_file_name_cleanup): New unwind function.
25241 (Fread_file_name_internal): Only return completions satifying
25242 Vread_file_name_predicate. Temporarily unwind protect and rebind
25243 default-directory while checking completions against the predicate.
25244 (Fread_file_name): Added PREDICATE argument. Specbind it to
25245 Vread_file_name_predicate during completion.
25246 Call Vread_file_name_function to read the file name if non-nil.
25248 * lisp.h (Fread_file_name): Now has 6 args.
25250 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
25251 predicate for Fread_file_name when reading directory name.
25252 Supply Qnil for predicate in other calls to Fread_file_name.
25254 2002-05-26 Miles Bader <miles@gnu.org>
25256 * term.c (tty_capable_p): New function.
25257 * dispextern.h (tty_capable_p): New function declaration.
25258 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
25259 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
25261 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
25263 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
25264 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
25265 (Vwrite_region_annotate_functions): Docstring fix.
25267 2002-05-23 Kim F. Storm <storm@cua.dk>
25269 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
25270 phys_cursor's hpos is overwritten. This is still not completely
25271 correct, as it doesn't really make sense to use hpos at all to
25272 get the cursor glyph (as that is relative to the width of the
25273 characters on the line, which may have changed during the update).
25275 2002-05-22 Jason Rumney <jasonr@gnu.org>
25277 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
25279 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
25280 Use modified enumfont_t struct.
25282 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
25284 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
25285 Handle the `hbar' cursor type.
25286 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
25288 * w32fns.c (Qhbar): New variable.
25289 (x_specified_cursor_type): Use it.
25291 2002-05-21 Ken Raeburn <raeburn@gnu.org>
25293 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
25294 now, when the address is needed.
25296 2002-05-21 Colin Walters <walters@gnu.org>
25298 * Makefile.in (shortlisp): Add font-core.el.
25300 2002-05-20 Richard M. Stallman <rms@gnu.org>
25302 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
25304 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
25305 equivalent key bindings here.
25307 2002-05-20 Ken Raeburn <raeburn@gnu.org>
25309 Change symbol structure to contain a lisp object for the symbol
25311 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
25312 object field named "xname".
25313 (SYMBOL_NAME): New macro.
25314 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
25316 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
25317 (mark_object, gc_sweep): Use symbol xname field and XSTRING
25318 instead of name field.
25319 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
25320 SYMBOL_NAME instead of XSYMBOL and name field.
25321 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
25322 instead of XSYMBOL and name field.
25323 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
25324 and SYMBOL_NAME instead of XSYMBOL and name field.
25325 * coding.c (Fread_coding_system, code_convert_region1)
25326 (code_convert_string1, code_convert_string_norecord)
25327 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
25328 XSYMBOL and name field.
25329 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
25330 (Fmake_variable_buffer_local, Fmake_local_variable)
25331 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
25332 of XSYMBOL and name field.
25333 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
25334 XSYMBOL and name field.
25335 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
25336 instead of XSYMBOL and name field.
25337 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
25338 XSYMBOL and name field.
25339 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
25340 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
25341 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
25342 instead of XSYMBOL and name field.
25343 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
25344 (parse_modifiers, apply_modifiers, Fevent_convert_list)
25345 (parse_solitary_modifier, Fexecute_extended_command):
25346 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
25347 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
25348 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
25349 of XSYMBOL and name field.
25350 (describe_command, describe_translation): Use SYMBOL_NAME and
25351 assignment instead of XSYMBOL and name field and XSETSTRING.
25352 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
25353 instead of XSYMBOL and name field.
25354 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
25355 name field and XSETSTRING.
25356 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
25357 of XSYMBOL and name field.
25358 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
25359 assignment instead of XSYMBOL and name field and XSETSTRING.
25360 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
25361 XSTRING instead of XSYMBOL and name field.
25362 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
25363 and XSTRING instead of XSYMBOL and name field.
25364 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
25365 and XSTRING instead of XSYMBOL and name field.
25366 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
25367 XSTRING instead of XSYMBOL and name field.
25368 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
25369 of XSYMBOL and name field.
25370 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
25371 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
25373 2002-05-19 Ken Raeburn <raeburn@gnu.org>
25375 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
25376 and XCDR real rvalues in most configurations.
25378 * buffer.c (fix_overlays_in_range, fix_overlays_before):
25379 Don't take the address of the cdr part of a cons cell; instead, track
25380 the parent cell and call XSETCDR, or set the variable for the head
25381 of the list if we haven't started down the list yet.
25383 2002-05-19 Richard M. Stallman <rms@gnu.org>
25385 * doc.c (reread_doc_file): Don't ask for confirmation.
25387 2002-05-18 Jason Rumney <jasonr@gnu.org>
25389 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
25390 (xbm_load_image): Use it.
25392 (xbm_read_bitmap_data): Reverted to xfns.c version.
25393 From David Ponce <david@dponce.com>.
25395 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
25397 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
25400 2002-05-16 Juanma Barranquero <lektu@terra.es>
25402 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
25404 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
25406 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
25408 (read_char_minibuf_menu_prompt): Fix typo.
25410 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
25412 * eval.c (Fcommandp): Doc fix.
25414 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
25416 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
25417 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
25418 (Fset_keymap_parent): Gcpro a bit more.
25419 (access_keymap): Gcpro around meta_map call and around the main loop.
25420 (get_keyelt): Gcpro when following indirect references.
25421 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
25422 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
25423 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
25424 Remove useless ad-hoc remap code.
25426 2002-05-13 Richard M. Stallman <rms@gnu.org>
25428 * search.c (search_buffer): Give up boyer moore search if inverse
25429 translation change charset_base.
25431 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
25433 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
25434 characters is carried over from the previous block of text, adjust
25435 coding->produced to account for the extra character.
25437 2002-05-11 Andreas Schwab <schwab@suse.de>
25439 * coding.c (intersection): Keep the elements of the returned list
25440 in the same order as in the first list.
25442 2002-05-11 Kim F. Storm <storm@cua.dk>
25444 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
25445 only update cmm_size if realloc actually succeeds.
25446 Testing with initial size of 2 elements revealed that using
25447 realloc on GNU/Linux would cause a random trap in xmalloc
25448 later on, so I rewrote the code to use malloc/bcopy/free instead
25451 2002-05-10 Jason Rumney <jasonr@gnu.org>
25453 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
25455 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
25457 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
25458 parens, to ensure correct evaluation order.
25460 2002-05-10 Kim F. Storm <storm@cua.dk>
25462 * keymap.c (Vemulation_mode_map_alists): New variable.
25463 (syms_of_keymap): DEFVAR_LISP it.
25464 (current_minor_maps): Process keymap alists in that list before
25465 minor-mode-overriding-map-alist and minor-mode-map-alist.
25467 2002-05-09 Richard M. Stallman <rms@gnu.org>
25469 * search.c (Freplace_match): Doc fix.
25471 2002-05-09 Kim F. Storm <storm@cua.dk>
25473 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
25474 Enlarge cursor rectangle drawn around image with non-zero relief.
25476 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
25477 Enlarge cursor rectangle drawn around image with non-zero relief.
25479 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
25480 Enlarge cursor rectangle drawn around image with non-zero relief.
25482 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
25484 * xselect.c (lisp_data_to_selection_data): Don't set selection
25485 type if comes from the Lisp object's car. If the selection
25486 contains a pure ASCII text, always return QSTRING as its type.
25488 2002-05-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25490 * mac.c (mac-cut-function): Doc fix.
25492 2002-05-05 Richard M. Stallman <rms@gnu.org>
25494 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
25496 2002-05-04 Jason Rumney <jasonr@gnu.org>
25498 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
25499 for event-click-count.
25501 * process.c (init_process): Only add server subfeature if we can
25502 use non-blocking I/O.
25504 2002-05-04 Andrew Choi <akochoi@shaw.ca>
25506 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
25509 2002-05-03 Jason Rumney <jasonr@gnu.org>
25511 * process.c (Fmake_network_process): Only support server sockets
25512 when we can make them non-blocking.
25514 * s/ms-w32.h (HAVE_SELECT): Define.
25516 * w32.h (FILE_NDELAY): New flag.
25518 * w32.c (sys_getpeername, fcntl): New functions.
25519 (_sys_read_ahead): Temporarily block on non-blocking sockets.
25521 * w32proc.c: Include sys/file.h.
25523 2002-05-03 Colin Walters <walters@verbum.org>
25525 * callproc.c (Vgame_score_directory): Renamed to
25526 Vshared_game_score_directory.
25528 2002-04-30 Richard M. Stallman <rms@gnu.org>
25530 * s/gnu.h [emacs]: Include stdio.h.
25531 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
25533 * eval.c (do_autoload): Error if called while preparing to dump.
25535 * fns.c (Frequire): Error if need to load while preparing to dump.
25537 2002-04-28 Colin Walters <walters@verbum.org>
25539 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
25540 Default to "~/.emacs.d/games".
25542 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
25544 * lread.c (openp): Change arg exec_only to predicate.
25545 (build_load_history): Use XCAR/XCDR.
25546 (Flocate_file_internal): New fun.
25547 (syms_of_lread): Defsubr it.
25548 (Fload): Update call to openp.
25550 * lisp.h (openp): Update prototype.
25552 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
25553 * w32proc.c (sys_spawnve):
25554 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
25555 * w32.c (check_windows_init_file):
25556 * sound.c (Fplay_sound_internal):
25557 * process.c (Fstart_process):
25558 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
25559 * mac.c (run_mac_command):
25560 * emacs.c (init_cmdargs):
25561 * callproc.c (Fcall_process): Update call to openp.
25563 * textprop.c (remove_properties): Don't use XCAR without CONSP.
25565 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
25567 2002-04-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25569 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
25570 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
25572 2002-04-28 Richard M. Stallman <rms@gnu.org>
25574 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
25576 * eval.c (Fcommandp): New arg for_call_interactively.
25577 * lisp.h (Fcommandp): Declare new arg.
25579 2002-04-28 Jason Rumney <jasonr@gnu.org>
25581 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
25583 * w32.c (stat, fstat): Use file index information to generate
25584 inodes for directories where available.
25586 2002-04-26 Andrew Choi <akochoi@shaw.ca>
25588 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
25589 [HAVE_CARBON]: Include Mac object files.
25591 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
25592 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
25593 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
25594 MAC_OSX, and MAC_OS instead of macintosh.
25596 * editfns.c [MAC_OS8]: Include stdio.h.
25598 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
25600 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
25603 * process.c (QCfamily, QCfilte): Declare extern.
25604 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
25607 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
25609 * tparam.c [MAC_OSX]: Don't define BC and UP.
25611 * config.in [HAVE_CARBON]: Add.
25613 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
25614 Move here from mac/src and mac/inc.
25616 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
25618 2002-04-26 Gerd Moellmann <gerd@gnu.org>
25620 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
25621 Compute phys_cursor_width from the x position returned
25622 by x_draw_glyhs, which is cheaper.
25623 (x_display_and_set_cursor): Compute the buffer-local value
25624 of `cursor-in-non-selected-windows' only when needed.
25626 2002-04-25 Gerd Moellmann <gerd@gnu.org>
25628 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
25629 cursor on a stretch glyph has a width that depends on
25630 x_stretch_cursor_p.
25632 2002-04-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25634 * abbrev.c (abbrev-start-location): Doc fix.
25636 * indent.c (Fvertical_motion): Fix last change.
25638 2002-04-25 Gerd Moellmann <gerd@gnu.org>
25640 * indent.c (Fvertical_motion): Move to the start of the line
25641 containing PT before moving up or down.
25643 2002-04-24 Gerd Moellmann <gerd@gnu.org>
25645 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
25646 case of writing a whole row, more or less analogous to the case of
25647 writing only parts of a row.
25649 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
25652 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
25654 2002-04-23 Colin Walters <walters@verbum.org>
25656 * buffer.c (syms_of_buffer): Doc fix.
25658 2002-04-23 Gerd Moellmann <gerd@gnu.org>
25660 * xterm.c (notice_overwritten_cursor): Handle the special case
25661 of the cursor being in the first blank non-text line at the
25664 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
25665 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
25666 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
25667 bar cursors only, to make phys_cursor_width contain what its name
25669 (notice_overwritten_cursor): Consider the cursor image erased if
25670 the output area intersects the cursor image in y-direction.
25672 2002-04-23 Simon Marshall <simon@gnu.org>
25674 * xfns.c (x_set_mouse_color): Change default for cross_cursor
25677 2002-04-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25679 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
25681 2002-04-22 Kim F. Storm <storm@cua.dk>
25683 * textprop.c (remove_properties): Fixed trap for malformed plist.
25685 2002-04-22 Richard M. Stallman <rms@gnu.org>
25687 * cmds.c (Fend_of_line): Handle intangible text in mid line.
25689 * window.c (make_window): Initialize height_fixed_p,
25690 last_cursor_off_p, and p->cursor_off_p slots.
25692 2002-04-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25694 * fns.c (use-dialog-box): Doc fix.
25696 2002-04-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25698 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
25699 variables `row', `i' and `area'.
25700 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
25703 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
25705 * xfaces.c (clear_font_table): Don't free the default font of
25706 a frame even if it's on another display.
25707 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
25710 2002-04-19 Juanma Barranquero <lektu@terra.es>
25712 * indent.c (Fmove_to_column): Remove unused local variable
25713 `next_boundary_byte'.
25714 (current_column_1): Likewise.
25716 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
25718 * msdos.c (Qhbar): New variable.
25719 (syms_of_msdos): Intern and staticpro it.
25720 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
25723 2002-04-19 Dave Lambert <dlambert@acm.org>
25725 Theses change implement an underscore-like (`hbar') cursor.
25727 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
25729 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
25730 Handle the `hbar' cursor type.
25731 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
25733 * xfns.c (Qhbar): New variable.
25734 (syms_of_xfns): Intern and staticpro it.
25735 (x_specified_cursor_type): Handle `hbar' cursor.
25737 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
25740 2002-04-18 Richard M. Stallman <rms@gnu.org>
25742 * textprop.c (remove_properties): New arg LIST allows scanning
25743 either a list or a plist.
25744 (interval_has_some_properties_list): New function, like
25745 interval_has_some_properties using list instead of plist.
25746 All callers changed.
25747 (Fremove_list_of_text_properties): New function.
25748 (syms_of_textprop): Defsubr it.
25750 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
25752 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
25754 2002-04-17 Juanma Barranquero <lektu@terra.es>
25756 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
25758 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
25760 * window.c (coordinates_in_window): Don't report on margin area
25761 if its width is zero.
25763 2002-04-16 Jason Rumney <jasonr@gnu.org>
25765 * w32fns.c (Fx_file_dialog): Decode file name before using.
25767 * w32term.c (construct_drag_n_drop): Likewise.
25769 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
25771 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
25772 store load-history in pure space.
25774 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
25776 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
25778 * xterm.c (Qlatin_1, Qutf_8): New vars.
25779 (syms_of_xterm): Initialize them.
25780 (XTread_socket): Eliminate incorrect optimization that tried to avoid
25781 decoding the output of X*LookupString.
25782 Always use latin-1 to decode the output of XLookupString.
25783 Try Xutf8LookupString if XmbLookupString failed.
25785 * region-cache.c (new_region_cache): Use BEG.
25787 2002-04-16 Gerd Moellmann <gerd@gnu.org>
25789 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
25790 configuration files.
25791 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
25794 2002-04-15 Andreas Schwab <schwab@suse.de>
25796 * config.in: Regenerated using autoheader.
25798 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
25799 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
25800 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
25801 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
25802 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
25803 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
25804 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
25805 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
25806 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
25807 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
25808 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
25809 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
25810 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
25811 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
25812 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
25813 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
25814 STACK_DIRECTION, now set by autoconf.
25816 2002-04-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25818 * dispnew.c (marginal_area_string): Sort arguments.
25820 * dispextern.h (marginal_area_string): Add prototype.
25822 2002-04-13 Richard M. Stallman <rms@gnu.org>
25824 * fileio.c (Finsert_file_contents):
25825 Don't call temp_output_buffer_setup--do just part, by hand.
25827 * coding.c (run_pre_post_conversion_on_str):
25828 Don't call temp_output_buffer_setup--do just part, by hand.
25830 * keyboard.c (command_loop_1): Don't call start_hourglass
25831 or cancel_hourglass when executing a macro.
25833 * marker.c (count_markers): New function.
25835 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
25836 grow without limit. Move recently used elements to the front.
25838 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
25840 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
25842 2002-04-12 Gerd Moellmann <gerd@gnu.org>
25844 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
25845 rows marginal areas.
25846 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
25847 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
25849 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
25851 2002-04-12 Dave Love <fx@gnu.org>
25853 * dispnew.c (marginal_area_string): New.
25855 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
25856 (Qleft_margin, Qright_margin): Declare.
25857 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
25859 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
25860 note_mode_line_highlight and extended.
25862 * keyboard.c (Qleft_margin, Qright_margin): Declare.
25863 (make_lispy_event): Deal with mouse events in margins.
25865 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
25867 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
25869 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
25870 than deactivating the mark if tmm is set to `lambda'.
25871 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
25872 Use a single event for HELP_EVENT.
25873 (Fexecute_extended_command): Save last_point_position.
25875 2002-04-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25877 * lisp.h (Fpropertize): Add prototype.
25879 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
25881 2002-04-10 Colin Walters <walters@verbum.org>
25883 * config.in: Add HAVE_SHARED_GAME_DIR.
25885 * callproc.c (Vgame_score_directory): New variable.
25886 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
25888 2002-04-10 Richard M. Stallman <rms@gnu.org>
25890 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
25892 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
25894 * minibuf.c (read_minibuf): Use empty_string.
25895 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
25896 Short-circuit the search as soon as it "failed".
25897 (Fall_completions): Allow lambda forms and lists of strings for alist.
25898 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
25899 when require_match is nil.
25900 (Ftest_completion): Rename from `test_completion' and export to elisp.
25901 Call the predicate also when alist is a list.
25902 Obey Vcompletion_regexp_list.
25903 (do_completion, Fminibuffer_complete_and_exit): Use it.
25904 (Fassoc_string): Rename from `assoc_for_completion'.
25905 Allow list of strings as well and export to elisp.
25907 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
25909 * puresize.h (BASE_PURESIZE): Increase to 900KB.
25911 2002-04-08 Juanma Barranquero <lektu@terra.es>
25913 * w32.c (sys_accept): Don't hide variable `s'.
25915 2002-04-05 Gerd Moellmann <gerd@gnu.org>
25917 * callint.c (Fcall_interactively): Use INTEGERP instead of
25918 NUMBERP for checking Vhistory_length.
25920 2002-04-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25922 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
25923 Doc fix to reflect it.
25925 2002-04-04 Richard M. Stallman <rms@gnu.org>
25927 * xdisp.c (display_mode_element): New arg RISKY.
25928 Disregard text props found or specified within a variable
25929 that isn't marked risky-local-variable.
25930 (Qrisky_local_variable): New variable.
25931 (syms_of_xdisp): Init and staticpro it.
25933 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
25935 * undo.c (record_point): New fun.
25936 (record_delete, record_insert): Use it.
25938 2002-04-03 Juanma Barranquero <lektu@terra.es>
25940 * doc.c (Fdocumentation): Add missing parentheses.
25941 (Fdocumentation_property): Likewise.
25943 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
25945 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
25946 data is 0, just return nil.
25948 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
25950 * msdos.c (syms_of_msdos): Fix last change with
25951 mouse_autoselect_window.
25953 2002-04-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25955 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
25956 mouse_autoselect_window.
25958 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
25960 * keyboard.c (make_lispy_event): Handle unknown keysyms together
25961 with system-specific keysyms. Use it also for unknown function keys.
25963 * doc.c (reread_doc_file): Return whether reload was attempted.
25964 (Fdocumentation, Fdocumentation_property): Don't try to reload
25965 if the doc is 0 and only ask once.
25967 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
25969 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
25971 * keyboard.c (read_char): If the event was Qselect_window,
25972 restore timer_idleness_start_time to its previous value.
25974 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
25976 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
25978 * region-cache.c (new_region_cache): Use BEG.
25980 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
25981 Use BEG and BEG_BYTE.
25983 * doc.c (get_doc_string): Return nil if the location is wrong.
25984 (reread_doc_file): New fun.
25985 (Fdocumentation, Fdocumentation_property):
25986 Call it if get_doc_string fails.
25987 (Fsnarf_documentation): Make it work for a dumped Emacs.
25989 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
25990 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
25992 * charset.c (Fstring): Allow 0 arguments.
25994 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
25996 * process.c (DATAGRAM_CONN_P, list_processes_1)
25997 (Fprocess_datagram_address, Fset_process_datagram_address)
25998 (Fset_network_process_options, server_accept_connection):
25999 Fix some int/Lisp_Object confusions (thank you union types).
26001 2002-04-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26003 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
26005 * w32term.c: Likewise.
26006 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
26008 * keyboard.c (Qselect_window): New symbol.
26009 (head_table): Use it.
26010 (keys_of_keyboard): Bound select-window event to handle-select-window.
26011 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
26013 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
26014 (last_window): New variable.
26015 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
26016 (note_mouse_movement): Remove reimplemented code in #if 0.
26017 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
26020 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
26022 2002-03-31 Gerd Moellmann <gerd@gnu.org>
26024 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
26027 2002-03-30 Richard M. Stallman <rms@gnu.org>
26029 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
26030 loop whenever it stops making progress.
26032 * widget.c (set_frame_size): Don't call change_frame_size.
26034 2002-03-30 Gerd Moellmann <gerd@gnu.org>
26036 * dispnew.c (direct_output_for_insert):
26037 Call mark_window_display_accurate.
26039 2002-03-29 Jason Rumney <jasonr@gnu.org>
26041 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
26043 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
26045 * Makefile.in (lread.o): Depend on coding.h.
26047 * lread.c (openp, Fload): Encode the file name before passing it
26048 to `stat', `access', and `emacs_open'.
26049 (openp): GCPRO the encoded file name. Don't recompute Lisp
26050 strings unnecessarily.
26052 2002-03-29 Kim F. Storm <storm@cua.dk>
26054 * fns.c (Flax_plist_put): Doc fix.
26056 2002-03-28 Miles Bader <miles@gnu.org>
26058 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
26060 2002-03-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26062 * process.c (set-network-process-options): Add usage.
26063 (make-network-process): Doc fix.
26065 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
26067 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
26069 2002-03-26 Richard M. Stallman <rms@gnu.org>
26071 * fns.c (Fsubstring_no_properties): New function.
26072 (Flax_plist_get, Flax_plist_put): New functions.
26073 (syms_of_fns): defsubr them.
26075 * xdisp.c (update_menu_bar): Test only update_mode_lines;
26076 don't test or alter w->update_mode_line.
26078 * window.c (Fdisplay_buffer): Doc fix.
26080 2002-03-24 Richard M. Stallman <rms@gnu.org>
26082 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
26084 2002-03-24 Gerd Moellmann <gerd@gnu.org>
26086 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
26087 (Fdefmacro): Handle `(declare ...)'.
26088 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
26089 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
26091 2002-03-24 Jason Rumney <jasonr@gnu.org>
26093 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
26094 (xbm_file_p): Add prototypes.
26095 (xbm_format, xbm_image_p): Sync with xfns.c.
26096 (reflect_byte): New function.
26097 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
26098 (xbm_load_image): Create bitmaps with a depth of 1.
26099 (init_xfns): Enable XBM images.
26101 2002-03-23 Jason Rumney <jasonr@gnu.org>
26103 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
26104 correctly. Do not pass up_modifier to keyboard buffer.
26106 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
26108 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
26110 * Makefile.in (bootstrapclean): New target.
26111 (bootstrap-temacs, bootstrap-doc): Remove.
26112 (bootstrap-emacs): Use a bog-standard `temacs'.
26113 Don't bother to build a DOC file.
26115 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
26117 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
26118 in temacs even if !CANNOT_DUMP.
26119 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
26121 * alloc.c (check_pure_size): Only output a warning.
26123 2002-03-22 Jason Rumney <jasonr@gnu.org>
26125 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
26128 * w32term.c (zv_bits): Declare as short, for word alignment.
26129 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
26130 (syms_of_w32term): Define x-use-underline-position-properties.
26132 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
26133 (clear_image_cache): Block input, fix logic, clear matrices in
26134 all frames that share this cache.
26136 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
26138 * emacs.c (main): Update the Copyright year in the blurb printed
26139 by "emacs --version".
26141 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
26143 * xterm.c (XTread_socket): If XK_ISO_Lock and
26144 XK_ISO_Last_Group_Lock are defined, handle keysyms between
26145 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
26147 2002-03-21 Kim F. Storm <storm@cua.dk>
26149 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
26150 menu-bar bindings in keymap and local-map properties _are_ used.
26151 But try keymap property first in accordance with 2002-01-03 patch.
26152 Added comment describing why this is not always reliable.
26153 (tool_bar_items): Ditto for tool-bar.
26155 2002-03-21 Jason Rumney <jasonr@gnu.org>
26157 * w32fns.c (x_clear_image_1): Disable color table code.
26159 2002-03-21 Kim F. Storm <storm@cua.dk>
26161 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
26162 removed the wrong version of the DEFUN macro; fixed it.
26164 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
26165 Fmember rather than Fmemq).
26166 (Fprovide): Check that subfeatures is a list.
26168 * process.c (QCfeature, QCdatagram): Removed variables.
26169 (QCtype, Qdatagram): New variables.
26170 (network_process_featurep): Removed function.
26171 (Fmake_network_process): Removed :feature check.
26172 Use :type 'datagram instead of :datagram t to create a datagram
26173 socket. This allows us to add other connection types (e.g. raw
26174 sockets) later in a consistent manner.
26175 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
26176 supported subfeatures for feature make-network-process.
26177 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
26178 Intern and staticpro QCtype and Qdatagram.
26179 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
26181 * xfns.c (QCtype): Remove duplicate declaration and
26182 initialization (is now declared in process.c).
26184 * w32fns.c (QCtype): Remove duplicate declaration and
26185 initialization (is now declared in process.c).
26187 2002-03-21 Richard M. Stallman <rms@gnu.org>
26189 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
26190 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
26191 when jumping to `fail' to avoid undoing reg changes in the
26192 last iteration of the loop.
26193 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
26195 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
26196 Depend on process.h.
26198 2002-03-20 Jason Rumney <jasonr@gnu.org>
26200 Most of the following changes are still conditional on HAVE_IMAGES
26201 which is not set by default on Windows.
26203 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
26205 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
26206 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
26207 (four_corners_best, x_clear_image_1, x_clear_image)
26208 (x_alloc_image_color, postprocess_image)
26209 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
26210 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
26211 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
26213 * w32gui.h (struct XImage): Define.
26215 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
26216 extract mouse co-ordinates.
26218 2002-03-20 Jason Rumney <jasonr@gnu.org>
26220 * w32.c (init_winsock): Dynamically load new server and UDP
26222 (socket_to_fd): New function.
26223 (sys_socket): Use it.
26224 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
26225 (sys_recvfrom, sys_sendto): New wrapper functions.
26227 * process.c (QCfamily, QCfilter): Remove duplicate declaration
26228 and initialization.
26230 * makefile.w32-in (LIBS): Remove $(WSOCK32).
26232 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
26234 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
26235 Don't use "sun" as a variable, it's a predefined constant on Sun
26238 2002-03-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26240 * bytecode.c (Fbyte_code): Revert last change.
26242 2002-03-19 Kim F. Storm <storm@cua.dk>
26244 * makefile.w32-in (LIBS): Add $(WSOCK32).
26245 From David Ponce <dponce@voila.fr>.
26247 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26249 * process.c (wait_reading_process_input): Move variables `pname'
26250 and `pnamelen' down where they are used.
26252 * bytecode.c (Fbyte_code): Discard unused computed value to
26253 prevent gcc warning.
26255 * lisp.h (Fplist_member): Add prototype.
26257 2002-03-18 Kim F. Storm <storm@cua.dk>
26259 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
26260 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
26262 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
26263 Remove explicit GNU_LINUX settings for datagram support.
26265 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26267 * process.c (Fmake_network_process): Remove unused variable `sa'.
26268 Doc fix. Add usage:.
26269 (set_socket_options): Remove unused variables `optnum' and `opttype'.
26271 2002-03-17 Richard M. Stallman <rms@gnu.org>
26273 * xdisp.c (cursor_type_changed): New variable.
26274 (redisplay_internal): Redisplay all windows if cursor_type_changed.
26275 Clear it when clearing windows_or_buffers_changed.
26276 (try_cursor_movement, redisplay_window, try_window_id)
26277 (try_window_reusing_current_matrix): Test cursor_type_changed
26278 along with windows_or_buffers_changed.
26280 * window.h (cursor_type_changed): New variable.
26282 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
26283 not update_mode_lines, and always set it to 1.
26285 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
26286 if no frames needed redrawing.
26288 2002-03-17 Kim F. Storm <storm@cua.dk>
26290 The following changes add support for network server processes,
26291 datagram connections, and local (unix) sockets.
26293 * process.h (struct Lisp_Process): New member log.
26294 Doc fix: Member command used to indicate stopped network process.
26295 Doc fix: Member childp contains plist for network process.
26296 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
26298 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
26299 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
26300 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
26302 (NETCONN1_P): New macro.
26303 (DATAGRAM_SOCKETS): New conditional symbol.
26304 (datagram_address): New array.
26305 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
26306 (status_message): Use concat3.
26307 (Fprocess_status): Add `listen' status to doc string. Return
26308 `stop' for a stopped network process.
26309 (Fset_process_buffer): Update contact plist for network process.
26310 (Fset_process_filter): Ditto. Don't enable input for stopped
26311 network processes. Server must listen, even if filter is t.
26312 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
26314 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
26315 (Fprocess_contact): Added KEY argument. Handle datagrams.
26316 (list_processes_1): Optionally show only processes with the query
26317 on exit flag set. Dynamically adjust column widths. Omit tty
26318 column if not needed. Report stopped network processes. Identify
26319 server and datagram network processes.
26320 (Flist_processes): New optional arg `query-only'.
26321 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
26322 (conv_lisp_to_sockaddr, set_socket_options)
26323 (network_process_featurep, unwind_request_sigio): New helper
26325 (Fprocess_datagram_address, Fset_process_datagram_address):
26326 (Fset_network_process_options): New lisp functions.
26327 (Fopen_network_stream): Removed. Now defined in simple.el.
26328 (Fmake_network_process): New lisp function. Code is based on
26329 previous Fopen_network_stream, but heavily reworked with new
26330 property list based argument list, support for datagrams, server
26331 processes, and local sockets in addition to old client-only
26333 (server_accept_connection): New function.
26334 (wait_reading_process_input): Use it to handle incoming connects.
26335 Do not enable input on a new connection if process is stopped.
26336 (read_process_output): Handle datagram sockets. Use 2k buffer for
26338 (send_process): Handle datagram sockets.
26339 (Fstop_process, Fcontinue_process): Apply to network processes. A
26340 stopped network process is indicated by setting command field to t.
26341 (Fprocess_send_eof): No-op if datagram connection.
26342 (Fstatus_notify): Don't read input for a stream server socket or a
26343 stopped network process.
26344 (init_process): Initialize datagram_address array.
26345 (syms_of_process): Intern and staticpro new variables, defsubr new
26348 2002-03-16 Jason Rumney <jasonr@gnu.org>
26350 * w32fns.c (w32_to_all_x_charsets): Return correct type in
26353 2002-03-16 Richard M. Stallman <rms@gnu.org>
26355 * xdisp.c (redisplay_internal, redisplay_windows):
26356 Use list_of_error to call internal_condition_case_1.
26357 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
26358 so as to catch all errors with no possibility of debugger redisplay.
26359 (list_of_error): New variable.
26360 (syms_of_xdisp): Init and staticpro it.
26362 * print.c (print_object): Delete `\ ' from printed rep of frame.
26364 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
26366 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
26367 until its implementation is fixed.
26369 2002-03-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26371 * xfns.c (png_load): Remove unused variable `gamma_str'.
26373 2002-03-14 Richard M. Stallman <rms@gnu.org>
26375 * xfns.c (x_real_positions): Handle failure in XQueryTree.
26377 2002-03-14 Miles Bader <miles@gnu.org>
26379 * intervals.c (adjust_for_invis_intang): New function.
26380 (set_point_both): Use `adjust_for_invis_intang' to do most of the
26381 work for dealing with invisible+intangible regions. Do so before
26382 and after both forward and backward movements, to handle both
26383 front-sticky and rear-sticky cases.
26384 * textprop.c (text_property_stickiness): Function moved here from
26386 * intervals.h (text_property_stickiness): New declaration.
26387 * editfns.c (char_property_eq): Function removed.
26388 (text_property_stickiness): Function moved to `textprop.c'.
26390 2002-03-13 Jason Rumney <jasonr@gnu.org>
26392 * config.in: Add STRFTIME_NO_POSIX2.
26394 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
26395 and %OX when underlying strftime does not.
26397 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
26399 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
26400 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
26401 line) to avoid annoying flicker.
26402 (xm_scroll_callback): Get rid of the now unnecessary kludge.
26403 (XTread_socket): Mark it static.
26405 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
26407 2002-03-13 Kim F. Storm <storm@cua.dk>
26409 * puresize.h (BASE_PURESIZE): Increase to 775000.
26411 2002-03-12 Juanma Barranquero <lektu@terra.es>
26413 * editfns.c (syms_of_editfns): Fix typo.
26415 2002-03-12 Gerd Moellmann <gerd@gnu.org>
26417 * xsmfns.c: Include stdio.h because termhooks.h needs it.
26418 Include termopt.h for interrupt_input.
26420 2002-03-11 Andreas Schwab <schwab@suse.de>
26422 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
26424 2002-03-11 Gerd Moellmann <gerd@gnu.org>
26426 * xterm.c (note_mouse_movement): Put code for
26427 x_autoselect_window_p in #if 0.
26429 * lread.c (Fload): Don't assume that message_with_string uses the
26430 string it is given like a C string.
26432 2002-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
26434 * xterm.h (x_session_check_input, x_session_initialize): Declare.
26436 * xterm.c (XTread_socket): Add call to x_session_check_input and
26437 x_session_have_connection.
26438 (x_initialize): Add call to x_session_initialize.
26440 * termhooks.h (enum event_kind): Add save_session_event.
26442 * keyboard.c: Add Emacs event save_session_event.
26444 * emacs.c (main): Add call to syms_of_xsmfns.
26446 * lisp.h (syms_of_xsmfns): Declare extern.
26448 * config.in: Add HAVE_X_SM.
26450 * Makefile.in (LIBXT): Add -lSM -lICE
26451 if HAVE_X_SM and not USE_X_TOOLKIT.
26452 (XOBJ): New file xsmfns.c added.
26454 * xsmfns.c: New file for X session management.
26456 2002-03-09 Jason Rumney <jasonr@gnu.org>
26458 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
26459 read-only when setting modified time.
26461 2002-03-08 Gerd Moellmann <gerd@gnu.org>
26463 * xdisp.c (move_it_vertically_backward): At the end of the function,
26464 when moving forward by lines, treat terminal frames specially.
26466 * keyboard.c (echo_char): Make sure to add a separator between
26467 keys even if echo_dash hasn't been called.
26469 * xdisp.c: Use new string macros.
26470 (update_echo_area): Pass number of bytes to message3 instead of
26472 (set_message_1): Don't access a string's size_byte directly.
26473 (decode_mode_spec_coding): Use number of bytes of eoltype string
26474 instead number of chars.
26476 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
26478 2002-03-08 Juanma Barranquero <lektu@terra.es>
26480 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
26483 2002-03-06 Jason Rumney <jasonr@gnu.org>
26485 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
26487 2002-03-06 Gerd Moellmann <gerd@gnu.org>
26489 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
26490 (cancel_echoing, echo_length, echo_truncate): Changed to
26491 work with new kboard definition.
26492 (echo_now): Use message3_nolog instead of message2_nolog.
26494 * alloc.c (mark_kboards): Mark echo_string.
26496 * keyboard.h (ECHOBUFSIZE): Removed.
26497 (struct kboard): Member echoptr removed, member echobuf renamed
26500 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
26501 message3 instead of message2 to display the message using STRING's
26504 2002-03-05 Andreas Schwab <schwab@suse.de>
26506 * xdisp.c (hscroll_margin): Change to EMACS_INT.
26508 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
26510 * frame.c (default-frame-alist): Explain that setting it doesn't
26511 affect existing frames.
26513 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
26515 * indent.c (skip_invisible): Fix my brain fart.
26517 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
26519 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
26521 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
26522 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
26523 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
26524 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
26525 and variables to use EMACS_INT instead of just int.
26527 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
26529 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
26531 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
26532 environment, pass it down with corrected value.
26534 2002-03-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26536 * lread.c (read_filtered_event): Do not call start_hourglass
26539 2002-03-04 Juanma Barranquero <lektu@terra.es>
26541 * w32term.c (x_display_and_set_cursor): Fix typo.
26543 2002-03-03 Richard M. Stallman <rms@gnu.org>
26545 * fileio.c (Fmake_temp_name): Doc fix.
26547 2002-03-03 Gary Wong <gtw@gnu.org>
26549 * termcap.c [!emacs]: Replace ospeed for building standalone
26550 libtermcap, for binary compatibility.
26552 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
26554 2002-03-03 Richard M. Stallman <rms@gnu.org>
26556 * xrdb.c (file_p): Rename arg `path' to `filename'.
26558 * abbrev.c (Fexpand_abbrev): Increment plist as use count
26559 only if it is an integer.
26561 * xfns.c (png_load): Set screen_gamma based on f->gamma.
26562 If png_get_sRGB gives an answer, call png_set_gamma
26563 using the default image gamma value.
26565 * lread.c (read1): When reading from a file, default string to
26566 multibyte only if it has some multibyte characters.
26568 * print.c (print_object): Output multibyte chars 128...255
26569 using \x even if ! print_escape_multibyte.
26571 * xdisp.c (display_mode_element): Move the places where
26572 bytepos, charpos, this, and lisp_string are set.
26573 Use lisp_string to set bytepos.
26575 * xdisp.c (redisplay_internal):
26576 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
26578 * xdisp.c (display_mode_element): Merge properties specified with
26579 :propertize onto those that come with the string.
26581 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
26583 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
26584 automatic-hscrolling. Users changed.
26585 <hscroll-margin>: Renamed from automatic-hscroll-margin.
26587 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
26589 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
26591 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
26593 2002-03-02 Kim F. Storm <storm@cua.dk>
26595 * window.c (Fminibuffer_selected_window): New function.
26596 (syms_of_window): Defsubr it.
26598 2002-03-01 Kim F. Storm <storm@cua.dk>
26600 * window.h (struct window): New member phys_cursor_width.
26602 * window.c (make_window, replace_window): Init phys_cursor_width.
26604 * xterm.c (x_display_and_set_cursor): Blink box cursor using
26605 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
26607 * w32term.c (x_display_and_set_cursor): Blink box cursor using
26608 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
26610 * lisp.h (GCPRO6): New macro.
26612 * process.c (Fopen_network_stream): Use GCPRO6.
26614 2002-03-01 Kim F. Storm <storm@cua.dk>
26616 * process.c (Qconnect, Qfailed): New variables.
26617 (syms_of_process): Intern and staticpro them.
26618 (Fprocess_status): Document connect and failed return values.
26619 [NON_BLOCKING_CONNECT]: New conditional.
26620 (connect_wait_mask, num_pending_connects): New variables.
26621 (status_message): Convert Qfailed status.
26622 (Fopen_network_stream): Added support for non-blocking connect.
26623 New optional args: filter, sentinel, non_blocking. Doc updated.
26624 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
26625 (deactivate_process): Handle pending non-blocking connect.
26626 (wait_reading_process_input): Poll for status of non-blocking
26627 connects. Exec sentinel directly when connect succeeds.
26628 (status_notify): Don't read process output if not yet connected.
26630 2002-02-28 Kim F. Storm <storm@cua.dk>
26632 * window.c (minibuf_selected_window): Renamed from
26633 Vminibuf_selected_window. Users changed.
26634 (syms_of_window): Staticpro it.
26636 2002-02-26 Kim F. Storm <storm@cua.dk>
26638 The following changes add a new Vminibuf_selected_window variable
26639 which is similar to Vminibuf_scroll_window, but which is only set
26640 on entry to the minibuffer (from a non-minibuffer window):
26642 * window.c (Vminibuf_selected_window): New variable.
26643 (struct save_window_data): New member minibuf_selected_window.
26644 (Fset_window_configuration): Restore Vminibuf_selected_window.
26645 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
26646 Set minibuf_scroll_window member to nil if minibuf_level is 0.
26647 (compare_window_configurations): Compare minibuf_selected_window.
26649 * window.h (Vminibuf_selected_window): Declare extern.
26651 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
26652 entry to minibuffer or on entry from a non-minibuffer window.
26654 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
26655 Vminibuf_selected_window instead of Vminibuf_scroll_window.
26657 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
26658 instead of Vminibuf_scroll_window when deciding in which window
26659 the region should be highlighted. Consequently, the region remains
26660 highlighteded even when a completion buffer is also displayed.
26662 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
26664 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
26666 * xselect.c (Qcompound_text_with_extensions): Renamed from
26667 Qcompound_text_no_extensions.
26668 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
26670 2002-02-26 Juanma Barranquero <lektu@terra.es>
26672 * w32proc.c (syms_of_ntproc): Doc fix.
26674 2002-02-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26676 * intervals.h: Include "dispextern.h" unconditionally.
26678 2002-02-24 Jason Rumney <jasonr@gnu.org>
26680 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
26681 and disp-table.elc.
26682 (lisp): Add emacs-lisp/backquote.elc.
26684 2002-02-24 Kim F. Storm <storm@cua.dk>
26686 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
26687 The validation of the event type was too strict as it didn't
26688 allow string events; buffer names are used in bindings for
26689 menu-bar-select-buffer (see `menu-bar-update-buffers').
26691 2002-02-23 Kim F. Storm <storm@cua.dk>
26693 The following changes rework my patch of 2002-02-06 which
26694 added command remapping by entering the commands directly into
26695 the keymaps. Now, command remapping uses an explicit `remap'
26696 prefix in the keymaps, i.e. [remap COMMAND].
26698 * keymap.c (Qremap, remap_command_vector): New variables.
26699 (is_command_symbol): Remove function.
26700 (Fdefine_key): No longer accept a symbol for KEY.
26701 Added validation of [remap COMMAND] argument for KEY.
26702 The DEF is no longer required to be a symbol when remapping a command.
26703 (Fremap_command): New function to remap command through keymaps.
26704 (Flookup_key): Perform command remapping initiated by
26705 Fremap_command directly for speed.
26706 (Fkey_binding): Use Fremap_command for command remapping.
26707 (where_is_internal): Handle new command remapping representation.
26708 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
26709 staticpro them. Defsubr Fremap_command.
26711 * keymap.h (Fremap_command): Declare extern.
26712 (is_command_symbol): Remove extern.
26714 * keyboard.c (command_loop_1): Use Fremap_command for command
26715 remapping; now try command remapping for all symbols.
26717 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
26719 * coding.h (run_pre_post_conversion_on_str): Add prototype.
26721 2002-02-23 Jason Rumney <jasonr@gnu.org>
26723 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
26724 on the string before encoding it.
26725 (Fw32_get_clipboard_data): Run post-read-conversion on the string
26728 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
26730 2002-02-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26732 * w32term.c (enter_timestamp): Remove unused static variable to
26735 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
26737 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
26739 * w16select.c (Fw16_get_clipboard_data): Fix last change.
26741 * xselect.c (selection_data_to_lisp_data): Fix last change.
26743 2002-02-22 Jason Rumney <jasonr@gnu.org>
26745 * w32term.h (struct w32_output): New member menu_command_in_progress.
26747 * w32menu.c (menubar_selection_callback): Free the menu and
26748 clear the menu_command_in_progress flag.
26750 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
26751 (menu_free_timer): New variable.
26752 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
26753 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
26754 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
26755 menu command is in progress.
26756 <WM_COMMAND>: Set the menu_command_in_progress flag.
26757 Kill any menu_free_timer that is running.
26759 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
26760 Call ExtTextOutA rather than ExtTextOut.
26762 2002-02-22 Eli Zaretskii <eliz@gnu.org>
26764 * puresize.h (BASE_PURESIZE): Increase to 755000.
26766 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
26768 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
26769 on the string before encoding it.
26770 (Fw16_get_clipboard_data): Run post-read-conversion on the string
26773 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
26775 Support for ICCCM Extended Segments in X selections:
26777 * xselect.c <Qcompound_text_no_extensions>: New variable.
26778 (syms_of_xselect): Intern and staticpro it.
26779 (selection_data_to_lisp_data): Run post-read-conversion on decoded
26781 (lisp_data_to_selection_data): If next-selection-coding-system is
26782 compound-text-no-extensions, set the type of selection to be
26785 * xterm.h (x_encode_text): Update prototype.
26787 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
26788 callers changed. If SELECTIONP is non-zero, run the
26789 pre-write-conversion function before encoding the selection text.
26791 2002-02-21 Kim F. Storm <storm@cua.dk>
26793 * frame.c (syms_of_frame): Change mouse-highlight default to t.
26795 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
26796 Correct composing of language-change event.
26798 2002-02-20 Kim F. Storm <storm@cua.dk>
26800 * keyboard.c (menu_bar_items): Don't include keymap or local-map
26801 bindings at PT when building menu (the menu is not updated often
26802 enough for this to work reliable).
26803 (tool_bar_items): Likewise.
26804 (current_active_maps): Removed unused (and buggy) function.
26806 2002-02-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26808 * xfns.c (gif_load): Use correct width and height for GIF images.
26810 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
26812 * floatfns.c (Fatan): Accept an optional second arg and call
26813 atan2 if passed 2 args.
26815 2002-02-18 Jason Rumney <jasonr@gnu.org>
26817 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
26819 2002-02-17 Jason Rumney <jasonr@gnu.org>
26821 * w32term.c (x_autoselect_window_p): New variable.
26822 (syms_of_w32term): DEFVAR_BOOL and initialize it.
26823 (note_mouse_movement): Use it.
26825 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
26827 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
26829 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
26831 (syms_of_w32fns): Intern and staticpro them.
26832 (x_frame_parms) <"fullscreen">: New parameter.
26833 (x_fullscreen_move, x_set_fullscreen): New functions.
26834 (x_set_frame_parameters): Support Qfullscreen.
26835 (x_real_positions): Save x/y_pixels_diff frame params.
26836 (x_figure_window_size): Support full-screen frames.
26837 (Fx_create_frame): Default the fullscreen parameter.
26839 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
26840 (x_fullscreen_adjust): New functions.
26841 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
26842 fullscreen. Call x_check_fullscreen_move, and set the
26843 want_fullscreen member of output_data.w32
26844 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
26846 * w32term.h: New enum for FULLSCREEN_* constants.
26847 (struct w32_output): New members want_fullscreen, x_pixels_diff,
26848 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
26849 (x-fullscreen-adjust): New prototype.
26851 2002-02-17 Kim F. Storm <storm@cua.dk>
26853 * frame.c (Vmouse_highlight): New variable.
26854 (syms_of_frame): DEFVAR_LISP it.
26856 * frame.h (Vmouse_highlight): Declare extern.
26858 * xterm.h (struct x_display_info): Add mouse_face_hidden.
26860 * xterm.c (disable_mouse_highlight): Removed variable.
26861 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
26862 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
26863 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
26864 and on after keyboard input.
26865 (x_term_init): Initialize mouse_face_hidden.
26867 * msdos.h (struct display_info): Add mouse_face_hidden.
26869 * msdos.c (disable_mouse_highlight): Removed variable.
26870 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
26871 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
26872 (internal_terminal_init): Initialize mouse_face_hidden.
26873 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
26874 and on after keyboard input.
26876 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
26878 * w32term.c (disable_mouse_highlight): Removed variable.
26879 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
26880 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
26881 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
26882 and on after keyboard input.
26883 (w32_initialize_display_info): Initialize mouse_face_hidden.
26885 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
26887 * msdos.c (last_mouse_window): New variable.
26888 (dos_rawgetc): Fix last change--if the mouse is in the same window
26889 as recorded in last_mouse_window, don't select this window.
26891 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
26893 * msdos.c (x_autoselect_window_p): New variable.
26894 (syms_of_msdos): Defvar it.
26895 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
26896 which the last mouse movement occured, unless it is already selected.
26898 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
26900 (syms_of_xdisp): DEVFAR them.
26901 (hscroll_window_tree): Use automatic_hscroll_margin and
26902 Vautomatic_hscroll_step to compute the amount of window scrolling.
26904 2002-02-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26906 * xterm.c (x-autoselect-window): New variable.
26907 (note_mouse_movement): Use it.
26909 * keyboard.c: Do not include "systime.h" twice.
26911 2002-02-15 Andreas Schwab <schwab@suse.de>
26913 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
26915 * alloc.c (NSTATICS): Increase to 1280.
26917 2002-02-15 Kai Gro
\e,A_
\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
26919 * alloc.c (NSTATICS): Bump to 1026.
26921 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
26922 (Vx_super_keysym): New variables.
26923 (syms_of_xterm): DEFVAR_LISP them.
26924 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
26925 variables to determine which keys to use for the various modifiers.
26927 2002-02-13 Kim F. Storm <storm@cua.dk>
26929 * window.c (Vmode_line_in_non_selected_windows): Removed.
26930 (mode_line_in_non_selected_windows): New variable.
26931 (syms_of_window): DEFVAR_BOOL it.
26933 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
26934 Use mode_line_in_non_selected_windows.
26935 (mode_line_in_non_selected_windows): Declare extern.
26936 (Vmode_line_in_non_selected_windows): Removed extern.
26938 2002-02-13 Richard M. Stallman <rms@gnu.org>
26940 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
26941 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
26942 (Fclear_this_command_keys): Doc fixes.
26944 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
26945 (update_face_from_frame_parameter): Increment face_change_count
26946 and windows_or_buffers_changed to force redisplay using changed faces.
26948 * xdisp.c (QCpropertize): New variable.
26949 (mode_line_proptrans_alist): New variable.
26950 (display_mode_element): New arg PROPS; all calls changed.
26951 Implement this, for strings.
26952 Handle literal output of strings by sharing the
26953 main-line code for strings, using local var `literal'.
26954 Handle :propertize feature.
26955 (syms_of_xdisp): Initialze and staticpro QCpropertize and
26956 mode_line_proptrans_alist.
26958 2002-02-11 Kim F. Storm <storm@cua.dk>
26960 * window.c (Vmode_line_in_non_selected_windows): New variable.
26961 (syms_of_window): DEFVAR_LISP it.
26963 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
26964 (CURRENT_MODE_LINE_FACE_ID): Use it.
26965 (Vmode_line_in_non_selected_windows): Declare extern.
26967 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
26968 to get mode line face.
26970 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
26972 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
26973 variables; cus-start.el doesn't need them anymore.
26975 2002-02-09 Kim F. Storm <storm@cua.dk>
26977 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
26978 reduction. This fixes a display problem where stray newlines were
26979 inserted in the window (corrected by C-l). Clarified code (IMHO).
26981 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
26983 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
26985 * xdisp.c (display_mode_lines): Fix last change.
26987 2002-02-09 Jason Rumney <jasonr@gnu.org>
26989 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
26991 (w32_load_system_font): Prevent Cleartype fonts from loading.
26992 (Fx_show_tip): Ensure tip frames are above other topmost windows.
26994 2002-02-09 Kim F. Storm <storm@cua.dk>
26996 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
26997 (CURRENT_MODE_LINE_HEIGHT): Use it.
26998 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
27000 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
27001 (pos_visible_p, handle_face_prop): Likewise.
27002 (display_mode_lines): Likewise, but for the real selected window.
27003 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
27005 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
27006 in non-selected windows.
27007 (realize_basic_faces): Realize it.
27008 (syms_of_term): Intern and staticpro it.
27010 2002-02-08 Kim F. Storm <storm@cua.dk>
27012 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
27013 Changed mail addresses to emacs-devel@gnu.org.
27015 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
27017 * fileio.c (Fsubstitute_in_file_name): If the file name includes
27018 ~user, and there's no such user, don't discard everything before ~user.
27020 * floatfns.c (Fround): Doc fix.
27022 2002-02-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27024 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
27026 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
27028 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
27030 2002-02-07 Kim F. Storm <storm@cua.dk>
27032 * keymap.c (where_is_internal): Only check whether definition is
27033 remapped if it fulfills is_command_symbol.
27035 2002-02-07 Andreas Schwab <schwab@suse.de>
27037 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
27039 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
27041 2002-02-06 Kim F. Storm <storm@cua.dk>
27043 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
27044 defining command remapping. Doc updated.
27045 (Flookup_key): Remap command through keymap if KEY is a symbol.
27046 (is_command_symbol): New function.
27047 (Fkey_binding): Use it. New optional argument NO-REMAP.
27048 Doc updated. Callers changed. Perform command remapping via
27049 recursive call unless that arg is non-nil.
27050 (where_is_internal): New argument no_remap. Callers changed.
27051 Call recursively to find original key bindings for a remapped
27052 comand unless that arg is non-nil.
27053 (Fwhere_is_internal): New optional argument NO-REMAP.
27054 Doc updated. Callers changed. Pass arg to where_is_internal.
27056 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
27057 (is_command_symbol): Add prototype.
27059 * keyboard.c (Vthis_original_command): New variable.
27060 (syms_of_keyboard): DEFVAR_LISP it.
27061 (command_loop_1): Set it, and perform command remapping.
27063 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27065 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
27067 2002-02-06 Jason Rumney <jasonr@gnu.org>
27069 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
27071 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
27073 * charset.c (get_charset_id): Use if-else instead of ?:.
27075 2002-02-06 Richard M. Stallman <rms@gnu.org>
27077 * filelock.c (S_ISLNK): Define if not defined.
27079 2002-02-03 Richard M. Stallman <rms@gnu.org>
27081 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
27083 * lread.c (read1): Redesign strategy for force_multibyte and
27084 force_singlebyte. Now is_multibyte records whether read_buffer
27085 is multibyte. Encountering any multibyte character makes it so.
27087 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
27089 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
27090 with the same sequence, map that sequence to f10 rather than f0.
27092 2002-02-03 Andreas Schwab <schwab@suse.de>
27094 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
27095 latter never being defined on GNU/Linux.
27097 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
27099 * xfaces.c (realize_default_face): Don't set the weight and slant of
27100 the default face to Qnormal, unless these attributes are unspecified.
27102 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27104 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
27105 Call cancel_hourglass unconditionally.
27107 * eval.c (Fsignal): Remove duplicated declaration of
27108 the variable `display_hourglass_p'.
27110 2002-01-31 Richard M. Stallman <rms@gnu.org>
27112 * editfns.c (region_limit): Nicer error message.
27114 * coding.c (decode_composition_emacs_mule):
27115 Give up if NCOMPONENT gets too large to index `component'.
27117 * callint.c (check_mark): New arg to specify clearer error message.
27120 2002-01-27 Richard M. Stallman <rms@gnu.org>
27122 * minibuf.c (Fcompleting_read): Doc fix.
27124 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27126 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
27127 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
27130 2002-01-26 Richard M. Stallman <rms@gnu.org>
27132 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
27134 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
27135 and scroll_up_aggressively.
27137 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27139 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
27141 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
27143 * textprop.c (Fnext_property_change, Fnext_single_property_change)
27144 (Fprevious_property_change, Fprevious_single_property_change):
27145 Stay within the narrowed-buffer boundaries.
27147 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
27149 * term.c (Ftty_display_color_cells): New function.
27150 (syms_of_term): Defsubr it.
27151 (Ftty_display_color_cells, Ftty_display_color_p): Change the
27152 argument name to DISPLAY. Doc fix.
27154 * dispextern.h: Add prototype for set_tty_color_mode and
27157 2002-01-24 Jason Rumney <jasonr@gnu.org>
27159 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
27160 If region left to draw is not what was expected, mark the frame as
27163 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
27164 Combine the regions returned by BeginPaint and GetUpdateRect.
27166 2002-01-23 Jason Rumney <jasonr@gnu.org>
27168 * w32term.c (x_update_window_begin): Only hide caret if
27169 w32_use_visible_system_caret is set.
27170 (x_update_window_end): Only show caret if
27171 w32_use_visible_system_caret is set.
27172 (syms_of_w32term): Handle SystemParametersInfo call failing.
27174 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
27176 2002-01-22 Richard M. Stallman <rms@gnu.org>
27178 * unexelf.c (unexec): Define n so as to cause compilation error
27179 for the code where people have often written n instead of nn.
27181 * .gdbinit (hookpost-run): Defined.
27183 2002-01-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
27185 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
27187 2002-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
27189 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
27190 if fullscreen is being set.
27192 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27194 * minibuf.c (Fminibuffer_contents)
27195 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
27196 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
27198 2002-01-21 Richard M. Stallman <rms@gnu.org>
27200 * window.c (check_frame_size): Fix minimum height calculation.
27202 2002-01-20 Ken Raeburn <raeburn@gnu.org>
27204 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
27205 height before comparison.
27206 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
27208 2002-01-20 Jason Rumney <jasonr@gnu.org>
27210 * w32term.c (w32_system_caret_width): Remove.
27211 (w32_use_visible_system_caret): New user flag.
27212 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
27213 Windows reports a screen reader running.
27214 (x_update_window_begin): Hide the system caret.
27215 (x_update_window_end): Show the system caret.
27216 (x_display_and_set_cursor): Don't draw a cursor when
27217 w32_use_visible_system_caret is set. Do not adjust width.
27219 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
27220 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
27221 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
27222 the user requests it. Use system default width when creating.
27223 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
27225 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
27226 New window messages.
27228 2002-01-20 Richard M. Stallman <rms@gnu.org>
27230 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
27232 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27234 * doprnt.c (doprnt1): Fix typos in error call.
27236 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
27238 * unexelf.c (unexec) [__sgi]: Support the .got sections.
27240 2002-01-20 Jason Rumney <jasonr@gnu.org>
27242 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
27243 that Windows returns. If a double check fails, try to guess how
27244 ExtTextOut is going to act.
27246 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
27247 in place of stricmp.
27248 (w32_list_synthesized_fonts): Removed.
27249 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
27250 (struct enumfont_t): New element; list.
27251 (enum_font_cb2): List all style and charset variations of a font.
27252 (Fw32_select_font): New optional argument; include_proportional.
27253 Exclude vertical fonts. Exclude proportional fonts unless
27254 include_proportional is non-nil.
27255 (w32_enable_synthesized_fonts): Change to a boolean.
27256 (Fw32_send_sys_command): Doc fix.
27258 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27260 * dispnew.c (update_frame): Move the variable `tem' to the block
27263 2002-01-19 Jason Rumney <jasonr@gnu.org>
27265 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
27266 call to face-set-after-frame-default.
27268 2002-01-18 Richard M. Stallman <rms@gnu.org>
27270 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
27271 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
27273 2002-01-17 Richard M. Stallman <rms@gnu.org>
27275 * window.c (enlarge_window): When exceeding size of parent,
27276 directly delete all the siblings instead of trying to resize it.
27278 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27280 * term.c (set_tty_color_mode): Remove unused variable `tem'.
27282 2002-01-16 Henrik Enberg <henrik@enberg.org>
27284 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
27286 2002-01-16 Kim F. Storm <storm@cua.dk>
27288 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
27289 is invisible. This can happen if cursor is on top line of a
27290 window, and we switch to a buffer with a header line.
27292 * w32term.c (x_erase_phys_cursor): Ditto.
27294 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27296 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
27297 `dont_resize' only when used.
27299 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
27301 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
27303 * xdisp.c (display_mode_element): When computing charpos, depend
27304 on multibyteness of elt, not the text in field.
27306 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27308 * buffer.c (Fkill_all_local_variables):
27309 Increment `update_mode_lines' only once.
27311 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27313 * lisp.h (adjust_after_replace_noundo)
27314 (Fupdate_coding_systems_internal): Add prototypes.
27316 * sound.c (Fplay_sound): Initialize header_size also for :data case.
27318 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
27320 Support for the --color command-line argument and tty-color-mode
27323 * term.c (tty_default_color_capabilities, tty_setup_colors)
27324 (set_tty_color_mode): New functions.
27325 (term_init): Call tty_default_color_capabilities.
27326 (Qtty_color_mode_alist): New variable.
27327 (syms_of_term): Intern and staticpro it.
27329 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
27331 (do_switch_frame): For termcap frames, switch the tty
27332 color mode as specified by the frame's parameters.
27333 (Qtty_color_mode): New variable.
27334 (syms_of_frame): Intern and staticpro it.
27336 * emacs.c (USAGE2): Add the --color option.
27337 (standard_args): Ditto.
27339 2002-01-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
27341 * xterm.h (struct x_output): New members want_fullscreen,
27342 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
27343 y_pixels_outer_diff.
27344 New enum for FULLSCREEN_* constants.
27345 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
27347 (x_fullscreen_adjust): Add prototype.
27349 * emacs.c (USAGE2): Add the new full-screen arguments.
27350 (standard_args): Ditto.
27352 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
27354 (syms_of_xfns): Intern and staticpro them.
27355 (x_frame_parms) <"fullscreen">: New parameter.
27356 (x_fullscreen_move, x_set_fullscreen): New functions.
27357 (x_set_frame_parameters): Support for Qfullscreen.
27358 (x_real_positions): More accurate computation of the frame position.
27359 (x_figure_window_size): Support full-screen frames.
27360 (Fx_create_frame): Default the fullscreen parameter.
27362 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
27363 (XTread_socket) <Expose>: Call x_check_fullscreen.
27364 <ConfigureNotify>: Don't resize to fullscreen.
27365 Call x_check_fullscreen_move, and set the want_fullscreen member of
27368 2002-01-13 Jason Rumney <jasonr@gnu.org>
27370 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
27371 for mice with more than 3 buttons.
27373 * w32term.c (parse_button): New parameter xbutton. Callers changed.
27374 (w32_read_socket): Handle new "XBUTTON" messages.
27376 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
27377 (syms_of_w32fns): DEFVAR_BOOL it.
27378 (w32_wnd_proc): Handle new "XBUTTON" messages.
27380 2002-01-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27382 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
27384 2002-01-13 Andreas Schwab <schwab@suse.de>
27386 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
27388 2002-01-12 Andreas Schwab <schwab@suse.de>
27390 * .gdbinit (xbuffer): Remove address operator since data is now a
27393 2002-01-11 Richard M. Stallman <rms@gnu.org>
27395 * insdel.c (adjust_after_replace_noundo): New function.
27397 * coding.c (code_convert_region): Don't copy old text if undo disabled.
27399 2002-01-09 Jason Rumney <jasonr@gnu.org>
27401 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
27402 when checking for multiple frames.
27404 2002-01-08 Richard M. Stallman <rms@gnu.org>
27406 * window.c (delete_window): Rewrite the code for changing the
27407 selected window to handle the case where WINDOW is not a leaf.
27409 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
27411 * process.c (send_process): Set src_multibyte to 1 after the call
27412 top setup_coding_system, not before the call.
27414 2002-01-07 Jason Rumney <jasonr@gnu.org>
27416 * xmenu.c (set_frame_menubar, xmenu_show):
27417 (xdialog_show): Initialize wv->help to Qnil.
27419 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
27420 (w32_dialog_show): Initialize wv->help to Qnil.
27422 2002-01-06 Jason Rumney <jasonr@gnu.org>
27424 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
27426 * w32menu.c (w32_menu_display_help): Revert last change.
27428 * xmenu.c (menu_highlight_callback): Revert last change.
27430 2002-01-06 Andreas Schwab <schwab@suse.de>
27432 * insdel.c (make_gap_larger): Make sure buffer size does not
27433 overflow range of int.
27435 2002-01-05 Jason Rumney <jasonr@gnu.org>
27437 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
27440 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
27442 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
27443 to the left or to the right of the pointer, put it against
27444 the left screen edge.
27445 (x_frame_parms): Add missing braces around initializer.
27447 * w32term.c (x_setup_relief_colors): Don't compute an image's
27448 background color if it doesn't have a Pixmap.
27449 (notice_overwritten_cursor): Don't depend on
27450 output_cursor and updated_area. Compare pixel coordinates with
27451 window's cursor pixel coordinates.
27452 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
27453 Call notice_overwritten_cursor with new arg list.
27454 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
27456 (x_draw_image_relief): Use predefined macro instead of
27457 constant when the value of `tool_bar_button_relief' is negative.
27459 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
27461 2002-01-04 Richard M. Stallman <rms@gnu.org>
27463 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
27465 2002-01-03 Richard M. Stallman <rms@gnu.org>
27467 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
27468 (Fkey_binding): Try the `keymap' property map first.
27469 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
27470 minor mode bindings.
27472 2002-01-03 Kim F. Storm <storm@cua.dk>
27474 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
27476 2002-01-02 Richard M. Stallman <rms@gnu.org>
27478 * keyboard.c (read_key_sequence): Handle the keymap property
27479 before minor mode maps.
27481 * editfns.c (Fformat): Update thissize from field_width
27482 based on the actual width, in the string case.
27484 2002-01-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27486 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
27487 when used as truth value to prevent gcc warnings.
27489 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
27490 * w32proc.c: Include <config.h>.
27492 2002-01-01 Andreas Schwab <schwab@suse.de>
27494 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
27495 not EMACS_INT, to make them compatible with DEFVAR_INT.
27496 * lisp.h (max_specpdl_size): Adjust declaration.
27498 2002-01-01 Richard M. Stallman <rms@gnu.org>
27500 * print.c (print_object): Test print_escape_nonascii only for
27502 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
27503 when outputting to a multibyte buffer.
27505 2001-12-29 Richard M. Stallman <rms@gnu.org>
27507 * print.c (print_object): In multibyte string, use hex escapes.
27508 Use octal only for unibyte strings.
27509 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
27511 * lread.c (read_escape): New arg BYTEREP for reporting whether
27512 escape forces unibyte or multibyte.
27513 (read1): When reading a string, take note of that info.
27515 2001-12-29 Ken Raeburn <raeburn@gnu.org>
27517 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
27518 comparison to test lisp value returned by Fget.
27520 2001-12-29 Richard M. Stallman <rms@gnu.org>
27522 * lisp.h (max_specpdl_size): Add declaration.
27524 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
27526 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
27527 Handle modifier bits. Correct typo in error message.
27529 2001-12-28 Richard M. Stallman <rms@gnu.org>
27531 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
27532 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
27533 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27534 Update calls to Fdefine_abbrev.
27535 (write_abbrev): Update for changed data format.
27536 Don't list "system" abbrevs.
27537 (Fexpand_abbrev): Update use count with new data format.
27538 (describe_abbrev): Update for changed data format.
27539 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
27541 * config.in (HAVE_MBSINIT): Add #undef.
27543 * strftime.c (mbsinit): Define as no-op if not available.
27545 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
27546 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
27548 * keymap.c (Flookup_key): Error message if key has wrong data type.
27549 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
27550 (exclude_key): New variable.
27552 2001-12-28 Gerd Moellmann <gerd@gnu.org>
27554 * xterm.c (x_setup_relief_colors): Don't compute an image's
27555 background color if it doesn't have a Pixmap.
27557 * xterm.c (notice_overwritten_cursor): Don't depend on
27558 output_cursor and updated_area. Compare pixel coordinates with
27559 window's cursor pixel coordinates.
27560 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
27561 Call notice_overwritten_cursor with new arg list.
27562 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
27565 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
27566 height of the cursor line to the amount to scroll.
27568 2001-12-27 Richard M. Stallman <rms@gnu.org>
27570 * intervals.c (set_point_both): The position after an invisible,
27571 intangible character is not an acceptable stopping point.
27573 2001-12-27 Ken Raeburn <raeburn@gnu.org>
27575 * window.c (enlarge_window): In new preserve_before code, convert
27576 CURBEG from lisp object to integer before doing arithmetic.
27578 2001-12-27 Richard M. Stallman <rms@gnu.org>
27580 * bytecode.c (Fbyte_code): Undo previous change.
27582 2001-12-26 Kim F. Storm <storm@cua.dk>
27584 * keyboard.c (record_char): Ignore duplicate help-echo events only
27585 separated by mouse-movement. When tracking mouse, only record
27586 first and last mouse-movement event in same window.
27587 Don't record mouse-movement events in keyboard macros.
27589 2001-12-25 Richard M. Stallman <rms@gnu.org>
27591 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
27592 (Fenlarge_window): New arg PRESERVE_BEFORE.
27594 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
27595 instead of Fstring_as_unibyte.
27597 2001-12-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27599 The following changes remove mocklisp support:
27601 * mocklisp.h, mocklisp.c: Files removed.
27603 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
27604 `Qmocklisp' and `Qmocklisp_arguments'.
27605 Remove prototype of syms_of_mocklisp.
27607 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
27609 * callint.c: Do not include mocklisp.h.
27610 (Fcall_interactively): Do not test for mocklisp case.
27612 * eval.c: Remove variables `Qmocklisp_arguments',
27613 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
27614 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
27615 Do not test for mocklisp case.
27616 (Fwhile): Remove unused variable `tem'.
27617 (syms_of_eval): Remove variable `moclisp-arguments'.
27619 * data.c (wrong_type_argument): Remove mocklisp case.
27621 * doc.c (Fdocumentation): Remove mocklisp case.
27623 * emacs.c (main): Do not call syms_of_mocklisp.
27625 2001-12-21 Richard M. Stallman <rms@gnu.org>
27627 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
27628 to the left or to the right of the pointer, put it against
27629 the left screen edge.
27631 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
27633 * Makefile.in (distclean): Remove .gdbinit if we are building
27634 outside the source tree.
27636 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
27638 * w32.c (emacs_root_dir): New function.
27640 * msdos.c (emacs_root_dir): New function.
27642 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
27643 of the current drive as the fallback for default_directory.
27645 * dired.c (file_name_completion): Run the elements of
27646 completion-ignored-extensions through ENCODE_FILE.
27648 * lisp.h (scmp): Remove prototype, since it's now a static
27649 function private to dired.c.
27651 2001-12-18 Richard M. Stallman <rms@gnu.org>
27653 * dired.c (scmp): Function moved from minibuf.c.
27654 Delete multibyte handling--used only on encoded strings.
27656 * minibuf.c (scmp): Function moved to dired.c.
27658 * fns.c (merge): Add QUIT call.
27660 2001-12-18 Dave Love <fx@gnu.org>
27662 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
27663 language/georgian.el.
27665 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
27667 * Makefile.in (lisp, shortlisp): Synchronize with changes to
27668 lisp/Makefile.in:DONTCOMPILE.
27670 2001-12-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27672 * xdisp.c (window_box_height): Do not return negative values.
27673 From Gerd Moellmann <gerd@gnu.org>.
27675 * keyboard.c (head_table): Add missing braces around initializer.
27677 * term.c (keys): Likewise.
27679 * xfns.c (x_frame_parms, visual_classes): Likewise.
27681 2001-12-17 Sam Steingold <sds@gnu.org>
27683 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
27684 patch (COMPOSING_P, not COMPOSING).
27686 2001-12-17 Richard M. Stallman <rms@gnu.org>
27688 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
27690 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
27691 before calling decode_coding.
27693 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
27695 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
27696 instead of only for COMPOSITION_DISABLED.
27698 2001-12-16 Richard M. Stallman <rms@gnu.org>
27700 * alloc.c (pure_alloc): After overflow, allocate just a small block.
27702 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
27704 * buffer.h (struct buffer): New field `display_error_modiff'.
27705 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
27707 * window.c (Frecenter): Clear display_error_modiff field.
27709 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
27710 Call redisplay_window, but not if display_error_modiff field says no.
27711 (redisplay_window_error): New function.
27712 (displayed_buffer): New variable.
27713 (redisplay_internal, redisplay_windows): Call the new functions
27714 instead of redisplay_window directly.
27716 2001-12-15 Richard M. Stallman <rms@gnu.org>
27718 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
27720 2001-12-14 Andrew Innes <andrewi@gnu.org>
27722 * makefile.w32-in (EMACSLOADPATH): Define.
27723 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
27724 (bootstrap-temacs): Remove dependency on bootstrap-clean.
27726 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
27728 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
27729 parameter have a numeric value all the time.
27731 * w32fns.c (x_report_frame_params): Likewise.
27733 2001-12-12 Richard M. Stallman <rms@gnu.org>
27735 * fileio.c (Fwrite_region): Doc fix.
27737 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
27738 (redisplay_internal): Call clear_image_cache only for window terminals.
27740 2001-12-12 Gerd Moellmann <gerd@gnu.org>
27742 * xdisp.c (move_it_vertically_backward): Change heuristic
27743 for the case that we didn't move far enough initially.
27745 * window.c (Frecenter): Simplify computation in the case of window
27746 system frames and ARG < 0; use window_box_height.
27748 2001-12-11 Richard M. Stallman <rms@gnu.org>
27750 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
27751 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
27753 2001-12-11 Andrew Innes <andrewi@gnu.org>
27755 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
27758 2001-12-11 Richard M. Stallman <rms@gnu.org>
27760 * m/hp800.h: Split the __hpux conditional into the parts
27761 that are right for GNU/Linux too and the parts that are not.
27762 Use the former if GNU_LINUX.
27763 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
27765 * s/gnu-linux.h (GNU_LINUX): Defined.
27767 2001-12-11 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27769 * macros.c, msdos.c, w16select.c: Change doc-string comments to
27770 `new style' [w/`doc:' keyword].
27772 2001-12-10 Jason Rumney <jasonr@gnu.org>
27774 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
27777 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27779 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
27782 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
27784 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
27786 * s/hpux10.h (srand48): Don't undefine.
27788 2001-12-09 Jason Rumney <jasonr@gnu.org>
27790 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
27791 Add comment to explain where the struct came from.
27792 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
27793 (add_menu_item): Process pop-up menus first to avoid memory leak.
27794 (add_menu_item, w32_menu_display_help): Use `help' field as
27796 (w32_free_submenu_strings): Only free owner-drawn strings.
27798 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27800 * COPYING: Moved back.
27802 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
27803 Add parentheses around && within ||.
27805 * indent.c (compute_motion): Likewise.
27807 * intervals.c (merge_properties_sticky): Likewise.
27809 * coding.c (setup_coding_system, shrink_encoding_region)
27810 (Fdecode_sjis_char): Likewise.
27812 2001-12-07 Andreas Schwab <schwab@suse.de>
27814 * xdisp.c (display_mode_element): Don't read past end of string if
27817 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
27820 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
27821 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
27822 type changed to Lisp_Object.
27823 (syms_of_data): DEFVAR_LISP them.
27825 2001-12-07 Richard M. Stallman <rms@gnu.org>
27827 * callproc.c (init_callproc): Set Vdata_directory based on the source
27828 location whenever Emacs was run uninstalled.
27830 2001-12-06 Paul Eggert <eggert@twinsun.com>
27832 * config.in (HAVE_WORKING_VFORK): New #undefs.
27833 * process.c (create_process):
27834 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
27835 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
27836 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
27837 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
27838 * m/intel386.h (HAVE_VFORK): Likewise.
27839 * m/mips-siemens.h (HAVE_VFORK): Likewise.
27840 * m/mips.h (HAVE_VFORK): Likewise.
27841 * s/freebsd.h (vfork): Remove #define.
27842 * s/lynxos.h (HAVE_VFORK): Remove #undef.
27843 * s/usg5-4-2.h: Fix comment about vfork.
27845 2001-12-06 Richard M. Stallman <rms@gnu.org>
27847 * s/hpux10.h (random): Add undef.
27848 (HAVE_RANDOM): Define it just once.
27850 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
27852 * eval.c: Undo last change: the standard syntax is not wanted.
27854 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
27856 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
27857 scroll bars of the frame before deleting the frame itself. If the
27858 frame has a widget, delete the frame with XtDestroyWidget, and do
27859 not call XDestroyWindow before that.
27861 2001-12-06 Kim F. Storm <storm@cua.dk>
27863 * xfns.c (x_report_frame_params): Return actual fringe widths.
27865 * w32fns.c (x_report_frame_params): Return actual fringe widths.
27867 2001-12-05 Andrew Innes <andrewi@gnu.org>
27869 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
27872 * insdel.c (make_gap_larger): New function.
27873 (make_gap_smaller): New function.
27874 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
27875 Call make_gap_smaller if arg is negative.
27877 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
27879 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
27880 Pass a dummy argument when calling interrupt_signal.
27881 (parse_menu_item): Mark disabled items before checking for empty def.
27882 (read_char_minibuf_menu_prompt): Make safety more visible.
27883 (read_key_sequence): Add a `first_unbound' variable.
27884 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
27885 unbound prefix as soon as we can detect it.
27887 * doc.c (Fsnarf_documentation): Add prototype.
27888 (get_doc_string): Handle negative arguments.
27889 (Fdocumentation): Use AREF and ASIZE.
27890 Move the calls to get_doc_string to a single place.
27891 Don't confuse an interactive-spec for a docstring reference.
27892 (Fdocumentation_property): Take advantage of the fact that
27893 get_doc_string now ignores the sign of the docstring position.
27895 * eval.c: Use standard syntax for usage in docstrings.
27897 2001-12-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27899 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
27901 2001-12-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27903 * xterm.c (x_draw_image_relief): Use predefined macro instead of
27904 constant when the value of `tool_bar_button_relief' is negative.
27906 2001-12-02 Richard M. Stallman <rms@gnu.org>
27908 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
27909 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
27911 * fileio.c (read_non_regular): Delete Fsignal call.
27913 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
27915 * lisp.h (run_hook_list_with_args): Undo last change.
27917 2001-12-01 Gerd Moellmann <gerd@gnu.org>
27919 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
27921 2001-12-01 Jason Rumney <jasonr@gnu.org>
27923 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
27925 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
27926 [!WM_MOUSELEAVE]: Define.
27928 * w32menu.c (current_popup_menu, get_menu_item_info):
27929 (set_menu_item_info): New vars.
27930 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
27931 (w32_menu_show): Set current_popup_menu.
27932 (add_menu_item): Allocate new strings for owner-drawn menu items
27934 Use owner-draw for disabled menu items again.
27935 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
27936 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
27938 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
27939 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
27940 <WM_EXITMENULOOP>: Free menu strings.
27941 <WM_MOUSELEAVE>: Stop tracking mouse.
27942 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
27944 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
27947 2001-12-01 Kim F. Storm <storm@cua.dk>
27949 The following changes add left-fringe and right-fringe
27950 frame parameters to adjust fringe widths, or remove one or
27953 * frame.h (struct frame): Remove trunc_area_pixel_width and
27954 trunc_area_cols fields.
27955 (Qleft_fringe, Qright_fringe): Declare.
27956 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
27958 * frame.c (Qleft_fringe, Qright_fringe): New vars.
27959 (syms_of_frame): Initialize them.
27961 * window.c (coordinates_in_window): Handle separate left and right
27964 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
27965 and fringe_cols fields.
27966 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
27967 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
27968 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
27969 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
27970 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
27971 (x_compute_fringe_widths): Add prototype.
27973 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
27974 fill fringe evenly with small dashes.
27975 (x_draw_fringe_bitmap): Clear background if necessary. Align and
27976 clip the new ZV bitmap to avoid jitter between rows.
27977 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
27978 background. Don't draw fringe bitmaps if fringe width is zero.
27979 (x_compute_fringe_widths): New function.
27980 (x_new_font, x_set_window_size_1): Use it.
27982 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
27983 (x_set_frame_parameters): Process `font' parameter before other
27984 parameters as fringe widths depend on it.
27985 (x_set_fringe_width): New function.
27986 (x_figure_window_size): Use x_compute_fringe_widths.
27987 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
27990 * widget.c (set_frame_size): Use x_compute_fringe_widths.
27991 (EmacsFrameSetCharSize): Ditto.
27993 * w32term.h: Merged changes from xterm.h.
27994 * w32term.c: Merged changes from xterm.c.
27995 * w32fns.c: Merged changes from xfns.c.
27997 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27999 * COPYING: Removed.
28001 2001-11-29 Dave Love <fx@gnu.org>
28003 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
28005 (detect_coding_mask): Fix call of detect_coding_iso2022.
28007 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28009 * fileio.c (file-name-coding-system)
28010 (default-file-name-coding-system): Doc fix (links to referenced
28013 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
28015 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
28016 Add dummy uses of gcproN variables.
28018 * category.c (describe_category, describe_category_1)
28019 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
28020 (syms_of_category): Don't defsubr Sdescribe_categories.
28022 2001-11-28 Richard M. Stallman <rms@gnu.org>
28024 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
28026 * Makefile.in (lispdir): New variable, referring to build dir.
28027 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
28029 2001-11-28 Andrew Innes <andrewi@gnu.org>
28031 * w32menu.c (w32_menu_display_help): Actually add the new argument
28034 2001-11-28 Jason Rumney <jasonr@gnu.org>
28036 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
28037 menu items. From David Ponce <dponce@wanadoo.fr>.
28038 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
28040 (w32_menu_display_help): New argument OWNER. Rewritten to store a
28041 help event in the owner frame's keyboard buffer.
28043 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
28044 (Fx_show_tip): Don't subtract last width from row width.
28046 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
28047 (w32_read_socket): Use EQ to compare frames.
28049 2001-11-28 Gerd Moellmann <gerd@gnu.org>
28051 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
28054 2001-11-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28056 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
28057 `gcpro3' and `gcpro4'.
28059 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
28061 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
28063 * ccl.c: Use AREF and ASIZE.
28065 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
28067 * lisp.h (run_hook_list_with_args): Remove.
28068 (LIST_END_P): Fix call to wrong_type_argument.
28069 (make_fixnum_or_float): Use EMACS_INT rather than int.
28071 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
28073 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
28074 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
28076 * eval.c: Use AREF and ASIZE.
28077 (Ffetch_bytecode): Add the file name to the error message.
28079 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
28080 which match the end of the file-name.
28081 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
28082 is not a valid env var, but leave it as is instead.
28084 * keymap.c (access_keymap): Handle t bindings like nil bindings.
28085 Make nil bindings in char-tables transparent.
28086 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
28088 2001-11-26 Richard M. Stallman <rms@gnu.org>
28090 * textprop.c (set_text_properties_1): Allow START, END in either order.
28091 Do nothing if range is empty.
28093 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
28095 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
28098 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
28100 * textprop.c (set_text_properties_1): Clearly mark that the
28101 interval should not be empty.
28103 * intervals.c (graft_intervals_into_buffer):
28104 Don't call set_text_properties_1 on an empty interval.
28106 2001-11-25 Richard M. Stallman <rms@gnu.org>
28108 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
28110 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
28111 don't lose the data in it.
28113 2001-11-25 Juanma Barranquero <lektu@terra.es>
28115 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
28117 * buffer.c (Fkill_buffer): Likewise.
28119 * print.c (temp_output_buffer_setup): Likewise.
28121 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
28123 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
28125 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
28127 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
28128 Niemitalo <kon@iki.fi>.
28130 2001-11-25 Jason Rumney <jasonr@gnu.org>
28132 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
28134 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
28135 (Fx_show_tip): Block input during frame creation.
28136 (Fx_show_tip, Fx_hide_tip): Enable.
28138 2001-11-24 Richard M. Stallman <rms@gnu.org>
28140 * lread.c (Fload): Detect recursive load error for more than 3
28141 nestings of the same file.
28142 (Vrecursive_load_depth_limit): Variable deleted.
28143 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
28145 2001-11-24 Jason Rumney <jasonr@gnu.org>
28147 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
28148 mouse position if either left or top is not specified.
28150 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
28151 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
28152 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
28153 (my_create_tip_window): Assign tip_window.
28154 (x_create_tip_frame): Use same defaults as X.
28155 (compute_tip_xy): Remove unused variable. Use full screen width.
28156 (Fx_show_tip): Do not double height. Call ShowWindow directly.
28158 * w32term.c (x_after_update_window_line): Doc fix.
28159 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
28161 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
28163 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
28164 for all Windowed systems.
28166 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
28168 * msdos.c (IT_clear_screen): If the frame's faces are not yet
28169 realized, use the initial screen colors to clear the screen.
28171 2001-11-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28173 * textprop.c (Fset_text_properties): Remove unused variables
28174 `unchanged', `prev_changed', `s' and `len'.
28176 * search.c (Freplace_match): Remove unused variable `inslen'.
28178 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
28180 2001-11-22 Jason Rumney <jasonr@gnu.org>
28182 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
28183 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
28184 (my_create_tip_window): New function.
28185 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
28186 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
28188 2001-11-20 Jason Rumney <jasonr@gnu.org>
28190 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
28191 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
28193 * w32fns.c (Vw32_system_coding_system): Remove.
28194 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
28196 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
28198 * fileio.c (Fwrite_region): Move choose_write_coding_system to
28199 after build_annotations.
28201 * syntax.c (describe_syntax): Add dummy arg.
28202 (describe_syntax_1): Update call to describe_vector.
28204 * category.c (describe_category): Add dummy arg.
28205 (describe_category_1): Update call to describe_vector.
28207 * keymap.c (Fdescribe_vector): Add `describer' parameter.
28208 (describe_command, describe_translation): Add dummy second param.
28209 (describe_map): Call elt_describer with two arguments.
28210 (describe_vector_princ): Add `fun' parameter.
28211 Call it instead of the hardcoded `princ'.
28212 (describe_vector): Add arg `args'.
28213 Pass it as a new second argument to elt_describer.
28215 * keymap.h (describe_vector): Update prototype.
28217 * frame.c: Don't include keymap.h any more.
28218 (keys_of_frame): Remove.
28220 * lisp.h (keys_of_frame): Remove declaration.
28222 * emacs.c (main): Don't call `keys_of_frame' any more.
28224 2001-11-14 Andreas Schwab <schwab@suse.de>
28226 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
28227 if defined, 0 otherwise.
28228 (MAP_FAILED): Define if not defined and use it to test mmap failure.
28229 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
28231 2001-11-19 Richard M. Stallman <rms@gnu.org>
28233 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
28235 2001-11-18 Jason Rumney <jasonr@gnu.org>
28237 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
28238 (x_draw_bar_cursor): If the background color of the glyph under
28239 the cursor equals the frame's cursor color, use the glyph's
28240 foreground color for drawing the bar cursor.
28241 (x_after_update_window_line): Clear internal border in different
28243 (w32_set_vertical_scroll_bar): Check for width and height > 0.
28244 (w32_draw_relief_rect): Correct relief by 1 pixel.
28245 (x_set_glyph_string_background_width):
28246 Set extends_to_end_of_line_p if the row's fill_line_p is set and
28247 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
28248 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
28249 if cursor_in_non_selected_windows is false.
28250 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
28251 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
28252 Notice if cursor gets overwritten.
28253 (notice_overwritten_cursor): Renamed from
28254 note_overwritten_text_cursor. Rewritten to take glyph widths
28255 into account, and to take X positions as parameters.
28256 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
28257 around call to x_draw_glyphs.
28258 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
28259 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
28260 color to use for image glyph reliefs.
28261 (x_draw_image_relief): Accept zero tool_bar_button_relief.
28262 (glyph_rect): Remove unused variable `area'.
28264 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
28266 (x_set_internal_border_width): Set frame garbaged when window
28268 (Fx_create_frame): Accept zero tool_bar_button_relief.
28269 (x_clear_image_1, four_corners_best, image_background)
28270 (image_background_transparent): New functions.
28271 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
28272 (gs_format): Add `:background' entry.
28273 (lookup_image): Set IMG's background color if specified.
28274 (pbm_load, xbm_load_image, png_load): Set IMG's background field
28276 (x_clear_image_1): Reset `background_valid' and
28277 `background_transparent_valid' fields.
28278 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
28279 calculating it here. Set IMG's background_transparent field.
28280 (enum xpm_keyword_index): Add XPM_BACKGROUND.
28281 (enum png_keyword_index): Add PNG_BACKGROUND.
28282 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
28283 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
28284 (enum gif_keyword_index): Add GIF_BACKGROUND.
28285 (enum gs_keyword_index): Add GS_BACKGROUND.
28286 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
28287 Pre-calculate image background color where necessary.
28288 (x_create_x_image_and_pixmap, xbm_load, gs_load):
28289 Use display info's n_cbits entry for screen depth.
28290 (Fx_show_tip): Remove unused variables `buffer', `top',
28291 `left', `max_width' and `max_height'.
28293 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
28295 2001-11-18 Gerd Moellmann <gerd@gnu.org>
28297 * puresize.h (BASE_PURESIZE): Increase to 750000.
28299 2001-11-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28301 * frame.c (Fframe_live_p): Doc fix.
28303 2001-11-18 Richard M. Stallman <rms@gnu.org>
28305 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
28306 (message_dolog_marker3): New static variables hold three markers.
28307 (syms_of_xdisp): Initialize and staticpro them.
28308 (message_dolog): Use message_dolog_marker1..3 instead of
28309 allocating markers each time. Unchain them when done.
28311 2001-11-17 Richard M. Stallman <rms@gnu.org>
28313 * doc.c (Fsnarf_documentation): Doc fix.
28315 2001-11-17 Andreas Schwab <schwab@suse.de>
28317 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
28319 2001-11-17 Richard M. Stallman <rms@gnu.org>
28321 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
28323 2001-11-17 Jason Rumney <jasonr@gnu.org>
28325 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
28327 2001-11-17 Gerd Moellmann <gerd@gnu.org>
28329 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
28330 with invalid position.
28332 2001-11-16 Richard M. Stallman <rms@gnu.org>
28334 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
28336 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
28337 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
28338 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
28340 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
28342 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
28344 * fileio.c (build_annotations): Split off the tail.
28345 (build_annotations_2): New fun. Extracted from build_annotations.
28346 (Fwrite_region): Split the call to build_annotations into two
28347 calls to build_annotations and build_annotations_2.
28349 2001-11-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28351 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
28352 clear_waiting_for_input with argument.
28354 * xterm.h (x_update_cursor): Remove duplicated prototype.
28356 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
28358 * xterm.c (waiting_for_input): Remove unnecessary declaration.
28360 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
28362 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
28364 * fileio.c (choose_write_coding_system): New fun, extracted
28365 from Fwrite_region.
28366 (Fwrite_region): Use it.
28368 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
28369 (funcall_lambda, run_hook_with_args): Make static and add prototype.
28370 (ml_apply, find_handler_clause): Add prototype.
28372 2001-11-16 Eli Zaretskii <eliz@gnu.org>
28374 * config.in: Add #undef HAVE_COFF_H.
28376 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
28377 Required for ISC 4.1.
28379 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
28381 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
28382 Andrew Wiseman <a.wiseman@btclick.com>.
28384 2001-11-16 Kim F. Storm <storm@cua.dk>
28386 The following changes are made to clean up the various internal
28387 references to the fringes to actually use the term `fringe' for
28388 them. Previously, they were called `flags areas', `bitmap areas',
28389 `left/right side of windows', or implicitly as `flags' or
28392 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
28393 Comments fixed. Use renamed symbols.
28395 * dispnew.c: Comment fix. Use renamed symbols.
28397 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
28398 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
28399 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
28401 * msdos.c: Comment fix.
28403 * w32fns.c: Use renamed symbols.
28405 * w32term.c: Comment fixes. Use renamed symbols.
28406 (fringe_bitmap_type): Renamed from bitmap_type.
28407 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
28408 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
28409 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
28411 * w32term.h: Comment fixes. Use renamed symbols.
28412 (fringes_extra): Renamed from flags_areas_extra.
28413 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
28414 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
28415 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
28416 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
28417 (FRAME_X_LEFT_FRINGE_WIDTH):
28418 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
28419 (FRAME_X_RIGHT_FRINGE_WIDTH):
28420 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
28422 * widget.c: Use renamed symbols.
28424 * window.c: Comment fixes. Use renamed symbols.
28425 (coordinates-in-window-p): Doc fix.
28427 * xdisp.c: Comment fixes. Use renamed symbols.
28429 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
28431 * xfns.c: Use renamed symbols.
28433 * xterm.c: Comment fixes. Use renamed symbols.
28434 (fringe_bitmap_type): Renamed from bitmap_type.
28435 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
28436 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
28437 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
28439 * xterm.h: Comment fixes. Use renamed symbols.
28440 (fringes_extra): Renamed from flags_areas_extra.
28441 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
28442 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
28443 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
28444 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
28445 (FRAME_X_LEFT_FRINGE_WIDTH):
28446 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
28447 (FRAME_X_RIGHT_FRINGE_WIDTH):
28448 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
28450 2001-11-15 Jason Rumney <jasonr@gnu.org>
28452 * w32menu.c (add-menu-item): Make help_echo and radio buttons
28453 work for most menu items. From David Ponce
28454 <david.ponce@wanadoo.fr>.
28456 2001-11-15 Gerd Moellmann <gerd@gnu.org>
28458 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
28459 Some x_set_* function expect to be called even if old and new
28462 * xdisp.c (build_desired_tool_bar_string): Accept zero
28463 tool_bar_button_relief.
28465 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
28467 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
28469 * xterm.c (x_draw_bar_cursor): If the background color of the
28470 glyph under the cursor equals the frame's cursor color, use
28471 the glyph's foreground color for drawing the bar cursor.
28473 * dispnew.c (direct_output_forward_char): Fix character/byte
28474 position comparison.
28476 2001-11-15 Miles Bader <miles@gnu.org>
28478 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
28479 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
28480 Update arguments to find_field.
28481 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
28482 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
28483 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
28484 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
28486 2001-11-14 Richard M. Stallman <rms@gnu.org>
28488 * editfns.c (Fpropertize): Allow call with 1 arg.
28490 * dispextern.h (image_background, image_background_transparent):
28491 Conditionalize on HAVE_X_WINDOWS.
28493 2001-11-13 Richard M. Stallman <rms@gnu.org>
28495 * print.c (Fprin1_to_string): Doc fix.
28497 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
28499 * floatfns.c (Fceiling, Ffloor): Doc fixes.
28501 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
28503 * fileio.c (Ffile_accessible_directory_p): Doc fix.
28505 * eval.c (syms_of_eval): Doc fix.
28507 * coding.c (syms_of_coding): Doc fix.
28509 * doc.c (Fsnarf_documentation): Doc fix.
28511 * dispnew.c (syms_of_display): Doc fix.
28513 * category.c (Fget_unused_category): Doc fix.
28515 * buffer.c (syms_of_buffer): Doc fixes.
28517 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
28519 * print.c (prin1, print): Doc fix.
28521 2001-11-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28523 * fontset.h: Remove declarations of variables
28524 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
28526 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
28527 `Vclip_large_size_font'.
28529 2001-11-13 Jason Rumney <jasonr@gnu.org>
28531 * w32fns.c: Doc fix.
28533 2001-11-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28535 * xfaces.c (Fface_attributes_as_vector): Doc fix.
28539 * emacs.c: Doc fix.
28541 * coding.c: Doc fix.
28543 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
28544 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
28545 `new style' [w/`doc:' keyword].
28547 2001-11-12 Richard M. Stallman <rms@gnu.org>
28549 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
28550 LeaveNotify events. Only FocusIn and FocusOut do that now.
28551 (x_display_and_set_cursor): Do display hollow cursors in active
28552 minibuffer windows when they are not selected.
28554 2001-11-12 Jason Rumney <jasonr@gnu.org>
28556 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
28557 * w32term.c: Change doc-string comments to `new style'
28558 [w/`doc:' keyword]. Doc fixes.
28560 * w32fns.c: Don't define max.
28561 (Fx_open_connection): Only execute once.
28563 2001-11-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28565 * ccl.c: Change macros to use do-while block instead of if-else.
28566 Use braces to follow GNU Coding Standards.
28568 2001-11-11 Richard M. Stallman <rms@gnu.org>
28570 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
28572 * lread.c (read_escape): Use end_of_file_error for reporting eof.
28574 * insdel.c (replace_range): Use adjust_markers_for_replace
28575 instead of adjust_markers_for_delete and adjust_markers_for_insert.
28577 * intervals.h (set_text_properties, set_text_properties_1): Declare.
28579 * textprop.c (set_text_properties_1): New subroutine
28580 broken out of set_text_properties.
28581 (set_text_properties): Use set_text_properties_1.
28583 * intervals.c (graft_intervals_into_buffer):
28584 Use set_text_properties_1 to clear out properties.
28586 * search.c (Freplace_match): Use replace_range to insert
28587 and delete. Don't request property inheritance from
28590 2001-11-10 Jason Rumney <jasonr@gnu.org>
28592 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
28593 vertical fonts. Allow them if face name is explicitly specified.
28594 Do not give up if we find a font that cannot be converted to an xlfd.
28596 2001-11-10 Gerd Moellmann <gerd@gnu.org>
28598 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
28599 instead of malloc/free.
28601 2001-11-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28603 * xfaces.c (merge_face_vectors): Use braces to follow GNU
28605 (Finternal_set_lisp_face_attribute): Likewise.
28607 * buffer.c (Fbury_buffer): Likewise.
28609 * indent.c (current_column_1): Remove unused variable `prev_col'.
28611 * coding.c (encode_coding): Use precomputed value of `src'.
28612 (encode_coding): Remove unused variable `src_end'.
28613 (code_convert_region): Remove unused variables `count'.
28615 2001-11-07 Jason Rumney <jasonr@gnu.org>
28617 * w32term.c (x_display_and_set_cursor): Do not move system caret
28618 if cursor_glyph is NULL.
28620 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28622 * keymap.c (access_keymap): Fix compilation error.
28624 2001-11-07 Miles Bader <miles@gnu.org>
28626 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
28628 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28630 * intervals.c (graft_intervals_into_buffer):
28631 Remove #ifdef'd-out code.
28632 (graft_intervals_into_buffer): Remove unused variable `middle'.
28634 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
28635 code (eval-current-buffer).
28636 Change doc-string comments to `new style' [w/`doc:' keyword].
28638 2001-11-06 Richard M. Stallman <rms@gnu.org>
28640 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
28642 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
28644 * lread.c (read1): Fix behavior with nested backquoting.
28646 * keyboard.c (make_lispy_event): Check integerness and fix
28647 Lisp_Object/int mixup.
28649 2001-11-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28651 * fns.c (copy_hash_table): Remove unused variable `v'.
28653 * fontset.c (fontset_font_pattern): Remove unused variable
28656 * indent.c (current_column_1): Remove unused variable `prev_col'.
28658 2001-11-05 Richard M. Stallman <rms@gnu.org>
28660 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
28662 * buffer.c (Fkill_buffer): Don't delete auto save file
28663 if buffer is modified.
28665 2001-11-05 Andrew Innes <andrewi@gnu.org>
28667 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
28670 2001-11-05 Richard M. Stallman <rms@gnu.org>
28672 * unexelf.c (unexec): Minor changes; clean up comments.
28674 2001-11-05 Sam Steingold <sds@gnu.org>
28676 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
28678 2001-11-05 Andreas Schwab <schwab@suse.de>
28680 * sound.c (sound_perror): Save errno from being clobbered.
28682 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
28684 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
28685 the program image directly.
28687 2001-11-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28689 * buffer.h (Fbuffer_local_value): Add prototype.
28691 2001-11-04 Richard M. Stallman <rms@gnu.org>
28693 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
28696 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
28697 (record_char): Likewise.
28699 * keyboard.c (make_lispy_event): Don't insist a drag event must
28700 move to a different buffer position. Instead, check for moving at
28701 least double_click_fuzz.
28703 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
28705 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
28707 * indent.c (current_column_1, Fmove_to_column): Separate the code
28708 for display-table glyphs from the code for buffer text, to fix
28709 bugs in the former.
28711 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
28713 * buffer.c (Fbuffer_local_value): New function.
28714 (syms_of_buffer): Defsubr it.
28716 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
28717 value of `cursor-in-non-selected-windows'.
28719 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
28720 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
28721 (syms_of_xdisp): Initialize it.
28723 2001-11-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28725 * xfns.c (Fx_create_frame): Doc fix.
28727 * coding.c: Change doc-string comments to `new style' [w/`doc:'
28730 * eval.c (top_level_value, top_level_set): Remove commented and
28732 (Fdefvar): Fix usage in doc-string.
28734 2001-11-03 Richard M. Stallman <rms@gnu.org>
28736 * xfns.c: Include unistd.h, if it exists.
28738 * editfns.c: Move the include of ctype.h after unistd.h.
28740 * gmalloc.c: Test BROKEN_PROTOTYPES.
28742 2001-11-03 Ken Raeburn <raeburn@gnu.org>
28744 * lisp.h (CHECK_STRING_CAR): New macro.
28745 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
28746 treating XCAR and XCDR as lvalues.
28747 (openp): Use CHECK_STRING_CAR.
28748 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
28750 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
28752 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
28753 (SIGMASKTYPE): Define.
28755 * syssignal.h (sigunblock): Don't define if already defined.
28757 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28759 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
28760 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
28761 Fix typos in comments.
28763 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
28764 and #ifdef'd-out code.
28765 Fix and reindent comments.
28767 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
28769 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
28770 argument `i' in macros.
28772 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
28775 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
28776 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
28777 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
28778 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
28779 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
28780 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
28781 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
28782 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
28785 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
28786 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
28787 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
28788 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
28789 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
28790 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
28791 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
28792 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
28793 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
28794 (remove unused second argument).
28796 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
28798 * syntax.c (describe_syntax): New wrapper.
28799 (Finternal_describe_syntax_value): Rename from describe_syntax.
28800 Don't insert space at front and \n at the end.
28801 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
28803 * regex.c (re_wctype): Try to fix some warnings.
28804 (regcomp, regexec): Don't forget the __restrict.
28806 2001-11-02 Richard M. Stallman <rms@gnu.org>
28808 * textprop.c (Fget_char_property): Doc fix.
28810 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28812 * process.c (Fstart_process): Add usage to doc-string.
28814 * data.c (Fsetq_default): Ditto.
28816 * callint.c (Finteractive): Ditto.
28818 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
28820 * macros.c: Don't include keymap.h any more.
28822 2001-11-01 Richard M. Stallman <rms@gnu.org>
28824 * data.c (Fmake_local_variable): Doc fix.
28826 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
28827 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
28829 * keymap.c (Fdescribe_buffer_bindings): Print character property
28830 bindings along with or instead of the buffer local map.
28831 Make the overriding maps override what they should.
28833 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28835 * window.c (grow_mini_window): Fix typo in comment.
28837 2001-11-01 Gerd Moellmann <gerd@gnu.org>
28839 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
28840 (XTset_vertical_scroll_bar): Likewise.
28842 * xfns.c (x_build_heuristic_mask): Use four_corners_best
28843 instead of IMAGE_BACKGROUND.
28845 * xfns.c (four_corners_best): Reindent.
28847 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
28848 Handle :box so that it is possible to specify sexprs.
28850 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
28852 * s/hpux11.h: New file.
28854 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28856 * emacs.c (USAGE1): Show command line option --no-window-system
28857 instead of --no-windows in usage.
28858 (standard_args): Rename --no-windows to --no-window-system.
28859 (bug_reporting_address): Follow Emacs coding conventions.
28861 * eval.c (Fcommandp): Doc fix.
28862 Change doc-string comments to `new style' [w/`doc:' keyword].
28864 * frame.c (Fframe_live_p): Doc fix.
28866 * buffer.c (selective-display-ellipses): Doc fix.
28868 2001-10-31 Gerd Moellmann <gerd@gnu.org>
28870 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
28872 * xfaces.c (realize_x_face): If C is not a single-byte character,
28873 set the face's colors_copied_bitwise_p instead of the defaulted_p
28874 members which have a different meaning.
28875 (free_face_colors): Do nothing for a face whose colors have been
28878 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
28880 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28882 * marker.c, mocklisp.c: Change doc-string comments to `new style'
28883 [w/`doc:' keyword].
28885 2001-10-31 Gerd Moellmann <gerd@gnu.org>
28887 * fns.c (require_unwind): Return Lisp_Object.
28889 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28891 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
28892 (last-input-char): Revert doc-string to be the same as the
28893 doc-string of `last-input-event'.
28895 * xdisp.c: Fix typos in comments.
28897 2001-10-31 Gerd Moellmann <gerd@gnu.org>
28899 * window.c (grow_mini_window): Handle case that the root
28900 window is already smaller than the nominal mininum height.
28902 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
28904 * emacs.c (main): Don't call keys_of_macros any more.
28906 * lisp.h (keys_of_macros): Remove.
28908 * macros.c (keys_of_macros): Remove.
28910 * xfaces.c (Fface_attribute_relative_p): Declare args.
28912 2001-10-30 Jason Rumney <jasonr@gnu.org>
28914 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
28915 (enum_font_cb2): Ignore fonts with vertical orientation.
28917 2001-10-30 Richard M. Stallman <rms@gnu.org>
28919 * keyboard.c (Finput_pending_p): Doc fix.
28921 2001-10-30 Gerd Moellmann <gerd@gnu.org>
28923 * xterm.c (x_after_update_window_line): Don't run the code
28924 clearing in borders for rows whose visible height is 0.
28926 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
28927 resized_p flag is set. If not set, use the much less flickering
28928 method previously used.
28930 * dispnew.c (change_frame_size_1): Set frame's resized_p.
28932 * frame.h (struct frame) <resized_p>: New member.
28934 * lread.c (to_multibyte): Ensure read_buffer is at least twice
28935 as large as the number of bytes to convert.
28937 * lread.c (to_multibyte): New function.
28940 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
28942 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
28944 2001-10-30 Gerd Moellmann <gerd@gnu.org>
28946 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
28947 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
28948 if the row's fill_line_p is set and drawing the last glyph with
28949 DRAW_IMAGE_{RAISED,SUNKEN}.
28951 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
28953 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
28955 * xmenu.c: Include coding.h and charset.h.
28956 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
28957 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
28958 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
28959 Explicitly set wv->help. Use `TRUE' rather than `True'.
28960 (menu_help_callback): Use empty_string.
28962 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
28963 (Fx_popup_dialog): Explicitly init f.
28964 (w32_menu_display_help): Use empty_string.
28966 2001-10-29 Richard M. Stallman <rms@gnu.org>
28968 * fns.c (Frequire): Detect recursive try to require the same
28969 feature 3 or more levels deep, and get error.
28970 (require_unwind): New subroutine.
28971 (require_nesting_list): New variable.
28972 (syms_of_fns): Init and staticpro it.
28974 * print.c (print_object): Clarify indication of insertion type.
28976 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
28978 * coding.c (syms_of_coding): Document that locale-coding-system is
28979 used for decoding input on X.
28981 * window.c (Fscroll_left, Fscroll_right): Doc fix.
28983 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28985 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
28986 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
28988 2001-10-29 Gerd Moellmann <gerd@gnu.org>
28990 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
28991 use NO_CURSOR if cursor_in_non_selected_windows is false.
28993 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
28994 the slant attribute if FRAME is t.
28996 * xfns.c (x_set_internal_border_width): Set frame garbaged
28997 when X window doesn't exist yet.
28999 * xterm.c (x_after_update_window_line): Clear internal border
29000 in different circumstances.
29002 * xterm.c (XTread_socket) <KeyPress>: Don't use
29003 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
29006 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
29008 * m/ibms390.h: New file. From Adam Thornton
29009 <athornton@sinenomine.net>.
29011 2001-10-28 Gerd Moellmann <gerd@gnu.org>
29013 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
29015 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
29018 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29020 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
29022 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
29024 Fix typos in comments.
29026 * emacs.c (bug_reporting_address): New function.
29027 Use it when displaying usage message.
29029 * minibuf.c (read_minibuf): Remove unused external declaration of
29030 variable `Qread_only'.
29032 * keymap.c (access_keymap): Remove unused variable `charset'.
29034 2001-10-28 Miles Bader <miles@gnu.org>
29036 * xfaces.c (merge_face_heights): Handle TO being relative as well.
29037 Remove #ifdef'd-out code.
29038 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
29039 (syms_of_xfaces): Initialize them.
29041 2001-10-27 Jason Rumney <jasonr@gnu.org>
29043 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
29044 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
29045 position using the system caret.
29047 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
29048 (w32_system_caret_height, w32_system_caret_x)
29049 (w32_system_caret_y): New variables for tracking system caret.
29050 (w32_initialize): Initialize them.
29051 (x_display_and_set_cursor): Make system caret follow the active cursor.
29053 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
29054 New messages types.
29056 * w32term.c (note_mouse_highlight): Clear old help_echo.
29058 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29060 * xterm.c: Fix typo in a comment.
29062 * emacs.c: Fix typos in comments.
29063 Remove unnecessary spaces.
29064 Change doc-string comments to `new style' [w/`doc:' keyword].
29065 (USAGE2): Fix typos in usage string.
29067 * xterm.c: Fix typo in a comment.
29069 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
29072 2001-10-27 Gerd Moellmann <gerd@gnu.org>
29074 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
29075 instead of 1/2 line_height in the heuristic for skipping
29076 farther backward when target_y was not reached.
29078 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
29079 Display errno only if non-zero.
29080 (sound_warning): New function.
29081 (vox_configure): Don't treat failing to set sample rate as error.
29082 (various places): Improve error messages.
29084 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
29086 * fileio.c (Faccess_file): Run the argument filename through
29087 Fexpand_file_name, before using it.
29089 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
29090 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
29092 2001-10-26 Gerd Moellmann <gerd@gnu.org>
29094 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
29096 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
29097 Fix clearing in the case of scroll bars on the right.
29099 2001-10-26 Juanma Barranquero <lektu@terra.es>
29101 * w32gui.h (XImage): Add a dummy typedef.
29103 2001-10-26 Gerd Moellmann <gerd@gnu.org>
29105 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
29107 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
29109 * frame.c (Fframe_parameter): Fix last change.
29111 * fileio.c: Revert last change (which removed old commented-out
29112 version of expand-file-name). Add a comment that explains why
29113 this old version should not be removed.
29115 2001-10-25 Gerd Moellmann <gerd@gnu.org>
29117 * frame.c (Fframe_parameter): Fix a bug whereby some
29118 ``artificial'' frame parameters, like `minibuffer' were not
29119 obtained by calling Fframe_parameters.
29121 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
29122 cursor differently.
29124 * xdisp.c (move_it_vertically_backward): Compute line height
29125 differently. Add heuristic to try to be more compatible to 20.x.
29127 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
29129 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
29131 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
29134 2001-10-25 Miles Bader <miles@gnu.org>
29136 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
29137 BG is a pointer to a structure, not a structure.
29138 (gif_format, png_format): Add missing commas.
29140 2001-10-24 Richard M. Stallman <rms@gnu.org>
29142 * xfaces.c (Fface_attributes_as_vector): New function.
29143 (syms_of_xfaces): Defsubr it.
29145 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29147 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
29150 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29152 * search.c (scan_newline): Remove unused variable `selective_display'.
29154 2001-10-25 Miles Bader <miles@gnu.org>
29156 * dispextern.h (struct image): Add `background',
29157 `background_valid', and `background_transparent' fields.
29158 (image_background, image_background_transparent): New declarations.
29159 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
29160 * xfns.c (image_background, image_background_transparent)
29161 (four_corners_best): New functions.
29162 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
29163 (gs_format): Add `:background' entry.
29164 (lookup_image): Set IMG's background color if specified.
29165 (pbm_load, xbm_load_image, png_load): Set IMG's background field
29167 (x_clear_image_1): Reset `background_valid' and
29168 `background_transparent_valid' fields.
29169 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
29170 calculating it here. Set IMG's background_transparent field.
29171 (enum xpm_keyword_index): Add XPM_BACKGROUND.
29172 (enum png_keyword_index): Add PNG_BACKGROUND.
29173 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
29174 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
29175 (enum gif_keyword_index): Add GIF_BACKGROUND.
29176 (enum gs_keyword_index): Add GS_BACKGROUND.
29177 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
29178 Pre-calculate image background color where necessary.
29179 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
29180 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
29181 color to use for image glyph reliefs.
29183 2001-10-24 Gerd Moellmann <gerd@gnu.org>
29185 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
29186 in full-width rows.
29188 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
29189 Fix clearing of area not covered by scroll bar.
29191 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29193 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
29195 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
29196 (glyph_rect): Remove unused variable `area'.
29198 2001-10-24 Gerd Moellmann <gerd@gnu.org>
29200 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
29202 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
29203 (row_containing_pos): Take additional argument DY.
29204 Treat rows ending in middle of char differently.
29205 (display_line): Handle tabs on window systems differently.
29207 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
29208 with additional argument.
29210 * dispextern.h (row_containing_pos): Adjust prototype.
29212 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
29213 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
29214 (try_window_id, try_window_reusing_current_matrix)
29215 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
29216 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
29218 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29220 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
29222 (HAVE_BOXES): Fix typo in comment.
29223 (push_menu_pane): Fix typo in comment.
29225 * xdisp.c (display_prop_string_p): Remove unused local declaration
29227 (single_display_prop_string_p): Remove unused local declarations
29228 of `Qwhen' and `Qmargin'.
29229 (string_buffer_position): Remove unused variable `around'.
29230 (store_frame_title): Remove unused variable `width'.
29232 * window.c: Don't define max.
29233 (coordinates_in_window): Remove unused variable `uy'.
29235 * widget.c: Don't define max.
29237 * process.c: Don't define max.
29238 (create_process): Remove unused variable `buffer'.
29240 2001-10-23 Gerd Moellmann <gerd@gnu.org>
29242 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
29244 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
29246 * xfaces.c (Finternal_set_lisp_face_attribute)
29247 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
29248 frame is on a windowed display.
29250 2001-10-23 Gerd Moellmann <gerd@gnu.org>
29252 * dispnew.c (sync_window_with_frame_matrix_rows):
29253 Fix handling of windows which aren't full-width, fix handling
29256 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
29258 2001-10-23 Andreas Schwab <schwab@suse.de>
29260 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
29261 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
29263 2001-10-23 Gerd Moellmann <gerd@gnu.org>
29265 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
29266 REAL_END. Notice if cursor gets overwritten.
29267 (notice_overwritten_cursor): Take X positions as parameters.
29268 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
29269 around call to x_draw_glyphs.
29271 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29273 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
29274 instead of C) and usage.
29276 * editfns.c (char-to-string): Fix argument names (use CHAR instead
29279 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
29280 `left', `max_width' and `max_height'.
29282 2001-10-23 Gerd Moellmann <gerd@gnu.org>
29284 * xdisp.c (display_line): For a tab continued to the next line,
29285 set row's ends_in_middle_of_char_p.
29287 2001-10-22 Gerd Moellmann <gerd@gnu.org>
29289 * xdisp.c (display_line): Fix computation of continuation lines
29292 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29294 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
29297 * fileio.c: Remove unused code.
29299 2001-10-22 Miles Bader <miles@gnu.org>
29301 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
29302 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
29303 Remove `DOC_STRINGS_IN_COMMENTS' cases.
29305 2001-10-21 Jason Rumney <jasonr@gnu.org>
29307 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
29309 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
29311 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
29312 (Finsert_string): Avoid the multi-line string literals warning.
29314 2001-10-22 Miles Bader <miles@gnu.org>
29316 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
29317 (Fdocumentation): Don't use it.
29318 (syms_of_doc): Don't initialize it.
29320 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
29321 * print.c (Fwith_output_to_temp_buffer): Likewise.
29322 * window.c (Fsave_window_excursion): Likewise.
29323 * editfns.c (Fsave_excursion, Fsave_current_buffer)
29324 (Fsave_restriction): Likewise.
29325 * eval.c (Frun_hooks, Frun_hook_with_args)
29326 (Frun_hook_with_args_until_failure)
29327 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
29328 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
29329 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
29330 (Funwind_protect, Fcondition_case): Likewise.
29331 * coding.c (Ffind_operation_coding_system): Likewise.
29332 * keyboard.c (Ftrack_mouse): Likewise.
29334 2001-10-21 Miles Bader <miles@gnu.org>
29336 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
29337 (Fmake_hash_table): Add usage: string to doc string.
29338 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
29339 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
29340 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
29341 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
29342 (Fml_prefix_argument_loop): Likewise.
29344 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29346 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
29348 * sysdep.c (init_sys_modes): Change doc-string comments to `new
29349 style' [w/`doc:' keyword].
29351 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
29352 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
29353 comments to `new style' [w/`doc:' keyword].
29355 2001-10-21 Jason Rumney <jasonr@gnu.org>
29357 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
29359 * w32term.c (remember_mouse_glyph): New function.
29360 (w32_mouse_position): Use it.
29361 (note_mouse_movement): If the mouse moved off the glyph, remember
29364 * w32term.h (struct w32_output): Correct spelling of x_compatible.
29365 (w32_display_info): Add mouse_face_overlay.
29367 * w32term.c (notice_overwritten_cursor): Renamed from
29368 note_overwritten_text_cursor. Rewritten to take glyph widths into
29370 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
29371 (fast_find_string_pos): New function.
29372 (fast_find_position): Return the correct vpos. Add parameter
29373 STOP. In the final row, stop before glyphs having STOP as object.
29374 Don't consider glyphs that are not from a buffer.
29375 (fast_find_position) [0]: Add a presumably more correct version
29377 (expose_window_tree, expose_frame): Don't compute intersections here.
29378 (expose_window): Do it here instead.
29379 (expose_window_tree, expose_window, expose_line): Return 1 when
29380 overwriting mouse-face.
29381 (expose_window): If W is the window currently being updated, mark
29382 the frame garbaged.
29383 (expose_frame): If mouse-face was overwritten, redo it.
29384 (x_use_underline_position_properties): New variable.
29385 (syms_of_xterm): DEFVAR_BOOL it.
29386 (x_draw_glyph_string): Add comment to use it in future.
29387 (x_draw_glyph_string): Restore clipping after drawing box.
29388 Fix a computation of the underline position.
29389 (w32_get_glyph_string_clip_rect): Minor cleanup.
29390 (x_fill_stretch_glyph_string): Remove an assertion.
29391 (x_produce_glyphs): Don't convert multibyte characters
29392 to unibyte characters in unibyte buffers.
29393 (cursor_in_mouse_face_p): New function.
29394 (x_draw_stretch_glyph_string): Use it to choose a different GC
29395 when drawing a cursor within highlighted text. Don't draw
29396 background again if it has already been drawn.
29397 (x_draw_glyph_string_box): Don't draw a full-width
29398 box just because the glyph row's full_width_p flag is set.
29399 (x_draw_glyphs): Fix computation of rightmost x for
29401 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
29402 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
29403 change bottom shadow accordingly. Some cleanup.
29404 (x_update_window_end): Handle overwritten mouse face
29405 also for tool bar windows.
29406 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
29407 DRAW is DRAW_IMAGE_RAISED.
29408 (clear_mouse_face): Return 1 if text with mouse face was
29409 actually redrawn. Make the function static.
29410 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
29411 optimize away highlighting if we pass over that same overlay again.
29412 (note_mouse_highlight): Call mouse_face_overlay_overlaps
29413 to detect a case where we have to highlight a different region
29414 despite not having left the currently highlighted region.
29415 Set mouse_face_overlay in the x_display_info. Avoid changing the
29416 mouse pointer shape when show_mouse_face has already done it, or
29417 there is no need. Handle mouse-face and help-echo in strings.
29418 (glyph_rect): New function.
29419 (w32_mouse_position): Use it to raise the threshold for mouse
29420 movement event generation.
29421 (w32_initialize_display_info): Initialize the x_display_info's
29422 mouse_face_overlay.
29423 (w32_set_vertical_scroll_bar): Don't clear a zero height
29425 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
29426 a widget to zero height.
29428 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
29429 Protect unibyte strings created by replacing their multibyte
29430 equivalents in menu_items.
29431 (w32_menu_show): Don't overwrite an item's name with its key
29432 description in case the description is a multibyte string.
29433 (single_submenu): Some cleanup.
29435 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
29436 (postprocess_image): New function.
29437 (lookup_image): Call it for all image types except PostScript.
29438 (x_kill_gs_process): Call postprocess_image.
29439 (tiff_error_handler, tiff_warning_handler): New functions.
29440 (tiff_load): Install them as handlers.
29441 (x_kill_gs_process): Recognize if someone has cleared the image
29443 (valid_image_p): Protect better against invalid image
29444 specifications. Previous code could signal an error.
29445 (Fx_hide_tip, Fshow_tip): Doc fix.
29446 (Fv_max_tooltip_size): New variable.
29447 (syns_of_xfns): DEFVAR_LISP it.
29448 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
29449 window buffer to *tip* right after creating the frame. Set frame's
29450 window_width. Use a maximum tooltip size specified by
29451 Vx_max_tooltip_size, if that has valid contents.
29452 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
29453 Make sure the tooltip is completely visible.
29454 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
29455 (Fx_create_frame): Adjust the frame's height for presence
29456 of the tool bar before calling x_figure_window_size.
29457 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
29458 when the window gets smaller.
29459 (x_set_foreground_color): Set frame's cursor_pixel.
29460 (x_set_foreground_color, x_set_background_color): Cleaned up.
29461 (x_set_font): Handle case of x_new_fontset returning the same name
29462 as before, although there was a change in fontsets.
29464 2001-10-21 Miles Bader <miles@gnu.org>
29466 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
29467 (Flogxor): Add usage: string to doc string.
29468 * charset.c (Fstring): Likewise.
29469 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
29470 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
29472 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29474 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
29476 * alloc.c: Reindent DEFUNs with doc: keywords.
29478 * abbrev.c (Finsert_abbrev_table_description): Reindent.
29480 * frame.c: Change doc-string comments to `new style' [w/`doc:'
29483 See ChangeLog.9 for earlier changes.
29485 ;; Local Variables:
29486 ;; coding: iso-2022-7bit
29487 ;; add-log-time-zone-rule: t
29490 Copyright (C) 2001, 2002, 2003, 2004, 2005,
29491 2006, 2007, 2008 Free Software Foundation, Inc.
29493 This file is part of GNU Emacs.
29495 GNU Emacs is free software; you can redistribute it and/or modify
29496 it under the terms of the GNU General Public License as published by
29497 the Free Software Foundation; either version 3, or (at your option)
29500 GNU Emacs is distributed in the hope that it will be useful,
29501 but WITHOUT ANY WARRANTY; without even the implied warranty of
29502 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29503 GNU General Public License for more details.
29505 You should have received a copy of the GNU General Public License
29506 along with GNU Emacs; see the file COPYING. If not, write to the
29507 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
29508 Boston, MA 02110-1301, USA.
29510 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4