1 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
3 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6 2008-08-03 Andreas Schwab <schwab@suse.de>
8 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
13 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
14 Don't use uninitialized pointer variable when using getrlimit.
16 2008-08-02 Eli Zaretskii <eliz@gnu.org>
18 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
21 2008-08-01 Jason Rumney <jasonr@gnu.org>
23 * w32term.c (x_draw_composite_glyph_string_foreground): Force
24 use of Unicode output.
26 2008-07-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
28 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
31 * gtkutil.c (menu_nav_ended): Remove.
32 (create_menus): Remove signal connect for menu_nav_ended.
33 (create_menus): Connect selection-done to menu_nav_ended.
35 2008-07-26 Eli Zaretskii <eliz@gnu.org>
37 * term.c (syms_of_term): Fix last change.
39 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
41 * term.c (syms_of_term): Initialize default_orig_pair,
42 default_set_foreground, and default_set_background.
44 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
46 (getloadavg): Callers changed.
48 2008-07-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
52 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
54 * print.c (print_object): Check print_depth before searching for
57 2008-07-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
59 * macterm.h (kCGBitmapByteOrder32Host): New define for
62 * image.c (mac_create_cg_image_from_image, image_load_image_io)
63 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
65 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]:
66 Remove conditionals for kCGBitmapByteOrder32Host.
68 2008-07-18 David Robinow <drobinow@gmail.com> (tiny change)
70 * w32inevt.c: Include dispextern.h. Don't declare change_frame_size
72 (maybe_generate_resize_event, resize_event): Call change_frame_size
75 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
77 * gtkutil.c: Include <config.h> instead of "config.h".
79 * lisp.h (Foverlay_buffer): Add EXFUN.
81 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
82 child process to complete child_setup. Undo 2005-09-21 change.
84 * s/darwin.h: Mention setsid after vfork.
86 2008-07-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
88 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
91 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
92 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
94 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
96 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
98 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
99 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
102 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
103 Check if FACE_FROM_ID returns NULL.
105 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
107 * image.c (png_load): Use correct bit-depth for setting background
110 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
112 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
113 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
116 2008-05-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
118 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
121 2008-05-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
123 * emacs.c (main_thread): Conditionalize on
124 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
125 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
127 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
128 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
129 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
131 2008-05-10 Eli Zaretskii <eliz@gnu.org>
133 * dired.c (Fdirectory_files_and_attributes, Ffile_attributes):
134 Mention w32-get-true-file-attributes in the doc strings.
136 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
138 * w32.c (stat): Fix test of Vw32_get_true_file_attributes against
139 the value returned by GetDriveType.
141 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
143 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
144 Create bitmap context in native byte order.
146 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]:
147 Create bitmap context in native byte order.
149 2008-05-03 Eli Zaretskii <eliz@gnu.org>
151 * dired.c (Ffile_attributes): Don't allow the device number become
154 2008-05-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
156 * config.in: Regenerate.
158 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
159 New definitions for Image I/O support.
160 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
161 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
162 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
163 (mac_data_provider_release_data, image_load_image_io)
164 [USE_MAC_IMAGE_IO]: New functions.
165 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
166 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
167 (init_image_func_pointer) [MAC_OSX]: Remove function.
168 (image_load_quartz2d) [MAC_OSX]: Check availability of
169 CGImageCreateWithPNGDataProvider at compile time.
170 Use lowercase `false' for boolean constant.
171 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
172 Use image_load_image_io.
173 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
174 Don't check MyCGImageCreateWithPNGDataProvider.
175 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
176 Don't call init_image_func_pointer.
178 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
180 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
181 Make variable non-static.
182 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
183 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
185 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
186 (RED_FROM_ULONG): Mask off higher bits.
187 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
189 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
190 Include AvailabilityMacros.h.
191 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
192 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
194 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
196 * m/sparc.h: Additional redefinitions for GNU/Linux.
198 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
200 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
201 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
202 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
203 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
204 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
205 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
206 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
209 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
210 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
211 (mac_ax_number_of_characters): Add externs.
212 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
213 [USE_MAC_TSM]: Likewise.
214 (mac_handle_text_input_event) [MAC_OSX]:
215 Handle kEventTextInputOffsetToPos for no active input area case.
216 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
217 (mac_handle_document_access_event)
218 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
219 (install_application_handler) [MAC_OSX]: Register handlers for
220 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
221 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
222 Register mac_handle_document_access_event.
224 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
225 Make functions non-static.
227 2008-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
229 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
230 Make function non-static.
231 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
233 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
234 Move to mactoolbox.c.
235 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
237 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
238 (mac_rect_make): New macro.
240 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
242 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
243 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
244 (XSetBackground) [USE_CG_DRAWING]: Likewise.
245 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
247 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
248 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
249 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
250 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
251 instead of WindowRef in argument type.
252 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
253 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
254 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
255 instead of DISPLAY. All uses changed.
256 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
257 (x_calc_absolute_position): Simplify so as not to use
258 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
259 (Vmac_ts_script_language_on_focus, saved_ts_script_language_on_focus)
260 [USE_MAC_TSM]: Make variables static.
261 (mac_store_event_ref_as_apple_event) [TARGET_API_MAC_CARBON]:
262 Don't use create_apple_event_from_event_ref.
263 Use mac_event_parameters_to_lisp.
265 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
266 instead of WindowRef in argument type.
267 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
268 [TARGET_API_MAC_CARBON]: Remove externs.
269 (create_apple_event, mac_event_parameters_to_lisp)
270 [TARGET_API_MAC_CARBON]: Add externs.
272 * mactoolbox.c (Vmac_ts_script_language_on_focus)
273 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
274 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
276 (x_activate_menubar): Remove extern for saved_menu_event_location.
277 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
280 2008-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
282 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
283 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
285 2008-04-11 Katsumi Yamaoka <yamaoka@jpl.org>
287 * puresize.h (BASE_PURESIZE): Increase to 1140000.
289 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
291 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
292 only after check for file name handler functions. Signal, when
293 native functionality is not supported.
294 (syms_of_fileio): Declare it unconditionally.
296 2008-04-10 Jason Rumney <jasonr@gnu.org>
298 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
299 attributes only for local files.
301 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
304 2008-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
306 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
307 (mactoolbox.o): New target.
309 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
310 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
312 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
313 Use mac_set_frame_window_background instead of XSetWindowBackground.
314 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
315 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
316 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
317 instead of SetWindowTitleWithCFString.
318 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
319 Move function to mactoolbox.c.
320 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
321 Use mac_set_window_modified instead of SetWindowModified.
322 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
323 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
324 (Fx_focus_frame): Use mac_front_non_floating_window instead of
325 FrontNonFloatingWindow. Use mac_activate_window instead of
326 ActivateWindow. Use mac_active_non_floating_window instead of
327 ActiveNonFloatingWindow.
328 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
329 Use mac_show_hourglass and mac_hide_hourglass.
330 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
331 instead of GetGlobalMouse.
332 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
333 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
334 Use mac_bring_window_to_front instead of BringToFront.
335 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
337 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
338 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
339 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
342 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
343 (XtPointer): Move typedef from macmenu.c.
344 (enum button_type): Move enum from macmenu.c.
345 (widget_value): Move typedef from macmenu.c.
346 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
347 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
348 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
349 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
350 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
351 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
352 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
353 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
354 (Selection): Move typedef from macselect.c.
355 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
357 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
358 (mac_is_window_collapsed, mac_bring_window_to_front)
359 (mac_send_window_behind, mac_hide_window, mac_show_window)
360 (mac_collapse_window, mac_front_non_floating_window)
361 (mac_active_non_floating_window, mac_activate_window)
362 (mac_move_window_structure, mac_move_window, mac_size_window)
363 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
365 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
366 (enum mac_menu_kind): Move enum to mactoolbox.c.
367 (min_menu_id): Move variable to mactoolbox.c.
368 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
369 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
370 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
371 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
372 [TARGET_API_MAC_CARBON]: Likewise.
373 (XtPointer): Move typedef to macgui.h.
374 (enum button_type): Move enum to macgui.h.
375 (widget_value): Move typedef to macgui.h.
376 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
377 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
378 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
379 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
380 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
381 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
382 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
383 (popup_activated_flag): Make variable non-static.
384 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
385 (add_menu_item, fill_menu, dispose_menus):
386 Move functions to mactoolbox.c.
387 (restore_show_help_function, menu_target_item_handler)
388 (install_menu_target_item_handler, mac_handle_dialog_event)
389 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
390 [TARGET_API_MAC_CARBON]: Likewise.
391 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
392 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
393 (find_and_call_menu_selection, name_is_separator): Make function
395 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
397 (set_frame_menubar): Don't call install_menu_quit_handler.
398 (menu_item_selection): New variable.
399 (mac_menu_show): Use create_and_show_popup_menu.
400 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
401 selection but set variable menu_item_selection. All uses changed.
402 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
403 Call install_menu_quit_handler. Move to mactoolbox.c.
405 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
406 (Selection): Move typedef to macgui.h.
407 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
408 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
409 Make variables non-static.
410 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
411 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
412 Make functions non-static.
413 (Vmac_service_selection) [MAC_OSX]: Likewise.
414 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
415 (mac_valid_selection_target_p, mac_clear_selection)
416 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
417 (mac_put_selection_value, mac_selection_has_target_p)
418 (mac_get_selection_value, mac_get_selection_target_list)
419 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
420 Move functions to mactoolbox.c.
421 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
423 (copy_scrap_flavor_data, mac_handle_service_event)
424 (install_service_handler) [MAC_OSX]: Likewise.
425 (syms_of_macselect) <Vmac_dnd_known_types>:
426 Use mac_dnd_default_known_types.
428 * macterm.c (mac_end_clip): Add argument F. All uses changed.
429 (mac_begin_cg_clip, mac_end_cg_clip): Allow null GC.
430 (mac_invert_rectangle, mac_compute_glyph_string_overhangs)
431 (mac_load_query_font): Use them instead of SetPortWindowPort.
432 (mac_clear_window) [!USE_CG_DRAWING]: Likewise.
433 (mac_draw_image_string_cg): Call CGContextSetTextMatrix.
434 (x_update_begin, x_update_end): Call mac_update_begin and
436 (XTframe_up_to_date): Call mac_frame_up_to_date.
437 (XTring_bell): Use mac_alert_sound_play.
438 (note_mouse_movement): Use mac_get_frame_bounds.
439 (XTmouse_position): Use mac_get_frame_mouse.
440 (x_scroll_bar_create): Use mac_create_scroll_bar.
441 (x_scroll_bar_remove): Use mac_dispose_scroll_bar.
442 (XTset_vertical_scroll_bar): Use mac_set_scroll_bar_bounds and
443 mac_redraw_scroll_bar.
444 (mac_move_window_with_gravity) [USE_MAC_TOOLBAR]: Use mac_move_window
445 instead of MoveWindow.
446 (mac_handle_size_change) [TARGET_API_MAC_CARBON]:
447 Use mac_reposition_hourglass.
448 (x_set_offset): Use mac_move_window_structure instead of
450 (x_set_window_size): Use mac_size_window instead of SizeWindow.
451 (x_set_mouse_pixel_position) [MAC_OSX]:
452 Use mac_convert_frame_point_to_global.
453 (x_raise_frame): Use mac_bring_window_to_front instead of BringToFront.
454 (x_lower_frame): Use mac_send_window_behind instead of SendBehind.
455 (mac_handle_visibility_change): Use Window instead of WindowRef.
456 Use mac_is_window_visible/mac_is_window_collapsed instead of
457 IsWindowVisible/IsWindowCollapsed, respectively.
458 Use mac_collapse_window/mac_show_window instead of
459 CollapseWindow/ShowWindow, respectively.
460 (x_make_frame_invisible): Use mac_hide_window instead of HideWindow.
461 (x_iconify_frame): Use mac_show_window instead of ShowWindow.
462 Use mac_collapse_window instead of CollapseWindow.
463 (x_free_frame_resources): Use Window instead of WindowRef.
464 Use mac_dispose_frame_window. Clean up focus-related variables before
465 calling mac_dispose_frame_window.
466 (do_zoom_window) [MAC_OS8]: Use mac_clear_area instead of
468 (mac_initialize): Use mac_toolbox_initialize instead of
469 initializing any_help_event_p and calling init_apple_event_handler,
470 init_tsm, and init_menu_bar.
471 (any_help_event_p, last_window, save_port_clip_region)
472 (read_socket_inev, saved_menu_event_location): Move variables to
474 (last_scroll_bar_part, scroll_bar_timer)
475 (scroll_bar_timer_event_posted_p) [USE_TOOLKIT_SCROLL_BARS]: Likewise.
476 (font_panel_shown_p) [USE_MAC_FONT_PANEL]: Likewise.
477 (tsm_document_id) [USE_MAC_TSM]: Likewise.
478 (mouse_region) [!TARGET_API_MAC_CARBON]: Likewise.
479 (mac_window_to_frame, DEFAULT_NUM_COLS, MIN_DOC_SIZE, MAX_DOC_SIZE):
480 Move defines to mactoolbox.c.
481 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: Likewise.
482 (SCROLL_BAR_FIRST_DELAY, SCROLL_BAR_CONTINUOUS_DELAY)
483 [USE_TOOLKIT_SCROLL_BARS]: Likewise.
484 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
485 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
486 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID)
487 [USE_MAC_TOOLBAR]: Likewise.
488 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
489 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID): Move defines to macgui.h
490 (x_flush, is_emacs_window, mac_begin_clip, mac_end_clip)
491 (x_scroll_bar_handle_click, x_scroll_bar_report_motion)
492 (mac_get_window_bounds, do_window_update, is_emacs_window)
493 (do_grow_window, do_zoom_window, install_window_handler)
494 (remove_window_handler, XTread_socket, init_menu_bar): Move functions
496 (mac_flush_display_optional, mac_begin_cg_clip, mac_end_cg_clip)
497 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
498 (mac_scroll_area, mac_event_to_emacs_modifiers, mac_get_mouse_btn)
499 (mac_convert_event_ref, mac_get_ideal_size, mac_store_drag_event)
500 (mac_handle_window_event, mac_handle_keyboard_event)
501 (mac_handle_command_event, mac_handle_mouse_event)
502 (install_application_handler, mac_post_mouse_moved_event)
503 [TARGET_API_MAC_CARBON]: Likewise.
504 (scroll_bar_timer_callback, install_scroll_bar_timer)
505 (set_scroll_bar_timer, control_part_code_to_scroll_bar_part)
506 (construct_scroll_bar_click, get_control_part_bounds)
507 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
508 (x_scroll_bar_handle_drag, x_set_toolkit_scroll_bar_thumb)
509 [USE_TOOLKIT_SCROLL_BARS]: Likewise.
510 (x_scroll_bar_set_handle, x_scroll_bar_note_movement)
511 [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
512 (mac_handle_toolbar_event, mac_create_frame_tool_bar)
513 (update_frame_tool_bar, free_frame_tool_bar)
514 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
515 [USE_MAC_TOOLBAR]: Likewise.
516 (mac_font_panel_visible_p, mac_handle_font_event)
517 (mac_show_hide_font_panel, mac_set_font_info_for_selection)
518 [USE_MAC_FONT_PANEL]: Likewise.
519 (mac_handle_text_input_event, init_tsm) [USE_MAC_TSM]: Likewise.
520 (do_apple_menu, mac_wait_next_event) [!TARGET_API_MAC_CARBON]: Likewise.
521 (mac_store_service_event) [MAC_OSX]: Likewise.
522 (last_mouse_glyph, last_mouse_glyph_frame, last_mouse_scroll_bar)
523 (last_mouse_movement_time, input_signal_count)
524 (mac_screen_config_changed, Qhi_command, Qtoolbar_switch_mode)
525 (Qservice, Qpaste, Qperform, keycode_to_xkeysym_table): Make variables
527 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
528 (Qtext_input, Vmac_ts_active_input_overlay, Qupdate_active_input_area)
529 (Qunicode_for_key_event, Vmac_ts_script_language_on_focus)
530 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Likewise.
531 (mac_focus_changed, note_mouse_movement, mac_focus_frame)
532 (mac_handle_origin_change, mac_handle_size_change)
533 (mac_handle_visibility_change, mac_to_emacs_modifiers)
534 (mac_mapped_modifiers, mac_get_emulated_btn, do_keystroke)
535 (mac_get_screen_info): Make functions non-static.
536 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
537 (mac_image_spec_to_cg_image) [USE_MAC_TOOLBAR]: Likewise.
538 (mac_store_event_ref_as_apple_event) [TARGET_API_MAC_CARBON]: Likewise.
539 (Qwindow, mac_ready_for_apple_events): Move externs to mactoolbox.c.
540 (Qbefore_string) [USE_MAC_TSM]: Likewise.
541 (mac_toolbox_initialize, x_scroll_bar_report_motion, XTread_socket):
543 (mac_flush_display_optional) [USE_CG_DRAWING]: Likewise.
544 (install_drag_handler, remove_drag_handler, install_service_handler)
545 (install_menu_target_item_handler): Remove externs.
546 (XSetWindowBackground): Rename to mac_set_frame_window_background.
547 Take frame as argument instead of display and window.
548 Move to mactoolbox.c.
549 (mac_restore_keyboard_input_source, mac_save_keyboard_input_source)
550 [USE_MAC_TSM]: New functions created from mac_tsm_resume and
551 mac_tsm_suspend, respectively.
552 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: Use them.
553 Move to mactoolbox.c.
555 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
556 Move to mactoolbox.c.
557 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
558 (Fx_selection_owner_p): Add EXFUN.
559 (install_window_handler, remove_window_handler, XSetWindowBackground):
561 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
562 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
563 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
564 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
565 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
566 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
567 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
568 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
569 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
570 (create_and_show_popup_menu, mac_get_selection_from_symbol)
571 (mac_valid_selection_target_p, mac_clear_selection)
572 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
573 (mac_put_selection_value, mac_selection_has_target_p)
574 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
575 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
576 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
577 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
578 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
579 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
580 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
581 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
582 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
584 * mactoolbox.c: New file.
586 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
588 * search.c (compile_pattern_1): Treat non-nil and non-string of
589 search-spaces-regexp as nil.
591 2008-04-05 Eli Zaretskii <eliz@gnu.org>
593 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
595 2008-03-31 Chong Yidong <cyd@stupidchicken.com>
597 * xdisp.c (next_overlay_string): Don't set
598 overlay_strings_at_end_processed_p if we're currently reading from
601 * fileio.c (auto_save_error_occurred): New var.
602 (auto_save_error): Set it.
603 (Fdo_auto_save): Don't overwrite the error message if an auto-save
606 2008-03-31 Jason Rumney <jasonr@gnu.org>
608 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
610 2008-03-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
612 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
613 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
615 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
616 [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
617 Use kCFAbsoluteTimeIntervalSince1970.
618 (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
619 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
621 [MAC_OSX] (socket_callback): Do nothing.
622 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
624 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
626 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
628 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
629 (mac_get_window_bounds): Move extern to macterm.h.
630 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
631 (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
632 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
634 * macgui.h: Replace WindowPtr with WindowRef.
635 (USE_MAC_TOOLBAR): New define.
636 (USE_CG_DRAWING): Don't require USE_ATSUI.
638 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
639 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
640 Replace ControlHandle with ControlRef.
641 [!TARGET_API_MAC_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
642 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
643 [TARGET_API_MAC_CARBON] (menu_target_item_handler): Don't call next
644 handler. Return immediately unless popup is activated.
645 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
646 Remove argument. Install handler to application.
647 (set_frame_menubar): Don't change deep_p.
648 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
649 FRAME_OUTER_TO_INNER_DIFF_Y.
650 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
651 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
652 [HAVE_DIALOGS]: New macros.
653 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
655 (fill_menu) [TARGET_API_MAC_CARBON]: Use SetMenuItemHierarchicalMenu.
656 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
657 (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]: Put special
658 treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p in #if 0
659 as it is not compatible with y-or-n-p-with-timeout.
660 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
661 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
662 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
663 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
664 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
665 Run timers during dialog popup.
666 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
667 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: New variable.
668 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
669 event loop should be quit.
670 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Quit dialog event loop
671 if quit_dialog_event_loop is set.
673 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
674 [MAC_OSX] (install_service_handler): Rename from init_service_handler.
675 All callers changed. Return OSStatus value.
676 (Selection): New typedef. Use instead of ScrapRef.
677 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
678 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
679 (mac_clear_selection): Rename from clear_scrap.
680 (get_flavor_type_from_symbol): New argument SEL and subsume function of
681 scrap_has_target_type. All uses changed.
682 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
683 (mac_selection_has_target_p): New functions.
684 (mac_put_selection_value): Rename from put_scrap_string.
685 (mac_get_selection_value): Rename from get_scrap_string.
686 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
687 (put_scrap_private_timestamp, scrap_has_target_type)
688 (get_scrap_private_timestamp): Remove functions.
689 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
690 (x_own_selection, x_get_local_selection):
691 Use mac_valid_selection_value_p.
692 (x_own_selection): Don't use put_scrap_private_timestamp.
693 Record OWNERSHIP-INFO into Vselection_alist instead.
694 (x_get_local_selection): Don't check type if request is local.
695 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
696 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
698 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
699 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
700 Replace ControlHandle with ControlRef.
701 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
702 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
703 (mac_begin_cg_clip): New arg F. Call SetPortWindowPort. All callers
704 changed so as not to call SetPortWindowPort.
705 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
706 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
707 mac_draw_string_common.
708 (mac_draw_image_string_qd): Likewise.
709 (mac_draw_string_common): Use them. Add INLINE.
710 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
711 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
713 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
714 and FRAME_OUTER_TO_INNER_DIFF_Y.
715 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
716 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
717 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
718 repositioning window to mac_handle_window_event.
719 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
720 saving window location to mac_handle_window_event.
721 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
722 (install_menu_target_item_handler): Remove argument in extern.
723 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
724 Also accept command events.
725 (do_keystroke): New function created from XTread_socket.
726 (init_command_handler): Remove functions.
727 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
728 and save window location by kEventWindowShowing and kEventWindowHiding
729 handlers here. Don't call next handler for window state change and
731 (mac_handle_keyboard_event) [TARGET_API_MAC_CARBON]: New function.
732 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
733 kEventWindowShowing and kEventWindowHiding events. Move installation
734 of mouse, font, text input and menu target item handlers to
735 install_application_handler.
736 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
737 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
739 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
741 (XTread_socket) [TARGET_API_MAC_CARBON]:
742 Consolidate SendEventToEventTarget calls.
743 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
744 Move keyboard handler to mac_handle_keyboard_event.
745 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
746 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
747 init_command_handler. Call install_application_handler.
748 (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background to scroll
750 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
751 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
752 scroll bars on frame edge. Check fringe background extension.
753 Don't clear extended fringe background area.
754 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
755 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
756 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
757 [USE_MAC_TOOLBAR]: New macros.
758 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
759 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
760 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
761 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
762 [USE_MAC_TOOLBAR]: New functions.
763 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
764 manually if previous repositioning has failed.
765 (mac_handle_keyboard_event): Use precomputed event kind.
766 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
767 as tool bar item click. Handle mouse movement over tool bar items.
768 (frame_highlight, frame_unhighlight): Don't call
769 ActivateControl/DeactivateControl here.
770 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
771 frame-notice-user-settings is non-nil.
772 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
773 for kEventParamFMFontStyle.
774 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
775 mac_pass_command_to_system and mac_pass_control_to_system here.
776 (XTread_socket): Call ActivateControl/DeactivateControl here.
777 (XTread_socket) [TARGET_API_MAC_CARBON]:
778 Check mac_pass_command_to_system and mac_pass_control_to_system here.
779 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Don't use invisible
780 frame as parent window for repositioning.
782 * macterm.h (struct scroll_bar): Rename member control_handle_low
783 and control_handle_high to control_ref_low and control_ref_high.
785 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
786 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
787 respectively. All uses changed.
788 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
789 (install_window_handler, remove_window_handler): Replace WindowPtr
790 with WindowRef in externs.
791 (mac_get_window_bounds): Move extern from macfns.c.
792 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
793 (struct mac_output) [USE_MAC_TOOLBAR]: New member toolbar_win_gravity.
794 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
795 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
798 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
799 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
801 2008-03-28 Jason Rumney <jasonr@gnu.org>
803 * image.c (pbm_load): Allow color values up to 65535.
804 Throw an error if max_color_idx is outside the supported range.
805 Report an error when image size is invalid.
806 Read two bytes at a time when raw images have max_color_idx above 255.
808 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
810 * regex.c (EXTEND_BUFFER): Change order of pointer addition
811 operations, to avoid having the difference between pointers
814 2008-03-26 Eli Zaretskii <eliz@gnu.org>
816 * w32.c (readdir): If FindFirstFile/FindNextFile return in
817 cFileName a file name that includes `?' characters, use the 8+3
818 alias in cAlternateFileName instead.
820 2008-03-26 Chong Yidong <cyd@stupidchicken.com>
822 * Version 22.2 released.
824 2008-03-10 Kenichi Handa <handa@ni.aist.go.jp>
826 * fileio.c (Finsert_file_contents): Don't make CCL program to
827 append "CCL: Quitted" when the decoding is quitted, but just
830 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
831 append "CCL: Quitted" when the CCL program is quitted.
832 (setup_ccl_program): Initialize ccl->quit_silently to zero.
834 * ccl.h (struct ccl_program): New member quit_silently.
836 2008-03-08 Andreas Schwab <schwab@suse.de>
838 * process.h (struct Lisp_Process): Declare bit field as unsigned.
840 2008-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
842 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
843 size of resulting string.
845 2008-03-05 Jason Rumney <jasonr@gnu.org>
847 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
849 2008-03-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
851 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
852 Don't pretend as if characters with display property haven't been
853 consumed for string-replacing-string case.
855 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
857 * xdisp.c (get_overlay_strings_1): Add missing argument type.
859 2008-02-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
861 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
863 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
865 * process.c (wait_reading_process_output): Check for window
866 changes caused by timers.
867 Suggested by Johan Bockg
\e,Ae
\e(Brd.
869 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
871 * editfns.c (Fformat): Doc fix.
873 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
875 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
877 2008-02-24 Jason Rumney <jasonr@gnu.org>
879 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
881 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
883 * xterm.c (x_set_offset): Don't change the gravity if
884 CHANGE_GRAVITY is -1.
886 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
888 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
889 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
891 2008-02-18 Jason Rumney <jasonr@gnu.org>
893 * w32fns.c (Fw32_shell_execute): Encode parameters.
895 2008-02-15 Jason Rumney <jasonr@gnu.org>
897 * w32term.c (x_draw_glyph_string_background): Clear the background
898 manually when cleartype is in use.
899 (x_draw_glyph_string_foreground): Draw text transparently when
902 2008-02-09 Eli Zaretskii <eliz@gnu.org>
904 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
906 2008-02-05 Jason Rumney <jasonr@gnu.org>
908 * w32term.c (w32_read_socket) <WM_CHAR>: Use locale-coding-system
909 instead of using mule-unicode-* charsets directly.
911 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
913 * unexec.c (make_hdr):
914 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
916 2008-02-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
918 * macterm.c [MAC_OSX] (fn_keycode_to_keycode_table): Add more entries
919 that ignore kEventKeyModifierFnMask.
920 (XTread_socket) [MAC_OSX]: Move code for ignoring
921 kEventKeyModifierFnMask for some keys ...
922 (mac_mapped_modifiers) [MAC_OSX]: ... to here. Add argument KEY_CODE.
924 (mac_to_emacs_modifiers): New argument UNMAPPED_MODS.
926 (mac_quit_char_key_p, XTread_socket): Get Emacs modifiers from
927 mapped modifiers together with original ones.
929 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
931 * ccl.c (CCL_WRITE_CHAR): Fix overflow checking.
932 (CCL_WRITE_MULTIBYTE_CHAR): Likewise.
934 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
936 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
937 return it ORed with ctrl_modifier.
939 2008-01-26 Thien-Thi Nguyen <ttn@gnuvola.org>
941 * fns.c (Fclrhash): Return TABLE.
943 2008-01-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
945 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
946 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
947 is set even without positional changes.
948 (x_scroll_bar_clear): Set bar->redraw_needed_p.
950 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
952 2008-01-19 Kenichi Handa <handa@m17n.org>
954 * coding.c (detect_coding_iso2022): New arg latin_extra_code_state.
955 Allow Latin extra codes only when *latin_extra_code_state is nonzero.
956 (detect_coding_mask): If there is a NULL byte, detect the encoding
957 as UTF-16 or binary. If Latin extra codes exist, detect the encoding
958 as ISO-2022 only when no other proper encoding is found.
960 2008-01-17 Jason Rumney <jasonr@gnu.org>
962 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
964 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
965 the unicode range available in MULE by locale-coding-system.
966 Improve dbcs lead byte detection. Set event timestamp and modifiers
969 2008-01-17 Glenn Morris <rgm@gnu.org>
971 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
972 to HAVE_X86_64_LIB64_DIR.
974 2008-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
976 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
977 [MAC_OSX] (init_mac_osx_environment): Initialize it.
978 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
979 when used on child processes.
981 2008-01-10 Chong Yidong <cyd@stupidchicken.com>
983 * process.c (wait_reading_process_output): Check for window
984 changes caused by timers.
986 2008-01-08 Glenn Morris <rgm@gnu.org>
988 * emacs.c (main): Set copyright year to 2008.
990 2008-01-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
992 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
995 2008-01-04 Richard Stallman <rms@gnu.org>
997 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
999 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1001 * process.c (make_process): Initialize pty_flag to Qnil instead of 0
1002 as it is not a bit field on Emacs 22 yet.
1004 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
1006 2007-12-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1008 * macmenu.c (fill_menubar) [MAC_OSX]: Add workaround for Mac OS X 10.5
1009 about not changing Help menu title.
1011 2007-12-22 Eli Zaretskii <eliz@gnu.org>
1013 * callint.c (syms_of_callint) <command-history>: Add reference to
1014 history-length in the doc string.
1016 2007-12-17 Jason Rumney <jasonr@gnu.org>
1018 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
1019 before passing as wParam.
1021 2007-12-14 Jason Rumney <jasonr@gnu.org>
1023 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
1024 for characters above 127.
1026 2007-12-13 Jason Rumney <jasonr@gnu.org>
1028 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
1029 before dereferencing array.
1030 (lookup_vk_code): Remove zero comparison.
1032 2007-12-02 Magnus Henoch <mange@freemail.hu>
1034 * process.c (make_process): Initialize pty_flag to 0.
1036 2007-12-02 Jason Rumney <jasonr@gnu.org>
1038 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
1041 2007-12-01 Richard Stallman <rms@gnu.org>
1043 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
1045 2007-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1047 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
1049 (mac_try_close_socket) [MAC_OSX]: New function.
1050 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
1051 Update cfsockets_for_select. Replace invalid CFRunLoop source.
1053 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
1054 Use mac_try_close_socket.
1056 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
1058 * s/gnu-kfreebsd.h: New file.
1060 2007-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1062 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
1064 (copy_dysymtab): Compute relocation base here.
1065 (rebase_reloc_address) [__ppc64__]: New function.
1066 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
1069 2007-11-26 Jason Rumney <jasonr@gnu.org>
1071 * w32proc.c (sys_spawnve): Quote args with wildcards.
1073 2007-11-26 Andreas Schwab <schwab@suse.de>
1075 * process.c (list_processes_1): Fix indentation level of the
1078 2007-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1080 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
1082 (unrelocate) [_LP64]: Set relocation base to address of data segment.
1084 2007-11-23 Andreas Schwab <schwab@suse.de>
1086 * editfns.c (Fformat): Handle %c specially since it requires the
1087 argument to be of type int.
1089 2007-11-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1091 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
1092 file for image is nil.
1094 2007-11-19 Jason Rumney <jasonr@gnu.org>
1096 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): CreateFileMapping
1097 returns NULL on failure.
1099 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1101 * search.c (Fset_match_data): Remove the `evaporate' feature.
1102 (unwind_set_match_data): Don't use the `evaporate' feature.
1104 2007-11-15 Andreas Schwab <schwab@suse.de>
1106 * editfns.c (Fformat): Correctly format EMACS_INT values.
1107 Also take precision into account when formatting an integer.
1109 2007-11-15 Juanma Barranquero <lekktu@gmail.com>
1111 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
1112 (Fx_display_pixel_height, Fx_display_planes)
1113 (Fx_display_color_cells, Fx_server_max_request_size)
1114 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
1115 (Fx_display_visual_class, Fx_display_save_under):
1116 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
1117 (Fx_display_pixel_height, Fx_display_planes)
1118 (Fx_display_color_cells, Fx_server_max_request_size)
1119 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1120 (Fx_display_mm_height, Fx_display_mm_width)
1121 (Fx_display_backing_store, Fx_display_visual_class)
1122 (Fw32_select_font, Fx_display_save_under):
1123 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
1124 (Fx_display_pixel_height, Fx_display_planes)
1125 (Fx_display_color_cells, Fx_server_max_request_size)
1126 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
1127 (Fx_display_save_under): Fix typos in docstrings.
1129 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
1131 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
1132 corresponding to deleted entries; they are an implementation detail.
1133 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
1135 (Fw32_define_rgb_color, Fw32_load_color_file): Fix typos in docstrings.
1136 (Fx_server_version): Reflow docstring.
1137 (Fw32_shell_execute): Doc fixes.
1139 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
1141 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
1142 if w32_parse_hot_key returned nil.
1144 2007-11-10 Juri Linkov <juri@jurta.org>
1146 * puresize.h (BASE_PURESIZE): Increase to 1130000.
1148 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1150 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
1152 2007-11-07 Chong Yidong <cyd@stupidchicken.com>
1154 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
1157 * xdisp.c (handle_face_prop): Fix last change.
1159 2007-11-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1161 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
1162 abort with a message on unhandled store_type values.
1164 2007-11-04 Richard Stallman <rms@gnu.org>
1166 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
1167 not just for after-strings and before-strings.
1168 Call face_for_overlay_string and pass the overlay to it.
1169 (handle_display_prop): Determine whether property came from an overlay.
1170 Pass OVERLAY arg to handle_single_display_spec.
1171 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
1172 (load_overlay_strings): Fill in it->string_overlays.
1173 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
1175 * xfaces.c (face_for_overlay_string): Function renamed from
1176 face_at_buffer_position_no_overlays, and add arg OVERLAY.
1178 * dispextern.h (struct it): New elt string_overlays.
1179 New elt from_overlay, also in stack.
1180 Rearrange a few elements.
1181 (face_for_overlay_string): Decl renamed from
1182 face_at_buffer_position_no_overlays, and add argument.
1184 2007-11-03 Richard Stallman <rms@gnu.org>
1186 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
1187 to get the base face for an overlay string.
1189 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
1191 * xfaces.c (face_at_buffer_position_no_overlays): New function.
1193 * xdisp.c (handle_stop): Move some code out of loop.
1195 2007-11-01 Johan Bockg
\e,Ae
\e(Brd <bojohan@gnu.org>
1197 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
1198 Don't set s->stippled_p here, since it has already been set by
1199 x_set_glyph_string_gc from x_draw_glyph_string.
1201 2007-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1203 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
1204 Fix conversion from Lisp object to ATSUFontID.
1206 2007-10-30 Jason Rumney <jasonr@gnu.org>
1208 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
1210 2007-10-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1212 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
1213 Don't assume regions are aligned to page boundary.
1214 (print_load_command_name): Add LC_UUID if defined.
1216 2007-10-30 Richard Stallman <rms@gnu.org>
1218 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
1220 2007-10-29 Juanma Barranquero <lekktu@gmail.com>
1222 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
1223 <installation-directory>: Reflow docstring.
1225 2007-10-26 Martin Rudalics <rudalics@gmx.at>
1227 * window.c (window_min_size_2): Don't count header-line.
1229 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
1231 * w32.c (init_environment): Fix tiny memory leak.
1232 (w32_get_resource): Remove unused variable `ok'.
1234 2007-10-24 Jason Rumney <jasonr@gnu.org>
1236 * w32fns.c: Include math.h.
1238 2007-10-24 Richard Stallman <rms@gnu.org>
1240 * frame.c (x_figure_window_size): For fullscreen case,
1241 set USPosition | PPosition without clobbering rest of window_prompting.
1243 * keyboard.c (Fcurrent_idle_time): Doc fix.
1245 * print.c (Fwith_output_to_temp_buffer): Doc fix.
1247 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
1249 * process.c (Fset_process_filter): Doc fix.
1251 2007-10-17 Glenn Morris <rgm@gnu.org>
1253 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
1254 (syms_of_minibuf): Add Qcompletion_ignore_case.
1255 * dired.c (Qcompletion_ignore_case): Change to external.
1256 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
1257 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
1258 (Fread_file_name): Use it rather than intern'ing.
1260 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
1261 (Fread_coding_system): Ignore case of user input.
1263 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1265 * xdisp.c (handle_display_prop): Ignore display specs after
1266 replacing one when string text is being replaced.
1267 (handle_single_display_spec): Pretend as if characters with display
1268 property haven't been consumed only when buffer text is being replaced.
1270 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
1272 * eval.c (do_autoload): Don't save autoloads.
1274 * data.c (Ffset): Save autoload of the function being set.
1276 2007-10-07 John Paul Wallington <jpw@pobox.com>
1278 * xfns.c (x_create_tip_frame): Set the `display-type' frame
1279 parameter before setting up faces.
1281 2007-10-13 Eli Zaretskii <eliz@gnu.org>
1283 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
1284 selected frame'' on MSDOS).
1286 2007-10-12 Martin Rudalics <rudalics@gmx.at>
1288 * frame.c (Qexplicit_name): New variable.
1289 (x_report_frame_params): Report it in parameter alist.
1290 (syms_of_frame): Intern and staticpro it.
1292 2007-10-09 Jason Rumney <jasonr@gnu.org>
1294 * w32term.c (x_set_window_size): Disable code that attempts to tell
1295 Lisp code about a size change before it actually happens.
1297 2007-10-09 Richard Stallman <rms@gnu.org>
1299 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
1300 return HANDLED_RETURN.
1302 2007-10-06 Martin Rudalics <rudalics@gmx.at>
1304 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
1305 when there's an unread command event.
1307 * frame.c (focus_follows_mouse): Moved here from frame.el to allow
1308 window autoselection act appropriately when leaving selected frame.
1309 (syms_of_frame): Initialize focus_follows_mouse.
1310 * frame.h (focus_follows_mouse): Extern it.
1311 * macterm.c (XTread_socket): When focus_follows_mouse is nil
1312 make SELECT_WINDOW_EVENT only if we don't leave the selected
1314 * msdos.c (dos_rawgetc): Likewise.
1315 * w32term.c (w32_read_socket): Likewise.
1316 * xterm.c (handle_one_xevent): Likewise.
1317 * xdisp.c (syms_of_xdisp): In doc-string of
1318 mouse-autoselect-window mention focus-follows-mouse.
1320 2007-10-06 Andreas Schwab <schwab@suse.de>
1322 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
1324 2007-10-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1326 * macterm.c (mac_load_query_font): Fix missing return value.
1327 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
1330 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
1332 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
1334 2007-10-02 Richard Stallman <rms@gnu.org>
1336 * xdisp.c (get_window_cursor_type): Implement documented behavior
1337 for cursor-in-non-selected-windows = t.
1339 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
1341 * lread.c (Fload): Fix typo in docstring.
1343 2007-09-29 Juri Linkov <juri@jurta.org>
1345 * emacs.c (standard_args): Change priority of "--no-splash"
1346 from 40 to 3. Add "--no-desktop" with the same priority.
1348 2007-09-29 Jason Rumney <jasonr@gnu.org>
1350 * w32.c (w32_get_resource): Always close registry keys.
1352 2007-09-27 Jason Rumney <jasonr@gnu.org>
1354 * makefile.w32-in (LIBS): Add COMCTL32.
1356 * w32fns.c (globals_of_w32fns): Init common controls.
1358 2007-09-21 Richard Stallman <rms@gnu.org>
1360 * image.c (our_memory_buffer): Renamed from omfib_buffer.
1362 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
1364 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
1365 underline_color, to draw strike-through.
1367 2007-09-20 Glenn Morris <rgm@gnu.org>
1369 * process.c (Fmake_network_process): Doc fix.
1371 2007-09-19 Richard Stallman <rms@gnu.org>
1373 * buffer.c (Foverlays_at): Doc fix.
1375 2007-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1377 * fns.c (Fplist_put): Preserve uneven tail data.
1379 2007-09-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1381 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
1382 when we have no file name for the icon.
1383 (xg_tool_bar_expose_callback): Remove.
1384 (xg_create_tool_bar): Don't connect expose signal to
1385 xg_tool_bar_expose_callback.
1387 2007-09-16 Andreas Schwab <schwab@suse.de>
1389 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
1390 values instead of zapping them.
1392 2007-09-15 Glenn Morris <rgm@gnu.org>
1394 * s/hpux.h: No longer define `static' as nothing.
1396 2007-09-14 Glenn Morris <rgm@gnu.org>
1398 * fringe.c (init_fringe_bitmap) <swap nibble>: Move to file scope.
1399 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
1400 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
1401 scope and rename to omfib_buffer for clarity.
1402 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
1404 2007-09-14 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
1406 * gtkutil.c (xg_get_file_with_chooser): Move GCPRO1 after declarations.
1408 * termhooks.h (enum event_kind): Remove trailing comma.
1410 * frame.h (enum): Remove trailing comma.
1412 2007-09-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1414 * keyboard.c, xterm.c, xfaces.c (abs): #undef before #define.
1416 2007-09-12 Glenn Morris <rgm@gnu.org>
1418 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
1419 (menu_grab_callback): All uses changed.
1421 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
1422 (x_reply_selection_request): All uses changed.
1424 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
1426 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
1428 2007-09-06 Glenn Morris <rgm@gnu.org>
1430 * gtkutil.c (menu_grab_callback) <cnt>:
1431 * xselect.c (x_reply_selection_request) <cnt>: Move static
1432 variable to file scope.
1434 2007-09-02 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
1436 * w32proc.c (delete_child): Don't terminate threads of zombies.
1438 2007-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1440 * keyboard.c: Qrtl is new.
1441 (parse_tool_bar_item): Handle :rtl keyword.
1442 (syms_of_keyboard): Intern :rtl keyword.
1444 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
1446 * gtkutil.c (file_for_image, find_rtl_image): New functions.
1447 (xg_get_image_for_pixmap): Use file_for_image
1448 (update_frame_tool_bar): If direction is RTL, use RTL image if
1449 defined. Use Gtk stock images or named theme icons if defined.
1451 2007-08-29 Martin Rudalics <rudalics@gmx.at>
1453 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
1455 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
1456 last-repeatable-command.
1457 (init_kboard): Initialize Vlast_repeatable_command.
1458 (command_loop_1): Set it to real_this_command unless that was
1459 bound to an input event.
1460 (mark_kboards): Mark it.
1462 2007-08-28 Juanma Barranquero <lekktu@gmail.com>
1464 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
1467 2007-08-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1469 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
1470 so no Lisp code is executed.
1472 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1474 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
1475 for nonexistent or zero-width glyph in composition glyph.
1477 2007-08-27 Richard Stallman <rms@gnu.org>
1479 * eval.c (condition-case): Doc fix.
1481 2007-08-27 Masatake YAMATO <jet@gyve.org>
1483 * xfaces.c (tty_supports_face_attributes_p): Fix code
1484 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
1485 was copied and not edited.
1487 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
1489 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
1491 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
1493 * lread.c (Qold_style_backquotes): New var.
1494 (syms_of_lread): Init and staticpro it.
1495 (load_warn_old_style_backquotes): New fun.
1496 (Fload): Use them to warn about old style backquotes.
1497 (end_of_file_error, Fload): Remove unused vars.
1499 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
1501 * lread.c (Vold_style_backquotes): New var.
1502 (syms_of_lread): Init and export it to Elisp.
1503 (read1): Set it when we find an old-style (back)quote.
1505 2007-08-22 Jason Rumney <jasonr@gnu.org>
1507 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
1509 2007-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1511 * insdel.c (reset_var_on_error): New fun.
1512 (signal_before_change, signal_after_change):
1513 Use it to reset (after|before)-change-functions to nil in case of error.
1514 Bind inhibit-modification-hooks to t.
1515 Don't bind (after|before)-change-functions to nil while they run.
1517 2007-08-19 Andreas Schwab <schwab@suse.de>
1519 * alloc.c (pure): Round PURESIZE up.
1521 2007-08-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1523 * xterm.c (handle_one_xevent): Remove check that mouse click is in
1526 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
1528 * term.c (tty_default_color_capabilities): Declare static
1529 variables in file scope, to avoid HPUX compiler problem.
1531 2007-08-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1533 * gtkutil.c (update_frame_tool_bar): Use -1 as index
1534 to gtk_toolbar_insert.
1536 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1538 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
1539 filling pixmap with stippled background.
1541 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
1543 * print.c (new_backquote_output): Rename from old_backquote_output.
1544 (print): Inverse its logic (according to its name) so as to match the
1545 behavior of new_backquote_flag in lread.c.
1547 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1549 * gmalloc.c (posix_memalign): New function.
1551 2007-08-08 Glenn Morris <rgm@gnu.org>
1553 * Replace `iff' in doc-strings and comments.
1555 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
1557 * dispextern.h (struct image): New members.
1559 * image.c: Sync to trunk version.
1560 (search_image_cache, uncache_image, image-refresh): New functions.
1561 Check for fg and bg colors.
1562 (lookup_image): Use search_image_cache. Cache fg and bg colors.
1563 (pbm_load): Another check for invalid image data.
1564 (png_load): Ignore default background field.
1566 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
1568 2007-08-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1570 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
1572 2007-08-07 Sam Steingold <sds@gnu.org>
1574 * gmalloc.c (__morecore): Fix the declaration to comply with the
1577 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1580 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
1581 Call malloc_enable_thread on interactive startup.
1583 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
1584 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
1585 [USE_PTHREAD]: Conditionalize with it.
1586 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
1587 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
1590 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
1592 * xdisp.c (redisplay_window): When restoring original buffer
1593 position, make sure it is still valid.
1595 2007-08-06 Martin Rudalics <rudalics@gmx.at>
1597 * window.c (window_min_size_2): New function.
1598 (window_min_size_1, size_window, Fdisplay_buffer)
1599 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
1600 windows without mode- or header-lines when window-min-height is
1602 (size_window): Reset nodelete_p after testing it, following an
1603 earlier note by Kim F. Storm.
1604 (display_buffer): Do not set split_height_threshold to twice the
1605 value of window_min_height to avoid changing the value of a
1606 customizable variable. Rather explicitly check whether the
1607 height of the window that shall be splitted is at least as large
1608 as split_height_threshold.
1609 (Fwindow_full_width_p): New defun.
1610 (syms_of_window): Defsubr it.
1612 * window.h: Add EXFUN for Fwindow_full_width_p.
1614 2007-08-06 Andreas Schwab <schwab@suse.de>
1616 * window.c (Fdisplay_buffer): Use NILP.
1617 (Fset_window_scroll_bars): Likewise.
1619 2007-08-03 Richard Stallman <rms@gnu.org>
1621 * fileio.c (Fvisited_file_modtime): Use make_time.
1623 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
1625 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
1628 2007-07-30 Stefan Monnier <monnier@iro.umontreal.ca>
1630 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
1632 2007-07-25 Glenn Morris <rgm@gnu.org>
1634 * Relicense all FSF files to GPLv3 or later.
1636 * COPYING: Switch to GPLv3.
1638 2007-07-24 Jason Rumney <jasonr@gnu.org>
1640 * w32fns.c (x_real_positions): Get real position from OS instead of
1643 2007-07-23 Jason Rumney <jasonr@gnu.org>
1645 * filelock.c (current_lock_owner): Allow for @ sign in username.
1647 2007-07-20 Eli Zaretskii <eliz@gnu.org>
1649 * makefile.w32-in (clean): Don't delete *~.
1651 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
1652 Define if not defined.
1654 2007-07-18 Jason Rumney <jasonr@gnu.org>
1656 * w32proc.c (w32_executable_type): Handle 64 bit executables.
1658 2007-07-16 Juanma Barranquero <lekktu@gmail.com>
1660 * coding.c (Ffind_operation_coding_system):
1661 * eval.c (For, Fand, Fprogn):
1662 * keyboard.c (Ftrack_mouse):
1663 * print.c (Fwith_output_to_temp_buffer):
1664 * window.c (Fsave_window_excursion): Doc fixes (some reported
1665 by Johan Bockg
\e,Ae
\e(Brd).
1667 2007-07-15 Richard Stallman <rms@gnu.org>
1669 * data.c (Fsetq_default): Doc fix.
1671 * eval.c (Fsetq): Doc fix.
1673 2007-07-11 Jason Rumney <jasonr@gnu.org>
1675 * makefile.w32-in (LIBS): Include OLE32.
1677 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
1678 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
1680 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1682 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1683 Check WINDOWP before using XWINDOW.
1685 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
1687 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
1689 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1691 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
1692 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
1693 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
1694 (_free_internal, memalign): Use them.
1695 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
1696 Initialize to PTHREAD_MUTEX_INITIALIZER.
1697 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
1698 (morecore_nolock): Rename from morecore. All uses changed.
1699 Use only nolock versions of internal allocation functions.
1700 (_malloc_internal_nolock, _realloc_internal_nolock)
1701 (_free_internal_nolock): New functions created from
1702 _malloc_internal, _realloc_internal, and _free_internal.
1703 (_malloc_internal, _realloc_internal, _free_internal): Use them.
1704 Copy hook value to automatic variable before its use.
1705 (memalign): Copy hook value to automatic variable before its use.
1707 2007-06-21 Jason Rumney <jasonr@gnu.org>
1709 * image.c (convert_mono_to_color_image): Swap fore and background.
1711 2007-06-20 Jason Rumney <jasonr@gnu.org>
1713 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
1714 (w32_free_bdf_font): Unmap memory not handle.
1716 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
1718 * w32.c (_wsa_errlist): Fix typo in error message.
1719 (init_environment): Ignore any environment variable from the
1720 registry having a null value.
1722 2007-06-17 Jason Rumney <jasonr@gnu.org>
1724 * w32menu.c (add_menu_item): Don't use multibyte string functions on
1727 2007-06-17 Juanma Barranquero <lekktu@gmail.com>
1729 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
1730 Fix typo in docstring.
1732 2007-06-16 Eli Zaretskii <eliz@gnu.org>
1734 * w32menu.c (add_menu_item): Escape `&' characters in menu items
1735 and their keybindings.
1737 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
1739 * composite.c (update_compositions): Check validity of compositions.
1741 2007-06-10 Jason Rumney <jasonr@gnu.org>
1743 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
1745 2007-06-06 Jason Rumney <jasonr@gnu.org>
1747 * s/ms-w32.h: Don't define HAVE_TZNAME.
1749 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
1751 * image.c (xpm_load): Remove spurious call to
1752 xpm_init_color_cache.
1754 2007-06-06 Martin Rudalics <rudalics@gmx.at>
1756 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
1758 2007-06-05 Dan Nicolaescu <dann@ics.uci.edu>
1760 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
1761 * xdisp.c (next_element_from_buffer):
1762 * window.c (delete_window):
1763 * term.c (term_mouse_highlight):
1764 * msdos.c (getdefdir):
1765 * macterm.c (mac_create_bitmap_from_bitmap_data)
1766 (init_font_name_table):
1768 * data.c (Fmake_local_variable):
1769 * ccl.c (ccl_driver): Likewise.
1771 2007-06-04 Juanma Barranquero <lekktu@gmail.com>
1773 * window.c (Fshrink_window): Reflow docstring.
1775 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
1777 * Version 22.1 released.
1779 * xfns.c (x_set_name_internal): Undo last change.
1781 2007-06-01 Richard Stallman <rms@gnu.org>
1783 * xfns.c (x_encode_text): Add GCPRO.
1784 (x_set_name_internal): Separate USE_GTK and non-USE_GTK cases.
1786 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1788 * xfns.c (x_set_name_internal): Save encoded name before
1789 x_encode_text in case string data is relocated.
1791 2007-05-31 Richard Stallman <rms@gnu.org>
1793 * buffer.c (syms_of_buffer): Doc fix.
1795 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1797 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
1798 around current_column call.
1800 2007-05-24 Chong Yidong <cyd@stupidchicken.com>
1802 * xdisp.c (redisplay_window): If first window line is a
1803 continuation line, recompute the new window start instead of
1806 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1808 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
1809 Call mac_wakeup_from_rne on window size change.
1811 2007-05-22 Richard Stallman <rms@gnu.org>
1813 * xterm.c (x_connection_closed): Remove NO_RETURN.
1815 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1817 * syntax.c (skip_chars): Update syntax-table only after we checked that
1818 the new location is valid.
1820 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1822 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
1823 mac_get_window_bounds.
1825 2007-05-17 Glenn Morris <rgm@gnu.org>
1827 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
1829 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1831 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
1832 dead key repeat and up events.
1834 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
1836 * xterm.c (XTread_socket): Revert last change.
1838 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
1840 * image.c (pbm_load): Correctly check image size for greyscale pbm.
1842 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
1844 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1846 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object mixup (YAILOM)
1848 2007-05-06 Richard Stallman <rms@gnu.org>
1850 * process.c: Undo May 3 change.
1852 2007-05-03 Per Cederqvist <ceder@lysator.liu.se> (tiny change)
1854 * process.c (Faccept_process_output): Revert 2006-03-22 change so
1855 that the third argument once again is in microseconds (not
1856 milliseconds). This makes it compatible with Emacs 21 and
1857 earlier. Problem found by Henrik Rindl
\e,Av
\e(Bw.
1859 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1861 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
1862 (Fx_popup_dialog) [MAC_OSX]: Likewise.
1864 2007-04-29 Richard Stallman <rms@gnu.org>
1866 * insdel.c (replace_range): For undo, record insertion first.
1868 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1870 * xdisp.c (try_window_reusing_current_matrix): Fix number of
1873 2007-04-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1875 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
1877 * gtkutil.c (xg_update_menubar, create_menus): Create empty
1878 submenu for menu bar items.
1880 2007-04-24 Chong Yidong <cyd@stupidchicken.com>
1882 * xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
1883 values of the actual window.
1885 2007-04-23 Richard Stallman <rms@gnu.org>
1887 * process.c (Fstart_process): Doc fix.
1889 2007-04-23 Eli Zaretskii <eliz@gnu.org>
1891 * process.c (Fstart_process): Doc fix.
1893 2007-04-22 Richard Stallman <rms@gnu.org>
1895 * abbrev.c (Fdefine_abbrev): Doc fix.
1897 * keymap.c (Fdefine_key): Minor doc fix.
1899 2007-04-21 Glenn Morris <rgm@gnu.org>
1901 * keymap.c (Fdefine_key): Fix info ref in doc string.
1903 2007-04-20 Glenn Morris <rgm@gnu.org>
1905 * sysdep.c (init_system_name): Don't accept localhost.localdomain.
1907 2007-04-19 Juanma Barranquero <lekktu@gmail.com>
1909 * minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties)
1910 (Fminibuffer_completion_contents, Fdelete_minibuffer_contents):
1913 2007-04-16 Chong Yidong <cyd@stupidchicken.com>
1915 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
1916 Set garbaged flag in presence of window margins.
1917 (showing_window_margins_p): New function.
1919 * xdisp.c (cursor_row_p): Only end row on newline if it's a
1920 display string. Suggested by Lennart Borgman.
1922 2007-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1924 * alloc.c (mem_insert): Set min_heap_address and max_heap_address
1925 if they are not yet initialized.
1927 2007-04-15 Chong Yidong <cyd@stupidchicken.com>
1929 * xdisp.c (redisplay_window): When deciding whether or not to
1930 recenter, don't use the reset values of BEG_UNCHANGED and
1933 2007-04-13 Kim F. Storm <storm@cua.dk>
1935 * buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes
1936 and check that buffer is still alive upon return.
1938 2007-04-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1940 * macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h.
1941 (mac_screen_config_changed): New variable.
1942 (mac_handle_dm_notification, init_dm_notification_handler)
1943 (mac_get_screen_info): New functions.
1944 [MAC_OS8] (main): Call init_dm_notification_handler.
1945 (mac_initialize) [MAC_OSX]: Likewise.
1946 (XTread_socket): Call mac_get_screen_info if screen config changed.
1947 (mac_initialized): Make static.
1948 (mac_initialize_display_info): Remove function.
1949 (mac_term_init): Call mac_get_screen_info. Add partial contents of
1950 mac_initialize_display_info.
1952 2007-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1954 * mac.c (xrm_get_preference_database, Fmac_get_preference)
1955 [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
1957 * macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
1958 Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
1959 (mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
1960 (mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
1961 dpyinfo->width are those of whole screen.
1963 2007-04-10 Chong Yidong <cyd@stupidchicken.com>
1965 * xdisp.c (note_mode_line_or_margin_highlight): Don't decrement
1966 glyph pointer before start of glyph row.
1968 2007-04-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1970 * s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
1971 (C_SWITCH_SYSTEM): Remove `-I../mac/src'.
1973 2007-04-09 Martin Rudalics <rudalics@gmx.at>
1975 * indent.c (Fmove_to_column): Set next_boundary with correct start pt.
1977 2007-04-08 Richard Stallman <rms@gnu.org>
1979 * xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
1981 2007-04-07 Chong Yidong <cyd@stupidchicken.com>
1983 * editfns.c (Ftranspose_regions): Validate interval before setting
1986 2007-04-03 Eli Zaretskii <eliz@gnu.org>
1988 * emacs.c (main): Fix instructions for building Emacs for profiling.
1990 2007-04-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1992 * gtkutil.c (xg_update_menubar): Call g_list_next after moving
1995 2007-04-02 Juanma Barranquero <lekktu@gmail.com>
1997 * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
1999 2007-04-01 Chong Yidong <cyd@stupidchicken.com>
2001 * keymap.c (Fcommand_remapping): New optional argument.
2002 (where_is_internal): Use new keymaps argument.
2003 (Fkey_binding): Caller changed.
2005 * keyboard.c (command_loop_1): Caller changed.
2007 2007-03-31 Eli Zaretskii <eliz@gnu.org>
2009 * window.c (Fget_lru_window): Doc fix.
2011 2007-03-30 Chong Yidong <cyd@stupidchicken.com>
2013 * undo.c (Fprimitive_undo): Give clearer error message when trying
2014 to change text properties outside accessible part of buffer.
2016 2007-03-29 Kim F. Storm <storm@cua.dk>
2018 * process.c (wait_reading_process_output) [HAVE_PTYS]:
2019 When EIO happens, clear channel from descriptor masks before raising
2020 SIGCHLD signal to avoid busy loop between read and sigchld_handler.
2021 (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
2023 2007-03-29 Juanma Barranquero <lekktu@gmail.com>
2025 * buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.
2027 * process.c (Fformat_network_address): Return nil when the
2028 argument vector contains invalid values.
2030 2007-03-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2032 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
2033 [USE_PTHREAD]: Include pthread.h.
2034 (malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
2035 (malloc_initialize_1): New function created from __malloc_initialize.
2036 (__malloc_initialize): Use it.
2037 (LOCK, UNLOCK): New macros to make malloc etc. thread safe.
2038 (_malloc_internal, _free_internal, _realloc_internal): Use them.
2040 * lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.
2042 2007-03-27 Juanma Barranquero <lekktu@gmail.com>
2044 * process.c (Fformat_network_address): Make args array big enough
2045 to format IPv6 addresses.
2047 2007-03-27 Glenn Morris <rgm@gnu.org>
2049 * m/hp800.h: Restore HP-UX support (removed 2007-01-29).
2051 2007-03-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2053 * macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
2054 screen size in pixels by millimeters per pixel of main display.
2056 * macselect.c (get_scrap_target_type_list, x_own_selection):
2057 Move assignments outside predicate macros.
2058 (Vselection_converter_alist): Doc fix.
2060 * macterm.c (create_text_encoding_info_alist): Move assignments
2061 outside predicate macros.
2062 (mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
2063 dpyinfo->width are those of whole screen.
2065 2007-03-26 Sam Steingold <sds@gnu.org>
2067 * process.c (sigchld_handler): Delay by 1ms instead of 1s to
2068 alleviate sluggishness (the original problem is still fixed).
2070 2007-03-25 Kim F. Storm <storm@cua.dk>
2072 * intervals.c (merge_properties): Use explicit loop instead of
2073 Fplist_member to avoid QUIT. Don't use Fcdr.
2074 (intervals_equal): Likewise. Rewrite loop to perform length check
2075 on the fly rather than calling Flength. Don't use Fcar.
2077 2007-03-24 Eli Zaretskii <eliz@gnu.org>
2079 * editfns.c (Fgoto_char): Doc fix.
2081 * indent.c (Findent_to): Doc fix.
2083 2007-03-24 Chong Yidong <cyd@stupidchicken.com>
2085 * editfns.c (Ftranspose_regions): Use set_text_properties_1
2086 instead of Fset_text_properties to avoid GC. Signal after change.
2088 2007-03-24 Eli Zaretskii <eliz@gnu.org>
2090 * xfns.c (Fx_show_tip): Doc fix.
2092 * macfns.c (Fx_show_tip): Doc fix.
2094 * w32fns.c (Fx_show_tip): Doc fix.
2096 2007-03-23 Kim F. Storm <storm@cua.dk>
2098 * intervals.c (merge_properties, intervals_equal):
2099 Use Fplist_member instead of Fmemq to find properties.
2101 2007-03-23 Glenn Morris <rgm@gnu.org>
2103 * unexhp9k800.c: Restore file with clarified legal status.
2104 * m/sr2k.h: Restore since dependency unexhp9k800.c is restored.
2106 2007-03-22 Chong Yidong <cyd@stupidchicken.com>
2108 * widget.c (EmacsFrameSetCharSize): Catch X errors.
2110 2007-03-22 Kenichi Handa <handa@m17n.org>
2112 * fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
2113 non-encoded file name.
2114 (Frename_file): Likewise.
2115 (Fadd_name_to_file): Likewise.
2116 (Fmake_symbolic_link): Likewise.
2118 2007-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2120 * Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
2121 (dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
2122 (dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
2124 (term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
2126 (macfns.o): Remove duplicate dependency on systime.h.
2128 * dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
2129 (Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
2131 * fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
2132 (Fdo_auto_save): Add BLOCK_INPUT around fwrite.
2134 * keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
2135 (Fopen_dribble_file): Add BLOCK_INPUT around fclose.
2137 * lread.c: Include blockinput.h.
2138 (readchar, Fget_file_char): Add BLOCK_INPUT around getc.
2139 (unreadchar): Add BLOCK_INPUT around ungetc.
2140 (load_unwind): Add BLOCK_INPUT around fclose.
2142 * print.c: Include blockinput.h.
2143 (Fredirect_debugging_output): Add BLOCK_INPUT around fclose.
2145 * process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
2146 Clear immediate_quit before calling freeaddrinfo.
2147 Add BLOCK_INPUT around freeaddrinfo.
2149 * term.c: Include blockinput.h.
2150 (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
2152 2007-03-19 Richard Stallman <rms@gnu.org>
2154 * keyboard.c (NUM_RECENT_KEYS): Bump up to 300.
2156 * buffer.c (syms_of_buffer): Doc fix.
2158 2007-03-18 Chong Yidong <cyd@stupidchicken.com>
2160 * image.c (pbm_load): Signal error for invalid image size.
2162 2007-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2164 * macterm.c (note_mouse_movement): Don't return immediately for
2167 * macmenu.c (popup_activated_flag): New variable.
2168 (x_activate_menubar, mac_menu_show): Set it during menu tracking.
2169 (popup_activated): New function.
2171 * xdisp.c (redisplay_internal, note_mouse_highlight):
2172 Check popup_activated for MAC_OS.
2174 2007-03-17 Juanma Barranquero <lekktu@gmail.com>
2176 * buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
2177 Reported by Nikolaj Schumacher <n_schumacher@web.de>.
2179 2007-03-17 Richard Stallman <rms@gnu.org>
2181 * dired.c (file_name_completion): gcpro NAME.
2183 2007-03-17 Chong Yidong <cyd@stupidchicken.com>
2185 * xdisp.c (try_window_id): Increment matrix positions if the
2186 buffer's byte count has increased, but not the character count.
2188 2007-03-12 Andreas Schwab <schwab@suse.de>
2190 * lisp.h: Declare check_obarray.
2192 * process.c (Fdelete_process): Properly handle deletion of first
2193 element of deleted_pid_list.
2194 (create_process): Declare pid as pid_t.
2196 2007-03-12 Kim F. Storm <storm@cua.dk>
2198 * process.c (sigchld_handler): Change type of pid to pid_t.
2199 Scan deleted_pid_list explicitly to avoid using Fmember which don't
2200 know about mark bits and make_fixnum_or_float which may malloc.
2201 Reported by Andreas Schwab.
2203 * keyboard.c (read_key_sequence): Store original event into keybuf
2204 when replaying sequence with local keymap(s) from string.
2206 2007-03-12 Glenn Morris <rgm@gnu.org>
2208 * editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
2209 savings" to "daylight saving").
2211 2007-03-11 Sam Steingold <sds@gnu.org>
2213 * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
2215 2007-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2217 * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
2219 2007-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2221 * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
2222 Ignore mouse wheel movement on title bar or tool bar.
2224 2007-03-10 Chong Yidong <cyd@stupidchicken.com>
2226 * keyboard.c (help_form_saved_window_configs): New var.
2227 (read_char_help_form_unwind): New function.
2228 (read_char): Don't restore window configuration if a mouse click
2229 arrives while the help form is being displayed.
2231 2007-03-10 Kim F. Storm <storm@cua.dk>
2233 * xdisp.c (redisplay_window): Don't automatically select a new window
2234 start for a contination line during mouse-click.
2236 2007-03-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2238 * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
2240 2007-03-09 Juanma Barranquero <lekktu@gmail.com>
2242 * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
2244 2007-03-08 Richard Stallman <rms@gnu.org>
2246 * keyboard.c (syms_of_keyboard): Doc fix.
2248 2007-03-08 Chong Yidong <cyd@stupidchicken.com>
2250 * minibuf.c (Ftry_completion): Don't short circuit if
2251 completion-ignore-case is non-nil.
2253 2007-03-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2255 * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
2256 Undo 2006-03-06 changes.
2258 * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
2259 bar if its width is smaller than that of Aqua small scroll bar.
2261 2007-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
2263 * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
2264 to handle correctly prompts with read-only property.
2266 2007-03-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2268 * sound.c (wav_play): Check header->data_length to see how much we
2270 (alsa_period_size): Convert ALSA period size in frames to bytes.
2271 (alsa_write): Return if frames is zero.
2273 2007-03-06 Kenichi Handa <handa@m17n.org>
2275 * xselect.c (Vselection_coding_system): Documentation improved.
2277 2007-03-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2279 * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
2280 USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
2281 (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if
2282 internal border width has changed.
2284 * macterm.h (struct mac_output): New member `internal_border_width'.
2286 2007-03-04 Richard Stallman <rms@gnu.org>
2288 * window.c (Fdisplay_buffer): Doc fix.
2290 2007-03-03 Glenn Morris <rgm@gnu.org>
2292 * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
2293 not include -lX11 on Solaris.
2295 2007-03-02 Stuart D. Herring <herring@lanl.gov>
2297 * keymap.c (Fkey_binding): Don't consider one-element lists as events.
2299 2007-03-01 Kenichi Handa <handa@m17n.org>
2301 * process.c (send_process_object): Check the process status and
2302 signal an error if something is wrong.
2304 2007-02-28 Chong Yidong <cyd@stupidchicken.com>
2306 * insdel.c (Fcombine_after_change_execute): Return nil if
2307 combine_after_change_buffer has been invalidated.
2309 2007-02-25 Dan Nicolaescu <dann@ics.uci.edu>
2311 * m/xtensa.h: New file.
2313 2007-02-24 Nick Roberts <nickrob@snap.net.nz>
2315 * .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
2316 as strings and not character arrays.
2318 2007-02-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2320 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
2321 (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
2322 scroll bar handle size in order to avoid `scroll backward' problem.
2323 (x_scroll_bar_create, XTset_vertical_scroll_bar)
2324 [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
2326 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2327 New member `min_handle'.
2329 2007-02-23 Kim F. Storm <storm@cua.dk>
2331 * print.c (print): Reset print_number_index if Vprint_number_table
2334 2007-02-23 Eli Zaretskii <eliz@gnu.org>
2336 * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
2339 2007-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2341 * macmenu.c (mac_menu_show): Call unbind_to early. Use variable
2342 `menu_item_selection' as in W32 version.
2343 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
2344 braces to avoid ambiguous `else'.
2346 * macterm.c (mac_display_info_for_display): Remove function.
2347 (mac_flush_display_optional) [USE_CG_DRAWING]: New function.
2348 (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
2349 flush_display_optional.
2350 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
2351 New argument MOUSE_POS. All uses changed. Set bar->dragging to
2352 negative integer if scroll bar handle is pressed.
2353 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
2354 Negative bar->dragging means scroll bar handle is not dragged.
2355 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
2356 offset of scroll bar handle from negative bar->dragging.
2357 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
2358 bar click is compared against mapped one. Set down/up_modifier
2359 for scroll bar click event with control key.
2361 * macterm.h (x_display_info_for_display): Remove extern.
2362 (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
2363 value to be unpacked to 32-bit on LP64 model.
2365 2007-02-23 Kenichi Handa <handa@m17n.org>
2367 * process.c (send_process_object_unwind): New function.
2368 (send_process_object): New function.
2369 (Fprocess_send_region): Call send_process_object.
2370 (Fprocess_send_string): Likewise.
2372 2007-02-22 Jason Rumney <jasonr@gnu.org>
2374 * w32menu.c (w32_menu_show): Mark the frame's menu as inactive
2375 when popup menu finishes.
2377 * w32fns.c (menubar_in_use): New flag.
2378 (w32_wnd_proc) <WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND>:
2381 * w32menu.c (Fx_popup_menu): Don't free menu strings here.
2382 (w32_menu_show): Do it here instead.
2384 * w32fns.c (w32_wnd_proc) <WM_INITMENU>: Set menubar_active frame
2387 * w32menu.c (current_popup_menu): Make available globally.
2388 (menubar_selection_callback): Free menu strings before pushing the
2389 menu event into the keyboard buffer. Remove menu_command_in_progress.
2391 * w32fns.c (current_popup_menu): Use from w32menu.c.
2392 (w32_wnd_proc) <WM_EXITMENULOOP, WM_TIMER>: Use menubar_active
2393 and current_popup_menu to determine whether a menubar menu has
2396 * w32term.h (w32_output): Remove menu_command_in_progress.
2398 2007-02-22 Kim F. Storm <storm@cua.dk>
2400 * dispnew.c (update_frame, update_single_window): Set force_p here if
2401 redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
2402 (update_window, update_frame_1): ... instead of here.
2403 (update_text_area): Clear mouse face on header lines.
2405 2007-02-21 Kim F. Storm <storm@cua.dk>
2407 * minibuf.c (Fassoc_string): Doc fix. Allow symbol for KEY too.
2409 2007-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2411 * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
2412 [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
2414 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
2415 Layout Services routines to get current Unicode keyboard layout.
2417 2007-02-20 Chong Yidong <cyd@stupidchicken.com>
2419 * frame.c (x_set_screen_gamma): Apply gamma value to the frame's
2422 2007-02-19 Kim F. Storm <storm@cua.dk>
2424 * minibuf.c (Fassoc_string): Allow symbols as keys.
2426 * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
2427 handle while dragging, except when we get close to eob.
2428 Fix position and size calculations so we don't scroll backwards
2429 just by clicking on the handle.
2431 2007-02-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2433 * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
2434 [HAVE_CARBON]: Remove target.
2435 (macosx-app) [HAVE_CARBON]: Don't depend on it.
2437 2007-02-17 Juanma Barranquero <lekktu@gmail.com>
2439 * callproc.c (syms_of_callproc) <doc-directory>:
2440 <configure-info-directory>:
2441 (Fgetenv_internal): Fix typos in docstrings.
2443 * doc.c (Fsubstitute_command_keys): Fix typo in docstring.
2445 2007-02-16 Andreas Schwab <schwab@suse.de>
2447 * frame.c (Fmodify_frame_parameters): Return a value.
2449 * editfns.c (Fformat): Add support for '+' flag.
2450 * doprnt.c (doprnt1): Likewise. Fix overflow checking.
2452 2007-02-14 Chong Yidong <cyd@stupidchicken.com>
2454 * s/umips.h: Unused file removed.
2456 2007-02-14 Juanma Barranquero <lekktu@gmail.com>
2458 * xfaces.c (Fcolor_distance): Don't continue checking a color for
2459 errors after it has been correctly parsed as an RGB list.
2461 2007-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2463 * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
2465 2007-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2467 * macfns.c (Fx_focus_frame): Move current process to foreground if
2469 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
2471 (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
2472 Fmac_set_font_panel_visibility. All uses changed. Rename argument
2475 * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
2476 (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
2477 MakeMeTheFrontProcess.
2479 2007-02-12 Chong Yidong <cyd@stupidchicken.com>
2481 * frame.c (x_set_screen_gamma): Clear face cache.
2483 2007-02-11 Juanma Barranquero <lekktu@gmail.com>
2485 * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
2488 2007-02-10 Eli Zaretskii <eliz@gnu.org>
2490 * window.c (Fwindow_height, Fwindow_hscroll)
2491 (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
2492 (Fwindow_end, Fwindow_display_table, Fwindow_text_height):
2493 Document the effect of WINDOW arg being nil.
2495 2007-02-08 Kim F. Storm <storm@cua.dk>
2497 * minibuf.c (read_minibuf): Fix 2007-01-30 change.
2498 Use Qlambda as interim value of Vminibuffer_completing_file_name.
2499 (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
2500 (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
2502 2007-02-07 Juanma Barranquero <lekktu@gmail.com>
2504 * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
2507 2007-02-07 Eli Zaretskii <eliz@gnu.org>
2509 * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
2512 2007-02-06 Chong Yidong <cyd@stupidchicken.com>
2514 * frame.c (Fmodify_frame_parameters): Don't bind
2515 Qinhibit_default_face_x_resources, which has no effect.
2516 (Qinhibit_default_face_x_resources): Symbol deleted.
2518 2007-02-03 Eli Zaretskii <eliz@gnu.org>
2520 * indent.c (Fmove_to_column): Document that the argument COLUMN is
2521 taken from prefix numeric argument.
2523 2007-02-03 Juanma Barranquero <lekktu@gmail.com>
2525 * lread.c (syms_of_lread) <load-history>: Doc fix.
2527 2007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
2529 * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
2530 Use the foreground color of the scroll-bar face when drawing
2531 the scroll-bar's border.
2533 2007-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2535 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
2536 calling wm_supports.
2538 2007-02-01 Juanma Barranquero <lekktu@gmail.com>
2540 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
2541 Wording by Eli Zaretskii.
2543 2007-01-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2545 * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
2547 2007-01-30 Richard Stallman <rms@gnu.org>
2549 * minibuf.c (read_minibuf):
2550 Save and clear Vminibuffer_completing_file_name.
2551 (read_minibuf_unwind): Restore it.
2552 (Vminibuffer_completion_table, Qminibuffer_completion_table)
2553 (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
2554 (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
2555 (Vminibuffer_completing_file_name): Definitions moved up.
2557 2007-01-29 Chong Yidong <cyd@stupidchicken.com>
2559 * m/hp800.h: Restore, removing HP-UX support.
2561 2007-01-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2563 * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
2565 2007-01-28 Richard Stallman <rms@gnu.org>
2567 * minibuf.c (Ftry_completion, Fall_completions)
2568 (Fcompleting_read, Ftest_completion):
2569 Rename arg ALIST or TABLE to COLLECTION.
2571 2007-01-27 Chong Yidong <cyd@stupidchicken.com>
2573 * unexhp9k800.c: Remove due to lack of legal papers.
2575 * m/sr2k.h, m/hp800.h: Remove due to dependence on above.
2577 2007-01-27 Eli Zaretskii <eliz@gnu.org>
2579 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
2581 * minibuf.c (Fcompleting_read): Doc fix.
2583 2007-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2585 * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
2587 * Makefile.in: Use XFT_LIBS if defined.
2589 2007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2591 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
2592 BLOCK_INPUT/UNBLOCK_INPUT.
2594 * blockinput.h (interrupt_input_blocked): Declare volatile.
2596 * keyboard.c (interrupt_input_blocked): Declare volatile.
2598 * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
2600 2007-01-24 Kim F. Storm <storm@cua.dk>
2602 * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
2604 2007-01-23 Juanma Barranquero <lekktu@gmail.com>
2606 * editfns.c (Finsert_char): Doc fix.
2607 (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
2609 2007-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2611 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
2612 Don't pass keyboard modifiers to mac_store_drag_event, but put
2613 them as kEventParamKeyModifiers Apple event parameter.
2615 2007-01-21 Chong Yidong <cyd@stupidchicken.com>
2617 * xdisp.c (try_window): Revert previous change.
2619 * dispnew.c (update_text_area): Revert 2006-09-17 change.
2620 Always redraw non-mode-line rows with mouse-face.
2622 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
2624 * xdisp.c (try_window): Clear mouse-face highlights first.
2626 * window.c (set_window_buffer): Revert 2006-11-22 change.
2628 2007-01-20 Eli Zaretskii <eliz@gnu.org>
2630 * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
2631 (xbuffer, xcons, xcar, xcdr): Fix doc strings.
2633 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
2635 * keyboard.c (read_key_sequence): Extract local map only if the
2636 given position is in an accessible buffer region.
2638 2007-01-19 Nick Roberts <nickrob@snap.net.nz>
2640 * .gdbinit: Reformat documentation so that first sentence
2641 displays properly with "help user-defined" (like apropos).
2643 2007-01-18 Bruno Haible <bruno@clisp.org> (tiny change)
2645 * epaths.in: Move PATH_DOC from local/info to local/share/info.
2647 2007-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2649 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
2650 Create movable modal window instead of movable alert window.
2651 (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
2654 * macselect.c (Fmac_resume_apple_event): Set error number when
2655 descriptor type of reply is non-null.
2657 2007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2659 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
2660 Use DisableControl for disabled items. Set default button to first
2661 enabled one. Use icon of application in execution.
2663 2007-01-13 Eli Zaretskii <eliz@gnu.org>
2665 * process.c (Fdelete_process, Fprocess_id, sigchld_handler):
2666 Copy PID into EMACS_INT to avoid GCC warnings.
2668 * fns.c (maybe_resize_hash_table): Copy new size of hash table
2669 into EMACS_INT to avoid GCC warnings.
2671 * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
2672 geteuid and getuid into EMACS_INT to avoid GCC warnings.
2674 * dired.c (Ffile_attributes): Fix last change.
2676 2007-01-12 Eli Zaretskii <eliz@gnu.org>
2678 * dired.c (Ffile_attributes): Copy some members of `struct stat'
2679 into int's to avoid GCC warnings about limited range of short in
2680 arguments to FIXNUM_OVERFLOW_P.
2682 2007-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2684 * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
2685 (mac_handle_dialog_event, install_dialog_event_handler)
2686 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
2687 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2688 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
2689 (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2690 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2691 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2692 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2693 (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
2694 (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
2695 (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
2697 * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
2698 Call mac_prepare_for_quickdraw.
2699 (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
2700 outside #ifdef MAC_OSX.
2701 (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
2702 outside #ifdef MAC_OSX.
2703 (mac_check_bundle) [MAC_OSX]: Remove unused function.
2705 * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
2706 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
2708 2007-01-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2710 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
2711 block/unblock SIGIO.
2713 2007-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
2715 * editfns.c (Fformat): Allow integer-format to work with floats of size
2716 larger than most-positive-fixnum (but still smaller than MAXINT).
2718 * dired.c (Ffile_attributes): Use floats for large uids/gids.
2720 2007-01-09 Eli Zaretskii <eliz@gnu.org>
2722 * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
2724 2007-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2726 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
2729 * image.c (XDrawLine) [MAC_OS]: Remove macro.
2730 (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
2731 (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
2734 * macgui.h (Display): Typedef to opaque type.
2736 * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
2737 (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
2738 Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
2739 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
2740 Use mac_quit_char_key_p.
2742 * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
2743 (XCreateGC): Change type of 2nd argument to void *.
2744 (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2746 (mac_to_emacs_modifiers): Change return type to int.
2747 [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
2748 (mac_mapped_modifiers): New function.
2749 (XTread_socket): Use it.
2750 [USE_TSM] (mac_handle_text_input_event): Likewise.
2751 (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2752 (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
2754 (mac_determine_quit_char_modifiers, init_quit_char_handler)
2755 [MAC_OSX]: Remove functions.
2756 (make_ctrl_char) [MAC_OSX]: Add extern.
2757 (mac_quit_char_key_p) [MAC_OSX]: New function.
2758 (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
2760 * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
2761 (XCreateGC): Change type in extern.
2762 (XDrawLine): Rename from mac_draw_line_to_pixmap.
2763 (mac_quit_char_key_p) [MAC_OSX]: Add extern.
2765 2007-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2767 * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
2768 interrupt_input_pending.
2770 * xterm.h (x_display_info): New: net_supported_atoms,
2771 nr_net_supported_atoms and net_supported_window.
2773 * xterm.c (last_user_time): New variable.
2774 (handle_one_xevent): Set last_user_time from events that have Time.
2775 Set net_supported_window to 0 when reparented.
2776 (wm_supports): New function.
2777 (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
2778 (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
2779 and net_supported_window.
2781 2007-01-05 Kim F. Storm <storm@cua.dk>
2783 * indent.c (Fvertical_motion): Fix it overshoot check for overlay
2784 strings without embedded newlines immediately followed by newline.
2786 2007-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2788 * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
2789 (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
2790 gmtime/localtime/emacs_memftimeu/mktime.
2792 * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
2794 [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
2796 * macgui.h (struct _XGC) [USE_CG_DRAWING
2797 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
2800 * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
2801 (restore_show_help_function, menu_target_item_handler)
2802 [TARGET_API_MAC_CARBON]: New functions.
2803 (install_menu_target_item_handler): New function.
2804 (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
2807 * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
2808 (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
2809 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
2810 (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
2811 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
2812 (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
2813 (mac_cg_color_black) [USE_CG_DRAWING
2814 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
2815 (init_cg_color) [USE_CG_DRAWING]: New function.
2816 (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
2817 CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
2818 (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
2819 (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
2820 Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
2821 CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
2822 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
2823 (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
2824 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
2826 (install_drag_handler, remove_drag_handler): Make extern.
2827 (install_menu_target_item_handler): Add extern.
2828 (install_window_handler): Call install_menu_target_item_handler.
2829 [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
2830 (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
2832 * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
2834 2007-01-04 Juanma Barranquero <lekktu@gmail.com>
2836 * window.c (Fwindow_end): Fix use of >= operator.
2838 2007-01-03 Richard Stallman <rms@gnu.org>
2840 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
2842 2007-01-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2844 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
2847 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
2848 parent of the menu item. Get menu item widget from event.
2849 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
2850 unhighlight_id has been removed.
2851 (create_menus): Connect enter/leave-notify-event to the menu instead
2852 of individual items.
2854 2006-12-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2856 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
2857 xg_tool_bar_menu_proxy.
2858 (xg_tool_bar_menu_proxy): New function.
2859 (xg_tool_bar_proxy_callback): New function.
2861 2006-12-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2863 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
2864 (xg_tool_bar_callback): Remove check for button.
2865 (update_frame_tool_bar): Put an event box in the tool bar and a button
2866 in the event box. Attach enter/leave-notify-event to the event box.
2868 2006-12-30 Richard Stallman <rms@gnu.org>
2870 * keymap.c (Fdefine_key): Doc fix.
2872 2006-12-29 Kim F. Storm <storm@cua.dk>
2874 * frame.h (struct frame): New member minimize_tool_bar_window_p.
2876 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
2877 (Vauto_resize_tool_bars): ... this.
2878 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
2879 to describe new value `grow-only', and use of C-l.
2880 (display_tool_bar_line): Only use default face for border below
2881 toolbar if not grow-only (to get acceptable visual appearence).
2882 Explicitly set visible_height for empty toolbar lines.
2883 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
2884 minimize_tool_bar_window_p flag.
2886 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
2887 when called without arg to redraw with minimum toolbar height.
2890 2006-12-29 Jason Rumney <jasonr@gnu.org>
2892 * s/ms-w32.h (tzname): Do not define in msvc8.
2893 (utime): Do not define in msvc8.
2895 * regex.c (regerror): Change parameter name err_code.
2897 2006-12-26 Richard Stallman <rms@gnu.org>
2899 * search.c (Fsearch_forward): Doc fix.
2901 * callint.c (Finteractive): Doc fix.
2903 2006-12-25 Kim F. Storm <storm@cua.dk>
2905 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
2907 2006-12-23 Eli Zaretskii <eliz@gnu.org>
2909 * keyboard.c (some_mouse_moved): Fix last change.
2911 2006-12-22 Eli Zaretskii <eliz@gnu.org>
2913 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
2915 2006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
2917 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
2918 * m/sh3el.h: New file.
2920 2006-12-22 Eli Zaretskii <eliz@gnu.org>
2922 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
2924 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
2925 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
2926 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
2927 (clean): Delete stamp_BLD.
2929 2006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2931 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
2932 Call mac_update_proxy_icon also when buffer modification flag changed.
2933 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
2934 but compare FSRef/FSSpec of resolved alias.
2936 2006-12-21 Kim F. Storm <storm@cua.dk>
2938 * w32.c (_sys_wait_accept): Fix handle leak.
2940 2006-12-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2942 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
2945 2006-12-20 Kim F. Storm <storm@cua.dk>
2947 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
2949 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
2951 * keyboard.c (syms_of_keyboard) <double-click-time>:
2952 * mac.c (Fmac_code_convert_string):
2953 * search.c (Fsearch_forward): Doc fixes.
2955 2006-12-19 Kim F. Storm <storm@cua.dk>
2957 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
2958 a sigusr1 event instead of [signal usr1] sequence, and signal events
2959 are now supposed to be handled via special-event-map.
2961 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
2962 (make_lispy_event): Don't generate Qsignal prefix for code 0.
2963 Abort if signal code is unknown.
2964 (store_user_signal_events): Don't make Qsignal prefix (code 0).
2965 (Qsignal): Move declaration back to process.c.
2966 (syms_of_keyboard): Don't intern or staticpro it here.
2968 * process.c (Qsignal): Declare here.
2969 (syms_of_process): Intern or staticpro it.
2971 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
2973 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
2975 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
2977 * buffer.c (syms_of_buffer) <buffer-display-table>:
2978 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
2980 2006-12-17 Richard Stallman <rms@gnu.org>
2982 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
2983 to Ffile_name_completion.
2985 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
2986 (Ffile_name_completion): New arg PREDICATE.
2988 2006-12-17 Juanma Barranquero <lekktu@gmail.com>
2990 * buffer.c (Fkill_buffer): Doc fix.
2991 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
2993 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
2995 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
2997 2006-12-16 Eli Zaretskii <eliz@gnu.org>
2999 * w32fns.c (w32-window-exists-p): New function.
3000 (syms_of_w32fns): Defsubr it.
3002 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
3004 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
3006 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
3008 2006-12-15 Eli Zaretskii <eliz@gnu.org>
3010 * emacs.c (USAGE3): Clarify documentation of --color.
3012 2006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3014 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
3016 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
3017 [!MAC_OSX] (select): Use them.
3018 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
3019 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
3021 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
3022 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
3023 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
3025 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
3026 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
3028 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
3029 ATSUGetGlyphBounds if not necessary.
3030 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
3031 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
3032 (fm_get_style_from_font, atsu_find_font_from_family_name)
3033 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
3034 [USE_ATSUI]: New functions.
3035 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
3036 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
3037 Don't get metrics for Latin-1 right half characters.
3038 (mac_load_query_font): Don't load font if space width is not positive.
3039 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
3040 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
3041 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
3043 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
3045 2006-12-15 Kim F. Storm <storm@cua.dk>
3047 * keyboard.c (ignore_mouse_drag_p): New global var.
3048 (some_mouse_moved): Return 0 if it is non-zero.
3049 (make_lispy_event): Generate click event on mouse up if
3050 ignore_mouse_drag_p is non-zero, even if mouse moved.
3051 Clear ignore_mouse_drag_p on mouse down/up.
3053 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
3054 is resized to avoid generating a mouse drag event.
3056 2006-12-14 Juanma Barranquero <lekktu@gmail.com>
3058 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
3059 minimum tracking size. Remove non-working old hack to do the same.
3061 2006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3063 * emacs.c (handle_user_signal): Move function to keyboard.c.
3064 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
3066 * keyboard.c (make_lispy_event): Use find_user_signal_name.
3067 (read_avail_input): Store pending user signal events.
3068 (struct user_signal_info): New struct.
3069 (user_signals): New variable.
3070 (add_user_signal, store_user_signal_events)
3071 (find_user_signal_name): New functions.
3072 (handle_user_signal): Move function from emacs.c. Don't store
3073 USER_SIGNAL_EVENT here, but increment number of pending signals.
3075 * keyboard.h (add_user_signals): Add extern.
3077 2006-12-11 Juanma Barranquero <lekktu@gmail.com>
3079 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
3080 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
3081 <line-spacing, left-margin>: Doc fixes.
3083 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
3085 2006-12-10 Kim F. Storm <storm@cua.dk>
3087 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
3089 2006-12-10 Juanma Barranquero <lekktu@gmail.com>
3091 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
3092 * buffer.c (syms_of_buffer) <default-major-mode>:
3093 * keymap.c (Flookup_key):
3094 * lread.c (Feval_buffer, Feval_region):
3095 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
3096 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
3097 * marker.c (Fmarker_insertion_type):
3098 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
3099 * msdos.c (syms_of_msdos) <delete-exited-processes>:
3100 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3101 <x-underline-at-descent-line>:
3102 * xdisp.c (format-mode-line):
3103 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
3104 <x-underline-at-descent-line>: Doc fixes.
3106 2006-12-10 Andreas Schwab <schwab@suse.de>
3108 * systime.h (EMACS_GET_TIME): Remove check for
3109 HAVE_STRUCT_TIMEZONE which is never defined.
3111 2006-12-10 Alan Mackenzie <acm@muc.de>
3113 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
3114 result is now neither the last elt nor optional for OLDSTATE.
3116 2006-12-09 Eli Zaretskii <eliz@gnu.org>
3118 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
3119 extract the process ID from a Lisp float.
3121 2006-12-09 Chong Yidong <cyd@stupidchicken.com>
3123 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
3125 2006-12-08 Eli Zaretskii <eliz@gnu.org>
3127 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
3128 platforms where long is 64-bit.
3130 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
3132 2006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
3134 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
3136 2006-12-08 Kenichi Handa <handa@m17n.org>
3138 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
3140 2006-12-08 Juanma Barranquero <lekktu@gmail.com>
3142 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3144 2006-12-07 Kim F. Storm <storm@cua.dk>
3146 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
3147 (Fsignal_process): Don't use strncasecmp.
3149 2006-12-05 Glenn Morris <rgm@gnu.org>
3151 * abbrev.c (Qforce): New Lisp_Object.
3152 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
3153 abbrevs, unless 'force is applied.
3154 (syms_of_abbrev): Add Qforce.
3156 2006-12-04 Kim F. Storm <storm@cua.dk>
3158 * process.c (parse_signal): Rename macro from handle_signal.
3159 (Fsignal_process): Also accept lower-case variants of signal
3160 names (to align with signal names generated by Emacs itself).
3162 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
3163 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
3164 first with code == 0 [signal] and one with code == sig number.
3165 (main): Use it as handler for SIGUR1 and SIGUSR2.
3167 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
3168 if first event in [signal xxx] sequence.
3169 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
3170 (syms_of_keyboard): Don't intern and staticpro them.
3171 (Qsignal): Declare here.
3172 (syms_of_keyboard): Intern and staticpro it.
3173 (make_lispy_event): Use it. Intern symbols on the fly for other
3174 USER_SIGNAL_EVENTs events.
3176 * process.c (Qsignal): Declare extern.
3177 (syms_of_process): Don't intern/staticpro it here.
3179 * process.c (read_process_output): Abort if carryover < 0.
3181 2006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3183 * config.in: Regenerate.
3185 * fileio.c [__NetBSD__]: Don't define `unix'.
3186 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
3189 2006-12-04 Glenn Morris <rgm@gnu.org>
3191 * Makefile.in (version): New variable, set by configure.
3192 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
3194 2006-12-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3196 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
3199 2006-12-01 Eli Zaretskii <eliz@gnu.org>
3201 * w32fns.c (Fw32_shell_execute): Doc fix.
3203 2006-11-30 Chong Yidong <cyd@stupidchicken.com>
3205 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
3206 lines ending in tab.
3208 2006-11-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3210 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
3212 (XTframe_raise_lower): ... to here.
3214 2006-11-30 Kenichi Handa <handa@m17n.org>
3216 * regex.c (regex_compile): Fix previous change.
3218 2006-11-29 Juanma Barranquero <lekktu@gmail.com>
3220 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
3222 2006-11-28 Chong Yidong <cyd@stupidchicken.com>
3224 * config.in: Regenerate.
3226 2006-11-28 Kenichi Handa <handa@m17n.org>
3228 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
3229 multibyte character.
3231 2006-11-27 Chong Yidong <cyd@stupidchicken.com>
3233 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
3235 2006-11-27 Kim F. Storm <storm@cua.dk>
3237 * window.c (set_window_buffer): Refactor recent changes.
3239 2006-11-27 Jason Rumney <jasonr@gnu.org>
3241 * w32term.c (w32_msg_worker): Declare correctly.
3242 (w32_initialize): Don't cast w32_msg_worker.
3244 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
3246 2006-11-26 Chong Yidong <cyd@stupidchicken.com>
3248 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
3251 2006-11-25 Eli Zaretskii <eliz@gnu.org>
3253 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
3254 as per the calling sequence change on 2006-07-11.
3256 2006-11-25 Chong Yidong <cyd@stupidchicken.com>
3258 * window.c (set_window_buffer): Use BLOCK_INPUT.
3260 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
3262 * fns.c (substring_both): Add missing address operator.
3264 2006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3266 * fns.c: Use AREF/ASIZE macros.
3267 (concat): Provide the full ANSI prototype.
3269 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
3271 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3273 2006-11-23 William Smith <William.Smith@global360.com> (tiny change)
3275 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
3277 2006-11-22 Alfred M. Szmidt <ams@gnu.org> (tiny change)
3279 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
3280 /usr/pkg/lib from the library search path.
3281 (LD_SWITCH_X_DEFAULT): New macro.
3283 2006-11-22 Chong Yidong <cyd@stupidchicken.com>
3285 * window.c (set_window_buffer): Clear mouse highlight if it is in
3288 2006-11-21 Chong Yidong <cyd@stupidchicken.com>
3290 * xfaces.c (realize_default_face): Check if the default font name
3291 exists on this display before trying to use it.
3293 2006-11-21 Richard Stallman <rms@gnu.org>
3295 * fileio.c: Break line before &&, not after.
3297 2006-11-20 Eli Zaretskii <eliz@gnu.org>
3299 * fns.c (concat) [!__GNUC__]: Add prototype.
3301 2006-11-20 Kenichi Handa <handa@m17n.org>
3303 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
3304 check the tailing slash of a filename.
3306 2006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
3308 * indent.c (Fvertical_motion): Include composition in the case of
3311 2006-11-19 Andreas Schwab <schwab@gnu.org>
3313 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
3315 * xmenu.c (Fx_popup_menu): Initialize selection.
3317 2006-11-18 Andreas Schwab <schwab@suse.de>
3319 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
3321 2006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
3323 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
3324 to avoid gcc 2.96 error.
3326 2006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
3328 * search.c (simple_search): In the loop of backward searching,
3329 check also the byte position against the limit.
3331 2006-11-14 Romain Francoise <romain@orebokech.com>
3333 * minibuf.c (Fcompleting_read): Fix typo in docstring.
3335 2006-11-14 Kenichi Handa <handa@m17n.org>
3337 * coding.c (code_convert_region): Initialize coding->heading_ascii.
3338 (decode_coding_string, code_convert_region): Likewise.
3340 2006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3342 * config.in: Regenerate.
3344 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
3345 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
3346 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
3347 CGDisplayScreenSize is available.
3349 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
3350 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
3351 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
3352 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
3353 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
3354 CancelMenuTracking is available.
3356 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
3357 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
3358 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
3359 CGContextShowGlyphsWithAdvances is available.
3361 2006-11-13 Jason Rumney <jasonr@gnu.org>
3363 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
3365 2006-11-13 Nozomu Ando <nand@mac.com>
3367 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
3368 Fix address calculations for case END < START.
3369 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
3371 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
3373 * coding.c (Fencode_sjis_char, Fencode_big5_char):
3374 Improve argument/docstring consistency.
3376 * editfns.c (Fmessage): Doc fixes.
3378 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
3380 2006-11-12 Chong Yidong <cyd@stupidchicken.com>
3382 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
3384 2006-11-12 Romain Francoise <romain@orebokech.com>
3386 * xselect.c (selection-coding-system): Fix docstring.
3388 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
3390 * category.c (Fchar_category_set): Improve arg/docstring consistency.
3393 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
3394 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
3395 (Fstring_make_unibyte): Fix typos in docstrings.
3397 2006-11-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3399 * xterm.h (struct x_display_info): Fix indentation.
3401 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
3402 (x_check_fullscreen): Call do_ewmh_fullscreen.
3403 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
3405 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
3407 * term.c: Define fullscreen_hook.
3408 (syms_of_term): Initialize fullscreen_hook to NULL.
3410 * termhooks.h: Add fullscreen_hook.
3412 2006-11-08 Juanma Barranquero <lekktu@gmail.com>
3414 * bytecode.c (Fbyte_code):
3415 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
3417 2006-11-06 Juanma Barranquero <lekktu@gmail.com>
3419 * lread.c (syms_of_lread):
3420 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
3422 2006-11-06 Martin Rudalics <rudalics@gmx.at>
3424 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
3426 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
3427 Return nil if building without menus.
3429 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
3430 Return nil if building without menus.
3432 2006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
3434 * s/netbsd.h (POSIX_SIGNALS): Define.
3436 2006-11-05 Martin Rudalics <rudalics@gmx.at>
3438 * macmenu.c (Fmenu_or_popup_active_p): New function.
3439 (syms_of_macmenu): Defsubr it.
3441 * w32menu.c (Fmenu_or_popup_active_p): New function.
3442 (syms_of_w32menu): Defsubr it.
3443 (popup_activated_flag, popup_activated): Remove.
3445 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
3446 check popup_activated.
3448 * xmenu.c (Fmenu_or_popup_active_p): New function.
3449 (syms_of_xmenu): Defsubr it.
3451 2006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3453 * unexmacosx.c (malloc_cookie): Remove unused variable.
3454 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
3455 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
3456 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
3457 (num_unexec_regions, unexec_regions): Make variables static.
3458 (print_regions, find_emacs_zone_regions): Make static.
3459 (unexec_region_info): New typedef.
3460 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
3462 (unexec_regions_recorder): Subtract size of trailing null pages from
3463 filesize. Show filesize.
3464 (unexec_regions_merge): Don't merge if null pages of preceding region
3465 is not too small. Use long format in printf.
3466 (copy_segment, copy_data_segment): Show filesize.
3467 (copy_data_segment): Write filesize bytes of region data.
3468 Adjust filesize in segment command accordingly.
3469 (dump_it): Use long format in printf.
3471 2006-11-05 Juanma Barranquero <lekktu@gmail.com>
3473 * dosfns.c (Finsert_startup_screen):
3474 * fns.c (Ffeaturep, syms_of_fns):
3475 * frame.c (syms_of_frame): Fix typos in docstrings.
3477 * unexcw.c (unexec): Fix typo in output message.
3479 2006-11-04 Ralf Angeli <angeli@caeruleus.net>
3481 * w32fns.c (w32_createwindow): Remove code for handling -geometry
3482 command line option and `initial-frame-alist' which is superfluous
3483 after the last change to `w32_createwindow'.
3485 2006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
3487 * w32proc.c (sys_wait): Only wait for processes with fd<0.
3488 Others should be handled by sys_select instead. Fixes problems
3489 with (progn (start-process "" nil "ls") (call-process "ls")).
3491 2006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3493 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
3494 avoid gcc 2.95 error.
3496 2006-11-04 Chong Yidong <cyd@stupidchicken.com>
3498 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
3499 wicon is null, insert an empty button.
3501 2006-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3503 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
3506 2006-11-02 Juanma Barranquero <lekktu@gmail.com>
3508 * emacs.c (Fkill_emacs): Fix typo in docstring.
3510 2006-11-02 Nozomu Ando <nand@mac.com>
3512 * unexmacosx.c (mach_header, segment_command, vm_region, section)
3513 [_LP64]: New defines.
3514 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
3515 (MH_MAGIC) [_LP64]: Redefine.
3516 (delta): Remove variable.
3517 (curr_file_offset, pagesize): New variables.
3518 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
3519 (data_segment_old_fileoff): Initialize explicitly.
3520 (print_region, unexec_regions_recorder, print_load_command_name)
3521 (copy_segment, copy_data_segment): Use long format in printf.
3522 (MAX_UNEXEC_REGIONS): Increase to 400.
3523 (unexec_regions_recorder): Don't warn too many regions here.
3524 (find_emacs_zone_regions): Warn too many regions here.
3525 (print_load_command_name) [_LP64]: Show correct load command name.
3526 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
3527 Show starting virtual memory address. Don't show ending file offset.
3528 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
3529 (dump_it): Use new local variable `linkedit_delta' and pass to them.
3530 Error if trying to handle multiple DATA segments.
3531 (unexec): Initialize variable `pagesize'.
3533 2006-11-01 Juanma Barranquero <lekktu@gmail.com>
3535 * eval.c (Fcatch): Doc fix.
3537 2006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3539 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
3540 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
3541 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
3542 (xpm_load_image): Add const qualifier to arguments.
3543 [MAC_OS] (xpm_color_key_strings): Make static const.
3545 * mac.c (create_apple_event_from_event_ref)
3546 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
3547 (parse_include_file, parse_binding, parse_component)
3548 (parse_resource_name, parse_value, parse_resource_line)
3549 (xrm_merge_string_database, xrm_get_resource)
3550 (xrm_get_preference_database): Add const qualifier to arguments.
3551 [MAC_OSX] (sys_select): Make variable `context' static const.
3553 * macfns.c (mac_color_map): Make static const.
3554 (mac_color_map_lookup): Add const qualifier to arguments.
3556 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
3558 (name_is_separator): Add const qualifier to arguments.
3560 * macselect.c (init_service_handler): Make variable `specs' static
3563 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
3564 `swap_nibbles' static const.
3565 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
3566 `tags', `sizes', `values' static const.
3567 (mac_draw_string_common): Make variables `context' static.
3568 Make variables `tags', `sizes', and `values' static const.
3569 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
3570 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
3571 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
3572 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
3573 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
3574 qualifier to arguments.
3575 (xlfd_scalable_fields, keycode_to_xkeysym_table)
3576 (fn_keycode_to_keycode_table): Make static const.
3577 (mac_load_query_font): Make variables `tags', `sizes', `values',
3578 `types', and `selectors' static const.
3579 (mac_handle_command_event, mac_handle_window_event):
3580 Make variables `names' and `types' static const.
3581 (init_command_handler, install_window_handler): Make variables
3582 `specs*' static const.
3583 (mac_handle_font_event, mac_handle_text_input_event)
3584 (mac_store_service_event): Make variables `names' and `types'
3585 const. Make variables `names_*' and `types_*' static const.
3587 * macterm.h (create_apple_event_from_event_ref)
3588 (create_apple_event_from_drag_ref, xrm_merge_string_database)
3589 (xrm_get_resource, xrm_get_preference_database): Add const
3590 qualifier to arguments in externs.
3592 2006-10-31 Kenichi Handa <handa@m17n.org>
3594 * xfns.c (xic_create_xfontset): Fix previous change.
3596 2006-10-30 Chong Yidong <cyd@stupidchicken.com>
3598 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
3599 /usr/pkg/lib to library search path.
3601 2006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
3603 * ralloc.c (relinquish): Use a long for excess space counter to
3604 handle 64-bit case correctly.
3606 2006-10-29 Jeramey Crawford <jeramey@jeramey.com>
3608 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
3610 2006-10-29 Juanma Barranquero <lekktu@gmail.com>
3612 * window.c (Fdisplay_buffer): Fix typo in docstring.
3614 2006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
3616 * w32term.c (x_draw_glyph_string_foreground): Set background mode
3617 to TRANSPARENT before using overstrike to simulate bold faces.
3619 * xfaces.c (best_matching_font): Fix logic to decide whether to
3620 use overstriking to simulate bold-face (it was reversed).
3622 2006-10-23 Kim F. Storm <storm@cua.dk>
3624 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
3627 * keyboard.c (read_char): Make an element (t . EVENT) in
3628 unread-command-events add EVENT to the current command's key sequence.
3629 (syms_of_keyboard) <unread-command-events>: Update doc.
3631 2006-10-21 Richard Stallman <rms@gnu.org>
3633 * minibuf.c (Vread_expression_map): Define here.
3634 (Qread_expression_history): New variable.
3635 (syms_of_minibuf): Initialize them.
3636 (Feval_minibuffer): Use Vread_expression_map and
3637 Qread_expression_history.
3639 2006-10-21 Kenichi Handa <handa@m17n.org>
3641 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
3642 card, change it to "*".
3643 (xic_create_xfontset): Call XCreateFontSet for each single
3644 fontname in fontsetname.
3646 2006-10-19 Chong Yidong <cyd@stupidchicken.com>
3648 * callint.c (callint_message): Convert to a Lisp string.
3649 (syms_of_callint): Initialize it.
3650 (callint_message_size): Var deleted.
3651 (Fcall_interactively): Use Fformat instead of doprnt to construct
3654 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3656 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
3658 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3660 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
3662 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
3664 2006-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3666 * xselect.c (x_handle_selection_request): If the converted_selection
3667 is nil or XCDR (converted_selection) is nil, decline the request.
3669 2006-10-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3671 * gtkutil.c (get_utf8_string): Remove warnings with casts.
3672 (xg_tool_bar_button_cb): Ditto.
3673 (xg_tool_bar_callback): Ditto.
3675 2006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3677 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
3679 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
3680 menu bar window matrices on non-X systems.
3682 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
3684 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
3685 adjustment is needed.
3686 (mac_load_query_font): Check if width and height are positive.
3688 2006-10-14 Richard Stallman <rms@gnu.org>
3690 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
3692 2006-10-13 Chong Yidong <cyd@stupidchicken.com>
3694 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
3697 2006-10-12 Chong Yidong <cyd@stupidchicken.com>
3699 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
3702 2006-10-12 Romain Francoise <romain@orebokech.com>
3704 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
3706 2006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
3708 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
3710 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
3712 * xterm.c (x_check_expected_move): Remove unused var `count'.
3714 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
3715 Fdefalias is not declared in any *.h file.
3717 2006-10-09 Chong Yidong <cyd@stupidchicken.com>
3719 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
3721 * keyboard.c (command_loop_1): Handle non-number values of
3722 `minibuffer-message-timeout'.
3723 (Fexecute_extended_command): Fix typo.
3725 * minibuf.c (temp_echo_area_glyphs): Sit for
3726 `minibuffer-message-timeout' seconds.
3728 2006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3730 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
3731 Add argument OVERSTRIKE_P.
3732 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
3734 (mac_draw_string, mac_draw_string_16): Remove functions.
3735 (x_draw_glyph_string_foreground): Use overstrike when needed.
3736 (x_draw_composite_glyph_string_foreground): Likewise.
3737 Use mac_draw_image_string_16 instead of mac_draw_string_16.
3738 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
3739 F instead of DPY. All uses changed. Don't save/restore font.
3741 2006-10-07 Ralf Angeli <angeli@caeruleus.net>
3743 * w32fns.c (w32_createwindow): Honour left and top positions if
3744 supplied explicitly.
3746 2006-10-06 Kim F. Storm <storm@cua.dk>
3748 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
3750 2006-10-05 Chong Yidong <cyd@stupidchicken.com>
3752 * frame.c (Qinhibit_face_set_after_frame_default): New var.
3753 (syms_of_frame): Initialize it.
3754 (x_set_frame_parameters): Avoid resetting :font attributes to the
3757 2006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
3759 * lisp.h (clear_regexp_cache): Declare.
3761 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
3762 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
3763 (clear_regexp_cache): Only flush those regexps which depend on
3766 * regex.c (regex_compile): Set the new `used_syntax' bit.
3768 * regex.h: Remove file local variables.
3769 (struct re_pattern_buffer): New field `used_syntax'.
3771 2006-10-03 Kim F. Storm <storm@cua.dk>
3773 * process.c (list_processes_1): Run sentinels before removing dead
3774 processes. Also remove `closed' network connections.
3776 2006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3778 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
3780 2006-09-30 Eli Zaretskii <eliz@gnu.org>
3782 * config.in: Regenerated.
3784 2006-09-29 Juri Linkov <juri@jurta.org>
3786 * buffer.c (syms_of_buffer): Reorder coding systems in the
3787 docstring of %z to the real order displayed in the modeline.
3789 2006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3791 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
3793 2006-09-26 Chong Yidong <cyd@stupidchicken.com>
3795 * indent.c (Fvertical_motion): Do move back if the Lisp string
3796 being displayed contains newlines.
3798 2006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3800 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
3801 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
3803 2006-09-26 Kenichi Handa <handa@m17n.org>
3805 * keymap.c (Fsingle_key_description): For an invalid char, return
3806 "Invalid char code NNNNN".
3808 2006-09-25 Chong Yidong <cyd@stupidchicken.com>
3810 * callint.c (Fcall_interactively): Doc fix.
3812 2006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3814 * macterm.c (x_underline_at_descent_line): New variable.
3815 (syms_of_macterm): DEFVAR_BOOL it.
3816 (x_draw_glyph_string): Use it.
3817 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
3819 2006-09-25 Kenichi Handa <handa@m17n.org>
3821 * keymap.c (Fsingle_key_description): Return unique names for
3824 2006-09-24 Richard Stallman <rms@gnu.org>
3826 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
3828 2006-09-24 Eli Zaretskii <eliz@gnu.org>
3830 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
3831 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
3833 * w32proc.c (nl_langinfo): New function.
3835 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
3836 (w32-pass-lwindow-to-system, w32-enable-num-lock)
3837 (w32-enable-caps-lock, w32-scroll-lock-modifier)
3838 (w32-lwindow-modifier, w32-rwindow-modifier)
3839 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
3841 2006-09-23 Juanma Barranquero <lekktu@gmail.com>
3843 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
3844 (Fdisplay_completion_list): Fix typos in docstrings.
3846 2006-09-23 Romain Francoise <romain@orebokech.com>
3848 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
3850 2006-09-23 Kenichi Handa <handa@m17n.org>
3852 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
3854 2006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
3856 * regex.c (analyse_first): For eight-bit-control chars, mark both the
3857 char's value and its leading byte in the fastmap.
3858 (re_search_2): When fast-scanning without translation, be careful to
3859 check that we only match the leading byte of a multibyte char.
3861 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
3863 (AT_CHAR_BOUNDARY): New macro.
3865 2006-09-22 Kenichi Handa <handa@m17n.org>
3867 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
3868 whose default value is non-nil.
3870 2006-09-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3872 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
3873 Gtk+ versions < 2.10.
3875 * xfns.c (syms_of_xfns): Fix typo in help text for
3876 x-gtk-file-dialog-help-text.
3878 2006-09-21 Kim F. Storm <storm@cua.dk>
3880 * fns.c (Fmemq): Refill doc string.
3881 (Fmemql): New defun, like memq but using eql.
3882 (syms_of_fns): Defsubr it.
3884 2006-09-20 Kim F. Storm <storm@cua.dk>
3886 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
3887 last visible glyph in window.
3889 * window.c (Fset_window_hscroll, Fwindow_line_height):
3890 Doc fix. Use "off-window" instead of "off-screen".
3891 (Fpos_visible_in_window_p): Likewise.
3892 If POS is t, return info for last visible glyph in window.
3894 2006-09-19 Chong Yidong <cyd@stupidchicken.com>
3896 * search.c (struct regexp_cache): New entry syntax_table.
3897 (compile_pattern_1): Set it.
3898 (syms_of_search): Initialize it.
3899 (compile_pattern): Require the syntax_table entry of the cache
3900 element to match the current syntax table entry.
3902 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
3904 * window.c (Fwindow_end): Fix recent change.
3906 2006-09-19 Kim F. Storm <storm@cua.dk>
3908 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
3909 Doc fix. Use "off-screen" instead of "invisible".
3910 (Fwindow_line_height): Make line numbers 0-based. Make line arg
3911 optional; if nil, use current cursor row. Handle text terminals
3912 properly. Return nil if non-interactive or pseudo-window.
3914 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
3916 * keymap.c: Include alloca.h if available.
3917 (Fkey_binding): Only use AREF after checking it's a vector.
3918 Remove unused var `window'.
3920 2006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3922 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
3925 * mac.c [!MAC_OSX] (select): Fix argument name.
3927 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
3928 menu ID for Apple menu.
3929 (menubar_selection_callback): Remove function.
3930 (find_and_call_menu_selection): New function from xmenu.c.
3931 (x_activate_menubar): Use it.
3932 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
3934 * macterm.c (menubar_selection_callback): Remove extern.
3935 (M_APPLE): Change to 234.
3936 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
3937 (do_menu_choice): Remove function.
3939 * macterm.h (struct mac_output): Remove member menubar_active.
3940 (do_menu_choice): Remove extern.
3941 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
3943 2006-09-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3945 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
3946 x_gtk_file_dialog_help_text.
3948 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
3949 to x-gtk-use-old-file-dialog.
3950 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
3951 x_gtk_file_dialog_help_text.
3953 * xfns.c (syms_of_xfns): Ditto.
3955 2006-09-18 Kim F. Storm <storm@cua.dk>
3957 * window.c (Fwindow_line_visibility): Remove.
3958 (Fwindow_line_height): New defun replacing it.
3959 (syms_of_window): Defsubr it.
3961 2006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3963 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
3964 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
3966 2006-09-17 Jay Belanger <belanger@truman.edu>
3971 * strftime.c: Replace "GNU Library General Public License" by "GNU
3972 General Public License" throughout.
3974 2006-09-17 Kim F. Storm <storm@cua.dk>
3976 * dispnew.c (update_text_area): Undo 2000-07-18 change.
3977 Always redrawing whole row if line has mouse-face in it causes
3978 excessive flickering of the mode line.
3980 2006-09-17 Chong Yidong <cyd@stupidchicken.com>
3982 * search.c (clear_regexp_cache): New function.
3984 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
3986 2006-09-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3988 * gtkutil.c (xg_get_file_with_chooser):
3989 Check x-gtk-show-chooser-help-text before adding the help text.
3991 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
3993 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
3994 will simply crash if we fail.
3996 2006-09-16 Richard Stallman <rms@gnu.org>
3998 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
4000 2006-09-15 Kim F. Storm <storm@cua.dk>
4002 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
4003 (syms_of_window): Defsubr it.
4004 (Fwindow_end): Use window's buffer rather than current buffer.
4006 2006-09-15 Jay Belanger <belanger@truman.edu>
4008 * COPYING: Replace "Library Public License" by "Lesser Public
4009 License" throughout.
4011 2006-09-15 David Kastrup <dak@gnu.org>
4013 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
4015 * keymap.c: include "window.h".
4016 (Fcommand_remapping): New optional POSITION argument.
4017 (Fkey_binding): New optional POSITION argument. Completely rework
4018 handling of mouse clicks to get the same order of keymaps as
4019 `read-key-sequence' and heed POSITION. Also temporarily switch
4020 buffers to location of mouse click and back.
4022 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
4023 for additional argument.
4024 (parse_menu_item): Adjust call of `Fkey_binding' for additional
4026 (read_key_sequence): If there are both `local-map' and `keymap'
4027 text properties at some buffer position, heed both.
4029 * keymap.h: Declare additional optional arguments of
4030 `Fcommand_remapping' and `Fkey_binding'.
4032 2006-09-15 Juanma Barranquero <lekktu@gmail.com>
4034 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
4036 2006-09-14 Andreas Schwab <schwab@suse.de>
4038 * print.c: Whitespace fixup.
4040 2006-09-14 Kim F. Storm <storm@cua.dk>
4042 * xdisp.c (produce_image_glyph): Automatically crop wide images at
4043 right window edge so we can draw the cursor on the same row to
4044 avoid confusing redisplay by placing the cursor outside the visible
4047 2006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4049 * xterm.c (x_initialize): Don't install Xt event timer here.
4050 (x_timeout_atimer_activated_flag): New var.
4051 (x_activate_timeout_atimer): New function to install Xt timer.
4052 (x_send_scroll_bar_event, x_process_timeouts): Use it.
4054 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
4055 (create_and_show_popup_menu, create_and_show_dialog): Use it.
4057 * xterm.h (x_activate_timeout_atimer): Add prototype.
4059 2006-09-13 Richard Stallman <rms@gnu.org>
4061 * print.c (print_string): When printcharfun is t,
4062 copy string contents and call strout on the copy.
4064 * keyboard.c (read_char): If end_time specified, don't put the
4065 event into this_command_keys.
4066 (read_key_sequence): If Voverriding_terminal_local_map is specified,
4067 don't check Voverriding_local_map at all.
4069 2006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4071 * textprop.c (Fnext_property_change, Fnext_single_property_change)
4072 (Fprevious_property_change, Fprevious_single_property_change):
4073 Avoid changing limit, so we can correctly catch the case where the
4074 property is constant up to limit.
4076 2006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4078 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4079 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4080 Undo 2006-09-08 change.
4082 2006-09-11 Chong Yidong <cyd@stupidchicken.com>
4084 * keymap.c (Fkey_binding): Use string position for string objects.
4086 2006-09-11 Kim F. Storm <storm@cua.dk>
4088 * keymap.c (Fkey_binding): Fix last change.
4090 * editfns.c (Fmessage): Recommend using (message "%s" ...).
4092 2006-09-10 Chong Yidong <cyd@stupidchicken.com>
4094 * keymap.c (Fkey_binding): Check for local keymap for mouse click
4097 2006-09-10 Kim F. Storm <storm@cua.dk>
4099 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
4100 and Vunread_post_input_method_events.
4102 * dispnew.c (Fredisplay): Document return value.
4104 2006-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4106 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
4108 * gtkutil.c (xg_display_close): Always change default display if needed,
4109 check for < Gtk+ version 2.10 before calling gdk_display_close.
4111 2006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4113 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
4114 Make variable `ofds' static. Remove variable `maxfd'.
4116 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
4119 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
4120 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
4121 Apply 2006-09-08 change for xmenu.c.
4123 * xfns.c (Fx_file_dialog): Call check_x.
4125 2006-09-10 Kim F. Storm <storm@cua.dk>
4127 * xdisp.c (get_window_cursor_type): Use hollow cursor on
4128 non-transparent images.
4130 2006-09-09 Eli Zaretskii <eliz@gnu.org>
4132 * editfns.c (Fsystem_name): Mention "host" in the doc string.
4133 (syms_of_editfns) <system-name>: Likewise.
4135 2006-09-08 Martin Rudalics <rudalics@gmx.at>
4137 * xdisp.c (mouse_autoselect_window): Remove.
4138 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
4140 * dispextern.h (mouse_autoselect_window): Remove extern.
4141 (Vmouse_autoselect_window): Add extern.
4143 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
4144 instead of mouse_autoselect_window.
4146 * msdos.c (dos_rawgetc): Likewise.
4148 * w32term.c (w32_read_socket): Likewise.
4150 * xterm.c (handle_one_xevent): Likewise.
4152 2006-09-08 Richard Stallman <rms@gnu.org>
4154 * xdisp.c (Vmenu_updating_frame): Define here.
4155 (syms_of_xdisp): DEFVAR it here.
4156 (update_menu_bar): Always return hooks_run.
4157 Set Vmenu_updating_frame.
4159 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
4160 before calculating SELECTED_FRAME.
4162 * xmenu.c (Vmenu_updating_frame): Don't define here.
4163 (syms_of_xmenu): Don't DEFVAR it here.
4165 * xterm.c (x_error_quitter): For BadName error, just return.
4167 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
4169 * casetab.c (init_casetab_once): Call set_case_table.
4171 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
4173 * process.c (inhibit_sentinels): New variable.
4174 (exec_sentinel): Test inhibit_sentinels.
4175 (init_process): Initialize it.
4177 * process.h (inhibit_sentinels): Add decl.
4179 * search.c (looking_at_1, string_match_1, search_command):
4180 Make syntax table's canon table point to eqv table.
4182 2006-09-08 Andreas Schwab <schwab@suse.de>
4184 * print.c (strout): Fix whitespace.
4186 2006-09-08 Kim F. Storm <storm@cua.dk>
4188 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
4190 2006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4192 * mac.c [!MAC_OSX]: Don't include keyboard.h.
4193 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
4194 in the same BLOCK_INPUT block, in case that some input has already
4195 been read asynchronously. Pretend to be interrupted by a signal
4196 if some input is available.
4197 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
4198 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
4199 Now used for ReceiveNextEvent timeout instead of select timeout.
4200 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
4201 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
4202 support. Quit event loop.
4203 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
4204 connect support. Reuse previously allocated CFRunLoopSource.
4205 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
4206 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
4208 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4209 Specify kWindowAsyncDragAttribute.
4211 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
4212 (mac_get_ideal_size): New functions.
4213 (x_set_offset, x_set_window_size, x_make_frame_visible)
4214 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
4215 (install_window_handler, mac_handle_window_event)
4216 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
4217 kEventWindowBoundsChanged.
4218 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
4221 2006-09-07 Andreas Schwab <schwab@suse.de>
4223 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
4224 use lib64 instead of lib.
4226 2006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
4228 * Makefile.in: Avoid double quotes when possible.
4230 2006-09-06 Kenichi Handa <handa@m17n.org>
4232 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
4233 a Lisp string from the result of emacs_memftimeu call.
4235 2006-09-06 Kim F. Storm <storm@cua.dk>
4237 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
4238 so calculate heights even when pos-visible-in-window-p is called
4239 with partially = t. Don't overshoot last_visible_y in move_it_to.
4240 Return row height and row number in new rowh and vpos args.
4241 (cursor_row_fully_visible_p): First line is always "fully visible".
4242 (try_window): Don't clear matrix if vscrolled.
4244 * lisp.h (pos_visible_p): Update prototype.
4246 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
4247 Return row height and row number for partially visible rows.
4248 Modify return value to a 2 element list for fully visible rows and
4249 6 for partially visible row.
4250 (window_scroll_pixel_based): Use pos_visible_p directly instead of
4251 Fpos_visible_in_window_p. Fix auto vscrolling for partially
4252 visible lines. Only vscroll backwards if already vscrolled
4253 forwards. Unconditionally vscroll forwards if PT is first (and
4254 only) line. Set new window start instead of scrolling at
4255 start/end of tall line.
4257 2006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4259 * macterm.c (install_window_handler, mac_handle_window_event)
4260 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
4261 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
4262 ASCII keystroke event.
4264 2006-09-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4266 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
4267 the file chooser message. Only call gtk_file_chooser_set_current_name
4268 when action is SAVE.
4270 2006-09-04 Andreas Schwab <schwab@suse.de>
4272 * Makefile.in: Double all single and back quotes in C-style
4273 comments to help fontifier.
4275 2006-09-03 Jason Rumney <jasonr@gnu.org>
4277 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
4278 (globals_of_w32): Register it as a signal handler.
4280 2006-09-02 Juri Linkov <juri@jurta.org>
4282 * marker.c (Fmarker_position): Doc fix.
4284 2006-09-03 Eli Zaretskii <eliz@gnu.org>
4286 * window.c (syms_of_window) <split-height-threshold>:
4287 <window-min-height, window-min-width>: Doc fix.
4289 2006-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4291 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
4292 for writing files. Call gtk_file_chooser_set_current_name to keep
4295 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
4297 2006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
4299 * fns.c (concat) [__GNUC__]: Declare with
4300 `__attribute__((noinline))'.
4302 * eval.c (apply1, call2) [__GNUC__]: Declare with
4303 `__attribute__((noinline))'.
4305 2006-09-02 Stuart D. Herring <herring@lanl.gov>
4307 * minibuf.c (Finternal_complete_buffer): New function.
4308 (syms_of_minibuf): Defsubr it.
4309 (Fread_buffer): Use it, instead of Vbuffer_alist.
4311 2006-09-01 Martin Rudalics <rudalics@gmx.at>
4313 * buffer.h (struct buffer_text): New field chars_modiff.
4314 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
4315 * buffer.c (Fbuffer_chars_modified_tick): New function returning
4316 value of BUF_CHARS_MODIFF.
4317 (syms_of_buffer): Defsubr it.
4318 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
4319 * insdel.c (modify_region): New argument preserve_chars_modiff.
4320 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
4321 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
4322 (adjust_after_replace, adjust_after_replace_noundo)
4323 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
4324 * lisp.h (modify_region): Add fourth argument in extern.
4325 * casefiddle.c (casify_region): Call modify_region with fourth
4326 argument zero to assert that CHARS_MODIFF is updated.
4327 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4328 (Ftranspose_regions): Likewise.
4329 * textprop.c (Fadd_text_properties, Fset_text_properties)
4330 (Fremove_text_properties, Fremove_list_of_text_properties):
4331 Call modify_region with fourth argument 1 to avoid that
4332 CHARS_MODIFF is updated.
4334 2006-08-31 Richard Stallman <rms@gnu.org>
4336 * editfns.c (Fformat): Don't sign-extend for %o or %x.
4338 2006-08-29 Chong Yidong <cyd@stupidchicken.com>
4340 * indent.c (Fvertical_motion): Don't move back if we were
4341 displaying a Lisp string, either.
4343 2006-08-28 Kim F. Storm <storm@cua.dk>
4345 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
4346 Don't attempt to replace cursor on image glyphs.
4348 2006-08-28 Kenichi Handa <handa@m17n.org>
4350 * coding.c (Fdetect_coding_region, Fdetect_coding_string):
4351 Fix docstring about ISO-2022 control characters.
4353 2006-08-28 Kim F. Storm <storm@cua.dk>
4355 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
4356 with a hollow box cursor if image is larger than 32x32 (or the default
4357 frame font if that is bigger). Replace any other cursor on images
4358 with hollow box cursor, as redisplay doesn't support bar and hbar
4361 2006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4363 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
4364 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
4366 * dired.c (directory_files_internal_unwind, directory_files_internal)
4367 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
4369 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
4372 * keyboard.c (in_sighandler): Remove variable.
4373 (Fcurrent_idle_time): Add missing `doc:'.
4374 (input_available_signal, init_keyboard): Undo previous change.
4376 * keyboard.h (in_sighandler): Remove extern.
4378 * mac.c (create_apple_event_from_event_ref, select)
4379 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
4380 (Fmac_set_file_type, cfstring_create_normalized)
4381 (mac_get_system_locale, select_and_poll_event, sys_select):
4382 Use OSStatus instead of OSErr.
4384 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
4385 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
4386 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
4388 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
4389 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
4390 (get_scrap_private_timestamp, get_scrap_target_type_list)
4391 (x_own_selection, x_get_foreign_selection)
4392 (Fx_disown_selection_internal, Fx_selection_owner_p)
4393 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
4395 * macterm.c (mac_draw_string_common, mac_query_char_extents)
4396 (x_iconify_frame, XLoadQueryFont, install_window_handler)
4397 (mac_handle_command_event, init_command_handler, init_menu_bar):
4398 Use OSStatus instead of OSErr.
4399 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
4401 (x_query_font): Apply 2006-08-04 change for xterm.c.
4402 (Qhi_command): Rename from Qhicommand. All uses changed.
4404 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
4406 (FRAME_FILE_NAME): Remove macro.
4407 (install_window_handler, create_apple_event_from_event_ref):
4408 Return OSStatus instead of OSErr.
4410 2006-08-26 Kim F. Storm <storm@cua.dk>
4412 * buffer.c (Fset_buffer_multibyte):
4413 * editfns.c (Fcurrent_time, Fget_internal_run_time):
4414 * macfns.c (Fxw_color_values):
4415 * w32fns.c (Fxw_color_values):
4416 * xfns.c (Fxw_color_values): Simplify; use list3.
4418 * fileio.c (Fmake_directory_internal, Fdelete_directory)
4419 (Fdelete_file): Simplify; use list1.
4420 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
4421 Simplify; remove NO_ARG_ARRAY stuff, use list2.
4423 2006-08-25 Richard Stallman <rms@gnu.org>
4425 * buffer.c (Fswitch_to_buffer): Fix previous change.
4427 2006-08-25 Kim F. Storm <storm@cua.dk>
4429 * keyboard.c (Fcurrent_idle_time): Simplify.
4431 2006-08-25 Richard Stallman <rms@gnu.org>
4433 * fns.c (sxhash_string): Rotate properly; don't lose bits.
4435 2006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
4437 * xdisp.c (overline_margin): New variable.
4438 (x_produce_glyphs): Use it.
4439 (syms_of_xdisp): DEFVAR_INT it.
4441 * xterm.c (x_underline_at_descent_line): New variable.
4442 (syms_of_xterm): DEFVAR_BOOL it.
4443 (x_draw_glyph_string): Use it.
4444 Draw underline and overline up to the end of line if the face
4445 extends to the end of line.
4447 * macterm.c: Likewise.
4449 * w32term.c: Likewise.
4451 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
4453 * buffer.c (Fswitch_to_buffer): Move buffer to front of
4454 buffer-alist if necessary.
4456 2006-08-22 Kim F. Storm <storm@cua.dk>
4458 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
4459 number of items changes.
4461 2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
4463 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
4465 2006-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4467 * keyboard.c: Clarify difference between in_sighandler and
4470 2006-08-21 Kim F. Storm <storm@cua.dk>
4472 * macterm.c (x_draw_stretch_glyph_string):
4473 * w32term.c (x_draw_stretch_glyph_string):
4474 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
4475 stretch glyph in left marginal areas on header and mode lines.
4477 2006-08-21 Kenichi Handa <handa@m17n.org>
4479 * keyboard.c (syms_of_keyboard): Docstring of
4480 Vunread_post_input_method_events and Vunread_input_method_events
4483 2006-08-20 Chong Yidong <cyd@stupidchicken.com>
4485 * keyboard.c (show_help_echo): Preserve mouse movement flag if
4488 2006-08-20 Richard Stallman <rms@gnu.org>
4490 * xfaces.c (load_pixmap): Add quotes in error message.
4492 * keyboard.c (Fcurrent_idle_time): New function.
4493 (syms_of_keyboard): defsubr it.
4495 2006-08-18 Nick Roberts <nickrob@snap.net.nz>
4497 * window.c (Fset_window_fringes): Do nothing on a tty.
4498 (Fwindow_fringes): Put ? operator after the line break.
4500 2006-08-16 Andreas Schwab <schwab@suse.de>
4502 * print.c (debug_output_compilation_hack): Fix return type.
4504 2006-08-16 Richard Stallman <rms@gnu.org>
4506 * print.c (debug_output_compilation_hack): New function.
4508 2006-08-16 Kenichi Handa <handa@m17n.org>
4510 * fileio.c (choose_write_coding_system): Use LF for end-of-line
4513 2006-08-15 Chong Yidong <cyd@stupidchicken.com>
4515 * keyboard.c (read_char): Don't change idle timer state at all if
4516 end_time is supplied.
4518 2006-08-15 Kenichi Handa <handa@m17n.org>
4520 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
4521 is exhausted, return with RET.
4522 (detect_coding_emacs_mule, detect_coding_iso2022)
4523 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
4524 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
4527 2006-08-14 Chong Yidong <cyd@stupidchicken.com>
4529 * keyboard.c (read_char): Don't reset idle timers if a time limit
4532 2006-08-14 Kim F. Storm <storm@cua.dk>
4534 * .gdbinit (pitx): Print iterator position.
4535 Limit stack dump in case iterator is not initialized.
4537 2006-08-12 Eli Zaretskii <eliz@gnu.org>
4539 * frame.c (Fmouse_position, Fmouse_pixel_position)
4540 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
4542 2006-08-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4544 * xselect.c (Fx_register_dnd_atom): New function.
4545 (syms_of_xselect): Defsubr it.
4546 (x_handle_dnd_message): Check that message_type is in
4547 dpyinfo->x_dnd_atoms before generating lisp event.
4549 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
4550 of drag and drop Atoms.
4552 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
4554 2006-08-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4556 * keyboard.c: Define in_sighandler.
4557 (input_available_signal): Set in_sighandler.
4558 (init_keyboard): Initialize in_sighandler.
4560 * keyboard.h: Declare in_sighandler.
4562 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
4563 to check if mutex should be locked or not.
4565 2006-08-09 Richard Stallman <rms@gnu.org>
4567 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
4568 (read_key_sequence): Always start fkey.start and fkey.end at 0,
4569 and likewise for keytran.
4571 2006-08-09 Kenichi Handa <handa@m17n.org>
4573 * coding.c (syms_of_coding): Improve the docstring
4574 of file-coding-system-alist.
4576 2006-08-07 Andreas Schwab <schwab@suse.de>
4578 * puresize.h (BASE_PURESIZE): Increase to 1120000.
4580 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
4582 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
4583 (Fkill_all_local_variables): Use it.
4584 (syms_of_buffer): Defvar it.
4586 2006-08-05 Eli Zaretskii <eliz@gnu.org>
4588 * w32.c (w32_valid_pointer_p): New function.
4590 * w32.h: Add prototype for w32_valid_pointer_p.
4592 * alloc.c: Include w32.h.
4593 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
4596 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
4597 is exactly equal to end_time, not only when it is past that.
4599 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
4601 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
4603 * process.c: Reapply 2006-08-01 change.
4605 2006-08-04 Eli Zaretskii <eliz@gnu.org>
4607 * w32fns.c (w32_query_font): Fix last change: use stricmp.
4609 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4611 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
4612 the before-change-functions since they may have altered the buffer.
4614 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
4616 * w32fns.c (w32_createwindow): Handle -geometry command line option
4617 and the geometry settings in the Registry.
4619 2006-08-04 Kenichi Handa <handa@m17n.org>
4621 * w32fns.c (w32_query_font): Compare names by ignoring case.
4623 * xterm.c (x_query_font): Compare names by ignoring case.
4625 2006-08-03 Jason Rumney <jasonr@gnu.org>
4627 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
4628 when no option selected.
4630 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
4632 * process.c: Revert last change.
4634 2006-08-01 Kim F. Storm <storm@cua.dk>
4636 * process.c (wait_reading_process_output_unwind): New function.
4637 Restores waiting_for_user_input_p to saved value.
4638 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
4639 instead of save/restore old value on stack.
4641 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
4643 * editfns.c: Undo 2006-06-27 change.
4645 2006-07-29 Eli Zaretskii <eliz@gnu.org>
4647 * coding.c (Ffind_operation_coding_system): Revert the change from
4650 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
4652 2006-07-28 Richard Stallman <rms@gnu.org>
4654 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
4655 Add conditional aborts for clarity.
4657 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
4658 Used to avoid running the hooks over and over for each frame.
4659 (prepare_menu_bars): Pass value from update_menu_bar
4660 as HOOKS_RUN of next call.
4662 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
4664 2006-07-28 Kim F. Storm <storm@cua.dk>
4666 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
4667 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
4669 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
4671 * keyboard.c (read_char): New arg END_TIME specifying timeout.
4672 All callers changed. Turn off echoing if END_TIME is non-NULL.
4673 (kbd_buffer_get_event): New arg END_TIME.
4675 * lread.c (read_filtered_event): New arg SECONDS to wait until.
4676 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
4678 * lisp.h: Update read-char, read-event, and read_filtered_event
4681 * keyboard.h: Include systime.h. Update read_char prototype.
4683 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4685 * alloc.c (find_string_data_in_pure): New function.
4686 (make_pure_string): Use it to reuse existing string data if possible.
4688 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
4690 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4692 * keymap.c (Fdefine_key): If the key binding definition looks like an
4693 XEmacs-style key sequence, convert it to Emacs's format.
4695 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
4697 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
4698 parameters are bound to some values, use that instead of
4701 2006-07-21 Eli Zaretskii <eliz@gnu.org>
4703 * w32.c (convert_time): Use explicit long double constants to
4704 ensure long double arithmetics is used throughout.
4706 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4708 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
4709 (init_alloc_once): Initialize them.
4710 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
4713 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
4715 2006-07-18 Francis Litterio <franl@world.std.com>
4717 * w32term.c (x_calc_absolute_position): Fix frame positioning
4718 with negative X/Y coordinates.
4720 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
4722 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
4724 * textprop.c (text_read_only): Likewise.
4726 * lread.c (end_of_file_error): Likewise.
4728 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
4731 * eval.c (unwind_to_catch): Likewise.
4733 * buffer.h (buffer_slot_type_mismatch): Likewise.
4735 2006-07-18 Kim F. Storm <storm@cua.dk>
4737 Cleanup Fsignal calls that never returns; now only use it for Qquit.
4739 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
4740 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
4741 (signal_error): New no-return function (from xfaces.c).
4742 (Fthrow): Use xsignal2 instead of Fsignal + abort.
4743 (error): Use xsignal1 instead of Fsignal + abort.
4744 (FletX, Flet, grow_specpdl): Use signal_error.
4745 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
4747 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
4748 (list1): New function.
4750 * lisp.h (list1): Add EXFUN.
4751 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
4752 Add prototypes. Mark them as no-return.
4754 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
4757 * callint.c (check_mark): Use xsignal0.
4759 * casefiddle.c (casify_object): wrong_type_argument is no-return.
4761 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
4763 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
4764 (Fdefine_coding_system_internal): Use xsignal1.
4766 * data.c (circular_list_error): Use xsignal.
4767 (wrong_type_argument): Use xsignal2. Don't care about return value.
4768 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
4769 Remove loop around Fsignal.
4770 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
4771 (indirect_function, Findirect_function, Fstring_to_number)
4772 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
4773 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
4776 * doc.c (Fdocumentation): Use xsignal1.
4778 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
4780 * fileio.c (report_file_error): Use xsignal.
4781 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
4782 (Finsert_file_contents): Use xsignal2.
4783 (syms_of_fileio): Use list2, list3.
4785 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
4786 (range_error2, domain_error2): Use xsignal3.
4787 (rounding_driver, fmod_float): Use xsignal0.
4788 (float_error): Use xsignal1.
4789 (matherr): Use xsignal.
4791 * fns.c (Flength): wrong_type_argument is no-return.
4792 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
4793 (Fmd5): Use xsignal1.
4795 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
4797 * keyboard.c (recursive_edit_1): Use xsignal1.
4799 * keymap.c (Fmap_keymap): Use xsignal1.
4801 * lread.c (Fload): Use xsignal2, signal_error.
4802 (end_of_file_error): Use xsignal0, xsignal1.
4803 (read0): Use xsignal1.
4804 (invalid_syntax): New error function marked no-return.
4805 (read_integer, read1, read_list): Use it.
4807 * macselect.c (x_get_local_selection): Use signal_error.
4809 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
4811 * search.c (compile_pattern_1): Use xsignal1.
4812 (signal_failure): Remove (was only called once).
4813 (search_command): Use xsignal1 instead of signal_failure.
4815 * syntax.c (scan_lists): Use xsignal3.
4817 * textprop.c (text_read_only): Use xsignal0, xsignal1.
4819 * unexsol.c (unexec): Use xsignal.
4821 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4824 * xfaces.c (signal_error): Move to eval.c.
4825 (resolve_face_name): Use xsignal1.
4827 * xfns.c (x_decode_color): Use signal_error.
4829 * xselect.c (x_get_local_selection, copy_multiple_data)
4830 (x_get_window_property_as_lisp_data)
4831 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
4832 (Fx_get_cut_buffer_internal): Use signal_error.
4834 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4836 * macterm.c (XTread_socket): Undo previous change.
4838 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4840 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
4841 directly lookup keycode_to_xkeysym_table.
4842 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
4843 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
4844 (XTread_socket): Use character codes to construct keypad key events.
4845 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
4846 (x_delete_display): Apply 2006-07-04 change for xterm.c.
4848 2006-07-17 Richard Stallman <rms@gnu.org>
4850 * keyboard.c (Vcommand_error_function): New variable.
4851 (syms_of_keyboard): Defvar it.
4852 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
4854 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
4856 2006-07-17 Kim F. Storm <storm@cua.dk>
4858 * xdisp.c (handle_single_display_spec): Ensure the right value of
4859 it->position is saved by push_it.
4860 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
4861 (reseat_1): Don't setup it->object twice.
4862 (set_iterator_to_next): No need to set it->object after pop_it.
4863 (move_it_to): Explicitly check to see if last move reached to_charpos.
4865 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
4867 * xdisp.c (display_mode_line): Preserve match data.
4869 2006-07-14 Kim F. Storm <storm@cua.dk>
4871 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
4872 (init_winsock): Load them. Use ws2_32.dll.
4873 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
4874 (sys_accept): Undo last change. Instead, set child status to
4875 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
4876 sys_select will wakeup the reader thread.
4877 (_sys_wait_accept): New function used by reader thread to wait for
4878 an incoming connection on a server socket.
4880 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
4882 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
4883 server socket (FILE_LISTEN flag).
4885 2006-07-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4887 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
4889 2006-07-14 Kim F. Storm <storm@cua.dk>
4891 * w32.c: Fix high cpu load for server sockets.
4892 (pfn_WSAEventSelect): New function ptr.
4893 (init_winsock): Load it.
4894 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
4895 char_avail event object to FD_ACCEPT.
4896 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
4897 socket's char_avail event object to FD_READ|FD_CLOSE.
4899 * w32.h (FILE_LISTEN): New filedesc flag value.
4901 2006-07-13 Kim F. Storm <storm@cua.dk>
4903 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
4904 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
4905 Simplify loops and use CAR for Bnth and Belt.
4907 * data.c (Findirect_function): Optimize for no indirection.
4909 * eval.c (Fthrow): Remove loop around Fsignal.
4910 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
4911 Use original function name in all signaled errors.
4912 Simplify Fsignal calls (no return).
4913 (funcall_lambda): Simplify Fsignal calls (no return).
4915 2006-07-13 Andreas Schwab <schwab@suse.de>
4917 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
4920 2006-07-13 Kenichi Handa <handa@m17n.org>
4922 * editfns.c (Fformat): Fix calculation of text property positions
4925 2006-07-12 Kim F. Storm <storm@cua.dk>
4927 * lisp.h (CHECK_TYPE): New macro for generic type checking.
4928 (CAR_SAFE, CDR_SAFE): New macros.
4929 (ARRAYP, CHECK_ARRAY): New macros.
4930 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
4931 (CHECK_WINDOW_CONFIGURATION): New macro.
4932 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
4933 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
4934 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
4935 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
4936 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
4937 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
4938 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
4939 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
4941 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
4942 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
4944 * callint.c (Fcall_interactively):
4945 * casefiddle.c (casify_object):
4946 * editfns.c (general_insert_function):
4947 * fns.c (Flength, Felt, Ffillarray):
4948 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
4950 * data.c (wrong_type_argument): Remove loop around Fsignal.
4951 (Farrayp, Fsequencep): Use ARRAYP.
4953 (Fcar_safe): Use CAR_SAFE.
4955 (Fcdr_safe): Use CDR_SAFE.
4956 (Fsetcar, Fsetcdr): Use CHECK_CONS.
4957 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
4958 (Faset): Use CHECK_ARRAY.
4960 * fns.c (Felt): Use CHECK_ARRAY.
4961 (concat): Use CHECK_NUMBER.
4962 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
4963 (Fmemq): Use CHECK_LIST.
4964 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
4965 (assq_no_quit): Use CAR_SAFE.
4966 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
4967 Use CHECK_LIST_CONS.
4968 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
4970 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
4972 * casetab.c (check_case_table):
4973 * category.c (check_category_table):
4974 * marker.c (Fcopy_marker):
4975 * syntax.c (check_syntax_table):
4976 * xfaces.c (load_pixmap): Use CHECK_TYPE.
4978 * fns.c (Fcopy_sequence, concat):
4979 * fringe.c (Fdefine_fringe_bitmap):
4980 * lread.c (check_obarray): Cleanup wrong_type_argument use.
4982 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
4984 * keymap.c (Fdefine_key, Flookup_key):
4985 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
4987 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
4989 * search.c (Fset_match_data): Use CHECK_LIST.
4991 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
4993 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
4994 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
4996 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4998 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
5000 * dired.c: Include blockinput.h.
5001 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
5003 * editfns.c: Include blockinput.h.
5004 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
5007 * fileio.c: Include blockinput.h.
5008 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
5010 (search_embedded_absfilename): Remove spurious xfree.
5012 2006-07-11 Kim F. Storm <storm@cua.dk>
5014 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
5015 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
5016 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
5017 Signal error if TIMEOUT is not a number.
5018 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
5019 The rework of sit_for args also fixes several incorrect Qt args
5020 which should have been 1.
5021 (Fredisplay): Pass 1 instead of Qt to swallow_events and
5022 detect_input_pending_run_timers.
5024 * lisp.h (sit_for): Update prototype.
5025 (Fredisplay): Add EXFUN.
5027 * dispextern.h (sit_for): Remove prototype.
5029 * callint.c (Fcall_interactively):
5030 * minibuf.c (temp_echo_area_glyphs):
5031 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
5032 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
5034 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
5036 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
5038 2006-07-11 Kim F. Storm <storm@cua.dk>
5040 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
5041 input is available. Fix test for redisplay_dont_pause non-nil.
5042 Specbind redisplay-dont-pause to t if FORCE non-nil.
5044 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
5046 * puresize.h (BASE_PURESIZE): Increment to 1211000.
5048 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
5049 (Fsit_for): Function deleted.
5051 * keyboard.c (command_loop_1, Fexecute_extended_command):
5052 Call sit_for instead of Fsit_for.
5054 * minibuf.c (temp_echo_area_glyphs): Likewise.
5056 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5058 * syntax.c (Fforward_comment): Revert the reversion.
5059 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
5061 2006-07-09 John Paul Wallington <jpw@pobox.com>
5063 * syntax.c (Fforward_comment): Revert previous change.
5065 2006-07-09 Kim F. Storm <storm@cua.dk>
5067 * window.c (Fforce_window_update): Doc fix.
5069 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
5071 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
5072 directory unreadable for better user privacy.
5074 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
5076 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
5078 * lread.c (read_filtered_event): Remove `register' qualifier because it
5079 causes compilation problem with gcc-4.0.2-20051125 on amd64.
5080 (readevalloop): Remove unused var `bpos'.
5081 Yet another int/Lisp_Object mixup (YAILOM).
5083 2006-07-07 Eli Zaretskii <eliz@gnu.org>
5085 * keyboard.c (Fexecute_extended_command): Mention the argument
5086 PREFIXARG in the doc string.
5088 2006-07-07 Kim F. Storm <storm@cua.dk>
5090 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
5092 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
5094 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
5095 clash detection using the base buffer.
5097 * puresize.h (BASE_PURESIZE): Increment to 1210500.
5099 2006-07-04 Kim F. Storm <storm@cua.dk>
5101 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
5103 2006-07-04 Kenichi Handa <handa@m17n.org>
5105 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
5106 to update Voverriding_fontspec_alist.
5108 2006-07-03 Richard Stallman <rms@gnu.org>
5110 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
5112 * xfaces.c (Fface_attribute_relative_p): Doc fix.
5114 * textprop.c (Fget_char_property_and_overlay): Doc fix.
5116 * eval.c (Fdefvaralias): Doc fix.
5118 2006-07-03 Kim F. Storm <storm@cua.dk>
5120 * dispnew.c (sit_for): Fix preempt condition.
5122 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
5124 * lread.c (read_filtered_event): Treat select-window just like
5127 2006-07-02 Kim F. Storm <storm@cua.dk>
5129 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
5130 to ever fit the tool-bar,
5131 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
5132 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
5133 (redisplay_tool_bar): Only clear desired matrix if we actually
5134 change the tool-bar window height. Only try to make the tool-bar
5135 window bigger if there is actually room for it.
5137 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
5139 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
5140 SPI_GETWORKAREA to find the dimensions of the screen work area,
5141 and adjust vertical position of the frame in order to avoid being
5142 covered by the task bar.
5144 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
5145 f->left_pos and SH_SHOW instead of f->top_pos in the call to
5146 CreateWindow. Record the actual position in f->left_pos and
5149 2006-06-30 John Paul Wallington <jpw@pobox.com>
5151 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
5152 Doc fix - default value has changed.
5154 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5156 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
5158 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
5160 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
5162 * macterm.c (Qeql): Add extern.
5163 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
5164 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
5165 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
5166 Change keys of Vmac_atsu_font_table from strings to numbers.
5167 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
5168 (init_font_name_table) [USE_ATSUI]: Use it.
5169 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
5170 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
5171 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
5172 only when saved_ts_script_language_on_focus coincides with
5173 Vmac_ts_script_language_on_focus.
5174 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
5175 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
5176 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
5177 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
5179 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
5181 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
5182 (Ffield_string_no_properties, Ffield_end): Mention
5183 args-out-of-range error condition in docstring.
5185 2006-06-27 Kim F. Storm <storm@cua.dk>
5187 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
5189 2006-06-25 Kim F. Storm <storm@cua.dk>
5191 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
5192 version 2.4 and later.
5194 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
5196 * xfns.c (Fx_create_frame): Set font parameter directly instead of
5197 using x_default_parameter, since x_get_args clears the parm alist.
5199 2006-06-24 Eli Zaretskii <eliz@gnu.org>
5201 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
5204 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
5206 * lread.c (read_escape): When an unknown Unicode code point is
5207 encountered as a string or character escape, signal an error.
5209 2006-06-23 Kim F. Storm <storm@cua.dk>
5211 * .gdbinit (pitx): Dump iterator stack.
5213 * xdisp.c (handle_composition_prop): Push iterator on stack.
5214 (set_iterator_to_next): Pop iterator at end of composition.
5216 2006-06-23 Martin Rudalics <rudalics@gmx.at>
5218 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
5219 itself on DOS_NT platforms, if the old and new names are identical
5220 but for the letter-case.
5222 2006-06-21 Kim F. Storm <storm@cua.dk>
5224 * dispextern.h (struct it): Add `position' member to iterator stack.
5225 Rename `pos' member to `current'. Rearrange and add comments.
5227 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
5228 if we get any overlays.
5229 (set_cursor_from_row): Don't clobber `end' if we rescan from
5231 (push_it, pop_it): Save it->position.
5233 2006-06-19 Richard Stallman <rms@gnu.org>
5235 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
5236 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
5237 for the case of a top-level window and the following minibuffer.
5238 Don't exit because of no `next' when there is a parent.
5239 Use the FIRST_ONLY feature when resizing following windows.
5241 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
5243 2006-06-17 Kim F. Storm <storm@cua.dk>
5245 * dispnew.c (update_frame): Check for input pending on entry.
5246 (update_window, update_frame_1): Break loop if input is detected.
5248 2006-06-16 Francis Litterio <flitterio@gmail.com>
5250 * xterm.c (x_check_expected_move, handle_one_xevent)
5251 (x_set_offset, x_check_fullscreen): Extensive changes to make
5252 frame positioning deterministic under X.
5254 * xterm.h (x_output): Add members left_before_move and
5255 top_before_move. Removed members expected_left and expected_top.
5257 2006-06-16 Kim F. Storm <storm@cua.dk>
5259 * dispextern.h (struct it): Add union to iterator stack to save
5260 image, composition, and stretch specific paramters.
5262 * xdisp.c (next_overlay_string): Fix assert.
5263 (push_it, pop_it): Handle composition and stretch specific values.
5264 Only handle it->slice in image (for now).
5265 (back_to_previous_visible_line_start): Continue search if newline is
5266 part of a compisition. Simplify.
5267 (reseat_1): Set it->object to buffer.
5268 (set_iterator_to_next): Set it->object to string or buffer, when
5269 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
5270 (next_element_from_composition): Set it->object to buffer if not
5272 (set_cursor_from_row): Only save start of string if not already
5273 done to handle multiple strings in a row.
5275 * .gdbinit (pitx): Show composition parameters.
5276 (pgx, pg): New commands to print a glyph structure.
5277 (pgi, pgn): New commands to print specific/next glyph.
5278 (pgrowx, pgrow): New commands to print all glyphs in a row.
5280 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5282 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
5283 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
5285 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
5286 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
5287 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
5288 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
5289 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
5290 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
5291 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
5292 Services functions to get size of main display in pixels.
5294 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
5296 * xdisp.c (back_to_previous_visible_line_start):
5297 Reset it->continuation_lines_width.
5299 2006-06-14 Richard Stallman <rms@gnu.org>
5301 * eval.c (Fdefconst): Mark variable as risky.
5303 * callproc.c (Fcall_process): Doc fix.
5305 * window.c (adjust_window_trailing_edge): Don't break out of the loop
5306 because there's no next window, if there are parallel windows.
5307 Do break out when WINDOW is nil.
5309 2006-06-14 Kim F. Storm <storm@cua.dk>
5311 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
5312 iterator stack (instead of hardcoded number). Increase from 2 to
5313 4 to make room for propertized overlay strings before and after a
5314 display string, image or composition.
5315 (struct it): Add image_id and method members to iterator stack.
5317 * xdisp.c (init_from_display_pos): Don't set it->method and
5318 overlay_string_index after pop_it. Add asserts.
5319 (handle_stop): Look for overlay strings around a display string,
5320 image, or composition. Handle properties on those strings.
5321 (next_overlay_string): Don't set string, pos or method after pop_it.
5322 (get_overlay_strings_1): Split from get_overlay_strings; don't
5323 modify it if no overlay strings are found.
5324 (get_overlay_strings): Use get_overlay_strings_1. Always set
5325 it->string and it->method.
5326 (push_it): Push it->image_id and it->method. Push it->object
5327 instead of it->string if method is GET_FROM_IMAGE.
5328 (pop_it): Pop it->image_id and it->method. Ppo it->object
5329 instead of it->string if method is GET_FROM_IMAGE.
5330 Reset it->current.string_pos if popped it->string is nil.
5331 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
5332 whether a given change was correct; but the change is correct.
5333 Clear it->string_from_display_prop_p.
5334 (set_iterator_to_next): Rely on it->method and it->image_id from
5335 iterator stack, instead of setting them explicitly after pop_it.
5337 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
5338 negative time forces redisplay even when input is available.
5339 (Fsit_for): Doc fix.
5341 2006-06-13 Kim F. Storm <storm@cua.dk>
5343 * dispnew.c: Modify preemptive redisplay to be based on periodic
5345 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
5346 (Vredisplay_preemption_period): New variable.
5347 (syms_of_display): DEFVAR_LISP and initialize it.
5348 (preemption_period, preemption_next_check): New variables.
5349 (update_frame, update_single_window): Initialize them based on
5350 Vredisplay_preemption_period if !force_p.
5351 (update_window, update_frame_1): Use them to determine when to
5354 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
5356 * lread.c (read_escape): Provide a Unicode character escape
5357 syntax; \u followed by exactly four or \U followed by exactly
5358 eight hex digits in a comment or string is read as a Unicode
5359 character with that code point.
5361 2006-06-09 Eli Zaretskii <eliz@gnu.org>
5363 * window.c (window_scroll_pixel_based): Signal "Beginning of
5364 buffer" when scroll-down at the beginning of an empty buffer.
5366 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5368 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
5369 Exclude 0x7f from ASCII range.
5371 2006-06-05 Jason Rumney <jasonr@gnu.org>
5373 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
5374 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
5375 (x_scroll_bar_report_motion): Remove workarounds for
5376 versions of Windows NT < 3.51.
5378 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
5379 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
5381 2006-06-04 David Kastrup <dak@gnu.org>
5383 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
5386 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5388 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
5390 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
5392 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
5393 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
5394 [USE_MAC_TSM]: Likewise.
5395 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
5396 (Qbefore_string) [USE_MAC_TSM]: Add extern.
5397 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
5398 ActivateTSMDocument/DeactivateTSMDocument.
5399 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
5400 (mac_handle_window_event) [USE_MAC_TSM]: Handle
5401 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
5402 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
5403 (install_window_handler) [USE_MAC_TSM]: Install it. Register
5404 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
5405 (keycode_to_xkeysym_table): Add entry for f16.
5406 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
5407 before/after passing keystroke event to toolbox dispatcher.
5408 (init_tsm) [USE_MAC_TSM]: New function.
5409 (mac_initialize) [USE_MAC_TSM]: Call it.
5410 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
5412 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
5414 2006-06-02 John Paul Wallington <jpw@gnu.org>
5416 * xfns.c (x_set_name_internal): Set icon to `text', derived from
5417 name, when frame's icon_name isn't a string rather than only when
5420 2006-06-03 Eli Zaretskii <eliz@gnu.org>
5422 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
5425 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
5427 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
5430 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5432 * xdisp.c (next_element_from_composition): Set it->object to
5433 it->string if composition is coming from string.
5434 (set_cursor_from_row): Don't return 0 unless row displays a
5436 (dump_glyph): Dump composite glyph.
5438 2006-06-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5440 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
5442 2006-06-01 Richard Stallman <rms@gnu.org>
5444 * window.c (Fsplit_window): Doc fix.
5446 2006-06-01 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
5448 * process.c (deleted_pid_list): New variable to store the pids
5449 of deleted processes. Declare it only if SIGCHLD is defined.
5450 (init_process): Initialize it.
5451 (syms_of_process): Staticpro it.
5452 (Fdelete_process): Add pid of the deleted process to it. Check after
5453 the addition and before the kill if the process is already stopped,
5454 in which case it is deleted from the list and not killed.
5455 (sigchld_handler): Define it only if SIGCHLD is. Search the process
5456 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
5457 Original idea by Stefan Monnier.
5459 2006-06-01 Kim F. Storm <storm@cua.dk>
5461 * dispnew.c (sit_for): Perform redisplay even if input is pending
5462 when redisplay-dont-pause is non-nil.
5464 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5466 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
5467 (XTread_socket): Remove obsolete comment.
5469 2006-06-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5471 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
5474 2006-06-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5476 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
5479 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
5481 2006-05-31 Juri Linkov <juri@jurta.org>
5483 * minibuf.c (Vhistory_add_new_input): New variable.
5484 (read_minibuf): Use it.
5485 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
5486 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
5488 2006-05-31 Kim F. Storm <storm@cua.dk>
5490 * process.c (select_wrapper): Add wrapper around select to work around
5491 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
5492 select called from wait_reading_process_output.
5494 2006-05-30 Andreas Schwab <schwab@suse.de>
5496 * xmenu.c (Fmenu_bar_start): Return a value.
5498 2006-05-30 Richard Stallman <rms@gnu.org>
5500 * coding.c (Ffind_operation_coding_system): Doc fix.
5502 2006-05-30 Eli Zaretskii <eliz@gnu.org>
5504 * w32term.c (x_draw_hollow_cursor): Fix last change.
5506 2006-05-29 Kim F. Storm <storm@cua.dk>
5508 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
5510 2006-05-29 Eli Zaretskii <eliz@gnu.org>
5512 * coding.c (Ffind_operation_coding_system): Doc fix.
5514 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5516 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
5517 Call mac_set_font_info_for_selection if font panel is made visible.
5519 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
5520 (mac_font_panel_visible_p, mac_show_hide_font_panel)
5521 [USE_MAC_FONT_PANEL]: New functions.
5522 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection):
5523 Return immediately if font panel is not visible.
5525 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
5528 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
5530 * search.c (matcher_overflow): Mark as NO_RETURN.
5532 * xterm.c (x_connection_closed): Likewise.
5534 * sysdep.c (croak): Likewise.
5536 * sound.c (sound_perror, alsa_sound_perror): Likewise.
5538 * lisp.h (die, nsberror): Likewise.
5540 2006-05-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5542 * sound.c (alsa_open, alsa_configure, alsa_write):
5543 Move assignment to err out of if-statement.
5545 * gtkutil.c (menu_nav_ended): New function.
5546 (create_menus): Connect menu_nav_ended to "selection-done" to fix
5549 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
5551 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
5553 * charset.h (invalid_character): Mark as NO_RETURN.
5555 2006-05-29 Kenichi Handa <handa@m17n.org>
5557 * coding.c (Ffind_operation_coding_system): Call a function by
5558 safe_call1 instead of call1.
5560 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5562 * window.c (struct saved_window): Add `dedicated'.
5563 (Fset_window_configuration, save_window_save): Save/restore the
5566 2006-05-28 Kim F. Storm <storm@cua.dk>
5568 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
5569 don't update w->cursor and return 0. Return 1 on success.
5570 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
5573 * dispextern.h (set_cursor_from_row): Update prototype.
5575 2006-05-28 Kim F. Storm <storm@cua.dk>
5577 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
5578 parameters. Adjust x and width in case cursor in on a partially
5579 visible stretch glyph on the left edge.
5580 (erase_phys_cursor): Don't erase into left fringe/margin in case
5581 previous cursor glyph is a partially visible stretch glyph on left.
5583 * dispextern.h (get_phys_cursor_geometry): Update prototype.
5585 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
5586 cursor and erasing cursor on partially visible stretch glyph on left.
5587 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
5589 * macterm.c: Likewise.
5591 * w32term.c: Likewise.
5593 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5595 * macselect.c (mac_handle_apple_event):
5596 Return errAEEventNotHandled if key binding is not found.
5598 2006-05-26 Eli Zaretskii <eliz@gnu.org>
5600 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
5601 [__MINGW32__]: MinGW-specific declaration of `etext'.
5603 * w32heap.c (etext, edata): Remove unused definitions.
5605 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
5607 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
5608 Incorporate the exclusive file-opening functionality into the behavior
5609 when OK-IF-ALREADY-EXISTS is nil.
5610 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
5612 2006-05-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5614 * sound.c (alsa_configure): Move get period/buffer_size after
5617 2006-05-26 Kenichi Handa <handa@m17n.org>
5619 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
5620 . BUFFER) in TARGET.
5622 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
5624 * image.c (png_load): Don't call fclose on NULL.
5626 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
5628 * fns.c (Fyes_or_no_p):
5629 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
5632 2006-05-25 Juri Linkov <juri@jurta.org>
5634 * lisp.h (Fread_from_minibuffer): Decrement number of args.
5636 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
5637 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
5639 * buffer.c (mode-line-format): Fix docstring.
5641 2006-05-25 Richard Stallman <rms@gnu.org>
5643 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
5645 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
5647 * puresize.h (BASE_PURESIZE): Increase to 1210000.
5649 2006-05-24 Alan Mackenzie <acm@muc.de>
5651 * lread.c (Vload_history): Enhance doc-string to say that the file
5652 is the absolute truename of the loaded file.
5654 * lread.c (Vafter_load_alist): doc-string: state that an element
5655 now has a regexp to match file names, not a file name as such.
5657 * lread.c (readevalloop): Call file-truename on the name for
5658 load-history, except at preloading time.
5660 * lread.c (Fload): At preloading time, preserve the extension of
5661 the filename which goes into load-history. New var hist_file_name.
5663 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
5664 function do-after-load-evaluation.
5666 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5668 * mac.c (ae_attr_table): New variable.
5669 (syms_of_mac): Intern and staticpro its elements.
5670 (mac_aelist_to_lisp): Also convert Apple event attributes.
5671 (mac_ae_put_lisp): New function.
5672 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
5674 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
5676 * macselect.c (Qemacs_suspension_id): New variable.
5677 (syms_of_macselect): Intern and staticpro it.
5678 (struct suspended_ae_info): New struct.
5679 (deferred_apple_events, defer_apple_events)
5680 (Fmac_process_deferred_apple_events): Use it.
5681 (suspended_apple_events): New variable.
5682 (mac_handle_apple_event_1): New function.
5683 (mac_handle_apple_event): Use it. Don't process previously
5685 (cleanup_suspended_apple_events, get_suspension_id)
5686 (cleanup_all_suspended_apple_events): New functions.
5687 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
5689 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
5690 (Fmac_resume_apple_event): New defuns.
5691 (syms_of_macselect): Defsubr them.
5693 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
5694 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
5696 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
5697 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
5698 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
5699 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5700 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5702 (typeUTF8Text, kEventParamWindowMouseLocation)
5703 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
5704 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
5706 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5708 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
5709 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
5710 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
5711 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
5712 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
5713 resource to backtranslate key with modifiers.
5714 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
5716 2006-05-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5718 * xterm.c: Remove declarations already in xterm.h
5720 * xterm.h: Add extern declarations for x_clear_errors,
5721 x_fully_uncatch_errors, x_catching_errors and
5722 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
5724 2006-05-21 Richard Stallman <rms@gnu.org>
5726 * xfaces.c (best_matching_font): Abort for best == NULL
5727 before we start to use it.
5729 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
5731 2006-05-20 Kim F. Storm <storm@cua.dk>
5733 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
5735 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5737 * macterm.c (convert_fn_keycode): Fix last change.
5739 2006-05-19 Eli Zaretskii <eliz@gnu.org>
5741 * w32.c (init_environment): Perform the processing of environment
5742 variables on a copy of default variables and their values, not on
5743 the original. Simplify code that calls ExpandEnvironmentStrings
5744 and make buf1[] and buf2[] more visible for easier debugging.
5746 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5748 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
5750 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
5752 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
5754 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
5755 Forward keyUp events to toolbox_dispatcher.
5757 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
5759 2006-05-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5761 * config.in: Regenerated (HAVE_ALSA).
5763 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
5764 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
5765 (snd_error_quiet, alsa_init): New functions.
5766 (vox_init): Return 0 if unable to open device.
5767 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
5769 (struct sound_device): Add period_size.
5770 (wav_play, au_play): Use period_size if set.
5772 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
5773 (ALL_CFLAGS): Add CFLAGS_SOUND.
5775 2006-05-18 Kenichi Handa <handa@m17n.org>
5777 * callproc.c (Fcall_process): Reject encoding arguments by
5778 ascii-incompatible coding systems (e.g. utf-16).
5780 * coding.c (Qascii_incompatible): New variable.
5781 (syms_of_coding): Setup Qascii_incompatible.
5782 (setup_coding_system): Be sure to initialize coding->common_flags.
5783 Check `ascii-incompatible' property of the coding system.
5785 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
5787 2006-05-18 Kim F. Storm <storm@cua.dk>
5789 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
5790 geometry when backtracking in case last image doesn't fit on line.
5792 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
5794 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
5795 more than height of one frame default line.
5797 2006-05-17 Richard Stallman <rms@gnu.org>
5799 * xfaces.c (better_font_p): Any font beats no font.
5800 (best_matching_font): Simplify based on above change.
5802 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
5804 2006-05-16 Kim F. Storm <storm@cua.dk>
5806 * xterm.c (handle_one_xevent): Check that f is not NULL before
5807 calling x_kill_gs_process.
5809 2006-05-14 Richard Stallman <rms@gnu.org>
5811 * textprop.c (Fnext_single_char_property_change)
5812 (Fprevious_single_char_property_change): Don't allow returning
5813 value beyond LIMIT in any cases.
5814 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
5816 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
5818 2006-05-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5820 * xterm.c (handle_one_xevent): Check that f is not NULL before
5821 calling _XEditResCheckMessages.
5823 2006-05-14 Kim F. Storm <storm@cua.dk>
5825 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
5827 2006-05-13 Eli Zaretskii <eliz@gnu.org>
5829 * frame.c (x_set_border_width): Fix error message to say "frame",
5832 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
5834 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
5836 * intervals.c (set_point_both): Fix mixup before before and after
5839 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
5840 while setting point temporarily.
5842 2006-05-11 Richard Stallman <rms@gnu.org>
5844 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
5846 2006-05-11 Kim F. Storm <storm@cua.dk>
5848 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
5850 2006-05-11 Kenichi Handa <handa@m17n.org>
5852 * fileio.c (Finsert_file_contents): Fix for the case of IO error
5853 while handling replace operation.
5855 2006-05-10 Kenichi Handa <handa@m17n.org>
5857 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
5858 chosen for the default face was different from the frame font,
5859 adjust the frame font.
5861 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5863 * image.c (Qduration) [MAC_OS]: Undo previous change.
5864 (syms_of_image) [MAC_OS]: Likewise.
5865 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
5867 * macfns.c (x_to_mac_color): Fix shift amount change.
5868 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
5869 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
5871 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
5872 Vmac_services_selection. All uses changed.
5873 (mac_store_service_event): Rename from mac_store_services_event in
5876 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
5878 [MAC_OSX] (mac_store_service_event): Rename from
5879 mac_store_services_event. All callers changed.
5880 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
5881 FACE_ID and C. All callers changed.
5882 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
5883 mac_set_font_info_for_selection when focus frame is destroyed.
5884 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
5886 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
5889 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
5891 * keymap.c (describe_map): Avoid generating duplicate entries if
5892 the shadowed binding has the same definition.
5894 2006-05-09 Kenichi Handa <handa@m17n.org>
5896 * keymap.c (push_key_description): Handle invalid character key.
5898 2006-05-08 Kenichi Handa <handa@m17n.org>
5900 * callproc.c (Fcall_process): Use system_eol_type for encoding
5901 arguments if eol_type is not yet decided.
5903 * coding.h (system_eol_type): Extern it.
5905 * coding.c (setup_coding_system): For invalid coding-system, set
5906 coding->eol_type to CODING_EOL_UNDECIDED.
5907 (encode_coding): Cancel previous change.
5908 (shrink_encoding_region): Likewise.
5909 (code_convert_region1): Likewise.
5910 (code_convert_string1): Likewise.
5911 (code_convert_string_norecord): Likewise.
5913 * fileio.c (choose_write_coding_system): Use system_eol_type for
5914 encoding if eol_type is not yet decided.
5916 * process.c (setup_process_coding_systems): Use system_eol_type
5917 for encoding if eol_type is not yet decided.
5918 (read_process_output): Likewise.
5919 (send_process): Likewise.
5921 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
5923 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
5925 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5927 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
5928 (syms_of_mac): Likewise for defsubr.
5930 * macfns.c (mac_set_font): New function.
5931 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
5932 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
5933 kWindowToolbarButtonAttribute when creating window.
5934 (Fmac_clear_font_name_table): Move from macfns.c.
5935 (syms_of_macfns): Likewise for defsubr.
5936 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
5937 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
5939 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
5940 and build is done on Mac OS X 10.2 and later.
5942 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
5943 (mac_store_services_event): Change return type in extern.
5945 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
5947 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
5948 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
5949 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
5950 (QWindow) [MAC_OSX]: Likewise.
5951 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
5952 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
5953 (syms_of_macterm) [USE_ATSUI]: Defvar it.
5954 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
5955 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
5956 (syms_of_macterm): Intern and staticpro them.
5957 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
5958 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
5960 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
5961 [MAC_OSX] (mac_store_services_event): Likewise.
5962 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
5963 kEventWindowToolbarSwitchMode event.
5964 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
5965 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
5966 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
5967 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
5968 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
5970 * macterm.h (mac_set_font_info_for_selection): Add extern.
5972 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5974 * image.c (Qduration) [MAC_OS]: New variable.
5975 (syms_of_image) [MAC_OS]: Intern and staticpro it.
5976 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
5977 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
5978 instead of cfstring_create_with_string.
5980 2006-05-06 Kim F. Storm <storm@cua.dk>
5982 * .gdbinit (xframe): Print frame name.
5983 (xlist): New command to print a list (max 10 elements).
5984 (xpr): Print lisp object of any type.
5985 (pitx): Print it->pixel_width.
5987 2006-05-05 Kenichi Handa <handa@m17n.org>
5989 * xdisp.c (handle_composition_prop): Fix for the case of empty
5990 composition component.
5992 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5994 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
5997 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
6000 * macterm.h (mac_make_lispy_event_code): Remove extern.
6001 (mac_post_mouse_moved_event): Add extern.
6002 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
6003 `const AEDesc *' in externs.
6004 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
6006 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
6008 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
6009 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
6010 Use xrealloc instead of repeated xmalloc/xfree.
6011 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref):
6014 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
6016 * macselect.c: Update copyright year.
6017 (mac_store_apple_event): Change return type to void in extern.
6018 (mac_handle_apple_event): Don't get return value from
6019 mac_store_apple_event.
6020 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
6021 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
6022 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
6023 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
6024 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
6025 implementation using create_apple_event_from_drag_ref.
6026 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
6027 (mac_do_receive_dragUPP): Move variables from macterm.c.
6028 (install_drag_handler, remove_drag_handler): New functions.
6030 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
6031 path select also for proxy icon click.
6032 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
6033 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
6034 (xlfdpat_create): Remove unused label `error' and trailing sentences.
6035 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
6036 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
6038 (install_drag_handler, remove_drag_handler): Add extern.
6039 (mac_store_apple_event): Change return type to void. All uses changed.
6040 Create Lisp object from Apple event and store it into input event.
6041 (mac_make_lispy_event_code): Remove function.
6042 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
6043 (install_window_handler): Call install_drag_handler.
6044 (remove_window_handler): Call remove_drag_handler.
6046 2006-05-03 Richard Stallman <rms@gnu.org>
6048 * sound.c (Fplay_sound_internal): Dynamically allocate
6049 current_sound_device and current_sound.
6050 (sound_cleanup): Free them.
6052 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
6053 when inside a keyboard macro.
6055 2006-05-02 Andreas Schwab <schwab@suse.de>
6057 * xmenu.c (restore_menu_items): Return a value.
6059 2006-05-01 Martin Rudalics <rudalics@gmx.at>
6061 * syntax.c (Fforward_comment): Detect generic comment at beginning of
6062 buffer when moving backwards.
6064 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6066 * dispnew.c (update_window): Don't set changed_p when mode/header
6069 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
6070 (get_glyph_face_and_encoding, get_char_face_and_encoding):
6071 Don't distinguish known faces from others.
6073 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
6074 through typeFileURL failed.
6076 * macfns.c (mac_update_title_bar): New function.
6077 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
6078 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
6079 Call mac_prepare_for_quickdraw.
6081 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
6082 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
6083 (enum pcm_status): New enum.
6084 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
6085 (XCharStructRow): Remove. Now validity is represented by
6086 non-negativeness of sum of ascent and descent.
6087 (struct MacFontStruct): Change type of member `rows'.
6088 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
6090 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
6091 Adjust endpoints of strictly horizontal/vertical lines.
6092 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
6093 (pcm_init, pcm_get_status): New functions.
6094 (x_per_char_metric, XLoadQueryFont): Use them instead of
6095 XCharStructRow and related macros.
6096 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
6097 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
6098 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
6099 and window path pop-up menu on title bar.
6100 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
6102 * macterm.h (mac_update_title_bar): Add extern.
6103 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
6104 (FRAME_FILE_NAME): New macro.
6106 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
6108 2006-04-30 Richard Stallman <rms@gnu.org>
6110 * keymap.c (Fdefine_key): Improve error message
6111 when KEY begins with a non-prefix key.
6113 2006-04-30 Martin Rudalics <rudalics@gmx.at>
6115 * syntax.c (Fforward_comment): Don't forget to break out of the loop
6116 when we skipped backward over a generic comment.
6118 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
6120 * .gdbinit (pp1, pv1): Only print value as expression is now
6121 printed out by gud-print.
6122 (pv1): Correct doc string.
6124 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
6126 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
6127 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
6128 keymap.c:895: error: address of register variable `def' requested.
6130 2006-04-26 Jason Rumney <jasonr@gnu.org>
6132 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
6134 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
6135 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
6136 where we preempt mouse_button_timer.
6138 2006-04-25 Miles Bader <miles@gnu.org>
6140 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
6142 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
6144 * process.h: Include headers for pid_t.
6146 2006-04-24 Kim F. Storm <storm@cua.dk>
6148 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
6149 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
6150 (produce_stretch_glyph): Assume that face box height and width is
6151 already included in stretch glyph size so caller doesn't have to
6152 consider the extra space otherwise added (fixes problem in ses.el).
6154 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
6155 matrices to force recalculation of tool-bar height after font change.
6157 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
6158 Clear it when done, so we don't accidentally draw a second copy of
6159 the tool-bar after resetting f->n_tool_bar_rows.
6160 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
6161 we recalculate f->n_tool_bar_rows.
6163 2006-04-23 Lars Hansen <larsh@soem.dk>
6165 * editfns.c (find_field): Fix comment.
6166 (Ffield_beginning): Fix bug when POS is at field beginning.
6168 2006-04-22 Eli Zaretskii <eliz@gnu.org>
6170 * puresize.h (BASE_PURESIZE): Increase to 1205000.
6172 2006-04-21 Kim F. Storm <storm@cua.dk>
6174 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
6175 window start is at BEGV.
6177 * dispextern.h (struct image): New member `corners'.
6178 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
6180 * image.c (four_corners_best): New arg CORNERS specifies what pixels
6181 to look at in case image has margin.
6182 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
6183 (image_background, image_background_transparent)
6184 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
6185 (gif_load): Set img->corners according to image's margin spec.
6186 Use img->corners values directly where applicable.
6187 Save image extension data in img->data.lisp_val.
6188 (gif_clear_image): New function to free img->data.lisp_val.
6189 (gif_type): Use it instead of generic x_clear_image.
6190 (Fimage_extension_data): New defun.
6191 (syms_of_image): Defsubr it.
6193 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
6195 * window.c (Fdisplay_buffer): Doc fix.
6197 2006-04-21 Eli Zaretskii <eliz@gnu.org>
6199 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
6201 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6203 * image.c [MAC_OS] (xpm_load_image): Fill in background field
6204 while we have ximg handy.
6206 * macmenu.c (restore_menu_items, save_menu_items): New functions
6208 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
6209 changes for xmenu.c.
6211 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
6212 (add_mac_font_name): New function.
6213 (init_font_name_table): Use it. Adopt the first found font from
6214 those having the same family name.
6216 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
6218 * xdisp.c (note_mouse_highlight): Use build_string.
6220 2006-04-20 Lars Hansen <larsh@soem.dk>
6222 * textprop.c (Fremove_list_of_text_properties):
6223 Ensure modify_region is called only when buffer is modified and that
6224 signal_after_change is allways called in that case.
6226 * print.c (PRINTFINISH): Call signal_after_change.
6228 2006-04-20 Kim F. Storm <storm@cua.dk>
6230 * xdisp.c (redisplay_window): Fix last change.
6232 * xdisp.c (redisplay_window): If current window start is not at the
6233 beginning of a line, select a new window start if buffer is modified
6234 and window start is in the modified region, but the first change is
6235 before window start.
6237 2006-04-18 Richard Stallman <rms@gnu.org>
6239 * xmenu.c (restore_menu_items, save_menu_items): New fns.
6240 (set_frame_menubar): Use save_menu_items. Save updated vector in
6241 the frame before unwinding it. Don't use unuse_menu_items.
6242 Don't use discard_menu_items.
6243 (digest_single_submenu): Abort if an item is not in a pane.
6244 (init_menu_items): Put the error check at the top.
6246 * keymap.c (describe_map): Make "shadowed" warning more verbose.
6248 * window.c (adjust_window_trailing_edge): Correctly distinguish
6249 series vs parallel cases, even when window has no parent.
6251 * abbrev.c (record_symbol): New function.
6252 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
6254 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6256 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
6259 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
6260 (create_apple_event_from_event_ref, xrm_get_preference_database)
6261 (cfstring_create_normalized): Don't check return value of xmalloc.
6263 * macselect.c (get_scrap_target_type_list, defer_apple_events)
6264 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
6265 return value of xmalloc/xrealloc.
6267 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
6268 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
6269 (XLoadQueryFont, mac_store_apple_event): Don't check return value
6272 2006-04-17 Kim F. Storm <storm@cua.dk>
6274 * window.c (coordinates_in_window): On the vertical border,
6275 calculate the row number measured from the top of the window, not
6276 the top of the frame.
6277 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
6278 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
6280 2006-04-16 Eli Zaretskii <eliz@gnu.org>
6282 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
6284 2006-04-16 Romain Francoise <romain@orebokech.com>
6286 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
6288 2006-04-16 Andreas Schwab <schwab@suse.de>
6290 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
6292 2006-04-15 Romain Francoise <romain@orebokech.com>
6294 * puresize.h (BASE_PURESIZE): Increment to 1210000.
6296 2006-04-13 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
6298 * print.c (Fprin1_to_string): Mention in the `doc' that the
6299 behavior is modified by `print-level' and `print-length'.
6301 2006-04-13 Kenichi Handa <handa@m17n.org>
6303 * coding.c (setup_coding_system): If eol-type is not yet decided
6304 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
6305 If coding_system is nil, return 0.
6306 (code_convert_region1): Even if coding_system is nil, don't skip
6307 conversion if system_eol_type is not LF.
6308 (code_convert_string1): Likewise.
6309 (code_convert_string_norecord): Likewise.
6311 2006-04-13 Kenichi Handa <handa@m17n.org>
6313 * coding.c (setup_coding_system): Fix previous change.
6314 (encode_coding): If eol_type is not yet decided, use system_eol_type.
6315 (shrink_encoding_region): If eol_type is not yet decided and
6316 system_eol_type is not LF, don't shrink.
6318 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
6320 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
6323 2006-04-12 Richard Stallman <rms@gnu.org>
6325 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
6327 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
6328 (Fprocess_send_eof): Abort if fail to open null device.
6330 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6332 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
6334 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
6335 assignment used as truth value. Add explicit braces to avoid
6337 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
6339 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
6340 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
6341 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
6342 Put externs in #ifdef HAVE_X_WINDOWS.
6343 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
6344 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
6345 (init_mac_osx_environment) [MAC_OSX]: Add extern.
6347 * mac.c (init_process): Remove undef.
6348 (select) [MAC_OSX]: Undefine before including sysselect.h.
6349 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
6350 Remove functions and prototypes.
6351 (parse_value): Add parentheses around + inside shift.
6352 (path_from_vol_dir_name): Make static.
6353 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
6354 [!MAC_OSX] (get_path_to_system_folder): Likewise.
6355 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
6357 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
6358 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
6360 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
6361 (x_set_mouse_color): Remove unused variable `dpy'.
6362 (Fx_create_frame): Remove unused variable `x_frame_count'.
6363 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
6364 (x_sync): Move from macterm.c.
6365 (Fx_file_dialog): Remove unused variable `default_filter_index'.
6367 * macmenu.c (min_menu_id): Make element type explicit.
6369 * macselect.c (get_flavor_type_from_symbol): Remove unused
6371 (get_scrap_private_timestamp, x_get_foreign_selection)
6372 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
6373 (Fmac_process_deferred_apple_events): Remove unused variables
6374 `keyword', `reply', `apple_event', `count', and `err'.
6376 * macterm.c: Don't include gnu.h.
6377 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
6378 (x_sync): Move to macfns.c.
6379 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
6380 variable `mask_bits'.
6381 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
6382 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
6383 (x_mac_to_emacs_modifiers): Remove function.
6384 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
6385 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
6386 Add explicit braces to avoid ambiguous `else'.
6387 (x_make_frame_visible): Remove unused variables `type',
6388 `original_top', and `original_left'.
6389 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
6390 (x_load_font): Remove unused variables `full_name', and `value'.
6391 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
6393 (do_zoom_window): Reorganize variables with respect to conditionals.
6394 (init_command_handler): Remove unused variable `err'.
6395 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
6397 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
6398 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
6399 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
6400 (do_menu_choice, have_menus_p, x_real_positions)
6401 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
6402 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
6403 (free_frame_menubar): Add externs.
6405 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
6406 (malloc, realloc, free): Add undefs.
6407 (read_load_commands): Remove unused variable `n' and `j'.
6408 (copy_data_segment): Remove unused variable `r'.
6410 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
6411 within ||. Add explicit braces to avoid ambiguous `else'.
6412 (dump_glyph_row): Remove label for `inverse_p' from legend.
6414 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
6415 Add explicit braces to avoid ambiguous `else'.
6417 2006-04-11 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
6419 * dispnew.c (init_display): Don't init X display if the user asked
6420 for a non-X display.
6422 2006-04-12 Kenichi Handa <handa@m17n.org>
6424 * coding.c (setup_coding_system): Use system_eol_type for default
6427 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
6429 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
6431 * data.c (wrong_type_argument): Try to avoid compiler warnings due
6432 to the fact the function is now marked as NO_RETURN.
6434 2006-04-10 Eli Zaretskii <eliz@gnu.org>
6436 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
6438 2006-04-10 Romain Francoise <romain@orebokech.com>
6440 * xrdb.c (gethomedir): Use xstrdup.
6442 2006-04-10 Andreas Schwab <schwab@suse.de>
6444 * xrdb.c (gethomedir): Make sure to always return a pointer that
6445 can be passed to free.
6447 2006-04-09 Richard Stallman <rms@gnu.org>
6449 * lisp.h (Fkill_emacs): Undo previous change.
6451 2006-04-08 Richard Stallman <rms@gnu.org>
6453 * search.c (boyer_moore): Test ch >= 0400, not >.
6455 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
6457 * puresize.h (pure_write_error): Mark as NO_RETURN.
6459 * lisp.h (args_out_of_range, args_out_of_range_3)
6461 2006-04-08 Eli Zaretskii <eliz@gnu.org>
6463 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
6464 if a menu is active on this frame.
6466 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
6468 * lisp.h (report_file_error): Mark as NO_RETURN.
6470 2006-04-08 Eli Zaretskii <eliz@gnu.org>
6472 * alloc.c [STDC_HEADERS]: Include stddef.h.
6474 * lisp.h (PSEUDOVECSIZE): Fix last change.
6476 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
6478 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
6479 `raw_status_high', and `raw_status_low' with plain integers, and move
6480 them to the end of the structure.
6482 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
6483 pseudovector's size field so only the Lisp_Object fields get GC'd.
6485 * process.c (update_status, make_process, Fdelete_process)
6486 (Fprocess_status, list_processes_1, start_process_unwind)
6487 (create_process, Fmake_network_process, server_accept_connection)
6488 (wait_reading_process_output, send_process, Fprocess_running_child_p)
6489 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
6490 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
6491 `pid' and `raw_status'.
6492 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
6493 representing PIDs that are larger than most-positive-fixnum.
6495 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
6497 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
6499 2006-04-08 Eli Zaretskii <eliz@gnu.org>
6501 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
6503 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
6505 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
6506 ../lib-src/b2m.c and ../lib-src/editfns.c.
6507 (Fcurrent_time_string): Use it.
6508 Document that the year might not consume 4 columns if it's outside
6509 the range 1000-9999.
6510 Check for asctime failure.
6511 Don't assume that the output string length is always exactly 24.
6513 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6515 * macterm.c (XTread_socket): Initialize variable `f' before its use.
6517 2006-04-03 Kenichi Handa <handa@m17n.org>
6519 * image.c: Include "charset.h" and "coding.h".
6520 (x_find_image_file): Return an encoded file name.
6522 2006-04-01 Eli Zaretskii <eliz@gnu.org>
6524 * configure: Regenerated.
6526 2006-03-31 Kenichi Handa <handa@m17n.org>
6528 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
6530 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6532 * xdisp.c (syms_of_xdisp): Fix variable name.
6534 2006-03-30 Kenichi Handa <handa@m17n.org>
6536 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
6538 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
6540 * keyboard.c (process_tool_bar_item): Reorder dummy args.
6542 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
6544 * keyboard.c (tool_bar_items): Use map_keymap.
6545 (process_tool_bar_item): Add dummy args to fit the required interface.
6547 2006-03-25 Eli Zaretskii <eliz@gnu.org>
6549 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
6550 to zero before calling debug_print or safe_debug_print.
6552 * print.c (print_output_debug_flag): New global variable.
6553 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
6554 OutputDebugString if print_output_debug_flag is zero.
6556 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
6558 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
6559 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
6560 (Fdecode_time): Cast tm_year to EMACS_INT.
6561 (Fcurrent_time_string): Report an invalid time specification if
6562 the argument is invalid. Also, check for out-of-range time stamps.
6564 2006-03-24 Kim F. Storm <storm@cua.dk>
6566 * xterm.c (handle_one_xevent):
6567 * w32term.c (w32_read_socket):
6568 * macterm.c (XTread_socket): Don't let key-press clear mouse face
6569 on in toolbar window if mouse-highlight is an integer.
6571 * fns.c (sxhash_list): Include last non-nil CDR in hash.
6573 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6575 * macmenu.c (enum mac_menu_kind): New enum.
6576 (min_menu_id): New variable.
6577 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
6578 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
6579 min_menu_id and enumerators in enum mac_menu_kind.
6580 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
6581 All uses changed. Add range check for menu ID.
6582 (fill_menubar): Add range check for menu ID.
6583 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
6585 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
6588 2006-03-22 Kim F. Storm <storm@cua.dk>
6590 * xdisp.c: Undo 2006-03-21 change.
6592 * term.c: Define aliases for append_glyph and produce_stretch_glyph
6593 when `static' is defined to avoid name clash with those in xdisp.c.
6595 * process.c (Faccept_process_output): Fix to comply with lisp
6596 reference. Change arg "timeout" to "seconds" and allow both
6597 integer and float value. Change arg "timeout-msec" to "millisec"
6598 and interpret" as milliseconds rather than microseconds. Fix doc
6601 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
6603 * xdisp.c (store_next_glyph): Rename from append_glyph.
6604 (generate_stretch_glyph): Rename from produce_stretch_glyph.
6605 All callers changed accordingly.
6607 2006-03-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6609 * xterm.c: x_session_initialized new variable.
6610 (x_term_init): Use x_session_initialized to check if
6611 x_session_initialize should be called.
6612 (x_initialize): Initialize x_session_initialized.
6614 2006-03-21 Kim F. Storm <storm@cua.dk>
6616 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
6617 bitmap here, but ...
6618 (update_window_fringes): ... here, so we can test if it has changed.
6620 2006-03-20 Andreas Schwab <schwab@suse.de>
6622 * dispnew.c (init_display): Check DISPLAY here.
6624 * emacs.c (main): Don't check here.
6626 * xterm.c (x_display_ok): Don't use DISPLAY env var.
6628 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6630 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
6633 2006-03-20 Eli Zaretskii <eliz@gnu.org>
6635 * emacs.c (main): Fix last change.
6637 2006-03-20 Kenichi Handa <handa@m17n.org>
6639 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
6641 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
6643 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
6645 * xterm.c (x_term_init): Remove unnecessary GCPRO.
6647 2006-03-19 Kim F. Storm <storm@cua.dk>
6649 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
6650 so it doesn't associate overlay string with following glyph by default.
6651 Allow integer property value to specify explicit number of buffer
6652 positions associate with overlay string.
6654 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
6656 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
6658 2006-03-18 Nozomu Ando <nand@mac.com>
6660 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
6661 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
6662 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
6665 * m/mips.h: Don't use unexmips on NetBSD.
6666 (LIBS_MACHINE): Move definition lower, so it doesn't use
6667 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
6668 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
6670 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
6671 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
6672 option is broken (e.g., MIPS/NetBSD).
6674 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
6676 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
6677 Remove the HAVE_X_WINDOWS conditional.
6679 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
6681 * emacs.c (main): If user asks for a display that is unavailable,
6684 * xterm.c (x_display_ok): New function.
6686 * xterm.h: Add prototype for x_display_ok.
6688 2006-03-18 Eli Zaretskii <eliz@gnu.org>
6690 * w32fns.c (Fw32_select_font): Doc fix.
6692 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6694 * image.c [MAC_OS] (XPutPixel, XGetPixel)
6695 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
6696 version when depth is 32.
6697 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
6699 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
6700 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
6702 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
6703 Create GWorld in ARGB pixel format.
6704 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
6706 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
6707 instead of mac_copy_area/mac_copy_area_with_mask.
6709 2006-03-15 Kim F. Storm <storm@cua.dk>
6711 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
6712 empty row. Fixes memory corruption revealed by 2006-03-02 change.
6713 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
6714 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
6715 width is exactly the same as the window width. Don't count a final
6716 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
6718 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
6720 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
6721 conditional on HAVE_NTGUI, not WINDOWS_NT.
6723 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6725 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
6727 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
6729 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
6730 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
6731 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
6732 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
6733 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
6734 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
6735 instead of mac_draw_bitmap.
6736 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
6737 define_fringe_bitmap and destroy_fringe_bitmap.
6739 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
6741 * xterm.c (x_uncatch_errors): Block input for entire function.
6743 2006-03-12 Jason Rumney <jasonr@gnu.org>
6745 * w32fns.c (Fx_create_frame): Remove call to
6746 Qface_set_after_frame_default (from xfns.c 2003-05-26).
6748 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
6749 finished with the menu.
6751 * w32term.c: Sync 2005-10-24 xterm.c changes.
6752 (last_mouse_glyph_frame): New var.
6753 (note_mouse_movement): Say mouse moved if current frame differs
6754 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6755 (w32_mouse_position): Set last_mouse_glyph_frame.
6756 Remove OLD_REDISPLAY_CODE block.
6758 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6760 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
6762 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
6763 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
6765 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
6767 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
6769 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
6770 (x_draw_composite_glyph_string_foreground)
6771 (x_draw_image_foreground): Undo previous changes.
6772 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
6773 argument of mac_draw_rectangle.
6774 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
6775 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
6776 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
6777 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
6778 [USE_CG_DRAWING]: New functions.
6779 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
6780 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
6781 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
6782 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
6783 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
6784 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
6785 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
6787 2006-03-12 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
6789 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
6791 2006-03-11 Jason Rumney <jasonr@gnu.org>
6793 * w32fns.c (signal_user_input): New function.
6794 (post_character_message): Use it for keyboard input.
6795 (w32_msg_pump): Use it for mouse input.
6797 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
6799 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
6800 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
6802 2006-03-11 Eli Zaretskii <eliz@gnu.org>
6804 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
6805 if a menu is already active (the menubar_active flag is on).
6807 2006-03-11 David Ponce <david@dponce.com>
6809 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
6811 2006-03-11 Eli Zaretskii <eliz@gnu.org>
6813 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
6814 the list of unused display error handling functions.
6816 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
6818 (internal_condition_case, internal_condition_case_1)
6819 (internal_condition_case_2): Call x_catching_errors only if
6822 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
6823 Don't include sys/resource.h unless defined.
6825 2006-03-11 Richard Stallman <rms@gnu.org>
6827 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
6829 * vm-limit.c (get_lim_data, lim_data, data_space_start):
6830 Move from mem-limits.h.
6831 (enum warnlevel): New data type.
6832 (check_memory_limits): Rewrite the logic about warnings.
6833 Use standard `struct rlimit'. Check return values for nonsense.
6834 (memory_warnings): Always clear lim_data.
6836 * mem-limits.h (get_lim_data, lim_data, data_space_start):
6839 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
6841 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
6842 (internal_condition_case_1, internal_condition_case_2):
6843 Abort if within unclosed x_catch_errors.
6845 2006-03-11 Romain Francoise <romain@orebokech.com>
6847 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
6849 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6851 * lisp.h: Remove duplicate prototypes. Make the prototype of
6852 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
6854 2006-03-11 Eli Zaretskii <eliz@gnu.org>
6856 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
6857 argument of XDrawRectangle.
6859 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
6861 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
6862 (x_draw_glyph_string_foreground)
6863 (x_draw_composite_glyph_string_foreground)
6864 (x_draw_image_foreground): Don't subtract 1 from width and height
6865 arguments to mac_draw_rectangle.
6866 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
6868 2006-03-10 Kim F. Storm <storm@cua.dk>
6870 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
6872 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
6874 * alloc.c (USE_POSIX_MEMALIGN): New macro.
6875 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
6877 2006-03-09 Kenichi Handa <handa@m17n.org>
6879 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
6880 ASCII component of a composition.
6882 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
6884 * window.c: Declare preserve_y as a static global variable.
6885 (window_scroll_pixel_based): No longer declare preserve_y;
6887 (syms_of_window): Set preserve_y to -1.
6889 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6891 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
6893 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
6896 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
6898 * xdisp.c (handle_invisible_prop): Don't update it->position with
6899 a buffer position if we're in a display string.
6901 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6903 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
6904 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
6906 * macfns.c (x_default_scroll_bar_color_parameter)
6907 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
6908 Remove unnecessary prototypes.
6909 (x_set_scroll_bar_default_width):
6910 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
6911 (mac_set_scroll_bar_width): New function.
6912 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
6914 * macterm.c (get_control_part_bounds): Fix type of return value.
6915 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6916 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
6917 scroll bar if it is not tall enough to display scroll bar thumb.
6918 [USE_CARBON_EVENTS] (mac_convert_event_ref)
6919 (mac_handle_command_event, mac_handle_window_event)
6920 (mac_handle_mouse_event): Check error code of GetEventParameter.
6921 (convert_fn_keycode) [MAC_OSX]: Likewise.
6923 2006-03-05 Andreas Schwab <schwab@suse.de>
6925 * xselect.c (x_catch_errors_unwind): Fix missing return value.
6927 2006-03-02 Kim F. Storm <storm@cua.dk>
6929 * frame.h (struct frame): New member n_tool_bar_rows.
6931 * xdisp.c: Minimize the unpleasent visual impact of the requirement
6932 that non-toolkit tool-bars must occupy an integral number of screen
6933 lines, by distributing the rows evenly over the tool-bar screen area.
6934 (Vtool_bar_border): New variable.
6935 (syms_of_xdisp): DEFVAR_LISP it.
6936 (display_tool_bar_line): Add HEIGHT arg for desired row height.
6937 Make tool-bar row the desired height. Use default face for border
6939 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
6940 actual tool-bar rows.
6941 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
6942 Adjust the height of the tool-bar rows to fill tool-bar screen area.
6943 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
6946 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
6948 * search.c (Fregexp_quote): Do not precede a literal `]' with two
6949 backslashes to try to make clear that it has a literal meaning; it
6950 does not do that. (It could close a character alternative
6951 containing a backslash.)
6953 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
6955 * xselect.c (x_catch_errors_unwind): New function.
6956 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
6957 (Fx_get_atom_name): Call x_uncatch_errors earlier.
6959 * window.c (Qscroll_up, Qscroll_down): New syms.
6960 (window_scroll_pixel_based): Make preserve_y static to avoid
6961 getting point stuck when scrolling 1 line.
6963 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
6965 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
6967 * xterm.c (x_load_font, x_term_init, XTmouse_position)
6968 (handle_one_xevent, x_connection_closed, x_list_fonts):
6969 No arg for x_uncatch_errors.
6971 * xselect.c (x_own_selection, x_decline_selection_request)
6972 (x_reply_selection_request, x_get_foreign_selection)
6973 (Fx_get_atom_name, Fx_send_client_event): Likewise.
6975 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
6978 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
6980 * lread.c: Declare Vload_file_rep_suffixes instead of
6981 deleted variable default_suffixes.
6982 (Fget_load_suffixes): New function.
6983 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
6984 No longer use deleted variable default_suffixes. Update docstring.
6985 (syms_of_lread): defsubr Sget_load_suffixes.
6986 Expand `load-suffixes' docstring.
6987 Delete default_suffixes and DEFVAR_LISP the new variable
6988 `load-file-rep-suffixes'.
6990 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
6993 * lisp.h: EXFUN Fget_load_suffixes.
6994 Extern Vload_file_rep_suffixes.
6996 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
6999 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
7001 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
7002 qualifier which was trying to avoid the bug that was fixed by
7003 yesterday's changes to xterm.c.
7005 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
7007 * xterm.h (x_catch_errors) Return value changed to void.
7008 (x_uncatch_errors): Delete unused count argument.
7010 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
7011 it can be called in a signal handler.
7012 (x_catch_errors_unwind): Function deleted.
7013 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
7014 (x_check_errors): Call x_uncatch_errors before signalling error.
7016 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
7017 (x_connection_closed, x_list_fonts): Use new versions of
7018 x_catch_errors and x_uncatch_errors.
7020 * xselect.c (x_own_selection, x_decline_selection_request)
7021 (x_reply_selection_request, x_get_foreign_selection)
7022 (Fx_get_atom_name, Fx_send_client_event): Likewise.
7024 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
7027 * eval.c (record_unwind_protect): Add an assertion.
7029 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
7031 * process.c (Fmake_network_process): Init the process's mark.
7033 2006-02-25 Kim F. Storm <storm@cua.dk>
7035 * buffer.c (modify_overlay): Force redisplay if we modify an
7036 overlay at the end of the buffer.
7038 2006-02-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7040 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
7041 nil the image file has been removed, in that case use the (cached)
7044 2006-02-24 Kenichi Handa <handa@m17n.org>
7046 * fileio.c (Finsert_file_contents): When a text is replaced
7047 partially, be sure to set point before the inserted characters.
7049 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
7051 * xfns.c (Fx_file_dialog): Return a decoded file name.
7053 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7055 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
7056 glyph whose face is extended to the text area end.
7058 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
7059 values if control is not visible or values are not changed.
7061 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
7063 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
7064 The default `window' should not be "on a different frame".
7066 2006-02-22 Kim F. Storm <storm@cua.dk>
7068 * indent.c (Fvertical_motion): Only try to move back if we can.
7070 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7072 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
7075 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
7078 * macterm.c (GC_CLIP_REGION): Remove macro.
7079 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
7080 All uses changed. Don't do clipping if n_clip_rects is zero.
7081 (mac_set_clip_rectangles): Use xassert instead of abort.
7082 Set n_clip_rects. Don't make clip_region empty when number of
7083 clipping rectangles is zero.
7084 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
7085 calling mac_set_clip_rectangles.
7086 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
7087 avoid multiple redraws.
7089 2006-02-22 Kim F. Storm <storm@cua.dk>
7091 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
7093 2006-02-21 Kim F. Storm <storm@cua.dk>
7095 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
7097 2006-02-21 Zhang Wei <brep@newsmth.org>
7099 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
7102 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
7104 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
7105 (standard_bitmaps): Use it.
7107 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7109 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
7110 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
7111 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
7112 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
7113 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
7114 Draw background if BG_WIDTH is not zero. Use float constants as
7115 divisors instead of double. Use alloca instead of xmalloc/xfree.
7116 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
7117 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
7118 mac_draw_image_string* functions.
7119 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
7120 some fonts when srcCopy text transfer mode might be used.
7121 (mac_begin_clip, mac_end_clip): Check if region is empty.
7122 (mac_set_clip_rectangles): When resetting clip region, make it
7123 empty instead of disposing of it.
7125 2006-02-20 Kim F. Storm <storm@cua.dk>
7127 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
7129 * buffer.h (struct buffer): New members fringe_indicator_alist and
7130 fringe_cursor_alist.
7132 * buffer.c (init_buffer_once): Set dummy default values for
7133 fringe-indicator-alist and fringe-cursor-alist. The proper
7134 default values are set by pre-loading fringe.el.
7135 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
7136 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
7137 corresponding default- variables.
7139 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
7141 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
7143 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
7144 (Qhollow_small): New variables.
7145 (syms_of_fringe): Intern and staticpro them.
7146 (question_mark_bits): Rename from unknown_bits.
7147 (left_curly_arrow_bits): Rename from continuation_bits.
7148 (right_curly_arrow_bits): Rename from continued_bits.
7149 (left_triangle_bits): Rename from ov_bits.
7150 (right_triangle_bits): Add.
7151 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
7152 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
7153 (filled_square_bits): Add.
7154 (vertical_bar_bits): Rename from bar_cursor_bits.
7155 (horizontal_bar_bits): Rename from hbar_cursor_bits.
7156 (empty_line_bits): Rename from zv_bits.
7157 (standard_bitmaps): Update to use new names.
7158 (draw_fringe_bitmap_1): Make static.
7159 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
7160 to map from logical cursors and indicators to physical bitmaps.
7161 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
7162 bitmaps using symbol names instead of bitmap numbers.
7163 (update_window_fringes): Use logical indicator symbol names
7164 instead of bitmap numbers for logical. Add bitmap cache.
7165 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
7167 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
7169 * regex.c: Revert 2006-02-19 change.
7170 (xmalloc, xrealloc): Define these when not linked to Emacs.
7171 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
7173 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
7175 * regex.c (extend_range_table_work_area): Fix typo.
7177 2006-02-19 Richard M. Stallman <rms@gnu.org>
7179 * xterm.c (x_catch_errors): Use xmalloc.
7181 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
7182 (regex_compile): Likewise.
7183 (regcomp): Use xmalloc.
7185 * gtkutil.c (malloc_widget_value): Use xmalloc.
7187 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
7188 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
7190 * xmenu.c (digest_single_submenu): When pane_string is empty,
7191 do initialize save_wv.
7193 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7195 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
7196 w->update_mode_line if arg F is not the selected frame.
7198 * macmenu.c (popup_activated_flag, submenu_id)
7199 (next_menubar_widget_id): Remove variables.
7200 (initialize_frame_menubar): Remove function.
7201 (pop_down_menu, mac_menu_show): Simplify save value.
7202 (dispose_menus): New function.
7203 (pop_down_menu, fill_menubar): Use it.
7204 (fill_submenu): Remove function. All uses changed to fill_menu.
7205 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
7206 POS. Don't call SetMenuItemHierarchicalID here.
7207 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
7208 used next. Call SetMenuItemHierarchicalID here.
7209 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
7210 objects if needed. Reuse existing menu bar titles if possible.
7211 (set_frame_menubar): Don't clean up menu objects here.
7213 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
7215 * window.c (window_min_size_1): Ensure room for the scroll bar and
7218 2006-02-17 Romain Francoise <romain@orebokech.com>
7220 * puresize.h (BASE_PURESIZE): Increment to 1200000.
7222 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
7224 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
7225 addition of the BLOCK_INPUTs.
7227 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
7229 * window.c (Fset_window_scroll_bars): Doc fix.
7231 2006-02-17 Kenichi Handa <handa@m17n.org>
7233 * xdisp.c (display_mode_element): Call display_string with correct
7234 PREC arg (which must be a number of characters, not column width).
7236 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7238 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
7240 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
7242 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
7244 2006-02-14 Richard M. Stallman <rms@gnu.org>
7246 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
7248 * m/ibms390x.h: New file.
7250 2006-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7252 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
7253 value of x-gtk-whole-detached-tool-bar.
7254 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
7256 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
7258 2006-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7260 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
7262 * xterm.h: Declare x_x_to_emacs_modifiers.
7264 * gtkutil.c (xg_tool_bar_button_cb): New function.
7265 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
7266 store modifiers in event.
7267 (update_frame_tool_bar): Connect button-release-event to
7268 xg_tool_bar_button_cb.
7270 2006-02-13 Richard M. Stallman <rms@gnu.org>
7272 * .gdbinit (xwindow): Update the code to show the window box.
7274 2006-02-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7276 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
7278 2006-02-12 Richard M. Stallman <rms@gnu.org>
7280 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
7282 2006-02-11 Eli Zaretskii <eliz@gnu.org>
7284 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
7285 (syms_of_keyboard): DEVFAR_LISP and initialize it.
7286 (parse_tool_bar_item, parse_menu_item): If that variable is
7287 non-nil, don't disable menu items and tool-bar buttons.
7289 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
7291 * doc.c (Fsubstitute_command_keys): Doc fix.
7293 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
7295 * data.c (Findirect_function): Rewrite docstring.
7296 Fix omission bug: Declare new arg NOERROR.
7298 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7300 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
7301 if window_desc is not set yet.
7302 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
7303 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
7304 parameter `visibility' is `icon'.
7305 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
7306 instead of "fontset-mac".
7307 (Fx_focus_frame): New defun.
7308 (syms_of_macfns): Defsubr it.
7310 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
7311 for unfocused frame.
7312 (x_raise_frame): Call BringToFront instead of SelectWindow.
7313 (x_lower_frame): Use NULL instead of nil.
7314 (x_make_frame_visible): Don't call SelectWindow.
7315 (XTread_socket): Increment handling_signal at the start, decrement
7317 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
7318 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
7320 2006-02-10 Kim F. Storm <storm@cua.dk>
7322 * data.c (Findirect_function): Add NOERROR arg. All callers changed
7323 to pass Qnil for NOERROR.
7325 * keymap.c (current_minor_maps_error): Remove.
7326 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
7327 instead of using internal_condition_case_1+current_minor_maps_error.
7329 2006-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7331 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
7332 frames for GTK, in that case it is the tool bar. This is so that
7333 highlighted text get reset properly.
7335 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
7337 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
7339 2006-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7341 * window.c (adjust_window_trailing_edge): Check that shrinking
7342 does not set a window to size zero or less.
7344 2006-02-08 Miles Bader <miles@gnu.org>
7346 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
7347 of Fget_text_property (other field functions work with overlays as
7348 well as text-properties).
7350 2006-02-07 Kenichi Handa <handa@m17n.org>
7352 * dispextern.h (unibyte_display_via_language_environment): Extern it.
7354 * xterm.h (unibyte_display_via_language_environment):
7355 * w32term.h (unibyte_display_via_language_environment):
7356 * macterm.h (unibyte_display_via_language_environment): Delete extern.
7358 2006-02-07 Kenichi Handa <handa@m17n.org>
7360 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
7361 (produce_glyphs): Set the character to print in
7362 it->char_to_display. Handle unibyte-display-via-language-environment.
7363 (produce_stretch_glyph): Set character to print in it->char_to_display.
7365 2006-02-06 Kenichi Handa <handa@m17n.org>
7367 * lread.c (openp): Initialize encoded_fn before GCPRO it.
7369 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
7371 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
7373 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
7374 Cast bitfield value to EMACS_INT, to suppress gcc warning.
7376 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
7379 2006-02-03 Kim F. Storm <storm@cua.dk>
7381 * xdisp.c: Cache last merged escape glyph face.
7382 (last_escape_glyph_frame, last_escape_glyph_face_id)
7383 (last_escape_glyph_merged_face_id): New variables.
7384 (get_next_display_element): Use/update them.
7385 (redisplay_internal): Reset them before redisplay.
7387 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
7388 Only recheck faces after displaying ellipsis.
7390 2006-02-02 Kenichi Handa <handa@m17n.org>
7392 * coding.c (decode_composition_emacs_mule): Fix handling of
7393 incorrect format data.
7395 2006-01-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7397 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
7398 gtk_toolbar_insert() so we can have tool bars of different sizes.
7400 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
7402 * data.c (Flistp): Doc fix.
7404 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
7406 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
7407 Fix typos in docstrings.
7409 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
7411 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
7413 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
7415 * alloc.c (make_interval, allocate_string)
7416 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
7417 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
7420 2006-01-27 Eli Zaretskii <eliz@gnu.org>
7422 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
7423 the MSDOS definition.
7425 2006-01-26 Richard M. Stallman <rms@gnu.org>
7427 * alloc.c (check_pure_size): Make overflow message an "error message".
7429 * keymap.c (Fmap_keymap): Doc fix.
7431 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
7432 unless they were cleared out.
7434 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
7436 2006-01-26 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
7438 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
7439 (find_field): Set before_field to after_field when pos is at BEGV.
7440 (Fline_beginning_position, Fline_end_position):
7441 Clarify confusing doc string.
7443 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
7446 2006-01-26 Kenichi Handa <handa@m17n.org>
7448 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
7449 current_dir, and error_file. On reporting an error, decode them
7452 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
7454 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
7455 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
7456 Don't check for quit, since any loop will go through fail or jump.
7458 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
7460 * alloc.c (allocate_string_data): Update next_free immediately, to
7461 reduce risk of memory clobberage.
7463 2006-01-24 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
7465 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
7466 display when point moves across an ellipsis. If there are
7467 adjacent invisible texts, don't lose the second one's ellipsis.
7468 (x_produce_glyphs): Doc fix.
7470 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
7472 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
7474 2006-01-23 Kim F. Storm <storm@cua.dk>
7476 * xdisp.c (handle_single_display_spec): Fix handling of space
7477 property on char from string: set *position rather than
7479 (produce_stretch_glyph): Reduce width of stretch glyphs so they
7480 don't get wider than the window (unless truncate-lines is on).
7482 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
7484 * xterm.c: Avoid allocating Lisp data from a signal handler.
7485 (x_error_message): New var to replace x_error_message_string.
7486 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
7487 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
7488 (syms_of_xterm): Use it instead of x_error_message_string.
7490 * alloc.c (lisp_align_free): Add an assertion.
7491 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
7492 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
7495 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
7497 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
7499 2006-01-21 Romain Francoise <romain@orebokech.com>
7501 * xdisp.c (get_window_cursor_type): Fix last change.
7502 Update copyright year.
7504 2006-01-20 Eli Zaretskii <eliz@gnu.org>
7506 * lread.c (Fload): Don't leak the file descriptor returned by
7507 openp if we are going to signal an error.
7509 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
7511 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
7512 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
7514 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
7517 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
7520 2006-01-20 Kenichi Handa <handa@m17n.org>
7522 * puresize.h (BASE_PURESIZE): Increment to 1190000.
7524 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
7526 * xdisp.c (get_window_cursor_type): Use cursor type specified by
7527 the selected buffer for the echo area too.
7529 2006-01-19 Richard M. Stallman <rms@gnu.org>
7531 * keymap.c (Fmap_keymap): Doc fix.
7533 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
7535 * keyboard.c (echo_char): Don't omit the space between first two
7538 * minibuf.c (read_minibuf): Fix previous change.
7540 2006-01-19 Kenichi Handa <handa@m17n.org>
7542 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
7544 2006-01-17 Richard M. Stallman <rms@gnu.org>
7546 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
7547 value in f->param_alist.
7549 2006-01-15 Andreas Schwab <schwab@suse.de>
7551 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
7553 2006-01-13 Richard M. Stallman <rms@gnu.org>
7555 * Makefile.in: Define new macro WINDOW_SUPPORT.
7557 (SOME_MACHINE_LISP): Add conditionally loaded files.
7559 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7561 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
7562 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
7563 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
7566 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
7567 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
7568 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
7569 macro. Also try member ifr_addr when getting netmask.
7571 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
7573 * fileio.c (Fexpand_file_name): Remove redundant tests.
7574 Fix elimination of // so that it doesn't prevent elimination of an
7575 immediately following /. or /..
7577 2006-01-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7579 * gtkutil.c (xg_toggle_notify_cb): New function.
7580 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
7581 xg_toggle_notify_cb.
7582 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
7583 parameter value changes so the toggle button gets updated.
7585 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
7587 * .gdbinit: Fix typo.
7589 2006-01-05 Eli Zaretskii <eliz@gnu.org>
7591 * .gdbinit: Fix last change.
7593 2006-01-05 Kim F. Storm <storm@cua.dk>
7595 * process.c (Fmake_network_process): Use AF_INET instead of
7596 AF_UNSPEC when AF_INET6 is not defined.
7598 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7600 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
7601 Don't check that the other type is known file-related one.
7603 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
7604 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
7605 OS X 10.4 and later.
7607 2006-01-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7609 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
7610 let GTK do all image processing. Importing Emacs own pixmaps to GTK
7611 looks bad for inactive tool bar items with some Gnome themes.
7613 2006-01-04 Eli Zaretskii <eliz@gnu.org>
7615 * .gdbinit: Avoid a warning message when x_error_quitter is not
7618 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
7621 2006-01-04 Kim F. Storm <storm@cua.dk>
7623 * process.c: Add IPv6 support.
7624 (Qipv4, Qipv6): New vars.
7625 (syms_of_process): Intern and staticpro them.
7626 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
7627 with or without port number. Handle 4 element vector as IPv4 address
7628 without port number.
7629 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
7630 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
7631 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
7632 request that address family only. :family nil or omitted means to
7633 determine address family from the specified :host and :service.
7634 (ifflag_table): Add missing OpenBSD IFF_ flags.
7635 (server_accept_connection): Handle IPv6 addresses.
7636 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
7638 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
7639 determine which breakpoints to set.
7641 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
7643 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
7645 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
7647 2006-01-03 Romain Francoise <romain@orebokech.com>
7649 * emacs.c (main): Update copyright year.
7651 2006-01-03 Ken Raeburn <raeburn@gnu.org>
7653 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
7654 nil for the call to internal_delete_file.
7656 2006-01-01 Ken Raeburn <raeburn@gnu.org>
7658 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
7659 to nil for the call to Fwrite_region.
7661 2005-12-31 Richard M. Stallman <rms@gnu.org>
7663 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
7665 2005-12-31 Eli Zaretskii <eliz@gnu.org>
7667 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
7669 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
7671 * textprop.c (set_text_properties): Reword description of return value.
7672 Return Qnil if caller wants to remove all text properties from a
7673 string and the string already has no intervals.
7675 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
7677 * term.c (visible_cursor): New boolean var.
7678 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
7680 (syms_of_term): Export the new var as "visible-cursor".
7682 2005-12-30 Eli Zaretskii <eliz@gnu.org>
7684 * .gdbinit: Tell users not to worry about GDB warnings that some
7685 functions do not exist in the binary.
7687 2005-12-30 Andreas Schwab <schwab@suse.de>
7689 * process.c (Fnetwork_interface_info): Correctly terminate the
7690 loop over ifflag_table.
7692 2005-12-29 Richard M. Stallman <rms@gnu.org>
7694 * lread.c (readevalloop): Test for reading a whole buffer
7695 before actually reading anything. Handle all cases, including
7696 START = END = nil and an already-narrowed buffer.
7697 Convert END to a marker if it is a number.
7699 * keymap.c (describe_map): Put sparse map elements into an array,
7700 sort them, then output a sequence of identical bindings on one line.
7701 (struct describe_map_elt): New data type.
7702 (describe_map_compare): New function.
7704 2005-12-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7706 * gtkutil.c (xg_get_file_with_chooser): Change message shown
7709 2005-12-27 Richard M. Stallman <rms@gnu.org>
7711 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
7712 not the current one.
7714 * minibuf.c (Fminibuffer_message): Doc fix.
7715 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
7717 * eval.c (do_autoload): Ignore elements of Vautoload_queue
7718 where car is not symbol.
7720 2005-12-27 Kenichi Handa <handa@m17n.org>
7722 * charset.c (lisp_string_width): Check multibyteness of STRING.
7724 2005-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7726 * xfns.c (x_show_hidden_files): New variable.
7727 (syms_of_xfns): Defvar it.
7729 * gtkutil.c (xg_toggle_visibility_cb): New function.
7730 (xg_get_file_with_chooser): Add toggle hidden files and a message
7731 to the new file chooser dialog. Show hidden files if
7732 x_show_hidden_files is non-zero.
7734 2005-12-26 Richard M. Stallman <rms@gnu.org>
7736 * keyboard.h: Undo previous change.
7738 * Makefile.in (undo.o): Undo previous change.
7740 * undo.c: Undo previous change.
7742 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
7744 * keyboard.h: extern last_point_position_window.
7746 * undo.c: include keyboard.h.
7748 * Makefile.in (undo.o): Depend on keyboard.h.
7750 2005-12-26 Richard M. Stallman <rms@gnu.org>
7752 * commands.h (last_point_position_window): Declare.
7754 * undo.c: Depend on window.h.
7755 (record_point): Save old point from the correct window.
7757 * keyboard.c (last_point_position_window): New variable.
7758 (command_loop_1): Set last_point_position_window.
7759 (syms_of_keyboard): Init it.
7761 * Makefile.in (undo.o): Depend on window.h.
7763 2005-12-25 Richard M. Stallman <rms@gnu.org>
7765 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
7766 to undo a `provide'.
7768 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
7770 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
7772 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
7773 define for FreeBSD on this platform.
7775 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7777 * macterm.h (TYPE_FILE_NAME): New define.
7778 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
7780 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
7781 Add prototypes. Make static.
7782 (mac_aedesc_to_lisp): Initialize err to noErr.
7783 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
7784 (init_coercion_handler): New functions.
7785 (Fmac_coerce_ae_data): Use coercion of Apple event data for
7786 translation from/to file names.
7788 * macterm.c: Don't include sys/param.h.
7789 (init_coercion_handler): Add extern.
7790 [MAC_OS8] (main): Call init_coercion_handler.
7791 (mac_initialize) [MAC_OSX]: Likewise.
7792 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
7793 Apple event data for translation from/to file names.
7795 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
7797 * image.c [MAC_OS] (find_image_fsspec): Likewise.
7799 2005-12-23 Martin Rudalics <rudalics@gmx.at>
7801 * insdel.c (insert, insert_and_inherit, insert_before_markers)
7802 (insert_before_markers_and_inherit): Make sure FROM is correct
7803 when `after-change-functions' are called.
7805 2005-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7807 * xfns.c (Fx_uses_old_gtk_dialog): New function.
7809 * gtkutil.c (xg_uses_old_file_dialog): New function.
7810 (xg_get_file_name): Use xg_uses_old_file_dialog.
7812 * gtkutil.h: Declare xg_uses_old_file_dialog.
7814 2005-12-22 Richard M. Stallman <rms@gnu.org>
7816 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
7818 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7820 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
7822 * macgui.h (XCharStruct): Remove member `valid_p'.
7823 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
7824 (XCharStructRow): New typedef.
7825 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
7827 (struct MacFontStruct): Add member `bounds'. Remove member
7828 `per_char'. All uses for QuichDraw Text fonts are changed to
7829 `bounds.per_char'. ATSUI font bounds are represented as an array
7830 `bounds.rows' of XCharStructRow's, each of which consists of a
7831 bitmap of valid entries and an array of char bounds.
7833 * macterm.c (mac_per_char_metric): Add prototype.
7834 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
7835 (mac_query_char_extents): New function.
7836 (x_per_char_metric): Use it.
7837 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
7838 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
7839 Use mac_per_char_metric instead of x_per_char_metric.
7840 (mac_text_extents_16): New function.
7841 (mac_compute_glyph_string_overhangs): Use it.
7842 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
7844 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7846 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
7847 (Fminibuffer_completion_help): Remove duplicates before display.
7849 2005-12-21 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
7851 * print.c (print_preprocess): Don't lose print_depth levels while
7854 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7856 * macmenu.c (Qmac_apple_event): Add extern.
7857 (set_frame_menubar, mac_menu_show keymp_panes)
7858 (single_keymap_panes, list_of_panes, list_of_item)
7859 (single_menu_item): Add argument types to prototypes.
7860 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
7861 (struct skp): New struct (from xmenu.c).
7862 (single_keymap_panes, single_menu_item, list_of_panes)
7863 (list_of_item): Sync with xmenu.c.
7864 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
7865 POSITION if it is mac-apple-event event.
7866 (menubar_selection_callback): Don't use menu_command_in_progress.
7867 (set_frame_menubar): First parse all submenus, then make
7868 widget_value trees from them. Don't allocate any widget_value
7869 objects until we are done with the parsing.
7870 (parse_single_submenu, digest_single_submenu): New functions.
7871 (single_submenu): Function deleted, replaced by those two.
7872 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
7873 or dispose of EventHandlerUPP. Install hander to all submenus.
7874 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
7875 instead of ENCODE_SYSTEM.
7876 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
7878 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
7879 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
7880 format menu item string. Don't use NULL for integer value.
7882 * macterm.h (struct mac_output): Remove unused member
7883 menu_command_in_progress.
7885 2005-12-20 Juri Linkov <juri@jurta.org>
7887 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
7888 position is non-nil, else set it to nil.
7890 * macmenu.c (Fx_popup_menu): Add `else' to set
7891 Vmenu_updating_frame to nil only if position is nil.
7893 * w32menu.c (Fx_popup_menu): Add `else' to set
7894 Vmenu_updating_frame to nil only if position is nil.
7896 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7898 * keyboard.c (make_lispy_event): Drag-and-drop items are now
7899 stored in member `args' of struct input_event.
7901 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
7903 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
7904 stored in member `args' of struct input_event.
7906 * w32term.c (construct_drag_n_drop): Likewise.
7908 * macterm.c (mac_do_receive_drag): Likewise.
7909 (x_use_underline_position_properties): Undo 2005-07-13 change.
7910 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
7911 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
7912 (mac_pass_command_to_system, mac_pass_control_to_system):
7913 New boolean variables renamed from Lisp_Object ones
7914 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
7915 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
7917 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
7918 Make them user options.
7919 (mac_handle_command_event, mac_store_services_event):
7920 Call create_apple_event_from_event_ref without 5th argument.
7921 (backtranslate_modified_keycode): Mask off modifier keys that are
7922 mapped to some Emacs modifiers before passing it to KeyTranslate.
7923 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
7924 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
7925 Fix docstrings of `mac-*-modifier'.
7927 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
7928 (do_applescript): Change argument types to Lisp_Object.
7931 * macterm.h (create_apple_event_from_event_ref): Remove 5th
7932 argument from extern.
7934 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7936 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
7937 the answer, return `lambda', not nil.
7939 2005-12-17 Eli Zaretskii <eliz@gnu.org>
7941 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
7942 enclosed in $(ARGQUOTE)s should not be split between two lines, as
7943 that will break with GNU Make >3.80, when sh.exe is used and
7944 arg quoting is with '..'.
7946 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
7948 * print.c (print_preprocess): Just signal an error if print_depth
7951 2005-12-17 Eli Zaretskii <eliz@gnu.org>
7953 * .gdbinit: Set a breakpoint on w32_abort.
7955 2005-12-16 Juri Linkov <juri@jurta.org>
7957 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
7958 created from minibuffer_completion_contents.
7959 (minibuffer_completion_contents): Remove.
7960 (do_completion, Fminibuffer_complete_word)
7961 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
7962 with Fminibuffer_completion_contents.
7963 (syms_of_minibuf): Add Sminibuffer_completion_contents.
7964 (Fdisplay_completion_list): Doc fix.
7965 (display_completion_list_1): Use `nil' for second arg of
7966 `Fdisplay_completion_list'.
7968 2005-12-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7970 * xfns.c (compute_tip_xy): Handle negative dx and dy.
7972 * w32fns.c (compute_tip_xy): Ditto.
7974 * macfns.c (compute_tip_xy): Ditto.
7976 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
7978 * print.c (print_preprocess): Go to a deeper print_depth to avoid
7981 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
7983 * coding.c (code_convert_region_unwind): GCPRO arg.
7985 2005-12-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7987 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
7988 i.e. dy is offset from top of frame instead of bottom.
7990 * macfns.c (compute_tip_xy): Ditto.
7992 * w32fns.c (compute_tip_xy): Ditto.
7994 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
7995 (xg_get_image_for_pixmap, xg_create_frame_widgets)
7996 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
7998 * xmenu.c (menubar_selection_callback): Do nothing if the callback
7999 is for an unselected radio menu item.
8001 2005-12-11 Richard M. Stallman <rms@gnu.org>
8003 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
8005 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
8007 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
8008 (Flookup_key): Doc fix.
8009 (syms_of_keymap) <function-key-map>: Doc fix.
8011 * fns.c (Frequire): Treat evaluating from a source file
8012 like loading the file.
8014 * floatfns.c (Flog): Doc fix.
8016 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
8017 when we change the buffer.
8019 2005-12-11 Juri Linkov <juri@jurta.org>
8021 * minibuf.c (display_completion_list_1):
8022 Call `minibuffer_completion_contents' instead of using `nil' as
8023 second arg of `Fdisplay_completion_list'.
8024 (keys_of_minibuf): Unbind SPC in
8025 Vminibuffer_local_filename_completion_map (see also related
8026 change on 2005-12-06).
8028 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8030 * emacs.c (main) [MAC_OS8]: Undo previous change.
8032 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
8033 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
8035 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8037 * Makefile.in (macselect.o): Depend on keymap.h.
8039 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
8042 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
8043 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
8045 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
8046 (syms_of_keyboard) [MAC_OS]: Initialize it.
8047 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
8049 * mac.c (Qundecoded_file_name): New variable.
8050 (syms_of_mac): Initialize it.
8051 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
8052 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
8053 (Fmac_coerce_ae_data): New defun.
8054 (syms_of_mac): Defsubr it.
8056 * macselect.c: Include keymap.h.
8057 (mac_ready_for_apple_events): New variable.
8058 (Vmac_apple_event_map, Qmac_apple_event_class)
8059 (Qmac_apple_event_id): New variables.
8060 (syms_of_macselect): Initialize them.
8061 (Qundefined, mac_store_apple_event): Add externs.
8062 (struct apple_event_binding): New struct.
8063 (find_event_binding_fun, find_event_binding)
8064 (mac_find_apple_event_spec, defer_apple_events)
8065 (mac_handle_apple_event, init_apple_event_handler)
8066 (copy_scrap_flavor_data): New functions.
8067 (Fmac_process_deferred_apple_events): New defun.
8068 (syms_of_macselect): Defsubr it.
8069 (mac_store_services_event): Fix extern.
8070 (mac_handle_service_event): Don't allocate Lisp objects during
8071 asynchronous input processing. Use mac_store_services_event
8072 instead of mac_store_application_menu_event.
8074 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
8075 (Qpreferences): Remove variables.
8076 (syms_of_macterm): Don't initialize them.
8077 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
8078 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
8079 (init_required_apple_events, do_ae_open_application)
8080 (do_ae_print_documents, do_ae_open_documents)
8081 (do_ae_quit_application): Remove functions and prototypes.
8082 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
8083 (mac_find_apple_event_spec): Add externs.
8084 (mac_store_application_menu_event): Remove function.
8085 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
8086 (mac_handle_command_event): Create Apple event from Carbon event.
8087 Use mac_store_apple_event instead of mac_store_application_menu_event.
8088 [MAC_OSX] (mac_store_services_event): Likewise.
8089 (struct SelectionRange, SelectionRange): Remove struct and typedef.
8090 [MAC_OS8] (main): Call init_apple_event_handler instead of
8091 init_required_apple_events.
8092 (mac_initialize) [MAC_OSX]: Likewise.
8093 [!USE_CARBON_EVENTS] (mac_wait_next_event):
8094 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
8096 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
8098 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
8099 (Fmac_get_preference): Add EXFUN.
8101 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
8104 2005-12-09 Richard M. Stallman <rms@gnu.org>
8106 * xfns.c (Fx_create_frame): Reinstate previous change.
8108 2005-12-09 Eli Zaretskii <eliz@gnu.org>
8110 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
8111 GDB to the abort dialog.
8113 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
8115 * indent.c (Fvertical_motion): Force move if starting on
8118 2005-12-08 Richard M. Stallman <rms@gnu.org>
8120 * lread.c (read_escape) <\s>: Don't treat strings specially.
8122 * xfns.c (Fx_create_frame): Comment out previous change.
8124 2005-12-07 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
8126 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
8129 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
8131 * minibuf.c (keys_of_minibuf): Just unbind SPC in
8132 Vminibuffer_local_filename_completion_map rather than forcing it
8133 explicitly to the same binding as the global map.
8135 2005-12-06 Ken Raeburn <raeburn@gnu.org>
8137 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
8138 * bytecode.c (Fbyte_code): Likewise.
8139 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
8140 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
8141 * undo.c (truncate_undo_list): Likewise.
8143 2005-12-05 Richard M. Stallman <rms@gnu.org>
8145 * window.c (enlarge_window): Eliminate arg preserve_before.
8146 Assume it is 0. All callers changed.
8147 (Fenlarge_window, Fshrink_window): Likewise.
8149 2005-12-02 Eli Zaretskii <eliz@gnu.org>
8151 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
8154 2005-12-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8156 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
8158 * xfns.c (x_real_positions): int ign => unsigned int.
8159 (xg_set_icon_from_xpm_data): Remove unused variable err.
8160 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
8161 to remove compiler warning.
8162 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
8164 2005-12-02 David Reitter <david.reitter@gmail.com>
8166 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
8167 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
8168 and Vminibuffer_local_must_match_filename_map keymaps.
8169 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
8171 * keymap.c (Vminibuffer_local_filename_completion_map)
8172 (Vminibuffer_local_must_match_filename_map): New variables.
8173 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
8174 parent to be Vminibuffer_local_completion_map and
8175 Vminibuffer_local_must_match_map, respectively.
8177 * commands.h (Vminibuffer_local_filename_completion_map)
8178 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
8180 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
8182 * window.c (Fset_window_configuration): Don't accidentally copy the
8183 window-point of one window to another.
8185 2005-11-30 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
8187 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
8189 2005-11-30 Kim F. Storm <storm@cua.dk>
8191 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
8192 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
8193 passing it to `emacs_write'.
8195 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
8197 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
8199 2005-11-27 Richard M. Stallman <rms@gnu.org>
8201 * window.c (adjust_window_trailing_edge): New function.
8202 (Fadjust_window_trailing_edge): New function.
8203 (syms_of_window): Defsubr it.
8204 (window_deletion_count): New variable.
8205 (delete_window): Update window_deletion_count.
8207 2005-11-26 Eli Zaretskii <eliz@gnu.org>
8209 * minibuf.c (syms_of_minibuf): Mention the extension of
8210 `completion-auto-help's meaning by complete.el.
8212 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
8214 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
8215 Handle :inherit property as a lisp expression.
8217 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8219 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
8220 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
8221 Qsuper, and Qmodifier_value.
8222 (Vmac_control_modifier, Vmac_option_modifier)
8223 (Vmac_command_modifier, Vmac_function_modifier)
8224 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
8225 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
8226 (Vmac_charset_info_alist): Doc fixes.
8228 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8230 * emacs.c (main) [MAC_OSX]: Change working directory to home
8231 directory if `-psn_*' option is specified.
8233 * mac.c (DECODE_UTF_8): Remove macro.
8234 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
8235 created from cfstring_to_lisp.
8236 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
8237 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
8239 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
8242 2005-11-21 Ken Raeburn <raeburn@gnu.org>
8244 * keymap.c (shadow_lookup): Use make_number to pass a number to
8247 2005-11-21 Juri Linkov <juri@jurta.org>
8249 * puresize.h (BASE_PURESIZE): Increment to 1180000.
8251 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
8253 * xfaces.c (Finternal_set_lisp_face_attribute):
8254 Use :ignore-defface for new frame defaults when `unspecified' is
8256 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
8257 (merge_face_vectors): Don't do :ignore-defface overwriting here.
8258 (Finternal_merge_in_global_face): Do it here.
8260 2005-11-20 Juri Linkov <juri@jurta.org>
8262 * charset.c (invalid_character): Use Lisp-readable syntax
8263 for octal and hex. Reorder decimal, octal and hex values.
8265 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
8267 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
8268 this type is recognised when debugging.
8270 2005-11-19 Andreas Schwab <schwab@suse.de>
8272 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
8273 Lisp_Cons and Lisp_Float.
8275 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8277 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
8279 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
8280 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
8281 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
8282 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
8284 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
8286 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
8288 * xfaces.c (Qignore_defface): New variable.
8289 (syms_of_xfaces): Provide `:ignore-defface'.
8290 (IGNORE_DEFFACE_P): New macro.
8291 (check_lface_attrs, lface_fully_specified_p)
8292 (Finternal_set_lisp_face_attribute)
8293 (Fface_attribute_relative_p, Fmerge_face_attribute):
8294 Handle Qignore_defface as a possible value.
8295 (merge_face_vectors): The merged face is `unspecified' if the
8296 mergee specifies `:ignore-defface'.
8298 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
8300 * lread.c (readevalloop): Add missing GCPROs.
8302 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
8304 * xfns.c (xg_set_icon_from_xpm_data): New function.
8306 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
8307 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
8309 * xterm.c (x_bitmap_icon): Use the xpm if available.
8311 * image.c (x_create_bitmap_from_xpm_data): New function.
8312 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
8314 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
8316 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
8318 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
8320 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
8322 2005-11-15 Andreas Schwab <schwab@suse.de>
8324 * lisp.h (struct Lisp_Cons): Make cdr a union.
8325 (XCDR_AS_LVALUE): Adjust.
8326 (struct Lisp_Float): Make data a union.
8327 (XFLOAT_DATA): Adjust.
8329 * alloc.c (free_float): Make free list chaining aliasing-safe.
8330 (make_float): Likewise.
8331 (free_cons): Likewise.
8333 (check_cons_list): Likewise.
8334 (Fmake_symbol): Likewise.
8335 (allocate_misc): Likewise.
8336 (free_misc): Likewise.
8337 (gc_sweep): Likewise.
8339 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8341 * mac.c (HASHKEY_QUERY_CACHE): New define.
8342 (xrm_create_database, xrm_q_put_resource): Empty query cache.
8343 (xrm_get_resource): Use query cache.
8345 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
8346 inhibit_window_system is set.
8348 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8350 * macgui.h (USE_CG_TEXT_DRAWING): New define.
8351 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
8354 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
8355 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
8356 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
8357 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
8358 not used and font substitution never occurs for ASCII and Latin-1
8360 (XLoadQueryFont): Maximum and minimum metrics are now those among
8362 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
8363 height adjustments for Courier, Helvetica, and Times.
8365 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
8367 2005-11-11 David Reitter <david.reitter@gmail.com>
8369 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
8370 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
8371 Vmac_control_modifier / mac-control-modifier,
8372 Vmac_option_modifier / mac-option-modifier,
8373 Vmac_command_modifier / mac-command-modifier.
8374 (mac_to_emacs_modifiers): Use the new style modifier
8375 variables. Return UInt32 (modifiers are longs now.)
8376 (backtranslate_modified_keycode): New function (refactoring).
8377 (XTread_socket): Use new modifier variables and refactored function.
8378 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
8379 no dedicated meta key. Not in use anyway.)
8380 (convert_fn_keycode): Map Fn-keys to their original keycode
8381 using a table (english keyboard only).
8383 2005-11-11 Kim F. Storm <storm@cua.dk>
8385 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
8386 Add post hook to "backtrace" to always dump lisp call stack to
8387 increase chance of people sending it to us when reporting bugs.
8389 * doc.c (Fsubstitute_command_keys): Doc fix.
8391 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
8393 * xdisp.c (handle_stop): Skip overlay string handling if
8394 ignore_overlay_strings_at_pos_p is set.
8395 (set_iterator_to_next): At end of display vector, set
8396 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
8397 string, so we skip those overlay strings at current pos.
8399 2005-11-10 Lars Hansen <larsh@soem.dk>
8401 * fileio.c (file-regular-p): Doc fix.
8403 2005-11-10 Kim F. Storm <storm@cua.dk>
8405 * alloc.c (valid_lisp_object_p): New function to validate that
8406 an object is really a valid Lisp_Object.
8408 * lisp.h (valid_lisp_object_p): Add prototype.
8410 * print.c (safe_debug_print): New function to be called from gdb
8411 to print Lisp objects; use valid_lisp_object_p to avoid crashing
8412 if user tries to print something which is not a Lisp object.
8414 * .gdbinit (pp, pp1): Use safe_debug_print.
8415 (pv, pv1): New commands to print value of a lisp variable.
8417 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
8419 * .gdbinit (pp1): New user-defined function.
8421 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8423 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
8425 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
8426 related variables for dumped executable.
8428 * unexmacosx.c (unexec_write_zero): New function.
8429 (copy_data_segment): Clear uninitialized local variables in
8430 statically linked libraries.
8432 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
8434 2005-11-09 Juri Linkov <juri@jurta.org>
8436 * keymap.c (shadow_lookup): If Flookup_key returns a number,
8437 call it again with a sub-key-sequence, and if its return value
8438 is non-nil (sub-key is bound), return nil.
8440 2005-11-08 Kim F. Storm <storm@cua.dk>
8442 * process.c (Fsignal_process): Recognize signal names with and
8443 without SIG prefix, e.g. SIGHUP and HUP.
8445 * search.c (search_buffer): No need to initialize base_pat.
8447 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
8449 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
8450 Don't abuse the `mini' arg. Use the `obj' arg instead.
8452 2005-11-04 Kim F. Storm <storm@cua.dk>
8454 * xdisp.c (show_mouse_face): Clear mouse face to eol.
8456 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
8458 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
8459 font-lock.elc and jit-lock.elc.
8461 2005-11-03 Richard M. Stallman <rms@gnu.org>
8463 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
8464 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
8465 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
8467 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
8469 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
8471 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
8473 * window.c (Fdisplay_buffer): Fix last change to not use
8476 2005-11-01 Kim F. Storm <storm@cua.dk>
8478 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
8479 Instead, rotate the bottom angle bitmap 180 degrees to indicate
8480 that the bottom row does not end in a newline.
8482 2005-11-01 Andreas Schwab <schwab@suse.de>
8484 * unexelf.c (unexec): Handle .plt section in BSS segment.
8486 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8488 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
8490 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
8491 determine whether to consider dedicated windows as well.
8492 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
8493 (Fdisplay_buffer): Do consider dedicated windows in those cases where
8494 we will split the window rather than reuse it.
8495 Don't try to use windows on other displays.
8497 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
8499 * puresize.h (BASE_PURESIZE): Increment to 1170000.
8501 2005-10-31 Romain Francoise <romain@orebokech.com>
8503 * macfns.c: Update copyright year.
8504 * m/gould.h: Likewise.
8506 2005-10-30 Kim F. Storm <storm@cua.dk>
8508 * xdisp.c (display_line): Restore it->current_x and call
8509 extend_face_to_end_of_line when last glyph doesn't fit on line.
8510 (set_glyph_string_background_width): Remove specific tests here
8511 to see if face background should extend to end of line. Simplify.
8513 2005-10-30 Richard M. Stallman <rms@gnu.org>
8515 * alloc.c (BYTES_USED): Use uordblks, not arena.
8516 (bytes_used_when_reconsidered): New variable.
8517 (emacs_blocked_free): Set that.
8519 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
8521 * alloc.c (emacs_blocked_free): Fix typo.
8523 2005-10-29 Richard M. Stallman <rms@gnu.org>
8525 * data.c (Fmake_variable_frame_local): Doc fix.
8527 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
8528 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
8529 controls whether to save and restore mode_line_proptrans_alist.
8531 (unwind_format_mode_line): Work with that feature.
8532 (redisplay_internal): Don't call prepare_menu_bars if memory full.
8533 (move_elt_to_front): New function.
8534 (display_mode_element): Use move_elt_to_front.
8535 Don't bother munging text props on a null string.
8536 Delete obsolete elts from mode_line_proptrans_alist.
8537 (decode_mode_spec): Test Vmemory_full, not spare_memory.
8538 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
8540 * lisp.h (memory_full_cons_threshold): Declare.
8541 (internal_lisp_condition_case): Declare.
8543 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
8544 (Fmemory_full_p): Function deleted.
8545 (syms_of_alloc): Don't defsubr it.
8546 (memory_full_cons_threshold): New variable.
8547 (spare_memory): Now a vector of 7 elts.
8548 (buffer_memory_full): Don't set Vmemory_full here.
8549 (xfree): Don't try to refill here.
8550 (emacs_blocked_free): Record BYTES_USED in local var.
8551 (memory_full): Now free all the slots in spare_memory.
8552 (refill_memory_reserve): Allocate each slot in spare_memory.
8553 (init_alloc_once): Call refill_memory_reserve.
8555 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
8557 * eval.c (internal_lisp_condition_case): New function.
8558 (Fcondition_case): Use internal_lisp_condition_case.
8559 (Feval): Test Vmemory_full and memory_full_cons_threshold.
8560 (Ffuncall): Likewise.
8562 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
8564 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
8566 * syntax.c (Fparse_partial_sexp): Fix docstring.
8568 2005-10-28 Romain Francoise <romain@orebokech.com>
8570 * puresize.h (BASE_PURESIZE): Increment to 1130000.
8572 2005-10-28 Richard M. Stallman <rms@gnu.org>
8574 * xfns.c (syms_of_xfns): Provide `x' as feature.
8576 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
8578 * editfns.c (Fformat): Don't include string padding
8579 between info[n].start and info[n].end.
8581 * alloc.c (spare_memory): No longer static.
8582 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
8584 * puresize.h (BASE_PURESIZE): Increment to 1120000.
8586 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
8588 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
8590 * fringe.c (update_window_fringes): Handle case where buffer ends
8593 2005-10-27 Kenichi Handa <handa@m17n.org>
8595 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
8597 2005-10-24 Kenichi Handa <handa@m17n.org>
8599 * charset.h (charset_mule_unicode_0100_24ff)
8600 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
8603 * charset.c (charset_mule_unicode_0100_24ff)
8604 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
8606 (Fsetup_special_charsets): Initialize them.
8608 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
8609 supported Unicode characters.
8611 2005-10-25 Jason Rumney <jasonr@gnu.org>
8613 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
8615 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8617 * image.c [MAC_OS] (image_load_qt_1): Check image size.
8618 Use GraphicsImportGetImageDescription instead of
8619 GraphicsImportGetNaturalBounds.
8620 [MAC_OSX] (image_load_quartz2d): Check image size.
8621 [MAC_OS] (xpm_load_image): Likewise.
8623 * macterm.c (last_mouse_glyph_frame): New var.
8624 (note_mouse_movement): Say mouse moved if current frame differs
8625 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
8626 (XTmouse_position): Set last_mouse_glyph_frame.
8627 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
8628 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
8630 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
8631 (x_per_char_metric, XLoadQueryFont)
8632 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
8634 (mac_to_x_fontname, mac_do_list_fonts)
8635 (mac_initialize_display_info): Change screen resolutions to 72dpi.
8637 2005-10-25 Masatake YAMATO <jet@gyve.org>
8639 * minibuf.c (Fdisplay_completion_list): Small doc fix.
8641 2005-10-24 Kim F. Storm <storm@cua.dk>
8643 * xterm.c: Undo 2005-10-23 change.
8644 (last_mouse_glyph_frame): New var.
8645 (note_mouse_movement): Say mouse moved if current frame differs
8646 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
8647 (XTmouse_position): Set last_mouse_glyph_frame.
8648 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
8649 last_mouse_glyph] on mouse up/down event.
8651 * editfns.c (Fcompare_buffer_substrings): Fix last change.
8653 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
8655 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
8657 2005-10-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8659 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
8660 so tool tips don't interfere with press on tool bar button.
8662 2005-10-23 Richard M. Stallman <rms@gnu.org>
8664 * casetab.c (Fset_case_table): Doc fix.
8666 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
8667 (readevalloop): Compute ENTIRE properly.
8668 (syms_of_lread) <load-history>: Doc fix.
8670 2005-10-21 Richard M. Stallman <rms@gnu.org>
8672 * lread.c (Fload): Simplify gcpro structure.
8673 Gcpro FOUND as well as FILE, but not EFOUND.
8674 Unless preloading, record FOUND instead of FILE in Vload_history.
8675 Rename repeat local FILE to MSG_FILE.
8676 (syms_of_lread) <load-history>: Doc fix.
8678 2005-10-21 Kenichi Handa <handa@m17n.org>
8680 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
8682 2005-10-20 Kim F. Storm <storm@cua.dk>
8684 * buffer.c (clone_per_buffer_values): Remove unused var tem.
8685 (init_buffer): Remove unused vars dotstat, pwdstat.
8687 * ccl.c (check_ccl_update): Remove unused var vp.
8689 * fileio.c (auto_save_error): Call SAFE_FREE.
8691 * fns.c (Fchar_table_range): Remove unused var i.
8693 * minibuf.c (display_completion_list_1): New wrapper function
8694 for Fdisplay_completion_list.
8695 (Fminibuffer_completion_help): Use it.
8697 * term.c (encode_terminal_code): Remove unused var src_start.
8699 * window.c (Fwindow_tree): Remove unused var alist.
8701 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
8703 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
8705 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
8707 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
8709 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
8711 2005-10-20 Andreas Schwab <schwab@suse.de>
8713 * minibuf.c (Fdisplay_completion_list): Doc fix.
8715 2005-10-19 Kim F. Storm <storm@cua.dk>
8717 * image.c (check_image_size): Handle integer Vmax_image_size value
8718 directly as max pixel value. Use default frame size for null frame.
8719 (syms_of_image) <max-image-size>: Describe integer value.
8721 2005-10-19 Romain Francoise <romain@orebokech.com>
8723 * emacs.c (main): Update copyright year.
8725 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
8727 * image.c (Vmax_image_size): New variable.
8728 (check_image_size): New function.
8729 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
8730 (gif_load, gs_load): Use it.
8731 (lookup_image): Try loading again if previous load failed.
8732 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
8733 to display in, NULL if none.
8734 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
8737 2005-10-18 Richard M. Stallman <rms@gnu.org>
8739 * search.c (Fstring_match): Doc fix.
8741 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8743 * macterm.c (note_mouse_movement): Use PtInRect.
8744 (XTread_socket): Also ignore mouse motion just before a button
8745 release event. Don't process button release event when mouse is
8748 2005-10-16 Masatake YAMATO <jet@gyve.org>
8750 * minibuf.c (Fdisplay_completion_list): Add new optional
8751 argument COMMON_SUBSTRING. Bind `completion-common-substring'
8752 to the optional argument during running `completion-setup-hook'.
8754 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8756 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
8757 Allow nil as argument.
8758 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
8759 for encoding arguments as UTF-16 in native byte order, no BOM.
8761 * macfns.c (Fx_create_frame): Add debugging code.
8762 (Fx_show_tip): Set frame pixel width and height.
8764 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
8765 (FRAME_NORMAL_GC): New macro.
8766 (mac_draw_line, mac_clear_area, mac_clear_window)
8767 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
8768 (mac_draw_image_string, mac_draw_image_string_16): Rename from
8769 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
8770 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
8772 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
8773 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
8774 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
8775 (mac_draw_string_16, mac_draw_image_string)
8776 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
8777 (mac_scroll_area): Drawing functions now take frame as destination.
8779 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
8780 (x_draw_fringe_bitmap): Set clipping area in face->gc.
8782 * macterm.h (mac_clear_area): Add extern.
8784 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8786 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
8787 changes for xterm.c.
8789 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
8791 2005-10-14 Kenichi Handa <handa@m17n.org>
8793 * search.c (search_buffer): Give up BM search on case-fold-search
8794 if one of a target character has a case-equivalence of different
8795 charset even if that target charcter is an ASCII.
8797 * casefiddle.c (casify_object): Fix for the case that case
8798 conversion change the byte length.
8800 2005-10-14 Kim F. Storm <storm@cua.dk>
8802 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
8803 (handle_one_xevent): Only clear help_echo_string; restore it if
8804 note_mouse_movement didn't record any mouse movement.
8806 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
8807 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
8809 * keyboard.c (make_lispy_position): Adjust wx for left margin if
8811 (Fposn_at_x_y): Fix calculation of x coordinate.
8812 (Fposn_at_point): Return nil if point is hscrolled out of view.
8814 2005-10-13 Andreas Schwab <schwab@suse.de>
8816 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
8817 non-interactive mode.
8819 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8821 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
8823 2005-10-12 Kim F. Storm <storm@cua.dk>
8825 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
8827 2005-10-12 Romain Francoise <romain@orebokech.com>
8829 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
8831 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8833 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
8834 get end of text rows. Obtain header-line/mode-line rows directly.
8836 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
8837 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
8839 2005-10-12 Kim F. Storm <storm@cua.dk>
8841 * xdisp.c (remember_mouse_glyph): New generic version based on
8842 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
8843 properly handle all different window areas.
8845 * dispextern.h (remember_mouse_glyph): Add prototype.
8847 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
8848 (note_mouse_movement, XTmouse_position): Use generic
8849 remember_mouse_glyph, add last_mouse_glyph arg.
8851 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
8852 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
8853 (note_mouse_movement, w32_mouse_position): Use generic
8854 remember_mouse_glyph, add last_mouse_glyph arg.
8856 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
8857 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
8858 (XTmouse_position): Adapt to use generic remember_mouse_glyph
8859 instead of pixel_to_glyph_coords.
8861 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
8862 Fix x position for ON_TEXT when left margin width > 0.
8864 2005-10-11 Kim F. Storm <storm@cua.dk>
8866 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
8868 * keyboard.c (make_lispy_position): Fix buffer calculations for
8869 mouse click or movement in right fringe and the margins.
8871 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
8873 * image.c (fn_jpeg_stdio_src): Don't define it.
8874 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
8875 (our_common_init_source): Rename from `our_init_source'.
8876 (our_common_term_source): Rename from `our_term_source'.
8877 (our_memory_fill_input_buffer): Rename from
8878 `our_fill_input_buffer'.
8879 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
8880 (jpeg_memory_src): Use the new names.
8881 (struct jpeg_stdio_mgr): New struct.
8882 (JPEG_STDIO_BUFFER_SIZE): New constant.
8883 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
8884 (jpeg_file_src): New functions.
8885 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
8887 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8889 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
8890 (fm_font_family_alist): New variable.
8891 (syms_of_macterm): Initialize and staticpro it.
8892 (decode_mac_font_name): Replace '-' in family name with '_' if it
8893 occurs just once. Lower family name.
8894 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
8895 All uses changed. Remove argument MF and code conversion for it.
8896 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
8897 to CHARSET. Parse font size. Lower family name. Return integer
8898 value for status of parsing.
8899 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
8900 Don't use Fdowncase because family name is already lowered by
8901 decode_mac_font_name.
8902 (init_font_name_table): Always call decode_mac_font_name.
8903 Add pair of family name and its reference to fm_font_family_alist.
8904 (mac_clear_font_name_table): Clear fm_font_family_alist.
8905 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
8906 Lookup fm_font_family_alist to get font family reference.
8907 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
8908 name is already lowered by parse_x_font_name.
8910 2005-10-11 Kim F. Storm <storm@cua.dk>
8912 * xterm.c (glyph_rect): Return 0 if position is outside text area.
8914 * keyboard.c (make_lispy_position): Fix buffer position calculation for
8915 mouse click or movement in fringe.
8917 2005-10-10 Jason Rumney <jasonr@gnu.org>
8919 * xterm.c (remember_mouse_glyph): New function.
8920 (note_mouse_movement): Use it to remember the current glyph if changed.
8921 (XTmouse_position): Fix calculation of fake glyph under mouse.
8922 Move code to calculate glyph under mouse into remember_mouse_glyph.
8924 2005-10-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8926 * emacs.c (USAGE3, standard_args): -nb => -nbi.
8928 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
8930 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
8931 (next_frame, prev_frame, set_term_frame_name): Make static.
8933 * window.c (Fwindow_tree): Fix spelling.
8935 2005-10-09 Romain Francoise <romain@orebokech.com>
8937 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
8939 2005-10-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8941 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
8942 Add options -nb, --no-bitmap-icon.
8944 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
8946 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8948 * macgui.h (MAX_CLIP_RECTS): New define.
8949 (struct _XGC): New member clip_region.
8950 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
8953 * macterm.c (GC_CLIP_REGION): New macro.
8954 (saved_port_clip_region): New variable.
8955 (mac_begin_clip, mac_end_clip): New functions.
8956 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
8957 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
8958 (mac_copy_area_with_mask, mac_scroll_area): Use them.
8959 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
8960 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
8961 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
8962 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
8963 rectangles stored in gc.
8964 (XFreeGC): Dispose of clipping region.
8965 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
8966 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
8967 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
8968 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
8969 (x_draw_bar_cursor): Use them.
8970 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
8971 get multiple clipping rectangles.
8973 * macterm.h (mac_term_init): Add types to extern.
8974 (struct mac_output): Remove members mWP and pending_menu_activation.
8975 Put members scroll_bar_foreground_pixel and
8976 scroll_bar_background_pixel in #if 0.
8977 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
8979 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
8982 2005-10-08 Kim F. Storm <storm@cua.dk>
8984 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
8986 2005-10-07 Kim F. Storm <storm@cua.dk>
8988 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
8989 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
8990 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
8992 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8994 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
8995 to for_overlaps. Now occupy 3 bits.
8996 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
8997 (OVERLAPS_ERASED_CURSOR): New defines.
8998 (struct redisplay_interface): Add new OVERLAPS arg to member
8999 fix_overlapping_area.
9000 (x_fix_overlapping_area): Add new OVERLAPS arg.
9001 (get_glyph_string_clip_rects): Add extern.
9003 * dispnew.c (redraw_overlapping_rows):
9004 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
9006 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
9008 (get_glyph_string_clip_rects): New function created from
9009 get_glyph_string_clip_rect. Set clipping rectangles according to the
9010 value of for_overlaps. Enable to store multiple clipping rectangles.
9011 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
9012 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
9013 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
9014 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
9015 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
9016 calculating clipping rectangles later. Call x_fix_overlapping_area
9017 with new OVERLAPS arg to draw only erased cursor area.
9018 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
9019 to draw overlaps in both preceding and succeeding rows.
9021 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
9022 struct glyph_string to for_overlaps.
9024 2005-10-04 Richard M. Stallman <rms@gnu.org>
9026 * alloc.c (refill_memory_reserve): Conditionalize the body,
9027 not the function's existence.
9029 2005-10-04 Kim F. Storm <storm@cua.dk>
9031 * window.c (window_split_tree): New function.
9032 (Fwindow_split_tree): New defun.
9033 (syms_of_window): Defsubr it.
9035 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9037 * macterm.c (mac_invert_rectangle): New function.
9040 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
9042 * regex.h (re_char): Don't expose it in the interface.
9043 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
9045 * regex.c (re_char): Move it back here.
9046 (re_set_whitespace_regexp): Change the arg's type to not use it.
9048 * keyboard.c (make_lispy_event): If point has moved between down and up
9049 event, make it a drag, not a click, to mirror what
9050 mouse-drag-region expects.
9052 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9054 * lisp.h (fatal): Undo previous change.
9055 * term.c (fatal): Undo previous change.
9057 2005-10-01 Richard M. Stallman <rms@gnu.org>
9059 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
9061 2005-10-01 Kim F. Storm <storm@cua.dk>
9063 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
9065 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9067 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
9069 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
9070 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
9071 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
9072 Try ATSUI-compatible 12pt Monaco font first.
9074 * macgui.h (struct _XCharStruct): New member valid_p.
9075 (STORE_XCHARSTRUCT): Set valid_p.
9076 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
9078 * macterm.c (mac_draw_string_common, x_per_char_metric)
9079 (mac_compute_glyph_string_overhangs, init_font_name_table)
9080 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
9081 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
9082 (x_draw_glyph_string_background)
9083 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
9084 XDrawImageString. Always draw background and foreground separately.
9085 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
9086 functions for one-byte chars when using ATSUI-compatible fonts.
9087 (atsu_font_id_hash) [USE_ATSUI]: New variable.
9088 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
9089 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
9090 max_char_or_byte2 more in detail.
9091 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
9093 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
9095 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
9096 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
9098 * unexelf.c (fatal): Fix prototype.
9100 * term.c (fatal): Implement using varargs.
9102 * regex.c (re_char): Move typedef ...
9103 * regex.h (re_char): ... here.
9104 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
9106 * emacs.c (malloc_set_state): Fix return type.
9109 * lisp.h (fatal): Add argument types.
9111 * dispextern.h (fatal): Delete prototype.
9113 * systime.h (make_time): Prototype moved from ...
9114 * editfns.c (make_time): ... here.
9116 * editfns.c: Move systime.h include after lisp.h.
9119 * process.c: Likewise.
9121 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
9122 Add parameter types.
9123 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
9124 (emacs_blocked_free): Change definition to match __free_hook.
9125 (emacs_blocked_malloc): Change definition to match __malloc_hook.
9126 (emacs_blocked_realloc): Change definition to match __realloc_hook.
9128 2005-09-30 Romain Francoise <romain@orebokech.com>
9130 * minibuf.c (Fread_buffer): Follow convention for reading from the
9131 minibuffer with a default value. Doc fix.
9133 2005-09-29 Juri Linkov <juri@jurta.org>
9135 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
9136 Rename argument name `string' to `format-string'.
9139 2005-09-28 Kim F. Storm <storm@cua.dk>
9141 * image.c (gif_load): Fix size of allocated image buffer
9142 for images where a sub-image may be larger than the image's
9143 total height/width specifications.
9145 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9147 * macgui.h (struct _XCharStruct): Each member now takes short value.
9149 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
9151 * xfaces.c (lookup_derived_face): Add parameter type.
9153 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
9155 * marker.c (verify_bytepos): Add parameter type.
9157 * process.c (get_operating_system_release): Move prototype ...
9159 * systime.h (get_operating_system_release): ... here.
9161 * xterm.c (handle_one_xevent): Refer to union field to match the
9162 type required by the function definition.
9163 (set_vertical_scroll_bar): Move prototype ...
9165 * xterm.h: ... here.
9167 * fns.c (internal_equal, seed_random): Fix prototypes.
9168 (internal_equal): Add missing parameter.
9170 2005-09-25 Richard M. Stallman <rms@gnu.org>
9172 * keyboard.c (update_menu_bindings): Variable deleted.
9173 (syms_of_keyboard): Don't defvar it.
9174 (parse_menu_item): Don't test it.
9176 2005-09-23 Richard M. Stallman <rms@gnu.org>
9178 * editfns.c (Fformat): Explicitly test for end of format string
9179 and don't use `index'.
9181 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
9183 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
9184 Define BROKEN_GET_CURRENT_DIR_NAME.
9186 * sysdep.c (get_current_dir_name): Also define if
9187 BROKEN_GET_CURRENT_DIR_NAME.
9189 * m/ibmrs6000.h: Test for USG5, not USG5_4.
9191 2005-09-22 Kim F. Storm <storm@cua.dk>
9193 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
9194 (message2): Fix commentary. Ok to use alloca'ed memory.
9195 Still not ok to use Lisp string data (because of GC).
9196 (set_message): Add comment why GC cannot happen.
9198 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9200 * macterm.c (xlfdpat_block_match_1): Fix assertion.
9201 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
9202 variants for a scalable font multiple times.
9204 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9206 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
9207 Setup slave tty options before forking.
9209 2005-09-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9211 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
9212 positions have been set for the frame (as is done for frames in
9213 special-display-buffer-names).
9215 2005-09-19 Kim F. Storm <storm@cua.dk>
9217 * editfns.c (Fformat): Don't scan past end of format string that
9218 ends in %. Reported by Johan Bockg
\e,Ae
\e(Brd.
9220 2005-09-18 Andreas Schwab <schwab@suse.de>
9222 * window.h (struct window): Remove height_fixed_p, no longer set.
9224 * window.c (make_window): Don't initialize height_fixed_p.
9225 (window_fixed_size_p): Don't use it.
9227 2005-09-18 John Paul Wallington <jpw@pobox.com>
9229 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
9231 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9233 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
9235 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
9237 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
9240 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
9242 2005-09-17 Eli Zaretskii <eliz@gnu.org>
9244 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
9245 (obj): Use XMENU_OBJ, not a literal xmenu.o.
9247 2005-09-16 Romain Francoise <romain@orebokech.com>
9249 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
9251 2005-09-15 Richard M. Stallman <rms@gnu.org>
9253 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
9254 (display_mode_element): Instead of `lisp_string' and `this',
9255 record `offset' and increment that.
9256 `last_offset' replaces `last'.
9258 * Makefile.in (XMENU_OBJ): Variable deleted.
9259 (obj): Use xmenu.o unconditionally.
9260 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
9262 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
9264 2005-09-15 Kim F. Storm <storm@cua.dk>
9266 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
9267 (reseat_at_next_visible_line_start): Likewise (in xassert).
9269 2005-09-14 Romain Francoise <romain@orebokech.com>
9271 * fileio.c (write_region_inhibit_fsync): New variable.
9272 (Fwrite_region): Use it to skip call to fsync.
9273 (syms_of_fileio): Initialize it.
9275 2005-09-14 Kenichi Handa <handa@m17n.org>
9277 * coding.c (code_convert_region_unwind): Argument format changed.
9278 (run_pre_post_conversion_on_str): If pre-write-conversion function
9279 changed the current buffer, delete the new buffer.
9280 (run_pre_write_conversin_on_c_str): Likewise.
9282 * fileio.c (Fexpand_file_name): Check multibyteness of
9285 2005-09-13 Kenichi Handa <handa@m17n.org>
9287 * composite.c (compose_chars_in_text): Delete it.
9289 * composite.h (compose_chars_in_text): Delete extern.
9291 2005-09-13 Kim F. Storm <storm@cua.dk>
9293 * print.c (print_error_message): Fix last change.
9295 2005-09-12 Kim F. Storm <storm@cua.dk>
9297 * composite.c (compose_chars_in_text): Fix setup of `pend'.
9298 Unconditionally reload `ptr' and `pend' after eval.
9300 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
9302 * print.c (print_error_message): Pass copy of caller name to
9305 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
9307 2005-09-12 Kenichi Handa <handa@m17n.org>
9309 * xdisp.c (display_mode_element): Be sure to make variables THIS
9310 and LISP_STRING point into a string data of ELT.
9312 2005-09-12 Kim F. Storm <storm@cua.dk>
9314 * editfns.c (Ftranslate_region_internal): Reload `tt' after
9315 signal_after_change that may have GC'ed.
9316 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
9318 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
9319 after insert while runs signal_after_change.
9321 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
9322 declaration to where it is used.
9324 * w32.c (check_windows_init_file): Fix allocation of error buffer.
9326 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
9327 (x_set_name_internal): Call x_encode_text with new FREEP arg to
9328 know if xfree is needed instead of guessing.
9330 * xterm.h (x_encode_text): Remove prototype.
9332 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
9334 * w32term.c (x_bitmap_icon): Load small icons too.
9336 2005-09-10 Romain Francoise <romain@orebokech.com>
9338 * buffer.c (init_buffer): Grow buffer to add directory separator
9339 and terminal zero. Fix typos.
9341 2005-09-10 Eli Zaretskii <eliz@gnu.org>
9343 * buffer.c (init_buffer): Fix error message for failed call to
9344 get_current_dir_name.
9345 (get_current_dir_name): Remove prototype.
9347 * xsmfns.c (get_current_dir_name): Remove prototype.
9349 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
9352 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
9353 Don't #undef NULL after including blockinput.h.
9355 * config.in: Regenerated.
9357 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
9359 Remove the MAXPATHLEN limitations:
9361 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
9364 * buffer.c (init_buffer): Use it.
9366 * xsmfns.c (smc_save_yourself_CB): Ditto.
9368 2005-09-09 Kim F. Storm <storm@cua.dk>
9370 * doc.c (Fsubstitute_command_keys): Lookup key binding for
9371 commands that are remapped from some other command.
9373 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
9374 flag in disabled rows below the window.
9376 * frame.h (struct frame): New member updated_p.
9378 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
9379 member. Remove local `updated' array and associated variables.
9381 2005-09-07 Kim F. Storm <storm@cua.dk>
9383 * xdisp.c (handle_display_prop): Respect overlay window property.
9385 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
9386 Fixes crash reported by YAMAMOTO Mitsuharu.
9388 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9390 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
9391 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
9392 (xlfdpat_block_match_1, xlfdpat_match): New functions.
9393 (xlfdpat_block_match): New macro.
9394 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
9395 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
9396 (add_font_name_table_entry): Increase font_name_table_size more
9398 (mac_c_string_match): Remove function.
9399 (mac_do_list_fonts): Use XLFD pattern match instead of regular
9402 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
9404 2005-09-03 Richard M. Stallman <rms@gnu.org>
9406 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
9407 (move_it_in_display_line_to): Stop after last char on line even
9408 on a windowing terminal, if that's the specified stop position.
9410 * fns.c (Fsort): Doc fix.
9412 * editfns.c (Fpropertize): Don't insist that properties be symbols.
9414 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
9416 * dired.c (directory_files_internal_unwind, directory_files_internal)
9417 (file_name_completion): Use a Save_Value object rather than a cons of
9418 two 16bit ints to store the DIR*.
9419 (directory_files_internal, file_name_completion): Handle both EINTR and
9420 EAGAIN consistently after `readdir'.
9422 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
9424 * intervals.c (update_interval): Add position info in error.
9426 * dispnew.c (window_to_frame_hpos, update_window):
9427 Avoid gcc warning about unused variable `f'.
9429 2005-08-31 Jason Rumney <jasonr@gnu.org>
9431 * w32menu.c (add_menu_item): If unicode_append_menu returns an
9432 error, revert to using AppendMenu.
9434 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9436 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
9438 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
9440 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
9441 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
9442 Use posix_pathname_to_fsspec.
9443 [MAC_OS] (xpm_load_image): Fill in background_transparent field
9446 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
9448 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
9450 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
9452 * syntax.c (update_syntax_table): Properly reproduce the special +1
9453 setting of e_property at the end of the buffer when bumping into the
9454 INTERVALS_AT_ONCE limit.
9456 2005-08-27 Eli Zaretskii <eliz@gnu.org>
9458 * emacs.c (USAGE1): Fix the description of the -Q option.
9460 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
9462 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
9464 2005-08-26 Kim F. Storm <storm@cua.dk>
9466 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
9467 Don't move PT to new window start.
9469 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9471 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
9472 ICONIFY/DEICONIFY_EVENT.
9474 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
9475 Restore background color.
9476 (mac_handle_visibility_change): New function.
9477 (x_make_frame_invisible, x_iconify_frame)
9478 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
9479 [USE_CARBON_EVENTS] (mac_handle_window_event)
9480 (install_window_handler): Handle visibility change events.
9481 (x_make_frame_visible): Don't reposition window if it is iconified
9482 or asked for visible before. Select and uncollapse window when it
9484 (x_make_frame_invisible): Don't reset x_highlight_frame.
9485 (x_iconify_frame): Likewise. Make invisible frame visible before
9487 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
9488 (do_window_update): Don't change visibility of invisible frame.
9490 2005-08-22 Juri Linkov <juri@jurta.org>
9492 * term.c (turn_on_face): Check for TS_set_foreground and
9493 TS_set_background depending on standout_mode. Simplify.
9495 2005-08-21 Kim F. Storm <storm@cua.dk>
9497 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
9498 bitmaps on fully visible rows.
9500 * fringe.c (update_window_fringes): Replace FORCE_P arg with
9501 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
9504 * xdisp.c (redisplay_window): Call update_window_fringes with
9505 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
9507 2005-08-20 Richard M. Stallman <rms@gnu.org>
9509 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
9510 (resize_mini_window): Set w->start, and PT, so as to display the tail
9511 end of the buffer, if it doesn't all fit.
9513 2005-08-18 Kim F. Storm <storm@cua.dk>
9515 * xdisp.c (calc_pixel_width_or_height): Use actual display
9516 resolution when available instead of Vdisplay_pixels_per_inch.
9518 2005-08-17 Kim F. Storm <storm@cua.dk>
9520 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
9522 * dispnew.c (buffer_posn_from_coords): Check that target row is
9525 2005-08-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9527 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
9528 xg_set_frame_icon and call it.
9530 * gtkutil.c (xg_set_frame_icon): New function.
9532 * gtkutil.h (xg_set_frame_icon): Declare it.
9534 2005-08-16 Kim F. Storm <storm@cua.dk>
9536 * dispnew.c (increment_row_positions): Skip non-enabled rows.
9538 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
9539 (Fcurrent_window_configuration): Use VECSIZE macro instead.
9541 2005-08-15 Richard M. Stallman <rms@gnu.org>
9543 * xdisp.c (message3_nolog): Clear echo_message_buffer.
9545 2005-08-15 Kim F. Storm <storm@cua.dk>
9547 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
9549 * process.c (deactivate_process, status_notify, read_process_output)
9550 (update_status, status_convert, decode_status, allocate_pty)
9551 (make_process, remove_process, list_processes_1)
9552 (create_process_1, unwind_request_sigio, read_process_output)
9553 (send_process, keyboard_bit_set): Declare static.
9554 (Fdelete_process): Simplify. Pass process to status_notify, so we
9555 don't try to read output from it.
9556 (status_notify): New arg deleting_process--don't try to read
9557 output from that process.
9559 * lisp.h (deactivate_process, status_notify, read_process_output):
9562 2005-08-14 Richard M. Stallman <rms@gnu.org>
9564 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
9567 2005-08-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9569 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
9570 (xg_get_image_for_pixmap): Move some code to
9571 xg_get_pixbuf_from_pix_and_mask, and call it.
9573 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
9575 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
9576 to get an GTK icon and set it with GTK functions to avoid having GTK
9577 override an icon set with just X functions.
9579 2005-08-11 Richard M. Stallman <rms@gnu.org>
9581 * image.c (syms_of_image): Init image_types here, and call
9583 (init_image): Not here.
9585 2005-08-09 Richard M. Stallman <rms@gnu.org>
9587 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
9589 * lisp.h (QUIT): Throw t to Vthrow_on_input.
9591 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
9593 * floatfns.c (Fexpt): Use floats for negative exponent.
9595 2005-08-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9597 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
9598 should not be there, causing menu display errors with GTK 2.6.9.
9600 2005-08-07 Richard M. Stallman <rms@gnu.org>
9602 * floatfns.c (Fexpt): Undo previous change.
9604 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
9605 so it can be used with various state vectors.
9607 * emacs.c (endif): Convert -script into -scriptload.
9608 (standard_args): Add -scriptload. Allow -basic-display with one dash.
9610 * fns.c (syms_of_fns): Add `emacs' to features.
9612 * term.c (set_terminal_modes): If no TS_termcap_modes string,
9613 output newlines to scroll the old screen contents off the screen.
9615 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
9617 * floatfns.c (Fexpt): Use floats for negative exponent.
9620 2005-08-02 Richard M. Stallman <rms@gnu.org>
9622 * frame.c (Fframe_char_width): Doc fix.
9624 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
9626 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
9629 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
9631 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
9632 (my_create_window, my_create_tip_window): Make static.
9634 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
9635 (my_set_foreground_window, my_destroy_window): Make static.
9637 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
9639 Merge gnulib getopt implementation into Emacs.
9641 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
9642 now part of lib-src.
9644 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
9646 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
9648 2005-07-25 Jason Rumney <jasonr@gnu.org>
9650 * w32menu.c (w32_menu_display_help): Suppress tooltip when
9651 navigating menus with the keyboard.
9653 2005-07-23 Richard M. Stallman <rms@gnu.org>
9655 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
9657 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
9658 gc_relative_threshold, one by one.
9660 * keyboard.c (read_char): Test gc_cons_threshold.
9661 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
9663 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
9664 gc_relative_threshold, one by one.
9666 * alloc.c (gc_cons_threshold): Not static.
9667 (gc_cons_combined_threshold): Var deleted.
9668 (gc_relative_threshold): New variable.
9669 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
9670 instead of gc_cons_combined_threshold.
9672 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
9673 (gc_cons_combined_threshold): Declaration deleted.
9675 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9677 * mac.c: Don't include stdlib.h or string.h.
9678 (Fdo_applescript, Fmac_file_name_to_posix)
9679 (Fmac_file_name_to_posix): Doc fixes.
9680 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
9681 (Fmac_code_convert_string): Likewise.
9682 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
9683 if the executable is not contained in a bundle.
9685 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
9686 (gray_width, gray_height): Remove defines.
9687 (gray_bits, gray_bitmap_width, gray_bitmap_height)
9688 (gray_bitmap_bits): Remove variables.
9689 (lispy_function_keys): Remove extern.
9690 (free_frame_menubar): Add extern.
9691 (x_window_to_frame): Remove function.
9692 (unwind_create_tip_frame): Add declaration.
9693 (x_set_name_internal): New function.
9694 (x_set_name, x_set_title): Use it.
9695 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
9696 (Fx_display_pixel_height, Fx_display_planes)
9697 (Fx_display_color_cells, Fx_server_max_request_size)
9698 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9699 (Fx_display_mm_height, Fx_display_mm_width)
9700 (Fx_display_backing_store, Fx_display_visual_class)
9701 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
9703 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
9705 * macselect.c (Fx_own_selection_internal): Follow error conventions.
9706 (Fx_get_selection_internal, Fx_selection_owner_p)
9707 (Fx_selection_exists_p): Doc fixes.
9708 (syms_of_macselect) <selection-converter-alist>: Likewise.
9710 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
9712 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
9714 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
9715 (Fccl_execute_on_string): Likewise; add usage info.
9717 * composite.c (Fcompose_region_internal)
9718 (Fcompose_string_internal):
9719 Improve argument/docstring consistency.
9721 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
9722 Fix typos in docstrings.
9724 * textprop.c (Fnext_char_property_change)
9725 (Fprevious_char_property_change): Doc fixes.
9727 * window.c (Fset_window_margins, Fset_window_fringes):
9728 Improve argument/docstring consistency.
9730 * xfaces.c (Finternal_lisp_face_p): Doc fix.
9732 2005-07-21 Andreas Schwab <schwab@suse.de>
9734 * eval.c (restore_stack_limits): Return a value.
9736 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
9738 * eval.c (Fdefvar): Doc fix.
9740 2005-07-20 Kim F. Storm <storm@cua.dk>
9742 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
9743 Use make_save_value to unwind protect stream.
9745 * lread.c (Fload, load_unwind):
9746 Use make_save_value to unwind protect stream.
9748 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
9750 * eval.c (Fprog2, Fcalled_interactively_p),
9751 (syms_of_eval) <debug-on-quit>: Doc fixes.
9752 (syms_of_eval) <max-specpdl-size>:
9753 (Finteractive_p): Fix typos in docstrings.
9755 2005-07-19 Kim F. Storm <storm@cua.dk>
9757 * w32fns.c (Vx_hand_shape): Variable removed.
9758 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
9760 2005-07-19 Kenichi Handa <handa@m17n.org>
9762 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
9764 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
9766 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
9768 2005-07-18 Kim F. Storm <storm@cua.dk>
9770 * frame.h (struct frame): New member already_hscrolled_p.
9772 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
9773 to avoid redisplay looping hscrolling back and forth ad infinitum.
9775 2005-07-18 Juri Linkov <juri@jurta.org>
9777 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
9778 * keymap.c (Fminor_mode_key_binding):
9779 * macterm.c (mac-emulate-three-button-mouse):
9780 Delete duplicate duplicate words.
9782 2005-07-18 Ken Raeburn <raeburn@gnu.org>
9784 * minibuf.c (Ftest_completion): Fix odd syntax in test.
9786 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9788 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
9790 * macgui.h (struct _XGC): New struct.
9792 (GCForeground, GCBackground, GCFont): Use X11 mask values.
9793 (XCreateGC, XParseGeometry): Move externs to macterm.h.
9795 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
9796 (XSetFont): Add declaration.
9797 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
9799 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
9801 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
9802 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
9803 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
9805 (mac_erase_rectangle): New function.
9806 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
9807 (x_draw_stretch_glyph_string): Use it.
9808 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
9809 (XSetBackground, XSetFont): Adjust for new GC implementation.
9810 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
9811 (XTset_vertical_scroll_bar): Clear area under scroll bar.
9813 * macterm.h (struct mac_display_info): Change types of
9814 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
9815 (XCreateGC, XParseGeometry): Move externs from macgui.h.
9817 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
9819 2005-07-16 Richard M. Stallman <rms@gnu.org>
9821 * buffer.c (Fmake_overlay): Doc fix.
9823 2005-07-16 Eli Zaretskii <eliz@gnu.org>
9825 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
9826 Vw32_valid_locale_ids, and Vw32_valid_codepages.
9828 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9830 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
9831 Use Fstring_as_unibyte instead of string_make_unibyte.
9833 2005-07-15 Richard M. Stallman <rms@gnu.org>
9835 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
9837 2005-07-15 Kim F. Storm <storm@cua.dk>
9839 * xdisp.c: Fix redisplay loop in last change.
9840 (IT_POS_VALID_AFTER_MOVE_P): New macro.
9841 (move_it_vertically_backward, move_it_by_lines): Use it.
9843 2005-07-14 Jason Rumney <jasonr@gnu.org>
9845 * w32.c (init_environment): Default HOME directory to user's
9846 appdata directory if possible.
9848 2005-07-14 Kim F. Storm <storm@cua.dk>
9850 * .gdbinit (pitx): Fix output format. Print string charpos.
9852 * lread.c (syms_of_lread): Initialize seen_list.
9854 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
9856 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
9857 Staticpro re_match_object.
9859 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9861 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
9864 * macterm.c (mac_window_to_frame): Remove duplicate define.
9866 2005-07-14 Kenichi Handa <handa@m17n.org>
9868 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
9869 (code_convert_region): Adjust for the above change.
9870 (set_conversion_work_buffer): If the work buffer is already in
9871 use, generate a new buffer and return it. Otherwise return Qnil.
9872 (run_pre_post_conversion_on_str): Adjust for the above change.
9873 (run_pre_write_conversin_on_c_str): Likewise.
9875 2005-07-13 Kim F. Storm <storm@cua.dk>
9877 * xdisp.c (start_display): Don't reseat to next visible line start
9878 if current start position is in a string or image.
9879 (move_it_vertically_backward): Be sure to move out of strings and
9880 images when moving it2 forward.
9881 (move_it_by_lines): When moving forward, move to next buffer
9882 position if we end up in a string or image. When moving backward,
9883 count rows moved over when moving to start of current row in case
9884 row starts in middle of a string or image. Also move further
9885 backward if we end up in a string or image.
9886 (try_cursor_movement): If overlay string spans multiple lines,
9887 move backward to set cursor on start of an overlay string.
9888 (cursor_row_p): Row is ok if cursor is at newline from string, but
9889 string starts on this line (so we always position cursor at start
9892 * indent.c (Fvertical_motion): If start position is on an image,
9893 don't move back if we move too far (that's almost certain to happen).
9895 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
9896 row in minibuffer windows.
9897 (try_window): Don't check margins in minibuffer windows.
9899 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9901 * macterm.c: Don't include stdlib.h or composite.h.
9902 (x_use_underline_position_properties, last_mouse_press_frame)
9903 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
9904 (syms_of_macterm, mac_initialize): Don't initialize them.
9905 (waiting_for_input, initial_argv, initial_argc)
9906 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
9907 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
9908 (extra_keyboard_modifiers): Fix type in extern.
9909 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
9910 (x_scroll_bar_report_motion): Add argument types to declaration.
9911 (mac_compute_glyph_string_overhangs): Add declaration.
9912 (disable_mouse_highlight): Remove unused variable.
9913 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
9914 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
9915 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
9916 All callers changed.
9917 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
9919 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
9920 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
9921 only when its width is less than the height.
9922 (XTredeem_scroll_bar): Sync with xterm.c.
9923 (font_name_table, font_name_table_size, font_name_count):
9925 (drag_and_drop_file_list): Remove variable. Previous use is now
9927 (do_ae_open_documents): Move DRAG_N_DROP event construction part
9929 (XTread_socket): Consolidate setting of event timestamp.
9930 Move DRAG_N_DROP event construction part to do_ae_open_documents.
9931 Support extra_keyboard_modifiers.
9933 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
9934 beginning with that for ASCII.
9936 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
9938 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
9939 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
9940 (syms_of_alloc): Declare gc-cons-percentage.
9942 * eval.c (Feval, Ffuncall):
9943 * keyboard.c (read_char):
9944 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
9946 * lisp.h (gc_cons_combined_threshold): Declare.
9948 2005-07-12 Kim F. Storm <storm@cua.dk>
9950 * coding.c (Qprocess_argument):
9951 * coding.h (Qprocess_argument): Remove unused var.
9953 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
9955 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9957 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
9959 [!MAC_OSX] (fchmod, fchown): New functions.
9960 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
9961 Use SBYTES and EndianU32_BtoN.
9962 (mac_get_object_from_code): Return 4 byte string even if argument
9963 is 0. Use make_unibyte_string and EndianU32_NtoB.
9964 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
9965 (Fmac_set_file_type): Fix documents and argument declarations.
9966 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
9968 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
9970 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
9972 2005-07-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9974 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
9975 Lucid if X_I18N, font otherwise.
9977 2005-07-10 Steven Tamm <steventamm@mac.com>
9979 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
9980 (Fmac_set_file_type, Fmac_set_file_creator): Add.
9981 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9983 2005-07-10 Richard M. Stallman <rms@gnu.org>
9985 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
9986 (syms_of_lread): Set up eval-buffer-list.
9987 (Feval_buffer, Feval_region): Bind eval-buffer-list.
9989 2005-07-08 Richard M. Stallman <rms@gnu.org>
9991 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
9993 2005-07-08 Kim F. Storm <storm@cua.dk>
9995 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
9996 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
9998 2005-07-07 Kim F. Storm <storm@cua.dk>
10000 * window.c (Frecenter): Fix last change (set iarg before use).
10002 2005-07-06 Richard M. Stallman <rms@gnu.org>
10004 * window.c (Frecenter): When arg is inside the scroll margin,
10005 move it out of the margin.
10007 2005-07-06 Jason Rumney <jasonr@gnu.org>
10009 * w32console.c (initialize_w32_display): Detect when the console
10010 dimensions are insane, and default to 80x25 instead.
10011 (w32_use_full_screen_buffer): Default to nil.
10013 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10015 * macterm.c (mac_draw_vertical_window_border): Use foreground of
10016 VERTICAL_BORDER_FACE_ID for vertical border line.
10017 (mac_encode_char): Call check_ccl_update in advance.
10018 (mac_to_x_fontname, x_font_name_to_mac_font_name)
10019 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
10020 Don't assume that font family length is less than 32.
10021 (x_compute_min_glyph_bounds): Make static.
10022 (x_load_font): Never set fonts_changed_p to zero.
10024 2005-07-04 Lute Kamstra <lute@gnu.org>
10026 * Update FSF's address in GPL notices.
10028 2005-07-03 Richard M. Stallman <rms@gnu.org>
10030 * xdisp.c (try_window): Fix previous change in how it handles
10031 a partially-visible line or one only partly past the margin.
10033 * window.c (window_scroll_pixel_based): Take account
10034 of this_scroll_margin when finding point when scrolling up.
10036 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
10038 * window.c (window_scroll_pixel_based, window_scroll_line_based):
10039 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
10040 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
10042 2005-07-02 Juri Linkov <juri@jurta.org>
10044 * w32term.c (w32_draw_vertical_window_border): Use foreground of
10045 VERTICAL_BORDER_FACE_ID for vertical border line.
10047 2005-07-02 Eli Zaretskii <eliz@gnu.org>
10049 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
10050 fchmod so that chmod doesn't get called on MSDOS before the file
10053 2005-07-01 Jason Rumney <jasonr@gnu.org>
10055 * w32term.c (cleartype_active): New flag for enabling sub-pixel
10057 (w32_initialize): Initialize it.
10058 (w32_native_per_char_metric): Allow a couple of extra pixels when
10059 Cleartype is active.
10061 * w32term.c (w32_initialize): Move check for screen reader here
10062 from syms_of_w32term.
10064 2005-06-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10066 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
10069 2005-07-01 Masatake YAMATO <jet@gyve.org>
10071 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
10073 2005-06-30 Juri Linkov <juri@jurta.org>
10075 * xdisp.c (x_draw_vertical_border): If left fringe is not present
10076 decrease x coord of vertical border by 1 pixel to not occupy text
10077 area of the right window.
10079 * xterm.c (x_draw_vertical_window_border): Use foreground of
10080 VERTICAL_BORDER_FACE_ID for vertical border line.
10082 * term.c (turn_on_face): In standout mode apply specified
10083 fg to bg, and specified bg to fg (this makes the logic of
10084 inversion on terminal consistent with X).
10086 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
10088 * eval.c (user_variable_p_eh): New function.
10089 (Fuser_variable_p): Use it. Clarify docstring.
10090 Return t for aliases of user options, nil for alias loops.
10092 2005-06-27 Richard M. Stallman <rms@gnu.org>
10094 * eval.c (Fdefvar): Improve error message.
10096 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10098 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
10101 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
10103 * eval.c (Fdefvar): Don't try to set constant symbols.
10105 2005-06-25 Richard M. Stallman <rms@gnu.org>
10107 * macfns.c (Fx_show_tip): Pass new arg to try_window.
10109 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
10111 * xfns.c (Fx_show_tip): Pass new arg to try_window.
10113 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
10114 (redisplay_window): Handle try_window reporting point in scroll margin.
10116 * dispextern.h (try_window): Declare new arg.
10118 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
10119 Use fchmod to copy the file modes.
10120 (Frename_file): Don't copy UID and GID here;
10121 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
10123 * eval.c (call_debugger): Take full care of extending stack limits
10124 to make space for the debugger, and restore the change afterward.
10125 Bind debug-on-error to nil.
10126 (restore_stack_limits): New subroutine.
10127 (Fsignal): Extend specpdl bound along with eval depth bound,
10128 for calling edebug. Don't do either one, for calling debugger.
10129 (find_handler_clause): Don't bind debug-on-error here.
10130 Don't unbind anything either.
10131 Temporarily advance max_specpdl_size for calling
10132 internal_with_output_to_temp_buffer.
10133 (grow_specpdl): Don't alter max_specpdl_size before signaling
10135 (syms_of_eval) <max-specpdl-size>: Doc fix.
10137 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
10139 2005-06-24 Eli Zaretskii <eliz@gnu.org>
10141 * fileio.c (Frename_file): Undo last change: no need to ifdef away
10142 chown on DOS_NT platforms.
10144 * w32.c (sys_chown): New function.
10146 * s/ms-w32.h (chown): New; define to sys_chown.
10148 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
10150 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
10151 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
10153 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
10155 2005-06-23 Richard M. Stallman <rms@gnu.org>
10157 * xdisp.c (get_next_display_element): Finish reversing the tests of
10158 Vnobreak_char_display.
10160 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
10162 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
10163 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
10165 * fileio.c (Frename_file): Preserve owner and group, if possible,
10168 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
10170 * abbrev.c (Funexpand_abbrev):
10171 * category.c (Fmake_category_set):
10172 * dispnew.c (Fsleep_for, Fsit_for):
10173 * editfns.c (Fsubst_char_in_region):
10174 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
10175 * frame.c (make_frame_without_minibuffer):
10176 * lread.c (read_vector):
10177 * macfns.c (check_x_frame):
10178 * process.c (Fstop_process, Fcontinue_process):
10179 * search.c (Freplace_match):
10180 * syntax.c (Fstring_to_syntax):
10181 * w32fns.c (check_x_frame, check_x_display_info):
10182 * xfaces.c (x_supports_face_attributes_p):
10183 * xselect.c (Fx_own_selection_internal): Follow error conventions.
10185 * image.c (fn_png_init_io): Don't define it.
10186 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
10187 (png_read_from_file): New function, based on png_read_from_memory.
10188 (png_load): Use it, instead of fn_png_init_io.
10190 2005-06-23 Kim F. Storm <storm@cua.dk>
10192 * search.c (Fmatch_data): Remove evaporate option.
10193 (Fset_match_data): Do not mention evaporate option in doc string.
10194 Add commentary explaining evaporate arg (for internal use only).
10195 (unwind_set_match_data): Add comment on evaporate use.
10197 2005-06-22 Miles Bader <miles@gnu.org>
10199 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
10200 (realize_basic_faces, syms_of_xfaces): Update references to it.
10201 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
10202 to `VERTICAL_BORDER_FACE_ID'.
10203 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
10205 2005-06-21 Juri Linkov <juri@jurta.org>
10207 * dispextern.h: Add extern Qframe_set_background_mode.
10209 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
10210 Qframe_set_background_mode.
10212 * frame.c (Fmodify_frame_parameters):
10213 Call frame-set-background-mode after changing the background color
10214 on non-window non-dos branch.
10216 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
10218 * fns.c (Fchar_table_range):
10219 * process.c (Fmake_network_process): Fix spellings.
10221 2005-06-20 Kim F. Storm <storm@cua.dk>
10223 * fns.c (Fsort): Doc fix.
10225 2005-06-20 Miles Bader <miles@gnu.org>
10227 * xfaces.c (Qvertical_divider): New variable.
10228 (realize_basic_faces): Realize its face.
10229 (syms_of_xfaces): Initialize it.
10231 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
10233 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
10234 window-separator on ttys using `vertical-divider' face by default.
10236 2005-06-17 Richard M. Stallman <rms@gnu.org>
10238 * xdisp.c (get_next_display_element):
10239 Reverse test of Vshow_nonbreak_escape.
10241 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
10242 (Ftty_no_underline): New function.
10243 (syms_of_term): defsubr it.
10245 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
10247 * dispnew.c (spec_glyph_lookup_face): New function.
10248 (build_frame_matrix_from_leaf_window): Use it.
10250 * dispextern.h (spec_glyph_lookup_face): Add declaration.
10252 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
10254 2005-06-12 Richard M. Stallman <rms@gnu.org>
10256 * keyboard.c (read_char): After catching a longjmp,
10257 call restore_getcjmp.
10259 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
10261 * xselect.c (lisp_data_to_selection_data): Fix spelling.
10263 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10265 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
10266 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
10267 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
10269 (XTread_socket): Don't pass keyboard events with the option
10270 modifier to the system when Vmac_command_key_is_meta is nil or
10271 Vmac_option_modifier is non-nil.
10272 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
10273 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
10274 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
10276 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
10277 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
10278 handler part to mac_handle_mouse_event.
10280 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
10282 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
10283 NEW-ALIAS and BASE-VARIABLE, respectively.
10285 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10287 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
10288 (get_phys_cursor_geometry, format_mode_line_unwind_data)
10289 (get_line_height_property, x_produce_glyphs): Remove unused vars.
10291 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
10293 2005-06-13 Eli Zaretskii <eliz@gnu.org>
10295 * w32term.c (x_use_underline_position_properties): New variable.
10296 (x_draw_glyph_string): Remind in a comment to change doc string of
10297 x-use-underline-position-properties if/when underline positioning
10299 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
10300 and initialize it to nil.
10302 2005-06-12 Jason Rumney <jasonr@gnu.org>
10304 * w32fns.c (NEWOPENFILENAME): New struct.
10305 (Fx_file_dialog): Use it to trick the system into giving us up to
10306 date dialogs on systems that are documented to support it.
10307 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
10309 2005-06-12 Eli Zaretskii <eliz@gnu.org>
10311 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
10312 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
10314 2005-06-11 Eli Zaretskii <eliz@gnu.org>
10316 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
10317 to CreateDIBSection to avoid a compiler warning.
10318 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
10320 (png_load): Cast return values of fn_png_create_read_struct and
10321 fn_png_create_info_struct, to avoid compiler warnings on W32.
10322 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
10323 to avoid compiler warnings.
10324 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
10325 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
10326 avoid a compiler warning.
10327 (tiff_load): Cast return values of fn_TIFFOpen and
10328 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
10329 to IMAGE_BACKGROUND to avoid a compiler warning.
10330 (gif_load): Cast return values of fn_DGifOpenFileName and
10331 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
10332 IMAGE_BACKGROUND to avoid a compiler warning.
10333 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
10336 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
10337 the call to CreateDIBSection, to avoid a compiler warning.
10339 2005-06-11 Jason Rumney <jasonr@gnu.org>
10341 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
10343 * macfns.c (Fx_file_dialog): Likewise.
10345 2005-06-10 Eli Zaretskii <eliz@gnu.org>
10347 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
10349 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
10351 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
10352 * w32fns.c (syms_of_w32fns): Fix spellings.
10354 2005-06-10 Eli Zaretskii <eliz@gnu.org>
10356 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
10357 `verbose'; print diagnostic messages only if it is non-zero.
10358 All callers changed to pass a zero value unless DEBUG_DUMP is defined
10359 in the environment.
10360 (copy_executable_and_dump_data): Print section names with %.8s.
10362 2005-06-10 Masatake YAMATO <jet@gyve.org>
10364 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
10365 when mouse_face is not given.
10367 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
10369 * window.c (Fselect_window): Adapt call to Fselect_frame.
10371 * lisp.h: Update EXFUN of Fselect_frame.
10373 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
10375 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
10377 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
10378 Adapt to above change.
10380 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
10382 * fns.c (Fmemq, Fmaphash): Doc fixes.
10384 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
10386 * xfaces.c (Fdisplay_supports_face_attributes_p):
10387 Fix typo in docstring.
10389 2005-06-08 Steven Tamm <steventamm@mac.com>
10391 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
10392 used by gcc4 on intel mac.
10394 2005-06-09 Kim F. Storm <storm@cua.dk>
10396 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
10397 in REUSE list if non-nil; free them if equal to evaporate.
10398 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
10399 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
10400 (restore_search_regs): Rename from restore_match_data. Uses changed.
10401 (unwind_set_match_data): New function.
10402 (record_unwind_save_match_data): New function like save-match-data.
10404 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
10405 (record_unwind_save_match_data): Add prototype.
10406 (restore_search_regs): Rename from restore_match_data.
10408 * composite.c (compose_chars_in_text):
10409 * eval.c (do_autoload):
10410 * macmenu.c (set_frame_menubar):
10411 * process.c (read_process_output, exec_sentinel):
10412 * xmenu.c (set_frame_menubar):
10413 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
10414 * w32menu.c (set_frame_menubar):
10415 Use record_unwind_save_match_data.
10417 2005-06-08 Richard M. Stallman <rms@gnu.org>
10419 * xdisp.c (get_next_display_element): Alter previous change:
10420 Distinguish Vshow_nonbreak_escape = t or not t.
10421 For t, use escape_glyph once again, as before previous change.
10422 Use space or hyphen for display, instead of the non-ASCII char.
10423 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
10425 * process.c (Fstart_process): Don't touch command_channel_p slot.
10427 * process.h (struct process): Delete command_channel_p.
10429 2005-06-07 Masatake YAMATO <jet@gyve.org>
10431 * xdisp.c (note_mode_line_or_margin_highlight):
10432 Check the overlapping of re-rendering area to avoid flickering.
10433 (note_mouse_highlight): Call clear_mouse_face if PART
10434 is not ON_MODE_LINE nor ON_HEADER_LINE.
10436 2005-06-07 Kim F. Storm <storm@cua.dk>
10438 * process.c: Improve commentary for adaptive read buffering.
10440 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
10442 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
10445 2005-06-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10447 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
10448 New functions for popping down menus on C-g.
10449 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
10451 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
10454 * config.in: Add HAVE_CANCELMENUTRACKING.
10456 2005-06-06 Eli Zaretskii <eliz@gnu.org>
10458 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
10460 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
10462 * w32proc.c (RVA_TO_PTR): New macro.
10464 * w32heap.c (RVA_TO_PTR): No need to #undef now.
10466 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
10467 Depend on w32heap.h.
10469 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
10471 * keyboard.c (command_loop_1): Update Vthis_original_command.
10473 2005-06-06 Richard M. Stallman <rms@gnu.org>
10475 * xmenu.c (popup_get_selection): Undo previous change.
10477 2005-06-06 Juri Linkov <juri@jurta.org>
10479 * xdisp.c (Qno_break_space): New variable.
10480 (syms_of_xdisp): Initialize it.
10481 (get_next_display_element): Add no-break space and soft hypen
10482 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
10483 Use `no-break-space' face for no-break spaces.
10485 2005-06-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10487 * window.c (delete_window): Handle the case where a h/vchild has
10490 2005-06-05 Eli Zaretskii <eliz@gnu.org>
10492 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
10493 call to pfn_setsockopt, cast optval to `const char *'.
10495 2005-06-04 Eli Zaretskii <eliz@gnu.org>
10497 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
10498 (open_unc_volume): Cast return value of map_w32_filename, to avoid
10501 * s/ms-w32.h (fileno): Don't define if already defined.
10503 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
10505 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
10507 2005-06-04 Richard M. Stallman <rms@gnu.org>
10509 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
10511 2005-06-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10513 * macmenu.c (cleanup_popup_menu): New function.
10514 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
10515 mac_menu_show Quit:s.
10516 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
10519 2005-06-04 Kim F. Storm <storm@cua.dk>
10521 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
10523 * callproc.c (Fcall_process): Don't use alloca to gradually
10524 increase size of buf, as it effectively uses twice the necessary
10525 space on the stack. Instead, pre-allocate buf of full size, and
10526 gradually increase the read size.
10528 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
10530 * eval.c (unbind_to): Preserve value of Vquit_flag.
10532 * xterm.c (handle_one_xevent): Also ignore mouse motion just
10533 before a button release event.
10535 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
10537 * xfaces.c (Finternal_lisp_face_equal_p): Really report
10538 on faces in a frame, if the argument FRAME is non-nil.
10539 Improve argument/docstring consistency.
10541 2005-06-02 Kim F. Storm <storm@cua.dk>
10543 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
10544 (x_consider_frame_title, Fformat_mode_line): Save offset into
10545 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
10547 2005-06-01 Kim F. Storm <storm@cua.dk>
10549 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
10551 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10553 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
10554 resolution fields for scalable fonts to 0.
10556 * xfaces.c (build_scalable_font_name): Round pixel size to the
10559 2005-06-01 Kim F. Storm <storm@cua.dk>
10561 * xdisp.c (display_mode_line): Support nested calls to redisplay
10562 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
10564 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
10566 * fileio.c (Finsert_file_contents):
10567 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
10569 2005-05-31 Kim F. Storm <storm@cua.dk>
10571 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
10572 (mode_line_noprop_ptr): Rename from frame_title_*.
10573 (store_mode_line_noprop_char): Rename from store_frame_title_char.
10574 (store_mode_line_noprop): Rename from store_frame_title.
10575 (mode_line_target): New enum to specify current output target
10576 for mode line formatting.
10577 (display_mode_element): Test it rather than frame_title_ptr and
10578 mode_line_string_list to determine where output should go.
10579 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
10580 (Vmode_line_unwind_vector): New variable.
10581 (format_mode_line_unwind_data, unwind_format_mode_line):
10582 New functions for unwind protection in mode line formatting.
10583 (x_consider_frame_title): Use them and new local var 'title_start'
10584 to support nested calls to format-mode-line and redisplay.
10585 Set mode_line_target to MODE_LINE_TITLE.
10586 (Fformat_mode_line): Use them and new local var 'string_start' to
10587 support nested calls to format-mode-line and redisplay.
10588 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
10589 Don't trim trailing dashes.
10590 (decode_mode_spec): Don't make infinite number of trailing dashes
10591 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
10592 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
10593 mode_line_string_face_prop, and Vmode_line_unwind_vector.
10594 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
10595 Initialize mode_line_target to MODE_LINE_DISPLAY.
10597 2005-05-29 Richard M. Stallman <rms@gnu.org>
10599 * buffer.c (Fbuffer_local_value): Call indirect_variable.
10601 2005-05-28 Masatake YAMATO <jet@gyve.org>
10603 * xdisp.c (note_mode_line_or_margin_highlight): Change the
10604 pointer to a hand cursor when hoovering over a mouse-face.
10606 2005-05-27 Kenichi Handa <handa@m17n.org>
10608 * xterm.c (x_encode_char): Call check_ccl_update in advance.
10610 * ccl.c: Now an element of Vccl_program_table is a vector of
10612 (ccl_get_compiled_code): New arg idx. Caller changed.
10613 Adjust for the change of Vccl_program_table.
10614 (setup_ccl_program): Adjust for the change of Vccl_program_table.
10615 (check_ccl_update): New function.
10616 (Fregister_ccl_program): Use ASET to set an element of a vector.
10617 Adjusted for the change of Vccl_program_table.
10619 * ccl.h (struct ccl_program): New member idx.
10620 (check_ccl_update): Extern it.
10622 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
10624 * image.c (Vimage_library_alist): Move from image.el.
10625 (syms_of_image): Defvar it.
10626 (lookup_image_type): Use it.
10628 * buffer.c (Fbuffer_local_value): Make argument name match its use
10631 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
10633 * keyboard.c (Frecursive_edit): Fix typo in docstring.
10634 (Fposn_at_x_y): Make argument name match its use in docstring.
10636 2005-05-26 Lute Kamstra <lute@gnu.org>
10638 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
10640 2005-05-24 Masatake YAMATO <jet@gyve.org>
10642 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
10645 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
10647 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
10648 select frame title ("Question"/"Information").
10649 (xdialog_show): Use it.
10651 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
10653 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
10655 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
10656 a third argument (Qnil).
10658 * lisp.h: x-popup-dialog can have three arguments.
10660 * editfns.c (Fmessage_box): Use "Information" for frame title.
10662 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
10664 * termcap.c [VMS]: Include <starlet.h>.
10666 2005-05-23 Masatake YAMATO <jet@gyve.org>
10668 * xdisp.c (note_mode_line_or_margin_highlight): Add code
10669 for mouse-face. Change the type of the first argument from `window'
10671 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
10672 window instead of w.
10674 2005-05-22 Andreas Schwab <schwab@suse.de>
10676 * process.c (send_process): Move misplaced volatile.
10678 2005-05-21 Richard M. Stallman <rms@gnu.org>
10680 * xdisp.c (display_mode_element): If we're processing a list and
10681 padding is specified, put it after the last element.
10683 2005-05-21 Eli Zaretskii <eliz@gnu.org>
10685 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
10686 "superroot" on DOS_NT systems.
10688 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
10690 * process.c (send_process): Restore the SIGPIPE handler if we
10693 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
10695 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
10696 misleading comments).
10697 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
10699 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10701 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
10702 Correct the right value.
10704 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
10706 * keyboard.c (syms_of_keyboard): Remove Lisp variables
10707 post-command-idle-hook and post-command-idle-delay.
10708 (command_loop_1): Don't try to execute post-command-idle-hook.
10710 2005-05-16 Kim F. Storm <storm@cua.dk>
10712 * xdisp.c (handle_display_prop): Handle empty replacement.
10713 (handle_single_display_spec): Return -1 for empty replacement.
10715 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
10717 * .gdbinit (pitx): Print more info about iterator.
10719 2005-05-16 Andreas Schwab <schwab@suse.de>
10721 * unexmacosx.c (unexec_realloc): Move declarations before statements.
10723 2005-05-14 Richard M. Stallman <rms@gnu.org>
10725 * xdisp.c (message3): Call cancel_echoing.
10727 * alloc.c (Fmemory_full_p): New function.
10728 (syms_of_alloc): defsubr it.
10730 * process.c (send_process_trap): Unblock SIGPIPE.
10731 (send_process): Reset SIGPIPE handler before reporting error.
10733 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
10735 * emacs.c (syms_of_emacs): Fix doc string for system-type.
10737 2005-05-13 Richard M. Stallman <rms@gnu.org>
10739 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
10740 (Finsert_file_contents): If we read 0 bytes from a special file,
10741 unlock the visited file if we locked it.
10742 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
10743 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
10745 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10747 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
10749 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
10750 Regard toolkit scroll bar thumb drag events as squeezable and prevent
10751 redisplay from being paused by them.
10753 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
10754 [!MAC_OSX] (target_ticks): Remove variable.
10755 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
10756 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
10757 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
10758 event occurs before timeout, behave as if the function were interrupted.
10759 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
10760 handling using Time Manager routines.
10761 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
10763 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
10764 (setitimer): New functions.
10766 * macfns.c, macmenu.c: Don't include signal.h.
10768 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
10769 Rename from get_control_part_bound. All callers changed.
10770 (x_scroll_bar_clear): New function.
10771 (x_clear_frame): Use it.
10772 (XTset_vertical_scroll_bar): Don't call Draw1Control.
10773 (x_scroll_bar_handle_click): Change type of second argument from
10774 int to ControlPartCode.
10775 (check_alarm): Remove declaration.
10776 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
10777 (XTread_socket): Use ControlPartCode instead of SInt16.
10779 2005-05-13 Nozomu Ando <nand@mac.com>
10781 * unexmacosx.c: Include assert.h.
10782 (MACOSX_MALLOC_MULT16): New define.
10783 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
10784 ptr is in unexec regions by checking it is multiple of 16.
10785 (unexec_malloc_header_t): New typedef.
10786 (unexec_malloc, unexec_realloc, unexec_free): Store and use
10787 allocated size information in unexec_malloc_header.
10789 2005-05-10 Richard M. Stallman <rms@gnu.org>
10791 * xterm.c (noinclude): Add #undef.
10793 * image.c, xfns.c, xmenu.c: Don't include signal.h.
10795 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
10797 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
10798 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
10801 * dired.c (Ffile_name_completion): Make argument name
10802 match its use in docstring.
10804 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
10806 * eval.c (Fdefvaralias): Remove any pre-existing
10807 variable-documentation property of the alias.
10809 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
10811 * xfns.c (start_hourglass): Do nothing when running on a tty.
10813 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
10815 * fns.c (Fchar_table_range): Fix typos in docstring.
10817 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10819 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
10821 2005-05-06 Eli Zaretskii <eliz@gnu.org>
10823 * lread.c (Flocate_file_internal): Doc fix.
10825 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
10827 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10829 * macselect.c (x_own_selection): Accept Lisp string as result of
10830 selection converter function.
10831 (x_clear_frame_selections): Don't call x-lost-selection-functions
10832 if Emacs is not owner of the selection.
10833 (Vmac_services_selection): Put variable and initialization in
10835 (syms_of_macselect) [MAC_OSX]: Set default value of
10836 Vmac_services_selection to PRIMARY.
10838 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
10839 (mac_handle_tool_bar_click): Remove unused function and declaration.
10840 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
10841 (install_scroll_bar_timer, set_scroll_bar_timer)
10842 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
10843 (get_control_part_bound, x_scroll_bar_handle_press)
10844 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
10845 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
10846 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
10847 (scroll_bar_timer_event_posted_p): New variables.
10848 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
10849 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
10850 (x_scroll_bar_create): Set control reference with NewControl.
10851 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
10852 Initialize track_top and track_height to nil.
10853 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
10854 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
10855 (XTset_vertical_scroll_bar): Don't make space between scroll bar
10856 and associated window.
10857 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
10858 from window config.
10859 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10860 Set track_top and track_height to nil when scroll bar size is changed.
10861 Recalculate them if they are nil.
10862 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
10863 clicked control is a scroll bar.
10864 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
10865 event handler functions. Don't add modifiers to scroll bar click
10866 events. Call scroll bar release handler when window is deactivated.
10867 (mac_initialize): Remove unused code for X toolkit.
10868 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
10869 Initialize Vx_toolkit_scroll_bars to nil.
10871 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10872 New members track_top and track_height.
10874 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
10875 init_process when including sys/select.h.
10877 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
10879 * eval.c (Fdefvaralias): Doc fix.
10881 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
10883 2005-05-05 Kim F. Storm <storm@cua.dk>
10885 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
10887 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
10888 Fix type of cursor-in-non-selected-windows.
10890 2005-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10892 * mac.c: #undef init_process so not to conflict with system headers.
10894 2005-05-02 Richard M. Stallman <rms@gnu.org>
10896 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
10898 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
10900 * xdisp.c (Vcursor_in_non_selected_windows)
10901 (Qcursor_in_non_selected_windows): Vars deleted.
10902 (syms_of_xdisp): Don't initialize them.
10903 (get_window_cursor_type): Use cursor_in_non_selected_windows
10906 2005-05-02 Kim F. Storm <storm@cua.dk>
10908 * macros.c (executing_kbd_macro_index): Rename from
10909 executing_macro_index. All uses changed.
10910 (executing_kbd_macro_iterations): Rename from
10911 executing_macro_iterations. All uses changed.
10912 (executing_kbd_macro): Rename from executing_macro.
10914 (syms_of_macros): Rename Lisp var executing-macro-index to
10915 executing-kbd-macro-index.
10917 * xdisp.c (move_it_in_display_line_to): Fix last change.
10919 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
10921 * xmenu.c (Fx_popup_menu): Doc fix.
10923 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
10925 2005-05-02 Jason Rumney <jasonr@gnu.org>
10927 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
10929 2005-05-02 Nozomu Ando <nand@mac.com>
10931 * sysselect.h: Fix typo.
10933 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
10935 * charset.c (Fchars_in_region): Remove as obsolete.
10937 2005-05-01 Kim F. Storm <storm@cua.dk>
10939 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
10940 TO_CHARPOS. This may happen if last glyphs was an image or stretch
10943 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
10945 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
10947 2005-05-01 Richard M. Stallman <rms@gnu.org>
10949 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
10950 If user cancels the menu, quit unless FOR_CLICK.
10952 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
10954 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
10955 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
10956 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
10957 * commands.h (Vexecuting_kbd_macro): Likewise.
10959 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
10961 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
10963 2005-04-30 Richard M. Stallman <rms@gnu.org>
10965 * fileio.c (Ffind_file_name_handler): Handle the `operations'
10966 property of the file name handler.
10967 (Qoperations): New variable.
10968 (syms_of_fileio): Initialize and staticpro it.
10970 * xdisp.c (set_message_1): Delete xassert.
10972 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10974 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
10976 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
10978 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
10979 before/after including Carbon.h if there is a working mktime.
10981 2005-04-28 Kim F. Storm <storm@cua.dk>
10983 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
10984 Fix cyclic alias check. If alias loop is detected, signal
10985 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
10987 2005-04-28 Lute Kamstra <lute@gnu.org>
10989 * eval.c (do_autoload): Record only autoloads in the autoload
10990 property of symbols.
10992 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
10994 * emacs.c (USAGE1): Add --basic-display and --quick options.
10996 2005-04-27 Kim F. Storm <storm@cua.dk>
10998 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
11000 2005-04-26 Richard M. Stallman <rms@gnu.org>
11002 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
11003 (syms_of_window): Doc fixes.
11005 * indent.c (Fvertical_motion): Undo previous change.
11007 2005-04-26 Kenichi Handa <handa@m17n.org>
11009 * fns.c (char_table_range): New function.
11010 (Fchar_table_range): Signal an error if characters in the range
11011 have inconsistent values. Don't check the parent.
11013 2005-04-25 Kenichi Handa <handa@m17n.org>
11015 * fontset.c (fontset_set): Fix previous change.
11017 2005-04-24 Richard M. Stallman <rms@gnu.org>
11019 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
11021 2005-04-24 Eli Zaretskii <eliz@gnu.org>
11023 * regex.c (re_search_2, re_match_2_internal): Convert second arg
11024 of RE_TRANSLATE to int, to shut up GCC warnings.
11026 * fileio.c (Fcopy_file): Doc fix.
11027 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
11030 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11032 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
11033 (SOME_MACHINE_OBJECTS): Likewise.
11034 (mac.o): Depend on ccl.h.
11035 (macselect.o): New target.
11037 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
11038 Call syms_of_macselect.
11040 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
11042 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
11043 (QCLIPBOARD): Remove variable.
11044 (syms_of_mac): Don't initialize it.
11045 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
11047 (syms_of_mac): Don't defsubr them.
11048 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
11049 (QHFS_plus_D, QHFS_plus_C): New variables.
11050 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
11051 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
11052 (cfstring_create_normalized): New functions.
11053 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
11054 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
11056 * macterm.c (handling_window_update, terminate_flag):
11058 (do_window_update, do_ae_quit_application, XTread_socket):
11060 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
11061 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
11062 (init_service_handler): Move to macselect.c. Remove declarations.
11063 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
11064 (Qapplication, Qabout): New variables.
11065 (syms_of_mac): Initialize them.
11066 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
11067 (Qperform): New variables.
11068 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
11069 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
11070 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
11071 (mac_store_application_menu_event, init_menu_bar): New functions.
11072 [USE_CARBON_EVENTS] (mac_handle_command_event)
11073 (init_command_handler): New functions.
11074 (mac_handle_window_event): Return noErr on window update event.
11075 (do_ae_quit_application): Call mac_store_application_menu_event.
11076 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
11079 * macterm.h (x_clear_frame_selections): Add extern.
11081 * macselect.c: New file for selection processing on Mac OS.
11083 2005-04-23 Richard M. Stallman <rms@gnu.org>
11085 * fileio.c (Fcopy_file): New arg MUSTBENEW.
11086 (Frename_file): Pass new arg to Fcopy_file.
11088 * window.c (window_size_fixed): Variable deleted.
11089 (syms_of_window): Initialize window-size-fixed to nil.
11090 But don't DEFVAR window_size_fixed.
11092 2005-04-23 Andreas Schwab <schwab@suse.de>
11094 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
11095 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
11096 use lib64 instead of lib.
11097 (_LP64) [_ARCH_PPC64]: Define if not defined.
11099 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
11101 * s/ms-w32.h (HAVE_PWD_H): Define.
11103 2005-04-22 Kenichi Handa <handa@m17n.org>
11105 * fns.c (copy_sub_char_table): Explicitly copy the default value
11106 of the sub-chartable.
11108 * fontset.c (fontset_set): When a sub-chartable is created,
11109 explicitly sets the defalt value.
11111 2005-04-22 Kim F. Storm <storm@cua.dk>
11113 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
11114 (Fsafe_plist_get): Rename to Fplist_get.
11115 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
11116 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
11118 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
11120 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
11121 (note_mode_line_or_margin_highlight, note_mouse_highlight):
11122 Use Fplist_get instead of Fsafe_plist_get.
11124 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
11126 2005-04-21 Miles Bader <miles@gnu.org>
11128 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
11130 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
11132 * sysdep.c: Remove reference to defunct vms-pwd.h.
11133 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
11134 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
11136 * config.in: Regenerate.
11138 2005-04-20 Kenichi Handa <handa@m17n.org>
11140 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
11141 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
11142 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
11144 * alloc.c (make_sub_char_table): Argument changed to initial
11145 value of the slots.
11147 * data.c (Faref): Handle special slots used as default values of
11148 ascii, eight-bit-control, eight-bit-control. Don't ignore a
11149 default value set for a group of characters.
11150 (Faset): Signal an error if IDXVAL is not a valid character code.
11151 Make a sub-chartable with correct initial value.
11153 * fns.c (Fset_char_table_range): Don't set slots used as default
11154 values for ascii, eight-bit-control, eight-bit-graphic.
11155 Don't call Faref with charset-id.
11156 (Fset_char_table_default): Document how to treat normal character
11157 argument. Handle special slots used as default values of ascii,
11158 eight-bit-control, eight-bit-control. Make a sub chartable if
11161 2005-04-20 Kenichi Handa <handa@m17n.org>
11163 * search.c (boyer_moore): Fix previous change.
11165 2005-04-19 Kim F. Storm <storm@cua.dk>
11167 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
11168 face unless last visible char and first invisible char have the
11169 same face. Also use default face if saved_face_id is undefined.
11171 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11173 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
11175 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
11176 mac_scriptcode member.
11178 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
11179 (syms_of_mac): Don't initialize them.
11180 (Vmac_charset_info_alist): New variable.
11181 (syms_of_mac): Defvar it.
11182 (create_text_encoding_info_alist): New function.
11183 (decode_mac_font_name, mac_to_x_fontname)
11184 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
11185 code the correspondence among XLFD charsets, Mac script codes, and
11186 Emacs coding systems. Use Vmac_charset_info_alist and result of
11187 create_text_encoding_info_alist instead.
11188 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
11189 routines also on Mac OS Classic.
11190 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
11191 Use add_font_name_table_entry.
11192 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
11193 specified. Derive unspecified scalable fields from specified one.
11194 (x_list_fonts): Consider Valternate_fontname_alist.
11195 (kDefaultFontSize): Change value from 9 to 12.
11196 (XLoadQueryFont): Get decoded font family, font face, and charset
11197 from x_font_name_to_mac_font_name. Set full name of loaded font.
11198 (mac_unload_font): Free `full_name' member.
11199 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
11200 NULL. Copy full_name member of struct MacFontStruct to that of
11203 2005-04-19 Kim F. Storm <storm@cua.dk>
11205 * xdisp.c (handle_stop): Set saved_face_id to current face if
11206 selective_display_ellipsis_p so ellipsis will be shown in same
11207 face as preceding text.
11208 (setup_for_ellipsis): Don't set saved_face_id here.
11209 (next_element_from_display_vector): Default to saved_face_id.
11211 * fns.c (Fsafe_get): New function.
11212 (syms_of_fns): Defsubr it.
11214 * lisp.h (Fsafe_get): EXFUN it.
11216 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
11217 loops in case of bad face property lists. Limit number of face
11218 alias lookups to 10 (in case of face alias loops).
11220 2005-04-18 Kim F. Storm <storm@cua.dk>
11222 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
11223 It replaces the corresponding member from struct window, as a
11224 window may now show multiple overlay arrows.
11225 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
11227 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
11228 Compare overlay_arrow_bitmap than overlay_arrow_p members.
11230 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
11231 rather than from window.
11232 (update_window_fringes): Compare overlay_arrow_bitmap rather than
11233 overlay_arrow_p members.
11234 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
11237 * window.h (struct window): Remove member overlay_arrow_bitmap.
11239 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
11241 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
11242 Calls changed. Don't check for overlay-arrow-bitmap property here.
11243 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
11244 fringe is present, return Lisp integer for bitmap (or -1 for default).
11245 Fix value of overlay-arrow-bitmap property to be a symbol, use
11246 lookup_fringe_bitmap to parse it.
11247 (display_line): Change call to overlay_arrow_at_row. Store integer
11248 return value as overlay bitmap in row rather than window.
11249 Only show overlay arrow if row displays text, or if no other overlay
11250 arrow is seen in window (if overlay marker is at point-max).
11252 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
11254 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
11256 2005-04-18 Lute Kamstra <lute@gnu.org>
11258 * lread.c (Vloads_in_progress): Static.
11259 * fns.c (Vloads_in_progress): Remove extern.
11260 (load_in_progress): Add extern.
11261 (Frequire): Use load_in_progress instead of Vloads_in_progress.
11263 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
11265 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
11267 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11269 * macterm.c (XTread_socket): Don't beep on keyboard input even if
11270 no frame is visible.
11272 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
11274 * term.c (struct keys): Add support for shifted keys.
11276 2005-04-16 Richard M. Stallman <rms@gnu.org>
11278 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
11279 (set_message): Call with_echo_area_buffer with WHICH = 0.
11280 (set_message_1): Erase the echo area buffer first thing.
11281 (echo_area_display): Don't clear echo_message_buffer.
11283 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11285 * Makefile.in (mac.o): Depend on charset.h and coding.h.
11287 * mac.c: Include charset.h and coding.h.
11288 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
11289 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
11290 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
11292 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
11294 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
11296 * macterm.c (x_autoselect_window_p): Remove variable.
11297 (last_window): New variable.
11298 (XTreassert_line_highlight, x_change_line_highlight):
11299 Remove declarations.
11300 (mac_focus_changed, x_detect_focus_change): New functions and
11302 (XTextExtents16, front_emacs_window): Remove function.
11303 (mac_focus_frame): New function.
11304 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
11305 (mac_check_for_quit_char): Use it instead of front_emacs_window.
11306 (x_scroll_bar_report_motion): Obtain window from control owner.
11307 (x_make_frame_invisible): Set window manager size hint.
11308 (do_mouse_moved): Remove function.
11309 (XTread_socket): Move its contents here. Generate select-window
11310 event on mouse movement if needed. Use x_detect_focus_change on
11311 activate/deactivate events. Don't deiconify frame or invalidate
11312 window rectangle when dnd items are dropped.
11313 Don't activate/deactivate root control.
11314 (frame_highlight, frame_unhighlight): Activate/deactivate root
11316 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
11318 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
11321 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
11323 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
11325 (SOME_MACHINE_LISP): Add tooltip.
11327 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11329 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
11330 Don't include TextEncodingConverter.h.
11331 (mac_system_script_code, Vmac_system_locale): New variables.
11332 (syms_of_mac): Defvar them.
11333 (mac_get_system_locale): New function.
11335 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
11336 Use ENCODE_SYSTEM to encode title bar string.
11337 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
11338 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
11339 Use CFStringGetSystemEncoding to get system default string encoding.
11341 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
11342 TextEncodingConverter.h.
11344 2005-04-13 Steven Tamm <steventamm@mac.com>
11346 * macterm.c (syms_of_macterm): Remove redundant definition of
11347 mac-pass-control-to-system.
11349 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11351 * window.c (Fset_window_configuration): Be careful when you choose
11352 among several possible points for the new_current_buffer.
11354 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11356 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
11357 poll_for_input_1. Set interrupt_input_pending to 1 instead.
11358 (Qlanguage_change) [MAC_OS]: New variable.
11359 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
11360 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
11362 * macterm.c (mac_keyboard_text_encoding)
11363 (current_mac_keyboard_text_encoding): Remove variables.
11364 (XTread_socket): Store language-change event if keyboard script change
11365 is detected. Don't convert input to `mac_keyboard_text_encoding'.
11366 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
11368 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
11370 2005-04-10 Richard M. Stallman <rms@gnu.org>
11372 * emacs.c (standard_args): Rename --bare-bones to --quick.
11373 Add -D aka --basic-display.
11375 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
11377 2005-04-09 Richard M. Stallman <rms@gnu.org>
11379 * keymap.c (where_is_internal): Convert a string used as event type
11380 into "(any string)".
11382 * lread.c (Vloads_in_progress): Not static.
11383 * fns.c (Vloads_in_progress): Add extern.
11384 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
11386 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
11388 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
11390 2005-04-09 Lute Kamstra <lute@gnu.org>
11392 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
11393 within the accessible part of the buffer.
11395 2005-04-09 Kim F. Storm <storm@cua.dk>
11397 * lread.c (readevalloop): Add args START and END as region in
11398 current buffer to read. Callers changed.
11399 When specified, narrow to this region only when reading,
11400 not during eval. Track next point to read from during eval.
11401 Also restore point to "real" buffer position before eval.
11402 (Feval_region): Don't save excursion and restriction here, and
11403 don't narrow to region. Just pass region to readevalloop.
11404 Note: Point is now preserved even when PRINTFLAG is nil.
11406 2005-04-08 Kim F. Storm <storm@cua.dk>
11408 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
11410 2005-04-06 Kim F. Storm <storm@cua.dk>
11412 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
11414 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11416 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
11417 (Fmac_get_preference): Doc fix.
11419 * macfns.c (Fx_create_frame, x_create_tip_frame):
11420 Add "fontset-mac" to fallback font/fontsets.
11422 2005-04-04 Kim F. Storm <storm@cua.dk>
11424 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
11426 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
11427 Call it again after autoload.
11429 2005-04-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11431 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
11434 * ralloc.c (r_alloc_init): Ditto.
11436 2005-04-01 Kenichi Handa <handa@m17n.org>
11438 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
11439 (Vascii_eqv_table): Extern them.
11441 * casetab.c (set_case_table): If standard is nonzero, setup
11442 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
11444 * search.c (looking_at_1): Use current_buffer->case_canon_table,
11445 not DOWNCASE_TABLE.
11446 (string_match_1): Likewise.
11447 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
11448 Vascii_downcase_table.
11449 (fast_string_match_ignore_case): Likewise.
11450 (search_buffer): Fix checking of boyer-moore usability.
11451 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
11452 No need of tranlating characters in PAT. Fix calculation of
11455 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
11457 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
11458 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
11459 Use XtNtopShadowPixel and XtNbottomShadowPixel.
11460 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
11461 really work and that breaks with some versions of Xaw3d.
11463 2005-03-31 Kenichi Handa <handa@m17n.org>
11465 * coding.c (syms_of_coding): Fix previous change.
11467 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
11469 * fileio.c (search_embedded_absfilename): Fix last change.
11471 2005-03-25 Kenichi Handa <handa@m17n.org>
11473 * coding.c (syms_of_coding): Suggest to use set-coding-category in
11474 the docstring of coding-category-list.
11476 2005-03-31 Kim F. Storm <storm@cua.dk>
11478 * keyboard.c (Qmouse_fixup_help_message): New var.
11479 (syms_of_keyboard): Intern and staticpro it.
11480 (show_help_echo): Apply mouse-fixup-help-message to help string.
11482 2005-03-30 Kim F. Storm <storm@cua.dk>
11484 * xdisp.c (display_line): Allow multiple overlay arrows in window.
11486 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
11488 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
11489 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
11490 (Ffile_name_absolute_p): Use it.
11491 (search_embedded_absfilename): New fun, extracted from
11492 Fsubstitute_in_file_name. Use file_name_absolute_p.
11493 Free the pw data after use.
11494 (Fsubstitute_in_file_name): Use it.
11495 After cutting a prefix, re-check file-name-handler.
11497 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
11499 * w32term.h (x_output): Add focus_state.
11501 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
11502 (w32_read_socket) <WM_SETFOCUS>: Call w32_detect_focus_change.
11504 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11506 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
11507 Use Fexit_minibuffer.
11508 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
11510 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11512 * dired.c (Ffile_attributes): Add a missing gcpro.
11514 * alloc.c (make_number): The arg can be bigger than `int'.
11515 * lisp.h (make_number): Make prototype more precise.
11517 * process.c, dired.c (Vfile_name_coding_system)
11518 (Vdefault_file_name_coding_system):
11519 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
11520 (Vdefault_file_name_coding_system): Remove unused declarations.
11522 2005-03-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11524 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
11525 if it failed to pop up (Gnome "show pointer on ctrl" option makes
11526 menus fail to pop up).
11528 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11530 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
11531 Just prepend a backslash without replacing the NBSP by an SPC.
11533 2005-03-22 Kim F. Storm <storm@cua.dk>
11535 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
11536 * dispextern.h (lookup_derived_face): Fix prototype.
11537 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
11539 * xdisp.c (handle_single_display_spec): Derive left-fringe and
11540 right-fringe face from fringe face.
11542 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
11543 Derive face from fringe face.
11545 2005-03-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11547 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
11549 2005-03-22 David Kastrup <dak@gnu.org>
11551 * textprop.c (Fnext_char_property_change)
11552 (Fprevious_char_property_change): Allow marker as limit.
11553 (Fnext_single_char_property_change)
11554 (Fprevious_single_char_property_change): Check that limit is a
11556 (Fnext_single_char_property_change): Coerce position to integer.
11557 (Fprevious_single_char_property_change): Same here.
11559 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
11561 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
11563 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11565 * frame.c (Fignore_event): Remove.
11566 (syms_of_frame): Don't defsubr it.
11568 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
11569 redundant `ignore-event'.
11571 2005-03-19 Eli Zaretskii <eliz@gnu.org>
11573 * unexec.c (write_segment, unexec): Move these functions to avoid
11574 forward references (which cause errors with "gcc -gcoff").
11576 2005-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11578 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
11579 that it doesn't become "tooltip". The specbind is enough.
11581 * xrdb.c (x_load_resources): Use different char *helv when I18N
11584 2005-03-17 Kenichi Handa <handa@m17n.org>
11586 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
11588 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11590 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
11591 Use xic_create_fontsetname even for non-Motif menus.
11592 Don't forget to free the fontsetname.
11594 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
11596 2005-03-17 Richard M. Stallman <rms@gnu.org>
11598 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
11600 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
11601 (Fmake_symbolic_link): Use G to read the new file name.
11603 * callint.c (Finteractive): Document G option.
11604 (Fcall_interactively): Implement G option.
11606 * buffer.c (buffer_lisp_local_variables): New function,
11607 broken out from Fbuffer_local_variables.
11608 (clone_per_buffer_values): Use buffer_lisp_local_variables.
11610 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11612 * xfns.c (xic_create_fontsetname): Add `motif' argument.
11613 Always return a freshly allocated string.
11614 (xic_create_xfontset): Adjust call.
11616 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
11617 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
11618 (dump_realized_face): Fix warning.
11620 * emacs.c (Fkill_emacs): YAILOM.
11622 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
11624 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11626 * mac.c (HASHKEY_TERMINAL): Remove.
11627 (HASHKEY_MAX_NID): New macro.
11628 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
11630 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
11631 (xrm_create_database, xrm_q_put_resource)
11632 (xrm_merge_string_database, xrm_q_get_resource_1)
11633 (xrm_q_get_resource): Change resource database representation so
11634 that it may not use multiple hash tables for a single database.
11635 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
11637 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
11639 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
11641 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
11642 locale-coding-system, as was already done for WINDOWSNT.
11644 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
11645 translation for chars in the 0-255 range.
11647 2005-03-16 Lute Kamstra <lute@gnu.org>
11649 * floatfns.c (Ffloor): Doc fix.
11651 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11653 * mac.c: Include macterm.h instead of directly including Carbon.h.
11654 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
11655 (Qarray, Qdictionary): New variables.
11656 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
11657 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
11658 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
11659 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
11660 in callback for CFDictionaryApplyFunction.
11661 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
11662 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
11663 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
11664 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
11665 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
11666 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
11667 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
11668 (skip_white_space, parse_comment, parse_include_file)
11669 (parse_binding, parse_component, parse_resource_name, parse_value)
11670 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
11671 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
11672 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
11675 * macfns.c (mac_get_rdb_resource): Remove function.
11676 (x_get_string_resource): Use xrm_get_resource.
11678 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
11680 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
11682 (mac_make_rdb): Create resource database from preferences and
11684 (mac_term_init): Save resource database to cddr part of
11687 * macterm.h (xrm_merge_string_database, xrm_get_resource)
11688 (xrm_get_preference_database): Add externs.
11689 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
11690 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
11691 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
11693 * process.c (init_process): Change `#ifdef DARWIN' to `#if
11694 defined (DARWIN) || defined (MAC_OSX)'
11696 * s/darwin.h (DARWIN): Don't define.
11698 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11700 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
11701 Remove unused variables.
11702 (syms_of_macfns): Don't initialize them. Likewise for
11703 Qface_set_after_frame_default. Defvar and initialize
11704 Vx_window_horizontal_drag_shape.
11705 (x_set_mouse_color): Change mouse pointer shape.
11706 (mac_window) [!MAC_OSX]: Create root control.
11707 (Fx_create_frame): Remove initializations of mouse pointer shapes.
11708 (hourglass_started): New function (from xfns.c).
11709 (start_hourglass, cancel_hourglass): Put function body in #ifdef
11711 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
11712 indicator for each non-tooltip frame if needed, and show it.
11713 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
11715 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
11716 Controls.h. Use ThemeCursor instead of CursHandle.
11718 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
11719 Remove functions and declarations.
11720 (mac_set_colors): Take argument for saving background color.
11721 All callers changed.
11722 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
11723 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
11725 (x_update_end, mac_do_track_drag): Don't reset background color.
11726 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
11727 Use SetThemeCursor.
11728 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
11729 indicator control to the upper-right corner of the window.
11730 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
11731 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
11732 (do_window_update): Update controls after updating content area.
11733 (mac_handle_window_event): Remove unused extern.
11734 (XTread_socket): Check both control handle and control part code
11735 to determine whether a scroll bar is clicked. Activate/deactivate
11736 root control instead of contained scroll bar controls.
11737 (make_mac_terminal_frame): Use ThemeCursor constants.
11739 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
11740 New member hourglass_control.
11741 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
11742 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
11744 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11746 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
11747 coincides with that in Apple X11 except `clear', `enter' on
11748 laptops, and fn + `enter' on laptops.
11750 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11752 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
11753 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
11754 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
11756 * xfns.c (xic_defaut_fontset): New constant.
11757 (xic_create_fontsetname): New function.
11758 Extracted from create_frame_xic. Try to generate a slightly
11760 (xic_create_xfontset): Use it.
11761 (create_frame_xic): Simplify.
11763 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
11765 * fileio.c (Fmake_symbolic_link): Fix last change.
11767 2005-03-11 Richard M. Stallman <rms@gnu.org>
11769 * fileio.c (Frename_file, Fadd_name_to_file)
11770 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
11771 expand the basename of FILE relative to it.
11773 2005-03-11 Kenichi Handa <handa@m17n.org>
11775 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
11776 before calling setup_coding_system so that autoloading of a coding
11779 2005-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11781 * xfns.c (hourglass_started): New function.
11783 * dispextern.h: Declare hourglass_started.
11785 * keyboard.c (Fexecute_extended_command): Restart hourglass
11786 after call to Fcompleting_read if already started.
11788 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
11789 GTK main loop is entered in xterm.c, thus doing the redraw.
11791 2005-03-10 Kim F. Storm <storm@cua.dk>
11793 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
11795 2005-03-08 Kenichi Handa <handa@m17n.org>
11797 * frame.c (x_set_font): Call set_default_ascii_font if an
11798 available font is found.
11800 * fontset.c (set_default_ascii_font): New function.
11801 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
11803 * fontset.h (set_default_ascii_font): Extern it.
11805 2005-03-07 Kim F. Storm <storm@cua.dk>
11807 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
11808 (clear_image_cache_count): New var.
11809 (redisplay_internal): Don't clear face and image caches in the
11810 middle of redisplay; do it afterwards.
11812 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
11814 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
11815 is valid. If not, clear phys_cursor_on_p and return.
11817 2005-03-07 Andreas Schwab <schwab@suse.de>
11819 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
11821 2005-03-06 Richard M. Stallman <rms@gnu.org>
11823 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
11825 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
11826 (Feval, Ffuncall): Use CHECK_CONS_LIST.
11828 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
11830 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
11831 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
11833 2005-03-05 Juri Linkov <juri@jurta.org>
11835 * emacs.c (USAGE1): Replace Info node name "command arguments"
11836 with "emacs invocation".
11837 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
11838 allow arguments `--color' and `MODE' to be separated by space.
11839 Add --no-blinking-cursor, -nbc.
11840 (standard_args): Add -nbc, --no-blinking-cursor.
11842 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
11844 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
11845 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
11846 * fileio.c (Fexpand_file_name) [VMS]:
11847 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
11848 * doc.c (munge_doc_file_name) [VMS]: Likewise.
11849 (Fsnarf_documentation): Call munge_doc_file_name.
11851 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
11853 * s/vms.h (FILE_SYSTEM_CASE): New macro.
11854 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
11855 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
11857 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11859 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
11860 defined (MAC_OSX) && defined (HAVE_CARBON)'.
11862 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
11864 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
11865 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
11866 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
11867 (mac_clear_font_name_table): Move extern to macterm.h.
11869 * macfns.c (install_window_handler): Move extern to macterm.h.
11870 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
11871 valid. Don't check !NILP (dir) because it is already checked with
11873 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
11874 specifying the default location and obtaining the selected filename.
11876 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
11878 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
11879 are included via Carbon.h.
11881 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
11882 Define USE_CARBON_EVENTS to 1.
11883 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
11884 (x_free_frame_resources): Call remove_window_handler for
11885 non-tooltip windows.
11886 [TARGET_API_MAC_CARBON]: Don't include headers that are included
11888 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
11889 (mac_do_receive_dragUPP): New variables.
11890 (mac_handle_service_event, init_service_handler): Put declarations
11891 and definitions in #ifdef MAC_OSX.
11892 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
11893 drag-and-drop handler functions and register them.
11894 (remove_window_handler): New function.
11895 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
11896 Use fsspec_to_posix_pathname.
11897 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
11898 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
11899 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
11900 Set default cursors.
11901 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX]: Don't call
11902 init_service_handler or init_quit_char_handler.
11903 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
11905 * macterm.h (install_window_handler, remove_window_handler)
11906 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
11907 (mac_clear_font_name_table): New externs.
11909 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
11911 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
11912 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
11913 (Fexpand_file_name): Likewise.
11915 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
11917 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
11918 no longer special-case VMS. Add bogus return value.
11920 2005-03-02 Kim F. Storm <storm@cua.dk>
11922 * dispextern.h (XASSERTS): Define to 0 if not already defined.
11923 (xassert) [!XASSERTS]: Define dummy version.
11925 2005-03-02 Kim F. Storm <storm@cua.dk>
11927 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
11928 Reported by David Kastrup.
11930 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
11932 * xdisp.c (get_next_display_element): Fix control and escape
11933 glyph from display vector.
11935 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
11937 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
11939 2005-02-27 Richard M. Stallman <rms@gnu.org>
11941 * xdisp.c (fast_find_position): Rename END to BEG.
11942 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
11944 2005-02-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11946 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
11947 gtk_window_resize and x_wm_set_size_hint.
11949 2005-02-25 Kim F. Storm <storm@cua.dk>
11951 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
11953 * xdisp.c (init_from_display_pos): Don't read past end of
11954 it->overlay_strings array.
11956 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
11958 * buffer.c (syms_of_buffer): Fix typo.
11960 2005-02-23 Lute Kamstra <lute@gnu.org>
11962 * buffer.c (Foverlay_buffer): Doc fix.
11964 2005-02-22 Kim F. Storm <storm@cua.dk>
11966 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
11967 and symbol keys in alists and hash tables.
11969 * xdisp.c (fast_find_position): Fix search for start of overlay.
11971 2005-02-21 Kim F. Storm <storm@cua.dk>
11973 * window.c (window_scroll_pixel_based): When scrolling backwards,
11974 handle partial visible line at end of window even when we hit PT.
11976 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11978 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
11980 2005-02-21 Kim F. Storm <storm@cua.dk>
11982 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
11983 I think those asserts are bogus if buffer contains invisible text
11986 2005-02-21 David Kastrup <dak@gnu.org>
11988 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
11990 2005-02-20 Kim F. Storm <storm@cua.dk>
11992 * xdisp.c (pos_visible_p): Be sure to move to the specified
11993 position. Always get the full ascent / descent of the
11994 corresponding row, to return reliable rtop and rbot values.
11995 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
11996 Must look one character back, as back_to_previous_line_start
11997 returns position after the newline.
11998 (move_it_vertically_backward): Fix heuristic for when to move further
11999 back in case line_height * 2/3 is larger than window height.
12000 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
12001 as it does not do anything anymore. Add arg current_matrix_p to
12002 use current matrix rather than desired matrix when set.
12003 (try_cursor_movement): Don't scroll to make cursor row fully
12004 visible if cursor didn't move. This avoids unexpected recentering
12005 in case of blinking cursor or accepting process output.
12006 Use current matrix to check cursor row visibility.
12007 (redisplay_window): Fix whether to recenter or move to top in case
12008 cursor line is taller than window height.
12009 (find_first_unchanged_at_end_row): Stop search if we reach a row
12010 which not enabled (instead of abort).
12012 2005-02-18 Kim F. Storm <storm@cua.dk>
12014 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
12015 to be nil in a :box attribute value list; customize prints that
12016 as lisp value when no box color is specified.
12018 * .gdbinit (pitx, pit): Pretty print display iterator.
12019 (prowx, prow): Pretty print glyph row.
12020 (pcursorx, pcursor): Pretty print a window cursor.
12021 (pwinx, pwin): Pretty print struct window.
12023 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12025 * alloc.c (BLOCK_BYTES): Harmless typo.
12027 2005-02-17 Andreas Schwab <schwab@suse.de>
12029 * xfns.c (hack_wm_protocols): Use correct type for last parameter
12030 of XGetWindowProperty to avoid aliasing issues.
12031 (Fx_window_property): Likewise.
12033 * xselect.c (Fx_disown_selection_internal): Use union of struct
12034 input_event and struct selection_input_event to avoid aliasing issues.
12036 * xterm.c (handle_one_xevent): Use union of struct input_event and
12037 struct selection_input_event to avoid aliasing issues.
12038 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
12040 2005-02-17 Kim F. Storm <storm@cua.dk>
12042 * dispextern.h (enum it_method): New enum.
12043 (GET_FROM_*): Its members.
12044 (struct it): Change member method from function pointer to enum.
12046 * xdisp.c (check_it, init_from_display_pos, handle_stop)
12047 (setup_for_ellipsis, handle_single_display_spec)
12048 (handle_composition_prop, next_overlay_string)
12049 (get_overlay_strings, reseat_1, reseat_to_string)
12050 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
12051 (in_display_vector_p, display_line, get_next_display_element):
12052 Change it->method from function pointer to enum.
12053 (get_next_element): New array to map it->method to function.
12054 (get_next_display_element): Use it.
12055 (set_iterator_to_next): Use switch instead of if/else chain.
12057 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
12059 * w32select.c: Summary: Thorough rework to implement Unicode
12060 clipboard operations and delayed rendering.
12062 Drop last_clipboard_text and related code, keep track of
12063 ownership via clipboard_owner instead. Drop old #if0 sections.
12065 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
12066 (clipboard_owner, modifying_clipboard, cfg_coding_system)
12067 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
12068 (current_coding_system, current_requires_encoding)
12069 (current_num_nls, current_clipboard_type, current_lcid):
12070 New static variables.
12072 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
12073 (render, render_all, run_protected, lisp_error_handler)
12074 (owner_callback, create_owner, setup_config)
12075 (enum_locale_callback, cp_from_locale, coding_from_cp):
12076 New local functions.
12078 (term_w32select, globals_of_w32select): New global functions.
12080 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
12081 clipboard_owner instead. Use delayed rendering and provide
12082 all text formats. Provide CF_LOCALE if necessary.
12084 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
12085 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
12086 available. Force DOS line-ends for decoding.
12088 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
12090 (syms_of_w32select): Init and register new variables.
12092 * w32.h: Add prototypes for globals_of_w32select and
12093 term_w32select. Make the neighboring K&R declarations into
12096 * emacs.c: Include w32.h to get function prototypes.
12097 (main): Call globals_of_w32select.
12099 * w32.c (term_ntproc): Call term_w32select.
12101 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
12103 2005-02-16 Kim F. Storm <storm@cua.dk>
12105 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
12106 at end of display vector.
12108 2005-02-15 Richard M. Stallman <rms@gnu.org>
12110 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
12111 for mode and header lines.
12113 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
12115 * keymap.h (describe_map_tree): Change decl.
12117 * keyboard.c (command_loop_1): Always use safe_run_hooks
12118 to run Qdeferred_action_function.
12120 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
12121 (describe_map, describe_vector): Likewise. When it's 1,
12122 don't omit shadowed bindings, instead mark them as shadowed.
12124 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
12125 for describe_map_tree. Pass 1 for MENTION_SHADOW.
12127 * data.c (Fsetq_default): Allow no arg case.
12129 2005-02-14 Kenichi Handa <handa@m17n.org>
12131 * coding.c (encode_coding_string): Always return a unibyte string.
12132 If NOCOPY is nonzero and there's no need of encoding, make STR
12135 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
12136 multibyte string, signal an error instead of aborting.
12138 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
12140 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
12142 2005-02-12 Kim F. Storm <storm@cua.dk>
12144 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
12146 2005-02-10 Kim F. Storm <storm@cua.dk>
12148 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
12149 if it moves outside window or it doesn't display text.
12151 2005-02-09 Kim F. Storm <storm@cua.dk>
12153 * undo.c (Fprimitive_undo): Check that undo function does not
12156 2005-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12158 * xselect.c (selection_data_to_lisp_data): For the special case
12159 type == XA_ATOM, data contains array of int, not array of Atom.
12160 (x_property_data_to_lisp, selection_data_to_lisp_data):
12161 Comment update: data must be array of int for format == 32.
12163 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12165 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
12167 2005-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12169 * xfns.c (Fx_change_window_property): Use long array when format is 32.
12170 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
12171 convert long array returned from XGetWindowProperty to an int array.
12172 (x_set_tool_bar_lines): Check that width and height is greater than
12173 zero before clearing area.
12175 * xselect.c (x_reply_selection_request): Pass long array to
12176 XChangeProperty so that 64 bit longs are handeled correctly.
12177 (x_get_window_property): If format is 32 and long is bigger than 32
12178 bits convert data from XGetWindowProperty from long array to int array.
12179 (lisp_data_to_selection_data): When the input is a vector and the
12180 format is 32, allocate a long array even if long is bigger than 32 bits.
12181 (x_fill_property_data): Use char, short and long as the man page
12182 for XChangeProperty specifies. This way the data returned is OK for
12183 both 32 and 64 bit machines.
12184 (x_handle_dnd_message): Calculate size correctly even for 64 bit
12186 (Fx_send_client_event): Undo change from 2005-02-05,
12187 x_fill_property_data now handles that case.
12189 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
12190 reason for the approach in the code.
12192 2005-02-07 Kim F. Storm <storm@cua.dk>
12194 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
12196 2005-02-06 Richard M. Stallman <rms@gnu.org>
12198 * eval.c (Frun_hook_with_args)
12199 (Frun_hook_with_args_until_success)
12200 (Frun_hook_with_args_until_failure): Doc fixes.
12202 2005-02-05 Andreas Schwab <schwab@suse.de>
12204 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
12206 2005-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12208 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
12209 the longs in a XClientMessageEvent correctly when long is 64 bits.
12211 2005-02-05 Eli Zaretskii <eliz@gnu.org>
12213 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
12214 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
12216 2005-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12218 * xmenu.c (menubar_selection_callback): Force out GTK buffered
12219 events so the menu event comes after them. This is to prevent sit-for
12220 from exiting on buffered events directly after a menu selection,
12221 lisp code for Help => About Emacs uses sit-for.
12223 * gtkutil.c (create_menus): Connect selection-done event instead of
12224 the deactivate event to deactivate_cb. This will make the last
12225 leave event come before the call to deactivate_cb, so the leave
12226 event does not make sit-for exit after a menu selection.
12228 2005-02-03 Kim F. Storm <storm@cua.dk>
12230 * dispnew.c (build_frame_matrix_from_leaf_window)
12231 [!GLYPH_DEBUG]: Fix xassert.
12233 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
12235 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12237 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12239 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
12240 the compiling OS version.
12242 * macfns.c (x_create_tip_frame): Likewise.
12244 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
12246 2005-02-03 Richard M. Stallman <rms@gnu.org>
12248 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
12250 * xdisp.c (echo_area_display): Clear echo_message_buffer.
12252 * buffer.c (Fbury_buffer): Doc fix.
12254 2005-02-02 Steven Tamm <steventamm@mac.com>
12256 * macfns.c (unwind_create_frame): Fix compile error due to
12257 xassert being uncondition, but predicate is.
12258 * dispnew.c (update_window): Fix compile error due to
12259 xassert being uncondition, but predicate is.
12261 2005-02-02 Miles Bader <miles@gnu.org>
12263 * dispextern.h (xassert): Enable unconditionally.
12265 2005-02-02 Kim F. Storm <storm@cua.dk>
12267 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
12269 2005-02-02 Kenichi Handa <handa@m17n.org>
12271 * casefiddle.c (casify_object): Enable changing characters of
12272 different byte length.
12273 (casify_region): Fix loop condition, args to replace_range_2, and
12274 update opoint_byte.
12276 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
12278 2005-02-01 Kim F. Storm <storm@cua.dk>
12280 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
12281 stack before calling handle_display_prop.
12283 2005-01-31 Kim F. Storm <storm@cua.dk>
12285 * undo.c (Qapply): New lisp var.
12286 (syms_of_undo): Intern and staticpro it.
12287 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
12288 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
12290 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
12292 2005-01-30 Jesper Harder <harder@phys.au.dk>
12294 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
12295 <mac-emulate-three-button-mouse>: Fix docstring indentation.
12297 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
12299 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
12300 Increase value to 3 Meg.
12302 2005-01-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12304 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
12305 button events are not received otherwise.
12307 2005-01-29 Richard M. Stallman <rms@gnu.org>
12309 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
12311 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
12313 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
12315 * keymap.c (access_keymap): YAILOM.
12317 2005-01-27 Kim F. Storm <storm@cua.dk>
12319 * xdisp.c (get_phys_cursor_geometry): New function to calculate
12320 phys cursor position and size for hollow cursor. Position is
12321 aligned with get_glyph_string_clip_rect and ensures that a hollow
12322 cursor is shown, even when the actual glyph is not visible.
12324 * dispextern.h (get_phys_cursor_geometry): Add prototype.
12326 * xterm.c (x_clip_to_row): Ensure y >= 0.
12327 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
12329 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
12331 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
12333 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
12335 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
12337 2005-01-27 Kim F. Storm <storm@cua.dk>
12339 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
12340 glyph, even when row is only partially visible and actual cursor
12341 position is not visible.
12343 2005-01-24 Richard M. Stallman <rms@gnu.org>
12345 * xterm.c (x_error_quitter): No longer static, and moved after
12348 2005-01-24 Kim F. Storm <storm@cua.dk>
12350 * xdisp.c (move_it_by_lines): If we move forward after going too
12351 far back, cancel move if end position is same as start position.
12353 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12355 * dispextern.h (struct glyph_string): New members clip_head and
12358 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
12359 region to the area between clip_head and clip_tail.
12360 (draw_glyphs): Record the area that need to be actually redrawn to
12361 the new variables clip_head and clip_tail when there are
12362 overhangs. Set values of these variables to the corresponding
12363 members in struct glyph_string. Refine x coordinates for
12364 notice_overwritten_cursor using clip_head and clip_tail.
12366 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
12368 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
12370 (x_draw_glyph_string): Don't fill the background of the successor
12371 of a glyph with a right overhang if the successor will draw a cursor.
12372 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
12373 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
12375 2005-01-24 Kim F. Storm <storm@cua.dk>
12377 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
12378 direction if window height was smaller than next-screen-context-lines.
12379 Now always scroll at least one line in the requested direction.
12380 Ensure that we actually do scroll backwards when requested to do so.
12382 * xdisp.c (redisplay_window): Only try to make cursor line fully
12383 visible once (to avoid redisplay loop).
12385 2005-01-23 Kim F. Storm <storm@cua.dk>
12387 * window.c (Fpos_visible_in_window_p): Simplify return value for
12388 partially visible rows.
12389 (window_scroll_pixel_based): Adapt to that change.
12391 * window.c (window_scroll_pixel_based): Force moving to next line
12392 if scrolling doesn't move start point, e.g. if looking at tall image.
12394 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
12395 Clear last_height before calling line_bottom_y to get real height.
12396 Fix calculation of y.
12398 2005-01-22 Steven Tamm <steventamm@mac.com>
12400 * s/darwin.h: Removed PTY_ITERATION from here.
12403 * process.c (init_process): Default process-connection-type to
12404 nil on darwin 6 or less, t if it is 7 or higher. This way the
12405 broken pty behavior is still allowed on darwin 6 for interactive
12406 processes for people that know what they are doing.
12408 2005-01-22 Kim F. Storm <storm@cua.dk>
12410 * window.c (auto_window_vscroll_p): New boolean.
12411 (syms_of_window): DEFVAR_BOOL it.
12412 (Fpos_visible_in_window_p): Extend return value to include RTOP
12413 and RBOT values if FULLY is nil.
12414 (window_scroll_pixel_based): Adjust vscroll for partially visible
12415 rows if auto_window_vscroll_p is set.
12416 (Fset_window_vscroll): Do nothing if vscroll is not modified.
12418 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
12419 to return number of partially invisible pixels at top and bottom
12420 of the dislay row at POS.
12422 * lisp.h (pos_visible_p): Fix prototype.
12424 2005-01-21 Richard M. Stallman <rms@gnu.org>
12426 * fileio.c (Fcopy_file): Doc fix.
12428 2005-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12430 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
12431 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
12432 start of function for older compilers.
12434 2005-01-20 Richard M. Stallman <rms@gnu.org>
12436 * editfns.c (Fmessage): If arg is "", return "" (as before).
12438 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
12440 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
12443 2005-01-20 Steven Tamm <steventamm@mac.com>
12445 * editfns.c (Voperating_system_release): Add.
12446 (init_editfns): Assign new variable operating-system-release
12447 based on call to uname if available.
12448 (get_operating_system_release): Add function to
12449 allow c-level access to operating system release.
12451 * config.h: Regenerated.
12453 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
12454 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
12457 2005-01-20 Kim F. Storm <storm@cua.dk>
12459 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
12461 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
12462 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
12464 * macterm.c (x_draw_glyph_string_box): Likewise.
12466 * w32term.c (x_draw_glyph_string_box): Likewise.
12468 * indent.c (Fvertical_motion): Temporarily disable selective display.
12470 2005-01-19 Kim F. Storm <storm@cua.dk>
12472 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
12475 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
12477 2005-01-18 Kim F. Storm <storm@cua.dk>
12479 * xdisp.c (fast_find_position): Backtrack to find first row if
12480 charpos is inside a display overlay that spans multiple lines.
12482 2005-01-18 Kenichi Handa <handa@m17n.org>
12484 * coding.c (decode_coding_iso2022): Translate invalid codes if
12485 translation-table is specified.
12487 2005-01-18 Kim F. Storm <storm@cua.dk>
12489 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
12490 change. If handle_display_prop indicates newline is replaced by
12491 image or text, move back to start of relevant overlay or interval
12492 and continue scan from there. Simplify.
12494 2005-01-17 Kim F. Storm <storm@cua.dk>
12496 * dispnew.c (mode_line_string, marginal_area_string):
12497 Fix off-by-one error in search for glyph.
12499 2005-01-16 Kim F. Storm <storm@cua.dk>
12501 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
12503 2005-01-16 Steven Tamm <steventamm@mac.com>
12505 * macterm.c (mac_to_x_fontname): Remove spurious argument.
12507 2005-01-16 Andreas Schwab <schwab@suse.de>
12509 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
12511 2005-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12513 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
12514 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
12516 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12518 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
12519 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
12520 New flags for readable_events.
12521 (get_filtered_input_pending, readable_filtered_events): Remove.
12522 (tracking_off): Call readable_events and get_input_pending with
12523 flag READABLE_EVENTS_DO_TIMERS_NOW.
12524 (readable_events): Move code from old readable_filtered_events here,
12525 but check new READABLE_EVENTS_* in argument flags instead of previous
12526 two boolean arguments do_timers_now and filter_events.
12527 If we are doing mouse tracking and the mouse moved, return only if
12528 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
12529 (swallow_events): Call get_input_pending with flag
12530 READABLE_EVENTS_DO_TIMERS_NOW.
12531 (get_input_pending): Move code from old get_filtered_input_pending
12532 here. Replace boolean arguments do_timers_now, filter_events with
12533 flags, and pass flags to readable_events. Document new
12534 READABLE_EVENTS_* flags.
12535 (detect_input_pending_ignore_squeezables): New function.
12536 (detect_input_pending_run_timers): Call get_input_pending with flag
12537 READABLE_EVENTS_DO_TIMERS_NOW.
12538 (Finput_pending_p): Call get_input_pending with flags
12539 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
12541 * dispnew.c (update_window, update_frame_1): Replace calls to
12542 detect_input_pending with detect_input_pending_ignore_squeezables
12543 so that redisplay is not paused if the event queue contains only
12546 * lisp.h: Declare detect_input_pending_ignore_squeezables.
12548 2005-01-15 Steven Tamm <steventamm@mac.com>
12550 * macterm.c (Vmac_use_core_graphics): Declare variable for
12551 mac-allow-anti-aliasing.
12552 (syms_of_macterm): DEFVAR_LISP and initialize it.
12553 (mac_draw_string_common): Use core graphics text rendering if
12554 mac-allow-anti-aliasing is enabled.
12556 * macfns.c (Fx_file_dialog): Save As dialog includes only the
12557 file name in the text box.
12559 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12561 * macfns.c (x_set_foreground_color, x_set_background_color):
12563 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
12564 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
12565 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
12567 2005-01-14 Kim F. Storm <storm@cua.dk>
12569 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
12571 2005-01-13 Richard M. Stallman <rms@gnu.org>
12573 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
12574 if Voverriding_terminal_local_map is non-nil.
12576 * keyboard.c (syms_of_keyboard): Doc fix.
12578 2005-01-13 Kim F. Storm <storm@cua.dk>
12580 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
12581 (specify 0 for FACE instead). Reorder arg list. Doc fix.
12583 2005-01-12 Richard M. Stallman <rms@gnu.org>
12585 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
12586 face property for characters that don't specify one.
12588 * fns.c (Frequire): Record in load-history unconditionally.
12590 2005-01-10 Kim F. Storm <storm@cua.dk>
12592 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
12594 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
12596 Add support to merge with lisp face id too (if face_name is t).
12598 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12599 Don't lookup lface_id from display table glyphs here; instead use
12600 merge_faces to merge the lisp face id into current face.
12602 2005-01-09 Kim F. Storm <storm@cua.dk>
12604 * dispextern.h (struct it): New member dpvec_face_id.
12605 (merge_into_realized_face): Add prototype.
12607 * xfaces.c (merge_into_realized_face): New function. Used to
12608 merge escape-glyph face or face from display table into current face.
12610 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
12611 (syms_of_xdisp): DEFVAR_LISP it.
12612 (escape_glyph_face): Remove var.
12613 (redisplay_window): Don't initialize it.
12614 (setup_for_ellipsis, get_next_display_element):
12615 Set it->dpvec_face_id to -1.
12616 (get_next_display_element): Test Vshow_nonbreak_escape.
12617 Do not setup escape_glyph_face.
12618 Properly merge escape-glyph face or face from display table with
12619 current face for escape and control characters.
12620 Set it->dpvec_face_id to relevant face id instead of adding it to each
12621 element of display vector.
12622 (next_element_from_display_vector): If it->dpvec_face_id is set,
12623 use that instead of lface_id from glyph itself.
12625 2005-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12627 * xterm.h (struct x_output): New member, toolbar_detached.
12629 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
12631 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
12632 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
12633 (xg_create_tool_bar): Initialize toolbar_detached.
12634 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
12635 toolbar_detached is zero.
12637 2005-01-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12639 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
12640 gtk_menu_popup if not for_click, so callbacks for the menu are called.
12642 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
12643 (xg_tool_bar_callback, xg_tool_bar_help_callback)
12644 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
12646 * xselect.c (x_get_foreign_selection, x_fill_property_data)
12647 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
12648 XFLOAT_DATA to get extract number from Lisp object.
12650 2005-01-07 Kim F. Storm <storm@cua.dk>
12652 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
12653 Set stop_charpos to current charpos instead of 0.
12655 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
12657 * xdisp.c (Fformat_mode_line): First arg now required.
12659 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12661 * macterm.c (XLoadQueryFont): Correctly handle 0 size
12662 font widths that are returned from some Japanese fonts.
12664 2005-01-06 Kim F. Storm <storm@cua.dk>
12666 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
12667 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
12668 (destroy_fringe_bitmap): Set fringe_faces element to nil.
12669 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
12670 fringe_faces array and init elements to nil.
12671 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
12672 non-persistent face id.
12673 (mark_fringe_data): New function for GC.
12675 * alloc.c (mark_fringe_data): Declare extern.
12676 (Fgarbage_collect): Call mark_fringe_data.
12678 * alloc.c (overrun_check_free): Invalidate freed memory if
12679 XMALLOC_CLEAR_FREE_MEMORY is defined.
12681 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12683 * macfns.c: Include sys/param.h.
12684 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
12686 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
12687 of filename string. Set event callback function when creating
12688 dialog boxes. Add code conversions for filenames. Don't dispose
12689 of apple event descriptor record if failed to create it.
12691 * macterm.c: Include sys/param.h.
12692 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
12693 kEventWindowUpdate.
12694 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
12695 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
12696 of FSSpec from apple event descriptor record.
12697 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
12698 size of filename string.
12699 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
12700 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
12701 file dialog is in action.
12702 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
12703 Reject only when there are no filename items. Set background color
12704 before (un)highlighting the window below the dragged items.
12705 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
12707 2005-01-05 Romain Francoise <romain@orebokech.com>
12709 * term.c (encode_terminal_code): Fix buffer size computation.
12711 2005-01-04 Richard M. Stallman <rms@gnu.org>
12713 * xdisp.c (Fformat_mode_line): Doc fix.
12715 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
12717 * alloc.c (refill_memory_reserve): Move.
12718 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
12719 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
12721 2005-01-03 Richard M. Stallman <rms@gnu.org>
12723 * window.c (window_scroll_pixel_based): Don't correct preserve_y
12724 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
12726 2005-01-03 Jason Rumney <jasonr@gnu.org>
12728 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
12729 fontp->space_width to FONT_WIDTH so they are valid.
12731 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
12732 average width. Set fontp->average_width and fontp->space_width to
12733 their appropriate values.
12735 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
12736 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
12737 fontp->space_width.
12739 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12741 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
12742 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
12743 metrics for max and min bounds.
12744 (x_load_font): Correctly calculate average font width metrics.
12746 2005-01-02 Richard M. Stallman <rms@gnu.org>
12748 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
12750 2004-12-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12752 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
12754 2004-12-31 Richard M. Stallman <rms@gnu.org>
12756 * xdisp.c (setup_for_ellipsis, get_next_display_element):
12757 Set it->ellipsis_p to 1 or 0.
12758 (display_line): Record whether row ends in mid-ellipsis.
12759 (set_cursor_from_row): If ends in ellipsis, find start of it.
12760 (cursor_row_p): If PT's at the end of the ellipsis the row
12761 ends within, don't display cursor on this row.
12763 * dispextern.h (struct it): New element ellipsis_p.
12764 (struct glyph_row): New element ends_in_ellipsis_p.
12766 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
12767 position if we're reading from something other than the buffer.
12769 * window.c (window_scroll_pixel_based): Only look at
12770 Vscroll_preserve_screen_position if the old PT can't be kept.
12771 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
12773 2004-12-30 Kim F. Storm <storm@cua.dk>
12775 * xdisp.c (get_line_height_property): New function extracted from
12776 original calc_line_height_property.
12777 (calc_line_height_property): Rework. Handle t and (nil . ratio).
12778 (x_produce_glyphs): Use them to handle line-height and
12779 line-spacing according to new height spec.
12781 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
12783 2004-12-30 Kenichi Handa <handa@m17n.org>
12785 * fileio.c (Finsert_file_contents): Don't use
12786 current_buffer->buffer_file_coding_system even if REPLACE is
12787 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
12789 * fontset.h (struct font_info): New members space_width and
12792 * frame.h (struct frame): New member space_width.
12793 (FRAME_SPACE_WIDTH): New macro.
12795 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
12797 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
12798 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
12799 fontp->space_width.
12800 (x_load_font): Calculate fontp->space_width and fontp->average_width.
12801 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
12803 * xdisp.c (x_produce_glyphs): Calculate tab width by
12804 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
12806 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
12808 * macterm.c (SelectionRange): Add Xcode position apple event struct.
12809 (do_ae_open_documents): Handle Xcode-style file position open events.
12811 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
12813 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
12815 2004-12-29 Richard M. Stallman <rms@gnu.org>
12817 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
12819 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12821 * macfns.c (install_window_handler): Modify extern to return OSErr
12823 (mac_window): Handle return value of install_window_handler.
12825 * macterm.c (reflect_byte): Remove function.
12826 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
12827 Lookup table instead.
12828 (mac_do_font_lists): Simplify calculation of the longest
12830 (init_mac_drag_n_drop): Remove function and declaration.
12831 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12832 init_mac_drag_n_drop.
12833 (mac_do_track_drag): New function and declaration.
12834 (install_window_handler): Return OSErr value.
12835 (install_window_handler) [TARGET_API_MAC_CARBON]:
12836 Register handlers for tracking/receiving drag-and-drop items.
12837 (do_ae_open_documents): Generate unibyte strings for filenames.
12838 (mac_do_receive_drag) [TARGET_API_MAC_CARBON]: Likewise.
12839 Reject only non-filename items. Set event modifiers, and return value.
12841 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
12843 * coding.c (decode_coding): Fix previous change.
12845 2004-12-28 Richard M. Stallman <rms@gnu.org>
12847 * xdisp.c (back_to_previous_visible_line_start):
12848 Don't call handle_display_prop.
12850 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
12852 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
12853 (decode_coding_emacs_mule, encode_coding_emacs_mule)
12854 (decode_coding_iso2022, encode_designation_at_bol)
12855 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
12856 (decode_coding): Constify arguments and local vars.
12858 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12860 * xmenu.c (popup_get_selection): Only pop down dialogs
12862 (popup_get_selection): Remove parameter down_on_keypress.
12863 (create_and_show_popup_menu, create_and_show_dialog):
12864 Remove parameter down_on_keypress to popup_get_selection.
12866 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12868 * dispextern.h: Change HAVE_CARBON to MAC_OS.
12869 (struct glyph_string): Likewise.
12871 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
12874 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
12875 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
12877 * fns.c (vector): Change MAC_OSX to MAC_OS.
12879 * frame.c (x_set_frame_parameters, x_report_frame_params)
12880 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
12881 (x_set_border_width, Vdefault_frame_scroll_bars):
12882 Change HAVE_CARBON to MAC_OS.
12884 * image.c [MAC_OS]: Include sys/stat.h.
12885 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
12886 QuickTimeComponents.h.
12888 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
12889 [!MAC_OSX] (select): Use mac_wait_next_event.
12890 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
12891 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
12892 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
12893 (mac_clear_font_name_table): Add extern.
12894 (Fmac_clear_font_name_table): New defun.
12895 (syms_of_mac): Defsubr it.
12896 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
12897 [MAC_OSX] (select_and_poll_event): New function.
12898 [MAC_OSX] (sys_select): Use it.
12899 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
12900 [MAC_OSX && SELECT_USE_CFSOCKET]
12901 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
12902 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
12903 RunLoop for simultaneously monitoring two kinds of inputs, window
12904 events and process outputs, without periodically polling.
12906 * macfns.c (mac_initialized): Remove extern.
12907 (stricmp): Put in #if 0. All callers changed to use xstricmp in
12909 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
12910 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
12911 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
12912 (mac_get_rdb_resource): New function (from w32reg.c).
12913 (x_get_string_resource): Use it.
12914 (install_window_handler): Add extern.
12915 (mac_window): New function.
12916 (Fx_create_frame): Use it instead of make_mac_frame.
12917 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
12918 (Fx_open_connection, Fx_close_connection): New defuns.
12919 (syms_of_macfns): Defsubr them.
12920 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
12921 Add kWindowNoUpdatesAttribute to the window attribute.
12922 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
12923 (x_create_tip_frame): Don't call ShowWindow.
12924 (Fx_show_tip): Call ShowWindow.
12925 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
12926 TARGET_API_MAC_CARBON'.
12927 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
12928 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
12930 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
12931 (Window): Typedef to WindowPtr and move outside `#if
12932 TARGET_API_MAC_CARBON'.
12933 (XSizeHints): New struct.
12935 * macterm.c (x_update_begin, x_update_end)
12936 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
12938 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
12939 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
12940 (construct_mouse_click): Put in #if 0.
12941 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
12942 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
12943 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
12944 (activate_scroll_bars, deactivate_scroll_bars)
12945 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
12946 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
12947 if the position is neither user-specified nor program-specified.
12948 (x_free_frame_resources): Free size_hints.
12949 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
12950 (mac_clear_font_name_table): New function.
12951 (mac_do_list_fonts): Initialize font_name_table if needed.
12952 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
12953 around mac_do_list_fonts.
12954 (mac_unload_font): New function.
12955 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
12956 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
12957 and definitions with #if TARGET_API_MAC_CARBON.
12958 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
12959 (install_window_handler): Add decl.
12960 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
12961 window. Use UpdateControls. Get the rectangle that should be
12962 updated and restrict the target of expose_frame to it.
12963 (do_grow_window): Set minimum height/width according to size_hints.
12964 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
12965 (do_zoom_window): Don't use x_set_window_size.
12966 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
12967 (install_window_handler): New function.
12968 [!USE_CARBON_EVENTS] (mouse_region): New variable.
12969 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
12970 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
12971 GetEventDispatcherTarget inside BLOCK_INPUT.
12972 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
12973 Update mouse_region when mouse is moved.
12974 (make_mac_frame): Remove.
12975 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
12976 Initialize mouse pointer shapes. Change values of f->left_pos and
12977 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
12978 Don't call ShowWindow.
12979 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
12980 Vinvocation_name and Vsystem_name.
12981 (mac_make_rdb): New function (from w32term.c).
12982 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
12983 already been opened. Don't pass argument to
12984 mac_initialize_display_info. Don't set dpyinfo->height/width.
12985 Add entries to x_display_list and x_display_name_list.
12986 (x_delete_display): New function.
12987 (mac_initialize): Don't call mac_initialize_display_info.
12988 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
12990 * macterm.h (check_mac): Add extern.
12991 (struct mac_output): New member size_hints.
12992 (FRAME_SIZE_HINTS): New macro.
12993 (mac_unload_font): Add extern.
12995 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
12997 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
12999 2004-12-27 Richard M. Stallman <rms@gnu.org>
13001 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
13002 (syms_of_buffer): Don't defsubr it.
13004 * process.c (list_processes_1): Set undo_list instead
13005 of calling Fbuffer_disable_undo.
13007 * xdisp.c (single_display_spec_string_p): Rename from
13008 single_display_prop_string_p.
13009 (single_display_spec_intangible_p): Rename from
13010 single_display_prop_intangible_p.
13011 (handle_single_display_spec): Rename from handle_single_display_prop.
13012 Rewritten to be easier to understand.
13014 Change in load-history format. Functions now get (defun . NAME),
13015 and variables get just NAME.
13017 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
13019 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
13020 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
13021 (Qdefvar): Var deleted.
13022 (syms_of_eval): Don't initialze it.
13024 * lread.c (syms_of_lread) <load-history>: Doc fix.
13026 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13028 * xmenu.c (popup_get_selection): Pop down on C-g.
13029 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
13030 pops down menu on C-g.
13031 (xdialog_show): If dialog popped down and no button in the dialog was
13032 pushed, call Fsignal to quit.
13033 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
13036 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
13038 * gtkutil.c (xg_initialize): Install bindings for C-g so that
13039 dialogs and menus pop down.
13041 2004-12-27 Kenichi Handa <handa@m17n.org>
13043 * coding.c (code_convert_region): Fix calculation of `ratio'.
13045 2004-12-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13047 * gtkutil.c (update_frame_tool_bar): Make the value of
13048 tool-bar-button-margin control margins of images in tool bar.
13050 * alloc.c (check_depth): New variable.
13051 (overrun_check_malloc, overrun_check_realloc): Only add
13052 overhead and write check pattern if check_depth is 1 (to handle
13053 recursive calls). Increase/decrease check_depth in entry/exit.
13054 (overrun_check_free): Only check for overhead if check_depth is 1.
13055 Increase/decrease check_depth in entry/exit.
13057 2004-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13059 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
13060 before touching input_available_clear_time, to avoid accessing it
13061 from multiple threads.
13063 2004-12-23 Jason Rumney <jasonr@gnu.org>
13065 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
13068 2004-12-22 Richard M. Stallman <rms@gnu.org>
13070 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
13072 * lisp.h (Vundo_outer_limit): Fix decl.
13074 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
13076 (syms_of_undo): Initialize appropriately.
13077 (truncate_undo_list): If it's nil, there's no limit.
13079 2004-12-22 Kenichi Handa <handa@m17n.org>
13081 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
13083 2004-12-21 Richard M. Stallman <rms@gnu.org>
13085 * eval.c (unwind_to_catch): Clear immediate_quit.
13087 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
13088 specially as `\ ' and `\-'.
13090 * keyboard.c (kbd_buffer_store_event_hold):
13091 In the code for while-no-input, handle immediate_quit.
13093 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
13094 Call that at the very start.
13095 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
13096 (syms_of_alloc): Don't define undo-limit,
13097 undo-strong-limit and undo-outer-limit here.
13099 * undo.c (truncate_undo_list): Return void.
13100 Take just one argument, the buffer.
13101 Make it current, and inhibit recursive GC.
13102 Access and update the undo list directly; return void.
13103 Refer to the undo...limit variables directly.
13104 Test undo_outer_limit only after counting the whole current command.
13105 When it's exceeded, call the function in undo-outer-limit-function.
13106 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
13107 (Vundo_outer_limit_function): New variable.
13108 (syms_of_undo): Define undo-limit, undo-strong-limit
13109 and undo-outer-limit here, and undo-outer-limit-function.
13112 * lisp.h (truncate_undo_list): Update decl.
13114 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
13116 * fileio.c (Fread_file_name): Delete duplicates in
13117 file-name-history when history_delete_duplicates is true.
13119 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13121 * macterm.c (mac_do_list_fonts): Fix memory leak
13123 2004-12-20 Richard M. Stallman <rms@gnu.org>
13125 * regex.c (re_match_2_internal) <symend, wordend>:
13126 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
13128 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13130 * macterm.c (endif, x_font_name_to_mac_font_name):
13131 Use maccentraleurroman instead of maccentraleuropean
13132 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
13133 quickly finding a specific font without needing regexps.
13135 2004-12-15 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13137 * syssignal.h: Declare main_thread.
13138 (SIGNAL_THREAD_CHECK): New macro.
13140 * keyboard.c (input_available_signal): Move thread checking code
13141 to macro SIGNAL_THREAD_CHECK and call that macro.
13142 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
13144 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
13146 * emacs.c: Define main_thread.
13147 (main): Initialize main_thread.
13148 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
13149 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
13151 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
13153 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
13155 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
13157 * process.c (send_process_trap, sigchld_handler):
13158 Call SIGNAL_THREAD_CHECK.
13160 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
13162 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
13164 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
13165 returning when xg_ignore_gtk_scrollbar is true.
13167 2004-12-14 Kim F. Storm <storm@cua.dk>
13169 * keyboard.c (read_char): Save and restore echo_string when
13170 handling input method.
13172 2004-12-13 Richard M. Stallman <rms@gnu.org>
13174 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
13176 * keyboard.c (Vthrow_on_input): New variable.
13177 (syms_of_keyboard): Defvar and initialize it.
13178 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
13180 * lisp.h (QUIT): Check for Vthrow_on_input.
13181 (Vthrow_on_input): Declare it.
13183 2004-12-13 Kim F. Storm <storm@cua.dk>
13185 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
13188 2004-12-12 Richard M. Stallman <rms@gnu.org>
13190 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
13192 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
13193 (Ftry_completion): Really use outer `zero'; eliminate inner one.
13195 2004-12-12 Kenichi Handa <handa@m17n.org>
13197 * term.c (encode_terminal_code): Fix previous change.
13199 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
13201 * keyboard.c (handle_async_input): Remove pthread mutex handling.
13202 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
13204 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
13205 in macro arguments.
13207 * minibuf.c (Ftry_completion, Fall_completions): Don't use
13210 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
13212 2004-12-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13214 * w32term.c (x_calc_absolute_position): Remove calculation of
13215 difference between inner and outer window. Don't subtract difference
13216 for left and top calculations.
13218 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
13219 for left and top calculations. Remove call to x_real_positions.
13220 [Bug report by Drew Adams in November.]
13221 (x_check_expected_move): Do not set change_gravity to 1 when calling
13224 2004-12-08 Richard M. Stallman <rms@gnu.org>
13226 * xdisp.c (get_next_display_element): Use `escape-glyph' for
13227 control chars and escaped octal codes.
13228 (Qescape_glyph): New variable.
13229 (syms_of_xdisp): Initialize it.
13230 (escape_glyph_face): New variable.
13231 (redisplay_window): Initialize it.
13233 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
13235 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
13236 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
13238 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13240 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
13241 reset_malloc_hooks.
13243 * keyboard.c (handle_async_input, input_available_signal):
13244 Add ! defined (SYSTEM_MALLOC) around thread code.
13246 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
13248 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
13250 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
13252 * config.in: Regenerate.
13254 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13256 * xmenu.c (Fx_popup_menu): Correct documentation about position.
13257 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
13258 if not given by a mouse click to correspond with x-popup-menu
13261 * config.in: Regenerate.
13263 * gtkutil.c: Include signal.h and syssignal.h.
13264 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
13266 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
13267 new variables main_thread and alloc_mutex,
13268 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
13269 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
13270 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
13271 as (UN)BLOCK_INPUT.
13272 (emacs_blocked_free, emacs_blocked_malloc)
13273 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
13274 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
13275 (reset_malloc_hooks): New function.
13277 * lisp.h: Declare reset_malloc_hooks.
13279 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
13281 * keyboard.c: Conditionally include pthread.h.
13282 (handle_async_input, input_available_signalt): If not in the main
13283 thread, block signal, send signal to main thread and return.
13285 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
13286 Set current folder in file chooser if default_filename is a directory.
13288 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
13290 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
13291 Remove redundant correctness checks.
13292 (regex_compile): Fix up error codes for \{..\} expressions.
13294 2004-12-05 Richard M. Stallman <rms@gnu.org>
13296 * regex.c (regex_compile): Fix end-of-pattern case for space.
13298 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13300 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
13301 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
13302 crashes with invalid characters.
13303 * macmenu.c (add_menu_item): Use it.
13304 * image.c (image_load_quartz2d): Likewise.
13305 * macfns.c (x_set_name, x_set_title): Likewise.
13306 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
13307 creating them each time for labels.
13309 2004-12-02 Richard M. Stallman <rms@gnu.org>
13311 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
13314 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
13315 (interactive_p): Skip Scalled_interactively_p frames
13316 like Sinteractive_p frames.
13317 (unwind_to_catch): Clear handling_signal.
13319 * data.c (Fmake_variable_buffer_local): Doc fix.
13320 (Fmake_local_variable): Doc fix.
13322 * insdel.c (insert_from_string_before_markers)
13323 (insert_from_string): Don't modify buffer on empty insertion.
13325 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
13327 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13329 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
13330 menu text as UTF8 fails.
13332 2004-12-01 Kim F. Storm <storm@cua.dk>
13334 * alloc.c: Add commentary for last change.
13335 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
13336 sizeof(size_t) != 4.
13337 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
13338 Use them. Also clear header and trailer of freed memory.
13339 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
13340 (string_overrun_cookie): Rename from string_overrun_pattern.
13341 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
13343 2004-12-01 Andreas Schwab <schwab@suse.de>
13345 * lisp.h: Declare string_to_multibyte.
13347 2004-12-01 Kenichi Handa <handa@m17n.org>
13349 * w32console.c (w32con_write_glyphs): Decide coding here.
13350 Adjusted for the change of encode_terminal_code.
13352 * term.c (encode_terminal_code): Don't make it "static".
13354 2004-11-30 Kenichi Handa <handa@m17n.org>
13356 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
13357 (encode_terminal_code): Argument changed. Encode all
13358 characters at once, and return a pointer to the result of encoding.
13359 (write_glyphs): Decide coding here. Adjusted for the above change.
13360 (insert_glyphs): Likewise.
13361 (term_init): Initialize encode_terminal_bufsize to 0.
13363 * coding.c (Vcode_conversion_workbuf_name): New variable.
13364 (syms_of_coding): Initialize and staticpro it.
13365 (set_conversion_work_buffer): New function.
13366 (run_pre_post_conversion_on_str): Use it.
13367 (run_pre_write_conversin_on_c_str): New function.
13369 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
13371 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13373 * keyboard.c: Don't undef SIGIO
13374 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
13375 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
13376 (macfns.o): Don't depend on ccl.h.
13377 * macfns.c (mac_frame_parm_handlers): Set handlers for
13378 Qleft_fringe and Qright_fringe.
13379 * macterm.c (mac_fill_rectangle_to_pixmap)
13380 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
13381 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
13383 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
13384 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
13385 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
13386 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
13387 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
13388 XDrawImageString. Always draw background and foreground separately.
13389 (x_draw_image_foreground): Use clipping instead of computing the
13390 intersection rectangle.
13391 (x_draw_image_glyph_string): Don't draw an image with mask to a
13393 (x_redisplay_interface): Set flush_display_optional member to 0.
13394 (XTread_socket): Correctly reset the TEConverter
13397 2004-11-30 Kim F. Storm <storm@cua.dk>
13399 * lisp.h: New defines to enable buffer overrun checking.
13400 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
13401 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
13403 * alloc.c: Add more checks for buffer overruns.
13404 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
13405 xmalloc_overrun_check_trailer, overrun_check_malloc)
13406 overrun_check_realloc, overrun_check_free): Add.
13407 (GC_STRING_EXTRA, string_overrun_pattern): Add.
13408 (check_sblock, allocate_string_data, compact_small_strings):
13409 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
13410 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
13411 (check_string_free_list): Add.
13412 (allocate_string, sweep_strings): Call check_string_free_list.
13414 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
13415 XMALLOC_OVERRUN_CHECK to avoid crash during load.
13417 2004-11-29 Kim F. Storm <storm@cua.dk>
13419 * fns.c (concat): Use SAFE_ALLOCA.
13421 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
13423 * sysdep.c (emacs_write): Don't use QUIT.
13425 2004-11-29 Kenichi Handa <handa@m17n.org>
13427 * buffer.c (init_buffer): Set current_buffer->directory to a
13428 multibyte string made by string_to_multibyte.
13430 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
13432 2004-11-27 Andreas Schwab <schwab@suse.de>
13434 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
13436 * s/gnu-linux.h: Enable no-op gcpros on ia64.
13437 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
13439 * filelock.c (lock_file_1): Call get_boot_time early.
13440 Increase buffer size.
13442 2004-11-27 Eli Zaretskii <eliz@gnu.org>
13444 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
13447 2004-11-27 Kim F. Storm <storm@cua.dk>
13449 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
13450 marker out of doc string.
13452 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
13454 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
13455 which was not mentioned in the log.
13457 2004-11-26 Kim F. Storm <storm@cua.dk>
13459 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
13460 angle bitmaps at top/bottom line.
13462 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
13463 set it when it->method is set to next_element_from_display_vector.
13464 (setup_for_ellipsis): Add LEN argument. Callers changed.
13465 Set it->saved_face_id.
13466 (get_next_display_element): Use loop instead of recursion.
13467 Set it->saved_face_id. Combine duplicate code for ctr chars.
13468 (next_element_from_display_vector): Do not set it->saved_face_id.
13469 (next_element_from_ellipsis): Use setup_for_ellipsis.
13471 2004-11-26 Eli Zaretskii <eliz@gnu.org>
13473 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
13474 prevent compiler warnings.
13476 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
13478 * keyboard.c (command_loop_1): Print a message describing the key
13479 the user just pressed when this key has no binding.
13481 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
13482 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
13484 * lread.c (readchar): Check QUIT when `getc' is interrupted.
13486 2004-11-24 Richard M. Stallman <rms@gnu.org>
13488 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
13490 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
13492 2004-11-24 Kim F. Storm <storm@cua.dk>
13494 * xdisp.c (move_it_in_display_line_to, display_line):
13495 Restore saved_face_id also when truncate-lines or hscrolled.
13497 2004-11-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13499 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
13500 x-use-old-gtk-file-dialog.
13502 * xfns.c: Define x_use_old_gtk_file_dialog.
13503 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
13504 outside ifdef USE_GTK.
13506 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
13508 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
13509 Don't use XFASTINT blindly.
13511 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
13513 * indent.c (skip_invisible): Avoid non-idempotent side-effects
13514 in macro arguments.
13516 * keymap.c (Flookup_key): Check INTEGERP before XINT.
13518 * lread.c (oblookup): Don't use XFASTINT blindly.
13520 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
13521 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
13523 2004-11-23 Kim F. Storm <storm@cua.dk>
13525 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
13526 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
13528 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
13529 signal_p is zero and face name is unknown.
13530 (Fx_list_fonts): Don't signal error in lookup_named_face.
13531 (Fface_font): Signal error in lookup_named_face.
13532 (ascii_face_of_lisp_face): Likewise.
13534 * dispextern.h (lookup_named_face): Fix prototype.
13536 * xdisp.c (handle_single_display_prop): Don't signal error in
13537 lookup_named_face for unknown fringe face name.
13538 (highlight_trailing_whitespace): Don't signal error in
13539 lookup_named_face if trailing-whitespace face unknown.
13540 (calc_line_height_property): Don't signal error in
13541 lookup_named_face if specified face name is unknown.
13543 * fringe.c (update_window_fringes): Show top row indicator if
13544 window has header-line. Don't show arrow at bob and eob
13545 if the boundary indicators are not used.
13546 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
13548 * window.c (set_window_buffer): Clear display_error_modiff.
13550 2004-11-22 Kim F. Storm <storm@cua.dk>
13552 * fringe.c (update_window_fringes): Provide sensible fall-back
13553 value for non-nil indicate-buffer-boundaries setting.
13555 2004-11-22 Markus Rost <rost@ias.edu>
13557 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
13559 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
13561 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
13563 2004-11-21 Kim F. Storm <storm@cua.dk>
13565 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
13567 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
13568 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
13570 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
13571 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
13573 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
13574 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
13576 * xdisp.c (move_it_in_display_line_to, display_line):
13577 Restore saved_face_id if overflow-newline-into-fringe is enabled and
13578 line is continued before or in middle of element from display vector.
13580 * indent.c (Fvertical_motion): Fix last change. Use another
13581 method to detect if iterator moved too far ahead after reseat.
13583 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
13584 expand matrix width for overflow in zero-width area.
13585 (append_glyph, append_composite_glyph, produce_image_glyph)
13586 (append_stretch_glyph): Use it to avoid loop in redisplay.
13587 (note_mode_line_or_margin_highlight): Don't let help-echo from
13588 string override help-echo from image map.
13590 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
13592 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
13593 * callint.c (Fcall_interactively): Ditto.
13595 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
13597 * minibuf.c (Fminibuffer_complete_and_exit):
13598 Fixup the case of the completed value, for case-indep completion.
13600 2004-11-20 Richard M. Stallman <rms@gnu.org>
13602 * lisp.h (Fread_from_minibuffer): Add arg in decl.
13604 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
13605 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
13607 * search.c (Vsearch_spaces_regexp):
13608 Rename from Vsearch_whitespace_regexp. All uses changed.
13610 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
13612 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
13614 2004-11-19 Richard M. Stallman <rms@gnu.org>
13616 * search.c (Vsearch_whitespace_regexp): New variable.
13617 (syms_of_search): Defvar it.
13618 (compile_pattern_1): Call re_set_whitespace_regexp with it.
13619 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
13621 (struct regexp_cache): New element whitespace_regexp.
13622 (syms_of_search): Initialize whitespace_regexp elements.
13623 (compile_pattern): Compare whitespace_regexp elements.
13624 (compile_pattern_1): Set whitespace_regexp elements.
13626 * regex.c (regex_compile): Substitute whitespace_regexp
13627 for spaces, if it is nonzero.
13628 (whitespace_regexp): New variable.
13629 (re_set_whitespace_regexp): New function.
13631 2004-11-19 Kim F. Storm <storm@cua.dk>
13633 * indent.c (Fvertical_motion): Fix last change.
13635 2004-11-18 Kim F. Storm <storm@cua.dk>
13637 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
13638 Instead, move back again if reseating moves too far ahead.
13640 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
13642 * xdisp.c (message3): Call clear_message.
13644 2004-11-17 Kim F. Storm <storm@cua.dk>
13646 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
13648 2004-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13650 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
13652 * xmenu.c (x_menu_in_use): Remove.
13653 (x_menu_set_in_use): Also set popup_activated_flag.
13655 * xfns.c (Fx_file_dialog): Call popup_activated instead of
13656 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
13658 * xterm.h (x_menu_in_use): Remove.
13660 2004-11-16 Richard M. Stallman <rms@gnu.org>
13662 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
13663 Use map-keymap-internal to implement that.
13665 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
13667 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
13669 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
13670 a window before using XWINDOW.
13672 * window.c (make_window, Fselect_window, make_dummy_parent)
13673 (save_window_save):
13674 * frame.c (make_frame):
13675 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
13677 * lisp.h (NILP): Use EQ rather than XFASTINT.
13679 2004-11-16 Kim F. Storm <storm@cua.dk>
13681 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
13683 * indent.c (Fvertical_motion): Fix last change. Only reseat when
13686 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
13688 * dispextern.h: Extern reseat_at_previous_visible_line_start.
13690 2004-11-16 Kenichi Handa <handa@m17n.org>
13692 * xdisp.c (display_mode_element): Fix previous change (calculate
13693 end position of substring to display correctly).
13695 2004-11-16 Kim F. Storm <storm@cua.dk>
13697 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
13698 Reported by Andrew M. Scott.
13700 2004-11-15 Kim F. Storm <storm@cua.dk>
13702 * fns.c (Fsafe_plist_get): New defun.
13703 (syms_of_fns): Defsubr it.
13705 * lisp.h (Fsafe_plist_get): Add EXFUN.
13707 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
13708 Use Fsafe_plist_get.
13709 (note_mode_line_or_margin_highlight, note_mouse_highlight):
13710 Fix image map element parsing. Use Fsafe_plist_get.
13712 2004-11-15 Richard M. Stallman <rms@gnu.org>
13714 * xdisp.c (get_next_display_element): Fix previous change.
13716 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13718 * window.c (shrink_windows): Handle special case of one window left
13719 when trying to shrink the final reminder. Grow windows if
13720 total_removed is less than total_shrink.
13722 * xmenu.c (pop_down_menu): Remove global variable current_menu,
13723 extract pointer from arg with XSAVE_VALUE.
13724 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
13725 Construct arg to record_unwind_protect with make_save_value.
13727 2004-11-13 Richard M. Stallman <rms@gnu.org>
13729 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
13730 (get_next_display_element): Fix previous change to apply only to \n.
13732 * indent.c (Fvertical_motion): Scan to PT from start of line to
13733 make iterator consistent.
13735 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
13737 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13739 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
13741 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
13742 Record unwind with clean_up_file_dialog.
13744 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
13747 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
13749 2004-11-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13751 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
13752 (xg_file_sel_destroy): Remove.
13753 (xg_file_response_cb, pop_down_file_dialog)
13754 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
13756 (xg_get_file_with_chooser, xg_get_file_with_selection):
13757 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
13758 Move common code to xg_get_file_name. Return widget created.
13759 (xg_get_file_name): Set name, transient for, modal and destroy
13760 with parent here. Connect response signal to xg_file_response_cb,
13761 connect delete-event to gtk_true. Record pop_down_file_dialog
13762 for unwind. Do event loop and call x_menu_wait_for_event in loop.
13763 (xg_create_widget): Make dialogs modal.
13765 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
13767 (popup_get_selection): Move unwind protect ...
13768 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
13769 Move destroy of widget to pop_down_menu.
13770 (popup_widget_loop): Move unwind protect ...
13771 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
13772 Move destroy of widget to pop_down_menu.
13773 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
13774 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
13775 x_mouse_leave and grabbed = 0 to pop_down_menu.
13777 2004-11-13 Kim F. Storm <storm@cua.dk>
13779 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
13780 (syms_of_xdisp): DEFVAR_BOOL it.
13781 (make_cursor_line_fully_visible, try_cursor_movement)
13782 (try_window_id): Use it.
13784 2004-11-12 Kim F. Storm <storm@cua.dk>
13786 * dispextern.h (struct glyph_row): New member extra_line_spacing.
13787 (struct it): New member max_extra_line_spacing.
13788 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
13789 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
13790 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
13791 part of last line is only extra line spacing (so the text on the
13792 line is fully visible). Use helper macros.
13793 Add W arg (to use them). All callers changed.
13794 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
13795 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
13797 * window.c (window_scroll_pixel_based, Frecenter):
13798 Use move_it_vertically_backward directly.
13799 (Frecenter): Fix calculation of new start pos for negative arg.
13800 Before, the new start pos was sometimes chosen too far back, so
13801 the last line became only partially visible, and thus would be
13802 either only semi-visible or automatically scrolled to the middle
13803 of the window by redisplay.
13805 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
13806 (move_it_vertically_backward): Don't recure to move further back.
13807 (move_it_vertically): Remove superfluous condition.
13808 (move_it_by_lines): Clear last_height when moved 0 lines.
13809 (resize_mini_window): Use it.max_extra_line_spacing.
13810 (display_tool_bar_line): Clear row->extra_line_spacing.
13811 (try_scrolling): Use move_it_vertically_backward directly.
13812 (redisplay_window): Likewise.
13813 (compute_line_metrics): Set row->extra_line_spacing.
13814 (display_line, display_string): Likewise.
13815 (x_produce_glyphs): Update it->max_extra_line_spacing.
13817 * xmenu.c (pop_down_menu): Return nil.
13819 2004-11-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13821 * xmenu.c (x_menu_wait_for_event): New function.
13822 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
13824 (popup_widget_loop): Add argument do_timers.
13825 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
13826 do_timers to popup_widget_loop.
13827 (xmenu_show): Call XMenuActivateSetWaitFunction so that
13828 x_menu_wait_for_event is called by XMenuActivate.
13829 (create_and_show_popup_menu): Pass 1 for do_timers to
13830 popup_get_selection.
13831 (pop_down_menu): New function.
13832 (popup_get_selection, popup_widget_loop): Unwind protect to
13834 (popup_widget_loop): Add argument widget.
13835 (create_and_show_popup_menu, create_and_show_dialog): Pass new
13836 argument widget to popup_widget_loop.
13838 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
13840 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
13842 2004-11-09 Kim F. Storm <storm@cua.dk>
13844 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
13845 Fix various comments referring to XEvents instead of input events.
13846 (x_queue_event): Fix format strings.
13847 (x_stop_queuing_selection_requests): Likewise.
13849 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
13850 (pint2hrstr): Add extra braces to silence compiler.
13852 * print.c (print_object): Fix format string.
13854 * lread.c (read1): Fix next_char matching.
13856 * lisp.h (Fdelete): Add EXFUN.
13857 (replace_range_2): Add prototype.
13859 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
13861 * intervals.h (NULL_INTERVAL_P): Add separate version when
13862 ENABLE_CHECKING is not defined to silence compiler.
13863 (compare_string_intervals): Add prototype.
13865 * fringe.c (destroy_fringe_bitmap): Fix return type.
13866 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
13868 * emacs.c (Fdump_emacs): Fix format string.
13870 * doc.c: Include <ctype.h>.
13871 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
13873 * data.c (store_symval_forwarding): Remove unused variables.
13875 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
13877 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13879 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
13882 2004-11-09 Kim F. Storm <storm@cua.dk>
13884 * process.c (Fmake_network_process): Remove kludge for interrupted
13885 connects on BSD. If connect is interrupted, just close socket and
13886 start over rather than sleeping and retry with same socket.
13888 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13890 * .cvsignore: Add buildobj.lst.
13892 * doc.c: New variable Vbuild_files.
13893 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
13894 file names from buildobj.lst. Only attach docstrings from files
13895 that are in Vbuild_files.
13896 (syms_of_doc): Defvar Vbuild_files.
13898 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
13900 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
13901 (mostlyclean): Rm buildobj.lst
13903 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
13906 2004-11-09 Kim F. Storm <storm@cua.dk>
13908 * fringe.c (update_window_fringes): Update fringe bitmaps if
13909 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
13910 also update previous row to get rid of misc. artifacts.
13912 2004-11-08 Kim F. Storm <storm@cua.dk>
13914 * xdisp.c (fast_find_position): Fix start pos if header line present.
13915 (note_mouse_highlight): Clear mouse face if we move out of text area.
13917 2004-11-08 Eli Zaretskii <eliz@gnu.org>
13919 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
13920 Don't include <sys/time.h> explicitly.
13921 Include <stdio.h> unconditionally, not just on MacOS.
13923 2004-11-08 Kenichi Handa <handa@m17n.org>
13925 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
13926 don't pay attention to '\' before '*'.
13927 (fontset_pattern_regexp): Change the meaning of the second arg.
13928 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
13929 (check_fontset_name): Try NAME as literal at first, and if it
13930 failes, try NAME as pattern.
13932 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13934 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
13936 2004-11-07 Andreas Schwab <schwab@suse.de>
13938 * lisp.h (Fmsdos_downcase_filename): Declare.
13939 * dired.c (Fmsdos_downcase_filename): Don't declare here.
13940 * fileio.c: Likewise.
13942 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13944 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
13945 comparisons with integers instead of Lisp_Object address.
13946 (Fmsdos_set_keyboard): Declare argument allkeys.
13948 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
13950 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
13951 int/Lisp_Object mixup.
13955 2004-11-06 Steven Tamm <steventamm@mac.com>
13957 * editfns.c: Need to include sys/time.h before resource.h on darwin.
13959 2004-11-06 Richard M. Stallman <rms@gnu.org>
13961 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
13963 * xfaces.c (merge_named_face): GCPRO the face_name in the
13964 named_merge_point struct that we make.
13965 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
13967 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
13968 before deciding whether to inactivate mark.
13970 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
13972 * config.in: Regenerate (add HAVE_GETRUSAGE).
13973 * editfns.c (Fget_internal_run_time): New function.
13974 (syms_of_data): Defsubr it.
13975 * fns.c (sxhash): As far as possible, merge calculation of
13976 hash code for symbols and strings.
13978 2004-11-06 Eli Zaretskii <eliz@gnu.org>
13980 * frame.c (syms_of_frame): Fix the example in the doc string.
13982 2004-11-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13984 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
13986 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
13987 (create_and_show_dialog): Revert change from 2004-10-31.
13989 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
13991 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
13993 2004-11-05 Kim F. Storm <storm@cua.dk>
13995 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
13997 * fileio.c (Ffile_modes): Doc fix.
13998 (auto_save_1): Check for Ffile_modes nil value.
14000 2004-11-05 Kim F. Storm <storm@cua.dk>
14002 * xselect.c (struct selection_event_queue, selection_queue)
14003 (x_queue_selection_requests, x_queue_event)
14004 (x_start_queuing_selection_requests)
14005 (x_stop_queuing_selection_requests): Add new queue for selection
14006 input events to replace previous XEvent queue in xterm.c.
14007 (queue_selection_requests_unwind): Adapt to new queue.
14008 (x_reply_selection_request): Adapt to new queue.
14009 Unexpect wait_object in case of x errors (memory leak).
14010 (x_handle_selection_request, x_handle_selection_clear): Make static.
14011 (x_handle_selection_event): New function. May queue selection events.
14012 (wait_for_property_change_unwind): Use save_value instead of cons.
14013 Clear property_change_reply_object.
14014 (wait_for_property_change): Abort if already waiting.
14015 Use save_value instead of cons for unwind data.
14016 (x_handle_property_notify): Skip events already arrived, but don't
14017 free them, as "arrived" field is checked by wait_for_property_change,
14018 and it will be freed by unwind or explicit unexpect_property_change.
14019 (x_get_foreign_selection): Add to new queue.
14020 (receive_incremental_selection): Don't unexpect wait_object when done
14021 as it has already been freed by previous wait_for_property_change.
14023 * xterm.h (x_start_queuing_selection_requests)
14024 (x_stop_queuing_selection_requests, x_handle_selection_request)
14025 (x_handle_selection_clear): Remove prototypes.
14026 (x_handle_selection_event): Add prototype.
14028 * xterm.c (handle_one_xevent): Don't queue X selection events
14029 here, it may be too late if we start queuing after we have already
14030 stored some selection events into the kbd buffer.
14031 (struct selection_event_queue, queue, x_queue_selection_requests)
14032 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
14033 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
14034 (x_catch_errors_unwind): Block input around final XSync.
14036 * keyboard.h (kbd_buffer_unget_event): Add prototype.
14038 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
14039 (kbd_buffer_unget_event): New function.
14040 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
14041 and use x_handle_selection_event.
14042 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
14044 2004-11-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14046 * xselect.c (TRACE3): New debug macro.
14047 (x_reply_selection_request): Use it.
14048 (receive_incremental_selection): In call to TRACE0, the name of
14049 a symbol is in xname.
14051 2004-11-05 Kim F. Storm <storm@cua.dk>
14053 * fontset.c (fontset_pattern_regexp): Use unsigned char.
14055 2004-11-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14057 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
14059 * gtkutil.h (use_old_gtk_file_dialog): Declare.
14061 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
14062 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
14063 * xfns.c (syms_of_xfns): ... to here.
14065 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
14066 it doesn't start with /.
14068 2004-11-04 Kenichi Handa <handa@m17n.org>
14070 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
14071 treat it as a literal character.
14073 2004-11-03 Kim F. Storm <storm@cua.dk>
14075 * .gdbinit (ppt): New function.
14077 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14079 * xterm.c (x_window_to_scroll_bar): Only call
14080 xg_get_scroll_id_for_window if toolkit scroll bars are used.
14082 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
14085 2004-11-02 Andreas Schwab <schwab@suse.de>
14087 * window.c (Fscroll_right): Fix last change.
14089 2004-11-02 Kim F. Storm <storm@cua.dk>
14091 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
14093 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14095 * callproc.c (Fcall_process): Block input around vfork.
14097 2004-11-02 Kim F. Storm <storm@cua.dk>
14099 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
14100 (syms_of_eval): Defsubr it.
14102 2004-11-02 Richard M. Stallman <rms@gnu.org>
14104 * insdel.c (replace_range_2): New function.
14106 * casefiddle.c (casify_region): Handle changes in byte-length
14107 using replace_range_2.
14109 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
14111 * xdisp.c (back_to_previous_visible_line_start):
14112 Subtract 1 from pos when checking previous newline for invisibility.
14114 * window.c (window_scroll_pixel_based): Update preserve_y
14115 for header line if any.
14116 (Fscroll_left, Fscroll_right): Don't call interactive_p;
14117 use a new second argument instead.
14119 * eval.c (Fcall_interactive_p): New function.
14120 (interactive_p): Don't test INTERACTIVE here.
14121 (Finteractive_p): Doc fix.
14123 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
14125 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14127 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
14128 comparing font names.
14130 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14132 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
14133 Fx_file_dialog if only directories should be read.
14135 * lisp.h: Fx_file_dialog takes 5 parameters.
14137 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
14138 Add parameter only_dir_p.
14139 In Motif version, don't put DEFAULT_FILENAME in filter part of the
14140 dialog, just text field part. Do not add DEFAULT_FILENAME
14141 to list of files if it isn't there.
14142 In GTK version, pass only_dir_p parameter to xg_get_file_name.
14144 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
14145 Check only_dir_p instead of comparing prompt to "Dired". When using
14146 a save dialog, add option kNavDontConfirmReplacement, change title
14147 to "Enter name", change text for save button to "Ok".
14149 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
14150 Check only_dir_p instead of comparing prompt to "Dired".
14152 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
14153 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
14154 and HAVE_GTK_FILE_SELECTION_NEW respectively.
14155 (xg_get_file_name): Add parameter only_dir_p.
14156 Call xg_get_file_with_chooser or xg_get_file_with_selection
14157 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
14158 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
14160 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
14162 * config.in: Rebuild (added HAVE_GTK_FILE_*).
14164 2004-11-01 Kim F. Storm <storm@cua.dk>
14166 * process.c (connect_wait_mask, num_pending_connects):
14167 Only declare and use them if NON_BLOCKING_CONNECT is defined.
14168 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
14169 (IF_NON_BLOCKING_CONNECT): New helper macro.
14170 (wait_reading_process_output): Only declare and use local vars
14171 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
14173 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
14175 * w32term.c (x_scroll_run): Delete region objects after use.
14177 2004-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14179 * xmenu.c: Add prototypes for forward function declarations.
14180 (popup_get_selection): Remove parameter do_timers, remove call to
14182 (create_and_show_popup_menu, create_and_show_dialog):
14183 Remove parameter do_timers from call to popup_get_selection.
14185 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
14186 tool_bar_items and assign the result to f->tool_bar_items if
14187 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
14188 tool_bar_items to assignment of result.
14190 * atimer.c (alarm_signal_handler): Do not call set_alarm if
14191 pending_atimers is non-zero.
14193 2004-10-31 Kim F. Storm <storm@cua.dk>
14195 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
14197 2004-10-28 Will <will@glozer.net>
14199 * macterm.c: Allow user to assign key modifiers to the Mac Option
14200 key via a 'mac-option-modifier' variable.
14202 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14204 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
14205 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
14206 (x_handle_selection_request, x_handle_selection_clear)
14207 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
14209 2004-10-28 Richard M. Stallman <rms@gnu.org>
14211 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
14213 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
14215 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
14217 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
14218 comment-starter over a 1-char one.
14220 2004-10-27 Richard M. Stallman <rms@gnu.org>
14222 * xdisp.c (get_next_display_element): In mode lines,
14223 treat newline and tab like other control characters.
14225 * editfns.c (Fmessage): Doc fix.
14227 * indent.c (vmotion): When moving up, check the newline before.
14228 Make prevline an int, not a Lisp_Object.
14230 2004-10-27 Kim F. Storm <storm@cua.dk>
14232 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
14233 Only allocate info and discarded tables once.
14235 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
14236 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
14237 (SAFE_FREE): Test it to determine if we need to unwind to free.
14238 Remove size arg. All users changed.
14239 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
14241 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14243 * gtkutil.c: Put empty line between comment and function body.
14244 (xg_destroy_widgets): Rename from remove_from_container.
14245 Just destroy all widgets in list. Argument wcont removed.
14246 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
14247 instead of remove_from_container.
14248 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
14249 (free_frame_tool_bar): Add comment.
14251 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
14252 is not NULL before strcmp.
14254 2004-10-26 Kim F. Storm <storm@cua.dk>
14256 * callint.c (Fcall_interactively): Add 'U' code to get the
14257 up-event discarded by a previous 'k' or 'K' argument.
14259 2004-10-26 David Kastrup <dak@gnu.org>
14261 * buffer.c (syms_of_buffer): Fix a few typos.
14263 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14265 * xsmfns.c: Put empty line between comment and function body.
14266 Use two spaces before comment end.
14268 2004-10-25 Kenichi Handa <handa@m17n.org>
14270 * fontset.c (fontset_pattern_regexp): Optimize for the case that
14271 PATTERN is full XLFD.
14273 2004-10-24 Kenichi Handa <handa@m17n.org>
14275 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
14277 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
14278 (regex_compile): Return REG_ERANGEX if appropriate.
14280 2004-10-22 Kenichi Handa <handa@m17n.org>
14282 * editfns.c (Ftranslate_region_internal): New function.
14283 (syms_of_editfns): Defsubr it.
14285 2004-10-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14287 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
14289 2004-10-21 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
14291 * xterm.h (x_output): New member `xic_base_fontname'.
14292 (FRAME_XIC_BASE_FONTNAME): New macro.
14293 (xic_free_xfontset): Declare.
14295 * xfns.c (xic_create_xfontset): Share fontsets between frames
14296 based on base_fontname.
14297 (xic_free_xfontset): New function.
14298 (free_frame_xic): Use it.
14299 (xic_set_xfontset): Ditto.
14301 * xterm.c (xim_destroy_callback): Ditto.
14303 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
14305 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
14307 2004-10-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14309 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
14312 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
14313 New variables and constant.
14314 (main): Calculate heap_bss_diff. If we are dumping and the
14315 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
14316 and exec ourself again.
14317 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
14320 * lastfile.c: Make my_endbss and my_endbss_static available on all
14323 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
14324 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
14326 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
14328 * data.c (Flocal_variable_if_set_p): Doc fix.
14330 2004-10-19 Jason Rumney <jasonr@gnu.org>
14332 * w32.c (init_environment): Set emacs_dir correctly when running
14333 emacs from the build directory.
14335 2004-10-19 Richard M. Stallman <rms@gnu.org>
14337 * editfns.c (Fdelete_and_extract_region):
14338 If region is empty, return null string.
14340 2004-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14342 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
14344 (xg_frame_cleared): Remove.
14346 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
14347 (xg_find_top_left_in_fixed): Remove.
14348 (xg_create_scroll_bar): Put an event box widget between
14349 the scroll bar widget and the edit widget.
14350 (xg_show_scroll_bar): Show the parent widget (the event box).
14351 (xg_remove_scroll_bar): Destroy parent (the event box) also.
14352 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
14353 Move the parent (the event box) widget inside the fixed widget.
14354 Move window clear to xterm.c.
14356 * gtkutil.h (xg_frame_cleared): Remove.
14358 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
14359 (x_scroll_bar_create, XTset_vertical_scroll_bar):
14360 Remove arguments left and width to xg_update_scrollbar_pos.
14361 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
14363 2004-10-19 Kenichi Handa <handa@m17n.org>
14365 * xdisp.c (display_mode_element): Fix display of wide chars.
14367 2004-10-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14369 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
14370 gdk_window_clear and move gdk_window_process_all_updates after
14371 clear so events are sent to the X server in correct order.
14373 2004-10-18 Kenichi Handa <handa@m17n.org>
14375 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
14376 comparing font names.
14377 (fs_query_fontset): Use fast_string_match for comparing fontset names.
14378 (list_fontsets): Likewise.
14380 * search.c (fast_string_match_ignore_case): New function.
14382 * lisp.h (fast_string_match_ignore_case): Extern it.
14384 2004-10-17 Kim F. Storm <storm@cua.dk>
14386 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
14387 than bitmap if there is not left fringe.
14388 (get_overlay_arrow_glyph_row): Also used on windows system.
14389 (display_line): Display overlay string if no left fringe.
14391 2004-10-16 Jason Rumney <jasonr@gnu.org>
14393 * w32fns.c (w32_font_match): Encode font name being matched.
14395 2004-10-16 Richard M. Stallman <rms@gnu.org>
14397 * window.c (Fspecial_display_p): Doc fix.
14399 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
14401 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
14402 Don't ignore menus, because where-is-internal already does it for us.
14404 2004-10-15 Kim F. Storm <storm@cua.dk>
14406 * xdisp.c (redisplay_window): Only update fringes and vertical
14407 border on window frames.
14409 2004-10-14 Andreas Schwab <schwab@suse.de>
14411 * m/ia64.h (DATA_SEG_BITS): Don't define.
14413 2004-10-14 Kim F. Storm <storm@cua.dk>
14415 * xterm.h: Include Xutil.h after keysym.h to work around bug
14416 in some X versions.
14418 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
14420 * fns.c (map_char_table): Add missing gcpros.
14422 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
14424 * keymap.c (get_keymap): An autoload form is not a keymap.
14426 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
14428 2004-10-13 Kim F. Storm <storm@cua.dk>
14430 * callproc.c (Fcall_process): Simplify handling of display arg.
14431 Resume `display_on_the_fly' once a coding system is determined.
14433 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
14435 2004-10-12 Kim F. Storm <storm@cua.dk>
14437 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
14438 caller, such as call-process, is not going to poll for input.
14439 (calc_line_height_property): Handle case where it->object is nil.
14441 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
14443 2004-10-12 Kenichi Handa <handa@m17n.org>
14445 * xdisp.c (get_next_display_element):
14446 If unibyte_display_via_language_environment is zero, display 8-bit
14447 chars in octal in unibyte buffer.
14449 2004-10-12 Kim F. Storm <storm@cua.dk>
14451 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
14452 are no ordinary bindings.
14454 2004-10-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14456 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
14458 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14460 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
14461 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
14462 (make_mac_frame): Add BLOCK_INPUT around the making of a
14464 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
14465 * macgui.h (mktime): Use emacs_mktime.
14466 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
14467 Make a cancel file-open dialog be like C-g.
14468 * mac.c (mktime): Use emacs_mktime.
14469 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
14470 (Fmac_paste_function): Add better error handling for carbon cut/paste.
14472 2004-10-10 Kim F. Storm <storm@cua.dk>
14474 * keyboard.c (timer_resume_idle): New function to resume idle
14475 timer without resetting timers on the idle list.
14476 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
14477 (timer_start_idle, timer_stop_idle): Declare static.
14478 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
14480 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
14482 2004-10-08 Steven Tamm <steventamm@mac.com>
14484 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
14485 * macterm.c (mac_check_for_quit_char): Remove warning for using
14486 NULL where 0 should be used.
14487 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
14489 * mac.c: Include time.h for Tiger compatibility.
14491 2004-10-07 Kim F. Storm <storm@cua.dk>
14493 * xdisp.c (redisplay_window): Fix flicker on vertical line between
14494 windows. Update vertical line after drawing window fringes, but
14495 only if actually drawing any bitmaps--or there is no fringe.
14497 * xterm.c (x_update_window_end): Likewise.
14498 * macterm.c (x_update_window_end): Likewise.
14499 * w32term.c (x_update_window_end): Likewise.
14501 * fringe.c (draw_window_fringes): Return value now indicates if
14502 any fringe bitmaps were redrawn (or there are no fringes).
14504 * dispextern.h (draw_window_fringes): Update prototype.
14506 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14508 * macfns.c (mac_get_window_bounds): Add extern.
14509 (x_real_positions): Use mac_get_window_bounds.
14511 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
14514 * macterm.c [!MAC_OSX]: Include Windows.h.
14515 (front_emacs_window): Rename from mac_front_window. All uses
14516 changed. Return the frontmost non-tooltip emacs window.
14517 (mac_get_window_bounds): New function.
14518 (x_calc_absolute_position): Use the difference of width and height
14519 between the inner and outer window.
14520 (x_set_offset): Specify window position by the coordinae of the
14521 outer window. Adjust the position if the title bar is completely
14522 outside the screen.
14523 (app_is_suspended, app_sleep_time): Remove unused variables.
14524 (do_app_resume, do_app_suspend): Remove their contents because
14525 window-activate/deactivate events will do the job.
14526 (do_zoom_window): Remove unused variables. Make compliant to the
14527 standard way of zooming. Set f->left_pos and f->top_pos.
14528 (XTread_socket): Don't use argument `expected'. Don't use
14529 FrontWindow to determine the clicked window. Exclude unprocessed
14530 mouseUp cases in the early stage. Add parentheses to fix operator
14532 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
14534 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14536 * config.in: Regenerate.
14538 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
14541 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14543 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
14544 a row if Alt or Meta has been found for that row. Also stop scanning
14545 for Keysyms for that row.
14547 2004-10-04 Kim F. Storm <storm@cua.dk>
14549 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
14550 to list. Include overlay arrow bitmap in return value.
14552 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
14553 bars with fractional column width. If scroll bar separates two
14554 windows, move it towards the window it belongs to. Only update
14555 the padding area below the scroll bar widget when necessary,
14556 i.e. when scroll bar widget is created, moved, or resized.
14558 * xdisp.c (define_frame_cursor1): Do not change frame cursor
14559 while tracking/dragging mouse.
14560 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
14562 * window.c (coordinates_in_window): Relax check for cursor
14563 on vertial border between mode lines.
14564 (Fset_window_fringes): Do not allow negative widths.
14565 (Fset_window_scroll_bars): Likewise.
14567 * .gdbinit (pp): Shorthand for p ARG + pr.
14568 (ff): New command: flush frame updates (X only).
14570 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
14572 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
14574 2004-09-30 Kenichi Handa <handa@m17n.org>
14576 * process.c (send_process): Free composition data.
14578 * fileio.c (Finsert_file_contents): Free composition data.
14580 * coding.c (code_convert_region): Don't skip ASCIIs if there are
14581 compositions to encode.
14582 (encode_coding_string): Likewise. Free composition data.
14584 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
14586 * coding.c (code_convert_region): Free composition data.
14588 2004-09-29 Kim F. Storm <storm@cua.dk>
14590 * fringe.c: Remove limit on number of bitmaps.
14591 (fringe_bitmaps, fringe_faces): Change to pointers.
14592 (max_fringe_bitmaps): New var.
14593 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
14594 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
14596 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
14597 (struct glyph_row): Reorder fringe_bitmap related fields.
14598 (struct it): Likewise.
14600 * w32term.c (fringe_bmp): Change to pointer.
14601 (max_fringe_bmp): New var.
14602 (w32_define_fringe_bitmap): Expand fringe_bmp.
14603 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
14604 (w32_destroy_fringe_bitmap): Likewise.
14606 2004-09-29 Kim F. Storm <storm@cua.dk>
14608 * fringe.c: Simplify last change.
14609 (lookup_fringe_bitmap): New function.
14610 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
14611 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
14612 Keep standard bitmaps in Vfringe_bitmaps.
14613 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
14614 (Fset_fringe_bitmap_face): Likewise.
14616 * dispextern.h (lookup_fringe_bitmap): Add prototype.
14617 (valid_fringe_bitmap_p): Remove prototype.
14619 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
14621 2004-09-29 Kim F. Storm <storm@cua.dk>
14623 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
14624 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
14626 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
14628 * fringe.c (Vfringe_bitmaps): New variable.
14629 (syms_of_fringe): DEFVAR_LISP it.
14630 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
14631 Change arg to Lisp_Object and fail if not an integer.
14632 (get_fringe_bitmap_name, resolve_fringe_bitmap)
14633 (destroy_fringe_bitmap): New functions.
14634 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
14635 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
14636 clear its fringe property.
14637 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
14638 Fdestroy_fringe_bitmap.
14639 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
14640 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
14641 and set fringe property. Signal error if no free slots.
14642 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
14643 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
14645 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
14646 symbols with a fringe property.
14648 2004-09-27 Kim F. Storm <storm@cua.dk>
14650 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
14651 Doc fix. Format may now be a symbol or alist, not a cons.
14653 * fringe.c (update_window_fringes): Handle new formats of
14654 indicate-buffer-boundaries (symbol or alist). No longer
14655 allow a simple cons.
14656 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
14658 2004-09-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14660 * config.in: Rebuild.
14662 2004-09-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14664 * config.in: Rebuild.
14666 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
14668 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
14670 * xterm.c (x_term_init): Work around a bug in some X servers.
14672 2004-09-18 Richard M. Stallman <rms@gnu.org>
14674 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
14676 * xdisp.c (try_window_reusing_current_matrix):
14677 Handle the case where we reach the old displayed text,
14678 out of sync with the old line boundary.
14680 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
14682 * fileio.c (Finsert_file_contents): Fix case of replacement in a
14685 2004-09-14 Kim F. Storm <storm@cua.dk>
14687 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
14689 * xfaces.c (Qface_no_inherit): New var.
14690 (syms_of_xfaces): Intern and staticpro it.
14691 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
14692 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
14693 Don't increment face_change_count when face has non-nil
14694 face-no-inherit property.
14696 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
14698 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
14699 (Fbyte_code): Remove dead code after `wrong_type_argument'.
14701 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
14702 before doing the mark_stack_check_gcpros since they're not on the stack.
14704 2004-09-12 Kim F. Storm <storm@cua.dk>
14706 * editfns.c (Fformat): Handle format strings with multiple text
14707 properties. Reverse text property list from the format string,
14708 so the positions are in increasing order.
14710 2004-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14712 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
14713 x_uncatch_errors so that possible protocol errors are delivered.
14715 2004-09-10 Eli Zaretskii <eliz@gnu.org>
14717 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
14719 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
14720 charset.h, and coding.h
14721 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
14722 (term.o): Depend on window.h and keymap.h.
14723 (abbrev.o): Depend on syntax.h.
14724 (callint.o): Depend on keymap.h.
14725 (casefiddle.o): Depend on charset.h and keymap.h.
14726 (category.o): Depend on keymap.h.
14727 (coding.o): Depend on dispextern.h.
14728 (cmds.o): Depend on keyboard.h and keymap.h.
14729 (dispnew.o): Depend on indent.h and intervals.h.
14730 (doc.o): Depend on keymap.h.
14731 (editfns.o): Depend on frame.h.
14732 (emacs.o): Depend on dispextern.h.
14733 (fileio.o): Don't depend on ccl.h.
14734 (filelock.o): Depend on charset.h and coding.h.
14735 (frame.o): Depend on w32term.h and macterm.h.
14736 (insdel.o): Depend on region-cache.h.
14737 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
14738 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
14739 (search.o): Depend on $(INTERVALS_SRC).
14740 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
14741 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
14742 xterm.h, w32term.h, and macterm.h.
14743 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
14744 w32term.h, and macterm.h.
14745 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
14746 region-cache.h, xterm.h, w32term.h, and macterm.h.
14747 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
14748 (data.o): Depend on frame.h.
14749 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
14750 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
14751 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
14752 (intervals.o): Depend on keymap.h.
14754 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
14755 Add debugging print-out to termscript.
14757 2004-09-09 Richard M. Stallman <rms@gnu.org>
14759 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
14761 2004-09-08 Richard M. Stallman <rms@gnu.org>
14763 * window.c (Fset_window_buffer): Doc fix.
14765 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
14767 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
14769 * minibuf.c (history_delete_duplicates): New variable.
14770 (read_minibuf): Use it.
14771 (syms_of_minibuf): Create the corresponding lisp variable.
14773 2004-09-08 Kim F. Storm <storm@cua.dk>
14775 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
14776 overlay just before point.
14778 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
14780 * buffer.h (struct buffer): Add auto_save_file_format field.
14781 * buffer.c (reset_buffer, init_buffer_once):
14782 Handle auto_save_file_format field.
14783 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
14784 `buffer-auto-save-file-format'.
14785 * fileio.c: Delete declaration for removed Vauto_save_file_format.
14786 (build_annotations): Adapt to replacement of
14787 `auto-save-file-format' with the new buffer-local variable
14788 `buffer-auto-save-file-format'.
14789 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
14791 2004-09-07 Jason Rumney <jasonr@gnu.org>
14793 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
14795 * w32fns.c (w32_wnd_proc) <WM_MEASUREITEM, WM_DRAWITEM>:
14796 Handle Unicode menu titles.
14798 2004-09-07 Kim F. Storm <storm@cua.dk>
14800 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
14801 property from text property or overlay strings at point.
14803 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
14805 * xmenu.c (update_submenu_strings): YAILOM.
14806 (set_frame_menubar): Make sure last_i is initialized.
14808 2004-09-03 Jason Rumney <jasonr@gnu.org>
14810 * w32menu.c (_widget_value): Add lname and lkey.
14811 (digest_single_submenu): Set lname and lkey in widget_value
14812 instead of name and key.
14813 (update_submenu_strings): New function.
14814 (set_frame_menubar): Remove call to inhibit_garbage_collection,
14815 call update_submenu_strings.
14817 * w32menu.c (globals_of_w32menu): Check for Unicode API.
14818 (digest_single_submenu, w32_menu_show): Encode menu strings as
14819 UTF-8 if Unicode API is available.
14820 (utf8to16): New function.
14821 (add_menu_item): Use it when calling Unicode API.
14823 2004-09-03 Kim F. Storm <storm@cua.dk>
14825 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
14826 in overlay or text-property strings; set cursor on corresponding
14827 glyph rather than at end of the string.
14829 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14831 * macfns.c (x_real_positions): Save the current window port and
14832 set a new one before obtaining the global coordinate.
14833 Use FRAME_MAC_WINDOW.
14834 (x_set_name, x_set_title): Encode title to UTF8.
14835 Use SetWindowTitleWithCFString.
14836 (Fx_server_version): Get correct OS version.
14838 * macmenu.c (add_menu_item): Remove unused variable `i'.
14839 Don't let separator items destroy refence constants of other menu items.
14841 * macterm.c (x_update_end): Move SetPortWindowPort to inside
14843 (x_set_offset): Use FRAME_MAC_WINDOW.
14845 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
14846 nontext_cursor if it is on a scroll bar.
14848 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
14850 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
14853 2004-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14855 * xfns.c (x_set_name_internal): New function. Check if we shall call
14856 xfree before ENCODE_UTF_8.
14857 (x_set_name, x_set_title): Call x_set_name_internal.
14859 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
14861 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
14864 2004-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14866 * macmenu.c (_widget_value): Add lname and lkey.
14867 (single_submenu): Set lname and lkey in widget_value
14868 instead of name and key.
14869 (update_submenu_strings): New function.
14870 (set_frame_menubar): Remove call to inhibit_garbage_collection,
14871 call update_submenu_strings.
14873 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
14874 instead of name and key.
14875 (update_submenu_strings): New function.
14876 (set_frame_menubar): Remove call to inhibit_garbage_collection,
14877 call update_submenu_strings.
14879 * gtkutil.h (_widget_value): Added lname and lkey.
14881 2004-08-30 Steven Tamm <steventamm@mac.com>
14883 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
14884 by using different names for inner loop variables.
14886 2004-08-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14888 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
14889 from 1.233 so that strings from ENCODE_UTF_8 isn't GC:ed before used.
14891 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
14892 tool bar items is 0.
14894 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14896 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
14897 strings in menu items.
14898 (single_submenu): Use ENCODE_MENU_STRING
14899 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
14900 button release isn't passed to event loop
14901 (add_menu_item): Use SetMenuItemWithCFString
14903 2004-08-26 Steven Tamm <steventamm@mac.com>
14905 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
14906 tool-bar/menu click.
14907 * macfns.c (Fx_file_dialog): Implement using NavServices.
14909 2004-08-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14911 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
14913 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14914 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14915 (x_top_window_to_frame): Return 0 if wdesc is None.
14917 2004-08-22 Richard M. Stallman <rms@gnu.org>
14919 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
14920 HAVE_TERMIOS]: If there's no char for this signal, drop through
14921 and use system calls.
14923 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
14925 2004-08-20 Kim F. Storm <storm@cua.dk>
14927 * process.c (wait_reading_process_output): Rename from
14928 wait_reading_process_input. All uses changed.
14929 (wait_reading_process_output_1): Rename from
14930 wait_reading_process_input_1. All uses changed.
14932 * dispnew.c (Fsleep_for): Remove obsolete code.
14934 2004-08-20 Kenichi Handa <handa@m17n.org>
14936 * syntax.c (skip_chars): Fix for unibyte case.
14938 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
14940 * syntax.c (char_quoted): Mixup byte/char pos.
14941 (back_comment): Fixup globals in all cases.
14943 2004-08-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14945 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
14946 passing it to gtk_window_set_title.
14948 2004-08-19 Kim F. Storm <storm@cua.dk>
14950 * process.c (wait_reading_process_input): Clean up.
14951 Add wait_for_cell, wait_proc, and just_wait_proc args
14952 to avoid overloading `read_kbd' and `do_display' args.
14953 Change read_kbd arg to int. All callers changed.
14955 * process.c (process_send_signal): Use CDISABLE.
14957 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
14959 2004-08-18 Kim F. Storm <storm@cua.dk>
14961 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
14962 forward to wait_reading_process_input via DO_DISPLAY arg.
14963 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
14964 object, only process output from that process; also inhibit
14965 running timers if DO_DISPLAY==-2.
14967 2004-08-17 Kim F. Storm <storm@cua.dk>
14969 * process.c (process_send_signal): Fix last change--use
14970 _POSIX_VDISABLE instead of CVDISABLE when available.
14972 2004-08-16 Richard M. Stallman <rms@gnu.org>
14974 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
14975 Set VQUIT and VINTR chars to the standard ones if they are unset.
14976 [AIX]: Don't do that here. And don't force VINTR to standard
14977 when SIGNALS_VIA_CHARACTERS.
14979 * process.c (process_send_signal)
14980 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
14981 Do nothing if the character is CVDISABLE.
14983 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
14985 * intervals.c (move_if_not_intangible):
14986 Force POSITION to be between BEGV and ZV.
14988 2004-08-14 John Paul Wallington <jpw@gnu.org>
14990 * buffer.c (Frestore_buffer_modified_p): Doc fix.
14992 * fileio.c (Fread_file_name): Doc fix.
14994 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
14996 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
14998 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
15000 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
15002 * keyboard.c: Declare Qdisabled_command_function instead of
15003 Qdisabled_command_hook.
15004 (Fcommand_execute): Use Qdisabled_command_function instead of
15005 Qdisabled_command_hook.
15006 (syms_of_keyboard): Ditto.
15008 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
15010 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
15011 (syms_of_keymap) <key-translation-map>: Doc fixes.
15013 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
15015 * window.c (window_list_1): YAILOM.
15017 * fileio.c (make_temp_name): Handle multibyte prefixes.
15019 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
15021 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
15024 2004-08-03 Kenichi Handa <handa@m17n.org>
15026 * coding.c (decode_coding_string): Adjust coding->consumed, and
15027 etc. with shrinked_bytes.
15029 2004-08-03 Kim F. Storm <storm@cua.dk>
15031 * indent.c (compute_motion): Fix check for full width window
15032 in non-window case. Do not count left truncation glyph on
15035 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
15037 * data.c (Finteractive_form): Doc fix.
15039 2004-08-02 Kim F. Storm <storm@cua.dk>
15041 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
15042 properly accounting for continuation glyph on non-window systems.
15043 (Fcompute_motion): Use actual window width if WIDTH is nil, and
15044 actual window width/height if TOPOS is nil, properly accounting for
15045 continuation glyphs on non-window systems, and optional header lines.
15046 (vmotion): Let compute_motion calculate actual window width.
15048 * window.c (window_scroll_line_based): Let compute_motion
15049 calculate actual window width.
15051 2004-08-02 Kim F. Storm <storm@cua.dk>
15053 * process.c (read_process_output): Use whole read buffer.
15054 Don't trigger adaptive read buffering on errors.
15056 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
15058 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
15060 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
15062 * callint.c (Fcall_interactively): Doc fix.
15064 2004-07-30 Richard M. Stallman <rms@gnu.org>
15066 * abbrev.c (Fexpand_abbrev): Undo previous change.
15068 2004-07-30 Kim F. Storm <storm@cua.dk>
15070 * editfns.c (Fformat): Allocate extra (dummy) element in info.
15072 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
15074 * eval.c (Fdefvar, Fdefconst): Doc fixes.
15076 2004-07-27 Kim F. Storm <storm@cua.dk>
15078 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
15079 we have ensured that the glyph fits on the current line (or returned
15080 MOVE_LINE_CONTINUED otherwise).
15082 2004-07-26 Kim F. Storm <storm@cua.dk>
15084 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
15085 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
15086 if target position is at end of display line but char is not a newline.
15088 2004-07-25 Richard M. Stallman <rms@gnu.org>
15090 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
15091 instead of ON_VERTICAL_BORDER, when on scroll bar.
15092 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
15094 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
15096 * window.c (Fcoordinates_in_window_p):
15097 Take account of FRAME_INTERNAL_BORDER_WIDTH.
15099 * alloc.c (check_cons_list): New function (contents commented out).
15101 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
15103 * xfaces.c (Fcolor_supported_p): Doc fix.
15105 * frame.c (Fselect_frame, Fset_frame_selected_window)
15106 (Fframe_visible_p, Fraise_frame): Doc fixes.
15108 2004-07-24 Richard M. Stallman <rms@gnu.org>
15110 * keyboard.h (not_single_kboard_state): Declare.
15112 * fileio.c (Fwrite_region): Doc fix.
15114 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
15116 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
15117 only when a real abbrev is present.
15119 * xfns.c (x_icon_verify): New function.
15120 (Fx_create_frame): Use it.
15122 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
15124 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
15126 2004-07-21 Kim F. Storm <storm@cua.dk>
15128 * window.h (struct glyph_matrix): New members nrows_scale_factor
15129 and ncols_scale_factor.
15131 * window.c (make_window): Initialize nrows_scale_factor and
15132 ncols_scale_factor members.
15134 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
15135 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
15136 (required_matrix_height): Apply nrows_scale_factor.
15137 (required_matrix_width): Apply ncols_scale_factor.
15139 * xdisp.c (display_line): Increment nrows_scale_factor and set
15140 fonts_changed_p if past last allocated row.
15141 (append_glyph, append_composite_glyph, produce_image_glyph)
15142 (append_stretch_glyph): Increment ncols_scale_factor and set
15143 fonts_changed_p if current area is full.
15145 2004-07-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15147 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
15149 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
15151 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
15152 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
15153 (Fset_window_start, Fscroll_up, Fscroll_down)
15154 (Fother_window_for_scrolling, Fscroll_other_window)
15155 (Fsave_window_excursion, Fset_window_vscroll)
15156 (syms_of_window) <window-size-fixed>: Doc fixes.
15158 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
15160 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
15161 ENCODE_SYSTEM for filenames.
15163 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15165 * mac.c (sys_select): Block input around call to
15166 ReceiveNextEvent to prevent breakage. Correctly handle
15167 blocking on event queue only by calling ReceiveNextEvent
15168 instead of select (since GUI events aren't on an fd).
15169 (sys_read): Remove function
15170 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
15172 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15174 * mac.c (sys_select): Redo sys_select to use alarm-based
15175 polling instead of 1 sec timeouts (like solaris).
15177 * macterm.c (x_make_frame_visible): Comment in polling on
15180 * keyboard.c: Undef SIGIO on Carbon
15182 * atimer.c (alarm_signal_handler): Call alarm handlers after
15185 * eval.c (Feval): Remove quit_char test
15187 * process.c (wait_reading_process_input): Remove clearing
15188 stdin for select call on process input.
15190 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
15192 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
15193 capitalization error in docstring.
15195 2004-07-17 Juanma Barranquero <lektu@terra.es>
15197 * keyboard.c (not_single_kboard_state): Do nothing unless
15198 MULTI_KBOARD is defined.
15200 2004-07-17 Richard M. Stallman <rms@gnu.org>
15202 * window.c (coordinates_in_window): Inside the window but outside
15203 its box to the L or R, return ON_VERTICAL_BORDER.
15204 (window_list_1): Rotate the list to start with WINDOW.
15206 * print.c (print_preprocess): Test for print_depth at limit
15207 before entering in being_printed.
15209 * keyboard.c (not_single_kboard_state): New function.
15210 (stuff_buffered_input): Now no-op only if no SIGTSTP.
15212 * frame.c (Fdelete_frame): If we're in single_bboard_state on
15213 this kboard, and we delete its last frame, go to any_kboard_state.
15215 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
15217 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
15219 * w32fns.c (Fx_file_dialog): Encode strings in system coding
15220 system before passing them to OS functions for display.
15222 2004-07-15 David Kastrup <dak@gnu.org>
15224 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
15225 Apparently fixes an abort condition.
15227 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
15229 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
15232 2004-07-14 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
15234 * keyboard.c (echo_dash): Do nothing if there already is a dash
15235 at the end of the echo string.
15237 2004-07-12 Kim F. Storm <storm@cua.dk>
15239 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
15242 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
15244 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
15246 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
15247 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
15248 (Freplace_buffer_in_windows, Fset_window_buffer)
15249 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
15250 (syms_of_window): Expand docstring of `display-buffer-function'.
15252 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
15254 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
15255 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
15256 that time values of the type (HIGH . LOW) are considered obsolete.
15258 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
15260 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
15263 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
15265 2004-07-06 John Paul Wallington <jpw@gnu.org>
15267 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
15269 * fns.c (Fclear_string): Signal an error if STRING is not a string.
15271 2004-07-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15273 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
15274 instead of CGMainDisplayID (only in OSX 10.2 and later).
15276 2004-07-04 John Paul Wallington <jpw@gnu.org>
15278 * fileio.c (read_file_name_completion_ignore_case): New variable.
15279 (syms_of_fileio): Declare and initialise it.
15280 (Fread_file_name): Bind `completion-ignore-case' to respect it.
15282 2004-07-03 Eli Zaretskii <eliz@gnu.org>
15284 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
15285 for event.x and event.y.
15287 2004-07-01 Kenichi Handa <handa@m17n.org>
15289 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
15290 after getting a new string by pre-write-conversion.
15292 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
15294 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
15295 (x_calc_absolute_position): Remove unused var `child'.
15297 * xfaces.c (x_supports_face_attributes_p)
15298 (Fdisplay_supports_face_attributes_p): YAILOM.
15299 (tty_supports_face_attributes_p): Remove unused var `i'.
15301 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
15304 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
15306 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
15309 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
15311 2004-06-30 Andreas Schwab <schwab@suse.de>
15313 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
15314 (Finit_image_library): Pass LIBRARIES through to
15315 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
15316 (lookup_image_type): Pass Qnil as second argument to
15317 Finit_image_library.
15319 * lisp.h (Finit_image_library): Declare.
15321 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15323 * macterm.c (do_window_activate, do_window_deactivate): Remove.
15324 (XTread_socket): Send mouse button events to the toolbox
15325 dispatcher even when the mouse is grabbed. Don't process window
15326 activate events for non-Emacs windows. Replace function calls to
15327 do_window_activate and do_window_deactivate with their contents.
15328 Reset mouse grabbing status when a window is deactivated.
15330 2004-06-29 Steven Tamm <steventamm@mac.com>
15332 * macterm.c (mac_get_emulated_btn)
15333 (mac_event_to_emacs_modifiers): Fix emulated mouse button
15334 support to correctly mask out modifiers.
15336 2004-06-29 David Kastrup <dak@gnu.org>
15338 * search.c (Fset_match_data): Allow buffer before end of list
15339 which can happen if set-match-data is using a pre-consed list.
15341 2004-06-28 Steven Tamm <steventamm@mac.com>
15343 * macterm.c (XTread_socket): Correctly set the frame position
15344 after the window is moved.
15346 2004-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15348 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
15349 gpix and gmask just before return to avoid memory leak.
15350 (xg_get_image_for_pixmap): Add workaround for monochrome displays
15351 so insensitive and activated icons look ok.
15353 2004-06-27 Jason Rumney <jasonr@gnu.org>
15355 * w32fns.c (file_dialog_callback): Disable edit control if set
15356 to directories only on CDN_INITDONE message.
15357 (Fx_file_dialog): Default to directories only when prompt starts
15360 2004-06-25 Kim F. Storm <storm@cua.dk>
15362 * alloc.c (allocate_misc): Update total_free_markers.
15363 (free_misc): New function.
15364 (safe_alloca_unwind, free_marker): Use it.
15366 * lisp.h (free_misc): Add prototype.
15368 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
15370 2004-06-24 Richard M. Stallman <rms@gnu.org>
15372 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
15373 (syms_of_emacs): Lisp variables deleted.
15375 2004-06-23 David Kastrup <dak@gnu.org>
15377 * search.c (Freplace_match): Adjust the match-data more thoroughly
15378 when replacing strings in the buffer.
15379 (Fmatch_data): When INTEGERS is non-nil and the last match was in
15380 a buffer, add the buffer as last element to the match data.
15381 (Fset_match_data): If an additional element of the match-data is a
15382 buffer, restore it to last_thing_searched.
15383 (save_search_regs): Save last_thing_searched as part of the match data.
15384 (restore_match_data): Restore it again.
15386 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
15388 * keymap.c (Ftext_char_description): Doc fix.
15389 * doc.c (Fsnarf_documentation): Doc fix.
15391 2004-06-22 Kim F. Storm <storm@cua.dk>
15393 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
15395 * lisp.h (struct Lisp_Save_Value): New member dogc.
15396 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
15397 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
15398 (SAFE_FREE_LISP): New macro.
15400 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
15401 (make_save_value): Init new dogc member.
15402 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
15404 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
15405 SAFE_FREE_LISP macros.
15407 2004-06-22 Kim F. Storm <storm@cua.dk>
15409 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
15410 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
15411 in that memory area are unknown to GC. Add comments.
15413 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
15415 2004-06-21 Kim F. Storm <storm@cua.dk>
15417 * lisp.h (MAX_ALLOCA): Define here.
15418 (safe_alloca_unwind): Add prototype.
15419 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
15421 * alloc.c (safe_alloca_unwind): New function.
15423 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
15425 * charset.c (Fstring): Use SAFE_ALLOCA.
15427 * coding.c (MAX_ALLOCA): Remove define.
15429 * data.c (MAX_ALLOCA): Remove define.
15430 (Faset): Use SAFE_ALLOCA.
15432 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
15434 * fns.c (string_make_multibyte, string_to_multibyte)
15435 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
15436 (MAX_ALLOCA): Remove define.
15437 (Fbase64_encode_region, Fbase64_encode_string)
15438 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
15439 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
15440 memory leak if encoding fails.
15442 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
15444 2004-06-21 Eli Zaretskii <eliz@gnu.org>
15446 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15448 2004-06-20 Richard M. Stallman <rms@gnu.org>
15450 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
15452 * search.c (match_limit): Cleaner err msg when no match data available.
15454 * window.c (syms_of_window): Doc fix.
15456 * keyboard.c (command_loop_1): Handle values `only' and `identity'
15457 for Vtransient_mark_mode.
15459 * buffer.c (syms_of_buffer): Doc fix.
15461 2004-06-21 David Kastrup <dak@gnu.org>
15463 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
15464 and unbinding of `case-fold-search' according to
15465 `completion-ignore-case' around calls of string-match and
15466 predicates, respectively. Should give satisfactory performance
15467 in all relevant cases.
15469 2004-06-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15471 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
15474 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
15476 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
15478 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
15481 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
15483 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
15485 2004-06-16 Kim F. Storm <storm@cua.dk>
15487 * dispextern.h (Vimage_types): Remove extern.
15489 2004-06-16 Miles Bader <miles@gnu.org>
15491 * image.c (lookup_image_type): Initialize image type if necessary.
15493 2004-06-15 Kim F. Storm <storm@cua.dk>
15495 * xdisp.c (try_cursor_movement): Exclude header line from scroll
15496 margin at top of window.
15497 (try_window_reusing_current_matrix): Calculate proper cursor position
15498 after scrolling up with non-zero scroll margin, as the old cursor
15499 position corresponds to value of PT before executing this command.
15500 (try_window_id): Consider scroll margin at bottom of window too;
15501 otherwise we fail to scroll when hl-line-mode is enabled.
15503 * syntax.c (skip_chars): Only recognize [:class:] when it has the
15504 proper format and class is a lower-case word.
15506 2004-06-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15508 * gtkutil.c (xg_get_image_for_pixmap): New function.
15509 (xg_get_gdk_pixmap_and_mask): Remove.
15510 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
15511 xg_get_gdk_pixmap_and_mask.
15513 * xterm.h (struct x_display_info): Typo in comment fixed.
15515 2004-06-14 Juanma Barranquero <lektu@terra.es>
15517 * dispextern.h (Vimage_types): Make it conditional on
15518 HAVE_WINDOW_SYSTEM.
15520 * image.c (Vimage_types): Move from xdisp.c.
15521 (Vimage_type_cache): New variable.
15522 (define_image_type): New argument indicating whether an image
15523 library was loaded; cache loaded status and return t on success,
15525 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
15526 (w32_delayed_load): New function to load an image library from a
15527 list of possible filenames.
15528 (init_xpm_functions, init_png_functions, init_jpeg_functions)
15529 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
15530 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
15531 (Finit_image_library): New function, extracted from `init_image'.
15532 Try to initialize an image library on demand and cache whether we
15533 were successful or not.
15534 (syms_of_image): Initialize `Vimage_types' and
15535 `Vimage_type_cache'. Add recognized image types to Vimage_types.
15536 Export `init-image-library'.
15537 (init_image): Remove initialization of all image types, except xbm
15540 * xdisp.c (Vimage_types): Delete (moved to image.c).
15542 2004-06-14 Andreas Schwab <schwab@suse.de>
15544 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
15545 Avoid calling specbind when completion-regexp-list is empty.
15547 2004-06-13 Richard M. Stallman <rms@gnu.org>
15549 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
15550 (re_wctype, re_iswctype, re_wctype_to_bit):
15551 Non-function definitions moved here from regex.c.
15553 * regex.c (re_wctype, re_iswctype): Function defs longer static.
15554 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
15555 (re_wctype, re_iswctype, re_wctype_to_bit):
15556 Non-function definitions moved to regex.h.
15558 * window.c (Fselect_window): Doc fix.
15560 * syntax.c: Include regex.h.
15561 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
15562 If requested, make a list of classes, then check the scanned
15563 chars for membership in them.
15564 (in_classes): New function.
15567 * keyboard.c (cmd_error): Don't call any_kboard_state
15568 if inside a recursive edit level.
15570 2004-06-13 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
15572 * keyboard.c (command_loop): Call any_kboard_state before
15573 command_loop_2 when at top level.
15575 2004-06-13 Andreas Schwab <schwab@suse.de>
15577 * print.c (print_object): Always use %ld for printing EMACS_INT.
15579 * keyboard.c (cancel_hourglass_unwind): Return a value.
15580 (modify_event_symbol): Always use %ld for printing EMACS_INT.
15581 (Fexecute_extended_command): Likewise.
15583 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
15585 (SYNTAX): Likewise.
15586 (SYNTAX_WITH_FLAGS): Likewise.
15587 (SYNTAX_MATCH): Likewise.
15589 * syntax.c (char_quoted): Avoid warning about undefined operation.
15590 (find_defun_start): Likewise.
15591 (scan_lists): Likewise.
15592 (INC_FROM): Likewise.
15593 (scan_sexps_forward): Likewise.
15595 * image.c: Include <ctype.h>.
15597 * xfaces.c (face_attr_equal_p): Declare parameters.
15599 2004-06-13 Kenichi Handa <handa@m17n.org>
15601 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
15603 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
15605 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
15607 2004-06-12 Kenichi Handa <handa@m17n.org>
15609 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
15610 ccl_prog_stack_struct and update it.
15611 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
15612 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
15613 ccl->eof_ic on EOF.
15614 (ccl_debug_hook): New function.
15615 (struct ccl_prog_stack): New member eof_ic.
15616 (ccl_driver): Handle EOF in subrountine call correctly.
15618 2004-06-11 Kenichi Handa <handa@m17n.org>
15620 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
15622 2004-06-11 Kim F. Storm <storm@cua.dk>
15624 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
15626 2004-06-11 Juanma Barranquero <lektu@terra.es>
15628 * keyboard.c (Fposn_at_point): Doc fix.
15630 2004-06-11 David Kastrup <dak@gnu.org>
15632 * search.c (match_limit): Don't flag an error if match-data
15633 exceeding the allocated search_regs.num_regs gets requested, just
15636 2004-06-08 Miles Bader <miles@gnu.org>
15638 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
15640 2004-06-07 Juanma Barranquero <lektu@terra.es>
15642 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
15643 (Fcurrent_time_string, Fcurrent_time_zone)
15644 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
15646 2004-06-07 Miles Bader <miles@gnu.org>
15648 * xfaces.c (struct named_merge_point): New type.
15649 (push_named_merge_point): New function.
15650 (merge_named_face): New function.
15651 (merge_face_ref, face_at_buffer_position, face_at_string_position):
15652 Use `merge_named_face'.
15653 (merge_face_inheritance): Function removed.
15654 (merge_face_ref): Rename from `merge_face_vector_with_property'.
15655 Add new `err_msgs' and `named_merge_points' args. Return error
15656 status. Only print error messages if ERR_MSGS is true. Don't try to
15657 do :inherit attribute validation.
15658 (merge_face_heights): Handle `unspecified' in both directions.
15659 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
15660 Call `merge_face_ref' instead of `merge_face_inheritance'.
15661 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
15662 (compute_char_face, face_at_buffer_position)
15663 (face_at_string_position): Call `merge_face_ref' instead of
15664 `merge_face_vector_with_property'.
15666 2004-06-07 Kenichi Handa <handa@m17n.org>
15668 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
15669 the necessary places.
15671 2004-06-07 Kim F. Storm <storm@cua.dk>
15673 * process.c (Fdelete_process): Undo 2004-05-28 change.
15674 Instead, call status_notify also for network process.
15675 (status_message): Use process instead of status as arg.
15676 Give messages "deleted" or "connection broken by remote peer" for
15677 an exited network process.
15678 (status_notify): Change call to status_message.
15679 (read_process_output): Increase readmax to 4096. Do not increase
15680 buffer size for datagram channels (default is now large enough).
15682 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
15684 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
15685 problem due to newly defined variable.
15687 2004-06-06 Miles Bader <miles@gnu.org>
15689 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
15690 immediately if non-interactive or not initialized.
15692 2004-06-05 Richard M. Stallman <rms@gnu.org>
15694 * minibuf.c (Fcompleting_read): Doc fix.
15696 2004-06-05 Andreas Schwab <schwab@suse.de>
15698 * macfns.c (x_create_tip_frame): Fix declaration after statement.
15700 2004-06-05 Juanma Barranquero <lektu@terra.es>
15702 * keymap.c (Fdescribe_vector): Fix docstring.
15703 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
15705 2004-06-05 Miles Bader <miles@gnu.org>
15707 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
15708 attributes have different values than the default face.
15710 2004-06-04 Eli Zaretskii <eliz@gnu.org>
15712 * xfaces.c (x_supports_face_attributes_p): Make this function
15713 conditional on HAVE_WINDOW_SYSTEM.
15714 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
15715 Don't call x_supports_face_attributes_p if it was not compiled in.
15717 2004-06-04 Miles Bader <miles@gnu.org>
15719 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
15720 from Ftty_supports_face_attributes_p.
15721 (x_supports_face_attributes_p): New function.
15722 (Ftty_supports_face_attributes_p): Function deleted.
15723 (Fdisplay_supports_face_attributes_p): New function.
15724 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
15725 (face_attr_equal_p): New function.
15726 (lface_equal_p): Use it.
15728 2004-06-03 Juanma Barranquero <lektu@terra.es>
15730 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
15731 (Vw32_color_map): Fix typo in docstring.
15732 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
15733 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
15734 Make argument names match their use in docstring.
15736 2004-06-02 Juanma Barranquero <lektu@terra.es>
15738 Work around bugs/problems with MinGW builds of graphics libraries
15739 called from MSVC builds of Emacs.
15741 * image.c (lookup_image): Make pointer to img static.
15742 (png_read_from_memory): Disable "global" optimization.
15744 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
15746 * eval.c (Fcondition_case): Fix usage. Simplify.
15748 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
15750 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15752 * macfns.c: Don't include ccl.h.
15753 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
15754 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
15756 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
15757 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
15758 display height/width.
15759 (compute_tip_xy, Vx_max_tooltip_size): Declare.
15760 (unwind_create_tip_frame, compute_tip_xy): New functions.
15761 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
15762 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
15763 and last_show_tip_args.
15765 * macgui.h [!MAC_OSX]: Include Gestalt.h.
15766 (Cursor, No_Cursor): New defines.
15767 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
15768 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
15770 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
15772 * macterm.c: Don't include Gestalt.h.
15773 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
15774 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
15775 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
15776 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
15777 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
15778 (construct_mouse_click, XTmouse_position)
15779 (x_scroll_bar_report_motion, x_calc_absolute_position)
15780 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
15781 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
15782 (note_mouse_movement): Clear the mouse face and reset the pointer
15783 shape when the pointer goes outside the frame without grabbing.
15784 (mac_front_window): New function.
15785 (mac_window_to_frame): New macro.
15786 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
15787 (do_window_activate, do_window_deactivate, do_app_resume)
15788 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
15789 (do_zoom_window, mac_do_receive_drag, XTread_socket)
15790 (mac_check_for_quit_char): Use mac_front_window and/or
15791 mac_window_to_frame.
15792 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
15793 scroll-bar click event.
15794 (mac_define_frame_cursor): Change the pointer shape.
15795 (x_free_frame_resources): Reset tip_window to NULL when it is
15797 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
15798 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
15799 (do_window_update): Don't do anything if the updated window is the
15801 (do_mouse_moved): Handle mouse movement events here (previously in
15802 XTread_socket). Clear the mouse face if
15803 dpyinfo->mouse_face_hidden is set.
15804 (do_os_event, do_events): Remove (now in XTread_socket).
15805 (XTread_socket): Immediately return if interrupt_input_blocked.
15806 Loop until all the events in the queue are processed.
15807 Rearrange codes for mouse grabbing. Add tooltip support. Include the
15808 contents of do_os_event and do_events. Remove mouse movement
15809 handling (now in do_mouse_moved). Add the case where
15810 Vmouse_highlight has an integer value.
15811 (NewMacWindow): Remove.
15812 (make_mac_frame): Do what NewMacWindow previously did. Don't do
15813 excess initializations.
15814 (make_mac_terminal_frame): Previous initializations in
15815 make_mac_frame are moved here.
15816 (mac_initialize_display_info):
15817 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
15819 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
15820 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
15822 2004-05-29 Richard M. Stallman <rms@gnu.org>
15824 * lisp.h (truncate_undo_list): Update decl.
15826 * alloc.c (undo_outer_limit): New variable.
15827 (syms_of_alloc): Defvar it.
15828 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
15830 * undo.c (truncate_undo_list): New arg LIMITSIZE.
15832 * alloc.c (lisp_align_malloc): Check for base == 0
15833 regardless of HAVE_POSIX_MEMALIGN.
15834 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
15836 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15838 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
15839 (marker_blocks_pending_free): Remove.
15840 (Fgarbage_collect): Sweep after cleaning up undo-lists.
15841 Mark the undo lists after claning them up.
15842 Don't free block in marker_blocks_pending_free.
15843 (mark_buffer): Don't mark undo_list.
15844 (gc_sweep): Sweep hash-tables and strings first.
15845 Do free marker blocks that are empty.
15847 2004-05-28 Jim Blandy <jimb@redhat.com>
15849 * regex.c (print_partial_compiled_pattern): Add missing 'break'
15850 after 'case wordend'. For symbeg and symend, print to stderr,
15851 like the other cases.
15853 2004-05-28 Noah Friedman <friedman@splode.com>
15855 * process.c (Fdelete_process): Do not call remove_process.
15857 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15859 * alloc.c (struct backtrace): Remove.
15860 (Fgarbage_collect): Use the new mark_backtrace.
15862 * eval.c (mark_backtrace): New function.
15864 * minibuf.c (run_exit_minibuf_hook): New function.
15865 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
15866 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
15868 2004-05-27 Kim F. Storm <storm@cua.dk>
15870 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
15871 over display properties, e.g. images, that replace buffer text.
15873 2004-05-25 Kim F. Storm <storm@cua.dk>
15875 * alloc.c (marker_blocks_pending_free): New var.
15876 (gc_sweep): Store free marker blocks on that list.
15877 (Fgarbage_collect): Free them after undo-list cleanup.
15879 * process.c (wait_reading_process_input): Check connect_wait_mask
15880 before actually accepting connection in case it has already been
15881 accepted due to recursion.
15883 2004-05-23 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
15885 * coding.c (Fset_safe_terminal_coding_system_internal):
15886 Set suppress_error in safe_terminal_coding, not terminal_coding.
15888 2004-05-22 Richard M. Stallman <rms@gnu.org>
15890 * alloc.c (Fmake_string): Doc fix.
15892 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
15893 and the alist pairs too.
15895 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
15897 * emacs.c (main): Update copyright year.
15899 * fileio.c (Fread_file_name): Expand DIR if not absolute.
15901 * insdel.c (del_range_2, replace_range): Don't write an anchor
15902 if the gap is empty.
15904 * xdisp.c (try_scrolling): If scroll-up-aggressively or
15905 scroll-down-aggressively is small but positive, put point
15906 near the screen edge.
15908 2004-05-22 Juanma Barranquero <lektu@terra.es>
15910 * keymap.c (Fdefine_key): Doc fix.
15912 2004-05-22 Kim F. Storm <storm@cua.dk>
15914 * alloc.c (struct backtrace): Add debug_on_exit member.
15915 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
15916 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
15917 the removed cons cells.
15918 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
15919 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
15920 any cons cells pointing to unallocated stings.
15921 Do not lisp_free any marker blocks, as there may still be pointers
15922 to them from buffer undo lists at this stage of GC.
15924 * keyboard.c (struct backtrace): Add debug_on_exit member.
15925 (Fcommand_execute): Clear it.
15927 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
15929 * intervals.c (lookup_char_property): Do not prematurely return nil.
15931 2004-05-19 Jim Blandy <jimb@redhat.com>
15933 Add support for new '\_<' and '\_>' regexp operators, matching the
15934 beginning and end of symbols.
15936 * regex.c (enum syntaxcode): Add Ssymbol.
15937 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
15938 (re_opcode_t): New opcodes `symbeg' and `symend'.
15939 (print_partial_compiled_pattern): Print the new opcodes properly.
15940 (regex_compile): Parse the new operators.
15941 (analyse_first): Skip sym(beg|end) (they match only the empty string).
15942 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
15943 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
15944 (re_match_2_internal): Match symbeg and symend.
15946 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
15948 2004-05-19 Kim F. Storm <storm@cua.dk>
15950 * .gdbinit (xsymbol): Fix last change.
15952 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
15954 * .gdbinit (xprintstr): New fun.
15955 (xstring, xprintsym): Use it.
15957 * w32proc.c (create_child): Use INTMASK.
15959 * alloc.c (Fgarbage_collect): Do all the marking before flushing
15960 unmarked elements of the undo list.
15962 2004-05-18 David Ponce <david@dponce.com>
15964 * print.c (print): Reset print_depth before to call print_object.
15966 2004-05-18 Jason Rumney <jasonr@gnu.org>
15968 * w32console.c: Prefix RIF functions with w32con_ to avoid
15969 namespace clash with functions in term.c and w32term.c.
15971 * w32menu.c (add_menu_item, w32_menu_display_help)
15972 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
15974 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
15976 2004-05-18 Eli Zaretskii <eliz@gnu.org>
15978 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
15980 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
15982 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
15985 2004-05-18 Kim F. Storm <storm@cua.dk>
15987 * blockinput.h (INPUT_BLOCKED_P): New macros.
15989 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
15990 (Ftop_level): Unblock input if blocked.
15992 * buffer.h (GET_OVERLAYS_AT): New macro.
15993 * msdos.c (IT_note_mouse_highlight): Use it.
15994 * textprop.c (get_char_property_and_overlay): Use it.
15995 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
15996 * xfaces.c (face_at_buffer_position): Use it.
15998 * print.c (print_object): Increase buf size.
16000 2004-05-17 Jason Rumney <jasonr@gnu.org>
16002 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
16003 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
16004 Lisp_Object using i member.
16005 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
16006 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
16009 * w32proc.c (create_child): Use make_number instead of masking pid.
16011 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
16012 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
16013 Use EQ to compare Lisp_Objects.
16014 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
16016 * w32term.c (w32_num_mouse_buttons): Rename from
16017 Vw32_num_mouse_buttons and make it an int.
16019 * w32.c (init_environment): Use it.
16021 * w32fns.c (w32_wnd_proc): Likewise.
16023 * w32proc.c (w32_pipe_read_delay): Rename from
16024 Vw32_pipe_read_delay and make it an int.
16026 * w32.c (_sys_read_ahead): Use it.
16028 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
16030 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
16032 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
16033 (key_event): Don't mix Lisp_Object and int.
16035 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
16037 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
16038 modifiers in language change event.
16040 2004-05-17 Kim F. Storm <storm@cua.dk>
16042 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
16043 Such objects may be freed markers which still exist on an undo list.
16045 2004-05-16 Juanma Barranquero <lektu@terra.es>
16047 * data.c (Fset_default): Make argument names match their use in
16050 2004-05-15 Andreas Schwab <schwab@suse.de>
16052 * emacs.c (gdb_array_mark_flag): Define.
16053 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
16055 2004-05-15 Eli Zaretskii <eliz@gnu.org>
16057 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
16058 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
16059 defined for the MS-DOS build.
16061 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
16063 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
16065 2004-05-14 Kenichi Handa <handa@m17n.org>
16067 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
16069 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16071 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
16072 section to frame.c section.
16073 (Fxw_display_color_p, Fx_file_dialog): Declare if
16074 HAVE_WINDOW_SYSTEM defined.
16076 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
16078 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
16080 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
16081 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
16082 (XTread_socket): Fix int/Lisp_Object mixup.
16083 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
16085 * macterm.h (struct frame, struct face, struct image)
16086 (display_x_get_resource, Fx_display_color_p)
16087 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
16090 2004-05-14 Kim F. Storm <storm@cua.dk>
16092 * process.c (wait_reading_process_input): Make reentrant.
16093 Make Available and Connecting non-static. Save and restore value
16094 of waiting_for_user_input_p.
16096 2004-05-13 Kim F. Storm <storm@cua.dk>
16098 * keyboard.c (mark_kboards): Don't mark x and y members
16099 that are overloaded in selection request events.
16101 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16103 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
16105 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
16107 * window.c (Fdisplay_buffer, Fsplit_window)
16108 (split-height-threshold): Doc fix.
16110 2004-05-13 Juanma Barranquero <lektu@terra.es>
16112 * xfaces.c (Ftty_supports_face_attributes_p)
16113 (Finternal_copy_lisp_face): Fix typo in docstring.
16114 (Finternal_get_lisp_face_attribute): Fix docstring.
16116 2004-05-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16118 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
16120 2004-05-11 Steven Tamm <steventamm@mac.com>
16122 * macfns.c (Fx_create_frame): Default to using tool-bar by
16123 setting tool-bar-lines to 1 in default-frame-alist.
16125 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16127 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
16128 (xpm_get_color_table_v, xpm_make_color_table_h)
16129 (xpm_put_color_table_h, xpm_get_color_table_h)
16130 (xpm_str_to_color_key, xpm_load_image, xpm_load)
16131 (syms_of_image): Support XPM on Carbon Emacs. Does not
16132 depend on libXpm, but only supports XPM version 3 without extensions.
16134 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16136 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
16137 instead of FRAME_X_P
16139 2004-05-11 Kim F. Storm <storm@cua.dk>
16141 * process.c (read_process_output): Grow decoding_buf when needed;
16142 this could cause a crash in allocate_string and compact_small_strings.
16144 2004-04-29 Jim Blandy <jimb@redhat.com>
16146 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
16147 against proper opcode.
16149 2004-05-10 Juanma Barranquero <lektu@terra.es>
16151 * process.c (Fstart_process): Fix docstring.
16153 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
16154 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
16155 (Fsplit_char, Fchar_charset): Make argument names match their use
16158 2004-05-10 Richard M. Stallman <rms@gnu.org>
16160 * print.c (print_preprocess): Use being_printed, loop_count and
16161 halftail to detect overdeep nesting and cyclic cdr chains.
16163 2004-05-10 Andreas Schwab <schwab@suse.de>
16165 * lisp.h (Fmake_symbolic_link): Declare.
16167 * fileio.c (Frename_file): Remove extra argument in call to
16168 Fmake_symbolic_link.
16170 2004-05-10 Kim F. Storm <storm@cua.dk>
16172 * xdisp.c (calc_line_height_property): Use string position when
16173 object is a string.
16175 2004-05-10 Kenichi Handa <handa@m17n.org>
16177 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
16178 inhibit-modification-hooks to t temporarily before calling
16181 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
16182 inhibit-modification-hooks to t temporarily before calling
16185 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
16186 inhibit-modification-hooks to t temporarily before calling
16189 * fns.c (count_combining): Delete it.
16190 (concat): Don't check combining bytes.
16192 2004-05-09 Jason Rumney <jasonr@gnu.org>
16194 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
16195 (globals_of_w32fns): Set it.
16197 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
16199 * data.c (Fquo): Simplify.
16201 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
16203 * data.c (Fquo): If any argument is float, do the computation in
16206 2004-05-08 Juanma Barranquero <lektu@terra.es>
16208 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
16209 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
16210 Fix spelling of Emacs on docstring.
16211 (Fset_process_coding_system, Fprocess_coding_system)
16212 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
16213 Make argument names match their use in docstring.
16214 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
16217 * editfns.c (Finsert_buffer_substring): Make argument names match their
16220 * syntax.c (Fmodify_syntax_entry): Fix docstring.
16222 2004-05-07 Steven Tamm <steventamm@mac.com>
16224 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
16225 around call to ReceiveEvent to avoid certain crashes.
16227 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16229 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
16230 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
16231 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
16232 Save/restore the current graphics port and device handle when
16233 drawing into an offscreen graphics world.
16235 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
16236 (gif_load): Likewise.
16238 2004-05-07 Juanma Barranquero <lektu@terra.es>
16240 * window.c (Fset_window_buffer): Fix docstring.
16242 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
16244 * emacs.c (main) [VMS]: Fix var ref.
16246 2004-05-06 Romain Francoise <romain@orebokech.com>
16248 * data.c (Fsetq_default): Fix docstring.
16250 2004-05-06 Jason Rumney <jasonr@gnu.org>
16252 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
16253 to avoid name clash.
16255 2004-05-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16257 * fileio.c (barf_or_query_if_file_exists): Use lstat.
16258 (Frename_file): Handle renaming of symlinks across file systems.
16259 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
16261 2004-05-04 Kim F. Storm <storm@cua.dk>
16263 * xdisp.c (Qtotal): New var.
16264 (syms_of_xdisp): Intern and staticpro it.
16265 (calc_line_height_property): New arg total. Set it if
16266 line-spacing property has format (total . VALUE).
16267 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
16268 Handle total line-spacing property.
16270 2004-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16272 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
16273 "under" scroll bar when size/position changes.
16275 2004-05-03 Jason Rumney <jasonr@gnu.org>
16277 * makefile.nt: Remove.
16279 2004-05-02 Eli Zaretskii <eliz@gnu.org>
16281 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
16282 Avoid compiler warnings.
16284 * Makefile.in (region-cache.o): Depend on config.h.
16286 2004-05-02 Romain Francoise <romain@orebokech.com>
16288 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
16289 with continuation lines, too.
16291 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
16293 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
16295 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
16297 * xdisp.c (calc_line_height_property): YAILOM (yet another
16298 int/Lisp_Object mixup).
16300 2004-05-01 Eli Zaretskii <eliz@gnu.org>
16302 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
16303 undo bad effect of pack(4) in some versions of system headers.
16305 2004-05-01 Jason Rumney <jasonr@gnu.org>
16307 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
16309 2004-04-30 Kim F. Storm <storm@cua.dk>
16311 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
16312 (syms_of_buffer) <cursor-type>: Doc fix.
16314 * dispextern.h (struct it): Remove member use_default_face.
16315 Add members override_ascent, override_descent, override_boff.
16317 * xdisp.c (init_iterator): Handle line-spacing float value.
16318 Initialize override_ascent member.
16319 (append_space_for_newline): Reset override_ascent.
16320 Remove use_default_face.
16321 (calc_line_height_property): New function to calculate value of
16322 line-height and line-spacing properties. Look at overlays, too.
16323 Set override_ascent, override_descent, override_boff members when
16324 using another face than the current face. Float values are now
16325 relative to the frame default font, by default; accept a cons
16326 of ratio and face name to specify value relative to a specific face.
16327 (x_produce_glyphs): Use calc_line_height_property.
16328 Use override_ascent etc. when set to handle different face heights.
16329 A negative line-spacing property value is interpreted as a total
16330 line height, rather than inter-line spacing.
16331 (note_mouse_highlight): Allocate room for 40 overlays initially.
16333 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
16335 * data.c (Fsubr_name): New fun.
16336 (syms_of_data): Defsubr it.
16338 2004-04-29 Kim F. Storm <storm@cua.dk>
16340 * xdisp.c (null_glyph_slice): New var.
16341 (append_glyph, append_composite_glyph, append_stretch_glyph):
16342 Use it to initialize glyph slice.
16344 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
16346 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
16347 (on_hot_spot_p): Make sure we always return a value.
16348 (Flookup_image_map): Remove unused var ix and iy.
16349 (note_mode_line_or_margin_highlight): Remove unused var `image'.
16351 2004-04-27 Eli Zaretskii <eliz@gnu.org>
16353 * msdos.c (init_environment): If one of the TMP... environment
16354 variables is set to a drive letter without a trailing slash,
16357 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
16359 * editfns.c (lisp_time_argument): Provide externally.
16361 * fileio.c (Fset_file_times): New function.
16362 (syms_of_fileio): Intern and staticpro it.
16364 2004-04-27 Kim F. Storm <storm@cua.dk>
16366 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
16367 header line strings.
16369 * dispextern.h (struct it): New member use_default_face.
16371 * xdisp.c (Qline_height): New variable.
16372 (syms_of_xdisp): Intern and staticpro it.
16373 (append_space_for_newline): Partially undo 2004-04-25 change;
16374 add default_face_p arg, and restore callers.
16375 Clear it->use_default_face after use.
16376 (x_produce_glyphs): Set default font for ascii char if
16377 it->use_default_font is set. Change line-spacing property to set
16378 just extra line spacing. Handle new line-height property.
16380 2004-04-26 Andreas Schwab <schwab@suse.de>
16382 * print.c (print_object): Print non-ascii characters in bool
16383 vector representation as octal escapes.
16385 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
16386 * print.c (print_object): Use it instead of BITS_PER_CHAR for
16388 * lread.c (read1): Likewise.
16389 * alloc.c (Fmake_bool_vector): Likewise.
16390 * data.c (Faref, Faset): Likewise.
16391 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
16392 (mapcar1): Likewise.
16394 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
16396 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
16398 2004-04-26 Miles Bader <miles@gnu.org>
16400 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
16402 2004-04-26 Juanma Barranquero <lektu@terra.es>
16404 * buffer.c (Fpop_to_buffer): Fix docstring.
16406 2004-04-26 Steven Tamm <steventamm@mac.com>
16408 * lread.c (init_lread): Don't display missing lisp directory
16409 warnings with Carbon Emacs because self-contained bundled Emacs
16410 may be built without correct installation path.
16412 2004-04-25 Kim F. Storm <storm@cua.dk>
16414 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
16416 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
16418 * xdisp.c (append_space_for_newline): Rename from append_space.
16419 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
16420 (x_produce_glyphs): Handle line-spacing property on newline char.
16421 If value is t, adjust ascent and descent to fit current row height.
16422 If value is an integer or float, set extra_line_spacing to integer
16423 value, or to float value x current line height.
16425 2004-04-23 Kenichi Handa <handa@m17n.org>
16427 * fontset.c (Finternal_char_font): If POSITION is nil, return
16428 font for displaying CH with the default face.
16430 2004-04-23 Juanma Barranquero <lektu@terra.es>
16432 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
16434 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16436 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
16437 Don't make assumptions about the relative place of i and val.
16438 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
16440 2004-04-21 Kim F. Storm <storm@cua.dk>
16442 * dispextern.h (struct glyph_slice): New struct.
16443 (struct glyph): New member slice.
16444 (GLYPH_SLICE_EQUAL_P): New macro.
16445 (GLYPH_EQUAL_P): Use it.
16446 (struct glyph_string): New member slice.
16447 (struct it_slice): New struct.
16448 (struct it): New member slice, add member to stack too.
16449 New member constrain_row_ascent_descent_p.
16450 (image_ascent): Add prototype.
16452 * dispnew.c (buffer_posn_from_coords): Return full image width
16453 and height even for image slices (posn is relative to full image).
16454 (marginal_area_string): Adjust x0,y0 for image slice.
16456 * image.c (image_ascent): Add slice arg; calculate ascent for
16457 image slice (or full image).
16459 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
16460 (syms_of_keyboard): Defsubr them.
16462 * lisp.h (pos_visible_p): Fix prototype.
16464 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
16465 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
16466 (x_draw_image_foreground, x_draw_image_relief)
16467 (x_draw_image_foreground_1, x_draw_image_glyph_string):
16468 Draw sliced images.
16470 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
16471 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
16472 (x_draw_image_foreground, x_draw_image_relief)
16473 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
16474 Draw sliced images.
16476 * w32term.h (image_ascent): Remove prototype.
16478 * window.c (Fpos_visible_in_window_p): Return pixel position if
16479 PARTIALLY arg is non-nil. Simplify. Doc fix.
16480 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
16481 to return/set vscroll in pixels.
16483 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
16485 * xdisp.c (Qslice): New variable.
16486 (syms_of_xdisp): Intern and staticpro it.
16487 (pos_visible_p): Return pixel position in new x and y args.
16488 (init_iterator): Reset it->slice info.
16489 (handle_display_prop): Parse (slice ...) property.
16490 (push_it, pop_it): Save/restore slice info.
16491 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
16492 force repositioning of tall row if window is vscrolled, as that
16493 would reset vscroll.
16494 (append_space): Set it->constrain_row_ascent_descent_p to avoid
16495 increasing row height if row is non-empty.
16496 (fill_image_glyph_string): Copy slice info.
16497 (take_vertical_position_into_account): Simplify.
16498 (produce_image_glyph): Handle iterator slice info, setup glyph
16499 slice info. Do not force minimum line height.
16500 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
16501 do not increase height (ascent/descent) of non-empty row when
16502 adding normal character glyph; instead reduce glyph ascent/descent
16503 appropriately; if row is higher than current glyph, adjust glyph
16504 descent/ascent to reposition glyph within the existing row.
16505 Likewise, when char is newline, only set ascent/descent if row is
16507 (note_mouse_highlight): Handle hotspots with sliced image.
16509 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
16510 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
16511 (x_draw_image_foreground, x_draw_image_relief)
16512 (x_draw_image_foreground_1, x_draw_image_glyph_string):
16513 Draw sliced images.
16515 * xterm.h (image_ascent): Remove prototype.
16517 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
16519 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
16521 2004-04-20 John Paul Wallington <jpw@gnu.org>
16523 * fns.c (Fassoc, Feql): Fix indentation.
16525 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
16527 2004-04-19 John Paul Wallington <jpw@gnu.org>
16529 * fns.c (Feql): New function.
16530 (syms_of_fns): Defsubr it.
16532 2004-04-18 Jason Rumney <jasonr@gnu.org>
16534 * w32select.c (Fw32_set_clipboard_data): Get sequence number
16535 after closing the clipboard.
16537 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
16539 * buffer.c (Fbuffer_base_buffer): Doc fix.
16541 2004-04-17 Kim F. Storm <storm@cua.dk>
16543 * keymap.c (Fkey_description): Add optional PREFIX arg.
16544 Combine prefix with KEYS to make up the full key sequence to describe.
16545 Correlate meta_prefix_char and following (simple) key to describe
16546 as meta modifier. All callers changed.
16547 (describe_map): Rename arg `keys' to `prefix'. Remove local
16548 `elt_prefix' var. Use Fkey_description with prefix instead of
16549 elt_prefix combined with Fsingle_key_description.
16550 (describe_vector): Declare static. Replace arg `elt_prefix' with
16551 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
16552 if !KEYMAP_P. Use Fkey_description with prefix instead of
16553 Fsingle_key_description.
16555 * keymap.h (Fkey_description): Fix prototype.
16556 (describe_vector): Remove prototype.
16558 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
16560 * image.c (PNG_BG_COLOR_SHIFT): Remove.
16561 (png_load): Fix calculation of transparent background color on X
16564 2004-04-16 Juanma Barranquero <lektu@terra.es>
16566 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
16567 not too large before computing how much to scroll.
16569 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
16571 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
16573 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
16575 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
16576 Add hyperlink to Elisp manual to the docstring.
16578 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
16580 * callint.c (fix_command): Use XDCR.
16582 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
16584 * window.c (Fget_lru_window): Doc fix.
16586 2004-04-14 Kim F. Storm <storm@cua.dk>
16588 * editfns.c (Fformat): Fix allocation size of precision array.
16590 * dispnew.c (update_window): Only set changed_p if
16591 scrolling_window actually did scroll.
16592 (scrolling_window): Only return 1 if we actually did scroll.
16594 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
16595 height to glyph height when cursor row is not fully visible.
16596 (make_cursor_line_fully_visible): Add FORCE_P arg to return
16597 failure in case row is higher than window. Callers changed.
16598 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
16599 Try to scroll partially visible, higher-than-window cursor row.
16600 (redisplay_window): Always try to scroll partially visible,
16601 higher-than-window cursor row - both initially and again with
16602 centering_position = 0.
16603 Clear desired matrix before retrying with centering_position = 0.
16605 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
16607 * syntax.c (scan_lists): Simplify backward string scan.
16608 Fix off-by-one boundary check for string and comment fences.
16610 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
16612 * sheap.c, unexcw.c: New files.
16614 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
16616 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
16617 base buffer has been killed. Correct the error message if the
16618 base buffer does not exist.
16620 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
16622 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
16623 Cygwin itself. Add support for Xaw3d scrollbars.
16625 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
16627 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
16629 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
16630 before Cygwin unexec.
16632 * Makefile.in: Link changes for Cygwin unexec() support.
16634 2004-04-12 Andreas Schwab <schwab@suse.de>
16636 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
16638 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
16640 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
16641 IGNORE argument equals NAME. Doc fix.
16643 2004-04-11 Masatake YAMATO <jet@gyve.org>
16645 * buffer.c (fix_start_end_in_overlays): Make overlays
16646 empty if they are backwards.
16648 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16650 * xfaces.c (face_color_supported_p): Fix compilation without X11.
16652 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
16654 * doc.c (Fsnarf_documentation): Ignore new file name entries.
16656 2004-04-06 Kim F. Storm <storm@cua.dk>
16658 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
16659 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
16661 * w32term.c (w32_read_socket): Set mouse_face_hidden after
16662 clearing highlight.
16664 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
16666 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
16667 clearing highlight.
16669 * indent.c (vmotion): Do not reserve one column for continuation
16670 marks on window frames.
16672 2004-04-04 Eli Zaretskii <eliz@gnu.org>
16674 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
16677 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16679 * .gdbinit-union: Remove.
16681 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
16682 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
16683 ($nonvalbits): Remove.
16684 ($valmask): Set it by calling xreload to avoid redundancy.
16686 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
16687 (gdb_emacs_intbits): Remove.
16689 2004-03-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16691 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
16693 2004-03-30 Kenichi Handa <handa@m17n.org>
16695 * editfns.c (Fformat): Fix initialization of the array info.
16697 2004-03-30 Kim F. Storm <storm@cua.dk>
16699 * xterm.c (x_mouse_click_focus_ignore_position): New var.
16700 (syms_of_xterm): DEFVAR_BOOL it.
16701 (ignore_next_mouse_click_timeout): New var.
16702 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
16703 Use it to filter mouse clicks following focus event.
16705 2004-03-29 David Ponce <david@dponce.com>
16707 * callint.c (Fcall_interactively): Fix last change.
16709 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
16711 * eval.c (Fcommandp): Simplify.
16713 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
16714 Extend to handle all kinds of functions.
16716 * lisp.h (Finteractive_form): Declare.
16718 * callint.c (Fcall_interactively): Use it.
16720 2004-03-26 Kim F. Storm <storm@cua.dk>
16722 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
16723 to catch errors in calc_pixel_width_or_height during redisplay.
16725 2004-03-26 Masatake YAMATO <jet@gyve.org>
16727 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
16729 * lisp.h (fix_start_end_in_overlays): Likewise.
16731 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
16733 * editfns.c (Ftranspose_regions): Likewise.
16735 2004-03-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16737 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
16739 2004-03-19 Richard M. Stallman <rms@gnu.org>
16741 * s/sol2-6.h: Delete previous change.
16743 2004-03-19 Kim F. Storm <storm@cua.dk>
16745 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
16746 to_charpos corresponds to newline in right fringe. Use local
16747 BUFFER_POS_REACHED_P macro.
16749 2004-03-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16751 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
16752 to compile on non-window system.
16754 2004-03-19 Kim F. Storm <storm@cua.dk>
16756 * dispextern.h (calc_pixel_width_or_height): Add prototype.
16758 * image.c (Qcenter): Move to xdisp.c.
16760 * xdisp.c (Qcenter): Declare here.
16761 (syms_of_xdisp): Intern and staticpro it.
16762 (handle_single_display_prop): Allow space display property on all
16764 (display_mode_line): Set mode_line_p before displaying line.
16765 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
16766 handling. Remove complex cases for fringes and scroll-bars.
16767 Add left, right, and center alignment positions. Add text (area)
16768 width/height. Return width or height for image specs.
16769 (produce_stretch_glyph): Improve handling of :align-to. Is now
16770 relative to left of text area by default, but other base offsets
16771 can be specified -- also for text lines.
16773 * term.c (produce_glyphs): Handle IT_STRETCH.
16774 (produce_stretch_glyph): New function to handle space width and
16775 align-to display properties on non-window systems.
16777 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16779 * fileio.c (Fread_file_name): Set completion-ignore-case for
16780 case-insensitive systems.
16782 2004-03-14 Masatake YAMATO <jet@gyve.org>
16784 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
16785 when keymap and cursor are setup.
16787 2004-03-14 Steven Tamm <steventamm@mac.com>
16789 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
16791 2004-03-14 Kim F. Storm <storm@cua.dk>
16793 * dispextern.h (x_find_image_file): Add prototype.
16795 * image.c (x_find_image_file): Make extern.
16797 * xfns.c (x_find_image_file): Remove prototype.
16799 2004-03-13 Eli Zaretskii <eliz@gnu.org>
16801 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
16803 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
16805 2004-03-12 Richard M. Stallman <rms@gnu.org>
16807 * fns.c (internal_equal): New arg PROPS controls comparing
16808 text properties. All callers changed.
16809 (Fequal_including_properties): New function.
16810 (syms_of_fns): defsubr it.
16812 2004-03-12 Kim F. Storm <storm@cua.dk>
16814 Fix image support on MAC. From YAMAMOTO Mitsuharu.
16816 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
16817 (image_background, image_background_transparent): Fix prototypes.
16819 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
16821 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
16822 (x_query_font, x_find_ccl_program, x_set_window_size)
16823 (x_make_frame_visible, mac_initialize, XCreatePixmap)
16824 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
16825 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
16827 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
16828 (x_query_font, x_find_ccl_program, x_set_window_size)
16829 (x_make_frame_visible, mac_initialize, XCreatePixmap)
16830 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
16831 (mac_draw_line_to_pixmap): Add prototypes.
16833 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16835 * macterm.c (XTread_socket): Fix mouse click on tool bar.
16837 2004-03-11 Kim F. Storm <storm@cua.dk>
16839 * dispextern.h: Move image related prototypes from xfns.c section
16840 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
16843 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
16844 Move gtkutil.o to new GTK_OBJ list.
16845 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
16846 (GTK_OBJ) [USE_GTK]: New declaration.
16847 (obj): Add $(GTK_OBJ) to list.
16849 2004-03-11 Steven Tamm <steventamm@mac.com>
16851 * image.c [MAC_OSX]: Include sys/stat.h.
16853 * macfns.c (syms_of_macfns): Remove definitions of things now
16854 defined in image.c.
16856 2004-03-11 Kim F. Storm <storm@cua.dk>
16858 The following changes consolidates the identical/similar image
16859 support code previously found in xfns.c, w32fns.c, and macfns.c
16860 into a new file image.c.
16862 * makefile.w32-in (OBJ1): Add image.o.
16863 ($(BLD)/image.$(O)): Add dependencies.
16865 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
16866 (image.o): Add dependencies.
16868 * image.c: New file with consolidated image support code.
16869 (COLOR_TABLE_SUPPORT): New define to control whether
16870 color table support is available (X only).
16871 (Bitmap_Record): Common name for x_bitmap_record,
16872 w32_bitmap_record, and mac_bitmap_record.
16873 (XImagePtr): Common name for pointer to XImage or equivalent.
16874 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
16875 to XImagePtr on X+MAC, and to HDC on W32.
16876 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
16877 (NO_PIXMAP): Common name for "None" or equivalent.
16878 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
16879 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
16880 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
16881 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
16882 Define with suitable equivalents on W32 and MAC for code sharing.
16883 (XDrawLine): Define on MAC for code sharing.
16884 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
16885 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
16886 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16887 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16888 (x_reference_bitmap, x_create_bitmap_from_data)
16889 (x_create_bitmap_from_file, x_destroy_bitmap)
16890 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16891 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16892 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16893 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16894 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16895 (define_image_type, lookup_image_type, valid_image_p)
16896 (image_error, enum image_value_type, struct image_keyword)
16897 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16898 (make_image, free_image, prepare_image_for_display, image_ascent)
16899 (four_corners_best, image_background, image_background_transparent)
16900 (x_clear_image_1, x_clear_image, x_alloc_image_color)
16901 (make_image_cache, free_image_cache, clear_image_cache)
16902 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16903 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16904 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16905 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
16906 (init_image_func_pointer, image_load_quartz2d)
16907 (struct ct_color, init_color_table, free_color_table)
16908 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16909 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16910 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16911 (x_disable_image, x_build_heuristic_mask)
16912 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16913 (TIFF support, GIF support, Ghostscript support): Consolidate image
16914 code from xfns.c, w32fns.c, and macfns.c.
16915 (syms_of_image): Consolidate image related symbol setup here.
16916 (init_image): Consolidate image related initializations here.
16918 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
16919 and init_image. Remove call to init_xfns.
16921 * macterm.h (struct mac_bitmap_record): Add file member.
16922 Not currently used, but simplifies code sharing.
16924 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16925 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16926 (x_reference_bitmap, x_create_bitmap_from_data)
16927 (x_create_bitmap_from_file, x_destroy_bitmap)
16928 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16929 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16930 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16931 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16932 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16933 (define_image_type, lookup_image_type, valid_image_p)
16934 (image_error, enum image_value_type, struct image_keyword)
16935 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16936 (make_image, free_image, prepare_image_for_display, image_ascent)
16937 (four_corners_best, image_background, image_background_transparent)
16938 (x_clear_image_1, x_clear_image, x_alloc_image_color)
16939 (make_image_cache, free_image_cache, clear_image_cache)
16940 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16941 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16942 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16943 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
16944 (init_image_func_pointer, image_load_quartz2d)
16945 (struct ct_color, init_color_table, free_color_table)
16946 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16947 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16948 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16949 (x_disable_image, x_build_heuristic_mask)
16950 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16951 (TIFF support, GIF support, Ghostscript support): Merge with image
16952 code from xfns.c and macfns.c into image.c.
16953 (syms_of_xfns): Move image related symbols to image.c.
16954 (init_external_image_libraries, init_xfns): Remove; initialization
16955 moved to init_image in image.c.
16957 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16958 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16959 (x_reference_bitmap, x_create_bitmap_from_data)
16960 (x_create_bitmap_from_file, x_destroy_bitmap)
16961 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16962 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16963 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16964 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16965 (define_image_type, lookup_image_type, valid_image_p)
16966 (image_error, enum image_value_type, struct image_keyword)
16967 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16968 (make_image, free_image, prepare_image_for_display, image_ascent)
16969 (four_corners_best, image_background, image_background_transparent)
16970 (x_clear_image_1, x_clear_image, x_alloc_image_color)
16971 (make_image_cache, free_image_cache, clear_image_cache)
16972 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16973 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16974 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16975 (struct ct_color, init_color_table, free_color_table)
16976 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16977 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16978 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16979 (x_disable_image, x_build_heuristic_mask)
16980 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16981 (TIFF support, GIF support, Ghostscript support): Merge with image
16982 code from xfns.c and macfns.c into image.c.
16983 (syms_of_xfns): Move image related symbols to image.c.
16984 (init_external_image_libraries, init_xfns): Remove; initialization
16985 moved to init_image in image.c.
16987 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16988 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16989 (x_reference_bitmap, x_create_bitmap_from_data)
16990 (x_create_bitmap_from_file, x_destroy_bitmap)
16991 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16992 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16993 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16994 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16995 (define_image_type, lookup_image_type, valid_image_p)
16996 (image_error, enum image_value_type, struct image_keyword)
16997 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16998 (make_image, free_image, prepare_image_for_display, image_ascent)
16999 (four_corners_best, image_background, image_background_transparent)
17000 (x_clear_image_1, x_clear_image, x_alloc_image_color)
17001 (make_image_cache, free_image_cache, clear_image_cache)
17002 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
17003 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
17004 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
17005 (struct ct_color, init_color_table, free_color_table)
17006 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
17007 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
17008 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
17009 (x_disable_image, x_build_heuristic_mask)
17010 (XBM support, XPM support, PBM support, PNG support, JPEG support)
17011 (TIFF support, GIF support, Ghostscript support): Merge with
17012 w32fns.c and macfns.c image code into image.c.
17013 (syms_of_xfns): Move image related symbols to image.c.
17014 (init_xfns): Remove; initialization moved to init_image in image.c.
17016 * lisp.h (syms_of_image, init_image): Add protoypes.
17017 (init_xfns): Remove prototype.
17019 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
17020 (x_reference_bitmap, x_create_bitmap_from_data)
17021 (x_create_bitmap_from_file, x_destroy_bitmap)
17022 (x_create_bitmap_mask): Move prototypes from dispextern.h.
17023 (gamma_correct) [MAC_OS]: Add prototype.
17025 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
17026 (x_reference_bitmap, x_create_bitmap_from_data)
17027 (x_create_bitmap_from_file, x_destroy_bitmap)
17028 (x_create_bitmap_mask): Move prototypes to dispextern.h.
17030 2004-03-09 Kenichi Handa <handa@etlken2>
17032 * coding.c (decode_coding_emacs_mule): Handle insufficent source
17035 2004-03-04 Richard M. Stallman <rms@gnu.org>
17037 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
17039 * window.c (Fdisplay_buffer): Doc fix.
17041 * buffer.c (Fpop_to_buffer): Doc fix.
17043 2004-03-03 Kim F. Storm <storm@cua.dk>
17045 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
17047 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
17049 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
17051 2004-03-02 Richard M. Stallman <rms@gnu.org>
17053 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
17055 2004-03-02 Kenichi Handa <handa@m17n.org>
17057 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
17059 2004-03-02 Kim F. Storm <storm@cua.dk>
17061 * window.h (struct window): New member overlay_arrow_bitmap.
17063 * window.c (make_window): Initialize overlay_arrow_bitmap.
17065 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
17066 implement and integrate multiple overlay arrows with redisplay.
17067 (syms_of_xdisp): DEFVAR_LISP and initialize it.
17068 (last_arrow_position, last_arrow_string): Replace by properties.
17069 (Qlast_arrow_position, Qlast_arrow_string)
17070 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
17071 (syms_of_xdisp): Intern and staticpro them.
17072 (overlay_arrow_string_or_property, update_overlay_arrows)
17073 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
17074 (overlay_arrow_at_row): New functions for multiple overlay arrows.
17075 (redisplay_internal): Use them instead of directly accessing
17076 Voverlay_arrow_position etc. for multiple overlay arrows.
17077 (mark_window_display_accurate): Use update_overlay_arrows.
17078 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
17079 (try_window_id): Use overlay_arrows_changed_p.
17080 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
17081 (display_line): Use overlay_arrow_at_row to check multiple
17082 overlay arrows, and get relevant overlay-arrow-string and
17083 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
17084 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
17085 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
17087 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
17088 (update_window_fringes): Remove unused code.
17090 2004-03-01 Jason Rumney <jasonr@gnu.org>
17092 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
17094 2004-03-01 Juanma Barranquero <lektu@terra.es>
17096 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
17098 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
17100 2004-03-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17102 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
17103 how many colors can be displayed.
17105 2004-03-01 Kenichi Handa <handa@m17n.org>
17107 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
17110 2004-02-28 Kim F. Storm <storm@cua.dk>
17112 * dispnew.c (update_window): Update header line also if there are
17113 no other changes in window (move code after set_cursor label).
17115 * lisp.h (mark_window_display_accurate): Remove prototype.
17117 * window.c (window_loop, Fforce_window_update): Force mode line
17118 updates by setting prevent_redisplay_optimizations_p and
17121 2004-02-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17123 * xfns.c (x_window): Fix indentation.
17125 * xterm.c (x_calc_absolute_position): Call x_real_positions
17126 to get WM window sizes and use those to calculate position.
17127 (x_set_offset): Remove code commented out.
17129 2004-02-28 Miles Bader <miles@gnu.org>
17131 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
17133 2004-02-28 Kim F. Storm <storm@cua.dk>
17135 * keyboard.c (kbd_buffer_store_event_hold): New function to store
17136 an event into kbd fifo, but with special handling of quit event;
17137 a quit event is saved for later, and further events are discarded
17138 until the saved quit event has been processed.
17139 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
17140 (gen_help_event): Store help event in kbd fifo.
17141 (NREAD_INPUT_EVENTS): Remove.
17142 (read_avail_input): Adapt to new read_socket_hook interface.
17143 Remove allocation and initialization of local input_event buffer,
17144 as read_socket_hook stores events directly in fifo. Allocate and
17145 initialize local hold_quit event to handle postponed quit event
17146 (and store it if set by kbd_buffer_store_event_hold).
17148 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
17149 (gen_help_event): Fix prototype.
17151 * macterm.c (XTread_socket): Remove bufp_r and
17152 numcharsp args. Add hold_quit arg.
17153 Rework to use just one, local, inev input_event. Store inev
17154 directly in fifo using kbd_buffer_store_event_hold.
17156 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
17157 (read_input_waiting): Adapt to new read_socket_hook interface.
17158 Remove allocation and initialization of local input_event buffer,
17159 as read_socket_hook stores events directly in fifo. Allocate and
17160 initialize local hold_quit event to handle postponed quit event
17161 (and store it if set by kbd_buffer_store_event_hold).
17163 * term.c (read_socket_hook): Fix arg list.
17165 * termhooks.h (read_socket_hook): Fix prototype.
17167 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
17168 numcharsp args. Add hold_quit arg.
17169 Rework to use just one, local, inev input_event. Store inev
17170 directly in fifo using kbd_buffer_store_event_hold.
17172 * w32inevt.h (w32_console_mouse_position): Fix prototype.
17174 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
17175 Add hold_quit arg. Rework to use just one, local, inev
17176 input_event. Store inev directly in fifo using
17177 kbd_buffer_store_event_hold. Update count in one place.
17178 Postpone call to gen_help_event until inev is stored; use new
17179 local do_help for this.
17180 Remove local emacs_event in handing of ButtonPress event; just use
17181 inev instead (so no reason to copy it later).
17183 * xsmfns.c (x_session_check_input): Remove numchars arg.
17185 * xterm.c (x_focus_changed, x_detect_focus_change):
17186 Remove numchars arg. Always store event into bufp arg.
17187 Return nothing. Callers changed accordingly.
17188 (glyph_rect): Simplify.
17189 (STORE_KEYSYM_FOR_DEBUG): New macro.
17190 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
17191 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
17192 (current_hold_quit) [USE_GTK]: Add.
17193 (event_handler_gdk): Adapt to new handle_one_xevent.
17194 (handle_one_xevent): Remove bufp_r and numcharsp args.
17195 Add hold_quit arg. Rework to use just one, local, inev
17196 input_event. Store inev directly in fifo using
17197 kbd_buffer_store_event_hold. Update count in one place.
17198 Postpone call to gen_help_event until inev is stored; use new
17199 local do_help for this.
17200 Simplify handling of keysyms (consolidate common code). Fix bug
17201 where count was updated with nchars instead of nbytes.
17202 Remove local emacs_event in handing of ButtonPress event; just use
17203 inev instead (so no reason to copy it later).
17204 Remove `out' label. Rename label `ret' to `done'; add various
17205 `goto done' to clarify code flow in deeply nested blocks.
17206 (x_dispatch_event): Simplify as handle_one_xevent now calls
17207 kbd_buffer_store_event itself.
17208 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
17209 arg. Call handle_one_xevent with new arglist. Store event from
17210 x_session_check_input in fifo.
17211 [USE_GTK]: Setup current_hold_quit.
17212 Decrement handling_signal before unblocking input.
17213 (x_initialize) [USE_GTK]: Initialize current_count.
17215 * xterm.h (x_session_check_input): Fix prototype.
17217 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17219 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
17221 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
17224 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
17226 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
17227 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
17228 (init_process) [MAC_OSX]: Avoid conflicts with Carbon/Carbon.h.
17229 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
17230 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
17231 (Bitmap): Remove typedef.
17232 (Pixmap): Change int to GWorldPtr.
17234 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
17236 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
17237 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
17238 New #define to extract 16-bit depth color components from unsigned
17239 long representation.
17240 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
17241 colors used for masks.
17242 (struct mac_display_info): Add color_p. Remove n_cbits.
17244 * macfns.c: Include sys/types.h and sys/stat.h.
17245 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
17246 Include QuickTime/QuickTime.h.
17247 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17248 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
17249 functions defined in macterm.c.
17250 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
17251 (ZPixmap): New #define for compatibility with xfns.c.
17252 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17253 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17254 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
17256 (four_corners_best, x_create_x_image_and_pixmap)
17257 (x_destroy_x_image, unwind_create_frame, x_disable_image)
17258 (x_edge_detection, init_color_table, colors_in_color_table)
17259 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
17260 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
17261 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
17262 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
17263 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
17265 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
17266 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
17267 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
17268 (x_set_cursor_type, Fxw_color_values, valid_image_p)
17269 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
17270 (x_alloc_image_color, clear_image_cache, lookup_image)
17271 (x_find_image_file, xbm_read_bitmap_file_data)
17272 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
17273 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
17274 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
17275 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
17276 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
17277 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
17278 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
17280 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
17281 #if 0. Free white_relief.gc and black_relief.gc.
17282 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
17283 New functions (from xfns.c).
17284 (Fx_create_frame): Record unwind_create_frame.
17285 (Fxw_display_color_p): Use dpyinfo->color_p.
17286 (Fx_display_grayscale_p, Fx_display_planes): Don't use
17288 (Fx_display_color_cells): Use dpyinfo->n_planes;
17289 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
17290 (Qheuristic, cross_disabled_images, emboss_matrix)
17291 (laplace_matrix): New variables (from xfns.c).
17292 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
17293 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
17294 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
17295 (image_background_transparent): New function (from xfns.c).
17296 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17297 (image_load_quicktime): Add declaration.
17298 [MAC_OSX] (image_load_quartz2d): Likewise.
17299 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
17300 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
17301 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
17302 (xbm_load_image_from_file, x_laplace_read_row)
17303 (x_laplace_write_row, pbm_read_file): Remove functions.
17304 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
17305 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
17306 (colors_in_color_table): Sync with xfns.c (although not used).
17307 (lookup_rgb_color): Don't lookup color table. Just do gamma
17309 (COLOR_INTENSITY): New #define (from xfns.c).
17310 (x_disable_image): New function (from xfns.c).
17311 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17312 (x_build_heuristic_mask): Sync with xfns.c.
17313 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17314 (HAVE_PBM): Remove #ifdef.
17315 (pbm_load): Sync with xfns.c. Set img->width and img->height
17316 before IMAGE_BACKGROUND.
17317 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
17318 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
17319 Don't enclose with #if HAVE_PNG.
17320 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
17321 symbol _CGImageCreateWithPNGDataProvider is defined.
17322 Otherwise use image_load_quicktime.
17323 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
17324 [HAVE_PNG] (png_load): Sync with xfns.c.
17325 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17326 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
17328 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
17329 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
17330 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
17331 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
17332 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
17333 (tiff_image_p, tiff_load): Don't enclose declarations with #if
17335 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
17336 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
17337 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
17338 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
17339 New functions (from xfns.c).
17340 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
17341 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
17342 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
17343 Don't enclose with #if HAVE_GIF.
17344 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
17345 animated gif. Otherwise use image_load_quicktime.
17346 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
17347 gif_DrawText to avoid conflict with QuickdrawText.h.
17348 [HAVE_GIF] (gif_load): Sync with xfns.c.
17349 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
17350 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
17351 Ghostscript is not supported yet).
17352 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
17353 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
17354 cross_disabled_images (from xfns.c). Remove #if 0 for supported
17355 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
17356 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
17357 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
17358 HAVE_PNG. Call EnterMovies to support animated gifs.
17359 Call init_image_func_pointer to bind a symbol
17360 _CGImageCreateWithPNGDataProvider if it is defined.
17362 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
17363 (x_draw_bar_cursor): Sync declaration with xterm.c.
17364 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
17365 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
17367 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
17368 (mac_draw_line_to_pixmap, XCreatePixmap)
17369 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
17370 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
17372 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
17373 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
17374 Cast bits to char *.
17375 (reflect_byte): New function (from w32fns.c).
17376 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
17377 due to byte alignment.
17378 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
17379 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
17380 (XSetForeground): Remove static (now used in macfns.c).
17381 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
17382 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
17383 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
17384 (x_draw_glyph_string_box, x_draw_image_foreground)
17385 (x_draw_image_foreground_1, x_draw_image_glyph_string)
17386 (x_draw_stretch_glyph_string, x_draw_glyph_string)
17387 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
17389 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
17390 than the xterm.c version when a strictly horizontal or vertical
17392 (XTset_terminal_window): Add static.
17393 (x_make_frame_visible): Add UNBLOCK_INPUT.
17394 (x_free_frame_resources): New funcion (from xterm.c).
17395 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
17396 occurs in tool bar area.
17397 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
17398 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
17399 Initialize image cache.
17400 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
17401 Enclose unused functions with #if 0.
17402 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
17403 (decode_mac_font_name): New function to apply code conversions
17404 from a mac font name to an XLFD font name according to its script code.
17405 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
17406 font name to a mac font name according to REGISTRY and ENCODING fields.
17407 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
17408 whose name starts with `.'.
17409 (init_font_name_table): Use decode_mac_font_name. Add both
17410 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
17411 of a font is smJapanese.
17412 (mac_do_list_fonts): New function to list fonts that match a given
17414 (x_list_fonts, XLoadQueryFont): Use it.
17415 (XLoadQueryFont): Set rbearing field for each variable width
17416 character to avoid needless redraw.
17417 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
17419 2004-02-26 Kim F. Storm <storm@cua.dk>
17421 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
17422 as read_socket_hook handler on X aborts if buffer is too small
17423 and W32 handler doesn't always check buffer limit.
17425 * xdisp.c (handle_single_display_prop): Handle left-fringe and
17426 right-fringe similar to a display margin image. Specifically,
17427 the characters having the fringe prop are no longer shown, and
17428 we use IT_IMAGE/next_element_from_image with image_id = -1 to
17429 do this. Set fringe bitmap face_id in it->face_id.
17430 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
17431 still realize it->face (i.e. the fringe bitmap face).
17433 2004-02-25 Miles Bader <miles@gnu.org>
17435 * xdisp.c (check_it): Check string/string_pos consistency.
17436 (init_iterator): Initialize string-related fields properly.
17438 2004-02-11 Miles Bader <miles@gnu.org>
17440 * xdisp.c (produce_image_glyph): Force negative descents to zero.
17442 2004-02-10 Miles Bader <miles@gnu.org>
17444 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
17445 BLOCK_INPUT can be nested, so it doesn't make much sense.
17447 2004-02-24 Michael Mauger <mmaug@yahoo.com>
17449 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
17450 (xbm_read_bitmap_data): Use unsigned char for image data.
17452 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
17454 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
17456 2004-02-22 Jason Rumney <jasonr@gnu.org>
17458 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
17459 correctly over other bitmaps.
17461 2004-02-21 Eli Zaretskii <eliz@gnu.org>
17463 * emacs.c (USAGE1): Split into two halves.
17464 (USAGE2): Second half of the old USAGE1.
17465 (USAGE3): Rename from USAGE2.
17466 (USAGE4): Rename from USAGE3.
17468 2004-02-21 Juri Linkov <juri@jurta.org>
17470 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
17471 Fix --multibyte. Move --help, --version to USAGE2. Add alias
17472 --file. Fix -f, -l. Sort options. Untabify.
17473 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
17475 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
17477 * category.c (Fdefine_category, Fcategory_docstring)
17478 (Fget_unused_category, Fset_category_table)
17479 (Fcategory_set_mnemonics): Doc fixes.
17481 2004-02-20 Kim F. Storm <storm@cua.dk>
17483 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
17484 The following changes are relative to the 2004-01-21 revision.
17485 (NREAD_INPUT_EVENTS): Define as max number of input events to read
17486 in one call to read_socket_hook. Value is 8.
17487 (read_avail_input): Separate and rework handling of read_socket_hook
17488 and non-read_socket_hook cases. Use smaller input_event buffer
17489 in read_socket_hook case, and repeat if full buffer is read.
17490 Use new local variable 'discard' to skip input after C-g.
17491 In non-read_socket_hook case, just use a single input_event, and
17492 call kbd_buffer_store_event on the fly for each character.
17494 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17496 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
17497 Remove unused `gu' alternative.
17499 2004-02-19 Andreas Schwab <schwab@suse.de>
17501 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
17504 2004-02-18 Kim F. Storm <storm@cua.dk>
17506 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
17509 2004-02-17 Kim F. Storm <storm@cua.dk>
17511 * xdisp.c (fast_find_position): Fix return value of new version;
17512 it was inverted compared to the 21.1 version.
17513 (get_window_cursor_type): Don't look at glyph if NULL.
17514 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
17516 * keyboard.c: Rework previous change; it didn't consider that the
17517 buf array was allocated on the stack.
17518 (prev_read): Remove variable.
17519 (read_avail_input_buf): New static event buffer array.
17520 (in_read_avail_input): New static variable to handle re-entrancy.
17521 (read_avail_input): Change buf to pinter to read_avail_input_buf.
17522 Use in_read_avail_input to handle re-entrance; when re-entered,
17523 fully initialize and use tmp_buf array instead of read_avail_input_buf.
17524 Do not initialize read_avail_input_buf in full here; instead assume it
17525 is always cleared on entry. To ensure that, we clear (just) the
17526 entries that were used before we return.
17527 (init_keyboard): Initialize read_avail_input_buf here.
17529 2004-02-16 Jesper Harder <harder@ifa.au.dk>
17531 * cmds.c (Fend_of_line): Doc fix.
17533 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
17535 * keyboard.c (prev_read): New static variable.
17536 (read_avail_input): Use it to zero out only those slots in buf[]
17537 that were used last time we were called.
17539 2004-02-16 Eli Zaretskii <eliz@gnu.org>
17541 * Makefile.in (obj): Move fringe.o from here...
17542 (XOBJ, MAC_OBJ): ...to here.
17544 2004-02-16 Stephen Eglen <stephen@gnu.org>
17546 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
17548 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
17550 * data.c (Fbyteorder):
17551 * fringe.c (Fdefine_fringe_bitmap):
17552 * xdisp.c (handle_single_display_prop):
17553 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
17555 2004-02-16 Jason Rumney <jasonr@gnu.org>
17557 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
17559 2004-02-15 Steven Tamm <steventamm@mac.com>
17561 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
17562 controlling emulation of a three button mouse with option and
17564 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
17565 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
17567 2004-02-15 Kim F. Storm <storm@cua.dk>
17569 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
17571 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
17572 Perform byte-swapping.
17574 2004-02-14 Kim F. Storm <storm@cua.dk>
17576 * dispextern.h (struct draw_fringe_bitmap_params): Change member
17577 bits from char to short to facilitate wider bitmaps.
17578 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
17581 * fringe.c (struct fringe_bitmap): Change member bits from char to
17582 short to facilitate 16 bits wide bitmaps. Modify all standard
17583 bitmaps accordingly.
17584 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
17585 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
17586 (draw_fringe_bitmap): Ditto.
17587 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
17588 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
17589 handle up to 16 bits wide bitmaps.
17590 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
17591 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
17593 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
17594 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
17595 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
17597 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
17598 so it is no longer necessary to expand them here.
17600 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
17602 2004-02-12 Kim F. Storm <storm@cua.dk>
17604 * window.c (Fwindow_fringes): Doc fix.
17606 2004-02-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17608 * xselect.c (x_get_foreign_selection): Add new optional parameter
17610 (Fx_get_selection_internal): Ditto, pass time_stamp to
17611 x_get_foreign_selection.
17613 * data.c (Fbyteorder): New function.
17615 2004-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17617 * atimer.c: Move include stdio.h to same place as in other files.
17619 * region-cache.c: Ditto.
17625 2004-02-09 Sam Steingold <sds@gnu.org>
17627 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
17629 2004-02-09 Kim F. Storm <storm@cua.dk>
17631 * fringe.c: New file. Move original fringe related declarations
17632 and code from dispextern.h and xdisp.c here.
17633 Rework code to support user defined fringe bitmaps, redefining
17634 standard bitmaps, ability to overlay user defined bitmap with
17635 overlay arrow bitmap, and add faces to bitmaps.
17636 (Voverflow_newline_into_fringe): Declare here.
17637 (enum fringe_bitmap_align): New enum.
17638 (..._bits): All bitmaps are now defined without bitswapping; that
17639 is now done in init_fringe_once (if necessary).
17640 (standard_bitmaps): New array with specifications for the
17641 standard fringe bitmaps.
17642 (fringe_faces): New array.
17643 (valid_fringe_bitmap_id_p): New function.
17644 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
17645 (draw_fringe_bitmap): New function which draws fringe bitmap,
17646 possibly overlaying bitmap with cursor in right fringe or the
17647 overlay arrow in the left fringe.
17648 (update_window_fringes): Do not handle overlay arrow here.
17649 Compare and copy fringe bitmap faces.
17650 (init_fringe_bitmap): New function.
17651 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
17652 define and destroy user defined fringe bitmaps.
17653 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
17654 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
17655 (syms_of_fringe): New function. Defsubr new DEFUNs.
17656 DEFVAR_LISP Voverflow_newline_into_fringe.
17657 (init_fringe_once, init_fringe): New functions.
17658 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
17660 * Makefile.in (obj): Add fringe.o.
17661 (fringe.o): New dependencies.
17663 * dispextern.h (FRINGE_ID_BITS): New definition for number of
17664 bits allocated to hold a fringe number. Increase number of bits
17665 from 4 to 8 to allow user defined fringe bitmaps.
17666 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
17667 left_user_fringe_face_id, right_user_fringe_bitmap,
17668 right_user_fringe_face_id.
17669 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
17670 Move to new file fringe.c.
17671 (MAX_FRINGE_BITMAPS): Define here.
17672 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
17673 and overlay_p. Change member which to int.
17674 (struct redisplay_interface): New members define_fringe_bitmap
17675 and destroy_fringe_bitmap.
17676 (valid_fringe_bitmap_id_p): Add prototype.
17677 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
17679 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
17681 (update_frame): Do flush_display if force_flush_display_p to
17682 ensure display (specifically fringes) are updated in a timely
17683 manner when resizing the frame by dragging the mouse.
17684 (update_window_line): Update row if overlay arrow changed.
17685 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
17686 or overlay arrow changed.
17688 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
17689 syms_of_fringe, and init_fringe.
17691 * frame.h (struct frame): New member force_flush_display_p.
17693 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
17696 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
17697 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
17698 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
17699 Use cursor color for displaying cursor in fringe.
17700 (x_redisplay_interface): Add null handlers for
17701 define_fringe_bitmap and destroy_fringe_bitmap functions.
17703 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
17704 xterm.c to handle overlayed fringe bitmaps and to use cursor color
17705 for displaying cursor in fringe.
17706 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
17707 specific functions to define and destroy fringe bitmaps in fringe_bmp.
17708 (w32_redisplay_interface): Add them to redisplay_interface.
17709 (w32_term_init): Call w32_init_fringe instead of explicitly
17710 defining fringe bitmaps in fringe_bmp array.
17711 (x_delete_display): Call w32_reset_fringes instead of explicitly
17712 destroying fringe bitmaps in fringe_bmp array.
17714 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
17715 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
17716 (continued_bits, continuation_bits, ov_bits, first_line_bits)
17717 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
17718 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
17719 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
17720 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
17721 Move fringe handling vars and code to new file fringe.c.
17722 (handle_display_prop): Handle left-fringe and right-fringe
17723 display properties; store user fringe bitmaps in iterator.
17724 (move_it_in_display_line_to): Handle cursor in fringe at eob.
17725 (clear_garbaged_frames): Set force_flush_display_p if resized.
17726 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
17727 (display_line): Handle cursor in fringe at eob.
17728 (display_line): Set row user fringe bitmaps from iterator.
17730 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
17731 Use cursor color for displaying cursor in fringe.
17732 (x_redisplay_interface): Add null handlers for
17733 define_fringe_bitmap and destroy_fringe_bitmap functions.
17735 2004-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17737 * macfns.c (Fx_change_window_property): Make doc string and
17738 parameters same as for X version.
17740 * w32fns.c (Fx_change_window_property): Ditto.
17742 2004-02-07 Kim F. Storm <storm@cua.dk>
17744 * xdisp.c (hscroll_window_tree): Position cursor near to right
17745 margin in hscrolled window when jumping to end of line (rather
17746 than centering cursor).
17748 * process.c (wait_reading_process_input): Don't do adaptive read
17749 buffering if waiting for a specific process.
17751 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
17753 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
17754 (Fread_minibuffer, Feval_minibuffer)
17755 (Fread_string, Fread_no_blanks_input)
17756 (Fcompleting_read): Doc fixes.
17757 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
17758 completion-regexp-list. Define Qcase_fold_search and staticpro it.
17759 (read_minibuf): Fix initial comment.
17760 (Ftry_completion, Fall_completions, Ftest_completion): Bind
17761 case-fold-search to the value of completion-ignore-case when
17762 checking completion-regexp-list.
17763 (Fdisplay_completion_list): Make it handle arguments that are
17766 2004-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17768 * xterm.h: Add declaration of free_frame_menubar.
17770 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
17771 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
17772 (Fx_change_window_property): Add declaration of parameters type and
17773 format. Remove unused variable cons.
17775 * xselect.c: Include stdio.h.
17777 2004-02-05 Kenichi Handa <handa@m17n.org>
17779 * fns.c (Fset_char_table_range): Fix previous change.
17781 * buffer.c (Fset_buffer_multibyte): Fix docstring.
17783 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
17785 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
17787 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
17789 * keymap.c (Vmouse_events): Rename from Vmenu_events.
17790 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
17792 2004-02-04 Kenichi Handa <handa@m17n.org>
17794 * fns.c (Fset_char_table_range): Handle charsets ascii,
17795 eight-bit-control, and eight-bit-graphic correctly.
17797 2004-02-03 Jason Rumney <jasonr@gnu.org>
17799 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
17801 * w32fns.c (x_to_w32_font): Likewise.
17803 2004-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17805 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
17806 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
17808 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
17811 * xselect.c: Include termhooks.h and X11/Xproto.h.
17812 (x_check_property_data, x_fill_property_data)
17813 (x_property_data_to_lisp, mouse_position_for_drop)
17814 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
17815 (Fx_send_client_event): Move here from xfns.c.
17816 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
17818 * xfns.c (x-send-client-message): Move to xselect.c.
17819 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
17821 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
17822 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
17823 if vector_ret_p is true.
17824 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
17826 2004-02-02 Eli Zaretskii <eliz@gnu.org>
17828 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
17829 basename of FILE relative to it, not FILE itself.
17831 2004-02-02 Kenichi Handa <handa@m17n.org>
17833 * coding.c (coding_restore_composition): Check invalid
17834 composition data more rigidly.
17836 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
17838 * fileio.c (Fread_file_name_internal): Correctly handle the case
17839 where insert-default-directory is nil.
17840 (Fread_file_name): Always return an empty string if the user exits
17841 with an empty minibuffer. Adapt the docstring accordingly.
17842 (syms_of_fileio): Adapt the docstring of insert-default-directory
17843 to the change in Fread_file_name.
17845 2004-01-29 Eli Zaretskii <eliz@gnu.org>
17847 * alloca.c [!alloca]: Fix the prototype for xfree.
17849 2004-01-29 Kenichi Handa <handa@m17n.org>
17851 * fns.c (string_char_to_byte): Optimize for ASCII only string.
17852 (string_byte_to_char): Likewise.
17854 2004-01-28 Peter Runestig <peter@runestig.com>
17856 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
17858 2004-01-27 Steven Tamm <steventamm@mac.com>
17860 * unexmacosx.c (unexec_copy): Do not copy more than was
17861 requested to prevent overwriting during unexec.
17863 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17865 * process.c (sigchld_handler): Add comment about not calling malloc.
17867 * process.h: Add extern to synch_process_termsig.
17869 2004-01-27 Steven Tamm <steventamm@mac.com>
17871 * macterm.c (make_mac_frame, make_mac_terminal_frame):
17872 Move setting of scroll bars from make_mac_frame to
17873 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
17875 2004-01-26 Richard M. Stallman <rms@gnu.org>
17877 * search.c (Freplace_match): Handle nonexistent
17878 back-references properly.
17880 2004-01-03 Richard M. Stallman <rms@gnu.org>
17882 * window.c (decode_any_window): New function.
17883 (Fwindow_height, Fwindow_width, Fwindow_edges)
17884 (Fwindow_pixel_edges, Fwindow_inside_edges)
17885 (Fwindow_inside_pixel_edges): Use decode_any_window.
17887 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17889 * process.h: synch_process_termsig new variable.
17891 * callproc.c: Define synch_process_termsig.
17892 (Fcall_process): Initiate synch_process_termsig to zero and
17893 check if non-zero and get signal name after subprocess has ended.
17895 * process.c (sigchld_handler): Set synch_process_termsig
17896 if terminated by a signal. synch_process_death setting removed.
17898 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
17900 2004-01-26 Andreas Schwab <schwab@suse.de>
17902 * print.c (print_preprocess): Declare size as EMACS_INT to not
17904 (print_object): Likewise.
17905 * alloc.c (Fpurecopy): Likewise.
17907 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
17909 * window.c (Fwindow_minibuffer_p): Doc fix.
17911 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
17913 * editfns.c (Fformat): Make both passes accept the same set of flags.
17915 2004-01-23 Kenichi Handa <handa@m17n.org>
17917 * fns.c (Fmd5): If OBJECT is a buffer different from the current
17918 one, set buffer to OBJECT temporarily.
17920 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
17922 * keyboard.c (kbd_buffer_gcpro): Remove.
17923 (kbd_buffer_store_event, clear_event, Fdiscard_input)
17924 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
17925 Don't initialize and/or maintain the variable any more. It was made
17926 redundant by my commit of 2003-06-15.
17928 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
17930 2004-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17932 * lisp.h: Add undef DECL_ALIGN.
17934 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
17936 * process.c (wait_reading_process_input) [SYNC_INPUT]:
17937 Check interrupt_input_pending explicitly.
17939 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
17941 * keyboard.c (handle_async_input): New fun,
17942 extracted from input_available_signal.
17943 (input_available_signal, reinvoke_input_signal): Use it.
17945 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
17947 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
17949 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
17950 manipulation macros for when tags are in the lower bits.
17951 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
17952 (DECL_ALIGN): New macro.
17955 * lisp.h [ENABLE_CHECKING]: Don't force union type.
17957 * s/darwin.h (__attribute__): Remove outdated workaround.
17959 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
17961 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
17962 Don't check range of malloc address.
17963 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
17965 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
17967 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
17969 2004-01-19 Kenichi Handa <handa@m17n.org>
17971 * fontset.c (fontset_font_pattern): Fix previous change.
17973 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
17975 * xdisp.c (Voverflow_newline_into_fringe)
17976 (move_it_in_display_line_to, redisplay_internal)
17977 (update_window_fringes, redisplay_window, display_line, window):
17978 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
17979 that it compiles without a window-system.
17980 * dispnew.c (direct_output_for_insert, update_window): Likewise.
17982 2004-01-16 Kim F. Storm <storm@cua.dk>
17984 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
17986 * buffer.c (init_buffer_once): Set buffer_defaults and
17987 buffer_local_flags for indicate_buffer_boundaries.
17988 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
17989 default- variable for it.
17991 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
17992 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
17993 New members exact_window_width_line_p and cursor_in_fringe_p for
17994 overflowing newlines into right fringe.
17995 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
17996 and indicate_bottom_line_p for buffer boundaries and scrolling.
17997 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
17998 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
17999 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
18000 and HOLLOW_SQUARE_BITMAP.
18001 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
18004 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
18005 instead of related indicator fields.
18006 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
18007 (direct_output_for_insert): Handle exact width lines like
18008 contined lines. Call update_window_fringes.
18009 (update_window): Call update_window_fringes.
18010 (scrolling_window): Don't skip desired rows with changed bitmaps.
18011 Check if fringe bitmaps changes when assigning scrolled rows.
18013 * xdisp.c (Voverflow_newline_into_fringe): New variable.
18014 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
18015 (move_it_in_display_line_to): Overflow newline into fringe for
18016 rows that are exactly as wide as the window.
18017 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
18018 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
18019 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
18020 (fringe_bitmaps): Add new bitmaps.
18021 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
18022 Select proper bitmap for cursor in fringe when appropriate.
18023 Handle alignment of bitmap to top or bottom of row.
18024 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
18025 done by update_window_fringes.
18026 (update_window_fringes, draw_window_fringes): New functions.
18027 (redisplay_internal): Call update_window_fringes in case only
18028 cursor row is updated.
18029 (redisplay_window): Call update_window_fringes.
18030 Explicitly call draw_window_fringes if redisplay was done using
18031 the current matrix or the overlay arrow is in the window.
18032 (try_window_reusing_current_matrix): Mark scrolled rows for
18033 fringe update (to update buffer-boundaries / scrolling icons).
18034 (find_last_unchanged_at_beg_row): Handle exact width lines line
18036 (display_line): Overflow newline into fringe for rows that are
18037 exactly as wide as the window. Don't append space for newline
18039 (notice_overwritten_cursor): Explicitly clear cursor bitmap
18040 in fringe as if it had been overwritten.
18041 (erase_phys_cursor): Erase cursor bitmap in fringe.
18042 (syms_of_xdisp): Mark show-trailing-whitespace and
18043 void-text-area-pointer as user options.
18044 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
18046 * xterm.c (x_update_window_end): Call draw_window_fringes.
18047 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
18048 in row instead of actually drawing fringe bitmaps.
18049 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
18050 (x_draw_window_cursor): Draw cursor in fringe.
18052 * w32term.c (x_update_window_end): Call draw_window_fringes.
18053 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
18054 in row instead of actually drawing fringe bitmaps.
18055 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
18056 (w32_draw_window_cursor): Draw cursor in fringe.
18058 * macterm.c (x_update_window_end): Call draw_window_fringes.
18059 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
18060 in row instead of actually drawing fringe bitmaps.
18061 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
18062 (mac_draw_window_cursor): Draw cursor in fringe.
18064 2004-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18066 * xterm.c (handle_one_xevent): Don't handle characters that are part
18067 of an old style (XLookupString) compose sequence.
18069 2004-01-15 Kenichi Handa <handa@m17n.org>
18071 * search.c (Freplace_match): Use make_multibyte_string or
18072 make_unibyte_string according to the buffer multibyteness.
18074 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
18076 * alloc.c (struct interval_block, struct string_block)
18077 (struct symbol_block, struct marker_block, live_string_p)
18078 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
18079 Better preserve alignment for objects in blocks.
18080 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
18082 * lread.c (defvar_per_buffer): Remove dead declaration.
18084 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
18087 2004-01-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18089 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
18090 if a key press should pop down. Only pop down if a key is pressed
18091 outside the menu/dialog.
18092 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
18093 popup_get_selection.
18094 (create_and_show_dialog): Pass 1 for down_on_keypress to
18095 popup_get_selection.
18097 2004-01-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18099 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
18100 BLOCK/UNBLOCK_INPUT.
18102 2004-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18104 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
18107 2004-01-08 Kenichi Handa <handa@m17n.org>
18109 * editfns.c (Fformat): Fix '&' to '&&'.
18111 2004-01-08 Andreas Schwab <schwab@suse.de>
18113 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
18114 size if PSEUDOVECTOR_FLAG is set.
18116 2004-01-07 Kenichi Handa <handa@m17n.org>
18118 * charset.c (Fdeclare_equiv_charset): Fix docstring.
18120 * fontset.c (fontset_ref_via_base): Fix previous change.
18122 2004-01-07 Kim F. Storm <storm@cua.dk>
18124 * process.c (read_process_output): Only activate adaptive
18125 buffering if we read less than 256 bytes at a time.
18127 2004-01-06 Kim F. Storm <storm@cua.dk>
18129 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
18130 object and image object. Return glyph width and height.
18131 (mode_line_string, marginal_area_string): Ditto.
18133 * dispextern.h (buffer_posn_from_coords, mode_line_string)
18134 (marginal_area_string): Fix prototypes.
18136 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
18137 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
18138 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
18140 * keyboard.c (make_lispy_position): Use modified mode_line_string,
18141 buffer_posn_from_coords, and marginal_area_string functions to
18142 include both string object and image object in the lispy position.
18143 Also add actual glyph width and height to position.
18144 (read_key_sequence): Use real buffer position from mouse
18145 event to find keymap property even when click is in marginal area.
18147 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
18148 mode_line_string and marginal_area_string functions to handle
18149 both string object and image object properties.
18151 2004-01-06 Andreas Schwab <schwab@suse.de>
18153 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
18156 2004-01-02 Andreas Schwab <schwab@suse.de>
18158 * macterm.c (emacs_options, x_initialized, same_x_server):
18159 Remove unused (and duplicated) definitions.
18161 2004-01-02 Kim F. Storm <storm@cua.dk>
18163 * process.h (struct Lisp_Process): New members for adaptive read
18164 buffering: adaptive_read_buffering, read_output_delay, and
18167 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
18168 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
18169 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
18170 (process_output_delay_count, process_output_skip): New vars.
18171 (Vprocess_adaptive_read_buffering): New variable.
18172 (make_process): Initialize adaptive read buffering members.
18173 (Fstart_process): Set adaptive_read_buffering member.
18174 (deactivate_process): Cleanup adaptive read buffering.
18175 (wait_reading_process_input): Temporarily omit delayed
18176 subprocesses from the set of file descriptors to read from;
18177 adjust the select timeout if we skipped any subprocesses.
18178 (read_process_output): Increase adaptive read buffering delay if
18179 we read less than a full buffer; reduce delay when we read a
18181 (send_process): Simplify using local Lisp_Process var.
18182 Reset adaptive read buffering delay after write.
18183 (init_process): Initialize process_output_delay_count and
18184 process_output_skip.
18185 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
18187 2004-01-01 Jason Rumney <jasonr@gnu.org>
18189 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
18191 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
18193 * print.c (Ferror_message_string): Add hyperlink in the docstring
18194 to the definition of `signal' in the Elisp manual.
18195 * eval.c (Fsignal): Ditto.
18197 2003-12-29 James Clark <jjc@jclark.com>
18199 * fns.c (internal_equal): Return t for two NaN arguments.
18201 2003-12-29 Richard M. Stallman <rms@gnu.org>
18203 * data.c (store_symval_forwarding): Handle setting
18204 default-fill-column, etc., by changing the value in
18205 buffers that use the default.
18207 * minibuf.c (Fset_minibuffer_window): Doc fix.
18209 * fileio.c (choose_write_coding_system): Ignore auto_saving
18210 if using the visited file for auto saves.
18211 (Fwrite_region): Don't update SAVE_MODIFF
18212 if auto-saving in visited file.
18214 2003-12-29 Kenichi Handa <handa@m17n.org>
18216 * dispextern.h (face_font_available_p): Extern it.
18218 * fontset.c (Voverriding_fontspec_alist): New variable.
18219 (lookup_overriding_fontspec): New function.
18220 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
18221 (fontset_font_pattern): Likewise.
18222 (regulalize_fontname): New function.
18223 (Fset_fontset_font): Call regulalize_fontname.
18224 (Fset_overriding_fontspec_internal): New function.
18225 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
18226 Defsubr Sset_overriding_fontspec_internal.
18228 * xfaces.c (face_font_available_p): New function.
18230 2003-12-28 Richard M. Stallman <rms@gnu.org>
18232 * buffer.c (Fother_buffer): Don't crash if BUF is nil
18233 or if its name is nil.
18235 * buffer.c (Fkill_buffer): Don't delete auto-save file
18236 if it's the same as the visited file.
18238 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
18240 * coding.c (Fcheck_coding_system): Doc fix.
18242 2003-12-28 Kim F. Storm <storm@cua.dk>
18244 * Makefile.in (eval.o): Depend on dispextern.h.
18246 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
18247 image glyph using image's ascent.
18248 (mode_line_string): Return image glyph as object clicked on.
18249 Adjust y0 for image glyph using image's ascent.
18251 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
18252 (struct glyph): New members, ascent and descent. Used to save
18253 this glyph's ascent and descent, instead of having.
18254 (struct glyph): Declare member face_id using FACE_ID_BITS.
18255 (find_hot_spot): Add prototype.
18257 * keyboard.c (Qimage): Remove extern (now in lisp.h).
18258 (QCmap): Declare extern.
18259 (make_lispy_position): When position is inside image hot-spot,
18260 use hot-spot element's id as posn element.
18262 * lisp.h (IMAGEP): New macro to test for image object type.
18263 (Qimage): Declare extern.
18265 * macfns.c (Qimage): Remove extern (now in lisp.h).
18266 (valid_image_p, parse_image_spec): Use IMAGEP macro.
18268 * macterm.c (Qface, Qmouse_face): Remove unused externs.
18270 * w32fns.c (Qimage): Remove extern (now in lisp.h).
18271 (valid_image_p, parse_image_spec): Use IMAGEP macro.
18273 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
18275 * w32term.c (Qface, Qmouse_face): Remove unused externs.
18277 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
18279 (Qrelative_width, Qalign_to): Remove unused variables.
18280 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
18281 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
18283 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
18284 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
18286 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
18287 than row's ascent and height, to get sensible height on tall rows.
18288 (build_desired_tool_bar_string): Remove Qimage extern.
18289 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
18290 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
18291 image glyph is alone on the last line.
18292 (append_glyph, append_composite_glyph, produce_image_glyph)
18293 (append_stretch_glyph): Set glyph's ascent and descent.
18294 (on_hot_spot_p): New function to check if position is inside an
18295 rectangular, circular, or polygon-shaped image hot-spot,
18296 (find_hot_spot): New function to search for image hot-spot.
18297 (Flookup_image_map): New defun to search for image hot-spot.
18298 (define_frame_cursor1): New aux function to determine frame
18300 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
18301 `pointer' text property and :pointer image property to control
18302 frame pointer shape. Detect image hot-spots for pointer and
18303 help_echo properties. Use define_frame_cursor1.
18304 (note_mouse_highlight): Use Vvoid_text_area_pointer.
18305 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
18306 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
18307 Vshow_text_cursor_in_void.
18309 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
18311 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
18312 (Qimage): Remove extern (now in lisp.h).
18313 (valid_image_p, parse_image_spec): Use IMAGEP macro.
18315 * xmenu.c (show_help_event): Remove unused code.
18317 * xterm.c (Qface, Qmouse_face): Remove unused externs.
18318 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
18319 row's ascent and descent, to get a sensible height on tall rows.
18321 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
18323 * minibuf.c (Fcompleting_read): Undo previous change.
18325 2003-12-25 Lars Hansen <larsh@math.ku.dk>
18327 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
18328 Arguments GCPRO'ed in call to file name handler.
18330 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
18332 * termcap.c (tgetst1): Scan for "%pN"; if all
18333 N are continuous in [1,9], remove all "%pN".
18335 2003-12-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18337 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
18339 * xfaces.c (lface_fully_specified_p): Take into account that
18340 MAC OS always have unspecified stipple.
18342 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
18344 * tparam.c (tparam1): Add handling for `%pN', which
18345 means use param N for the next substitution.
18347 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
18349 * xfaces.c (Fcolor_gray_p): Fix omission bug:
18350 In case `frame' is nil, consult the selected frame.
18351 (Fcolor_supported_p): Likewise.
18353 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
18355 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
18358 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
18359 and an integer. Adapt the introductory comment accordingly.
18360 (Fread_from_minibuffer): Delete code moved into read_minibuf.
18362 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
18364 (Fcompleting_read): Delete code moved into read_minibuf.
18365 (Ftest_completion): Make it handle obarrays and hash tables correctly.
18367 2003-12-03 Kenichi Handa <handa@m17n.org>
18369 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
18372 2003-12-01 Kenichi Handa <handa@m17n.org>
18374 * composite.c (syms_of_composite): Don't make the compostion hash
18377 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
18379 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
18380 * textprop.c (Fget_char_property_and_overlay): New function.
18381 (syms_of_textprop): Defsubr it.
18383 2003-11-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18385 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
18386 to compile on terminal configuration.
18388 * fileio.c (Fread_file_name): Check use_file_dialog also before
18389 calling Fx_file_dialog.
18391 * fns.c (use_file_dialog): New variable.
18392 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
18394 2003-11-29 Kim F. Storm <storm@cua.dk>
18396 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
18397 (syms_of_msdos): Don't intern and staticpro them.
18399 2003-11-27 Kim F. Storm <storm@cua.dk>
18401 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
18402 coordinates relative to glyph at posn. If glyph is an image,
18403 return that as object at posn. Callers changed.
18404 (mode_line_string, marginal_area_string): Calculate and return
18405 pixel coordinates relative to glyph. Callers changed.
18407 * dispextern.h (buffer_posn_from_coords, mode_line_string)
18408 (marginal_area_string): Fix prototypes.
18409 (window_box_left_offset, window_box_right_offset): Add prototypes.
18411 * frame.h (get_specified_cursor_type, get_window_cursor_type):
18414 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
18416 * keyboard.c (make_lispy_position): Add x and y coordinates
18417 relative to the current glyph as 7th element of position.
18418 If glyph is an image, return it in the object element.
18419 (read_key_sequence): Skip checks for keymap property in cases
18420 where POSN_STRING is not a string (e.g. an image).
18422 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
18423 (Vshow_text_cursor_in_void): New variable.
18424 (glyph_to_pixel_coords): Don't use negative hpos.
18425 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
18426 (append_stretch_glyph): Change ascent arg to be actual value
18427 in pixels rather than ratio to height. Callers changed.
18428 (calc_pixel_width_or_height): New aux function, implementing
18429 pixel based artihmetic for glyph widths and heights.
18430 (produce_stretch_glyph): Use calc_pixel_width_or_height for
18431 :width, :height, :align-to, and :ascent, thus allowing these to
18432 be specified in pixels as well as multiples of characters.
18433 Don't produce stretch glyphs with zero width or height.
18434 (get_specified_cursor_type): Declare static.
18435 (get_window_cursor_type): Declare static. Add glyph arg to be
18436 able to know when cursor is on an image; always substitute
18437 hollow-box cursor for filled-box cursor on images, to avoid
18438 negative images and flicker when blinking the cursor.
18439 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
18440 (note_mode_line_or_margin_highlight): Use non-text cursor rather
18441 than vertical scroll-bar cursor in display margins.
18442 (note_mouse_highlight): Use non-text cursor rather than text
18443 cursor in fringes and over images in the text area.
18444 Use non-text cursor when mouse pointer is outside editable text,
18445 i.e. in the void after end-of-line or end-of-buffer; this was
18446 already done for W32, but is now standard for all systems --
18447 user can toggle show-text-cursor-in-void to get old behaviour.
18448 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
18449 Vdisplay_pixels_per_inch.
18451 2003-11-25 Andreas Schwab <schwab@suse.de>
18453 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
18454 EMACS_INT to not lose bits.
18455 (Ffillarray): Don't set bits beyond the size of a bool vector.
18457 2003-11-25 Kim F. Storm <storm@cua.dk>
18459 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
18460 define this defun on systems that cannot use stderr as lvalue.
18462 2003-11-24 Gerd Moellmann <gerd@gnu.org>
18464 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
18465 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
18466 ld's default is incompatible with unexec.
18468 2003-11-23 Kim F. Storm <storm@cua.dk>
18470 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
18471 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
18472 (Fforce_window_update): New defun.
18473 (syms_of_window): Defsubr it.
18474 (Fset_window_margins, Fset_window_fringes): Doc fix.
18476 * print.c (Fredirect_debugging_output): New defun.
18477 (syms_of_print): Defsubr it.
18479 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
18481 * fns.c (Fset_char_table_parent): Doc fix.
18483 2003-11-22 Kim F. Storm <storm@cua.dk>
18485 * dispnew.c (buffer_posn_from_coords): Return actual row/column
18486 for glyph clicked on, rather than (unused) pixel positions.
18487 (mode_line_string, marginal_area_string): Change X and Y args to
18488 pointers for returning actual row/column for glyph clicked on.
18489 Simplify and optimize loops.
18491 * dispextern.h (mode_line_string, marginal_area_string):
18494 * keyboard.c (make_lispy_position): New function for generating
18495 mouse click positions from frame and pixel coordinates.
18496 Enhanced to return buffer position and actual row/column for
18497 events outside the text area using updated mode_line_string and
18498 marginal_area_string functions.
18499 Return left-fringe and right-fringe clicks as such, rather than
18500 clicks in text area.
18501 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
18502 pixel_to_glyph_coords, as we never use the results.
18503 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
18504 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
18505 Eliminate unused code in WHEEL_EVENT handling.
18506 (make_lispy_movement): Use make_lispy_position.
18508 * window.c (coordinates_in_window): Remove redundant tests.
18509 Fix returned X pixel value for left-margin.
18511 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
18512 mode_line_string and marginal_area_string parameters.
18514 2003-11-22 Lars Hansen <larsh@math.ku.dk>
18516 * w32.c (struct the_group, getgrgid): Add.
18517 * mac.c (struct my_group, getgrgid): Add.
18519 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
18521 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
18523 2003-11-21 Lars Hansen <larsh@math.ku.dk>
18525 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
18526 include in call to file name handler. Optionally translate numeric
18527 UID and GID to strings. Update docstring.
18528 (directory_files_internal): Add parameter ID-FORMAT.
18529 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
18530 include in call to file name handler and call to
18531 directory_files_internal. Update Docstring.
18532 (Fdirectory_files): Add dummy parameter in call to
18533 directory_files_internal.
18534 * lisp.h (Qinteger): Add.
18535 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
18536 (Ffile_attributes): Add parameter.
18537 * data.c (Qinteger): Export.
18539 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
18541 * fns.c (Freverse, Fnreverse): Doc fixes.
18543 2003-11-19 Kim F. Storm <storm@cua.dk>
18545 * xdisp.c (init_iterator): Initialize it->start to position
18546 before reseating (in case start position is invisible).
18547 (init_to_row_start): Set it->start to row-start.
18548 (redisplay_window): Accept optional_new_start if start position
18549 is invisible (in which case IT_CHARPOS overshoots PT).
18550 (display_line): Setup row->start from it->start (rather than
18551 it->current which is wrong if first char on line is invisible).
18552 When done, reseat it->start to it->current (= start of next row).
18553 (expose_area): Fix exposure of text area when first char (e.g. TAB)
18554 is only partially visible.
18556 * dispextern.h (struct it): New member start.
18558 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
18560 * alloc.c (make_float, Fcons): Clear the markbit at init time.
18561 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
18562 of block_index outside of the macro call.
18563 (Fgarbage_collect): Remove null code.
18565 * m/amdx86-64.h: Don't redefine XPNTR.
18567 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
18570 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
18571 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
18572 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
18574 * lisp.h (VALMASK): Only define for non-union type.
18576 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
18577 (XTYPE): Define unconditionally.
18578 (XSETTYPE): Remove one more remnant.
18579 (EQ): Define differently for the union and non-union cases.
18580 (INTMASK): New bit mask.
18581 (struct Lisp_Marker): Move down to prepare for upcoming patch.
18582 (GC_EQ): Delegate to EQ.
18584 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
18586 2003-11-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18588 * xterm.c (x_window_to_scroll_bar): Move check of display to
18589 where window_id is compared.
18591 2003-11-17 Kim F. Storm <storm@cua.dk>
18593 * dispextern.h (struct it): New member first_vpos.
18595 * xdisp.c (start_display): Set it->first_vpos.
18596 (try_window_id): Use first_vpos to start display in first _text_
18597 line if no reusable lines at start of window with header line.
18599 2003-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18601 * w32fns.c (XPutPixel):
18602 * w32bdf.c (w32_init_bdf_font):
18603 * sunfns.c (sel_read):
18604 * process.c (Fmake_network_process):
18605 * frame.c (store_frame_param):
18606 * fontset.c (Fset_fontset_font):
18607 * emacs.c (shut_down_emacs):
18608 * ccl.c (ccl_driver): Remove period at end of error message.
18610 * config.in: Regenerate.
18612 * xfns.c (x_window_to_frame, x_any_window_to_frame)
18613 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
18614 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
18615 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
18616 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
18618 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
18620 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
18621 (XTmouse_position, handle_one_xevent): Pass Display* to
18622 x_window_to_scroll_bar.
18623 (x_window_to_scroll_bar): Take a Display* argument.
18624 Check that display for frame is equal to Display* argument.
18625 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
18626 x_display_info_for_display instead. Use Display in xev instead
18628 (x_dispatch_event): Call x_display_info_for_display.
18629 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
18630 (x_connection_closed): Call xg_display_close for GTK.
18631 (x_term_init): Call xg_display_open for additional displays.
18632 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
18635 * xmenu.c (single_menu_item, mouse_position_for_popup)
18636 (x_activate_menubar): Formatting adjustments.
18638 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
18641 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
18642 (xg_display_close, xg_create_default_cursor)
18643 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
18645 (xg_left_ptr_cursor): Remove.
18646 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
18648 (xg_win_to_widget): Take Display* argument, call
18649 gdk_xid_table_lookup_for_display.
18650 (xg_create_frame_widgets, xg_get_file_name, create_menus)
18651 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
18652 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
18653 in FRAME_X_DISPLAY_INFO.
18654 (xg_get_scroll_id_for_window): Take Display* argument.
18655 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
18656 (xg_initialize): Remove xg_left_ptr_cursor.
18658 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
18660 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
18662 2003-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18664 * xterm.c (x_detect_focus_change): Do not change focus frame for
18665 Enter/LeaveNotify if the current focus frame has explicit focus.
18667 2003-11-14 Kim F. Storm <storm@cua.dk>
18669 * dispnew.c (update_text_area): Fix redisplay error when hscroll
18670 is active and first glyph is only partially visible.
18672 2003-11-13 Kenichi Handa <handa@m17n.org>
18674 * xdisp.c (select_frame_for_redisplay): New function.
18675 (redisplay_internal): Record also selected_frame for
18676 unwind_redisplay. Call select_frame_for_redisplay before
18677 redrawing each frame.
18678 (unwind_redisplay): Argument changed to a cons.
18680 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
18682 * fns.c (Fstring_to_multibyte): Doc fix.
18684 2003-11-11 Kenichi Handa <handa@m17n.org>
18686 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18688 2003-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18690 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
18691 program specified positions.
18693 2003-11-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18695 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
18697 2003-11-08 Kenichi Handa <handa@m17n.org>
18699 * Makefile.in (lisp): Add kannada.el.
18700 (shortlisp): Likewise.
18702 2003-11-07 Kenichi Handa <handa@m17n.org>
18704 * coding.c (coding_allocate_composition_data):
18705 Reset coding->composing to COMPOSITION_NO.
18706 (coding_restore_composition): Detect invalid composition data.
18707 Give Fstring and Fvector a Lispy integer, not C int.
18709 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
18711 * floatfns.c (Flogb): Don't use VALMASK.
18713 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
18714 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
18716 * lisp.h (XINT): Move the cast to clarify what is going on.
18717 (GCTYPEMASK, XSETTYPE): Remove.
18718 (XGCTYPE): Make it an alias of XTYPE.
18720 2003-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18722 * xterm.c (x_term_init): Fix formatting.
18724 2003-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18726 * gtkutil.h (xg_have_tear_offs): Declare.
18727 (xg_keep_popup, xg_did_tearoff): Remove.
18729 * gtkutil.c: Remove variable xg_did_tearoff.
18730 (xg_have_tear_offs): New function.
18731 (tearoff_remove): Just decrease xg_detached_menus.
18732 (tearoff_activate): Increase xg_detached_menus and call
18733 tearoff_remove when tearoff is removed.
18734 (xg_keep_popup): Remove function.
18735 (create_menus): Give add_tearoff_p as argument to recursive
18736 call to create_menus.
18737 (xg_create_widget): Use variables instead of multiple
18738 strcmp. Tell create_menus to create tear off only for
18740 (xg_update_menubar): Change title for a detached menu also.
18741 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
18743 (xg_initialize): Initialize xg_detached_menus, remove
18744 initialization of xg_did_tearoff.
18746 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
18747 xg_have_tear_offs returns non-zero.
18748 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
18749 call to xg_keep_popup.
18751 2003-11-01 Andrew Choi <akochoi@shaw.ca>
18753 * macterm.c (XTread_socket): Handle menubar selection and grow
18754 window only for mouseDown events.
18756 2003-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18758 * xterm.c (x_term_init): For GTK part, increase x_initialized
18759 to check for more than one display. Use error instead of return 0.
18761 2003-10-31 Andrew Choi <akochoi@shaw.ca>
18763 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
18764 (copy_dysymtab): Call it.
18766 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
18768 * eval.c (Fdefvaralias): Doc fix.
18770 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
18772 * data.c (Fsetplist): Doc fix.
18774 2003-10-14 Lute Kamstra <lute@gnu.org>
18776 * window.c (Fset_window_fringes): Clarify docstring.
18778 2003-10-14 Kim F. Storm <storm@cua.dk>
18780 * window.c (Fset_window_margins): Simplify arg checking.
18782 2003-10-13 Richard M. Stallman <rms@gnu.org>
18784 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
18785 (print_partial_compiled_pattern): Replace assert with a printout.
18786 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
18788 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
18790 * window.c (Fset_window_margins): Allow only integers as args.
18791 (syms_of_window) <special-display-buffer-names,
18792 special-display-regexps>: Doc fixes.
18794 2003-10-13 Lute Kamstra <lute@gnu.org>
18796 * window.c (Fset_window_fringes): Elaborate docstring.
18798 2003-10-12 Andrew Choi <akochoi@shaw.ca>
18800 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
18802 * s/darwin.h (GC_MARK_STACK): Define.
18804 2003-10-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18806 * window.c (shrink_windows): New function.
18807 (size_window): Call shrink_windows to calculate window sizes when
18808 shrinking frame with more than one window.
18810 2003-10-12 Kim F. Storm <storm@cua.dk>
18812 * xdisp.c (compute_fringe_widths): Doc fix.
18814 2003-10-08 Kenichi Handa <handa@m17n.org>
18816 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
18818 2003-10-07 Kenichi Handa <handa@m17n.org>
18820 * coding.c (Qcoding_system_define_form): New variable.
18821 (syms_of_coding): Intern and staticpro it.
18822 (Fcheck_coding_system): Try to autoload the definition of
18825 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
18827 * fns.c (Frequire): Doc fix.
18829 2003-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18831 * xfns.c (Fx_send_client_event): New function as a base for
18832 manipulating extended window manager hints.
18833 (Fx_send_client_event): Remove unused variable s.
18835 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
18836 that function is removed.
18838 * xterm.c (x_set_offset): Use move_offset_left/top instead of
18839 x/y_pixels_outer_diff.
18840 (x_check_expected_move): Calculate move_offset_left/top.
18842 * xterm.h (struct x_output): New members: move_offset_top/left.
18844 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
18845 call x_set_offset directly.
18847 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
18849 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
18851 * xterm.c (x_delete_display): Free font names and font_encoder
18852 in dpyinfo->font_table.
18854 * xfns.c (Fx_close_connection): Only call XFreeFont here.
18855 Move xfree of font names to x_delete_display.
18857 * xterm.h (struct x_display_info): New member, wm_type.
18858 (struct x_output): New members, expected_top/left and
18859 check_expected_move.
18861 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
18863 (handle_one_xevent): Rename x_check_expected_move from
18864 x_check_fullscreen_move.
18865 (x_set_offset): Only add WM decoration sizes to modified_top/left
18866 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
18867 (x_check_expected_move): Rename from x_check_fullscreen_move.
18868 Removed fullscreen specific code. Use check_expected_move,
18869 expected_left/top instead. Also, set wm_type.
18870 (x_term_init): Initialize wm_type to unknown.
18872 * frame.c (x_fullscreen_move): Remove addition of WM decoration
18875 2003-10-03 Kenichi Handa <handa@m17n.org>
18877 * macterm.c (x_load_font): Clear all members of FONTP before start
18880 2003-10-02 Kenichi Handa <handa@m17n.org>
18882 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
18883 before calling find_ccl_program_func. Call find_ccl_program_func
18884 only when fontp->font_encoder is not NULL.
18886 * xterm.c (x_load_font): Clear all members of FONTP before start
18889 2003-10-03 John Paul Wallington <jpw@gnu.org>
18891 * keymap.c (map_keymap): Don't abort when binding is a vector.
18893 2003-10-02 Jason Rumney <jasonr@gnu.org>
18895 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
18896 Sync dependencies with Makefile.in.
18897 (alloca.o): Remove.
18899 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
18902 * w32bdf.c (w32_load_bdf_font): Likewise.
18904 2003-09-30 Richard M. Stallman <rms@gnu.org>
18906 * term.c (set_tty_color_mode): Calculate current_mode_spec
18907 regardless of value of VAL.
18909 * intervals.c (graft_intervals_into_buffer):
18910 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
18911 Handle over_used when splitting UNDER.
18913 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18915 * regex.c (regex_compile): Free the stack when returning from function.
18917 2003-09-28 Kenichi Handa <handa@m17n.org>
18919 * fontset.c (Finternal_char_font): Change return value to
18920 cons (FONT-NAME . GLYPH-CODE).
18922 2003-09-28 Eli Zaretskii <eliz@gnu.org>
18924 * term.c (tty_setup_colors): Treat any negative argument as -1.
18926 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
18928 * process.c (send_process): Delete unused temp_buf.
18930 2003-09-26 Dave Love <fx@gnu.org>
18932 * xterm.c (x_bitmap_mask): Declare.
18934 2003-09-25 Dave Love <fx@gnu.org>
18936 * Makefile.in (fns.o): Depend on md5.h.
18938 2003-09-25 Kim F. Storm <storm@cua.dk>
18940 * window.c (set_window_buffer): Fix redisplay problems when
18941 switching between buffers with different display margin widths.
18943 2003-09-23 Kim F. Storm <storm@cua.dk>
18945 * process.c (set_socket_option): Fix :bindtodevice option.
18946 (Fset_network_process_option): Update process contact list when
18947 setting option succeeds.
18948 (Fmake_network_process): Doc fix.
18950 2003-09-23 Dave Love <fx@gnu.org>
18952 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
18954 2003-09-22 Eli Zaretskii <eliz@gnu.org>
18956 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
18957 color mode is an integer number (it could be -1).
18959 2003-09-22 Richard M. Stallman <rms@gnu.org>
18961 * intervals.c (graft_intervals_into_buffer): Correct the main loop
18962 in the case where OVER is longer than UNDER.
18964 2003-09-22 Masatake YAMATO <jet@gyve.org>
18966 * window.c (Fset_window_scroll_bars): Validate the value of
18969 2003-09-21 Kim F. Storm <storm@cua.dk>
18971 * frame.c (Vdefault_frame_scroll_bars): New variable.
18972 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
18973 (syms_of_frame): DEFVAR_LISP it, and initialize according to
18974 window-system default scroll bar position.
18976 * window.c (Fwindow_scroll_bars): Doc fix.
18978 2003-09-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18980 * xterm.c (x_set_offset): Take window manager decorations into account.
18982 2003-09-19 Richard M. Stallman <rms@gnu.org>
18984 * atimer.h: Don't include lisp.h.
18985 (P_): Define it here (as well as elsewhere).
18987 * print.c (Fprin1_to_string): Move the PRINTPREPARE
18988 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
18990 * data.c (Fvariable_binding_locus): New function.
18991 (syms_of_data): defsubr it.
18992 (Flocal_variable_p): Delete duplicate call to indirect_variable.
18994 2003-09-18 Dave Love <fx@gnu.org>
18996 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
18998 * process.c (Fnetwork_interface_info): Fix type error.
18999 (Fnetwork_interface_list): Doc fix.
19000 (read_process_output, read_process_output): Delete unused var.
19002 2003-09-17 Kim F. Storm <storm@cua.dk>
19004 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
19005 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
19006 (Fnetwork_interface_info): Check that ifreq struct has required
19007 fields before accessing them; this requires that those fields are
19008 defined as macros, which may be too restrictive on some platforms,
19009 but it is better than failing on other platforms.
19010 (syms_of_process): Only defsubr above fns when included.
19012 2003-09-17 Dave Love <fx@gnu.org>
19014 * unexalpha.c: Don't include varargs.h.
19016 2003-09-17 Kim F. Storm <storm@cua.dk>
19018 * process.c (Fset_process_sentinel): Add sentinel to childp plist
19019 for network process.
19020 (socket_options): Add `:' prefix to option names. Add optbit field.
19021 (set_socket_option): Remove no_error arg and special handling of s < 0.
19022 Return 1<<optbit for known option, 0 for unknown.
19023 Do not interpret 0 as false for boolean option (only nil).
19024 Pass failed option and value to report_file_error.
19025 (Fset_network_process_options): Replace by Fset_network_process_option.
19026 (Fset_network_process_option): New function to set just one option.
19027 (Fmake_network_process): Allow :coding arg to be a cons.
19028 Allow :server arg to be an integer specifying backlog size.
19029 Remove :options arg, and allow options to be specified directly
19030 as :KEY, VALUE pairs. Parse these options before binding socket.
19031 As before, :reuseaddr t is default for a server process, but this
19032 can now be disabled by specifying :reuseaddr nil.
19033 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
19034 (init_process): Availability of network options is now checked with
19035 simpler syntax (featurep 'make-network-process :OPTION); use loop to
19037 (syms_of_process): Fix defsubr's for the replaced functions.
19039 2003-09-16 Dave Love <fx@gnu.org>
19041 * Makefile.in: Depend on coding.h.
19043 2003-09-14 Kim F. Storm <storm@cua.dk>
19045 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
19046 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
19047 (syms_of_process): Defsubr them.
19049 * config.in: Regenerate.
19051 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
19053 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
19054 * m/news-r6.h (XUNMARK): Remove.
19055 * m/mips.h (XUNMARK): Remove.
19056 * m/mips-siemens.h (XUNMARK): Remove.
19057 * m/iris4d.h (XUNMARK): Remove.
19058 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
19060 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19062 * lisp.h (VALBITS): Don't remove 1 for the markbit.
19063 (union Lisp_Object): Use unsigned int for types. Remove markbit.
19064 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
19065 (XTYPE): Use unsigned right-shift.
19066 (XMARKBIT, XMARK, XUNMARK): Remove.
19068 * alloc.c (init_intervals, init_symbol, init_marker):
19069 Don't preallocate anything.
19070 (Fgarbage_collect, mark_object): Ignore the markbit.
19072 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
19074 2003-09-08 Lute Kamstra <lute@gnu.org>
19076 * xdisp.c (pint2hrstr): New function.
19077 (decode_mode_spec): Add `%i' and `%I' specs.
19078 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
19079 for `mode-line-format'.
19081 2003-09-07 Andreas Schwab <schwab@suse.de>
19083 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
19086 2003-09-07 Eli Zaretskii <eliz@gnu.org>
19088 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
19090 2003-09-03 Kim F. Storm <storm@cua.dk>
19092 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
19093 change (superseded by 2002-08-30 change); the default blink-off
19094 cursor is now again "no cursor".
19096 2003-09-01 Jason Rumney <jasonr@gnu.org>
19098 * makefile.w32-in (alloca.o): Remove.
19099 (coding.o): Depend on intervals.h
19100 (emacs.o, bytecode.o): Depend on window.h
19102 2003-09-01 Dave Love <fx@gnu.org>
19104 * Makefile.in (alloca.o): Remove commands.
19105 (coding.o): Depend on intervals.h composite.h window.h.
19106 (emacs.o): Depend on window.h keyboard.h keymap.h.
19107 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
19108 (bytecode.o): Depend on window.h.
19110 2003-08-31 Jason Rumney <jasonr@gnu.org>
19112 * w32term.c (w32_per_char_metric): Allow cached metrics to be
19113 returned even when font_type is unknown.
19115 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
19117 2003-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19119 * xterm.c (x_term_init): Initialize new fields in x_display_info.
19121 * xterm.h (struct x_display_info): Add red/green/blue_bits and
19124 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
19125 calculate pixel value.
19127 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
19129 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
19130 Don't tell redisplay display is accurate when it's actually been
19131 paused for pending input.
19133 2003-08-29 Richard M. Stallman <rms@gnu.org>
19135 * dispnew.c (adjust_glyph_matrix): Call window_box
19136 whenever W is nonzero.
19138 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19139 (Fkill_local_variable, Fmake_variable_frame_local)
19140 (Flocal_variable_p, Flocal_variable_if_set_p):
19141 Use indirect_variable to trace thru variable aliases.
19143 * config.in: Updated.
19145 * callint.c (Fcall_interactively): Save and restore
19146 Vthis_command, Vthis_original_command, real_this_command,
19147 and current_kboard->Vlast_command.
19149 * abbrev.c (Fexpand_abbrev): Insert before deleting.
19151 2003-08-29 Gerd Moellmann <gerd@gnu.org>
19153 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
19155 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
19157 * coding.c (decode_coding_iso2022): Initialize local variable c2.
19158 (decode_coding_sjis_big5): Likewise.
19160 2003-08-27 Jason Rumney <jasonr@gnu.org>
19162 * w32.c (sys_pipe): Protect against file descriptor overflow.
19164 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
19166 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
19168 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
19170 * xfns.c (Vgtk_version_string): New variable.
19171 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
19173 2003-08-24 Eli Zaretskii <eliz@gnu.org>
19175 * term.c (term_init): Remove `const' from buffer_size's declaration.
19177 * Makefile.in (msdos.o): Depend on intervals.h.
19179 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
19181 2003-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19183 * xterm.h (struct x_display_info): New fields: client_leader_window
19184 and Xatom_wm_client_leader.
19186 * xterm.c (x_initialize): Move call to x_session_initialize to ...
19187 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
19189 * xsmfns.c (create_client_leader_window): New function.
19190 (x_session_initialize): Call create_client_leader_window, take
19191 dpyinfo as argument.
19193 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
19195 * Makefile.in (xsmfns.o): Add more depenedencies.
19197 2003-08-21 Dave Love <fx@gnu.org>
19199 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
19201 2003-08-21 Kenichi Handa <handa@m17n.org>
19203 * term.c (term_init): Fix previous change; don't rely on the
19204 length of `buffer' if TERMINFO is defined.
19206 2003-08-20 Dave Love <fx@gnu.org>
19208 * atimer.h: Include lisp.h.
19210 * lisp.h (EMACS_LISP_H): New.
19211 (popup_activated_flag): Don't declare.
19213 * alloca.c: Some merging with gnulib. Change logic and doc
19214 concerning (x)malloc/(x)free -- no longer Emacs-specific.
19215 [DO_BLOCK_INPUT]: Don't include lisp.h.
19216 (xmalloc, xfree): Declare.
19217 (malloc): Don't declare.
19219 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
19220 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
19221 atimer.h, blockinput.h.
19223 * alloc.c (lisp_align_malloc): Change type of `aligned'.
19225 * alloca.s: Remove.
19227 2003-08-19 Gerd Moellmann <gerd@gnu.org>
19229 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
19232 * term.c (term_init): Use a buffer of size 4096 for tgetent since
19233 FreeBSD returns something longer than 2044. Abort if the end of
19234 the buffer is overwritten.
19236 2003-08-19 Miles Bader <miles@gnu.org>
19238 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
19240 2003-08-19 Gerd Moellmann <gerd@gnu.org>
19242 * alloc.c (lisp_align_malloc): Check for memory full when
19243 allocating ablocks, which also avoids freeing a pointer into an
19246 * puresize.h (BASE_PURESIZE): Increase to 1100000.
19248 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
19250 2003-08-16 Richard M. Stallman <rms@gnu.org>
19252 * editfns.c (Fencode_time): Doc fix.
19254 2003-08-16 David Ponce <david@dponce.com>
19256 * fileio.c (Fwrite_region): Fix conditional expression to issue
19259 2003-08-16 Juri Linkov <juri@jurta.org>
19261 * syntax.c (Fforward_word): Argument changed to optional.
19262 Set default value to 1.
19264 2003-08-15 Kenichi Handa <handa@m17n.org>
19266 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
19268 (best_matching_font): Once we find a better scalable font, set
19269 non_scalable_has_exact_height_p to 1.
19270 (try_font_list): Call try_alternative_families to try any family
19271 with the given registry.
19273 2003-08-09 Andreas Schwab <schwab@suse.de>
19275 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
19277 * print.c (print_string): Fix printing of multibyte string with
19278 nontrivial printcharfun.
19280 2003-07-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19282 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
19284 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
19286 2003-07-31 Kenichi Handa <handa@m17n.org>
19288 * process.c (read_process_output): Return the actually read bytes
19289 instead of the result of decoding.
19291 2003-07-31 Kenichi Handa <handa@m17n.org>
19293 * xterm.h (struct x_bitmap_record): New member have_mask.
19295 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
19297 (x_create_bitmap_from_file): Likewise.
19298 (x_destroy_bitmap): Check have_mask member before freeing a mask.
19299 (x_destroy_all_bitmaps): Likewise.
19300 (x_create_bitmap_mask): Set have_mask member to 1.
19302 2003-07-30 Richard M. Stallman <rms@gnu.org>
19304 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
19306 2003-07-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19308 * gtkutil.c (xg_mark_data): Update calls to mark_object.
19310 2003-07-29 Richard M. Stallman <rms@gnu.org>
19312 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
19313 Conditionalize XIM code on HAVE_XIM.
19315 * fns.c (Fclear_string): New function.
19316 (syms_of_fns): defsubr it.
19318 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
19320 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
19322 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
19324 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
19326 * buffer.c (delete_all_overlays): New function.
19327 * buffer.h (delete_all_overlays): Declare.
19328 * coding.c (run_pre_post_conversion_on_str):
19329 * print.c (temp_output_buffer_setup):
19330 * fileio.c (Finsert_file_contents):
19331 * minibuf.c (get_minibuffer): Use it.
19333 2003-07-22 Andrew Choi <akochoi@shaw.ca>
19335 * unexmacosx.c (unexec_regions_sort_compare):
19336 (unexec_regions_merge): New functions. Sort and merge unexec
19337 regions before dumping them.
19339 2003-07-22 Dave Love <fx@gnu.org>
19341 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
19343 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
19345 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
19346 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
19347 MARKBIT as the gcmarkbit for strings.
19349 2003-07-21 Richard M. Stallman <rms@gnu.org>
19351 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
19353 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
19354 (syms_of_fns): Corresponding change.
19356 * alloc.c (syms_of_alloc): Doc fixes.
19358 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
19360 * s/netbsd.h: Use -Wl syntax.
19362 2003-07-17 Richard M. Stallman <rms@gnu.org>
19364 * xterm.c (xim_initialize): Redo 6/24 change.
19366 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
19368 * buffer.c (copy_overlays): Use EMACS_INT for positions.
19369 (Fswitch_to_buffer): Don't signal an error when switching to the same
19370 buffer in a dedicated window.
19372 * alloc.c: Use bitmaps for cons, as was done for floats.
19373 (init_float, init_cons): Let the normal code allocate the first block.
19374 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
19375 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
19377 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
19378 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
19379 (live_cons_p): Check the pointer is not past the `conses' array.
19380 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
19381 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
19382 (survives_gc_p): Use CONS_MARKED_P and simplify.
19383 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
19385 2003-07-13 Paul Eggert <eggert@twinsun.com>
19387 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
19388 puts it into BSS instead, at least on Solaris 8 and 9.
19389 This is a valid optimization, and it may occur on other platforms,
19390 so Emacs should not assume that initializing a static variable to
19391 zero puts it into data.
19392 * alloc.c (pure, staticvec):
19393 Initialize these arrays to nonzero, so that they're not
19394 put into BSS by that optimization.
19396 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
19398 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
19399 (lisp_align_malloc): Use posix_memalign is available.
19400 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
19401 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
19402 for consistency. Update users.
19404 2003-07-13 Richard M. Stallman <rms@gnu.org>
19406 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
19408 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
19410 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
19411 and use the Gtk+ function gtk_window_icon_from_file if available.
19413 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
19414 handle mask of bitmaps.
19415 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
19417 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
19419 * xterm.h (xg_set_icon): New function.
19421 2003-07-12 Paul Eggert <eggert@twinsun.com>
19423 * unexelf.c (unexec): Consider a section to precede the .bss
19424 section if its addresses overlap that of .bss.
19426 2003-07-12 Richard M. Stallman <rms@gnu.org>
19428 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
19430 * config.in (HAVE_CRTIN): Add #undef.
19431 (INLINE): Really inline only if OPTIMIZE is defined.
19433 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
19435 (START_FILES_1, END_FILES_1): New macros (conditional).
19436 (LD_SWITCH_SYSTEM_TEMACS): Define.
19438 * s/openbsd.h: Don't include bsd4-3.h.
19439 (TERMINFO): Define.
19440 (LIBS_TERMCAP): Define.
19441 (LD_SWITCH_SYSTEM): Define (two definitions).
19443 * xfns.c: Include libpng/png.h instead of png.h.
19445 2003-07-11 Andreas Schwab <schwab@suse.de>
19447 * buffer.c (modify_overlay): Update prototype.
19448 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
19451 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
19453 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
19454 (struct interval): Move to intervals.h.
19455 (struct Lisp_Marker): Use EMACS_INT for position info.
19456 (forward_point): Remove prototype of defunct function.
19457 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
19458 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
19459 (syms_of_textprop, set_text_properties): Remove prototypes that are
19460 already in intervals.h.
19462 * intervals.h (struct interval): Move from lisp.h.
19463 Use EMACS_INT for position and size info.
19465 * coding.c: Include intervals.h for Fset_text_properties.
19467 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
19468 position and length information.
19470 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
19472 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
19473 position and length information.
19475 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
19477 Change overlays_after and overlays_before so the overlays themselves
19478 are linked into lists, rather than using cons cells. After all each
19479 Lisp_Misc already occupies 5 words, so we can add a `next' field to
19480 Lisp_Overlay for free and save up one cons cell per overlay (not
19481 to mention one indirection when traversing the list of overlay).
19483 * lisp.h (struct Lisp_Overlay): New field `next'.
19485 * buffer.h (struct buffer): Change overlays_before and overlays_after
19486 from Lisp lists of overlays to pointers to overlays.
19488 * buffer.c (overlay_strings, recenter_overlay_lists):
19489 Fix typo in eassert in last commit.
19490 (unchain_overlay): New function.
19491 (add_overlay_mod_hooklist): Use AREF.
19492 (copy_overlays, reset_buffer, overlays_at, overlays_in)
19493 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
19494 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
19495 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
19496 (report_overlay_modification, evaporate_overlays, init_buffer_once):
19497 Adjust to new type of overlays_(before|after).
19499 * alloc.c (mark_object): Mark the new `next' field of overlays.
19500 (mark_buffer): Manually mark the overlays_(after|before) fields.
19502 * coding.c (run_pre_post_conversion_on_str):
19503 * editfns.c (overlays_around):
19504 * xdisp.c (load_overlay_strings):
19505 * fileio.c (Finsert_file_contents):
19506 * indent.c (current_column):
19507 * insdel.c (signal_before_change, signal_after_change):
19508 * intervals.c (set_point_both):
19509 * print.c (temp_output_buffer_setup): Use new type for
19510 overlays_(before|after).
19512 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
19514 * buffer.c (report_overlay_modification): Don't run hooks while
19515 traversing the list of overlays.
19517 * buffer.h (struct buffer): Use an int for overlay_center.
19518 (overlays_at, evaporate_overlays, recenter_overlay_lists)
19519 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
19521 * buffer.c (reset_buffer, recenter_overlay_lists)
19522 (adjust_overlays_for_insert, adjust_overlays_for_delete)
19523 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
19524 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
19525 (overlays_at, evaporate_overlays, recenter_overlay_lists)
19526 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
19528 * xdisp.c (fast_find_position): Remove unused var.
19530 * cmds.c (Qexpand_abbrev): New sym.
19531 (syms_of_cmds): Initialize it.
19532 (internal_self_insert): Use it to call expand-abbrev.
19534 2003-07-09 Kim F. Storm <storm@cua.dk>
19536 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
19537 was configured with --without-xim.
19538 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
19540 2003-07-07 Richard M. Stallman <rms@gnu.org>
19542 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
19544 * alloc.c (Fgarbage_collect): Doc fix.
19546 2003-07-07 Nozomu Ando <nand@mac.com>
19548 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
19550 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
19552 * minibuf.c (read_minibuf): UNGCPRO before returning.
19553 (Ftry_completion, Fall_completions): Doc fix.
19555 * alloc.c (live_float_p): Check that p is not past the `floats' array,
19556 now that `floats' is not the last element of the struct any more.
19558 2003-07-06 Jason Rumney <jasonr@gnu.org>
19560 * w32term.h (ClipboardSequence_Proc): New type.
19562 * w32fns.c (clipboard_sequence_fn): New variable.
19563 (globals_of_w32fns): Initialize it.
19565 * w32select.c (last_clipboard_sequence_number): New variable.
19566 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
19567 number if possible.
19569 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
19571 * m/amdx86-64.h (MARKBIT):
19572 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
19573 MARKBIT and ARRAY_MARK_FLAG any more.
19575 * m/hp800.h (XSETMARKBIT):
19576 * m/sr2k.h (XSETMARKBIT):
19577 * lisp.h (XSETMARKBIT): Remove unused macro.
19579 * lisp.h (mark_object): Change prototype.
19581 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
19582 (last_marked): Change accordingly.
19583 (mark_interval, mark_maybe_object, mark_maybe_pointer)
19584 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
19585 (mark_buffer): Update calls to mark_object.
19587 * bytecode.c (mark_byte_stack):
19588 * fns.c (sweep_weak_table):
19589 * keyboard.c (mark_kboards): Update calls to mark_object.
19591 2003-07-06 Jason Rumney <jasonr@gnu.org>
19593 * alloc.c (struct ablock): Only include padding when there is some.
19595 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
19597 * alloc.c (ALIGN): Add casts to simplify usage.
19598 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
19599 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
19600 (struct ablock, struct ablocks): New types.
19601 (free_ablock): New global var.
19602 (lisp_align_malloc, lisp_align_free): New functions.
19603 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
19604 (struct float_block): Reorder and add gcmarkbits.
19605 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
19606 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
19607 (init_float, make_float): Use lisp_align_malloc.
19608 (free_float, live_float_p): Don't use `type' any more.
19609 (make_float): Use FLOAT_UNMARK to access to mark bit.
19610 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
19611 Use FLOAT_MARKED_P to access the mark bit.
19612 (pure_alloc): Simplify use of ALIGN.
19613 (mark_object): Use FLOAT_MARK to access the mark bit.
19614 (gc_sweep): Use new macros to access the float's mark bit.
19615 (init_alloc_once): Init free_ablock.
19617 * lisp.h (struct Lisp_Float): Remove unused field `type'.
19619 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
19621 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
19622 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
19623 (allocate_buffer): Move.
19624 (string_bytes): Don't mask markbit of `size_byte'.
19625 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
19626 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
19627 Use the `size' field of buffers (rather than the `name' field) for
19628 the mark bit, as is done for all other vectorlike objects.
19629 Use the new macros to access the mark bit of vectorlike objects.
19631 2003-06-26 Richard M. Stallman <rms@gnu.org>
19633 * puresize.h (BASE_PURESIZE): Increment base size.
19635 * xdisp.c (fast_find_position): Enable Gerd's new definition.
19637 * xterm.c (xim_initialize): Undo previous change.
19639 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
19641 * alloc.c (survives_gc_p): Simplify.
19643 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
19645 * window.c (Fset_window_dedicated_p): Simplify.
19646 (display_buffer_1): Don't raise the win from which minibuf was entered.
19647 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
19648 (Fminibuffer_selected_window): Simplify.
19650 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
19652 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
19653 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
19655 * insdel.c (check_markers, adjust_markers_for_delete)
19656 (adjust_markers_for_insert, adjust_markers_for_replace)
19657 (prepare_to_modify_buffer, RESTORE_VALUE):
19658 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
19659 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
19660 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
19661 * alloc.c (Fmake_marker, free_marker, gc_sweep):
19662 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
19663 * editfns.c (save_excursion_restore, transpose_markers):
19664 * window.c (delete_window):
19665 * xdisp.c (message_dolog): Update for new types.
19667 2003-06-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19669 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
19670 (realize_default_face): Use default_face_done_p for the force_p
19671 argument to set_lface_from_font_name. Set default_face_done_p to one.
19673 * frame.c (make_frame): Initialize default_face_done_p.
19675 * frame.h (struct frame): Add default_face_done_p.
19677 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
19680 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
19682 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
19683 Initialize the new field `gcmarkbit'.
19684 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
19685 (mark_interval_tree): Don't mark the tree separately from the nodes.
19686 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
19687 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
19688 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
19690 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
19691 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
19692 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
19693 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
19694 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
19696 2003-06-24 Dave Love <fx@gnu.org>
19698 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
19700 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
19703 2003-06-21 Richard M. Stallman <rms@gnu.org>
19705 * fileio.c (Fwrite_region): Alternate messages
19706 for append and partial write.
19708 * keyboard.c (read_key_sequence): When converting upcase fn key to
19709 downcase, update fkey and keytran so `backspace' gets translated.
19711 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
19713 * process.c (wait_reading_process_input): Don't signal SIGIO
19716 2003-06-17 Kenichi Handa <handa@m17n.org>
19718 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
19721 * xselect.c: Don't include charset.h, coding.h, composite.h.
19722 (Qforeign_selection): New variable.
19723 (syms_of_xselect): Intern and static it.
19724 (selection_data_to_lisp_data): Return a unibyte string made from
19725 data with `foreign-selection' text property.
19727 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
19729 * termhooks.h (EVENT_INIT): New macro.
19731 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
19733 * alloc.c (mark_kboards): Move to keyboard.c.
19735 * keyboard.c (record_asynch_buffer_change, read_avail_input):
19736 * xterm.c (x_dispatch_event):
19737 * xmenu.c (find_and_call_menu_selection):
19738 * xdisp.c (handle_tool_bar_click):
19739 * w32menu.c (menubar_selection_callback):
19740 * sysdep.c (kbd_input_ast, read_input_waiting):
19741 * msdos.c (dos_rawgetc):
19742 * macterm.c (mac_check_for_quit_char):
19743 * macmenu.c (menubar_selection_callback):
19744 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
19745 data to kbd_buffer_store_event.
19747 2003-06-15 Kim F. Storm <storm@cua.dk>
19749 * xdisp.c (x_fix_overlapping_area): Always use area relative X
19750 to fix redisplay problem with tall characters (such as
\e,AC
\e(B).
19752 2003-06-13 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
19754 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
19756 2003-06-12 Kenichi Handa <handa@m17n.org>
19758 * fileio.c (Fwrite_region): Save and restore restriction.
19760 2003-06-12 Dave Love <fx@gnu.org>
19762 * alloca.c (alloca): Declare arg as size_t.
19764 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
19765 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
19767 2003-06-11 Dave Love <fx@gnu.org>
19769 * search.c (shrink_regexp_cache): Use xrealloc.
19770 (syms_of_search): Use xmalloc.
19772 2003-06-10 Kim F. Storm <storm@cua.dk>
19774 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
19775 Adjust phys_cursor.x to be relative to window box, rather than
19776 text area before checking -- to ensure cursor is redrawn when
19778 Note: This also fixes a similar (older) bug if display margins
19781 2003-06-06 Kenichi Handa <handa@m17n.org>
19783 * coding.c (encoding_buffer_size): If coding->type is
19784 coding_type_ccl, double magnification on CRLF encoding.
19786 2003-06-06 Jason Rumney <jasonr@gnu.org>
19788 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
19789 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
19791 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
19794 2003-06-05 Dave Love <fx@gnu.org>
19796 * strftime.c: Merge changes from gnulib.
19798 * mktime.c (__mktime_internal): Merge changes from gnulib
19799 involving year 69 and dst2.
19801 Changes to merge with gnulib version and be consistent with the
19804 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
19805 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
19806 [HAVE_LOCALE_H]: Include locale.h.
19807 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
19809 2003-06-05 Kim F. Storm <storm@cua.dk>
19811 * window.c (coordinates_in_window): Convert X and Y to window
19812 relative coordinates inside mode-line and header-line parts.
19813 Convert X and Y to margin area relative coordinates inside left
19814 and right display margin parts.
19816 2003-06-05 Jason Rumney <jasonr@gnu.org>
19818 * w32fns.c (add_system_logical_colors_to_map): New function.
19819 (Fx_open_connection): Use it.
19821 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
19823 * process.c (allocate_pty): Revert part of the previous patch.
19824 (Faccept_process_output): Simplify.
19826 2003-06-04 Jason Rumney <jasonr@gnu.org>
19828 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
19830 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
19831 (lispy_mouse_wheel_names): Remove.
19832 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
19833 Always define drag_and_drop_syms.
19835 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
19836 WHEEL_EVENT events.
19838 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
19840 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
19842 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
19844 2003-06-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19846 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
19849 2003-06-03 Richard M. Stallman <rms@gnu.org>
19851 * window.c (Fwindow_edges): Doc fix.
19852 (Fwindow_pixel_edges, Fwindow_inside_edges)
19853 (Fwindow_inside_pixel_edges): New functions.
19854 (syms_of_window): defsubr them.
19856 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
19857 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
19859 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
19861 * dispnew.c (Fsit_for): Don't lie about the number of args.
19863 2003-06-02 Dave Love <fx@gnu.org>
19865 * callproc.c: Use HAVE_FCNTL_H, not USG5.
19866 (syms_of_callproc) <process-environment>: Doc fix.
19868 * doc.c: Use HAVE_FCNTL_H, not USG5.
19870 * xfaces.c (font_rescale_ratio): Fix for K&R.
19872 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
19874 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
19876 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
19878 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
19879 (xg_create_frame_widgets): Use ENCODE_UTF_8.
19881 * xterm.c (Qutf_8): Move to coding.c
19883 * xmenu.c (ENCODE_MENU_STRING): New.
19884 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
19887 * coding.h (ENCODE_UTF_8): New.
19890 * coding.c (Qutf_8): New.
19891 (syms_of_coding): Intern it.
19893 * fns.c: Doc fixes.
19895 2003-06-02 Kenichi Handa <handa@m17n.org>
19897 * buffer.c (Fset_buffer_multibyte): Fix previous change.
19899 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
19901 * lread.c (openp): Make sure STR is a string.
19903 2003-06-01 David Ponce <david@dponce.com>
19905 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
19906 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
19908 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
19909 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
19910 (discard_mouse_events): Discard WHEEL_EVENT events too.
19911 (lispy_wheel_names, wheel_syms): New.
19912 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
19913 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
19914 (make_lispy_event): Add WHEEL_EVENT handler.
19916 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
19917 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
19918 WHEEL_EVENT events.
19920 2003-05-31 John Paul Wallington <jpw@gnu.org>
19922 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
19923 timer are in lisp/emacs-lisp.
19925 2003-05-31 Kenichi Handa <handa@m17n.org>
19927 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
19928 region when a buffer is changed to unibyte.
19930 * charset.h (VALID_LEADING_CODE_P): New macro.
19931 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
19933 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
19934 is nonzero, accept multibyte form of eight-bit-control chars.
19935 (decode_composition_emacs_mule): Likewise.
19936 (decode_coding_emacs_mule): Likewise.
19937 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
19938 multibyte form of eight-bit-control chars.
19940 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
19941 (Finsert_file_contents): If coding-system-for-read is bound to
19942 Qauto_save_coding, use the coding system emacs-mule with special
19943 setting for recovering a file.
19944 (choose_write_coding_system): On auto saving, use the coding
19945 system emacs-mule with special setting for auto saving.
19946 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
19948 2003-05-30 Kenichi Handa <handa@m17n.org>
19950 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
19951 properly before calling ccl_driver.
19953 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
19955 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
19956 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
19957 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
19959 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
19961 * xfaces.c (realize_default_face): Do not abort if lface is
19962 non-existent - reverts change from 2003-05-19.
19964 2003-05-29 Kenichi Handa <handa@m17n.org>
19966 * coding.c (decode_coding_iso2022): Pay attention to the byte
19967 sequence of CTEXT extended segment, and retain those bytes as is.
19969 2003-05-28 Kenichi Handa <handa@m17n.org>
19971 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
19972 of CODING_REPLACEMENT_CHARACTER.
19973 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
19974 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
19975 check this flag on encoding.
19976 (encode_coding_sjis_big5):
19977 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
19978 (Fset_terminal_coding_system_internal):
19979 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
19980 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
19982 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
19983 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19984 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
19986 2003-05-28 Richard M. Stallman <rms@gnu.org>
19988 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
19990 * eval.c (unbind_to): Move init of this_binding to separate statement.
19992 2003-05-28 Kim F. Storm <storm@cua.dk>
19994 * xdisp.c (expose_window): Fix error in calculation of
19995 window relative coordinates of area to redisplay.
19997 2003-05-27 Jason Rumney <jasonr@gnu.org>
19999 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
20001 2003-05-27 David Ponce <david@dponce.com>
20003 Handle W32 mouse wheel events as mouse click events, like in X.
20005 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
20006 MOUSE_WHEEL_EVENT anymore.
20008 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
20009 Scrolling down/up the mouse wheel is respectively mapped to mouse
20011 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
20012 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
20013 WM_MOUSEWHEEL events.
20015 2003-05-27 Andreas Schwab <schwab@suse.de>
20017 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
20019 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
20020 partially visible line.
20022 * alloc.c (Fgarbage_collect): Fix last change.
20024 2003-05-26 John Paul Wallington <jpw@gnu.org>
20026 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
20028 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
20030 * window.c (Fset_window_buffer): Add type of `keep_margins'.
20031 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
20033 * window.h (window_box_text_cols): Declare.
20035 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
20036 (x_draw_vertical_border): Remove unused var `f'.
20038 * xfaces.c (build_scalable_font_name): Remove `unused var
20039 pixel_size' warning.
20041 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
20043 * unexelf.c (unexec): Remove `unused var n' warning.
20045 * strftime.c (my_strftime_localtime_r): Remove `defined but
20048 * process.c (allocate_pty): Remove `unused var stb' and
20049 `cp might be used uninitialized' warnings.
20051 * dispnew.c (mode_line_string): Remove unused var `f'.
20053 * coding.c (find_safe_codings): Remove unused var `i'.
20055 * bytecode.c (Fbyte_code): Remove `unused val' warning.
20057 * buffer.c (Fkill_buffer): Remove unused var `list'.
20059 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
20061 2003-05-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20063 * frame.c (make_frame): Condition want_fullscreen with
20064 HAVE_WINDOW_SYSTEM.
20066 2003-05-25 Juanma Barranquero <lektu@terra.es>
20068 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
20069 (Fwindow_scroll_bars): Fix typo in docstring.
20071 2003-05-24 Kim F. Storm <storm@cua.dk>
20073 The following changes serve several purposes:
20075 1) Swap the position of fringes and display margins in windows, i.e.
20076 the fringes are now displayed between the margins and the text area
20079 2) Allow fringe and scroll bar parameters to be set per-buffer and
20080 per-window (like display margins). Such settings are now stored
20081 in window configurations, preserved when frames are resized, and
20082 copied when windows are split vertically or horizontally.
20083 Several bugs related to display margins have been fixed.
20085 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
20087 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
20088 rather than FRAME_WIDTH (FRAME_FONT (f)).
20090 5) Introduce a consistent naming of variables, members and macros
20091 depending on whether their value is measured in pixels or in
20092 canonical columns/lines. Pixel dimensions are named *_width and
20093 *_height, while canonical columns/lines are named *_cols and
20094 *_lines. Pixel positions are named *_x and *_y, while column/line
20095 positions are named *_col and *_line.
20097 6) Consolidate more of the X, W32, and MAC gui code by moving
20098 common data into struct frame, and generalize it for the non-gui
20099 case by using suitable defaults.
20101 7) Cleanup and consolidate the macros controlling frame and window
20102 layout into frame.h and window.h, and generalize the use of the
20103 various window_box_* functions (enhanced to handle the new fringe
20104 position and the per-window fringe and scroll bar settings).
20106 * frame.h (struct frame): Rename members height to text_lines,
20107 width to text_cols, window_height to total_lines, window_width to
20108 total_cols, new_height to new_text_lines, new_width to
20109 new_text_cols. All uses changed.
20110 (struct frame): New members which consolidate common members of
20111 x_output, w32_output, and mac_output structures: left_pos,
20112 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
20113 win_gravity, size_hint_flags, border_width, internal_border_width,
20114 line_height, fringe_cols, left_fringe_width, right_fringe_width,
20115 want_fullscreen. All uses changed.
20116 (struct frame): New member column_width contaning the canonical
20117 column width, analogue to line_height. All uses changed.
20118 (struct frame): Rename members scroll_bar_pixel_width to
20119 config_scroll_bar_width, and scroll_bar_cols to
20120 config_scroll_bar_cols. All uses changed.
20121 (struct frame): New member scroll_bar_actual_width which
20122 consolidates and renames the vertical_scroll_bar_extra member of
20123 x_output, w32_output, and mac_output structures. All uses changed.
20124 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
20125 from x/w32/macterm.h files. All uses changed. Also change code
20126 which referred to f->output_data...->pixel_height.
20127 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
20128 from x/w32/macterm.h files. All uses changed. Also change code
20129 which referred to f->output_data...->pixel_width.
20130 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
20131 Also change code which referred to f->height.
20132 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
20133 Also change code which referred to f->width.
20134 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
20135 to update new_text_lines and new_text_cols members directly.
20136 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
20137 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
20138 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
20139 FRAME_SCROLL_BAR_COLS. All uses changed.
20140 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
20141 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
20142 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
20143 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
20144 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
20145 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
20146 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
20147 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
20148 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
20149 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
20150 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
20151 Unconditionally return line_height member (it now has proper value
20152 also for non-window frames).
20153 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
20154 return new column_width member (rather than the default font width).
20155 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
20156 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
20157 from x/w32/macterm.h files. Unconditionally return corresponding
20158 member of frame structure (they now have proper values also for
20159 non-window frames).
20160 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
20161 Calculate return value from left and right widths.
20162 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
20163 internal_border_width member (has proper value for non-window frame).
20164 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
20165 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
20166 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
20167 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
20168 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
20169 consolidated from xterm.h, macterm.h, and w32term.h.
20170 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
20171 consolidated from xterm.h, macterm.h, and w32term.h.
20172 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
20173 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
20174 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
20175 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
20176 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
20177 consolidated from x/mac/w32term.h.
20178 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
20179 consolidated from x/mac/w32term.h.
20180 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
20181 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
20182 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
20183 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
20185 * window.h (struct window): Rename members left to left_col,
20186 top to top_line, height to total_lines, width to total_cols,
20187 left_margin_width to left_margin_cols, right_margin_width to
20188 right_margin_cols, orig_height to orig_total_lines, orig_top to
20189 orig_top_line. All uses changed.
20190 (struct window): New members left_fringe_width, right_fringe_width,
20191 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
20192 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
20193 New macros primarily used to simplify other macros.
20194 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
20195 referred to XINT (w->width).
20196 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
20197 referred to XINT (w->height).
20198 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
20199 referred to XINT (w->width) * canon_x_unit.
20200 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
20201 referred to XINT (w->height) * canon_y_unit.
20202 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
20203 referred to XINT (w->left).
20204 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
20205 all uses and code that referred to XINT (w->left) + XINT (w->width).
20206 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
20207 referred to XINT (w->top).
20208 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
20209 referred to XINT (w->top) + XINT (w->height).
20210 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
20211 referred to XINT (w->left) * canon_x_unit.
20212 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
20213 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
20214 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
20215 referred to XINT (w->top) * canon_y_unit.
20216 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
20217 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
20218 (WINDOW_LEFTMOST_P): New macro.
20219 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
20221 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
20223 (WINDOW_BOX_LEFT_EDGE_X): Rename from
20224 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
20225 Do not exclude left fringe width.
20226 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
20227 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
20228 Do not exclude fringe widths.
20229 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
20230 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
20231 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
20232 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
20233 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
20234 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
20235 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
20236 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
20237 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
20238 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
20239 New macros. Change code which referenced corresponding
20240 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
20241 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
20242 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
20243 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
20244 allow per-window scroll-bar settings.
20245 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
20246 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
20247 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
20248 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
20249 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
20250 FRAME_SCROLL_BAR_WIDTH.
20251 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
20252 (WINDOW_SCROLL_BAR_AREA_X): New macros.
20253 (WINDOW_HEADER_LINE_HEIGHT): Rename from
20254 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
20255 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
20256 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
20257 (WINDOW_BOX_TEXT_HEIGHT): Rename from
20258 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
20259 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
20260 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
20261 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
20262 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
20263 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
20264 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
20265 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
20266 (window_from_coordinates): Update prototype.
20267 (Fset_window_buffer): Update EXFUN.
20268 (set_window_buffer): Update prototype.
20270 * dispextern.h (struct glyph_matrix): Rename members window_left_x
20271 to window_left_col, window_top_y to window_top_line. All uses
20273 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
20274 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
20275 internal_border_width is now set to 0 for non-window frames.
20276 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
20277 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
20278 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
20279 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
20280 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
20281 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
20282 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
20283 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
20284 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
20285 Move to window.h and renamed [see window.h changes].
20286 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
20287 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
20288 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
20289 Use WINDOW_TOTAL_LINES.
20290 (frame_update_line_height): Remove prototype.
20292 * buffer.h (struct buffer): Rename members measured in columns:
20293 left_margin_width to left_margin_cols, right_margin_width to
20294 right_margin_cols. All uses changed.
20295 New members left_fringe_width, right_fringe_width,
20296 fringes_outside_margins for per-buffer fringe settings.
20297 New members scroll_bar_width and vertical_scroll_bar_type for
20298 per-buffer scroll bar settings.
20300 * buffer.c (init_buffer_once): Set buffer_defaults and
20301 buffer_local_flags for new buffer-local variables
20302 left_fringe_width, right_fringe_width, fringes_outside_margins,
20303 scroll_bar_width, and vertical_scroll_bar_type.
20304 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
20305 default-* variables for them.
20307 * dispnew.c: Make (many) trivial substitutions for renamed and
20308 new macros in dispextern.h, frame.h and window.h.
20309 (mode_line_string): No need to adjust width for mode lines, as it
20310 is already adjusted by the caller.
20311 (marginal_area_string): Handle fringes inside/outside margins.
20313 * frame.c: Make (many) trivial substitutions for renamed and
20314 new macros in dispextern.h, frame.h and window.h.
20315 (make_frame): Initialize left_fringe_width, right_fringe_width,
20316 fringe_cols, scroll_bar_actual_width, border_width,
20317 internal_border_width, column_width, line_height, x_pixels_diff,
20318 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
20319 members with values suitable for a non-window frames.
20321 * gtkutil.c: Make (many) trivial substitutions for renamed and
20322 new macros in dispextern.h, frame.h and window.h.
20324 * indent.c: Make (few) trivial substitutions for renamed and
20325 new macros in dispextern.h, frame.h and window.h.
20327 * keyboard.c: Make (many) trivial substitutions for renamed and
20328 new macros in dispextern.h, frame.h and window.h.
20329 (make_lispy_event): Use window positions returned from
20330 window_from_coordinates when constructing the lisp event for
20331 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
20332 (incorrect) values locally.
20333 (make_lispy_movement): Use window positions returned from
20334 window_from_coordinates when constructing the lisp event, rather
20335 than calculating (incorrect) values locally.
20337 * scroll.c: Make (some) trivial substitutions for renamed and
20338 new macros in dispextern.h, frame.h and window.h.
20340 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
20343 * sysdep.c: Make (few) trivial substitutions for renamed and
20344 new macros in dispextern.h, frame.h and window.h.
20346 * term.c: Make (some) trivial substitutions for renamed and
20347 new macros in dispextern.h, frame.h and window.h.
20349 * widget.c: Make (few) trivial substitutions for renamed and
20350 new macros in dispextern.h, frame.h and window.h.
20352 * window.c: Make (many) trivial substitutions for renamed and
20353 new macros in dispextern.h, frame.h and window.h.
20354 (make_window): Initialize new members
20355 left_margin_cols, right_margin_cols, left_fringe_width,
20356 right_fringe_width, fringes_outside_margins, scroll_bar_width,
20357 and vertical_scroll_bar_type.
20358 (coordinates_in_window): Adapt to new fringe/margin positions
20359 and per-window fringes and scroll-bars.
20360 Fix bug related to incorrectly adjusting coordinates by
20361 frame's internal_border_width (the effect normally negible since
20362 the internal_border_width is typically 0 or 1 pixel, but very
20363 noticeable for an internal_border_width of e.g. 25 pixels).
20364 Upon successful return (other than ON_NOTHING), the coordinates
20365 are now always properly converted to window relative for the
20366 given display element.
20367 (window_from_coordinates): Add new parameters wx and wy to
20368 return the window relative x and y position in the returned
20369 window and part. A null arg means, don't return the position.
20370 All callers changed.
20371 (adjust_window_margins): New function which may reduce the width
20372 of the display margins if a window's text area is too small after
20373 resizing or splitting windows.
20374 (size_window): Fix bug that did not account for display margin
20375 widths when checking the minimum width of a window; use
20376 adjust_window_margins.
20377 (set_window_buffer): Call Fset_window_fringes and
20378 Fset_window_scroll_bars to setup per-window elements.
20379 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
20380 existing display margin, fringe widths, and scroll bar settings
20381 (e.g. after splitting a window or resizing the frame).
20382 All callers changed.
20383 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
20384 (Fsplit_window): Duplicate original window's display margin,
20385 fringe, and scroll-bar settings; then call Fset_window_buffer with
20386 KEEP_MARGINS non-nil. This fixes a bug which caused a split
20387 window to only preserve the display margins in one of the windows.
20388 When splitting horizontally, call adjust_window_margins on both
20389 windows to ensure that the text area of the new windows is non too
20390 narrow. This fixes a bug which could cause Emacs to trap if the
20391 width of the split window was less than the width of the display
20393 (window_box_text_cols): Rename from window_internal_width.
20394 All uses changed. Adapt to per-window fringes and scroll bars.
20395 Fix bug that caused vertical separator to be subtracted also on
20396 window frames. Fix another bug that did not reduce the returned
20397 value by the columns used for display margins.
20398 (window_scroll_line_based): Fix bug related to scrolling too much
20399 when display margins are present (implicitly fixed by the fix to
20400 window_box_text_cols).
20401 (scroll_left, scroll_right): Fix bug related to scrolling too far
20402 by default when display margins are present (implicitly fixed by
20403 the fix to window_box_text_cols).
20404 (struct saved_window): Rename members left to left_col, top to
20405 top_line, width to total_cols, height to total_lines, orig_top to
20406 orig_top_line, orig_height to orig_total_lines. All uses changed.
20407 New members left_margin_cols, right_margin_cols,
20408 left_fringe_width, right_fringe_width, fringes_outside_margins,
20409 scroll_bar_width, and vertical_scroll_bar_type for saving
20410 per-window display elements.
20411 (Fset_window_configuration): Restore display margins, fringes,
20412 and scroll bar settings. This fixes a bug which caused display
20413 margins to be discarded when saving and restoring a window
20415 (save_window_save): Save display margins, fringes, and scroll bar
20416 settings. This fixes a bug which caused display margins to be
20417 discarded when saving and restoring a window configuration.
20418 (Fset_window_margins): Do nothing if display margins are not
20419 really changed. Otherwise, call adjust_window_margins to ensure
20420 the text area doesn't get too narrow. This fixes a bug which
20421 could cause Emacs to trap if setting display margins wider than
20422 the width of the window.
20423 (Fset_window_fringes): New defun to allow user to specifically set
20424 this window's fringe widths and position vs. display margins.
20425 (Fwindow_fringes): New defun to return window's actual fringe settings.
20426 (Fset_window_scroll_bars): New defun to allow user to specifically
20427 set this window's scroll bar width and position.
20428 (Fwindow_scroll_bars): New defun to return window's actual scroll
20430 (compare_window_configurations): Also compare display margins,
20431 fringes, and scroll bar settings.
20432 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
20434 * xdisp.c: Make (many) trivial substitutions for renamed and
20435 new macros in dispextern.h, frame.h and window.h.
20436 (window_box_width): Adapt to per-window fringes and scroll bars,
20437 and new fringe vs. display margin position. Note that returned
20438 value is no longer guaranteed to be a whole multiple of the frame
20439 column width, since per-window fringes may now be any width.
20440 (window_box_left_offset): New function like window_box_left, but
20441 value is relative to left border of window (rather than frame).
20442 (window_box_right_offset): New function like window_box_right,
20443 but value is relative to left border of window.
20444 (window_box_left): Adapt to per-window fringes and scroll bars,
20445 and new fringe vs. display margin position. Simplify by using
20446 WINDOW_LEFT_EDGE_X and window_box_left_offset.
20447 (window_box): Allow null args for unnecessary return values;
20448 change/simplify relevant callers.
20449 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
20450 and new fringe vs. display margin position.
20451 Use window_box_left_offset and window_box_right_offset
20452 (get_glyph_string_clip_rect): Adapt to per-window fringes and
20453 scroll bars, and new fringe vs. display margin position.
20454 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
20455 (draw_fringe_bitmap): Rework to handle per-window fringes and new
20456 fringe vs. display margin position.
20457 (hscroll_window_tree): Use window_box_width instead of window_box.
20458 (redisplay_window): Adapt to per-window scroll bars.
20459 (draw_glyphs): Rework to handle per-window fringes and scroll
20460 bars, and new fringe vs. display margin position.
20461 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
20462 (x_clear_end_of_line): Adapt to per-window fringes and scroll
20463 bars, and new fringe vs. display margin position. Fix bug which
20464 increased total width of full_width rows by width of scroll bars
20465 although window's total width already includes that.
20466 (x_fix_overlapping_area): Simplify using window_box_left_offset.
20467 (expose_area): Simplify using window_box_left_offset.
20468 (x_draw_vertical_border): Handle per-window scroll bar settings,
20469 mixing windows with left, right and no scroll bars.
20471 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
20472 where it's used in x_list_fonts (for clarity).
20473 (frame_update_line_height): Remove unused function; functionality
20474 is now done directly when setting the default font in x_set_font.
20476 * xfns.c: Make (many) trivial substitutions for renamed and
20477 new macros in dispextern.h, frame.h and window.h.
20479 * xmenu.c: Make (some) trivial substitutions for renamed and
20480 new macros in dispextern.h, frame.h and window.h.
20482 * xterm.h (struct x_output): Move members left_pos, top_pos,
20483 border_width, pixel_height, pixel_width, line_height,
20484 internal_border_width, vertical_scroll_bar_extra,
20485 left_fringe_width, right_fringe_width, fringe_cols,
20486 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
20487 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
20488 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
20489 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
20490 (PIXEL_WIDTH, PIXEL_HEIGHT)
20491 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
20492 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
20493 frame.h and renamed [see frame.h changes].
20494 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
20495 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
20496 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
20497 and renamed [see frame.h changes].
20499 * xterm.c: Make (several) trivial substitutions for renamed and
20500 new macros in dispextern.h, frame.h and window.h.
20501 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
20502 (scroll_run): Adapt to new fringe position.
20503 (glyph_rect): Use window coordinates returned from
20504 window_from_coordinates rather than frame_to_window_pixel_xy.
20505 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
20507 (handle_one_xevent): Simplify a USE_GTK conditional.
20508 (x_clip_to_row): Remove superfluous whole_line_p arg and code
20509 (fringes are now inside margins, i.e. always in the clipping area).
20510 All callers changed.
20511 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
20512 directly, then call compute_fringe_widths. Don't call
20513 frame_update_line_height.
20515 * w32term.h (struct w32_output): Move members left_pos, top_pos,
20516 border_width, pixel_height, pixel_width, line_height,
20517 internal_border_width, vertical_scroll_bar_extra,
20518 left_fringe_width, right_fringe_width, fringe_cols,
20519 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
20520 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
20521 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
20522 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
20523 (PIXEL_WIDTH, PIXEL_HEIGHT)
20524 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
20525 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
20526 frame.h and renamed [see frame.h changes].
20527 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
20528 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
20529 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
20530 and renamed [see frame.h changes].
20532 * w32term.c: Make (several) trivial substitutions for renamed and
20533 new macros in dispextern.h, frame.h and window.h.
20534 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
20535 (glyph_rect): Use window coordinates returned from
20536 window_from_coordinates rather than frame_to_window_pixel_xy.
20537 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
20539 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
20540 (fringes are now inside margins, i.e. always in the clipping area).
20541 All callers changed.
20542 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
20543 directly, then call compute_fringe_widths. Don't call
20544 frame_update_line_height.
20546 * w32console.c: Make (few) trivial substitutions for renamed and
20547 new macros in dispextern.h, frame.h and window.h.
20549 * w32fns.c: Make (many) trivial substitutions for renamed and
20550 new macros in dispextern.h, frame.h and window.h.
20552 * w32menu.c: Make (few) trivial substitutions for renamed and
20553 new macros in dispextern.h, frame.h and window.h.
20555 * macterm.h (struct mac_output): Move members left_pos, top_pos,
20556 border_width, pixel_height, pixel_width, line_height,
20557 internal_border_width, vertical_scroll_bar_extra,
20558 left_fringe_width, right_fringe_width, fringe_cols,
20559 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
20560 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
20561 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
20562 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
20563 (PIXEL_WIDTH, PIXEL_HEIGHT)
20564 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
20565 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
20566 frame.h and renamed [see frame.h changes].
20567 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
20568 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
20569 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
20570 and renamed [see frame.h changes].
20572 * macterm.c: Make (several) trivial substitutions for renamed and
20573 new macros in dispextern.h, frame.h and window.h.
20574 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
20575 (glyph_rect): Use window coordinates returned from
20576 window_from_coordinates rather than frame_to_window_pixel_xy.
20577 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
20579 (x_clip_to_row): Remove superfluous whole_line_p arg and code
20580 (fringes are now inside margins, i.e. always in the clipping area).
20581 All callers changed.
20582 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
20583 directly, then call compute_fringe_widths. Don't call
20584 frame_update_line_height.
20586 * macfns.c: Make (several) trivial substitutions for renamed and
20587 new macros in dispextern.h, frame.h and window.h.
20588 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
20590 * macmenu.c: Make (few) trivial substitutions for renamed and
20591 new macros in dispextern.h, frame.h and window.h.
20593 * msdos.h (struct x_output): Remove members left_pos, top_pos,
20594 and line_height, and use corresponding new members in struct
20595 frame. All uses changed.
20596 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
20597 superseeded by corresponding macros in frame.h.
20599 * msdos.c: Make (several) trivial substitutions for renamed and
20600 new macros in dispextern.h, frame.h and window.h.
20601 (IT_note_mouse_highlight): Use updated window coordinates returned
20602 by window_from_coordinates, rather than adjusting them locally.
20603 (internal_terminal_init): No need to initialize line_height here;
20604 it now defaults to 1.
20606 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
20608 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
20609 dropping `down' events.
20611 2003-05-24 Andreas Schwab <schwab@suse.de>
20613 * coding.c (find_safe_codings): Fix last change.
20615 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
20617 * xfns.c (x_window): Fix typo from 2003-05-21 change.
20619 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
20621 * xdisp.c (display_mode_element): Increase max depth.
20622 Simplify the error handling code. Use a different error string
20623 for the case where we hit the depth limit.
20625 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
20627 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
20629 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
20631 * intervals.c (get_local_map): Don't get char-property of previous
20632 point any more: get_pos_property already does it and better.
20634 2003-05-21 Dave Love <fx@gnu.org>
20636 [Merged from unicode branch.]
20638 * xfns.c (x_window, x_window): Use use_xim.
20640 * xterm.c (use_xim): Initialize.
20641 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20642 (x_term_init): Maybe set use_xim.
20644 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20646 2003-05-21 Jason Rumney <jasonr@gnu.org>
20648 * unexw32.c (_start): Remove _fmode initialization.
20650 * emacs.c (main) [WINDOWSNT]: Move it here.
20652 2003-05-20 Dave Love <fx@gnu.org>
20654 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
20656 2003-05-19 Richard M. Stallman <rms@gnu.org>
20658 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
20659 as value for QCfont attribute.
20660 (realize_default_face): lface should already exist; crash if not.
20661 Specify 0 for FORCE_P when calling set_lface_from_font_name.
20663 * frame.c (Fignore_event): Doc fix.
20665 2003-05-19 Kenichi Handa <handa@m17n.org>
20667 * coding.c (decode_coding_string): Handle post-read-conversion
20668 even if the coding doesn't require decoding.
20670 2003-05-18 Richard M. Stallman <rms@gnu.org>
20672 * callproc.c (Fcall_process_region): Doc fix.
20674 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
20676 * lread.c (Fload): Print a message if package is obsolete.
20678 * window.c (Fselect_window): Add optional `norecord' arg.
20679 (select_window_1): Fold into Fselect_window.
20680 (select_window_norecord): New function.
20681 (temp_output_buffer_show): Use it. Preserve current buffer.
20683 * window.h (Fselect_window): Update declaration.
20685 * window.c (delete_window, Fother_window, Fset_window_configuration):
20686 * minibuf.c (read_minibuf):
20687 * macterm.c (x_new_focus_frame):
20688 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
20689 * callint.c (Fcall_interactively):
20690 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
20692 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
20694 2003-05-17 David Kastrup <dak@gnu.org>
20696 * process.c (read_process_output): Back out change from 2003-03-09.
20698 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
20700 * editfns.c (get_pos_property): Don't assume that `object' = nil.
20702 * textprop.c (text_property_stickiness): New arg `buffer'.
20704 * intervals.h (text_property_stickiness): New arg `buffer'.
20705 (get_pos_property): Declare.
20707 * intervals.c (get_local_map): Use get_pos_property, to obey
20708 stickiness and empty overlays.
20709 (create_root_interval, graft_intervals_into_buffer): Use BEG.
20710 (merge_properties, intervals_equal, merge_properties_sticky):
20712 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
20714 2003-05-17 Richard M. Stallman <rms@gnu.org>
20716 * minibuf.c (read_minibuf): If buffer is empty, record the default
20718 (Fminibuffer_complete_word): When deleting the overlap, take account
20719 of its real position.
20721 * fns.c (map_char_table): Fix previous change.
20723 * syntax.c (find_defun_start):
20724 When open_paren_in_column_0_is_defun_start,
20725 return beginning of buffer.
20727 * lisp.h (map_char_table): Declare added arg.
20729 * fns.c (map_char_table): New arg TABLE gets the master table.
20731 Process default and inheritance, resorting to Faref if necessary.
20733 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20734 (Faccessible_keymaps): Pass new arg to map_char_table.
20736 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
20738 * casetab.c (set_case_table): Pass new arg to map_char_table.
20740 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
20742 * lisp.h (specbinding_func): New typedef.
20743 (struct specbinding): Use specbinding_func, to put the `volatile'
20744 in the right place.
20746 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
20747 to avoid GCC warning.
20749 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
20751 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
20753 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
20755 * keyboard.c (apply_modifiers): Don't fill the other cache.
20757 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
20759 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
20761 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
20762 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
20763 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
20764 (Fset_window_configuration, Fcurrent_window_configuration)
20765 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
20766 (Fpos_visible_in_window_p, mark_window_cursors_off)
20767 (window_internal_height, window_internal_width, Frecenter)
20768 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
20769 (replace_buffer_in_all_windows, init_window_once, init_window)
20770 (syms_of_window, keys_of_window): Move from lisp.h.
20771 * lisp.h: Move window.c declarations to window.h.
20773 * bytecode.c: Include window.h.
20774 * emacs.c: Include window.h.
20776 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
20777 (keyremap): Add `parent' field.
20778 (keyremap_step): Use it. Remove `parent' argument.
20779 (read_key_sequence): Setup and use the new `parent' field.
20781 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
20783 * keyboard.c (adjust_point_for_property): Ensure termination.
20785 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
20787 * keyboard.c (follow_key): Remove dead variable `did_meta'.
20788 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
20789 duplicated handling of function-key-map and key-translation-map
20790 in read_key_sequence.
20791 (read_key_sequence): Use them.
20793 * keyboard.c (adjust_point_for_property): Try harder to move point
20794 to the non-sticky end of an invisible property.
20796 * xdisp.c (single_display_prop_intangible_p): Make `space' display
20797 property intangible as well.
20799 2003-05-10 Andreas Schwab <schwab@suse.de>
20801 * xmenu.c (single_menu_item): Change last parameter to void* to
20804 2003-05-09 Richard M. Stallman <rms@gnu.org>
20806 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
20807 Bind Qinhibit_modification_hooks to t so there will be no GC.
20808 Rename local `tem' to `save_deactivate_mark'.
20810 * eval.c (specpdl_ptr): Declare volatile.
20811 (unbind_to): Copy the whole binding and decrement specpdl_ptr
20812 before doing the work of unbinding it.
20814 * lisp.h (struct specbinding): Declare elements volatile.
20815 (specpdl_ptr): Declare volatile.
20817 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
20819 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
20820 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
20822 2003-05-08 Dave Love <fx@gnu.org>
20824 * coding.c (Vlast_coding_system_used): Doc fix.
20826 2003-05-07 Jason Rumney <jasonr@gnu.org>
20828 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
20829 when system does not support them.
20831 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
20833 * fileio.c (Qwrite_region_annotate_functions): New var.
20834 (build_annotations): Use it to process the global part of the hook.
20835 (syms_of_fileio): Init and staticpro it.
20837 * keyboard.c (safe_run_hooks_error): Display a message instead of
20838 silently ignoring the error.
20840 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
20842 * keyboard.c (input_available_signal): Mark static.
20843 (menu_bar_items): Use map_keymap.
20844 (menu_bar_one_keymap): Remove.
20845 (menu_bar_item): Adjust arglist (for use in map_keymap).
20846 Properly hide a second binding when not both are keymaps.
20848 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
20849 (single_keymap_panes): Use it and map_keymap.
20850 (single_menu_item): Use skp as well.
20852 * keymap.h (map_keymap_function_t): New type.
20853 (map_keymap): Declare.
20855 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
20856 (map_keymap_call, Fmap_keymap): New functions.
20857 (syms_of_keymap): Defsubr map-keymap.
20859 2003-05-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20861 * gtkutil.c (create_dialog, make_widget_for_menu_item)
20862 (make_menu_item, create_menus, xg_update_menu_item): Don't call
20863 ..._with_mnemonic functions for menu items.
20865 2003-05-01 Kenichi Handa <handa@m17n.org>
20867 * coding.c (coding_system_accept_latin_extra_p): Delete this
20869 (find_safe_codings): Pay attention to
20870 the property tranlsation-table-for-encode of each codings.
20871 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
20873 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
20875 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
20877 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
20879 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
20881 * lisp.h (CHECK): Wrap args in parenthesis.
20882 (specbind): Fix doc: symbol = Qnil is not supported any more.
20884 * bytecode.c (Fbyte_code) <unwind-protect>:
20885 Use Fprogn rather than 0 and Qnil.
20887 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
20888 `double', and `triple' modifiers as well.
20890 2003-04-30 Richard M. Stallman <rms@gnu.org>
20892 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
20894 * alloc.c (abort_on_gc): New variable.
20895 (Fgarbage_collect): Abort if abort_on_gc is set.
20897 * lisp.h (abort_on_gc): Add decl.
20899 * eval.c (Fsignal): Clear abort_on_gc.
20901 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
20902 Reinit FORMAT_START and END before second scan.
20904 * xdisp.c (move_it_vertically_backward): Do the final big else
20905 even if nlines is 0.
20907 * xdisp.c (redisplay_internal): Finish the per-frame loop
20908 even if redisplay is suspended by input.
20910 2003-04-24 Andrew Choi <akochoi@shaw.ca>
20912 * macterm.c (x_list_fonts): Return all fonts that match if
20915 2003-04-25 Kenichi Handa <handa@m17n.org>
20917 * syntax.c (skip_chars): Fix previous change.
20919 2003-04-24 Kenichi Handa <handa@m17n.org>
20921 * syntax.c (skip_chars): Make the code faster by using the common
20922 technique of *p, *stop, and *endp.
20924 2003-04-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20926 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
20927 tool_bar_items so GTK tool bar expose callback does not access items
20930 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
20932 * eval.c (Fapply): Undo last change and add a comment about why.
20934 2003-04-18 Miles Bader <miles@gnu.org>
20936 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
20937 pickier PARSE_MULTIBYTE_SEQ.
20939 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
20941 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
20942 Use XCDR, XCAR, CONSP.
20943 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
20944 (Fapply): Remove unnecessary GCPRO.
20946 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
20948 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
20950 * buffer.h: Don't hardcode BEG==1.
20952 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
20954 2003-04-16 Richard M. Stallman <rms@gnu.org>
20956 * xdisp.c (try_window, try_window_reusing_current_matrix):
20957 When at end of window, set window_end_pos to Z-ZV.
20959 * buffer.c (Foverlay_recenter): Doc fix.
20961 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
20963 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
20965 2003-04-14 Andrew Choi <akochoi@shaw.ca>
20967 * macterm.c (mac_check_for_quit_char): Don't check more often than
20970 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
20972 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
20973 specially, so that they can't hide an implicit switch-frame event.
20974 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
20975 (head_table): Use switch-frame as event_kind for select-window.
20976 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
20978 * editfns.c (Fformat): Lisp_Object/int mixup.
20979 (format2): Remove unused var numargs.
20981 2003-04-11 Kenichi Handa <handa@m17n.org>
20983 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
20984 (Qafter_insert_file_set_coding): New variable.
20985 (syms_of_fileio): Initialize and staticpro it. Delete declaration
20986 for after-insert-file-adjust-coding-function.
20987 (Finsert_file_contents): Call Qafter_insert_file_set_coding
20988 instead of Vafter_insert_file_adjust_coding_function.
20990 2003-04-11 Kenichi Handa <handa@m17n.org>
20992 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
20994 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
20995 string. Callers changed.
20997 2003-04-10 Kenichi Handa <handa@m17n.org>
20999 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
21000 (syms_of_fileio): Declare it as a lisp variable.
21001 (Finsert_file_contents):
21002 Call Vafter_insert_file_adjust_coding_function before calling
21005 2003-04-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21007 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
21008 get GtkAdjustment as widget now is a GtkRange.
21010 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
21011 GtkRange to avoid memory leak.
21013 2003-04-09 Kenichi Handa <handa@m17n.org>
21015 * xfaces.c (Vface_font_rescale_alist): New variable.
21016 (struct font_name): New member rescale_ratio.
21017 (font_rescale_ratio): New function.
21018 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
21019 (better_font_p): On comparing point sized, pay attention to
21020 recale_ratio member of fonts.
21021 (build_scalable_font_name): Reflect font->rescale_ratio in the
21023 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21025 * lread.c (read1): Before calling index, check if the 2nd
21026 arguemnt is in ASCII range.
21028 2003-04-08 Richard M. Stallman <rms@gnu.org>
21030 * fileio.c (Ffile_symlink_p): Doc fix.
21032 * editfns.c (Fformat): Translate positions of text properties
21033 in the format string to apply them to the result.
21035 * fileio.c (Finsert_file_contents): Doc fix.
21036 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21038 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
21040 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
21042 2003-04-08 Steven Tamm <steventamm@mac.com>
21044 * mac.c (init_mac_osx_environment): Switch libexec and bin so
21045 that self-contained application finds libexec files.
21047 2003-04-08 Kenichi Handa <handa@m17n.org>
21049 * coding.c (code_convert_region_unwind):
21050 Set Vlast_coding_system_used to the argument.
21051 (code_convert_region): If post-read-conversion function changed
21052 the value of last-coding-sytem, keep the new value in
21053 coding->symbol so that it won't be overridden.
21054 (run_pre_post_conversion_on_str): Likewise.
21055 (coding_system_accept_latin_extra_p): New function.
21056 (find_safe_codings): Pay attention to characters registered in
21057 latin-extra-code-table.
21059 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
21061 * Makefile.in (md5.o): Add missing dependency info.
21063 2003-04-06 Richard M. Stallman <rms@gnu.org>
21065 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
21067 * marker.c (verify_bytepos): New function.
21069 * intervals.c (set_intervals_multibyte_1): When becoming
21070 multibyte, adjust right and left child sizes to a whole set of
21071 characters. If an interval gets zero total-length, delete it.
21072 If an interval consists of just its children, delete one of them.
21074 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
21075 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
21077 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
21079 (lisp_malloc): Do the work here directly.
21081 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
21083 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
21086 2003-04-04 Kenichi Handa <handa@m17n.org>
21088 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
21089 destructively change "%S" to "%s".
21091 2003-04-03 Miles Bader <miles@gnu.org>
21093 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
21096 2003-04-01 Dave Love <fx@gnu.org>
21098 * xfns.c (xpm_lookup_color): Grok "opaque".
21100 2003-03-31 Andrew Choi <akochoi@shaw.ca>
21102 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
21105 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
21107 * macterm.h (struct mac_output): Define x_pixels_diff and
21110 2003-03-31 Juanma Barranquero <lektu@terra.es>
21112 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
21113 blockinput.h and files included from it.
21115 2003-03-31 Kim F. Storm <storm@cua.dk>
21117 The following changes consolidates the common code related to
21118 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
21119 files into frame.c.
21121 * frame.c: Include blockinput.h.
21122 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
21123 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
21124 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
21126 (struct frame_parm_table, frame_parms): New table for describing
21127 frame parameters and their associated Q-variable.
21128 The order of the parameters corresponds to the sequence of the
21129 frame_parm_handlers table in redisplay_interface.
21130 (x_fullscreen_move, x_set_frame_parameters)
21131 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
21132 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
21133 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
21134 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
21135 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
21136 Generic functions for processing of frame parameters.
21137 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
21138 (display_x_get_resource, x_get_resource_string): Functions for
21139 generic access to X resources.
21140 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
21141 (x_default_parameter, Fx_parse_geometry): Functions for generic
21142 access to frame parameters.
21143 (x_figure_window_size): Generic calculation of frame size.
21144 Fixed to add space needed for tool bar. Also setup size_hint_flags.
21145 (syms_of_frame): Intern and staticpro frame parameter variables.
21146 Defvar_lisp Vx_resource_class and Vx_resource_name here.
21147 Defsubr Sx_get_resource and Sx_parse_geometry.
21149 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
21150 parameter related vars defined in frame.c.
21151 (EMACS_CLASS): Define here.
21152 (enum FULLSCREEN_*): Define here.
21153 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
21154 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
21155 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
21156 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
21157 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
21158 (x_set_visibility, x_set_autoraise, x_set_autolower)
21159 (x_set_unsplittable, x_set_vertical_scroll_bars)
21160 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
21161 (x_figure_window_size): Add prototypes.
21163 * dispextern.h (frame_parm_handler): New typedef.
21164 (struct redisplay_interface): New member frame_parm_handlers.
21165 (enum resource_types): Move declaration here.
21166 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
21167 (x_default_parameter): Add prototypes.
21169 * window.c: Remove extern decl for frame parameter vars.
21170 (change_window_heights): New generic function;
21171 replaces x_change_window_heights. All users changed.
21173 * window.h (change_window_heights): Add prototype.
21175 * xfaces.c: Remove extern decl for frame parameter vars.
21177 * xterm.h (EMACS_CLASS): Remove. Use generic define.
21178 (struct w32_display_info): Fix type of xrdb member.
21179 (enum FULLSCREEN_*): Remove.
21180 Remove prototypes for generic functions (in frame.h).
21182 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
21183 parameters now defined in frame.h and frame.c.
21184 (Vx_resource_name): Remove. Use generic var.
21185 (enum x_frame_parms): Remove (bogus, unused enum).
21186 (check_x_display_info): Make non-static (for frame.c).
21187 (struct x_frame_parm_table, x_frame_parms): Remove.
21188 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
21189 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
21190 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
21191 (x_change_window_heights, x_set_autoraise, x_set_autolower)
21192 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
21193 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
21194 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
21195 Remove. Use generic functions instead.
21196 (enum resource_types): Remove.
21197 (x_set_scroll_bar_default_width): New global function (for frame.c).
21198 (Fx_create_frame): Depend on x_figure_window_size to add space for
21199 toolbar and setup size_hint_flags.
21200 (x_frame_parm_handlers): New table for redisplay_interface.
21201 (syms_of_xfns): Don't intern/staticpro removed vars.
21203 * xterm.c: Remove unnecessary extern declarations.
21204 (x_fullscreen_adjust): Remove. Use generic instead.
21205 (x_redisplay_interface): Add x_frame_parm_handlers member.
21207 * w32gui.h (XrmDatabase): New (dummy) typedef.
21209 * w32term.h (EMACS_CLASS): Remove. Use generic define.
21210 (struct w32_display_info): Fix type of xrdb member.
21211 (enum FULLSCREEN_*): Remove.
21212 (x_fullscreen_adjust): Remove prototype.
21214 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
21215 parameters now defined in frame.h and frame.c.
21216 (Vx_resource_name): Remove. Use generic var.
21217 (enum x_frame_parms): Remove (bogus, unused enum).
21218 (check_x_display_info): Make non-static (for frame.c).
21219 (struct x_frame_parm_table, x_frame_parms): Remove.
21220 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
21221 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
21222 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
21223 (x_change_window_heights, x_set_autoraise, x_set_autolower)
21224 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
21225 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
21226 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
21227 Remove. Use generic functions instead.
21228 (enum resource_types): Remove.
21229 (x_set_scroll_bar_default_width): New global function (for frame.c).
21230 (Fx_create_frame): Depend on x_figure_window_size to add space for
21231 toolbar and setup size_hint_flags.
21232 (w32_frame_parm_handlers): New table for redisplay_interface.
21233 (syms_of_w32fns): Don't intern/staticpro removed vars.
21235 * w32term.c: Remove unnecessary extern declarations.
21236 (x_fullscreen_adjust): Remove. Use generic instead.
21237 (x_redisplay_interface): Add w32_frame_parm_handlers member.
21239 * w32reg.c (x_get_string_resource): Use XrmDatabase.
21241 * macgui.h (XrmDatabase): New (dummy) typedef.
21243 * macterm.h (EMACS_CLASS): Remove.
21244 (struct mac_display_info): Add xrdb member.
21245 (struct mac_output): Add want_fullscreen member.
21247 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
21248 parameters now defined in frame.h and frame.c.
21249 (Vx_resource_name): Remove. Use generic var.
21250 (check_x_display_info): Make non-static (for frame.c).
21251 (struct x_frame_parm_table, x_frame_parms): Remove.
21252 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
21253 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
21254 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
21255 (x_change_window_heights, x_set_autoraise, x_set_autolower)
21256 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
21257 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
21258 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
21259 Remove. Use generic functions instead.
21260 (enum resource_types): Remove.
21261 (x_set_scroll_bar_default_width): New global function (for frame.c).
21262 (mac_frame_parm_handlers): New table for redisplay_interface.
21263 (syms_of_macfns): Don't intern/staticpro removed vars.
21265 * macterm.c: Remove unnecessary extern declarations.
21266 (x_redisplay_interface): Add mac_frame_parm_handlers member.
21268 * Makefile.in (frame.o): Add dependency on blockinput.h and files
21269 included from it (atimer.h and systime.h).
21271 2003-03-30 Andreas Schwab <schwab@suse.de>
21273 * xdisp.c (x_insert_glyphs): Fix swapped width and height
21274 parameters for shift_glyphs_for_insert.
21276 * macterm.c (x_redisplay_interface): Add missing entry for
21277 draw_vertical_window_border.
21279 2003-03-29 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
21281 * fileio.c (Fexpand_file_name): In the no-handler case, after
21282 expanding, look again for a handler and invoke it. This is needed
21283 for filenames like "/foo/../user@host:/bar/../baz" -- the first
21284 expansion produces "/user@host:/bar/../baz" which needs to be
21285 expanded again for the finame result "/user@host:/baz".
21287 2003-03-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21289 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
21290 of area to be redrawn for better performance.
21292 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
21294 * xterm.c (take_vertical_position_into_account): Remove.
21295 (xt_action_hook): Call set_vertical_scroll_bar if needed.
21296 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
21297 (xm_scroll_callback, x_create_toolkit_scroll_bar)
21298 (x_set_toolkit_scroll_bar_thumb): Simplify.
21299 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
21300 (XTread_socket): Remove unused var.
21301 (x_make_frame_invisible): Replace goto with else.
21303 * xdisp.c (set_vertical_scroll_bar): New fun.
21304 (redisplay_window): Use it.
21306 2003-03-26 Richard M. Stallman <rms@gnu.org>
21308 * xdisp.c (update_tool_bar): Recompute tool bar if
21309 update_mode_lines is set. Set w->update_mode_line
21310 only if the tool bar contents actually change.
21311 (update_menu_bar): Undo previous change.
21313 2003-03-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21315 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
21316 (xg_frame_set_char_size): Calculate scroll bar width before frame
21317 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
21318 (xg_separator_p): Check for all documented separator types.
21319 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
21320 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
21322 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
21323 so tool bar gets updated.
21325 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
21327 * data.c (store_symval_forwarding): Re-instate part of the code
21328 that was deleted with too much enthusiasm.
21330 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
21332 * data.c (store_symval_forwarding): Delete special read-only
21333 hack for type == -1, since we now use ->constant instead.
21334 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
21336 * buffer.c (overlays_in): Declare static.
21337 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
21338 `constant' field rather than the variable's `type' field.
21340 2003-03-24 Andrew Choi <akochoi@shaw.ca>
21342 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
21344 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
21346 * fns.c [MAC_OSX]: Do not redefine vector.
21348 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
21350 * macgui.h: Remove definition of No_Cursor.
21352 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
21354 * xdisp.c: Define No_Cursor.
21355 (x_write_glyphs, notice_overwritten_cursor)
21356 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
21357 (note_mouse_highlight): Remove Mac-specific code.
21358 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
21360 2003-03-24 John Paul Wallington <jpw@gnu.org>
21362 * xdisp.c (redisplay_window): If mini window's buffer is not
21363 empty, then redisplay it like other windows.
21365 2003-03-23 Kim F. Storm <storm@cua.dk>
21367 * w32term.c (w32_draw_window_cursor): Fix last change.
21369 2003-03-23 Kenichi Handa <handa@m17n.org>
21371 * alloc.c (make_string_from_bytes, make_specified_string):
21372 Add `const' for the arg CONTENTS.
21374 * lisp.h (make_string_from_bytes, make_specified_string):
21375 Prototypes adjusted.
21377 2003-03-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21379 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
21381 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
21382 (XG_SB_RANGE): New define.
21384 * gtkutil.c (xg_fixed_handle_expose): New function.
21385 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
21387 (xg_update_scrollbar_pos): Take two more arguments, left and width
21388 of scroll bar including borders.
21389 Clear left and right part outside scroll bar separately as some
21390 themes have bars that are not an even number of pixels.
21391 Don't set reallocate_redraws, don't call
21392 gdk_window_process_all_updates.
21393 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
21394 so no need to change it. Calculate size and value with XG_SB_RANGE.
21396 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
21397 Pass left and width of scroll bar including borders to
21398 xg_update_scrollbar_pos.
21400 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
21402 * Makefile.in: Make sure space precedes end-of-line backslashes.
21404 2003-03-22 Kim F. Storm <storm@cua.dk>
21406 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
21407 Add generic versions here. Remove system specific versions
21410 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
21413 * xterm.h (STORE_NATIVE_RECT): New macro.
21415 2003-03-21 Kim F. Storm <storm@cua.dk>
21417 * xdisp.c (get_glyph_string_clip_rect):
21418 Use FRAME_INTERNAL_BORDER_WIDTH.
21420 * dispextern.h (struct redisplay_interface): Add active_p
21421 argument to draw_window_cursor member. All uses changed.
21423 2003-03-21 Kim F. Storm <storm@cua.dk>
21425 The following changes consolidate code related to writing and
21426 inserting glyphs, exposing frame, the tool bar, the mouse face,
21427 the output cursor, and help echo from xterm.c, w32term.c and
21428 macterm.c into xdisp.c. It also generalizes the use of the
21429 window_part enum instead of using numeric values throughout.
21431 * xdisp.c: Consolidate gui-independent code here.
21433 (Qhelp_echo): Import.
21434 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
21435 (help_echo_string, help_echo_window, help_echo_object)
21436 (previous_help_echo_string, help_echo_pos): Declare here.
21437 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
21438 (estimate_mode_line_height): Define here. Handle windowing
21439 systems directly (without using estimate_mode_line_height_hook).
21440 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
21441 (update_window_cursor, update_cursor_in_window_tree)
21442 (fast_find_position, fast_find_string_pos)
21443 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
21444 (expose_area, expose_line, expose_overlaps, expose_window)
21445 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
21446 declared static as they are only used locally in xdisp.c.
21447 (draw_glyphs): Rename from x_draw_glyphs and make static.
21448 (tool_bar_item_info, notice_overwritten_cursor): Make static.
21449 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
21450 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
21451 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
21452 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
21453 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
21454 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
21455 (note_mouse_highlight, x_clear_window_mouse_face)
21456 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
21457 (x_intersect_rectangles): New generic functions for use by xdisp.c
21458 and GUI front-ends.
21459 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
21460 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
21462 * dispextern.h (Display_Info): Generic typedef for *_display_info.
21463 (NativeRectangle): Generic typedef for rectangle type.
21464 (enum window_part): Move here from window.c.
21465 (struct redisplay_interface): New members flush_display_optional,
21466 define_frame_cursor, clear_frame_area, draw_window_cursor,
21467 draw_vertical_window_border, shift_glyphs_for_insert.
21468 Rename member clear_mouse_face to clear_window_mouse_face.
21469 (estimate_mode_line_height_hook): Remove hook.
21470 (auto_raise_tool_bar_buttons_p): Don't declare extern.
21471 (tool_bar_item_info): Remove prototype.
21472 (help_echo_string, help_echo_window, help_echo_object)
21473 (previous_help_echo_string, help_echo_pos)
21474 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
21475 (x_stretch_cursor_p, output_cursor): Declare extern.
21476 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
21477 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
21478 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
21479 (display_and_set_cursor, set_output_cursor, x_cursor_to)
21480 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
21481 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
21482 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
21483 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
21484 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
21486 (mode_line_string, marginal_area_string): Fix prototypes.
21488 * window.c (enum window_part): Move to dispextern.h.
21489 (coordinates_in_window): Use enum window_part member names
21490 instead of numbers to describe return value.
21491 (struct check_window_data): Change part member to window_part.
21492 (check_window_containing): Return window_part unaltered.
21493 (window_from_coordinates): Change part arg from int to enum
21494 window_part. Allow part arg to be null. All users changed.
21496 * window.h (window_from_coordinates): Fix prototype.
21498 * term.c (estimate_mode_line_height): Move to xdisp.c.
21500 * keyboard.c (make_lispy_event): Use enum window_part.
21502 * dispnew.c (mode_line_string, marginal_area_string): Use enum
21503 window_part instead of int in arg list. Users changed.
21505 * xterm.h (No_Cursor): Declare as None for X.
21506 (struct mac_output): Replace member cross_cursor by hand_cursor.
21508 * xterm.c: Remove consolidated defines and code.
21509 (BETWEEN): Remove unused macro.
21510 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
21511 (x_define_frame_cursor, x_clear_frame_area)
21512 (x_draw_window_cursor): New X-specific functions for RIF.
21513 (x_redisplay_interface): Add new members.
21515 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
21517 * w32term.h (struct w32_output): Remove cross_cursor member.
21519 * w32term.c: Remove consolidated defines and code.
21520 (BETWEEN): Remove unused macro.
21521 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
21522 (w32_define_frame_cursor, w32_clear_frame_area)
21523 (w32_draw_window_cursor): New W32-specific functions for RIF.
21524 (w32_redisplay_interface): Add new members.
21526 * w32gui.h (No_Cursor): Define as 0 for W32.
21527 (XRectangle): Add X compatible rectangle type.
21528 (NativeRectangle): Declare as RECT for W32.
21529 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
21531 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
21533 * w32console.c: Remove consolidated defines and code.
21535 * msdos.h (Display_Info): Add generic typedef.
21537 * msdos.c: Remove consolidated defines and code.
21538 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
21540 * macterm.h (struct mac_output): Replace member cross_cursor by
21542 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
21544 * macterm.c: Remove consolidated defines and code.
21545 (BETWEEN): Remove unused macro.
21546 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
21547 (mac_define_frame_cursor, mac_clear_frame_area)
21548 (mac_draw_window_cursor): New Mac-specific functions for RIF.
21549 (x_redisplay_interface): Add new members.
21551 * macgui.h (No_Cursor): Define as 0 for Mac.
21552 (XRectangle): Add X compatible rectangle type.
21553 (NativeRectangle): Declare as Rect for Mac.
21554 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
21556 * macfns.c (x_set_mouse_color): Setup hand_cursor.
21557 (x_set_cursor_color): Use x_display_and_set_cursor.
21559 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
21560 included from it. Add dependency on keymap.h.
21562 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
21564 2003-03-21 Kenichi Handa <handa@m17n.org>
21566 * fileio.c (Fexpand_file_name): Fix previous change.
21568 2003-03-19 Kenichi Handa <handa@m17n.org>
21570 * fileio.c (Ffile_name_directory): Reconstruct file name by
21571 make_specified_string.
21572 (Ffile_name_nondirectory, Ffile_name_as_directory)
21573 (Fdirectory_file_name, Fexpand_file_name)
21574 (Fsubstitute_in_file_name): Likewise.
21575 (Fread_file_name): Compare decoded homedir with DIR and
21578 * alloc.c (make_specified_string): If NCHARS is negative, count
21579 the number of characters.
21581 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21583 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
21586 * gtkutil.h: Removed xg_ignore_next_thumb.
21588 2003-03-18 Kenichi Handa <handa@m17n.org>
21590 * coding.c (Vchar_coding_system_table): Remove this variable.
21591 (Vcoding_system_safe_chars): New variable.
21592 (intersection): Remove this function.
21593 (find_safe_codings): Don't use Vchar_coding_system_table, but try
21594 all codings in SAFE_CODINGS.
21595 (Ffind_coding_systems_region_internal): Adjust for the change of
21596 find_safe_codings. Get generic coding systems from
21597 Vcoding_system_safe_chars.
21598 (Fdefine_coding_system_internal): New function.
21599 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
21600 Initialize and staticpro Vcoding_system_safe_chars.
21602 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21604 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
21605 equal old values before updating.
21607 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
21609 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
21611 2003-03-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21613 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
21614 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
21615 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
21616 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
21617 (xg_create_scroll_bar): Pass bar to button event callback.
21618 (xg_find_top_left_in_fixed): New function.
21619 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
21620 whole scroll bar area. Get old position with
21621 xg_find_top_left_in_fixed, calculate and only clear needed areas.
21622 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
21623 dragging is in progress. Calculate whole as for Motif.
21624 Remove code that saved last values. Call gtk_range functions to
21625 set scroll bar sizes.
21627 * gtkutil.h: Removed xg_ignore_next_thumb.
21629 2003-03-17 Juanma Barranquero <lektu@terra.es>
21631 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
21632 and files included from it.
21634 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
21636 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
21637 multiple occurrences of the same keymap under different prefixes.
21638 (Faccessible_keymaps): Remove code redundant since rev 1.82.
21640 2003-03-16 Jason Rumney <jasonr@gnu.org>
21642 * w32gui.h: Use HDC for Display.
21644 * w32term.c (w32_encode_char): Prevent double-byte chars from
21647 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
21650 2003-03-16 Juanma Barranquero <lektu@terra.es>
21652 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
21654 2003-03-16 Kim F. Storm <storm@cua.dk>
21656 The following changes consolidate some of the gui-independent
21657 parts of the processing and drawing of "glyph strings" from
21658 xterm.c, w32term.c, and macterm.c into xdisp.c.
21660 * dispextern.h (struct glyph): Reduce face_id member from 22 to
21661 21 bits (this reduces number of faces from 4M to 2M).
21662 Replace W32 specific w32_font_type member (2 bits) by generic
21663 font_type member (3 bits) for portability.
21664 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
21665 (enum draw_glyphs_face): Define here.
21666 (struct glyph_string): Define here. Merge W32 and X versions.
21667 (struct redisplay_interface): New members per_char_metric,
21668 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
21669 (VCENTER_BASELINE_OFFSET): Define here.
21670 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
21671 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
21673 * xdisp.c: Consolidate gui-independent "glyph string" code here.
21674 (dump_glyph_string): Moved here.
21675 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
21676 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
21677 (fill_composite_glyph_string, fill_glyph_string)
21678 (fill_image_glyph_string, fill_stretch_glyph_string)
21679 (left_overwritten, left_overwriting, right_overwritten)
21680 (right_overwriting, get_char_face_and_encoding)
21681 (set_glyph_string_background_width, compute_overhangs_and_x)
21682 (append_glyph, append_composite_glyph, produce_image_glyph)
21683 (take_vertical_position_into_account, append_stretch_glyph)
21684 (produce_stretch_glyph): New generic functions (based on X version).
21685 Call platform specific functions through rif.
21686 (INIT_GLYPH_STRING): New macro, hides W32 details.
21687 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
21688 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
21689 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
21690 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
21691 (notice_overwritten_cursor):
21692 Generic functions exported to platform modules. Users changed.
21694 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
21695 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
21696 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
21697 New macros for consolidated code.
21699 * xterm.c: Remove consolidated defines and code.
21700 (x_per_char_metric, x_encode_char)
21701 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
21702 (x_redisplay_interface): Add new members.
21704 * w32gui.h (Display): Add dummy typedef for consolidation.
21705 (XChar2b): Define alias for wchar_t for consolidation.
21706 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
21708 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
21709 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
21710 New macros for consolidation.
21712 * w32term.c: Remove consolidated defines and code.
21713 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
21714 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
21715 (w32_per_char_metric): Change font_type arg to int for RIF.
21716 (w32_encode_char): Return int according to RIF requirements.
21717 (w32_compute_glyph_string_overhangs): Adapt to RIF.
21718 (w32_get_glyph_overhangs): New function for RIF. Uses generic
21719 x_get_glyph_overhangs.
21720 (w32_redisplay_interface): Add new members.
21722 * macgui.h (XChar2b): Move typedef here for consolidation.
21723 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
21725 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
21726 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
21729 * macterm.c: Remove consolidated defines and code.
21730 (mac_per_char_metric): New function for RIF.
21731 (mac_encode_char): Adapt to new RIF requirements.
21732 (mac_compute_glyph_string_overhangs): Adapt for RIF.
21733 (x_redisplay_interface): Add new members.
21735 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
21737 * keymap.c (Vmenu_events): New var.
21738 (syms_of_keymap): Initialize it.
21739 (where_is_internal): Check more carefully what is a menu event.
21741 2003-03-14 Richard M. Stallman <rms@gnu.org>
21743 * lread.c (read1): After #!, exit loop on eof.
21745 2003-03-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21747 * gtkutil.h: Add declaration for xg_frame_cleared.
21749 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
21751 * gtkutil.c (struct xg_last_sb_pos): New structure.
21752 (handle_fixed_child): New function.
21753 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
21754 and force a redraw on them.
21755 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
21756 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
21757 so we can avoid unneeded redraws.
21758 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
21759 and force a redraw on the scroll bar.
21760 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
21761 if xg_last_sb_pos shows the positions are up to date.
21762 (xg_frame_cleared): New function.
21764 2003-03-13 Kenichi Handa <handa@m17n.org>
21766 * coding.c (Fdetect_coding_region): Fix docstring.
21767 (Fdetect_coding_string): Fix docstring.
21769 2003-03-13 Andreas Schwab <schwab@suse.de>
21771 * gtkutil.c: Add prototype for create_menus.
21773 * data.c (long_to_cons): Fix type of top.
21775 * xselect.c (selection_data_to_lisp_data): Use int instead of
21776 long for an integer of size 4.
21778 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
21779 (xg_tool_bar_help_callback): Likewise.
21781 2003-03-12 Andreas Schwab <schwab@suse.de>
21783 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
21785 2003-03-12 Kim F. Storm <storm@cua.dk>
21787 The following changes consolidate the fringe handling from
21788 xterm.c, w32term.c, and macterm.c into xdisp.c.
21790 * xdisp.c: Consolidate fringe handling code here.
21791 (left_bits, right_bits, continued_bits, continuation_bits)
21792 (ov_bits, zv_bits): Define fringe bitmaps.
21793 (fringe_bitmaps): New array holding fringe bitmaps.
21794 (draw_fringe_bitmap): Draw a specific bitmap; call display
21795 specific drawing routine via rif->draw_fringe_bitmap.
21796 (draw_row_fringe_bitmaps): Generic replacement for
21797 x_draw_row_fringe_bitmaps; all callers changed.
21798 (compute_fringe_widths): Generic replacement for
21799 x_compute_fringe_widths; all callers changed.
21801 * dispextern.h (enum fringe_bitmap_type): Define here.
21802 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
21803 (fringe_bitmaps): Declare extern.
21804 (struct redisplay_interface): New member draw_fringe_bitmap.
21805 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
21807 * xterm.c: Remove generic fringe code.
21808 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
21809 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
21811 * w32term.c: Remove generic fringe code.
21812 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
21813 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
21815 * macterm.c: Remove generic fringe code.
21816 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
21817 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
21819 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
21821 * print.c (Fprin1_to_string): Return unibyte string if possible.
21823 2003-03-09 David Kastrup <dak@gnu.org>
21825 * process.c (read_process_output): We have allocated enough space
21826 for readmax and carryover, so actually use the alloted space.
21828 2003-03-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21830 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
21831 toolkit scrollbar click.
21833 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
21835 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
21837 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
21838 scrollbar and control is pressed, call x_scroll_bar_handle_click.
21840 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
21842 * gtkutil.c (xg_get_scroll_id_for_window): New function.
21843 (xg_tool_bar_item_expose_callback): New function.
21844 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
21845 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
21846 on the tool bar widget.
21847 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
21848 to expose on the tool bar item widgets.
21850 2003-03-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21852 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
21853 struct image* when deciding to update (struct image* may have been
21854 deleted from the image cache).
21856 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
21857 the event isn't for a frame (i.e. for dialogs).
21859 2003-03-07 Kenichi Handa <handa@m17n.org>
21861 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
21862 composition components reaches the limit, terminate composing.
21863 (COMPOSITION_OK): New macro.
21864 (detect_coding_iso2022): Use it if an escape sequence for
21865 composition is found.
21866 (coding_restore_composition): Adjust the number of composition
21867 components if it is not sane.
21869 2003-03-06 Juanma Barranquero <lektu@terra.es>
21871 * w32term.h (struct w32_display_info): Add xrdb member to support
21872 passing resources via -xrm on Windows.
21874 * w32term.c (w32_make_rdb): New function.
21875 (w32_term_init): Use it to initialize xrdb member of w32_display_info
21876 struct. Delete leftover code.
21878 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
21879 for resources passed on the command line.
21881 * w32reg.c (w32_get_rdb_resource): New function.
21882 (x_get_string_resource): Use it, so resources passed with -xrm
21883 supercede the ones in the registry.
21885 2003-03-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21887 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
21888 instead of x_top_window_to_frame.
21890 2003-03-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21892 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
21893 when restarting Emacs.
21895 2003-03-03 Richard M. Stallman <rms@gnu.org>
21897 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
21898 to run kill-buffer-query-functions.
21899 (Qkill_buffer_query_functions): New var.
21900 (syms_of_buffer): Init and staticpro it.
21902 2003-03-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21904 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
21906 2003-02-25 Kim F. Storm <storm@cua.dk>
21908 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
21909 If centering point failed to make whole line visible and vscroll
21910 is non-zero, disable vscroll and try centering point again.
21912 * lread.c (read1): Accept `single space' syntax like (? x).
21914 2003-02-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21916 * keyboard.c (cancel_hourglass_unwind): Surround with
21917 #ifdef HAVE_X_WINDOWS.
21919 2003-02-25 Kenichi Handa <handa@m17n.org>
21921 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
21922 process only when "subprocesses" is defined.
21924 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
21926 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
21928 2003-02-24 Juanma Barranquero <lektu@terra.es>
21930 * callint.c (fix_command): Declare as static void and move before
21931 Fcall_interactively.
21933 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
21934 (syms_of_xdisp): Don't initialize Qwhen.
21936 2003-02-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21938 * keyboard.c (cancel_hourglass_unwind): New function.
21939 (command_loop_1): Cancel hourglass with unwind-protect.
21941 2003-02-23 Richard M. Stallman <rms@gnu.org>
21943 * callint.c (fix_command): New subroutine, from Fcall_interactively.
21944 Detect (when ... (region-beginning)) etc.
21945 (Fcall_interactively): Call fix_command.
21946 (Qif, Qwhen): New variables.
21947 (syms_of_callint): Init and staticpro them.
21949 * regex.c (print_partial_compiled_pattern): Output to stderr.
21951 2003-02-23 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
21953 * dired.c (directory_files_internal): Don't expand directory.
21954 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
21955 instead. From Lars Hansen <larsh@math.ku.dk>.
21957 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
21959 * fns.c (string_to_multibyte): Remove unused var i.
21960 (Flanginfo): Fix int/Lisp_Object mixup.
21961 (void_call2): New fun.
21962 (Fmap_char_table): Use it in place of call2.
21964 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
21966 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
21968 * keymap.c (copy_keymap_1): Make it static.
21970 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
21972 2003-02-22 David Ponce <david@dponce.com>
21974 * lread.c (Fload): Don't check STRING_MULTIBYTE.
21976 2003-02-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21978 * process.h: Removed subtty field from struct Lisp_Process.
21980 * process.c (create_process): Remove setting of subtty.
21981 (emacs_get_tty_pgrp): New function.
21982 (Fprocess_running_child_p, process_send_signal):
21983 Call emacs_get_tty_pgrp instead of ioctl.
21984 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
21986 2003-02-21 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
21988 * keymap.c (Fdefine_key): Doc fix.
21990 2003-02-21 Juanma Barranquero <lektu@terra.es>
21992 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
21994 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
21995 POLLING_PROBLEM_IN_SELECT.
21997 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
21998 Delete #undef of POLLING_PROBLEM_IN_SELECT.
22000 * s/hpux10-20.h: New file.
22002 * process.c (wait_reading_process_input):
22003 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
22005 2003-02-20 Kenichi Handa <handa@m17n.org>
22007 * fontset.c (check_fontset_name): If NAME is nil, return the
22009 (override_font_info): New function.
22010 (Fset_fontset_font): Document that NAME nil means the default fontset.
22011 (Ffontset_info): If FONTSET is not the default fontset, merge
22012 FONTSET onto the copy of the default fontset, and work on that
22013 copy. Document that NAME nil means the default fontset.
22014 (Ffontset_font): Document that NAME nil means the default fontset.
22016 * process.c (setup_process_coding_systems): If the process's
22017 in/out descriptor is -1, do nothing.
22019 2003-02-19 Andreas Schwab <schwab@suse.de>
22021 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
22024 2003-02-19 Kenichi Handa <handa@m17n.org>
22026 * xfaces.c (try_alternative_families): Try all scalable fonts if
22027 Vscalable_fonts_allowed is not Qt.
22029 2003-02-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22031 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
22033 2003-02-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22035 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
22038 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
22039 (sorted_font_list): Move allocation of struct font_name to
22041 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
22042 (Fx_list_fonts): Set maxnames to -1 to get all font names.
22044 2003-02-18 Kim F. Storm <storm@cua.dk>
22046 * lread.c (read1): Fix last change.
22047 "`" is not always special. Allow "?" after a character constant.
22049 2003-02-18 Andrew Choi <akochoi@shaw.ca>
22051 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
22053 2003-02-18 Andreas Schwab <schwab@suse.de>
22055 * window.c (window_scroll_pixel_based): Move outside a
22056 multi-glyph character before setting new window start.
22058 * xdisp.c (in_display_vector_p): New function.
22059 * dispextern.h (in_display_vector_p): Declare.
22061 2003-02-18 Kim F. Storm <storm@cua.dk>
22063 * lread.c (read1): Fix and relax read syntax.
22064 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
22065 Only recognize "," after dotted-pair dot if inside backquote.
22066 Never include "`" or "," (inside backquote) in a symbol.
22067 Allow dotted-pair dot after a character constant.
22068 Allow "`" and "," (inside backquote) after a character constant.
22070 2003-02-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22072 * gtkutil.c (xg_tool_bar_expose_callback): New function.
22073 (xg_create_tool_bar): Force style of tool bar to be horizontal with
22074 icons. Set name of tool bar to emacs-toolbar.
22075 (update_frame_tool_bar): Connect expose event to
22076 xg_tool_bar_expose_callback.
22078 2003-02-17 Richard M. Stallman <rms@gnu.org>
22080 * keyboard.c (this_command_key_count_reset): New variable.
22081 Initiatize to 0 where this_command_key_count is set.
22082 (read_char): Save and restore this_command_key_count_reset
22083 around input method code.
22084 (read_char): If this_command_key_count_reset, echo reread commands.
22085 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
22087 2003-02-17 Kenichi Handa <handa@m17n.org>
22089 * fns.c (string_to_multibyte): Always return a multibyte string.
22091 2003-02-16 Jason Rumney <jasonr@gnu.org>
22093 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
22094 Negative max_fonts parameter means list all.
22096 2003-02-14 Dave Love <fx@gnu.org>
22098 * fns.c (Flanginfo): Doc fix.
22100 2003-02-13 Kim F. Storm <storm@cua.dk>
22102 * lread.c (read_escape): Interpret \s as a SPACE character, except
22103 for \s-X in a character constant which still is the super modifier.
22104 (read1): Signal an `invalid read syntax' error if a character
22105 constant is immediately followed by a digit or symbol character.
22107 * search.c (Fmatch_data): Doc fix. Explicitly state that
22108 match-data is undefined if last search failed.
22110 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
22113 2003-02-12 Juanma Barranquero <lektu@terra.es>
22115 * eval.c (Fdefmacro): Fix typo.
22117 2003-02-12 Kim F. Storm <storm@cua.dk>
22119 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
22120 macro is a string, convert meta modifiers in string when copying
22121 the string into a vector.
22123 2003-02-11 Kim F. Storm <storm@cua.dk>
22125 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
22127 2003-02-11 Kenichi Handa <handa@m17n.org>
22129 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
22131 2003-02-10 Kim F. Storm <storm@cua.dk>
22133 * process.c: Doc fixes.
22134 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
22136 2003-02-10 Kenichi Handa <handa@m17n.org>
22138 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
22140 * process.c (QCfilter_multibyte): New variable.
22141 (setup_process_coding_systems): New function.
22142 (Fset_process_buffer, Fset_process_filter):
22143 Call setup_process_coding_systems.
22144 (Fstart_process): Initialize the member `filter_multibyte' of
22145 struct Lisp_Process.
22146 (create_process): Call setup_process_coding_systems.
22147 (Fmake_network_process): New keyward `:filter-multibyte'.
22148 Initialize the member `filter_multibyte' of struct Lisp_Process.
22149 Call setup_process_coding_systems.
22150 (server_accept_connection): Call setup_process_coding_systems.
22151 (read_process_output): If the process has a filter, decide the
22152 multibyteness of a string to given to the filter by
22153 `filter_multibyte' member of the process. If the process doesn't
22154 have a filter and the result of conversion is unibyte, use
22155 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
22157 (Fset_process_coding_system): Call setup_process_coding_systems.
22158 (Fset_process_filter_multibyte): New function.
22159 (Fprocess_filter_multibyte_p): New function.
22160 (syms_of_process): Intern and staticpro QCfilter_multibyte.
22161 Defsubr Sset_process_filter_multibyte and
22162 Sprocess_filter_multibyte_p.
22164 * process.h (struct Lisp_Process): New member filter_multibyte.
22166 * lisp.h (setup_process_coding_systems): Add prototype.
22168 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
22169 process, update coding systems for the process.
22171 2003-02-09 Kenichi Handa <handa@m17n.org>
22173 * fns.c (string_to_multibyte): New function.
22174 (Fstring_to_multibyte): New function.
22175 (syms_of_fns): Defsubr it.
22177 2003-02-08 Andreas Schwab <schwab@suse.de>
22179 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
22180 instead of the substitution.
22182 2003-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22184 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
22186 * xmenu.c (menu_position_func): Adjust menu popup position so that
22187 the menu is fully visible.
22189 2003-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22191 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
22192 (x_make_frame_invisible, x_wm_set_icon_position):
22193 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
22195 * xfns.c (x_set_name, x_set_title): Ditto.
22197 2003-02-04 Richard M. Stallman <rms@gnu.org>
22199 * keyboard.c (echo_now): Update before_command_echo_length.
22200 (Freset_this_command_lengths): Reset this_command_key_count etc.
22201 immediately rather than arranging to do it later.
22202 (before_command_key_count_1, before_command_echo_length_1)
22203 (before_command_restore_flag): Vars deleted.
22204 (add_command_key): Don't handle before_command_restore_flag.
22205 (read_char, record_menu_key): Don't update before_command_key_count or
22206 before_command_echo_length.
22207 (read_char): Don't handle before_command_restore_flag.
22209 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
22210 in direct-output clauses if it wouldn't be called in the ordinary case.
22212 2003-02-04 Kim F. Storm <storm@cua.dk>
22214 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
22216 2003-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22218 * gtkutil.c (remove_from_container): Copying list is not needed.
22219 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
22220 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
22221 on list returned from gtk_container_get_children to avoid memory leak.
22223 2003-02-01 Jason Rumney <jasonr@gnu.org>
22225 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
22227 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
22228 definitions in xpm.h.
22229 (init_xpm_functions): New function.
22230 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
22231 (init_external_image_libraries): Try to load libXpm.dll.
22233 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
22236 2003-01-31 Dave Love <fx@gnu.org>
22238 * syntax.c (Fskip_chars_forward)
22239 (open-paren-in-column-0-is-defun-start): Doc fix.
22241 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
22243 * fileio.c: Support // at start of name for Cygwin (just added proper
22244 preprocessor tests).
22246 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
22248 * Makefile.in: Use @EXEEXT@ for Cygwin.
22250 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
22252 * s/cygwin.h: Added for Cygwin port.
22254 2003-01-31 Juanma Barranquero <lektu@terra.es>
22256 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
22257 when including gif_lib.h.
22258 (init_gif_functions, init_tiff_functions): New functions.
22259 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
22260 Windows. Disable color table lookups. Call library functions
22261 through pointers determined at runtime.
22262 (init_external_image_libraries): Try to load libungif.dll and
22265 2003-01-31 Kenichi Handa <handa@m17n.org>
22267 * xdisp.c (SKIP_GLYPHS): New macro.
22268 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
22270 2003-01-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22272 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
22274 2003-01-30 Dave Love <fx@gnu.org>
22276 * alloc.c (Vgc_elapsed, gcs_done): New variables.
22277 (Fgarbage_collect): Use them.
22278 (init_alloc, syms_of_alloc): Set them up.
22280 2003-01-30 Juanma Barranquero <lektu@terra.es>
22282 * w32fns.c (init_external_image_libraries): Add missing operator.
22284 2003-01-29 Jason Rumney <jasonr@gnu.org>
22286 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
22287 an alternative name for jpeg.dll.
22289 2003-01-29 Kenichi Handa <handa@m17n.org>
22291 * xdisp.c (set_cursor_from_row): Pay attention to string display
22294 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
22296 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
22298 (keycode_to_xkeysym_table): Reformat and add more comments.
22299 (XTread_socket): Drop special case for backspace.
22301 2003-01-28 Andrew Choi <akochoi@shaw.ca>
22303 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
22304 values in old-style RGB specs.
22306 2003-01-27 Juanma Barranquero <lektu@terra.es>
22308 * w32fns.c (init_external_image_libraries): Try alternate names for the
22311 2003-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22313 * gtkutil.c (create_dialog, xg_separator_p)
22314 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
22315 before calling strcmp or strlen.
22317 2003-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22319 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
22320 and handle image load failure.
22322 2003-01-26 Jason Rumney <jasonr@gnu.org>
22324 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
22326 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
22327 Disable color table lookups. Call jpeg library functions
22328 through pointers determined at runtime.
22329 (init_external_image_libraries): Try to load jpeg.dll.
22331 2003-01-25 Richard M. Stallman <rms@gnu.org>
22333 * lisp.h: Declare format2 instead of format1.
22335 * fileio.c (barf_or_query_if_file_exists):
22336 Call format2 instead of format1.
22338 * editfns.c (format2): New function, replaces format1
22339 but takes exactly two Lisp Objects as format args.
22341 * buffer.c (Fkill_buffer): Call format2 instead of format1.
22343 2003-01-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22345 * xterm.h: Change to return value of x_dispatch_event to int.
22347 * xterm.c (x_filter_event): New function.
22348 (event_handler_gdk, XTread_socket): Call x_filter_event.
22349 (x_dispatch_event): Change to return value of finish.
22350 (event_handler_gdk): Use return value from x_dispatch_event.
22352 * xfns.c (x_window): Call create_frame_xic for GTK version to
22353 initialize input methods.
22355 * gtkutil.h: Add (void) prototypes.
22357 * gtkutil.c (create_menus): Remove code that puts the help menu to
22360 2003-01-25 Jason Rumney <jasonr@gnu.org>
22362 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
22363 [HAVE_PNG]: Sync with xfns.c version.
22364 (png_load): Adjust colors for Windows. Use Windows
22365 bitmaps. Disable color table lookups.
22366 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
22367 (init_png_functions): New function.
22368 (png_read_from_memory, png_load): Call png library functions
22369 through pointers determined at runtime.
22370 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
22371 (init_external_image_libraries): New function.
22372 (init_xfns): Call it.
22374 2003-01-24 Andreas Schwab <schwab@suse.de>
22376 * minibuf.c (Fminibuffer_message): Verify type of parameter.
22378 2003-01-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22380 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
22381 of static initializer.
22383 2003-01-24 Dave Love <fx@gnu.org>
22385 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
22388 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
22391 2003-01-24 Kenichi Handa <handa@m17n.org>
22393 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
22394 It it is nonzero, don't pretend that an invisible area doesn't exist.
22395 (command_loop_1): Call adjust_point_for_property with proper
22398 2003-01-22 Jason Rumney <jasonr@gnu.org>
22400 Sync changes with xterm.c and xfns.c.
22402 * w32term.c (x_draw_glyph_string_foreground)
22403 (x_draw_composite_glyph_string_foreground): Implement overstriking.
22405 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
22406 phys_cursor's hpos is overwritten. This is still not completely
22407 correct, as it doesn't really make sense to use hpos at all to
22408 get the cursor glyph (as that is relative to the width of the
22409 characters on the line, which may have changed during the update).
22411 * w32term.c (notice_overwritten_cursor): Handle the special case
22412 of the cursor being in the first blank non-text line at the
22415 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
22416 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
22417 Compute from the x position returned by x_draw_glyphs.
22419 (x_display_and_set_cursor): Don't set phys_cursor_width here,
22420 except for NO_CURSOR and system caret, to make phys_cursor_width
22421 contain what its name suggests.
22422 (notice_overwritten_cursor): Consider the cursor image erased if
22423 the output area intersects the cursor image in y-direction.
22425 * w32term.c (note_mode_line_or_margin_highlight): Rename from
22426 note_mode_line_highlight and extend.
22428 * w32term.c (last_window): New variable.
22429 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
22430 (note_mouse_movement): Remove reimplemented code in #if 0.
22432 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
22433 not update_mode_lines, and always set it to 1.
22435 2003-01-21 Jason Rumney <jasonr@gnu.org>
22437 * w32fns.c (IDC_HAND): Define it if system headers don't.
22439 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
22441 * w32term.h (struct w32_output): New member hand_cursor.
22442 (WM_EMACS_SETCURSOR): New message definition.
22444 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
22445 function w32_define_cursor.
22446 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
22447 position, change member name output_data.x to output_data.w32 and
22448 add function w32_define_cursor.
22449 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
22450 and change member name output_data.x to output_data.w32.
22451 (w32_initialize_display_info):
22452 Setup dpyinfo->vertical_scroll_bar_cursor.
22454 * w32fns.c (Vx_hand_shape): New variable.
22455 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
22456 WM_EMACS_SETCURSOR.
22457 (x-create-frame): Setup Cursor types.
22459 2003-01-21 David Ponce <david@dponce.com>
22461 * w32term.c (w32_encode_char): For DIM=1 charset, set
22462 ccl->reg[2] to -1 before calling ccl_driver.
22463 (Sync. with xterm.c x_encode_char change by Kenichi Handa
22464 <handa@m17n.org> on 2002-09-30.)
22465 (w32_draw_relief_rect): Declare all args.
22466 (w32_define_cursor): New.
22468 * w32fns.c (w32_load_cursor): New function.
22469 (w32_init_class): Use it.
22470 (x_put_x_image): Declare all args.
22472 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
22474 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
22476 2003-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22478 * gtkutil.c: Must include stdio.h before termhooks.h.
22480 2003-01-21 Dave Love <fx@gnu.org>
22482 * alloc.c (Fgc_status): Print zombie list.
22483 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
22484 Fix assignment of zombies.
22485 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
22486 Don't take car of non-cons.
22488 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
22490 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
22492 2003-01-20 David Ponce <david@dponce.com>
22494 * w32menu.c (digest_single_submenu): Declare all args.
22496 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
22497 changes in xmenu.c:
22499 (parse_single_submenu): Use individual keymap's prompt
22500 string as pane name, if there is one.
22501 (set_frame_menubar): Save menu_items_n_panes from each call to
22502 parse_single_submenu and use it when calling digest_single_submenu.
22504 2003-01-20 Steven Tamm <steventamm@mac.com>
22506 * macterm.c (XTread_socket): Check for valid, visible window
22507 before sending a scroll-wheel event.
22509 2003-01-20 Richard M. Stallman <rms@gnu.org>
22511 * xdisp.c (redisplay_window): If mini window's buffer is not
22512 a minibuffer, then redisplay it like other windows.
22514 2003-01-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22516 * gtkutil.c (xg_create_frame_widgets): Check if there is an
22517 external tool bar before setting tool bar height.
22519 2003-01-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22521 * xterm.c (handle_one_xevent): Surround popup_activated
22522 with #ifdef:s for non-toolkit version.
22524 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
22525 (gtkutil.o): New file.
22526 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
22527 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
22529 * gtkutil.c: New file for GTK version.
22531 * gtkutil.h: New file for GTK version.
22533 * xterm.h: Add xt_or_gtk_widget.
22534 Include gtk files for USE_GTK.
22535 (struct x_output): Add toolbar_height.
22536 (struct x_output): Add GTK widgets and Gdk size_hints.
22537 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
22538 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
22539 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
22541 * xterm.c: Include gtkutil.h for USE_GTK.
22542 (free_frame_menubar): Declare extern void for USE_GTK.
22543 (note_mouse_highlight): Check popup_activated for USE_GTK.
22544 (xt_action_hook): Don't compile if USE_GTK.
22545 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
22546 (xg_scroll_callback): New function.
22547 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
22548 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
22550 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
22551 xg_show_scroll_bar for USE_GTK.
22552 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
22553 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
22554 (event_handler_gdk): New function for USE_GTK.
22555 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
22556 (handle_one_xevent): Make sure widget is mapped before
22557 calling x_real_positions for USE_GTK.
22558 (XTread_socket): Add GTK event loop for USE_GTK.
22559 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
22560 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
22561 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
22562 (x_iconify_frame): Add code for USE_GTK.
22563 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
22564 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
22566 (x_term_init): Add initialization for GTK.
22567 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
22569 * xmenu.c: Include gtkutil.h for USE_GTK.
22570 (Fx_popup_menu): Use current position if x and y are nil.
22571 (single_menu_item, single_menu_item, Fx_popup_dialog):
22573 (popup_widget_loop): New function for USE_GTK.
22574 (x_activate_menubar): Add code for USE_GTK.
22575 (popup_activate_callback, popup_deactivate_callback)
22576 (menu_highlight_callback, menubar_selection_callback):
22577 Add USE_GTK versions.
22578 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
22579 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
22580 (free_frame_menubar): Only compile if not USE_GTK. GTK version
22582 (popup_selection_callback): New version for USE_GTK.
22583 (create_and_show_popup_menu): New fuction, one USE_GTK version and
22584 one USE_X_TOOLKIT version.
22585 (xmenu_show): Call create_and_show_popup_menu.
22586 (dialog_selection_callback): New version for USE_GTK.
22587 (create_and_show_dialog): New fuction, one USE_GTK version and
22588 one USE_X_TOOLKIT version.
22589 (xdialog_show): Call create_and_show_dialog.
22591 * xfns.c: Include gtkutil for USE_GTK.
22592 (x_window_to_frame, x_any_window_to_frame)
22593 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
22594 (x_top_window_to_frame): Add code for USE_GTK.
22595 (x_set_background_color): Call xg_set_background_color for GTK.
22596 (x_set_menu_bar_lines): Check for USE_GTK.
22597 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
22598 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
22599 (x_window): Call xg_create_frame_widgets for USE_GTK.
22600 (Fx_create_frame): Check for USE_GTK.
22601 (Fx_file_dialog): New implementation for USE_GTK.
22603 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
22604 (update_menu_bar): Add check for USE_GTK.
22605 (update_tool_bar): Add check for USE_GTK and external tool bar.
22606 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
22607 (redisplay_internal): Add check for USE_GTK and popup_activated.
22608 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
22609 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
22610 (display_menu_bar): Add check for USE_GTK
22612 * lisp.h (Vx_resource_name): Declare extern.
22614 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
22616 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
22618 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
22619 (FRAME_EXTERNAL_TOOL_BAR): New macro.
22620 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
22622 * fileio.c (Fread_file_name): Add check for USE_GTK.
22624 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
22625 Add check for USE_GTK.
22627 * config.in: Added HAVE_GTK.
22629 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
22631 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
22633 * charset.h (Funibyte_char_to_multibyte): Export.
22635 2003-01-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22637 * xmenu.c (mouse_position_for_popup): New function.
22638 (Fx_popup_menu): Call mouse_position_for_popup for X and
22639 mouse_position_hook for others.
22641 2003-01-17 Kim F. Storm <storm@cua.dk>
22643 * editfns.c (Finsert): Mention `string-make-multibyte' and
22644 `string-as-multibyte' in doc string.
22646 2003-01-17 Kenichi Handa <handa@m17n.org>
22648 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
22650 * editfns.c (Fformat): Convert an unibyte char argument that is
22651 formatted by "%c" to multibyte if the total result must be a
22654 2003-01-16 Kim F. Storm <storm@cua.dk>
22656 * process.c (set-process-filter): Document unibyte/multibyte-ness
22657 of string argument.
22659 2003-01-16 Kenichi Handa <handa@m17n.org>
22661 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
22663 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
22664 (re_search_2): Likewise.
22666 2003-01-15 Kenichi Handa <handa@m17n.org>
22668 * xdisp.c (message_dolog): Fix bug of the case that *Message*
22671 2003-01-15 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22673 * fns.c (Fsubstring): Clarify doc string.
22675 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
22676 (Fprevious_char_property_change)
22677 (Fnext_single_char_property_change)
22678 (Fprevious_single_char_property_change, Fnext_property_change)
22679 (Fnext_single_property_change, Fprevious_property_change)
22680 (Fprevious_single_property_change, Fadd_text_properties)
22681 (Fput_text_property, Fset_text_properties)
22682 (Fremove_text_properties, Fremove_list_of_text_properties)
22683 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
22685 2003-01-14 Kim F. Storm <storm@cua.dk>
22687 * process.h (struct Lisp_Process): New member plist replaces old
22688 member private_vars. All uses changed.
22690 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
22691 (QCplist): Rename from QCvars. Change all uses.
22692 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
22693 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
22694 (syms_of_process): Intern, staticpro, defsubr these.
22695 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
22697 2003-01-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22699 * m/delta.h: Remove (obsolete).
22701 2003-01-13 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22703 * fileio.c (Fdelete_directory, Fdelete_file): Document the
22704 behaviour in front of symlinks.
22705 (Fdelete_file): Raise an error on directories.
22707 2003-01-13 Dave Love <fx@gnu.org>
22709 * fns.c (Freverse): Use QUIT.
22711 2003-01-13 Richard M. Stallman <rms@gnu.org>
22713 * minibuf.c (minibuffer_completion_contents):
22714 Error if point is inside prompt.
22716 * keyboard.c (command_loop_1): Don't redisplay directly
22717 if there's a post-command-hook.
22719 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
22720 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
22722 2003-01-12 Kim F. Storm <storm@cua.dk>
22724 * process.h (struct Lisp_Process): New member private_vars.
22726 * process.c (QCvars): New variable.
22727 (syms_of_process): Intern and staticpro it.
22728 (Fset_process_contact): Removed function.
22729 (Fprocess_variable, Fset_process_variable): New functions.
22730 (syms_of_process): Defsubr them.
22731 (Fstart_process): Initialize private_vars plist to nil.
22732 (Fmake_network_process): New arg :vars to setup the private
22733 variables for new network process.
22734 (server_accept_connection): Copy server's private variables to
22737 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
22738 crashes). Code rewritten and simplified. Now directly aligns the
22739 pointer and recalculates pure_bytes_used, rather than aligning the
22740 size and adjusting the pointer.
22742 2003-01-11 Kim F. Storm <storm@cua.dk>
22744 * process.c (Fset_process_contact): New function.
22745 (syms_of_process): defsubr it.
22746 (make-network-process): Update doc.
22748 2003-01-10 Andreas Schwab <schwab@suse.de>
22750 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
22751 Reported by Berthold Gunreben <b.gunreben@web.de>.
22753 2003-01-10 Dave Love <fx@gnu.org>
22755 * composite.c (syms_of_composite): Make composition_hash_table weak.
22757 2003-01-09 Kim F. Storm <storm@cua.dk>
22759 * process.c (Fmake_network_process): Convert new port number
22760 to host byte order for `:service t' case. From Mario Lang.
22762 2003-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22764 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
22765 instead of XtAppProcessEvent.
22767 * xterm.c (handle_one_xevent): New function.
22768 (x_dispatch_event): New function.
22769 (XTread_socket): Call handle_one_xevent.
22771 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
22773 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
22774 call XQueryPointer to get coordinates.
22775 (popup_get_selection): Do not set popup_activated_flag to zero,
22776 let popup_deactivate_callback do that. Needed for Motif.
22777 Call x_dispatch_event instead of XtDispatchEvent.
22778 (xmenu_show): Calculate root coordinate from frame top/left position.
22780 2003-01-08 Kim F. Storm <storm@cua.dk>
22782 * process.c (server_accept_connection): Fix recording of new
22783 connection's local address in :local property of contact info.
22784 (Fmake_network_process): Record local network address for new
22785 client processes in :local property of contact info.
22786 (format-network-address): Add arg OMIT-PORT. Change callers.
22788 2003-01-07 Dave Love <fx@gnu.org>
22790 * Makefile.in (fns.o): Depend on coding.h.
22792 2003-01-06 Dave Love <fx@gnu.org>
22794 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
22795 (Vlocale_coding_system): Declare.
22796 (Qcodeset, Qdays, Qmonths, Qpaper): New.
22798 (syms_of_fns): Initialize new stuff.
22800 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
22802 * minibuf.c (Fread_variable): Doc fix.
22804 * eval.c (Fuser_variable_p): Doc change. For custom variables,
22805 use the same test as for custom-variable-p.
22807 2003-01-05 Richard M. Stallman <rms@gnu.org>
22809 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
22810 Count LAST_LINE_MISFIT in scroll margin for end of window.
22811 Move label too_near_end before setting SCROLL_MARGIN_POS.
22812 Set LAST_LINE_MISFIT before jumping there.
22814 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
22815 scroll_conservatively case. If scrolling that much doesn't change
22816 STARTP, move it down one line.
22818 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
22819 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
22821 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
22824 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
22825 (syms_of_keymap): Staticpro them.
22826 (Fapropos_internal): Initialize them and clear them out.
22829 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
22831 * lisp.h: New misc type Lisp_Save_Value.
22832 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
22833 (XSAVE_VALUE): New macro.
22834 (struct Lisp_Save_Value): New data type.
22835 (union Lisp_Misc): Add u_save_value alternative.
22836 (make_save_value): Declare.
22838 * alloc.c (make_save_value): New function.
22840 * xterm.c (x_catch_errors): Save dpy using make_save_value.
22841 (x_catch_errors_unwind): Call XSync.
22843 2003-01-01 Richard M. Stallman <rms@gnu.org>
22845 * window.c (window_scroll_pixel_based): Partially undo last change.
22847 * keyboard.c (command_loop_1): Call adjust_point_for_property
22848 in direct action cases for Qforward_char and Qbackward_char.
22849 Set already_adjusted so it won't be done twice.
22851 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
22853 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
22854 type definition of size_t.
22856 2003-01-02 Steven Tamm <steventamm@mac.com>
22858 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
22859 distinguish Carbon GUI builds from X11 builds on darwin.
22861 2002-12-30 Steven Tamm <steventamm@mac.com>
22863 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
22866 2002-12-29 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22868 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
22870 2002-12-28 Steven Tamm <steventamm@mac.com>
22872 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
22873 allow building in a different directory than source. Uses some
22874 GNU Make extensions, but there is no other make on Mac OS X.
22876 2002-12-26 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
22878 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
22879 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
22880 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
22881 (Fstring_to_number): Mention the returned value in the doc strings.
22883 2002-12-23 Richard M. Stallman <rms@gnu.org>
22885 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
22886 <scroll-down-aggressively>: Doc fix.
22888 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
22889 string as pane name, if there is one.
22890 (set_frame_menubar): Save menu_items_n_panes from each call to
22891 parse_single_submenu and use it when calling digest_single_submenu.
22893 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
22894 Don't try to make last line fully visible if it is past end of window.
22896 2002-12-22 Steven Tamm <steventamm@mac.com>
22898 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
22899 (mac_menu_show): Add support for hierarchical popup menus.
22900 (add_menu_item): Remove indentation support.
22901 (fill_submenu, fill_menu): Create hierarchical menus
22902 instead of using indentation.
22904 2002-12-22 Richard M. Stallman <rms@gnu.org>
22906 * xdisp.c (try_cursor_movement): Don't call try_window here.
22907 (redisplay_window): Never redisplay minibuffer when inactive.
22909 * window.c (select_window_1): Undo 9/21 change.
22911 2002-12-22 Steven Tamm <steventamm@mac.com>
22913 * macterm.c (XTread_socket): Call KeyTranslate for control and
22914 meta to deal correctly shifted non-alpha characters, like C-S-5
22915 being treated like C-%. Do not look for shift key to deal
22916 with masking off control-key with mac-reverse-ctrl-meta.
22918 2002-12-21 Richard M. Stallman <rms@gnu.org>
22920 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
22921 If it is non-nil, run timers. Use an unwind-protect to requeue
22922 the events that were read ahead.
22923 (popup_get_selection_unwind): New subroutine.
22924 (popup_get_selection_queue): File-scope variable now holds that queue.
22925 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
22926 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
22927 Use an unwind-protect to pop down the dialog box.
22928 (xdialog_show_unwind): New subroutine implements that.
22930 * xdisp.c (row_containing_pos): Change exit test using last_y.
22931 (try_window_id): Abort if row_containing_pos returns null.
22933 * lread.c (load_error_handler): New function.
22934 (Fload): Handle errors in Fsubstitute_in_file_name.
22935 Don't expect Fsignal to return.
22937 * eval.c: Errors and throws work right with interrupt blocking.
22938 (struct catchtag): New elt interrupt_input_blocked.
22939 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
22940 (internal_catch, Fcondition_case, internal_condition_case)
22941 (internal_condition_case_1, internal_condition_case_2): Save it.
22942 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
22944 * editfns.c (Fformat): Add parens.
22946 * dired.c (file_name_completion): Fix that change.
22947 Delete special quit-handling code; just use QUIT.
22949 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
22951 * dired.c (file_name_completion): Close directory on error
22952 just as in directory_files_internal.
22954 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
22956 * window.c (Fset_window_configuration): Set old_point to correct
22957 value when new_current_buffer == current_buffer.
22959 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
22961 Revisited my earlier fix for the following entry in etc/PROBLEMS:
22962 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
22963 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
22965 These changes were in part based upon suggestions made by Peter
22966 'Luna' Runestig [peter@runestig.com].
22968 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
22969 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
22970 (g_b_init_get_sid_identifier_authority ): Add several static
22973 * w32.c (globals_of_w32): New function. Used to initialize those
22974 global variables that must always be initialized on startup even
22975 when the global variable initialized is non zero. Its primary
22976 purpose at this time is to set the global variables
22977 g_b_init_is_windows_9x, g_b_init_open_process_token,
22978 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
22979 g_b_init_get_sid_identifier_authority to 0 on startup.
22982 * w32.c (is_windows_9x): Perform initialization only if
22983 g_b_init_is_windows_9x is equal to 0. On initialization set
22984 g_b_init_is_windows_9x equal to 1.
22986 * w32.c (open_process_token): Perform initialization only if
22987 g_b_init_open_process_token is equal to 0. On initialization set
22988 g_b_init_open_process_token equal to 1.
22990 * w32.c (get_token_information): Perform initialization only if
22991 g_b_init_get_token_information is equal to 0. On initialization
22992 set g_b_init_get_token_information equal to 1.
22994 * w32.c (lookup_account_sid): Perform initialization only if
22995 g_b_init_lookup_account_sid is equal to 0. On initialization
22996 set g_b_init_lookup_account_sid equal to 1.
22998 * w32.c (get_sid_identifier_authority): Perform initialization
22999 only if g_b_init_get_sid_identifier_authority is equal to 0.
23000 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
23002 * w32fns.c (globals_of_w32fns): New function. Used to initialize
23003 those global variables that must always be initialized on startup
23004 even when the global variable initialized is non zero.
23005 Its primary purpose at this time is to initialize the global variable
23006 track_mouse_event_fn.
23008 * w32fns.c (w32_wnd_proc): Remove initialization of
23009 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
23011 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
23013 * w32menu.c (globals_of_w32menu): New function. Used to
23014 initialize those global variables that must always be initialized
23015 on startup even when the global variable initialized is non zero.
23016 Its primary purpose at this time is to initialize the global
23017 variables get_menu_item_info and set_menu_item_info.
23019 * w32menu.c (initialize_frame_menubar): Remove initialization of
23020 get_menu_item_info and set_menu_item_info.
23022 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
23024 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
23027 * emacs.c (main): Call globals_of_w32 prior to calling
23028 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
23029 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
23032 * w32term.c (x_update_window_begin): Fix Windows API error
23033 detected by BoundsChecker. Test to determine if
23034 w32_system_caret_hwnd is NULL prior to attempting to use
23035 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
23037 * w32term.c (x_update_window_end): Fix Windows API error
23038 detected by BoundsChecker. Test to determine if
23039 w32_system_caret_hwnd is NULL prior to attempting to use
23040 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
23042 2002-12-17 Kenichi Handa <handa@m17n.org>
23044 * coding.c (coding_system_require_warning): New variable.
23045 (syms_of_coding): DEFVAR it.
23047 * coding.h (coding_system_require_warning): Extern it.
23049 * fileio.c (choose_write_coding_system): Even if
23050 Vcoding_system_for_write is non-nil, if
23051 coding_system_require_warning is nonzero, call
23052 Vselect_safe_coding_system_function.
23054 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
23056 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
23057 (lisp): Add font-core.
23059 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
23061 * textprop.c (text_read_only): New arg `propval'.
23062 (get_char_property_and_overlay): Remove unused var `next_overlay'.
23063 (verify_interval_modification): Use text_read_only's new arg.
23065 2002-12-13 Kenichi Handa <handa@m17n.org>
23067 * coding.c (Funencodable_char_position): Set pend correctly.
23069 2002-12-12 Jason Rumney <jasonr@gnu.org>
23071 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
23072 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
23073 Be more careful about when help_events are generated.
23075 2002-12-12 Steven Tamm <steventamm@mac.com>
23077 * macterm.c (mac_check_for_quit_char): Correctly set the
23078 modifiers of the event to 0.
23079 * mac.c (sys_select): Duplicate rfds before calling select to
23080 ensure that rfds survive the while loop.
23082 2002-12-11 Kim F. Storm <storm@cua.dk>
23084 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
23085 row_containing_pos returned NULL.
23087 2002-12-10 Steven Tamm <steventamm@mac.com>
23089 * mac.c (sys_read): Fix sys_read to not call select if IO is
23091 (sys_select): Fix sys_select to not use a timeout larger than
23094 2002-12-10 Juanma Barranquero <lektu@terra.es>
23096 * editfns.c (Fformat): Use alloca, not _alloca.
23098 2002-12-09 Richard M. Stallman <rms@gnu.org>
23100 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
23103 2002-12-09 Dave Love <fx@gnu.org>
23105 * s/sol2-8.h: Removed. (Not necessary.)
23107 2002-12-09 Matthew Swift <swift@alum.mit.edu>
23109 * editfns.c (Fformat): Handle precision in string conversion
23110 specifiers like libc functions do (ie, print at most that many
23113 2002-12-08 Richard M. Stallman <rms@gnu.org>
23115 * xdisp.c (row_containing_pos): Check more carefully
23116 whether charpos is really in the row before returning it.
23118 2002-12-07 Steven Tamm <steventamm@mac.com>
23120 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
23122 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
23123 each stack frame. This may change as it could be time consuming.
23125 * macterm.c (mac_check_for_quit_char, quit_char_comp)
23126 (init_quit_char_handler, mac_determine_quit_char_modifiers)
23127 (mac_initialize): Add code to check for pressing of quit_char
23128 in the OS event queue.
23130 * mac.c (sys_select): Call mac_check_for_quit_char every second
23131 while blocking on select.
23133 * mac.c (sys_read): Use sys_select to test for input first
23134 before calling read, to allow C-g to break.
23136 2002-12-07 Richard M. Stallman <rms@gnu.org>
23138 * minibuf.c (Fcompleting_read): Doc fix.
23140 * lread.c (syms_of_lread) <load-history>: Doc fix.
23142 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
23144 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
23147 * data.c (Fdefalias): Record in load-history redefining an autoload.
23149 * alloca.c: Undo ifdef change accidentally made on 12-04.
23151 2002-12-06 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
23153 * xfns.c (png_load): Avoid double gamma correction for PNG images.
23155 2002-12-04 Richard M. Stallman <rms@gnu.org>
23157 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
23159 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
23161 * alloca.c: Don't use #error.
23163 2002-12-03 Dave Love <fx@gnu.org>
23165 * buffer.c (Qucs_set_table_for_input): New.
23166 (Fget_buffer_create): Use it.
23167 (Qset_buffer_major_mode_hook): Deleted.
23168 (Fset_buffer_major_mode): Revert previous change.
23169 (init_buffer_once): Intern ucs-set-table-for-input.
23170 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
23171 Add &Qucs_set_table_for_input.
23173 2002-12-03 Andreas Schwab <schwab@suse.de>
23175 * callint.c (Fcall_interactively): Use next_event only if less
23178 2002-12-02 Andrew Choi <akochoi@shaw.ca>
23180 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
23181 names to 255 characters.
23183 * macterm.c (XTread_socket): If all frames have been collapsed,
23184 expand the first one before handling drag-and-drop events.
23186 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
23187 which is detected by autoconf.
23189 2002-12-01 Steven Tamm <steventamm@mac.com>
23191 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
23192 offset in two hints table to allow prebinding to be redone and
23193 allow the executable to be stripped.
23195 2002-11-29 Dave Love <fx@gnu.org>
23197 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
23200 2002-11-29 Richard M. Stallman <rms@gnu.org>
23202 * xdisp.c (start_display): Check more intelligently for
23203 whether the line is continued.
23204 (move_it_vertically_backward): Clear it->continuation_lines_width.
23206 2002-11-28 Dave Love <fx@gnu.org>
23208 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
23209 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
23211 2002-11-27 Steven Tamm <steventamm@mac.com>
23213 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
23214 more descriptive error output from lread.c:Fload upon most require
23215 cycles during boostrapping.
23217 2002-11-27 Jason Rumney <jasonr@gnu.org>
23219 * fileio.c (Finsert_file_contents): Give a more appropriate error
23220 for files bigger than 2Gb when off_t is 32 bit.
23222 * dired.c (Ffile_attributes): Don't return negative file sizes for
23223 files bigger than 2Gb when off_t is 32 bit.
23225 2002-11-27 Dave Love <fx@gnu.org>
23227 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
23229 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
23230 Test GETPGRP_VOID instead.
23231 [BSD_TERMIOS]: Remove definitions (never used).
23233 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
23235 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
23237 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
23239 2002-11-25 Jason Rumney <jasonr@gnu.org>
23241 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
23244 2002-11-25 Dave Love <fx@gnu.org>
23246 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
23248 * Makefile.in (TEMACS_LDFLAGS): Update last change.
23250 2002-11-25 Andreas Schwab <schwab@suse.de>
23252 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
23254 2002-11-24 Steven Tamm <steventamm@mac.com>
23256 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
23257 determine the size of pointers alloced in unexed space instead
23258 of using possibly invalid emacs_zone pointers. This fixes the
23259 binary incompatibility problems caused by updates to libSystem.B.
23261 2002-11-24 Richard M. Stallman <rms@gnu.org>
23263 * search.c (Fstring_match): Doc fix.
23265 * callint.c (Fcall_interactively): If a command fails because
23266 `*' detects a read-only buffer, but RECORD_FLAG is set,
23267 record it anyway if the args don't actually do tty input.
23269 2002-11-22 Dave Love <fx@gnu.org>
23271 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
23273 * keyboard.c (interrupt_signal): Provide forward declaration.
23274 (kbd_buffer_store_event): Don't declare interrupt_signal.
23276 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
23278 2002-11-21 Richard M. Stallman <rms@gnu.org>
23280 * eval.c (interactive_p): Skip any number of bytecode
23281 and special form frames, in any order.
23283 2002-11-20 Jason Rumney <jasonr@gnu.org>
23285 * w32fns.c (convert_mono_to_color_image): New function.
23286 (xbm_load, xbm_load_image): Use it when foreground or background
23289 2002-11-19 Dave Love <fx@gnu.org>
23291 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
23293 2002-11-18 Jason Rumney <jasonr@gnu.org>
23295 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
23296 (XPutPixel): Swap blue and red.
23297 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
23298 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
23299 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
23300 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
23302 2002-11-18 Dave Love <fx@gnu.org>
23304 * m/orion105.h (HAVE_ALLOCA): Don't define.
23306 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
23308 * m/intel386.h: Don't include alloca.h or define alloca.
23310 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
23311 malloc, realloc, calloc.
23313 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
23314 (bcmp): Don't define.
23316 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
23318 * m/amdahl.h: Don't define LIB_STANDARD.
23320 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
23322 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
23324 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
23325 Don't include alloca.h.
23327 * s/aix3-2.h (HAVE_FSYNC): Don't define.
23329 * regex.c (_GNU_SOURCE): Don't define.
23331 * process.c (_GNU_SOURCE): Don't define.
23333 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
23335 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
23337 * s/sol2-8.h: Include sol2-6.h.
23339 2002-11-18 Miles Bader <miles@gnu.org>
23341 * dispextern.h (struct face): Add `overstrike' field.
23342 * xterm.c (x_draw_glyph_string_foreground)
23343 (x_draw_composite_glyph_string_foreground): Implement overstriking.
23344 * xfaces.c (load_face_font): Set `face->overstrike' based on
23345 result from choose_face_font.
23346 (best_matching_font, choose_face_font): Add `needs_overstrike'
23347 argument, and use it to return whether overstriking is desirable
23348 for this face/font combo.
23349 (set_font_frame_param: Pass new argument to choose_face_font.
23351 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
23353 This change is my fix for the following entry in etc/PROBLEMS:
23354 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
23355 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
23357 * w32.c: Added wrapper functions around the win32 API functions
23358 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
23359 GetSidIdentifierAuthority. These wrapper functions serve two
23361 1. They ensure that the wrapped function can never be called
23362 when Emacs is running on an operating system on which they are
23363 not supported (Microsoft Windows 95 / 98 / ME).
23364 2. They call the wrapped functions via function pointers rather
23365 than calling them directly. This avoids taking advantage of the
23366 undocumented fact that although these functions are not supported
23367 in the 9x branch of Microsoft Windows, the functions do exist in
23368 the version of advapi32.dll that is found in the 9x branch of
23371 * w32.c (init_user_info): Replace the calls to the win32 API
23372 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
23373 and GetSidIdentifierAuthority with calls to the newly added
23376 * w32.h: Added extern declarations for the following functions:
23377 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
23378 syms_of_w32menu, and void syms_of_fontset.
23380 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
23381 function pointer track_mouse_event_fn in the handler for the
23382 WM_SETFOCUS message.
23384 * w32menu.c (initialize_frame_menubar): Add code to
23385 reinitialize the function pointers set_menu_item_info and
23386 get_menu_item_info.
23388 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
23390 * sound.c: Added a partial implementation of play-sound-internal
23391 for Microsoft Windows. Added various #ifdef / #else / #endif
23392 code blocks to separate the code that will compile under
23393 Microsoft Windows from the code that is specific to GNU/Linux.
23394 Moved several blocks of code around to make this separation of code
23395 into Windows compatible and GNU/Linux compatible code blocks easier.
23397 * makefile.w32-in: Include sound.c and link with WinMM.lib.
23399 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
23400 added support for play-sound-internal under Windows would be
23401 included in the build of Emacs.
23403 2002-11-16 Jason Rumney <jasonr@gnu.org>
23405 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
23407 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
23409 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
23411 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
23412 (adjust_point_for_property): Move out of display and invisible even if
23413 we were already inside before (in case a property was added while
23414 we weren't looking). Be more careful when handling invisible props.
23415 Skip invisible text as if it really wasn't there at all.
23417 2002-11-15 Jason Rumney <jasonr@gnu.org>
23419 * w32term.c (x_draw_image_foreground)
23420 (w32_draw_image_foreground_1): Use standard copy and invert
23421 operations to draw images.
23423 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
23425 (xbm_read_bitmap_data): Invert bits as xbm is read in.
23426 (XPutPixel): Don't invert bits here.
23428 2002-11-15 Jason Rumney <jasonr@gnu.org>
23430 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
23431 (w32_draw_image_foreground_1): Handle image masks.
23432 (x_draw_image_glyph_string): Don't BitBlt transparently.
23434 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
23435 (x_from_xcolors): Adjust RGB values for W32.
23436 (image_background, image_background_transparent)
23437 (postprocess_image, x_to_xcolors, x_disable_image)
23438 (x_build_heuristic_mask): Adapt for W32 and enable.
23439 (x_create_x_image_and_pixmap): Mark images with palettes as such.
23440 (xbm_load): Remove unused variable.
23442 2002-11-14 Richard M. Stallman <rms@gnu.org>
23444 * buffer.c (syms_of_buffer): Doc fix.
23446 2002-11-14 Dave Love <fx@gnu.org>
23448 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
23450 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
23451 * xmenu.c (unuse_menu_items, digest_single_submenu):
23452 * xfns.c (x_put_x_image):
23453 * xdisp.c (message2_nolog, set_message):
23454 * undo.c (record_point):
23455 * terminfo.c (tparam):
23456 * syntax.c (scan_sexps_forward):
23457 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23458 * composite.c (update_compositions):
23459 * cm.c (calccost, cmgoto):
23460 * charset.c (c_string_width): Declare all args (per C99).
23462 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
23464 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
23467 * emacs.c (main) [!VMS]: Avoid third arg.
23469 * fns.c (Fcopy_sequence): Doc fix.
23470 (Fmap_char_table): Cast `call2'.
23472 2002-11-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
23474 * s/sol2-8.h: New file.
23476 2002-11-14 Kim F. Storm <storm@cua.dk>
23478 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
23479 dependency on `risky-local-variable' and the :propertize form.
23481 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
23483 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
23485 * syntax.c (scan_sexps_forward): Undo last patch.
23486 Use a more obvious fix: check eob before updating the syntax table.
23488 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
23490 * syntax.c (scan_sexps_forward): Update syntax table before reading
23491 a char rather than after so we don't update the table past eob.
23493 2002-11-09 Dave Love <fx@gnu.org>
23495 * buffer.c (Fset_buffer_major_mode): Fix last change.
23497 * regex.c (regexec): Fix pmatch declaration.
23499 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
23501 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
23502 to self-inserting characters.
23503 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
23505 * coding.c (Vtranslation_table_for_input): New.
23506 (syms_of_coding): DEFVAR it.
23508 2002-11-08 Juanma Barranquero <lektu@terra.es>
23510 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
23513 2002-11-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23515 * process.c (Fformat_network_address): Remove unused locals p,
23518 2002-11-06 Dave Love <fx@gnu.org>
23520 * buffer.c (Qset_buffer_major_mode_hook): New.
23521 (Fset_buffer_major_mode): Use it.
23523 2002-11-06 Richard M. Stallman <rms@gnu.org>
23525 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
23528 * process.c (wait_reading_process_input):
23529 Test POLLING_PROBLEM_IN_SELECT, not hpux.
23530 Avoid initialization for auto Lisp_Object var.
23532 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
23534 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
23536 2002-11-05 Richard M. Stallman <rms@gnu.org>
23538 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
23540 * callint.c (Fcall_interactively): New local filter_specs.
23541 (Fcall_interactively): Check for progn as well as let.
23543 (Qprogn): New variable.
23544 (syms_of_callint): Staticpro and init Qprogn.
23546 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
23548 * lread.c (Feval_buffer): Doc fix.
23550 2002-11-04 Dave Love <fx@gnu.org>
23552 * keyboard.c (read_char): Always translate iff
23553 Vkeyboard_translate_table is a char table and c is valid.
23555 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23558 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
23560 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
23562 * editfns.c (get_pos_property): Don't hardcode Qfield.
23564 * keyboard.c (adjust_point_for_property): Handle `display' prop on
23565 overlays. Also handle `invisible' prop.
23567 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
23569 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
23570 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
23572 2002-11-01 Andreas Schwab <schwab@suse.de>
23574 * editfns.c (Fmessage): Revert last change to properly handle %%.
23576 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
23578 * xmenu.c (unuse_menu_items): New fun.
23579 (menu_items_inuse): New var.
23580 (syms_of_xmenu): Initialize it.
23581 (init_menu_items): Use it to detect re-entrance.
23582 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
23583 (Fx_popup_menu): Remove spurious XSETFRAME.
23585 * editfns.c (find_field): Make an exception for nil fields.
23587 2002-11-01 Dave Love <fx@gnu.org>
23589 * m/gec63.h: Deleted.
23591 2002-10-31 Dave Love <fx@gnu.org>
23593 * xterm.c (XTread_socket): Fix last change.
23594 (xaw_scroll_callback): Cast call_data to long to avoid warning.
23596 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
23598 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
23600 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
23602 * editfns.c (overlays_around, get_pos_property): New funs.
23603 (find_field): Use them.
23604 Also be careful not to modify POS before its last use.
23605 (Fmessage): Don't Fformat if there's nothing to format.
23607 2002-10-30 Dave Love <fx@gnu.org>
23609 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
23610 [HAVE_PTY_H]; Include pty.h.
23612 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
23614 * xterm.c (Qeql): Declare.
23615 (Vx_keysym_table): New.
23616 (syms_of_xterm): Initialize it.
23617 (XTread_socket): Use it. Deal with ASCII keysyms.
23618 (XSetIMValues) [HAVE_X11R6]: Prototype.
23620 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
23621 (lispy_kana_keys): Comment out.
23622 (make_lispy_event) [XK_kana_A]: Comment out.
23623 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
23626 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
23628 (TERMINFO, LIBS_TERMCAP): Define.
23630 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
23631 (bcmp): Define conditional on HAVE_BCMP.
23632 (NO_SIOCTL_H): Don't define.
23633 (TIOCSIGSEND): Don't make conditional on IRIX6.
23635 * s/sol2-5.h: Don't include strings.h.
23636 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
23638 * s/irix6-0.h (IRIX6): Don't define.
23639 (bcopy, bcmp, bzero): Don't undef.
23641 * s/irix6-5.h: Don't include strings.h.
23642 (IRIX6): Don't define.
23643 (bcopy, bcmp, bzero): Don't undef.
23645 * syntax.c (Fforward_comment): Doc fix.
23647 2002-10-29 Kim F. Storm <storm@cua.dk>
23649 * process.c (Fsignal_process): Allow PROCESS to be specified by
23650 name in addition to pid (as integer or string).
23652 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
23654 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
23657 2002-10-27 Kim F. Storm <storm@cua.dk>
23659 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
23661 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
23663 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
23665 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
23667 2002-10-26 Richard M. Stallman <rms@gnu.org>
23669 * editfns.c (Fformat): Detect invalid format letters for floats.
23671 2002-10-25 Kenichi Handa <handa@m17n.org>
23673 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
23674 (x_set_title): Likewise.
23676 2002-10-25 Juanma Barranquero <lektu@terra.es>
23679 * w32gui.h: Remove definition of XColor.
23681 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
23683 2002-10-24 Kim F. Storm <storm@cua.dk>
23685 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
23686 Callers changed (supply dummy arg).
23688 * lisp.h (get_window_cursor_type): Update prototype.
23690 * w32term.c (x_display_and_set_cursor): Get active_cursor from
23691 get_window_cursor_type to track system caret.
23693 2002-10-24 Kim F. Storm <storm@cua.dk>
23695 * process.c (Fformat_network_address): New function.
23696 (syms_of_process): Defsubr it.
23697 (list_processes_1): Use it to format :local/:remote address if
23698 service/host is not set; before Emacs would crash in that case.
23699 (Fmake_network_process): Don't use Ffind_operation_coding_system
23700 to setup coding system if host or service is not set.
23702 2002-10-23 Juanma Barranquero <lektu@terra.es>
23704 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
23706 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
23710 * w32gui.h: Add definition of XColor.
23714 * xfaces.c: Remove definition of XColor.
23716 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
23718 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
23720 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
23721 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
23722 window if it is dedicated.
23723 (Fshrink_window): Add preserve_before as was done for enlarge_window.
23724 (Vspecial_display_function): Update docstring.
23726 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
23727 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
23728 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
23730 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
23732 * casefiddle.c (casify_region): Don't treat a prefix char as part
23733 of a word when at the beginning.
23735 2002-10-17 Juanma Barranquero <lektu@terra.es>
23737 * lread.c (syms_of_lread): Fix typos.
23739 2002-10-17 Dave Love <fx@gnu.org>
23741 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
23743 2002-10-16 Richard M. Stallman <rms@gnu.org>
23745 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
23747 2002-10-14 Juanma Barranquero <lektu@terra.es>
23749 * w16select.c (syms_of_win16select): Fix docstring for
23750 `selection-coding-system'.
23752 * w32select.c (syms_of_w32select): Likewise.
23754 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
23756 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
23757 a backslash-quoted char.
23758 (scan_lists, scan_sexps_forward): Pacify the compiler.
23760 2002-10-13 Richard M. Stallman <rms@gnu.org>
23762 * window.c (window_scroll): Set immediate_quit.
23764 * print.c (print): When backquote form is the car of a list,
23765 output in old style. Use old_backquote_output to output all
23766 comma forms inside it in old style too.
23768 * buffer.h (struct buffer): Move `undo_list' down below `name'.
23770 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
23772 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
23775 * lread.c (Fload): Doc fix (load-suffixes).
23777 2002-10-10 Steven Tamm <steventamm@mac.com>
23779 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
23780 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
23781 Also switch the default to Qnil from Qt.
23783 2002-10-08 Kenichi Handa <handa@m17n.org>
23785 * coding.c (code_convert_region): When we need more GAP for
23786 conversion, pay attention to the case that coding->produced is not
23787 greater than coding->consumed.
23789 2002-10-07 Richard M. Stallman <rms@gnu.org>
23791 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
23793 2002-10-06 Andrew Choi <akochoi@shaw.ca>
23795 * macmenu.c (mac_menu_show): Add j to count menu items; match
23796 menu_item_selection to it to find selected item.
23798 2002-10-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
23800 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
23801 cases. The correct fix is to pass ReparentNotify to Xt.
23802 The shell widget interprets ConfigureNotify differently depending
23803 on if it has been reparented or not.
23805 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
23807 * editfns.c (Fformat_time_string): Doc fix.
23809 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
23811 * fns.c (Flength): Doc fix.
23813 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
23815 * keyboard.c (keyremap): New struct.
23816 (read_key_sequence): Use it: globally replace keytran_foo with
23817 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
23818 keytran_next and fkey_next to just `next'.
23820 2002-10-04 Steven Tamm <steventamm@mac.com>
23822 * macterm.c (keycode_to_xkeysym_table): Change return to be
23823 treated like an X keysym.
23825 2002-10-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
23827 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
23828 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
23829 This is to also handle x/y changes that occur because of a resize.
23831 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
23833 * frame.c (Vdelete_frame_functions): New variable.
23834 (syms_of_frame): Initialize and defvar it.
23835 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
23836 it when frame's `tooltip' parameter is non-nil.
23838 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
23840 * w32fns.c (x_create_tip_frame): Likewise.
23842 * macfns.c (x_create_tip_frame): Likewise.
23844 2002-09-30 Kenichi Handa <handa@m17n.org>
23846 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
23847 -1 before calling ccl_driver.
23849 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
23850 Only when it is non-nil, handle composition sequence.
23851 (setup_coding_system) <0>: Don't force composition handling.
23853 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
23855 2002-09-29 Richard M. Stallman <rms@gnu.org>
23857 * search.c (Freplace_match): Adjust match data for the substitution
23858 just made in the buffer.
23860 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
23861 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
23863 2002-09-27 Richard M. Stallman <rms@gnu.org>
23865 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
23866 (read_char): Use them. Do all exits thru the end of the function.
23868 2002-09-27 Kenichi Handa <handa@etl.go.jp>
23870 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
23873 2002-09-26 Richard M. Stallman <rms@gnu.org>
23875 * regex.h (__restrict_arr): Don't define if already defined.
23877 * coding.c (run_pre_post_conversion_on_str):
23878 Save and restore Vdeactivate_mark.
23880 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
23882 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
23884 2002-09-26 Kenichi Handa <handa@etl.go.jp>
23886 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
23887 nonzero, try face's family at first. Otherwise try FAMILY at first.
23888 (choose_face_font): If C is a single byte char or latin-1, call
23889 try_font_list with PREFER_FACE_FAMILY 1.
23891 2002-09-21 Richard M. Stallman <rms@gnu.org>
23893 * window.c (select_window_1): Don't select frame.
23894 Set frame's selected window only when frame itself is selected.
23895 (Fselect_window): Doc fix.
23897 2002-09-18 Kim F. Storm <storm@cua.dk>
23899 * process.c (make-network-process): Doc fix (there is no
23900 network-server-log-function hook).
23902 2002-09-18 Richard M. Stallman <rms@gnu.org>
23904 * print.c (print): Clear out the unused parts of Vprint_number_table.
23905 (syms_of_print): Doc fix for `print-number-table'.
23907 * unexelf.c (unexec): Undo previous change.
23909 2002-09-17 Andreas Schwab <schwab@suse.de>
23911 * m/alpha.h [LINUX]: Don't define DATA_START.
23913 2002-09-16 Dave Love <fx@gnu.org>
23915 * unexelf.c (unexec): Deal with .got, reinstating change from
23918 2002-09-13 Richard M. Stallman <rms@gnu.org>
23920 * s/sol2-6.h (UNEXEC): Comment out definition.
23922 * unexsol.c (unexec): Don't downcase first letter of error msg.
23924 * xfaces.c (Fcolor_supported_p): Just one arg is required.
23926 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
23928 * unexsol.c: Include buffer.h, charset.h, coding.h.
23930 2002-09-11 Richard M. Stallman <rms@gnu.org>
23932 * unexsol.c: Don't use report_file_error; do it by hand
23935 * process.c (wait_reading_process_input, both versions):
23936 Before calling turn_on_atimers, call stop_polling.
23938 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
23940 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
23941 we go to too_near_end, call clear_glyph_matrix.
23942 (redisplay_window): After make_cursor_line_fully_visible,
23943 call clear_glyph_matrix and bypass `goto done'.
23945 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
23946 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
23948 2002-09-10 Richard M. Stallman <rms@gnu.org>
23950 * fileio.c (Fdo_auto_save): Catch error making directory.
23951 Only call push_message if we need to.
23952 At the same time, make an unwind-protect to pop it.
23953 Rename local message_p to old_message_p.
23954 (do_auto_save_make_dir, do_auto_save_eh): New functions.
23955 (do_auto_save_unwind): Don't call pop_message.
23957 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
23959 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
23961 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
23963 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
23965 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
23967 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
23968 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
23969 (re_match_2_internal): Be more careful with infinite loops.
23971 2002-09-10 Kim F. Storm <storm@cua.dk>
23973 * macros.c (end_kbd_macro): New function.
23974 (Fend_kbd_macro): Use it.
23976 * macros.h (end_kbd_macro): Declare extern.
23978 * keyboard.c (Fdiscard_input): If defining keyboard macro,
23979 end and save it instead of discarding it.
23981 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
23983 * s/sol2-6.h: Fix typo. Add comment.
23985 2002-09-09 Richard M. Stallman <rms@gnu.org>
23987 * regex.c (regnum_t): Use signed int, not unsigned int.
23989 * s/sol2-6.h: New file.
23991 * s/sol2-5.h (UNEXEC): Definition deleted.
23993 2002-09-08 Kim F. Storm <storm@cua.dk>
23995 * macros.c (executing_macro_index): Change type to EMACS_INT.
23996 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
23998 * macros.h (executing_macro_index): Change type to EMACS_INT.
24000 2002-09-06 Richard M. Stallman <rms@gnu.org>
24002 * casetab.c (set_case_table): Make canon table point to eqv table.
24004 2002-09-06 Juanma Barranquero <lektu@terra.es>
24006 * coding.c (syms_of_coding): Fix spacing.
24008 * composite.c (Fcompose_region_internal)
24009 (Fcompose_string_internal): Likewise.
24011 * data.c (Flsh): Likewise.
24013 * fontset.c (Fset_fontset_font): Likewise.
24015 * macfns.c (Fx_server_max_request_size): Likewise.
24017 * w16select.c (syms_of_win16select): Likewise.
24019 * w32select.c (syms_of_w32select): Likewise.
24021 * xselect.c (syms_of_xselect): Likewise.
24023 2002-09-05 Richard M. Stallman <rms@gnu.org>
24025 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
24026 call EXTEND_RANGE_TABLE and return a proper value.
24027 (set_image_of_range): Don't call set_image_of_range_1
24028 if no TRANSLATE or if range includes all of Latin-1.
24029 Only call it for the Latin-1 part of the range.
24030 For other cases, make two separate ranges,
24031 one for the original specified characters and one for
24032 their case-conversions.
24034 2002-09-04 Richard M. Stallman <rms@gnu.org>
24036 * s/sol2-5.h (UNEXEC): Use unexsol.o.
24038 * window.c (displayed_window_lines): Correct for one-off bug
24039 in HEIGHT on non-window displays.
24041 * regex.c (set_image_of_range_1): New function.
24042 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
24043 Return a value to indicate running out of memory.
24044 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
24045 (extend_range_table_work_area): New subroutine.
24046 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
24047 Different calling conventions, and used from set_image_of_range{,_1}.
24048 (IMMEDIATE_QUIT_CHECK): Definitions moved.
24050 2002-09-04 Juanma Barranquero <lektu@terra.es>
24052 * makefile.w32-in: All dependencies updated.
24054 2002-09-01 Richard M. Stallman <rms@gnu.org>
24056 * unexsol.c: New file.
24058 * xfns.c (Qbox): Declare external, don't define.
24060 * xdisp.c (redisplay_window) <force-start case>:
24061 If point is on semi-visible last line, reposition
24062 it at previous line.
24064 * alloc.c (display_malloc_warning): Use display-warning.
24065 (malloc_warning_1): Function deleted.
24067 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
24069 * lread.c (read1): Handle #! by skipping the line.
24071 2002-08-31 Richard M. Stallman <rms@gnu.org>
24073 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
24074 Don't include LDFLAGS.
24075 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
24077 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
24079 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
24080 member of x_display_info unless we compile for some window system.
24082 2002-08-31 Kim F. Storm <storm@cua.dk>
24084 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
24085 (get_window_cursor_type): Don't use them.
24086 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
24088 2002-08-30 Kenichi Handa <handa@etl.go.jp>
24090 * xdisp.c (get_next_display_element): Fix previous change.
24092 2002-08-30 Andrew Choi <akochoi@shaw.ca>
24094 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
24095 (expose_window): Use it to fix the display of overlapping
24096 rows (merge code from xterm.c).
24098 * macfns.c (Qbox): Add extern declaration.
24100 2002-08-30 Juanma Barranquero <lektu@terra.es>
24102 * w32fns.c (Qbox): Make extern.
24103 (syms_of_w32fns): Remove initialization of Qbox.
24105 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
24107 * xfns.c (Fx_open_connection): Fix error message.
24109 2002-08-30 Kim F. Storm <storm@cua.dk>
24111 The following changes consolidates the handling of the cursor
24112 type in xdisp.c, moving duplicate code and functionality from
24113 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
24115 * frame.h (enum text_cursor_kinds): Consolidated here.
24116 Added DEFAULT_CURSOR value.
24117 (struct frame) <desired_cursor, cursor_width>
24118 <blink_off_cursor, blink_off_cursor_width>: New fields.
24119 Consolidated from output_x, output_w32 and output_mac structs.
24120 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
24121 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
24123 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
24124 Variables consolidated here.
24125 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
24126 (Vcursor_in_non_selected_windows): Renamed from
24127 cursor_in_non_selected_windows and changed to Lisp_Object.
24128 (syms_of_xdisp): Define and staticpro new and moved variables.
24129 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
24130 consolidated here. Recognize Qhollow setting.
24131 (set_frame_cursor_types): New function to set frame cursor types
24132 based on the frame parameters.
24133 (get_window_cursor_type): New function to calculate new cursor
24134 type and width for the specified window. Based on duplicated
24135 code consolidated here.
24136 Enhancements: cursor-in-non-selected-windows may be a cursor type,
24137 check buffer-local alternate-cursor-type and blink-cursor-alist
24138 before using built-in blink off methods.
24140 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
24142 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
24143 (get_specified_cursor_type, get_window_cursor_type)
24144 (set_frame_cursor_types): Added prototypes.
24146 * macfns.c (x_specified_cursor_type): Removed.
24147 (x_set_cursor_type): Use set_frame_cursor_types.
24148 (Qbar, Qbox): Removed.
24149 (syms_of_macfns): Don't intern or staticpro them.
24151 * macterm.c (x_specified_cursor_type): Remove prototype.
24152 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
24153 (x_display_and_set_cursor): Use get_window_cursor_type.
24154 Remove unused local variables cursor_non_selected, active_cursor.
24155 Redraw cursor if hbar cursor width changes.
24156 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
24158 * macterm.h (enum text_cursor_kinds): Removed.
24159 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
24160 <blink_off_cursor, blink_off_cursor_width>: Members removed.
24161 (FRAME_DESIRED_CURSOR): Macro removed.
24163 * w32fns.c (Vblink_cursor_alist): Removed.
24164 (Qbar, Qhbar, Qbox, Qhollow): Removed.
24165 (syms_of_w32fns): Don't intern, staticpro, or define them.
24166 (x_specified_cursor_type): Removed.
24167 (x_set_cursor_type): Use set_frame_cursor_types.
24169 * w32term.c (x_specified_cursor_type): Remove prototype.
24170 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
24171 (x_display_and_set_cursor): Use get_window_cursor_type.
24172 Remove unused local variables cursor_off_state.
24173 Redraw cursor if hbar cursor width changes.
24174 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
24176 * w32term.h (enum text_cursor_kinds): Removed.
24177 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
24178 <blink_off_cursor, blink_off_cursor_width>: Members removed.
24179 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
24180 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
24181 (struct w32_display_info) <x_highlight_frame>: Renamed member from
24182 w32_highlight_frame.
24184 * xfns.c (Vblink_cursor_alist): Removed.
24185 (Qbar, Qhbar, Qbox, Qhollow): Removed.
24186 (syms_of_xfns): Don't intern, staticpro, or define them.
24187 (x_specified_cursor_type): Removed.
24188 (x_set_cursor_type): Use set_frame_cursor_types.
24190 * xterm.c (x_specified_cursor_type): Remove prototype.
24191 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
24192 (x_display_and_set_cursor): Use get_window_cursor_type.
24193 Remove unused local variables cursor_off_state.
24194 Redraw cursor if hbar cursor width changes.
24196 * xterm.h (enum text_cursor_kinds): Removed.
24197 (struct output_x) <current_cursor, desired_cursor, cursor_width>
24198 <blink_off_cursor, blink_off_cursor_width>: Members removed.
24199 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
24200 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
24201 (x_specified_cursor_type): Remove prototype.
24203 2002-08-28 Richard M. Stallman <rms@gnu.org>
24205 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
24206 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
24207 (Vblink_cursor_alist): New variable.
24208 (syms_of_w32fns): Initialize and defvar it.
24209 (x_specified_cursor_type): Recognize Qbox for filled box.
24210 Exceptions are hollow boxes.
24211 (Qbox, Qhollow): New variables.
24212 (syms_of_w32fns): Initialize and staticpro them.
24214 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
24216 (struct w32_output): New fields blink_off_cursor,
24217 blink_off_cursor_width.
24218 (FRAME_CURSOR_WIDTH): New macro.
24220 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
24221 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
24223 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
24226 * w32term.c (expose_overlaps): New function.
24227 (expose_window): Use it to fix the display of overlapping rows.
24229 2002-08-28 Simon Josefsson <jas@extundo.com>
24231 * xfns.c (Fx_open_connection): Improve help when X connection
24232 fails, xhost is insecure and xauth is better.
24234 2002-08-28 Juanma Barranquero <lektu@terra.es>
24236 * makefile.w32-in: Add missing dependencies on w32term.h and
24239 * emacs.c (USAGE1): Add missing newline.
24241 2002-08-27 Andrew Choi <akochoi@shaw.ca>
24243 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
24245 2002-08-27 Richard M. Stallman <rms@gnu.org>
24247 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
24248 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
24249 (Vblink_cursor_alist): New variable.
24250 (syms_of_xfns): Initialize and defvar it.
24251 (x_specified_cursor_type): Recognize Qbox for filled box.
24252 Exceptions are hollow boxes.
24253 (Qbox, Qhollow): New variables.
24254 (syms_of_xfns): Initialize and staticpro them.
24256 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
24258 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
24260 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
24261 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
24263 * emacs.c (main): Handle --script.
24264 (USAGE1): Mention --script.
24265 (standard_args): Define sort order for --script.
24267 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
24269 * xdisp.c (redisplay_updating_p): Variable removed.
24270 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
24272 (init_iterator): Don't free realized faces if
24273 inhibit_free_realized_faces is set.
24274 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
24275 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
24276 initialize Qinhibit_free_realized_faces.
24278 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
24279 when iterator is adding glyphs to a glyph matrix.
24281 2002-08-27 Kenichi Handa <handa@etl.go.jp>
24283 * xdisp.c (get_next_display_element): In unibyte case, don't use
24284 octal form for such eight-bit characters that can be converted to
24287 2002-08-26 Kim F. Storm <storm@cua.dk>
24289 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
24290 foreground and background colors. From Joe Buehler.
24292 2002-08-26 Miles Bader <miles@gnu.org>
24294 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
24296 2002-08-25 Andrew Choi <akochoi@shaw.ca>
24298 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
24299 defined instead of MAC_OSX.
24301 * s/darwin.h (select): Define select to sys_select only if
24302 HAVE_CARBON is defined.
24303 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
24304 (DONT_REOPEN_PTY): #def it.
24306 * macterm.c (XTread_socket): Remove code to call
24307 SendEventToEventTarget for keys with command modifiers when
24308 mac_command_key_is_meta is nil.
24310 2002-08-24 Andreas Schwab <schwab@suse.de>
24312 * eval.c (Fdefvar): Fix last change.
24314 2002-08-23 Richard M. Stallman <rms@gnu.org>
24316 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
24317 Record variables in load history as (defvar . VAR).
24318 (Fdefvar): Don't record in load history if no initial value.
24319 (Qdefvar): New variable.
24320 (syms_of_eval): Init and staticpro it.
24322 * lread.c (syms_of_lread): Doc fix.
24323 (build_load_history): Use Fmember to see if a definition
24324 is already in the Vload_history element.
24326 * process.c (Fstart_process): Remove /: from program name.
24328 * emacs.c (decode_env_path): Don't add /: if file name handler
24329 has a `safe-magic' property.
24331 * callproc.c (Fcall_process): Remove /: from program name.
24333 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
24335 * regex.c (PATFETCH): Remove the translating fetch.
24336 (PATFETCH_RAW): Rename to PATFETCH.
24337 (set_image_of_range): New fun.
24338 (SET_RANGE_TABLE_WORK_AREA): Use it.
24339 (regex_compile): Don't translate the pattern chars so eagerly.
24340 Only do it when inserting an `exactn' bytecode or when handling
24342 (mutually_exclusive_p): Avoid empty statement.
24344 2002-08-22 Kim F. Storm <storm@cua.dk>
24346 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
24347 end up on a partially visible line; this reverts a specific part
24348 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
24349 display error which has been reported several times now.
24350 However it introduces the problem that changes was supposed to fix.
24351 See my comments in the source if you want to debug this further.
24353 2002-08-20 Kenichi Handa <handa@etl.go.jp>
24355 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
24357 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
24359 * msdos.c (croak): Add `void' to definition.
24361 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
24362 Don't define them, they are defined in msdos.c.
24364 * mem-limits.h [MSDOS]: Declare etext.
24366 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
24367 `const' since CORRECT_DIR_SEPS modifies its target.
24369 2002-08-19 Kim F. Storm <storm@cua.dk>
24371 * keyboard.c (Fclear_this_command_keys): Add optional arg
24372 KEEP-RECORD to avoid clearing lossage when we just want to clear
24373 the current key sequence (kmacro needs this).
24375 2002-08-19 Kenichi Handa <handa@localhost>
24377 * composite.c (run_composition_function): Call FUNC if it is fboundp.
24379 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
24382 2002-08-17 Richard M. Stallman <rms@gnu.org>
24384 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
24386 * sysdep.c [!VMS]: Include sys/files.h.
24388 * editfns.c (save_restriction_restore): Defend from unchained marker.
24390 * buffer.c (overlays_at): Handle extending vec uniformly.
24391 (overlays_in): Handle extending vec from length 0 as in overlays_at.
24393 2002-08-15 Andrew Choi <akochoi@shaw.ca>
24395 * mac.c (init_mac_osx_environment): New function.
24397 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
24399 2002-08-14 Kim F. Storm <storm@cua.dk>
24401 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
24402 executing macro before appending to it (when used from Lisp).
24403 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
24404 which is called prior to each iteration of macro (for kmacro.el).
24405 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
24407 * lisp.h (Fexecute_kbd_macro): Update prototype.
24409 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
24411 2002-08-14 Kenichi Handa <handa@etl.go.jp>
24413 * xselect.c (QUTF8_STRING): New variable.
24414 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
24415 (x_atom_to_symbol): Likewise.
24416 (x_get_local_selection): New argument local_request. If it is
24417 nonzero, call handler_fn with the second arg nil.
24418 (x_handle_selection_request): Call x_get_local_selection with
24420 (lisp_data_to_selection_data): Don't encode the string here.
24421 (Fx_get_selection_internal): Call x_get_local_selection with
24423 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
24425 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
24427 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
24429 2002-08-13 Richard M. Stallman <rms@gnu.org>
24431 * minibuf.c (Fminibufferp): New function.
24432 (syms_of_minibuf): Defsubr it.
24433 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
24435 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
24437 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
24439 2002-08-12 Richard M. Stallman <rms@gnu.org>
24441 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
24442 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
24443 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
24446 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
24448 2002-08-11 Andrew Choi <akochoi@shaw.ca>
24450 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
24451 (Vmac_pass_command_to_system): New variable.
24452 (Vmac_pass_control_to_system): New variable.
24453 (do_mouse_moved): Check wp with is_emacs_window.
24454 (XTread_socket): Check window_ptr with is_emacs_window.
24455 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
24456 events back to Mac Toolbox for processing, depending on values of
24457 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
24458 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
24459 Vmac_pass_control_to_system.
24461 2002-08-10 Kenichi Handa <handa@etl.go.jp>
24463 * coding.c (unencodable_char_position): New function.
24464 (Funencodable_char_position): New function.
24465 (syms_of_coding): Defsubr Funencodable_char_position.
24467 2002-08-10 Andrew Choi <akochoi@shaw.ca>
24469 * mac.c (sys_select) [MAC_OSX]: New function.
24471 * macterm.c (MakeMeTheFrontProcess): New function.
24472 (mac_initialize): Call MakeMeTheFrontProcess.
24474 * s/darwin.h: Define select to sys_select.
24476 2002-08-09 Richard M. Stallman <rms@gnu.org>
24478 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
24480 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
24482 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
24485 2002-08-08 Ken Raeburn <raeburn@gnu.org>
24487 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
24489 * puresize.h (BASE_PURESIZE): Increase to 910000.
24491 2002-08-08 Kenichi Handa <handa@etl.go.jp>
24493 * coding.c (Ffind_operation_coding_system): For write-region, if
24494 VISIT is a filename, make it the target.
24496 2002-08-07 Richard M. Stallman <rms@gnu.org>
24498 * alloc.c (mark_object): Detect long lists for debugging.
24499 (mark_object_loop_halt): New variable.
24501 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
24503 * data.c (Fmake_variable_frame_local): Doc fix.
24505 2002-08-01 David Ponce <david@dponce.com>
24507 * w32menu.c (local_heap, local_alloc, local_free): New macros.
24508 (malloc_widget_value, free_widget_value)
24509 (w32_free_submenu_strings): Use them.
24511 (push_submenu_start, push_submenu_end, push_left_right_boundary)
24512 (push_menu_pane, push_menu_item, single_keymap_panes)
24513 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
24514 (single_submenu, set_frame_menubar)
24515 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
24517 (Fx_popup_menu): Don't show pop up menu until preceding one is
24518 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
24520 * w32menu.c: Changes adapted from xmenu.c
24521 (set_frame_menubar): First parse all submenus,
24522 then make widget_value trees from them.
24523 Don't allocate any widget_value objects
24524 until we are done with the parsing.
24525 (parse_single_submenu): New function.
24526 (digest_single_submenu): New function.
24527 (single_submenu): Function deleted, replaced by those two.
24529 2002-08-04 Andrew Choi <akochoi@shaw.ca>
24531 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
24532 returns a valid window pointer before proceeding for keyDown and
24535 2002-08-03 Andrew Choi <akochoi@shaw.ca>
24537 * macterm.c (USE_CARBON_EVENTS): New macro.
24538 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
24539 (x_iconify_frame): Call CollapseWindow.
24540 (Vmac_reverse_ctrl_meta): New variable.
24541 (Vmac_wheel_button_is_mouse_2): New variable.
24542 (init_mac_drag_n_drop): New function.
24543 (mac_do_receive_drag): New function.
24544 (mac_handle_service_event): New function.
24545 (init_service_handler): New function.
24546 (mac_to_emacs_modifiers): New function.
24547 (mac_event_to_emacs_modifiers): New function.
24548 (mac_get_mouse_btn): New function.
24549 (mac_convert_event_ref): New function.
24550 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
24551 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
24553 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
24555 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
24556 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
24557 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
24558 TOOL_BAR_EVENT for MAC_OS as well.
24559 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
24561 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
24563 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
24565 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
24567 * xdisp.c (forward_to_next_line_start): Fix a condition that
24568 lead to a newline being skipped.
24570 2002-08-02 Andrew Choi <akochoi@shaw.ca>
24572 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
24574 2002-08-01 Richard M. Stallman <rms@gnu.org>
24576 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
24578 2002-07-31 Andrew Choi <akochoi@shaw.ca>
24580 * macfns.c: #undef init_process before #define-ing it.
24582 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
24583 HAVE_CARBON is defined.
24585 2002-07-31 Richard M. Stallman <rms@gnu.org>
24587 * xmenu.c (set_frame_menubar): First parse all submenus,
24588 then make widget_value trees from them.
24589 Don't allocate any widget_value objects
24590 until we are done with the parsing.
24591 (parse_single_submenu): New function.
24592 (digest_single_submenu): New function.
24593 (single_submenu): Function deleted, replaced by those two.
24595 2002-07-30 Juanma Barranquero <lektu@terra.es>
24597 * w32proc.c (syms_of_ntproc): Fix docstring of
24598 `w32-get-true-file-attributes'.
24600 2002-07-28 Richard M. Stallman <rms@gnu.org>
24602 * s/hpux8.h (HPUX8): Define this before including hpux.h.
24603 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
24605 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
24607 * keyboard.c (make_lispy_event):
24608 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
24609 Explicitly clear up_modifier in event->modifiers.
24611 2002-07-27 Richard M. Stallman <rms@gnu.org>
24613 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
24615 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
24618 2002-07-26 Kenichi Handa <handa@etl.go.jp>
24620 * coding.c (detect_coding_iso2022): While checking a byte sequence
24621 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
24622 it in the normal loop.
24624 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
24626 * xterm.c (expose_overlaps): New function.
24627 (expose_window): Use it to fix the display of overlapping rows.
24629 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
24631 2002-07-23 Ken Raeburn <raeburn@gnu.org>
24633 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
24634 since it only depends on XUINT.
24636 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
24637 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
24638 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
24641 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
24642 its value over other approaches.
24643 * sysdep.c (start_of_data): Don't define the function if a macro
24644 form has been defined.
24646 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
24648 * xdisp.c (redisplay_updating_p): New variable.
24649 (init_iterator): Don't free realized faces when
24650 redisplay_updating_p is set.
24651 (redisplay_internal): Set redisplay_updating_p while updating
24654 2002-07-23 Richard M. Stallman <rms@gnu.org>
24656 * editfns.c (Fmessage): Treat "" like nil.
24658 2002-07-23 Kenichi Handa <handa@etl.go.jp>
24660 * xdisp.c (face_before_or_after_it_pos):
24661 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
24663 2002-07-22 Juanma Barranquero <lektu@terra.es>
24665 * callproc.c (init_callproc) [DOS_NT]:
24666 Initialize Vshared_game_score_directory to nil.
24667 (syms_of_callproc) [DOS_NT]: Likewise.
24669 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
24671 * xdisp.c (display_line): Replace an abort with xassert.
24673 2002-07-21 Richard M. Stallman <rms@gnu.org>
24675 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
24676 and END_UNCHANGED when setting buffer_unchanged_p.
24677 Use current_matrix_up_to_date_p to decide whether to use
24678 try_cursor_movement.
24680 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
24682 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
24684 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
24685 Set to nil if dir does not exist.
24686 (syms_of_callproc): Init unconditionally and simply.
24688 * buffer.c (Fbuffer_list): Doc fix.
24690 2002-07-21 Ken Raeburn <raeburn@gnu.org>
24692 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
24694 * buffer.c (mmap_realloc): When shrinking, make sure number of
24695 pages to unmap is rounded towards zero.
24697 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
24698 (XSETINT): Deleted.
24700 * m/att3b.h (XINT): Don't define.
24701 (VALBITS, VALMASK, XTYPE): Deleted.
24702 (DATA_SEG_BITS): Define.
24703 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
24704 ARRAY_MARK_FLAG): Deleted.
24705 (DATA_SEG_BITS): Define.
24706 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
24707 (DATA_SEG_BITS): Define.
24709 2002-07-20 Richard M. Stallman <rms@gnu.org>
24711 * print.c (print_error_message): New args CONTEXT and CALLER.
24714 * lisp.h (print_error_message): Declare new args.
24716 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
24717 and CONTEXT to print_error_message, don't print them here.
24718 For a Quit, don't use Vsignaling_function.
24719 Call message_log_maybe_newline.
24721 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
24723 2002-07-20 Kim F. Storm <storm@cua.dk>
24725 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
24727 2002-07-19 Ken Raeburn <raeburn@gnu.org>
24729 * bytecode.c (struct byte_stack): Pointers into byte string now
24731 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
24733 * charset.h (BCOPY_SHORT): Source pointer now points to const.
24734 * coding.c (encode_eol, detect_coding, detect_eol):
24735 (decode_coding, encode_coding, detect_coding_system):
24736 Source strings now treated as const.
24737 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
24738 modify Lisp string contents.
24739 * coding.h (decode_coding, encode_coding, detect_coding,
24740 detect_eol): Declarations updated.
24741 * composite.c (compose_chars_in_text): Treat Lisp string contents
24743 * dispnew.c (safe_bcopy): Source pointer now points to const.
24744 * lisp.h (STRING_COPYIN): New macro.
24745 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
24746 (internal_with_output_to_temp_buffer): Declarations updated.
24747 * print.c (temp_output_buffer_setup):
24748 (internal_with_output_to_temp_buffer): Buffer name argument is now
24750 * sound.c (struct sound_device): Function pointer field "write"
24751 buffer argument now points to const.
24752 (vox_write): Buffer argument points to const.
24753 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
24755 * sysdep.c (emacs_write): Buffer pointer now const.
24756 * term.c (encode_terminal_code): Buffer pointer now const.
24757 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
24758 (x_face_list_fonts, x_update_menu_appearance):
24759 (hash_string_case_insensitive): Treat Lisp string contents as const.
24761 2002-07-19 Juanma Barranquero <lektu@terra.es>
24763 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
24765 * fileio.c (syms_of_fileio): Likewise.
24766 (Ffile_name_as_directory): Fix argument name in docstring.
24767 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
24769 2002-07-18 Richard M. Stallman <rms@gnu.org>
24771 * data.c (Fdefalias): Doc fix.
24773 2002-07-17 Dave Love <fx@gnu.org>
24775 * intervals.h (text_property_stickiness): Use P_.
24777 * ccl.c: Remove `emacs' conditionals.
24778 (ccl_backtrace_table): Fix size spec.
24779 (ccl_driver): Fix type errors.
24781 2002-07-16 Ken Raeburn <raeburn@gnu.org>
24783 * alloc.c (xstrdup, make_string, make_unibyte_string)
24784 (make_multibyte_string, build_string): String pointer args now
24786 * charset.c (find_charset_in_text, c_string_width):
24787 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
24788 * fileio.c (report_file_error):
24789 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
24790 (count_combining_before, count_combining_after, insert_1_both):
24791 (insert, insert_and_inherit, insert_string):
24792 (insert_before_markers, insert_before_markers_and_inherit):
24793 * lread.c (intern, oblookup, hash_string):
24794 * minibuf.c (temp_echo_area_glyphs):
24795 * search.c (fast_c_string_match_ignore_case):
24796 * sysdep.c (emacs_open, set_file_times):
24797 * xfaces.c (xstricmp):
24798 * xdisp.c (store_frame_title, string_char_and_length):
24799 (message_dolog, message2, message2_nolog, set_message): Likewise.
24800 (set_message_1): Cast message string argument to const pointer.
24801 * editfns.c (general_insert_function): Insertion function now
24802 takes pointer to const for input data.
24803 * charset.h (find_charset_in_text, c_string_width):
24804 (parse_str_as_multibyte): Declarations updated.
24805 * dispextern.h (xstricmp): Declaration updated.
24806 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
24807 (count_size_as_multibyte, count_combining_before):
24808 (count_combining_after, insert_1, insert_1_both, message_dolog):
24809 (insert, insert_and_inherit, insert_before_markers)
24810 (insert_before_markers_and_inherit, set_message, message2):
24811 (message2_dolog, build_string, make_string, make_unibyte_string):
24812 (make_multibyte_string, intern, oblookup, report_file_error):
24813 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
24814 (emacs_open, xstrdup): Declarations updated.
24815 * systime.h (set_file_times): Declaration updated.
24817 * charset.c (find_charset_in_text, lisp_string_width): Use const
24818 for pointer to lisp string data.
24819 * charset.h (FETCH_STRING_CHAR_ADVANCE):
24820 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
24821 * coding.c (Ffind_coding_systems_region_interval):
24822 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
24823 (Fmake_directory_internal, Fdelete_directory):
24824 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
24825 * fontset.c (font_family_registry, fs_query_fontset):
24827 * frame.c (Fframe_parameter):
24828 * keyboard.c (cmd_error_internal):
24829 * keymap.c (Fdescribe_buffer_bindings):
24830 * lread.c (complete_filename_p, openp):
24831 * minibuf.c (Fminibuffer_complete_word):
24832 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
24833 (face_before_or_after_it_pos, next_element_from_string):
24834 (get_overlay_arrow_glyph_row, display_mode_element):
24835 (decode_mode_spec_coding):
24836 * xterm.c (same_x_server): Likewise.
24838 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
24839 settings of non-existent fields.
24841 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
24844 * lread.c (Fintern_soft): Use string macros instead of
24845 Lisp_String fields.
24846 * keyboard.c (echo_char, parse_modifiers_uncached):
24847 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
24848 * textprop.c (validate_interval_range, interval_of): Likewise.
24850 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
24852 * charset.h (FETCH_STRING_CHAR_ADVANCE)
24853 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
24854 XSTRING()->size_byte.
24856 * lisp.h (SDATA, SREF): Produce rvalue.
24858 * alloc.c (make_event_array): Use SSET for storing into a string.
24859 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
24861 * casefiddle.c (casify_object): Use SSET.
24862 * charset.h (FETCH_STRING_CHAR_ADVANCE)
24863 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
24864 address of string contents.
24865 * data.c (Faref): Use SDATA.
24866 (Faset): Use SDATA, SSET.
24867 * dired.c (directory_files_internal): Use SSET.
24868 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
24869 (Fread_file_name): Use SREF, SSET.
24870 * fns.c (concat): Use SSET.
24871 (concat, Fdelete): Use SDATA.
24872 * insdel.c (insert_from_string_1): Use SDATA.
24873 * keyboard.c (Fevent_convert_list): Use SREF.
24874 * lread.c (Fload): Use SDATA, SSET.
24875 * macfns.c (validate_x_resource_name): Use SSET.
24876 * process.c (status_message): Use SSET.
24877 * search.c (wordify): Use SDATA.
24878 (Freplace_match): Use SREF.
24879 * w32fns.c (validate_x_resource_name): Use SSET.
24880 * xfns.c (validate_x_resource_name): Use SSET.
24881 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
24883 2002-07-16 Richard M. Stallman <rms@gnu.org>
24885 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
24887 * xdisp.c (reconsider_clip_changes):
24888 Don't test prevent_redisplay_optimizations_p.
24889 (redisplay_internal): Test prevent_redisplay_optimizations_p
24890 along with clip_changed in some cases.
24891 (try_window_id): Likewise.
24892 (redisplay_window): New local var buffer_unchanged_p.
24894 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
24896 * process.c (create_process): Test USG_SUBTTY_WORKS.
24897 (process_send_signal): Clean up handling of GID.
24898 Detect errors in ioctls meant to set GID.
24900 * window.c (temp_output_buffer_show):
24901 Don't set prevent_redisplay_optimizations_p.
24903 2002-07-15 Juanma Barranquero <lektu@terra.es>
24905 * eval.c (Fdefvaralias): Add docstring argument.
24907 2002-07-15 Ken Raeburn <raeburn@gnu.org>
24909 * lisp.h (STRING_INTERVALS): Produce rvalue.
24910 (STRING_SET_INTERVALS): New macro.
24911 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
24912 * fns.c (Fstring_as_multibyte): Likewise.
24913 * intervals.c (balance_possible_root_interval, delete_interval)
24914 (create_root_interval, copy_intervals_to_string): Likewise.
24915 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
24918 2002-07-14 Ken Raeburn <raeburn@gnu.org>
24920 * lisp.h (STRING_SET_CHARS): New macro.
24921 (SCHARS, SBYTES): Produce rvalues.
24922 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
24923 * fns.c (concat): Likewise.
24924 * lread.c (read_vector): Likewise.
24926 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
24927 (STRING_SET_UNIBYTE): New macro.
24928 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
24929 length of -1) changed to use STRING_SET_UNIBYTE.
24930 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
24931 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
24932 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
24933 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
24934 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
24935 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
24936 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
24937 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
24938 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
24939 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
24940 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
24941 STRING_BYTES or indirection changed to SCHARS, SBYTES,
24942 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
24945 2002-07-13 Kim F. Storm <storm@cua.dk>
24947 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
24949 2002-07-12 Richard M. Stallman <rms@gnu.org>
24951 * fileio.c (Fwrite_region): Doc fix.
24953 * print.c (print_error_message): Don't handle Vsignaling_function here.
24955 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
24956 (command_loop_1): Avoid certain actions after memory-full error.
24958 * eval.c (Fsignal): Don't call cancel_hourglass.
24959 For a memory-full error, don't call Vsignal_hook_function
24960 and don't set Vsignaling_function.
24962 * process.c (process_send_signal): Add abort call.
24964 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
24966 * keymap.c (Fkey_binding): Fix typo.
24968 2002-07-11 Richard M. Stallman <rms@gnu.org>
24970 * alloc.c (Vmemory_full): New variable.
24971 (Vmemory_signal_data): Rename from memory_signal_data.
24973 (syms_of_alloc): Defvar them.
24974 (memory_full, buffer_memory_full): Set Vmemory_full.
24976 * lisp.h (Vmemory_full): Add declaration.
24977 (current_column, indented_beyond_p): Change declaration.
24979 * indent.c (last_known_column): Declare as double, not float.
24980 (current_column, current_column_1, string_display_width)
24981 (position_indentation): Return `double'.
24982 (indented_beyond_p): Arg `column' is `double'. Callers changed.
24984 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
24985 (back_to_previous_visible_line_start)
24986 (reseat_at_next_visible_line_start, next_element_from_buffer):
24987 Use `double', not `float', when calling indented_beyond_p.
24989 * s/hpux11.h (BROKEN_SA_RESTART): Define.
24991 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
24993 2002-07-11 Juanma Barranquero <lektu@terra.es>
24995 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
24996 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
24997 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
24998 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
24999 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
25000 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
25002 2002-07-10 Juanma Barranquero <lektu@terra.es>
25004 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
25005 All callers changed.
25007 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
25009 * data.c (Fdefalias): Add an optional `docstring' argument.
25010 (set_internal, Fsetq_default): Use XCAR/XCDR.
25012 * composite.c (HASH_VALUE, HASH_KEY):
25013 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
25015 2002-07-09 Kenichi Handa <handa@etl.go.jp>
25017 * callproc.c (Fcall_process): Fix previous change.
25019 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
25021 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
25022 Add support for hash-tables.
25023 (Ftry_completion): Return t even if the string appears multiple times.
25025 * fns.c (Fnconc): Use XCDR.
25026 (Fprovide): Use CONSP and XCDR.
25027 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
25028 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
25029 (Fmake_hash_table): Accept `:size nil'.
25030 (Fmakehash): Delete: moved to subr.el.
25031 (syms_of_fns): Don't defsubr makehash.
25033 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
25034 (HASH_TABLE_SIZE): Move from fns.c.
25036 2002-07-07 Richard M. Stallman <rms@gnu.org>
25038 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
25039 Instead just return 0 when there is something to be done.
25040 (try_scrolling): If make_cursor_line_fully_visible returns 0,
25041 retry scrolling as if cursor were off the bottom.
25042 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
25043 return CURSOR_MOVEMENT_MUST_SCROLL.
25044 (redisplay_window): If make_cursor_line_fully_visible returns 0,
25045 go to try_to_scroll.
25047 * buffer.c (Fbuffer_local_value): Store current value into its binding
25048 so we get the up-to-date value for the binding that is loaded.
25050 * eval.c (Fdefmacro): Doc fix.
25052 2002-07-05 Dave Love <fx@gnu.org>
25054 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
25057 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
25058 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
25059 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
25060 CCL_LookupCharConstTbl.
25061 (syms_of_ccl): Defvar translation-hash-table-vector.
25063 2002-07-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25065 * xdisp.c: Remove unused variable `face'.
25067 2002-07-04 Juanma Barranquero <lektu@terra.es>
25069 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
25070 obsolescence information.
25072 2002-07-03 Andrew Choi <akochoi@shaw.ca>
25074 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
25075 pattern. Search cache first.
25076 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
25078 (XLoadQueryFont): Use it.
25080 2002-07-02 Richard M. Stallman <rms@gnu.org>
25082 * keymap.c (Fdefine_key): Doc fix.
25084 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
25086 2002-07-02 Juanma Barranquero <lektu@terra.es>
25088 * keymap.c (syms_of_keymap): Fix typo.
25090 2002-07-01 Andrew Choi <akochoi@shaw.ca>
25092 * s/darwin.h: Define POSIX_SIGNALS.
25094 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
25095 and FSRefMakePath to convert FSSpec returned with Apple Event to
25097 (mac_initialize) [TARGET_API_MAC_CARBON]:
25098 Call init_required_apple_events and disable the `Quit' menu item
25099 provided automatically by the Carbon Toolbox.
25101 2002-07-01 Dave Love <fx@gnu.org>
25103 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
25106 * xterm.c: Fix prototype for K&R.
25108 * term.c (costs_set): Declare static, non-initialized for pcc.
25110 2002-07-01 Richard M. Stallman <rms@gnu.org>
25112 * keyboard.c (timer_last_idleness_start_time): New variable.
25113 (timer_start_idle): Set that.
25114 (read_key_sequence): Use that to reset timer_idleness_start_time
25117 * window.c (Frecenter): With arg, set optional_new_start.
25119 * xdisp.c (redisplay_internal): Make optional_new_start really work.
25121 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
25122 buffer for completion.
25124 2002-06-29 Ken Raeburn <raeburn@gnu.org>
25126 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
25128 2002-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
25130 * keyboard.c (readable_filtered_events): New function that filters
25131 FOCUS_IN_EVENT depending on parameter.
25132 (readable_events): Calls readable_filtered_events, not filtering
25134 (get_filtered_input_pending): New function, filtering parameter passed
25135 to readable_filtered_events.
25136 (get_input_pending): Calls get_filtered_input_pending, not filtering
25138 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
25141 * xterm.h (struct x_output): Add focus_state.
25143 * xterm.c (x_focus_changed): New function.
25144 (x_detect_focus_change): New function.
25145 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
25146 EnterNotify and LeaveNotify to track X focus changes.
25148 2002-06-28 Andreas Schwab <schwab@suse.de>
25150 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
25152 2002-06-27 Kim F. Storm <storm@cua.dk>
25154 * xdisp.c (mode_line_string_list, mode_line_string_face)
25155 (mode_line_string_face_prop): New variables.
25156 (store_mode_line_string): New function.
25157 (display_mode_element): Use store_mode_line_string to
25158 add mode-line string elements to mode_line_string_list
25159 when mode_line_string_list is non-nil.
25160 (Fformat_mode_line): Now returns propertized string by
25161 default. New arg NO-PROPS to ignore properties.
25162 (decode_mode_spec): Only add two dashes for %- in propertized
25164 (syms_of_xdisp): Init and staticpro mode_line_string_list.
25166 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
25168 * minibuf.c (minibuffer_completion_contents): Add return type.
25170 2002-06-27 Juanma Barranquero <lektu@terra.es>
25172 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
25174 2002-06-26 Juanma Barranquero <lektu@terra.es>
25176 * fileio.c (read_file_name_cleanup): Add missing return.
25178 2002-06-26 Richard M. Stallman <rms@gnu.org>
25180 * window.c (Frecenter): Don't set force_start flag.
25182 * minibuf.c (do_completion, Fminibuffer_complete_word)
25183 (Fminibuffer_completion_help): Complete just the text before point.
25184 (minibuffer_completion_contents): New function.
25186 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
25188 * frame.c (frames_bury_buffer): Function deleted.
25190 2002-06-25 Miles Bader <miles@gnu.org>
25192 * callint.c (Fcall_interactively): When checking to see if doprnt hit
25193 the end of callint_message, allow for a terminating '\0'.
25195 2002-06-24 Juanma Barranquero <lektu@terra.es>
25197 * w32select.c: Include composite.h.
25199 * w16select.c: Likewise.
25201 2002-06-24 Kenichi Handa <handa@etl.go.jp>
25203 * callproc.c (Fcall_process): If code detection is necessary,
25204 call detect_coding directly here.
25206 * coding.c (detect_eol): Preserve coding->cmp_data.
25208 * w16select.c (Fw16_get_clipboard_data):
25209 * w32fns.c (w32_to_x_font):
25210 * w32select.c (Fw32_get_clipboard_data):
25211 * xselect.c (selection_data_to_lisp_data):
25212 * xterm.c (XTread_socket): Disable composition handling.
25214 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
25216 * print.c (temp_output_buffer_setup): Kill all local variables.
25218 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
25220 * lread.c (Fread): Remove redundant and imprecise declaration.
25222 * xfns.c (check_x_display_info): Use check_x_frame.
25224 * .gdbinit (xprintsym): Use the new `xname' field.
25227 2002-06-22 Jason Rumney <jasonr@gnu.org>
25229 * w32fns.c (file_dialog_callback): New function.
25230 (Fx_file_dialog): Allow selecting directories as well as files.
25232 2002-06-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25234 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
25235 OpenBSD. Add support for mipseb-*-netbsd* machines.
25237 2002-06-17 Andrew Choi <akochoi@shaw.ca>
25239 * macterm.c (mac_scroll_area): Set foreground and backcolor to
25240 black and white before scrolling. Restore frame background and
25241 foreground color after scrolling.
25242 (do_window_update): Call XClearWindow before calling expose_frame.
25243 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
25244 FRAME_FOREGROUND_PIXEL of frame.
25246 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
25247 test Mac command key as <ALT> key.
25249 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
25251 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
25253 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
25254 Lookup keys in function-key-map immediately so that key-translation-map
25255 can be applied earlier.
25256 Remove function_key_possible and key_translation_possible, replaced
25257 by checking `keytran_start < t'.
25259 * .gdbinit (xsymbol): Use the new `xname' field.
25261 2002-06-17 Andrew Choi <akochoi@shaw.ca>
25263 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
25264 test Mac command key as <ALT> key.
25266 * mac.c (do_applescript): Call initialize_applescript if necessary
25267 when first called. Dispose of result_desc only when there is no error.
25268 (Fdo_applescript): Use %d format specifier instead of %ld.
25270 2002-06-16 Andrew Choi <akochoi@shaw.ca>
25272 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
25273 of FrontWindow for cases keyDown and autoKey.
25275 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
25276 Vdefault_fontset to Monaco with mac-roman coding.
25278 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
25279 init_process before and after inclusion of Carbon/Carbon.h, resp.
25281 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
25283 (add_font_name_table_entry): New function.
25284 (init_font_name_table): Use add_font_name_table_entry; add italic,
25285 bold, and bold-italic entries for truetype fonts.
25287 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
25289 (try_font_list) [MAC_OS]: If no font matches given registry, try
25290 fonts with any registry matching face_family.
25291 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
25293 * s/darwin.h: If autoconf detects the Ncurses library, define
25294 LIBS_TERMCAP to -lncurses to use it.
25296 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
25298 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
25300 2002-06-15 Richard M. Stallman <rms@gnu.org>
25302 * window.c (Fset_window_configuration): Explicitly preserve
25303 the point value that new_current_buffer had at the start.
25305 2002-06-14 Juanma Barranquero <lektu@terra.es>
25307 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
25310 2002-06-14 Kim F. Storm <storm@cua.dk>
25312 * insdel.c (insert_1_both, insert_from_string_1)
25313 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
25314 insert happened in the end_unchanged region. Otherwise, the
25315 redisplay may be confused and duplicate the last line in the
25316 buffer [seen after save-buffer when require-final-newline==t].
25318 2002-06-13 Jason Rumney <jasonr@gnu.org>
25320 * w32.c (init_environment): Remove EMACSLOCKDIR.
25321 (stat): Swap _S_IFDIR and _S_IFREG.
25323 2002-06-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25325 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
25326 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
25327 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
25328 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
25329 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
25330 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
25331 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
25332 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
25333 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
25334 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
25335 SELECTION_REQUEST_EVENT, selection_clear_event to
25336 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
25337 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
25338 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
25339 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
25340 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
25341 no_event to NO_EVENT.
25343 2002-06-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25345 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
25347 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
25349 * intervals.c (textget): Don't forget to `return'.
25350 (lookup_char_property): Use XCAR/XCDR.
25352 2002-06-12 Juanma Barranquero <lektu@terra.es>
25354 * xdisp.c (Fformat_mode_line): Fix typo.
25356 2002-06-12 Kim F. Storm <storm@cua.dk>
25358 * xdisp.c (Fformat_mode_line): New function.
25359 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
25360 (store_frame_title_char, store_frame_title): Use unconditionally.
25361 (init_xdisp): Defsubr Fformat_mode_line.
25362 Initialize frame_title_buf etc. unconditionally.
25364 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
25366 * keyboard.c (read_key_sequence):
25367 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
25368 things through those maps after downcasing events.
25369 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
25370 applies after function-key-map.
25371 Make sure that keytran can be done in the middle in the sequence.
25372 Be careful not to throw away events past the one we downcase.
25374 * lread.c (read_integer): Remove unused var `tem'.
25375 (read1): Fix int/Lisp_Object mixup.
25377 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
25379 2002-06-11 Richard M. Stallman <rms@gnu.org>
25381 * keyboard.c (readable_events): Ignore any number of
25382 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
25384 2002-06-09 Miles Bader <miles@gnu.org>
25386 * xfaces.c (Ftty_supports_face_attributes_p): New function.
25387 (parse_rgb_list, tty_lookup_color): New functions.
25388 (tty_defined_color): Use `tty_lookup_color' to do all the work.
25389 (color_distance, Fcolor_distance): New functions.
25390 (TTY_SAME_COLOR_THRESHOLD): New macro.
25391 (Qtty_color_standard_values): New variable.
25392 (syms_of_xfaces): Initialize new vars & functions.
25394 2002-06-08 Colin Walters <walters@verbum.org>
25396 * textprop.c (Vchar_property_alias_alist): New variable.
25397 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
25399 * intervals.c (lookup_char_property): New function for looking up
25400 overlay and text properties, created from textget.
25403 * intervals.h (lookup_char_property): Declare.
25404 (Vchar_property_alias_alist): Declare.
25406 * buffer.c (Foverlay_get): Use lookup_char_property.
25408 2002-06-07 Sam Steingold <sds@gnu.org>
25410 * xselect.c (lisp_data_to_selection_data): Fix last change:
25411 *data_ret is not a Lisp string, while unibyte_string is.
25413 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
25415 * xselect.c (lisp_data_to_selection_data): Fix last change:
25418 2002-06-07 Andreas Schwab <schwab@suse.de>
25420 * m/amdx86-64.h: New file.
25422 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
25424 * fns.c (Fstring_make_unibyte): Doc fix.
25426 * xselect.c (lisp_data_to_selection_data): If the requested type
25427 is STRING, call string_make_unibyte to encode the selected text
25430 * window.c (Fset_window_hscroll): Doc fix.
25432 2002-06-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25434 * fileio.c (choose_write_coding_system):
25435 Call select-safe-coding-system properly.
25437 2002-06-03 Richard M. Stallman <rms@gnu.org>
25439 * xdisp.c (message_with_string): Error if STRING is not a string.
25441 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
25443 * fileio.c (choose_write_coding_system): Pass FILE arg to
25444 Vselect_safe_coding_system_function.
25446 2002-06-03 Ken Raeburn <raeburn@gnu.org>
25448 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
25450 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
25452 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
25453 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
25454 * keymap.c (describe_command): Likewise.
25455 * minibuf.c (read_minibuf): Likewise.
25457 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
25458 Cast `current_column' return value to int.
25459 (back_to_previous_visible_line_start)
25460 (reseat_at_next_visible_line_start, next_element_from_buffer):
25461 Cast `indented_beyond_p' 3rd arg to float.
25463 * indent.c (last_known_column): Now a float.
25464 (current_column_1, position_indentation, current_column)
25465 (string_display_width): Return float.
25466 (Fcurrent_column): Cast `current_column' return value to int.
25467 (Fcurrent_indentation): Cast `position_indentation' retval to int.
25468 (indented_beyond_p): Third arg now a float.
25469 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
25471 * lisp.h (current_column): Now returns float.
25472 (indented_beyond_p): 3rd arg now a float.
25474 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
25476 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
25477 is Qcompound_text_with_extensions.
25479 * xselect.c (lisp_data_to_selection_data): Always set selection
25480 type as string if x_encode_text returns streingp non-NULL.
25482 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
25484 2002-05-30 Richard M. Stallman <rms@gnu.org>
25486 * window.c (Fset_window_configuration): Correct the handling
25487 of point in current buffer, to work with multiple windows.
25489 2002-05-29 Colin Walters <walters@verbum.org>
25491 * lread.c (Fread_from_string): Don't depend on order of evaluation
25492 for C function parameters.
25494 2002-05-28 Richard M. Stallman <rms@gnu.org>
25496 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
25497 way for blinked-off state and for a nonselected window.
25499 * window.c (window_scroll_pixel_based): Don't call Fbolp;
25500 instead, see if the new start pos is at beginning of line.
25502 * fileio.c (Fwrite_region): If START is a string, don't
25503 make any annotations.
25505 * eval.c (syms_of_eval): Doc fix.
25507 2002-05-28 Colin Walters <walters@debian.org>
25509 * emacs.c (USAGE1): Add --no-splash.
25510 (standard_args): Ditto.
25512 2002-05-28 Colin Walters <walters@gnu.org>
25514 * lread.c (readchar_count): New variable.
25515 (readchar): Increment it.
25516 (unreadchar): Decrement it.
25517 (read_multibyte): Decrement it.
25518 (Vread_with_symbol_positions): New variable.
25519 (Vread_symbol_positions_list): New variable.
25520 (read_internal_start): New function, created from Fread and
25521 Fread_from_string. Handle Vread_symbol_positions_list and
25522 Vread_with_symbol_positions.
25523 (readevalloop, Fread, Fread_from_string): Use it.
25524 (read1): Use readchar_count to add symbol positions to
25525 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
25526 (syms_of_lread): DEFVAR_LISP and initialize them.
25528 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
25529 (substitute_object_recurse, substitute_object_in_subtree)
25530 (substitute_in_interval): Prototype.
25531 (read_multibyte): Return c if it's less than zero.
25533 2002-05-28 Kim F. Storm <storm@cua.dk>
25535 * fileio.c (Fread_file_name_internal): Added brute-force
25536 speed up for using predicate file-directory-p.
25538 2002-05-28 Kim F. Storm <storm@cua.dk>
25540 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
25542 (syms_of_fileio): DEFVAR_LISP them.
25543 (read_file_name_cleanup): New unwind function.
25544 (Fread_file_name_internal): Only return completions satifying
25545 Vread_file_name_predicate. Temporarily unwind protect and rebind
25546 default-directory while checking completions against the predicate.
25547 (Fread_file_name): Added PREDICATE argument. Specbind it to
25548 Vread_file_name_predicate during completion.
25549 Call Vread_file_name_function to read the file name if non-nil.
25551 * lisp.h (Fread_file_name): Now has 6 args.
25553 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
25554 predicate for Fread_file_name when reading directory name.
25555 Supply Qnil for predicate in other calls to Fread_file_name.
25557 2002-05-26 Miles Bader <miles@gnu.org>
25559 * term.c (tty_capable_p): New function.
25560 * dispextern.h (tty_capable_p): New function declaration.
25561 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
25562 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
25564 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
25566 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
25567 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
25568 (Vwrite_region_annotate_functions): Docstring fix.
25570 2002-05-23 Kim F. Storm <storm@cua.dk>
25572 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
25573 phys_cursor's hpos is overwritten. This is still not completely
25574 correct, as it doesn't really make sense to use hpos at all to
25575 get the cursor glyph (as that is relative to the width of the
25576 characters on the line, which may have changed during the update).
25578 2002-05-22 Jason Rumney <jasonr@gnu.org>
25580 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
25582 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
25583 Use modified enumfont_t struct.
25585 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
25587 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
25588 Handle the `hbar' cursor type.
25589 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
25591 * w32fns.c (Qhbar): New variable.
25592 (x_specified_cursor_type): Use it.
25594 2002-05-21 Ken Raeburn <raeburn@gnu.org>
25596 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
25597 now, when the address is needed.
25599 2002-05-21 Colin Walters <walters@gnu.org>
25601 * Makefile.in (shortlisp): Add font-core.el.
25603 2002-05-20 Richard M. Stallman <rms@gnu.org>
25605 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
25607 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
25608 equivalent key bindings here.
25610 2002-05-20 Ken Raeburn <raeburn@gnu.org>
25612 Change symbol structure to contain a lisp object for the symbol
25614 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
25615 object field named "xname".
25616 (SYMBOL_NAME): New macro.
25617 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
25619 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
25620 (mark_object, gc_sweep): Use symbol xname field and XSTRING
25621 instead of name field.
25622 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
25623 SYMBOL_NAME instead of XSYMBOL and name field.
25624 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
25625 instead of XSYMBOL and name field.
25626 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
25627 and SYMBOL_NAME instead of XSYMBOL and name field.
25628 * coding.c (Fread_coding_system, code_convert_region1)
25629 (code_convert_string1, code_convert_string_norecord)
25630 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
25631 XSYMBOL and name field.
25632 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
25633 (Fmake_variable_buffer_local, Fmake_local_variable)
25634 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
25635 of XSYMBOL and name field.
25636 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
25637 XSYMBOL and name field.
25638 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
25639 instead of XSYMBOL and name field.
25640 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
25641 XSYMBOL and name field.
25642 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
25643 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
25644 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
25645 instead of XSYMBOL and name field.
25646 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
25647 (parse_modifiers, apply_modifiers, Fevent_convert_list)
25648 (parse_solitary_modifier, Fexecute_extended_command):
25649 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
25650 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
25651 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
25652 of XSYMBOL and name field.
25653 (describe_command, describe_translation): Use SYMBOL_NAME and
25654 assignment instead of XSYMBOL and name field and XSETSTRING.
25655 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
25656 instead of XSYMBOL and name field.
25657 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
25658 name field and XSETSTRING.
25659 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
25660 of XSYMBOL and name field.
25661 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
25662 assignment instead of XSYMBOL and name field and XSETSTRING.
25663 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
25664 XSTRING instead of XSYMBOL and name field.
25665 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
25666 and XSTRING instead of XSYMBOL and name field.
25667 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
25668 and XSTRING instead of XSYMBOL and name field.
25669 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
25670 XSTRING instead of XSYMBOL and name field.
25671 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
25672 of XSYMBOL and name field.
25673 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
25674 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
25676 2002-05-19 Ken Raeburn <raeburn@gnu.org>
25678 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
25679 and XCDR real rvalues in most configurations.
25681 * buffer.c (fix_overlays_in_range, fix_overlays_before):
25682 Don't take the address of the cdr part of a cons cell; instead, track
25683 the parent cell and call XSETCDR, or set the variable for the head
25684 of the list if we haven't started down the list yet.
25686 2002-05-19 Richard M. Stallman <rms@gnu.org>
25688 * doc.c (reread_doc_file): Don't ask for confirmation.
25690 2002-05-18 Jason Rumney <jasonr@gnu.org>
25692 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
25693 (xbm_load_image): Use it.
25695 (xbm_read_bitmap_data): Reverted to xfns.c version.
25696 From David Ponce <david@dponce.com>.
25698 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
25700 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
25703 2002-05-16 Juanma Barranquero <lektu@terra.es>
25705 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
25707 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
25709 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
25711 (read_char_minibuf_menu_prompt): Fix typo.
25713 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
25715 * eval.c (Fcommandp): Doc fix.
25717 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
25719 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
25720 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
25721 (Fset_keymap_parent): Gcpro a bit more.
25722 (access_keymap): Gcpro around meta_map call and around the main loop.
25723 (get_keyelt): Gcpro when following indirect references.
25724 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
25725 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
25726 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
25727 Remove useless ad-hoc remap code.
25729 2002-05-13 Richard M. Stallman <rms@gnu.org>
25731 * search.c (search_buffer): Give up boyer moore search if inverse
25732 translation change charset_base.
25734 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
25736 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
25737 characters is carried over from the previous block of text, adjust
25738 coding->produced to account for the extra character.
25740 2002-05-11 Andreas Schwab <schwab@suse.de>
25742 * coding.c (intersection): Keep the elements of the returned list
25743 in the same order as in the first list.
25745 2002-05-11 Kim F. Storm <storm@cua.dk>
25747 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
25748 only update cmm_size if realloc actually succeeds.
25749 Testing with initial size of 2 elements revealed that using
25750 realloc on GNU/Linux would cause a random trap in xmalloc
25751 later on, so I rewrote the code to use malloc/bcopy/free instead
25754 2002-05-10 Jason Rumney <jasonr@gnu.org>
25756 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
25758 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
25760 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
25761 parens, to ensure correct evaluation order.
25763 2002-05-10 Kim F. Storm <storm@cua.dk>
25765 * keymap.c (Vemulation_mode_map_alists): New variable.
25766 (syms_of_keymap): DEFVAR_LISP it.
25767 (current_minor_maps): Process keymap alists in that list before
25768 minor-mode-overriding-map-alist and minor-mode-map-alist.
25770 2002-05-09 Richard M. Stallman <rms@gnu.org>
25772 * search.c (Freplace_match): Doc fix.
25774 2002-05-09 Kim F. Storm <storm@cua.dk>
25776 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
25777 Enlarge cursor rectangle drawn around image with non-zero relief.
25779 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
25780 Enlarge cursor rectangle drawn around image with non-zero relief.
25782 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
25783 Enlarge cursor rectangle drawn around image with non-zero relief.
25785 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
25787 * xselect.c (lisp_data_to_selection_data): Don't set selection
25788 type if comes from the Lisp object's car. If the selection
25789 contains a pure ASCII text, always return QSTRING as its type.
25791 2002-05-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25793 * mac.c (mac-cut-function): Doc fix.
25795 2002-05-05 Richard M. Stallman <rms@gnu.org>
25797 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
25799 2002-05-04 Jason Rumney <jasonr@gnu.org>
25801 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
25802 for event-click-count.
25804 * process.c (init_process): Only add server subfeature if we can
25805 use non-blocking I/O.
25807 2002-05-04 Andrew Choi <akochoi@shaw.ca>
25809 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
25812 2002-05-03 Jason Rumney <jasonr@gnu.org>
25814 * process.c (Fmake_network_process): Only support server sockets
25815 when we can make them non-blocking.
25817 * s/ms-w32.h (HAVE_SELECT): Define.
25819 * w32.h (FILE_NDELAY): New flag.
25821 * w32.c (sys_getpeername, fcntl): New functions.
25822 (_sys_read_ahead): Temporarily block on non-blocking sockets.
25824 * w32proc.c: Include sys/file.h.
25826 2002-05-03 Colin Walters <walters@verbum.org>
25828 * callproc.c (Vgame_score_directory): Renamed to
25829 Vshared_game_score_directory.
25831 2002-04-30 Richard M. Stallman <rms@gnu.org>
25833 * s/gnu.h [emacs]: Include stdio.h.
25834 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
25836 * eval.c (do_autoload): Error if called while preparing to dump.
25838 * fns.c (Frequire): Error if need to load while preparing to dump.
25840 2002-04-28 Colin Walters <walters@verbum.org>
25842 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
25843 Default to "~/.emacs.d/games".
25845 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
25847 * lread.c (openp): Change arg exec_only to predicate.
25848 (build_load_history): Use XCAR/XCDR.
25849 (Flocate_file_internal): New fun.
25850 (syms_of_lread): Defsubr it.
25851 (Fload): Update call to openp.
25853 * lisp.h (openp): Update prototype.
25855 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
25856 * w32proc.c (sys_spawnve):
25857 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
25858 * w32.c (check_windows_init_file):
25859 * sound.c (Fplay_sound_internal):
25860 * process.c (Fstart_process):
25861 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
25862 * mac.c (run_mac_command):
25863 * emacs.c (init_cmdargs):
25864 * callproc.c (Fcall_process): Update call to openp.
25866 * textprop.c (remove_properties): Don't use XCAR without CONSP.
25868 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
25870 2002-04-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25872 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
25873 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
25875 2002-04-28 Richard M. Stallman <rms@gnu.org>
25877 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
25879 * eval.c (Fcommandp): New arg for_call_interactively.
25880 * lisp.h (Fcommandp): Declare new arg.
25882 2002-04-28 Jason Rumney <jasonr@gnu.org>
25884 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
25886 * w32.c (stat, fstat): Use file index information to generate
25887 inodes for directories where available.
25889 2002-04-26 Andrew Choi <akochoi@shaw.ca>
25891 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
25892 [HAVE_CARBON]: Include Mac object files.
25894 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
25895 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
25896 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
25897 MAC_OSX, and MAC_OS instead of macintosh.
25899 * editfns.c [MAC_OS8]: Include stdio.h.
25901 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
25903 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
25906 * process.c (QCfamily, QCfilte): Declare extern.
25907 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
25910 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
25912 * tparam.c [MAC_OSX]: Don't define BC and UP.
25914 * config.in [HAVE_CARBON]: Add.
25916 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
25917 Move here from mac/src and mac/inc.
25919 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
25921 2002-04-26 Gerd Moellmann <gerd@gnu.org>
25923 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
25924 Compute phys_cursor_width from the x position returned
25925 by x_draw_glyhs, which is cheaper.
25926 (x_display_and_set_cursor): Compute the buffer-local value
25927 of `cursor-in-non-selected-windows' only when needed.
25929 2002-04-25 Gerd Moellmann <gerd@gnu.org>
25931 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
25932 cursor on a stretch glyph has a width that depends on
25933 x_stretch_cursor_p.
25935 2002-04-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25937 * abbrev.c (abbrev-start-location): Doc fix.
25939 * indent.c (Fvertical_motion): Fix last change.
25941 2002-04-25 Gerd Moellmann <gerd@gnu.org>
25943 * indent.c (Fvertical_motion): Move to the start of the line
25944 containing PT before moving up or down.
25946 2002-04-24 Gerd Moellmann <gerd@gnu.org>
25948 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
25949 case of writing a whole row, more or less analogous to the case of
25950 writing only parts of a row.
25952 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
25955 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
25957 2002-04-23 Colin Walters <walters@verbum.org>
25959 * buffer.c (syms_of_buffer): Doc fix.
25961 2002-04-23 Gerd Moellmann <gerd@gnu.org>
25963 * xterm.c (notice_overwritten_cursor): Handle the special case
25964 of the cursor being in the first blank non-text line at the
25967 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
25968 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
25969 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
25970 bar cursors only, to make phys_cursor_width contain what its name
25972 (notice_overwritten_cursor): Consider the cursor image erased if
25973 the output area intersects the cursor image in y-direction.
25975 2002-04-23 Simon Marshall <simon@gnu.org>
25977 * xfns.c (x_set_mouse_color): Change default for cross_cursor
25980 2002-04-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25982 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
25984 2002-04-22 Kim F. Storm <storm@cua.dk>
25986 * textprop.c (remove_properties): Fixed trap for malformed plist.
25988 2002-04-22 Richard M. Stallman <rms@gnu.org>
25990 * cmds.c (Fend_of_line): Handle intangible text in mid line.
25992 * window.c (make_window): Initialize height_fixed_p,
25993 last_cursor_off_p, and p->cursor_off_p slots.
25995 2002-04-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25997 * fns.c (use-dialog-box): Doc fix.
25999 2002-04-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26001 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
26002 variables `row', `i' and `area'.
26003 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
26006 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
26008 * xfaces.c (clear_font_table): Don't free the default font of
26009 a frame even if it's on another display.
26010 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
26013 2002-04-19 Juanma Barranquero <lektu@terra.es>
26015 * indent.c (Fmove_to_column): Remove unused local variable
26016 `next_boundary_byte'.
26017 (current_column_1): Likewise.
26019 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
26021 * msdos.c (Qhbar): New variable.
26022 (syms_of_msdos): Intern and staticpro it.
26023 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
26026 2002-04-19 Dave Lambert <dlambert@acm.org>
26028 Theses change implement an underscore-like (`hbar') cursor.
26030 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
26032 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
26033 Handle the `hbar' cursor type.
26034 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
26036 * xfns.c (Qhbar): New variable.
26037 (syms_of_xfns): Intern and staticpro it.
26038 (x_specified_cursor_type): Handle `hbar' cursor.
26040 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
26043 2002-04-18 Richard M. Stallman <rms@gnu.org>
26045 * textprop.c (remove_properties): New arg LIST allows scanning
26046 either a list or a plist.
26047 (interval_has_some_properties_list): New function, like
26048 interval_has_some_properties using list instead of plist.
26049 All callers changed.
26050 (Fremove_list_of_text_properties): New function.
26051 (syms_of_textprop): Defsubr it.
26053 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
26055 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
26057 2002-04-17 Juanma Barranquero <lektu@terra.es>
26059 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
26061 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
26063 * window.c (coordinates_in_window): Don't report on margin area
26064 if its width is zero.
26066 2002-04-16 Jason Rumney <jasonr@gnu.org>
26068 * w32fns.c (Fx_file_dialog): Decode file name before using.
26070 * w32term.c (construct_drag_n_drop): Likewise.
26072 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
26074 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
26075 store load-history in pure space.
26077 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
26079 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
26081 * xterm.c (Qlatin_1, Qutf_8): New vars.
26082 (syms_of_xterm): Initialize them.
26083 (XTread_socket): Eliminate incorrect optimization that tried to avoid
26084 decoding the output of X*LookupString.
26085 Always use latin-1 to decode the output of XLookupString.
26086 Try Xutf8LookupString if XmbLookupString failed.
26088 * region-cache.c (new_region_cache): Use BEG.
26090 2002-04-16 Gerd Moellmann <gerd@gnu.org>
26092 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
26093 configuration files.
26094 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
26097 2002-04-15 Andreas Schwab <schwab@suse.de>
26099 * config.in: Regenerated using autoheader.
26101 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
26102 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
26103 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
26104 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
26105 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
26106 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
26107 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
26108 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
26109 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
26110 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
26111 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
26112 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
26113 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
26114 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
26115 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
26116 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
26117 STACK_DIRECTION, now set by autoconf.
26119 2002-04-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26121 * dispnew.c (marginal_area_string): Sort arguments.
26123 * dispextern.h (marginal_area_string): Add prototype.
26125 2002-04-13 Richard M. Stallman <rms@gnu.org>
26127 * fileio.c (Finsert_file_contents):
26128 Don't call temp_output_buffer_setup--do just part, by hand.
26130 * coding.c (run_pre_post_conversion_on_str):
26131 Don't call temp_output_buffer_setup--do just part, by hand.
26133 * keyboard.c (command_loop_1): Don't call start_hourglass
26134 or cancel_hourglass when executing a macro.
26136 * marker.c (count_markers): New function.
26138 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
26139 grow without limit. Move recently used elements to the front.
26141 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
26143 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
26145 2002-04-12 Gerd Moellmann <gerd@gnu.org>
26147 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
26148 rows marginal areas.
26149 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
26150 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
26152 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
26154 2002-04-12 Dave Love <fx@gnu.org>
26156 * dispnew.c (marginal_area_string): New.
26158 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
26159 (Qleft_margin, Qright_margin): Declare.
26160 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
26162 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
26163 note_mode_line_highlight and extended.
26165 * keyboard.c (Qleft_margin, Qright_margin): Declare.
26166 (make_lispy_event): Deal with mouse events in margins.
26168 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
26170 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
26172 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
26173 than deactivating the mark if tmm is set to `lambda'.
26174 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
26175 Use a single event for HELP_EVENT.
26176 (Fexecute_extended_command): Save last_point_position.
26178 2002-04-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26180 * lisp.h (Fpropertize): Add prototype.
26182 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
26184 2002-04-10 Colin Walters <walters@verbum.org>
26186 * config.in: Add HAVE_SHARED_GAME_DIR.
26188 * callproc.c (Vgame_score_directory): New variable.
26189 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
26191 2002-04-10 Richard M. Stallman <rms@gnu.org>
26193 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
26195 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
26197 * minibuf.c (read_minibuf): Use empty_string.
26198 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
26199 Short-circuit the search as soon as it "failed".
26200 (Fall_completions): Allow lambda forms and lists of strings for alist.
26201 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
26202 when require_match is nil.
26203 (Ftest_completion): Rename from `test_completion' and export to elisp.
26204 Call the predicate also when alist is a list.
26205 Obey Vcompletion_regexp_list.
26206 (do_completion, Fminibuffer_complete_and_exit): Use it.
26207 (Fassoc_string): Rename from `assoc_for_completion'.
26208 Allow list of strings as well and export to elisp.
26210 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
26212 * puresize.h (BASE_PURESIZE): Increase to 900KB.
26214 2002-04-08 Juanma Barranquero <lektu@terra.es>
26216 * w32.c (sys_accept): Don't hide variable `s'.
26218 2002-04-05 Gerd Moellmann <gerd@gnu.org>
26220 * callint.c (Fcall_interactively): Use INTEGERP instead of
26221 NUMBERP for checking Vhistory_length.
26223 2002-04-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26225 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
26226 Doc fix to reflect it.
26228 2002-04-04 Richard M. Stallman <rms@gnu.org>
26230 * xdisp.c (display_mode_element): New arg RISKY.
26231 Disregard text props found or specified within a variable
26232 that isn't marked risky-local-variable.
26233 (Qrisky_local_variable): New variable.
26234 (syms_of_xdisp): Init and staticpro it.
26236 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
26238 * undo.c (record_point): New fun.
26239 (record_delete, record_insert): Use it.
26241 2002-04-03 Juanma Barranquero <lektu@terra.es>
26243 * doc.c (Fdocumentation): Add missing parentheses.
26244 (Fdocumentation_property): Likewise.
26246 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
26248 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
26249 data is 0, just return nil.
26251 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
26253 * msdos.c (syms_of_msdos): Fix last change with
26254 mouse_autoselect_window.
26256 2002-04-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26258 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
26259 mouse_autoselect_window.
26261 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
26263 * keyboard.c (make_lispy_event): Handle unknown keysyms together
26264 with system-specific keysyms. Use it also for unknown function keys.
26266 * doc.c (reread_doc_file): Return whether reload was attempted.
26267 (Fdocumentation, Fdocumentation_property): Don't try to reload
26268 if the doc is 0 and only ask once.
26270 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
26272 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
26274 * keyboard.c (read_char): If the event was Qselect_window,
26275 restore timer_idleness_start_time to its previous value.
26277 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
26279 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
26281 * region-cache.c (new_region_cache): Use BEG.
26283 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
26284 Use BEG and BEG_BYTE.
26286 * doc.c (get_doc_string): Return nil if the location is wrong.
26287 (reread_doc_file): New fun.
26288 (Fdocumentation, Fdocumentation_property):
26289 Call it if get_doc_string fails.
26290 (Fsnarf_documentation): Make it work for a dumped Emacs.
26292 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
26293 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
26295 * charset.c (Fstring): Allow 0 arguments.
26297 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
26299 * process.c (DATAGRAM_CONN_P, list_processes_1)
26300 (Fprocess_datagram_address, Fset_process_datagram_address)
26301 (Fset_network_process_options, server_accept_connection):
26302 Fix some int/Lisp_Object confusions (thank you union types).
26304 2002-04-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26306 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
26308 * w32term.c: Likewise.
26309 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
26311 * keyboard.c (Qselect_window): New symbol.
26312 (head_table): Use it.
26313 (keys_of_keyboard): Bound select-window event to handle-select-window.
26314 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
26316 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
26317 (last_window): New variable.
26318 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
26319 (note_mouse_movement): Remove reimplemented code in #if 0.
26320 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
26323 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
26325 2002-03-31 Gerd Moellmann <gerd@gnu.org>
26327 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
26330 2002-03-30 Richard M. Stallman <rms@gnu.org>
26332 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
26333 loop whenever it stops making progress.
26335 * widget.c (set_frame_size): Don't call change_frame_size.
26337 2002-03-30 Gerd Moellmann <gerd@gnu.org>
26339 * dispnew.c (direct_output_for_insert):
26340 Call mark_window_display_accurate.
26342 2002-03-29 Jason Rumney <jasonr@gnu.org>
26344 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
26346 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
26348 * Makefile.in (lread.o): Depend on coding.h.
26350 * lread.c (openp, Fload): Encode the file name before passing it
26351 to `stat', `access', and `emacs_open'.
26352 (openp): GCPRO the encoded file name. Don't recompute Lisp
26353 strings unnecessarily.
26355 2002-03-29 Kim F. Storm <storm@cua.dk>
26357 * fns.c (Flax_plist_put): Doc fix.
26359 2002-03-28 Miles Bader <miles@gnu.org>
26361 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
26363 2002-03-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26365 * process.c (set-network-process-options): Add usage.
26366 (make-network-process): Doc fix.
26368 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
26370 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
26372 2002-03-26 Richard M. Stallman <rms@gnu.org>
26374 * fns.c (Fsubstring_no_properties): New function.
26375 (Flax_plist_get, Flax_plist_put): New functions.
26376 (syms_of_fns): defsubr them.
26378 * xdisp.c (update_menu_bar): Test only update_mode_lines;
26379 don't test or alter w->update_mode_line.
26381 * window.c (Fdisplay_buffer): Doc fix.
26383 2002-03-24 Richard M. Stallman <rms@gnu.org>
26385 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
26387 2002-03-24 Gerd Moellmann <gerd@gnu.org>
26389 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
26390 (Fdefmacro): Handle `(declare ...)'.
26391 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
26392 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
26394 2002-03-24 Jason Rumney <jasonr@gnu.org>
26396 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
26397 (xbm_file_p): Add prototypes.
26398 (xbm_format, xbm_image_p): Sync with xfns.c.
26399 (reflect_byte): New function.
26400 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
26401 (xbm_load_image): Create bitmaps with a depth of 1.
26402 (init_xfns): Enable XBM images.
26404 2002-03-23 Jason Rumney <jasonr@gnu.org>
26406 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
26407 correctly. Do not pass up_modifier to keyboard buffer.
26409 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
26411 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
26413 * Makefile.in (bootstrapclean): New target.
26414 (bootstrap-temacs, bootstrap-doc): Remove.
26415 (bootstrap-emacs): Use a bog-standard `temacs'.
26416 Don't bother to build a DOC file.
26418 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
26420 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
26421 in temacs even if !CANNOT_DUMP.
26422 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
26424 * alloc.c (check_pure_size): Only output a warning.
26426 2002-03-22 Jason Rumney <jasonr@gnu.org>
26428 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
26431 * w32term.c (zv_bits): Declare as short, for word alignment.
26432 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
26433 (syms_of_w32term): Define x-use-underline-position-properties.
26435 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
26436 (clear_image_cache): Block input, fix logic, clear matrices in
26437 all frames that share this cache.
26439 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
26441 * emacs.c (main): Update the Copyright year in the blurb printed
26442 by "emacs --version".
26444 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
26446 * xterm.c (XTread_socket): If XK_ISO_Lock and
26447 XK_ISO_Last_Group_Lock are defined, handle keysyms between
26448 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
26450 2002-03-21 Kim F. Storm <storm@cua.dk>
26452 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
26453 menu-bar bindings in keymap and local-map properties _are_ used.
26454 But try keymap property first in accordance with 2002-01-03 patch.
26455 Added comment describing why this is not always reliable.
26456 (tool_bar_items): Ditto for tool-bar.
26458 2002-03-21 Jason Rumney <jasonr@gnu.org>
26460 * w32fns.c (x_clear_image_1): Disable color table code.
26462 2002-03-21 Kim F. Storm <storm@cua.dk>
26464 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
26465 removed the wrong version of the DEFUN macro; fixed it.
26467 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
26468 Fmember rather than Fmemq).
26469 (Fprovide): Check that subfeatures is a list.
26471 * process.c (QCfeature, QCdatagram): Removed variables.
26472 (QCtype, Qdatagram): New variables.
26473 (network_process_featurep): Removed function.
26474 (Fmake_network_process): Removed :feature check.
26475 Use :type 'datagram instead of :datagram t to create a datagram
26476 socket. This allows us to add other connection types (e.g. raw
26477 sockets) later in a consistent manner.
26478 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
26479 supported subfeatures for feature make-network-process.
26480 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
26481 Intern and staticpro QCtype and Qdatagram.
26482 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
26484 * xfns.c (QCtype): Remove duplicate declaration and
26485 initialization (is now declared in process.c).
26487 * w32fns.c (QCtype): Remove duplicate declaration and
26488 initialization (is now declared in process.c).
26490 2002-03-21 Richard M. Stallman <rms@gnu.org>
26492 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
26493 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
26494 when jumping to `fail' to avoid undoing reg changes in the
26495 last iteration of the loop.
26496 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
26498 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
26499 Depend on process.h.
26501 2002-03-20 Jason Rumney <jasonr@gnu.org>
26503 Most of the following changes are still conditional on HAVE_IMAGES
26504 which is not set by default on Windows.
26506 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
26508 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
26509 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
26510 (four_corners_best, x_clear_image_1, x_clear_image)
26511 (x_alloc_image_color, postprocess_image)
26512 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
26513 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
26514 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
26516 * w32gui.h (struct XImage): Define.
26518 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
26519 extract mouse co-ordinates.
26521 2002-03-20 Jason Rumney <jasonr@gnu.org>
26523 * w32.c (init_winsock): Dynamically load new server and UDP
26525 (socket_to_fd): New function.
26526 (sys_socket): Use it.
26527 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
26528 (sys_recvfrom, sys_sendto): New wrapper functions.
26530 * process.c (QCfamily, QCfilter): Remove duplicate declaration
26531 and initialization.
26533 * makefile.w32-in (LIBS): Remove $(WSOCK32).
26535 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
26537 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
26538 Don't use "sun" as a variable, it's a predefined constant on Sun
26541 2002-03-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26543 * bytecode.c (Fbyte_code): Revert last change.
26545 2002-03-19 Kim F. Storm <storm@cua.dk>
26547 * makefile.w32-in (LIBS): Add $(WSOCK32).
26548 From David Ponce <dponce@voila.fr>.
26550 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26552 * process.c (wait_reading_process_input): Move variables `pname'
26553 and `pnamelen' down where they are used.
26555 * bytecode.c (Fbyte_code): Discard unused computed value to
26556 prevent gcc warning.
26558 * lisp.h (Fplist_member): Add prototype.
26560 2002-03-18 Kim F. Storm <storm@cua.dk>
26562 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
26563 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
26565 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
26566 Remove explicit GNU_LINUX settings for datagram support.
26568 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26570 * process.c (Fmake_network_process): Remove unused variable `sa'.
26571 Doc fix. Add usage:.
26572 (set_socket_options): Remove unused variables `optnum' and `opttype'.
26574 2002-03-17 Richard M. Stallman <rms@gnu.org>
26576 * xdisp.c (cursor_type_changed): New variable.
26577 (redisplay_internal): Redisplay all windows if cursor_type_changed.
26578 Clear it when clearing windows_or_buffers_changed.
26579 (try_cursor_movement, redisplay_window, try_window_id)
26580 (try_window_reusing_current_matrix): Test cursor_type_changed
26581 along with windows_or_buffers_changed.
26583 * window.h (cursor_type_changed): New variable.
26585 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
26586 not update_mode_lines, and always set it to 1.
26588 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
26589 if no frames needed redrawing.
26591 2002-03-17 Kim F. Storm <storm@cua.dk>
26593 The following changes add support for network server processes,
26594 datagram connections, and local (unix) sockets.
26596 * process.h (struct Lisp_Process): New member log.
26597 Doc fix: Member command used to indicate stopped network process.
26598 Doc fix: Member childp contains plist for network process.
26599 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
26601 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
26602 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
26603 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
26605 (NETCONN1_P): New macro.
26606 (DATAGRAM_SOCKETS): New conditional symbol.
26607 (datagram_address): New array.
26608 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
26609 (status_message): Use concat3.
26610 (Fprocess_status): Add `listen' status to doc string. Return
26611 `stop' for a stopped network process.
26612 (Fset_process_buffer): Update contact plist for network process.
26613 (Fset_process_filter): Ditto. Don't enable input for stopped
26614 network processes. Server must listen, even if filter is t.
26615 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
26617 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
26618 (Fprocess_contact): Added KEY argument. Handle datagrams.
26619 (list_processes_1): Optionally show only processes with the query
26620 on exit flag set. Dynamically adjust column widths. Omit tty
26621 column if not needed. Report stopped network processes. Identify
26622 server and datagram network processes.
26623 (Flist_processes): New optional arg `query-only'.
26624 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
26625 (conv_lisp_to_sockaddr, set_socket_options)
26626 (network_process_featurep, unwind_request_sigio): New helper
26628 (Fprocess_datagram_address, Fset_process_datagram_address):
26629 (Fset_network_process_options): New lisp functions.
26630 (Fopen_network_stream): Removed. Now defined in simple.el.
26631 (Fmake_network_process): New lisp function. Code is based on
26632 previous Fopen_network_stream, but heavily reworked with new
26633 property list based argument list, support for datagrams, server
26634 processes, and local sockets in addition to old client-only
26636 (server_accept_connection): New function.
26637 (wait_reading_process_input): Use it to handle incoming connects.
26638 Do not enable input on a new connection if process is stopped.
26639 (read_process_output): Handle datagram sockets. Use 2k buffer for
26641 (send_process): Handle datagram sockets.
26642 (Fstop_process, Fcontinue_process): Apply to network processes. A
26643 stopped network process is indicated by setting command field to t.
26644 (Fprocess_send_eof): No-op if datagram connection.
26645 (Fstatus_notify): Don't read input for a stream server socket or a
26646 stopped network process.
26647 (init_process): Initialize datagram_address array.
26648 (syms_of_process): Intern and staticpro new variables, defsubr new
26651 2002-03-16 Jason Rumney <jasonr@gnu.org>
26653 * w32fns.c (w32_to_all_x_charsets): Return correct type in
26656 2002-03-16 Richard M. Stallman <rms@gnu.org>
26658 * xdisp.c (redisplay_internal, redisplay_windows):
26659 Use list_of_error to call internal_condition_case_1.
26660 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
26661 so as to catch all errors with no possibility of debugger redisplay.
26662 (list_of_error): New variable.
26663 (syms_of_xdisp): Init and staticpro it.
26665 * print.c (print_object): Delete `\ ' from printed rep of frame.
26667 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
26669 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
26670 until its implementation is fixed.
26672 2002-03-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26674 * xfns.c (png_load): Remove unused variable `gamma_str'.
26676 2002-03-14 Richard M. Stallman <rms@gnu.org>
26678 * xfns.c (x_real_positions): Handle failure in XQueryTree.
26680 2002-03-14 Miles Bader <miles@gnu.org>
26682 * intervals.c (adjust_for_invis_intang): New function.
26683 (set_point_both): Use `adjust_for_invis_intang' to do most of the
26684 work for dealing with invisible+intangible regions. Do so before
26685 and after both forward and backward movements, to handle both
26686 front-sticky and rear-sticky cases.
26687 * textprop.c (text_property_stickiness): Function moved here from
26689 * intervals.h (text_property_stickiness): New declaration.
26690 * editfns.c (char_property_eq): Function removed.
26691 (text_property_stickiness): Function moved to `textprop.c'.
26693 2002-03-13 Jason Rumney <jasonr@gnu.org>
26695 * config.in: Add STRFTIME_NO_POSIX2.
26697 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
26698 and %OX when underlying strftime does not.
26700 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
26702 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
26703 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
26704 line) to avoid annoying flicker.
26705 (xm_scroll_callback): Get rid of the now unnecessary kludge.
26706 (XTread_socket): Mark it static.
26708 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
26710 2002-03-13 Kim F. Storm <storm@cua.dk>
26712 * puresize.h (BASE_PURESIZE): Increase to 775000.
26714 2002-03-12 Juanma Barranquero <lektu@terra.es>
26716 * editfns.c (syms_of_editfns): Fix typo.
26718 2002-03-12 Gerd Moellmann <gerd@gnu.org>
26720 * xsmfns.c: Include stdio.h because termhooks.h needs it.
26721 Include termopt.h for interrupt_input.
26723 2002-03-11 Andreas Schwab <schwab@suse.de>
26725 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
26727 2002-03-11 Gerd Moellmann <gerd@gnu.org>
26729 * xterm.c (note_mouse_movement): Put code for
26730 x_autoselect_window_p in #if 0.
26732 * lread.c (Fload): Don't assume that message_with_string uses the
26733 string it is given like a C string.
26735 2002-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
26737 * xterm.h (x_session_check_input, x_session_initialize): Declare.
26739 * xterm.c (XTread_socket): Add call to x_session_check_input and
26740 x_session_have_connection.
26741 (x_initialize): Add call to x_session_initialize.
26743 * termhooks.h (enum event_kind): Add save_session_event.
26745 * keyboard.c: Add Emacs event save_session_event.
26747 * emacs.c (main): Add call to syms_of_xsmfns.
26749 * lisp.h (syms_of_xsmfns): Declare extern.
26751 * config.in: Add HAVE_X_SM.
26753 * Makefile.in (LIBXT): Add -lSM -lICE
26754 if HAVE_X_SM and not USE_X_TOOLKIT.
26755 (XOBJ): New file xsmfns.c added.
26757 * xsmfns.c: New file for X session management.
26759 2002-03-09 Jason Rumney <jasonr@gnu.org>
26761 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
26762 read-only when setting modified time.
26764 2002-03-08 Gerd Moellmann <gerd@gnu.org>
26766 * xdisp.c (move_it_vertically_backward): At the end of the function,
26767 when moving forward by lines, treat terminal frames specially.
26769 * keyboard.c (echo_char): Make sure to add a separator between
26770 keys even if echo_dash hasn't been called.
26772 * xdisp.c: Use new string macros.
26773 (update_echo_area): Pass number of bytes to message3 instead of
26775 (set_message_1): Don't access a string's size_byte directly.
26776 (decode_mode_spec_coding): Use number of bytes of eoltype string
26777 instead number of chars.
26779 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
26781 2002-03-08 Juanma Barranquero <lektu@terra.es>
26783 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
26786 2002-03-06 Jason Rumney <jasonr@gnu.org>
26788 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
26790 2002-03-06 Gerd Moellmann <gerd@gnu.org>
26792 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
26793 (cancel_echoing, echo_length, echo_truncate): Changed to
26794 work with new kboard definition.
26795 (echo_now): Use message3_nolog instead of message2_nolog.
26797 * alloc.c (mark_kboards): Mark echo_string.
26799 * keyboard.h (ECHOBUFSIZE): Removed.
26800 (struct kboard): Member echoptr removed, member echobuf renamed
26803 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
26804 message3 instead of message2 to display the message using STRING's
26807 2002-03-05 Andreas Schwab <schwab@suse.de>
26809 * xdisp.c (hscroll_margin): Change to EMACS_INT.
26811 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
26813 * frame.c (default-frame-alist): Explain that setting it doesn't
26814 affect existing frames.
26816 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
26818 * indent.c (skip_invisible): Fix my brain fart.
26820 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
26822 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
26824 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
26825 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
26826 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
26827 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
26828 and variables to use EMACS_INT instead of just int.
26830 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
26832 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
26834 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
26835 environment, pass it down with corrected value.
26837 2002-03-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26839 * lread.c (read_filtered_event): Do not call start_hourglass
26842 2002-03-04 Juanma Barranquero <lektu@terra.es>
26844 * w32term.c (x_display_and_set_cursor): Fix typo.
26846 2002-03-03 Richard M. Stallman <rms@gnu.org>
26848 * fileio.c (Fmake_temp_name): Doc fix.
26850 2002-03-03 Gary Wong <gtw@gnu.org>
26852 * termcap.c [!emacs]: Replace ospeed for building standalone
26853 libtermcap, for binary compatibility.
26855 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
26857 2002-03-03 Richard M. Stallman <rms@gnu.org>
26859 * xrdb.c (file_p): Rename arg `path' to `filename'.
26861 * abbrev.c (Fexpand_abbrev): Increment plist as use count
26862 only if it is an integer.
26864 * xfns.c (png_load): Set screen_gamma based on f->gamma.
26865 If png_get_sRGB gives an answer, call png_set_gamma
26866 using the default image gamma value.
26868 * lread.c (read1): When reading from a file, default string to
26869 multibyte only if it has some multibyte characters.
26871 * print.c (print_object): Output multibyte chars 128...255
26872 using \x even if ! print_escape_multibyte.
26874 * xdisp.c (display_mode_element): Move the places where
26875 bytepos, charpos, this, and lisp_string are set.
26876 Use lisp_string to set bytepos.
26878 * xdisp.c (redisplay_internal):
26879 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
26881 * xdisp.c (display_mode_element): Merge properties specified with
26882 :propertize onto those that come with the string.
26884 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
26886 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
26887 automatic-hscrolling. Users changed.
26888 <hscroll-margin>: Renamed from automatic-hscroll-margin.
26890 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
26892 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
26894 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
26896 2002-03-02 Kim F. Storm <storm@cua.dk>
26898 * window.c (Fminibuffer_selected_window): New function.
26899 (syms_of_window): Defsubr it.
26901 2002-03-01 Kim F. Storm <storm@cua.dk>
26903 * window.h (struct window): New member phys_cursor_width.
26905 * window.c (make_window, replace_window): Init phys_cursor_width.
26907 * xterm.c (x_display_and_set_cursor): Blink box cursor using
26908 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
26910 * w32term.c (x_display_and_set_cursor): Blink box cursor using
26911 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
26913 * lisp.h (GCPRO6): New macro.
26915 * process.c (Fopen_network_stream): Use GCPRO6.
26917 2002-03-01 Kim F. Storm <storm@cua.dk>
26919 * process.c (Qconnect, Qfailed): New variables.
26920 (syms_of_process): Intern and staticpro them.
26921 (Fprocess_status): Document connect and failed return values.
26922 [NON_BLOCKING_CONNECT]: New conditional.
26923 (connect_wait_mask, num_pending_connects): New variables.
26924 (status_message): Convert Qfailed status.
26925 (Fopen_network_stream): Added support for non-blocking connect.
26926 New optional args: filter, sentinel, non_blocking. Doc updated.
26927 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
26928 (deactivate_process): Handle pending non-blocking connect.
26929 (wait_reading_process_input): Poll for status of non-blocking
26930 connects. Exec sentinel directly when connect succeeds.
26931 (status_notify): Don't read process output if not yet connected.
26933 2002-02-28 Kim F. Storm <storm@cua.dk>
26935 * window.c (minibuf_selected_window): Renamed from
26936 Vminibuf_selected_window. Users changed.
26937 (syms_of_window): Staticpro it.
26939 2002-02-26 Kim F. Storm <storm@cua.dk>
26941 The following changes add a new Vminibuf_selected_window variable
26942 which is similar to Vminibuf_scroll_window, but which is only set
26943 on entry to the minibuffer (from a non-minibuffer window):
26945 * window.c (Vminibuf_selected_window): New variable.
26946 (struct save_window_data): New member minibuf_selected_window.
26947 (Fset_window_configuration): Restore Vminibuf_selected_window.
26948 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
26949 Set minibuf_scroll_window member to nil if minibuf_level is 0.
26950 (compare_window_configurations): Compare minibuf_selected_window.
26952 * window.h (Vminibuf_selected_window): Declare extern.
26954 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
26955 entry to minibuffer or on entry from a non-minibuffer window.
26957 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
26958 Vminibuf_selected_window instead of Vminibuf_scroll_window.
26960 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
26961 instead of Vminibuf_scroll_window when deciding in which window
26962 the region should be highlighted. Consequently, the region remains
26963 highlighteded even when a completion buffer is also displayed.
26965 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
26967 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
26969 * xselect.c (Qcompound_text_with_extensions): Renamed from
26970 Qcompound_text_no_extensions.
26971 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
26973 2002-02-26 Juanma Barranquero <lektu@terra.es>
26975 * w32proc.c (syms_of_ntproc): Doc fix.
26977 2002-02-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26979 * intervals.h: Include "dispextern.h" unconditionally.
26981 2002-02-24 Jason Rumney <jasonr@gnu.org>
26983 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
26984 and disp-table.elc.
26985 (lisp): Add emacs-lisp/backquote.elc.
26987 2002-02-24 Kim F. Storm <storm@cua.dk>
26989 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
26990 The validation of the event type was too strict as it didn't
26991 allow string events; buffer names are used in bindings for
26992 menu-bar-select-buffer (see `menu-bar-update-buffers').
26994 2002-02-23 Kim F. Storm <storm@cua.dk>
26996 The following changes rework my patch of 2002-02-06 which
26997 added command remapping by entering the commands directly into
26998 the keymaps. Now, command remapping uses an explicit `remap'
26999 prefix in the keymaps, i.e. [remap COMMAND].
27001 * keymap.c (Qremap, remap_command_vector): New variables.
27002 (is_command_symbol): Remove function.
27003 (Fdefine_key): No longer accept a symbol for KEY.
27004 Added validation of [remap COMMAND] argument for KEY.
27005 The DEF is no longer required to be a symbol when remapping a command.
27006 (Fremap_command): New function to remap command through keymaps.
27007 (Flookup_key): Perform command remapping initiated by
27008 Fremap_command directly for speed.
27009 (Fkey_binding): Use Fremap_command for command remapping.
27010 (where_is_internal): Handle new command remapping representation.
27011 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
27012 staticpro them. Defsubr Fremap_command.
27014 * keymap.h (Fremap_command): Declare extern.
27015 (is_command_symbol): Remove extern.
27017 * keyboard.c (command_loop_1): Use Fremap_command for command
27018 remapping; now try command remapping for all symbols.
27020 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
27022 * coding.h (run_pre_post_conversion_on_str): Add prototype.
27024 2002-02-23 Jason Rumney <jasonr@gnu.org>
27026 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
27027 on the string before encoding it.
27028 (Fw32_get_clipboard_data): Run post-read-conversion on the string
27031 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
27033 2002-02-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27035 * w32term.c (enter_timestamp): Remove unused static variable to
27038 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
27040 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
27042 * w16select.c (Fw16_get_clipboard_data): Fix last change.
27044 * xselect.c (selection_data_to_lisp_data): Fix last change.
27046 2002-02-22 Jason Rumney <jasonr@gnu.org>
27048 * w32term.h (struct w32_output): New member menu_command_in_progress.
27050 * w32menu.c (menubar_selection_callback): Free the menu and
27051 clear the menu_command_in_progress flag.
27053 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
27054 (menu_free_timer): New variable.
27055 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
27056 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
27057 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
27058 menu command is in progress.
27059 <WM_COMMAND>: Set the menu_command_in_progress flag.
27060 Kill any menu_free_timer that is running.
27062 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
27063 Call ExtTextOutA rather than ExtTextOut.
27065 2002-02-22 Eli Zaretskii <eliz@gnu.org>
27067 * puresize.h (BASE_PURESIZE): Increase to 755000.
27069 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
27071 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
27072 on the string before encoding it.
27073 (Fw16_get_clipboard_data): Run post-read-conversion on the string
27076 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
27078 Support for ICCCM Extended Segments in X selections:
27080 * xselect.c <Qcompound_text_no_extensions>: New variable.
27081 (syms_of_xselect): Intern and staticpro it.
27082 (selection_data_to_lisp_data): Run post-read-conversion on decoded
27084 (lisp_data_to_selection_data): If next-selection-coding-system is
27085 compound-text-no-extensions, set the type of selection to be
27088 * xterm.h (x_encode_text): Update prototype.
27090 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
27091 callers changed. If SELECTIONP is non-zero, run the
27092 pre-write-conversion function before encoding the selection text.
27094 2002-02-21 Kim F. Storm <storm@cua.dk>
27096 * frame.c (syms_of_frame): Change mouse-highlight default to t.
27098 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
27099 Correct composing of language-change event.
27101 2002-02-20 Kim F. Storm <storm@cua.dk>
27103 * keyboard.c (menu_bar_items): Don't include keymap or local-map
27104 bindings at PT when building menu (the menu is not updated often
27105 enough for this to work reliable).
27106 (tool_bar_items): Likewise.
27107 (current_active_maps): Removed unused (and buggy) function.
27109 2002-02-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27111 * xfns.c (gif_load): Use correct width and height for GIF images.
27113 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
27115 * floatfns.c (Fatan): Accept an optional second arg and call
27116 atan2 if passed 2 args.
27118 2002-02-18 Jason Rumney <jasonr@gnu.org>
27120 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
27122 2002-02-17 Jason Rumney <jasonr@gnu.org>
27124 * w32term.c (x_autoselect_window_p): New variable.
27125 (syms_of_w32term): DEFVAR_BOOL and initialize it.
27126 (note_mouse_movement): Use it.
27128 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
27130 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
27132 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
27134 (syms_of_w32fns): Intern and staticpro them.
27135 (x_frame_parms) <"fullscreen">: New parameter.
27136 (x_fullscreen_move, x_set_fullscreen): New functions.
27137 (x_set_frame_parameters): Support Qfullscreen.
27138 (x_real_positions): Save x/y_pixels_diff frame params.
27139 (x_figure_window_size): Support full-screen frames.
27140 (Fx_create_frame): Default the fullscreen parameter.
27142 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
27143 (x_fullscreen_adjust): New functions.
27144 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
27145 fullscreen. Call x_check_fullscreen_move, and set the
27146 want_fullscreen member of output_data.w32
27147 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
27149 * w32term.h: New enum for FULLSCREEN_* constants.
27150 (struct w32_output): New members want_fullscreen, x_pixels_diff,
27151 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
27152 (x-fullscreen-adjust): New prototype.
27154 2002-02-17 Kim F. Storm <storm@cua.dk>
27156 * frame.c (Vmouse_highlight): New variable.
27157 (syms_of_frame): DEFVAR_LISP it.
27159 * frame.h (Vmouse_highlight): Declare extern.
27161 * xterm.h (struct x_display_info): Add mouse_face_hidden.
27163 * xterm.c (disable_mouse_highlight): Removed variable.
27164 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
27165 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
27166 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
27167 and on after keyboard input.
27168 (x_term_init): Initialize mouse_face_hidden.
27170 * msdos.h (struct display_info): Add mouse_face_hidden.
27172 * msdos.c (disable_mouse_highlight): Removed variable.
27173 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
27174 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
27175 (internal_terminal_init): Initialize mouse_face_hidden.
27176 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
27177 and on after keyboard input.
27179 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
27181 * w32term.c (disable_mouse_highlight): Removed variable.
27182 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
27183 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
27184 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
27185 and on after keyboard input.
27186 (w32_initialize_display_info): Initialize mouse_face_hidden.
27188 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
27190 * msdos.c (last_mouse_window): New variable.
27191 (dos_rawgetc): Fix last change--if the mouse is in the same window
27192 as recorded in last_mouse_window, don't select this window.
27194 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
27196 * msdos.c (x_autoselect_window_p): New variable.
27197 (syms_of_msdos): Defvar it.
27198 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
27199 which the last mouse movement occured, unless it is already selected.
27201 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
27203 (syms_of_xdisp): DEVFAR them.
27204 (hscroll_window_tree): Use automatic_hscroll_margin and
27205 Vautomatic_hscroll_step to compute the amount of window scrolling.
27207 2002-02-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27209 * xterm.c (x-autoselect-window): New variable.
27210 (note_mouse_movement): Use it.
27212 * keyboard.c: Do not include "systime.h" twice.
27214 2002-02-15 Andreas Schwab <schwab@suse.de>
27216 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
27218 * alloc.c (NSTATICS): Increase to 1280.
27220 2002-02-15 Kai Gro
\e,A_
\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
27222 * alloc.c (NSTATICS): Bump to 1026.
27224 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
27225 (Vx_super_keysym): New variables.
27226 (syms_of_xterm): DEFVAR_LISP them.
27227 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
27228 variables to determine which keys to use for the various modifiers.
27230 2002-02-13 Kim F. Storm <storm@cua.dk>
27232 * window.c (Vmode_line_in_non_selected_windows): Removed.
27233 (mode_line_in_non_selected_windows): New variable.
27234 (syms_of_window): DEFVAR_BOOL it.
27236 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
27237 Use mode_line_in_non_selected_windows.
27238 (mode_line_in_non_selected_windows): Declare extern.
27239 (Vmode_line_in_non_selected_windows): Removed extern.
27241 2002-02-13 Richard M. Stallman <rms@gnu.org>
27243 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
27244 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
27245 (Fclear_this_command_keys): Doc fixes.
27247 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
27248 (update_face_from_frame_parameter): Increment face_change_count
27249 and windows_or_buffers_changed to force redisplay using changed faces.
27251 * xdisp.c (QCpropertize): New variable.
27252 (mode_line_proptrans_alist): New variable.
27253 (display_mode_element): New arg PROPS; all calls changed.
27254 Implement this, for strings.
27255 Handle literal output of strings by sharing the
27256 main-line code for strings, using local var `literal'.
27257 Handle :propertize feature.
27258 (syms_of_xdisp): Initialze and staticpro QCpropertize and
27259 mode_line_proptrans_alist.
27261 2002-02-11 Kim F. Storm <storm@cua.dk>
27263 * window.c (Vmode_line_in_non_selected_windows): New variable.
27264 (syms_of_window): DEFVAR_LISP it.
27266 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
27267 (CURRENT_MODE_LINE_FACE_ID): Use it.
27268 (Vmode_line_in_non_selected_windows): Declare extern.
27270 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
27271 to get mode line face.
27273 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
27275 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
27276 variables; cus-start.el doesn't need them anymore.
27278 2002-02-09 Kim F. Storm <storm@cua.dk>
27280 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
27281 reduction. This fixes a display problem where stray newlines were
27282 inserted in the window (corrected by C-l). Clarified code (IMHO).
27284 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
27286 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
27288 * xdisp.c (display_mode_lines): Fix last change.
27290 2002-02-09 Jason Rumney <jasonr@gnu.org>
27292 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
27294 (w32_load_system_font): Prevent Cleartype fonts from loading.
27295 (Fx_show_tip): Ensure tip frames are above other topmost windows.
27297 2002-02-09 Kim F. Storm <storm@cua.dk>
27299 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
27300 (CURRENT_MODE_LINE_HEIGHT): Use it.
27301 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
27303 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
27304 (pos_visible_p, handle_face_prop): Likewise.
27305 (display_mode_lines): Likewise, but for the real selected window.
27306 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
27308 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
27309 in non-selected windows.
27310 (realize_basic_faces): Realize it.
27311 (syms_of_term): Intern and staticpro it.
27313 2002-02-08 Kim F. Storm <storm@cua.dk>
27315 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
27316 Changed mail addresses to emacs-devel@gnu.org.
27318 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
27320 * fileio.c (Fsubstitute_in_file_name): If the file name includes
27321 ~user, and there's no such user, don't discard everything before ~user.
27323 * floatfns.c (Fround): Doc fix.
27325 2002-02-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27327 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
27329 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
27331 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
27333 2002-02-07 Kim F. Storm <storm@cua.dk>
27335 * keymap.c (where_is_internal): Only check whether definition is
27336 remapped if it fulfills is_command_symbol.
27338 2002-02-07 Andreas Schwab <schwab@suse.de>
27340 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
27342 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
27344 2002-02-06 Kim F. Storm <storm@cua.dk>
27346 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
27347 defining command remapping. Doc updated.
27348 (Flookup_key): Remap command through keymap if KEY is a symbol.
27349 (is_command_symbol): New function.
27350 (Fkey_binding): Use it. New optional argument NO-REMAP.
27351 Doc updated. Callers changed. Perform command remapping via
27352 recursive call unless that arg is non-nil.
27353 (where_is_internal): New argument no_remap. Callers changed.
27354 Call recursively to find original key bindings for a remapped
27355 comand unless that arg is non-nil.
27356 (Fwhere_is_internal): New optional argument NO-REMAP.
27357 Doc updated. Callers changed. Pass arg to where_is_internal.
27359 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
27360 (is_command_symbol): Add prototype.
27362 * keyboard.c (Vthis_original_command): New variable.
27363 (syms_of_keyboard): DEFVAR_LISP it.
27364 (command_loop_1): Set it, and perform command remapping.
27366 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27368 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
27370 2002-02-06 Jason Rumney <jasonr@gnu.org>
27372 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
27374 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
27376 * charset.c (get_charset_id): Use if-else instead of ?:.
27378 2002-02-06 Richard M. Stallman <rms@gnu.org>
27380 * filelock.c (S_ISLNK): Define if not defined.
27382 2002-02-03 Richard M. Stallman <rms@gnu.org>
27384 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
27386 * lread.c (read1): Redesign strategy for force_multibyte and
27387 force_singlebyte. Now is_multibyte records whether read_buffer
27388 is multibyte. Encountering any multibyte character makes it so.
27390 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
27392 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
27393 with the same sequence, map that sequence to f10 rather than f0.
27395 2002-02-03 Andreas Schwab <schwab@suse.de>
27397 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
27398 latter never being defined on GNU/Linux.
27400 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
27402 * xfaces.c (realize_default_face): Don't set the weight and slant of
27403 the default face to Qnormal, unless these attributes are unspecified.
27405 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27407 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
27408 Call cancel_hourglass unconditionally.
27410 * eval.c (Fsignal): Remove duplicated declaration of
27411 the variable `display_hourglass_p'.
27413 2002-01-31 Richard M. Stallman <rms@gnu.org>
27415 * editfns.c (region_limit): Nicer error message.
27417 * coding.c (decode_composition_emacs_mule):
27418 Give up if NCOMPONENT gets too large to index `component'.
27420 * callint.c (check_mark): New arg to specify clearer error message.
27423 2002-01-27 Richard M. Stallman <rms@gnu.org>
27425 * minibuf.c (Fcompleting_read): Doc fix.
27427 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27429 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
27430 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
27433 2002-01-26 Richard M. Stallman <rms@gnu.org>
27435 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
27437 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
27438 and scroll_up_aggressively.
27440 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27442 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
27444 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
27446 * textprop.c (Fnext_property_change, Fnext_single_property_change)
27447 (Fprevious_property_change, Fprevious_single_property_change):
27448 Stay within the narrowed-buffer boundaries.
27450 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
27452 * term.c (Ftty_display_color_cells): New function.
27453 (syms_of_term): Defsubr it.
27454 (Ftty_display_color_cells, Ftty_display_color_p): Change the
27455 argument name to DISPLAY. Doc fix.
27457 * dispextern.h: Add prototype for set_tty_color_mode and
27460 2002-01-24 Jason Rumney <jasonr@gnu.org>
27462 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
27463 If region left to draw is not what was expected, mark the frame as
27466 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
27467 Combine the regions returned by BeginPaint and GetUpdateRect.
27469 2002-01-23 Jason Rumney <jasonr@gnu.org>
27471 * w32term.c (x_update_window_begin): Only hide caret if
27472 w32_use_visible_system_caret is set.
27473 (x_update_window_end): Only show caret if
27474 w32_use_visible_system_caret is set.
27475 (syms_of_w32term): Handle SystemParametersInfo call failing.
27477 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
27479 2002-01-22 Richard M. Stallman <rms@gnu.org>
27481 * unexelf.c (unexec): Define n so as to cause compilation error
27482 for the code where people have often written n instead of nn.
27484 * .gdbinit (hookpost-run): Defined.
27486 2002-01-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
27488 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
27490 2002-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
27492 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
27493 if fullscreen is being set.
27495 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27497 * minibuf.c (Fminibuffer_contents)
27498 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
27499 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
27501 2002-01-21 Richard M. Stallman <rms@gnu.org>
27503 * window.c (check_frame_size): Fix minimum height calculation.
27505 2002-01-20 Ken Raeburn <raeburn@gnu.org>
27507 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
27508 height before comparison.
27509 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
27511 2002-01-20 Jason Rumney <jasonr@gnu.org>
27513 * w32term.c (w32_system_caret_width): Remove.
27514 (w32_use_visible_system_caret): New user flag.
27515 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
27516 Windows reports a screen reader running.
27517 (x_update_window_begin): Hide the system caret.
27518 (x_update_window_end): Show the system caret.
27519 (x_display_and_set_cursor): Don't draw a cursor when
27520 w32_use_visible_system_caret is set. Do not adjust width.
27522 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
27523 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
27524 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
27525 the user requests it. Use system default width when creating.
27526 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
27528 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
27529 New window messages.
27531 2002-01-20 Richard M. Stallman <rms@gnu.org>
27533 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
27535 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27537 * doprnt.c (doprnt1): Fix typos in error call.
27539 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
27541 * unexelf.c (unexec) [__sgi]: Support the .got sections.
27543 2002-01-20 Jason Rumney <jasonr@gnu.org>
27545 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
27546 that Windows returns. If a double check fails, try to guess how
27547 ExtTextOut is going to act.
27549 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
27550 in place of stricmp.
27551 (w32_list_synthesized_fonts): Removed.
27552 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
27553 (struct enumfont_t): New element; list.
27554 (enum_font_cb2): List all style and charset variations of a font.
27555 (Fw32_select_font): New optional argument; include_proportional.
27556 Exclude vertical fonts. Exclude proportional fonts unless
27557 include_proportional is non-nil.
27558 (w32_enable_synthesized_fonts): Change to a boolean.
27559 (Fw32_send_sys_command): Doc fix.
27561 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27563 * dispnew.c (update_frame): Move the variable `tem' to the block
27566 2002-01-19 Jason Rumney <jasonr@gnu.org>
27568 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
27569 call to face-set-after-frame-default.
27571 2002-01-18 Richard M. Stallman <rms@gnu.org>
27573 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
27574 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
27576 2002-01-17 Richard M. Stallman <rms@gnu.org>
27578 * window.c (enlarge_window): When exceeding size of parent,
27579 directly delete all the siblings instead of trying to resize it.
27581 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27583 * term.c (set_tty_color_mode): Remove unused variable `tem'.
27585 2002-01-16 Henrik Enberg <henrik@enberg.org>
27587 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
27589 2002-01-16 Kim F. Storm <storm@cua.dk>
27591 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
27592 is invisible. This can happen if cursor is on top line of a
27593 window, and we switch to a buffer with a header line.
27595 * w32term.c (x_erase_phys_cursor): Ditto.
27597 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27599 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
27600 `dont_resize' only when used.
27602 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
27604 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
27606 * xdisp.c (display_mode_element): When computing charpos, depend
27607 on multibyteness of elt, not the text in field.
27609 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27611 * buffer.c (Fkill_all_local_variables):
27612 Increment `update_mode_lines' only once.
27614 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27616 * lisp.h (adjust_after_replace_noundo)
27617 (Fupdate_coding_systems_internal): Add prototypes.
27619 * sound.c (Fplay_sound): Initialize header_size also for :data case.
27621 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
27623 Support for the --color command-line argument and tty-color-mode
27626 * term.c (tty_default_color_capabilities, tty_setup_colors)
27627 (set_tty_color_mode): New functions.
27628 (term_init): Call tty_default_color_capabilities.
27629 (Qtty_color_mode_alist): New variable.
27630 (syms_of_term): Intern and staticpro it.
27632 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
27634 (do_switch_frame): For termcap frames, switch the tty
27635 color mode as specified by the frame's parameters.
27636 (Qtty_color_mode): New variable.
27637 (syms_of_frame): Intern and staticpro it.
27639 * emacs.c (USAGE2): Add the --color option.
27640 (standard_args): Ditto.
27642 2002-01-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
27644 * xterm.h (struct x_output): New members want_fullscreen,
27645 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
27646 y_pixels_outer_diff.
27647 New enum for FULLSCREEN_* constants.
27648 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
27650 (x_fullscreen_adjust): Add prototype.
27652 * emacs.c (USAGE2): Add the new full-screen arguments.
27653 (standard_args): Ditto.
27655 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
27657 (syms_of_xfns): Intern and staticpro them.
27658 (x_frame_parms) <"fullscreen">: New parameter.
27659 (x_fullscreen_move, x_set_fullscreen): New functions.
27660 (x_set_frame_parameters): Support for Qfullscreen.
27661 (x_real_positions): More accurate computation of the frame position.
27662 (x_figure_window_size): Support full-screen frames.
27663 (Fx_create_frame): Default the fullscreen parameter.
27665 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
27666 (XTread_socket) <Expose>: Call x_check_fullscreen.
27667 <ConfigureNotify>: Don't resize to fullscreen.
27668 Call x_check_fullscreen_move, and set the want_fullscreen member of
27671 2002-01-13 Jason Rumney <jasonr@gnu.org>
27673 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
27674 for mice with more than 3 buttons.
27676 * w32term.c (parse_button): New parameter xbutton. Callers changed.
27677 (w32_read_socket): Handle new "XBUTTON" messages.
27679 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
27680 (syms_of_w32fns): DEFVAR_BOOL it.
27681 (w32_wnd_proc): Handle new "XBUTTON" messages.
27683 2002-01-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27685 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
27687 2002-01-13 Andreas Schwab <schwab@suse.de>
27689 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
27691 2002-01-12 Andreas Schwab <schwab@suse.de>
27693 * .gdbinit (xbuffer): Remove address operator since data is now a
27696 2002-01-11 Richard M. Stallman <rms@gnu.org>
27698 * insdel.c (adjust_after_replace_noundo): New function.
27700 * coding.c (code_convert_region): Don't copy old text if undo disabled.
27702 2002-01-09 Jason Rumney <jasonr@gnu.org>
27704 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
27705 when checking for multiple frames.
27707 2002-01-08 Richard M. Stallman <rms@gnu.org>
27709 * window.c (delete_window): Rewrite the code for changing the
27710 selected window to handle the case where WINDOW is not a leaf.
27712 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
27714 * process.c (send_process): Set src_multibyte to 1 after the call
27715 top setup_coding_system, not before the call.
27717 2002-01-07 Jason Rumney <jasonr@gnu.org>
27719 * xmenu.c (set_frame_menubar, xmenu_show):
27720 (xdialog_show): Initialize wv->help to Qnil.
27722 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
27723 (w32_dialog_show): Initialize wv->help to Qnil.
27725 2002-01-06 Jason Rumney <jasonr@gnu.org>
27727 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
27729 * w32menu.c (w32_menu_display_help): Revert last change.
27731 * xmenu.c (menu_highlight_callback): Revert last change.
27733 2002-01-06 Andreas Schwab <schwab@suse.de>
27735 * insdel.c (make_gap_larger): Make sure buffer size does not
27736 overflow range of int.
27738 2002-01-05 Jason Rumney <jasonr@gnu.org>
27740 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
27743 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
27745 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
27746 to the left or to the right of the pointer, put it against
27747 the left screen edge.
27748 (x_frame_parms): Add missing braces around initializer.
27750 * w32term.c (x_setup_relief_colors): Don't compute an image's
27751 background color if it doesn't have a Pixmap.
27752 (notice_overwritten_cursor): Don't depend on
27753 output_cursor and updated_area. Compare pixel coordinates with
27754 window's cursor pixel coordinates.
27755 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
27756 Call notice_overwritten_cursor with new arg list.
27757 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
27759 (x_draw_image_relief): Use predefined macro instead of
27760 constant when the value of `tool_bar_button_relief' is negative.
27762 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
27764 2002-01-04 Richard M. Stallman <rms@gnu.org>
27766 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
27768 2002-01-03 Richard M. Stallman <rms@gnu.org>
27770 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
27771 (Fkey_binding): Try the `keymap' property map first.
27772 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
27773 minor mode bindings.
27775 2002-01-03 Kim F. Storm <storm@cua.dk>
27777 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
27779 2002-01-02 Richard M. Stallman <rms@gnu.org>
27781 * keyboard.c (read_key_sequence): Handle the keymap property
27782 before minor mode maps.
27784 * editfns.c (Fformat): Update thissize from field_width
27785 based on the actual width, in the string case.
27787 2002-01-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27789 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
27790 when used as truth value to prevent gcc warnings.
27792 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
27793 * w32proc.c: Include <config.h>.
27795 2002-01-01 Andreas Schwab <schwab@suse.de>
27797 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
27798 not EMACS_INT, to make them compatible with DEFVAR_INT.
27799 * lisp.h (max_specpdl_size): Adjust declaration.
27801 2002-01-01 Richard M. Stallman <rms@gnu.org>
27803 * print.c (print_object): Test print_escape_nonascii only for
27805 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
27806 when outputting to a multibyte buffer.
27808 2001-12-29 Richard M. Stallman <rms@gnu.org>
27810 * print.c (print_object): In multibyte string, use hex escapes.
27811 Use octal only for unibyte strings.
27812 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
27814 * lread.c (read_escape): New arg BYTEREP for reporting whether
27815 escape forces unibyte or multibyte.
27816 (read1): When reading a string, take note of that info.
27818 2001-12-29 Ken Raeburn <raeburn@gnu.org>
27820 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
27821 comparison to test lisp value returned by Fget.
27823 2001-12-29 Richard M. Stallman <rms@gnu.org>
27825 * lisp.h (max_specpdl_size): Add declaration.
27827 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
27829 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
27830 Handle modifier bits. Correct typo in error message.
27832 2001-12-28 Richard M. Stallman <rms@gnu.org>
27834 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
27835 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
27836 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27837 Update calls to Fdefine_abbrev.
27838 (write_abbrev): Update for changed data format.
27839 Don't list "system" abbrevs.
27840 (Fexpand_abbrev): Update use count with new data format.
27841 (describe_abbrev): Update for changed data format.
27842 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
27844 * config.in (HAVE_MBSINIT): Add #undef.
27846 * strftime.c (mbsinit): Define as no-op if not available.
27848 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
27849 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
27851 * keymap.c (Flookup_key): Error message if key has wrong data type.
27852 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
27853 (exclude_key): New variable.
27855 2001-12-28 Gerd Moellmann <gerd@gnu.org>
27857 * xterm.c (x_setup_relief_colors): Don't compute an image's
27858 background color if it doesn't have a Pixmap.
27860 * xterm.c (notice_overwritten_cursor): Don't depend on
27861 output_cursor and updated_area. Compare pixel coordinates with
27862 window's cursor pixel coordinates.
27863 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
27864 Call notice_overwritten_cursor with new arg list.
27865 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
27868 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
27869 height of the cursor line to the amount to scroll.
27871 2001-12-27 Richard M. Stallman <rms@gnu.org>
27873 * intervals.c (set_point_both): The position after an invisible,
27874 intangible character is not an acceptable stopping point.
27876 2001-12-27 Ken Raeburn <raeburn@gnu.org>
27878 * window.c (enlarge_window): In new preserve_before code, convert
27879 CURBEG from lisp object to integer before doing arithmetic.
27881 2001-12-27 Richard M. Stallman <rms@gnu.org>
27883 * bytecode.c (Fbyte_code): Undo previous change.
27885 2001-12-26 Kim F. Storm <storm@cua.dk>
27887 * keyboard.c (record_char): Ignore duplicate help-echo events only
27888 separated by mouse-movement. When tracking mouse, only record
27889 first and last mouse-movement event in same window.
27890 Don't record mouse-movement events in keyboard macros.
27892 2001-12-25 Richard M. Stallman <rms@gnu.org>
27894 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
27895 (Fenlarge_window): New arg PRESERVE_BEFORE.
27897 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
27898 instead of Fstring_as_unibyte.
27900 2001-12-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27902 The following changes remove mocklisp support:
27904 * mocklisp.h, mocklisp.c: Files removed.
27906 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
27907 `Qmocklisp' and `Qmocklisp_arguments'.
27908 Remove prototype of syms_of_mocklisp.
27910 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
27912 * callint.c: Do not include mocklisp.h.
27913 (Fcall_interactively): Do not test for mocklisp case.
27915 * eval.c: Remove variables `Qmocklisp_arguments',
27916 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
27917 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
27918 Do not test for mocklisp case.
27919 (Fwhile): Remove unused variable `tem'.
27920 (syms_of_eval): Remove variable `moclisp-arguments'.
27922 * data.c (wrong_type_argument): Remove mocklisp case.
27924 * doc.c (Fdocumentation): Remove mocklisp case.
27926 * emacs.c (main): Do not call syms_of_mocklisp.
27928 2001-12-21 Richard M. Stallman <rms@gnu.org>
27930 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
27931 to the left or to the right of the pointer, put it against
27932 the left screen edge.
27934 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
27936 * Makefile.in (distclean): Remove .gdbinit if we are building
27937 outside the source tree.
27939 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
27941 * w32.c (emacs_root_dir): New function.
27943 * msdos.c (emacs_root_dir): New function.
27945 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
27946 of the current drive as the fallback for default_directory.
27948 * dired.c (file_name_completion): Run the elements of
27949 completion-ignored-extensions through ENCODE_FILE.
27951 * lisp.h (scmp): Remove prototype, since it's now a static
27952 function private to dired.c.
27954 2001-12-18 Richard M. Stallman <rms@gnu.org>
27956 * dired.c (scmp): Function moved from minibuf.c.
27957 Delete multibyte handling--used only on encoded strings.
27959 * minibuf.c (scmp): Function moved to dired.c.
27961 * fns.c (merge): Add QUIT call.
27963 2001-12-18 Dave Love <fx@gnu.org>
27965 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
27966 language/georgian.el.
27968 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
27970 * Makefile.in (lisp, shortlisp): Synchronize with changes to
27971 lisp/Makefile.in:DONTCOMPILE.
27973 2001-12-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27975 * xdisp.c (window_box_height): Do not return negative values.
27976 From Gerd Moellmann <gerd@gnu.org>.
27978 * keyboard.c (head_table): Add missing braces around initializer.
27980 * term.c (keys): Likewise.
27982 * xfns.c (x_frame_parms, visual_classes): Likewise.
27984 2001-12-17 Sam Steingold <sds@gnu.org>
27986 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
27987 patch (COMPOSING_P, not COMPOSING).
27989 2001-12-17 Richard M. Stallman <rms@gnu.org>
27991 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
27993 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
27994 before calling decode_coding.
27996 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
27998 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
27999 instead of only for COMPOSITION_DISABLED.
28001 2001-12-16 Richard M. Stallman <rms@gnu.org>
28003 * alloc.c (pure_alloc): After overflow, allocate just a small block.
28005 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
28007 * buffer.h (struct buffer): New field `display_error_modiff'.
28008 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
28010 * window.c (Frecenter): Clear display_error_modiff field.
28012 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
28013 Call redisplay_window, but not if display_error_modiff field says no.
28014 (redisplay_window_error): New function.
28015 (displayed_buffer): New variable.
28016 (redisplay_internal, redisplay_windows): Call the new functions
28017 instead of redisplay_window directly.
28019 2001-12-15 Richard M. Stallman <rms@gnu.org>
28021 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
28023 2001-12-14 Andrew Innes <andrewi@gnu.org>
28025 * makefile.w32-in (EMACSLOADPATH): Define.
28026 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
28027 (bootstrap-temacs): Remove dependency on bootstrap-clean.
28029 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
28031 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
28032 parameter have a numeric value all the time.
28034 * w32fns.c (x_report_frame_params): Likewise.
28036 2001-12-12 Richard M. Stallman <rms@gnu.org>
28038 * fileio.c (Fwrite_region): Doc fix.
28040 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
28041 (redisplay_internal): Call clear_image_cache only for window terminals.
28043 2001-12-12 Gerd Moellmann <gerd@gnu.org>
28045 * xdisp.c (move_it_vertically_backward): Change heuristic
28046 for the case that we didn't move far enough initially.
28048 * window.c (Frecenter): Simplify computation in the case of window
28049 system frames and ARG < 0; use window_box_height.
28051 2001-12-11 Richard M. Stallman <rms@gnu.org>
28053 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
28054 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
28056 2001-12-11 Andrew Innes <andrewi@gnu.org>
28058 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
28061 2001-12-11 Richard M. Stallman <rms@gnu.org>
28063 * m/hp800.h: Split the __hpux conditional into the parts
28064 that are right for GNU/Linux too and the parts that are not.
28065 Use the former if GNU_LINUX.
28066 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
28068 * s/gnu-linux.h (GNU_LINUX): Defined.
28070 2001-12-11 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28072 * macros.c, msdos.c, w16select.c: Change doc-string comments to
28073 `new style' [w/`doc:' keyword].
28075 2001-12-10 Jason Rumney <jasonr@gnu.org>
28077 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
28080 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28082 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
28085 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
28087 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
28089 * s/hpux10.h (srand48): Don't undefine.
28091 2001-12-09 Jason Rumney <jasonr@gnu.org>
28093 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
28094 Add comment to explain where the struct came from.
28095 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
28096 (add_menu_item): Process pop-up menus first to avoid memory leak.
28097 (add_menu_item, w32_menu_display_help): Use `help' field as
28099 (w32_free_submenu_strings): Only free owner-drawn strings.
28101 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28103 * COPYING: Moved back.
28105 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
28106 Add parentheses around && within ||.
28108 * indent.c (compute_motion): Likewise.
28110 * intervals.c (merge_properties_sticky): Likewise.
28112 * coding.c (setup_coding_system, shrink_encoding_region)
28113 (Fdecode_sjis_char): Likewise.
28115 2001-12-07 Andreas Schwab <schwab@suse.de>
28117 * xdisp.c (display_mode_element): Don't read past end of string if
28120 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
28123 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
28124 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
28125 type changed to Lisp_Object.
28126 (syms_of_data): DEFVAR_LISP them.
28128 2001-12-07 Richard M. Stallman <rms@gnu.org>
28130 * callproc.c (init_callproc): Set Vdata_directory based on the source
28131 location whenever Emacs was run uninstalled.
28133 2001-12-06 Paul Eggert <eggert@twinsun.com>
28135 * config.in (HAVE_WORKING_VFORK): New #undefs.
28136 * process.c (create_process):
28137 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
28138 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
28139 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
28140 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
28141 * m/intel386.h (HAVE_VFORK): Likewise.
28142 * m/mips-siemens.h (HAVE_VFORK): Likewise.
28143 * m/mips.h (HAVE_VFORK): Likewise.
28144 * s/freebsd.h (vfork): Remove #define.
28145 * s/lynxos.h (HAVE_VFORK): Remove #undef.
28146 * s/usg5-4-2.h: Fix comment about vfork.
28148 2001-12-06 Richard M. Stallman <rms@gnu.org>
28150 * s/hpux10.h (random): Add undef.
28151 (HAVE_RANDOM): Define it just once.
28153 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
28155 * eval.c: Undo last change: the standard syntax is not wanted.
28157 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
28159 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
28160 scroll bars of the frame before deleting the frame itself. If the
28161 frame has a widget, delete the frame with XtDestroyWidget, and do
28162 not call XDestroyWindow before that.
28164 2001-12-06 Kim F. Storm <storm@cua.dk>
28166 * xfns.c (x_report_frame_params): Return actual fringe widths.
28168 * w32fns.c (x_report_frame_params): Return actual fringe widths.
28170 2001-12-05 Andrew Innes <andrewi@gnu.org>
28172 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
28175 * insdel.c (make_gap_larger): New function.
28176 (make_gap_smaller): New function.
28177 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
28178 Call make_gap_smaller if arg is negative.
28180 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
28182 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
28183 Pass a dummy argument when calling interrupt_signal.
28184 (parse_menu_item): Mark disabled items before checking for empty def.
28185 (read_char_minibuf_menu_prompt): Make safety more visible.
28186 (read_key_sequence): Add a `first_unbound' variable.
28187 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
28188 unbound prefix as soon as we can detect it.
28190 * doc.c (Fsnarf_documentation): Add prototype.
28191 (get_doc_string): Handle negative arguments.
28192 (Fdocumentation): Use AREF and ASIZE.
28193 Move the calls to get_doc_string to a single place.
28194 Don't confuse an interactive-spec for a docstring reference.
28195 (Fdocumentation_property): Take advantage of the fact that
28196 get_doc_string now ignores the sign of the docstring position.
28198 * eval.c: Use standard syntax for usage in docstrings.
28200 2001-12-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28202 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
28204 2001-12-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28206 * xterm.c (x_draw_image_relief): Use predefined macro instead of
28207 constant when the value of `tool_bar_button_relief' is negative.
28209 2001-12-02 Richard M. Stallman <rms@gnu.org>
28211 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
28212 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
28214 * fileio.c (read_non_regular): Delete Fsignal call.
28216 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
28218 * lisp.h (run_hook_list_with_args): Undo last change.
28220 2001-12-01 Gerd Moellmann <gerd@gnu.org>
28222 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
28224 2001-12-01 Jason Rumney <jasonr@gnu.org>
28226 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
28228 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
28229 [!WM_MOUSELEAVE]: Define.
28231 * w32menu.c (current_popup_menu, get_menu_item_info):
28232 (set_menu_item_info): New vars.
28233 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
28234 (w32_menu_show): Set current_popup_menu.
28235 (add_menu_item): Allocate new strings for owner-drawn menu items
28237 Use owner-draw for disabled menu items again.
28238 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
28239 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
28241 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
28242 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
28243 <WM_EXITMENULOOP>: Free menu strings.
28244 <WM_MOUSELEAVE>: Stop tracking mouse.
28245 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
28247 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
28250 2001-12-01 Kim F. Storm <storm@cua.dk>
28252 The following changes add left-fringe and right-fringe
28253 frame parameters to adjust fringe widths, or remove one or
28256 * frame.h (struct frame): Remove trunc_area_pixel_width and
28257 trunc_area_cols fields.
28258 (Qleft_fringe, Qright_fringe): Declare.
28259 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
28261 * frame.c (Qleft_fringe, Qright_fringe): New vars.
28262 (syms_of_frame): Initialize them.
28264 * window.c (coordinates_in_window): Handle separate left and right
28267 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
28268 and fringe_cols fields.
28269 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
28270 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
28271 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
28272 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
28273 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
28274 (x_compute_fringe_widths): Add prototype.
28276 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
28277 fill fringe evenly with small dashes.
28278 (x_draw_fringe_bitmap): Clear background if necessary. Align and
28279 clip the new ZV bitmap to avoid jitter between rows.
28280 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
28281 background. Don't draw fringe bitmaps if fringe width is zero.
28282 (x_compute_fringe_widths): New function.
28283 (x_new_font, x_set_window_size_1): Use it.
28285 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
28286 (x_set_frame_parameters): Process `font' parameter before other
28287 parameters as fringe widths depend on it.
28288 (x_set_fringe_width): New function.
28289 (x_figure_window_size): Use x_compute_fringe_widths.
28290 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
28293 * widget.c (set_frame_size): Use x_compute_fringe_widths.
28294 (EmacsFrameSetCharSize): Ditto.
28296 * w32term.h: Merged changes from xterm.h.
28297 * w32term.c: Merged changes from xterm.c.
28298 * w32fns.c: Merged changes from xfns.c.
28300 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28302 * COPYING: Removed.
28304 2001-11-29 Dave Love <fx@gnu.org>
28306 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
28308 (detect_coding_mask): Fix call of detect_coding_iso2022.
28310 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28312 * fileio.c (file-name-coding-system)
28313 (default-file-name-coding-system): Doc fix (links to referenced
28316 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
28318 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
28319 Add dummy uses of gcproN variables.
28321 * category.c (describe_category, describe_category_1)
28322 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
28323 (syms_of_category): Don't defsubr Sdescribe_categories.
28325 2001-11-28 Richard M. Stallman <rms@gnu.org>
28327 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
28329 * Makefile.in (lispdir): New variable, referring to build dir.
28330 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
28332 2001-11-28 Andrew Innes <andrewi@gnu.org>
28334 * w32menu.c (w32_menu_display_help): Actually add the new argument
28337 2001-11-28 Jason Rumney <jasonr@gnu.org>
28339 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
28340 menu items. From David Ponce <dponce@wanadoo.fr>.
28341 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
28343 (w32_menu_display_help): New argument OWNER. Rewritten to store a
28344 help event in the owner frame's keyboard buffer.
28346 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
28347 (Fx_show_tip): Don't subtract last width from row width.
28349 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
28350 (w32_read_socket): Use EQ to compare frames.
28352 2001-11-28 Gerd Moellmann <gerd@gnu.org>
28354 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
28357 2001-11-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28359 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
28360 `gcpro3' and `gcpro4'.
28362 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
28364 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
28366 * ccl.c: Use AREF and ASIZE.
28368 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
28370 * lisp.h (run_hook_list_with_args): Remove.
28371 (LIST_END_P): Fix call to wrong_type_argument.
28372 (make_fixnum_or_float): Use EMACS_INT rather than int.
28374 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
28376 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
28377 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
28379 * eval.c: Use AREF and ASIZE.
28380 (Ffetch_bytecode): Add the file name to the error message.
28382 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
28383 which match the end of the file-name.
28384 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
28385 is not a valid env var, but leave it as is instead.
28387 * keymap.c (access_keymap): Handle t bindings like nil bindings.
28388 Make nil bindings in char-tables transparent.
28389 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
28391 2001-11-26 Richard M. Stallman <rms@gnu.org>
28393 * textprop.c (set_text_properties_1): Allow START, END in either order.
28394 Do nothing if range is empty.
28396 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
28398 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
28401 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
28403 * textprop.c (set_text_properties_1): Clearly mark that the
28404 interval should not be empty.
28406 * intervals.c (graft_intervals_into_buffer):
28407 Don't call set_text_properties_1 on an empty interval.
28409 2001-11-25 Richard M. Stallman <rms@gnu.org>
28411 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
28413 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
28414 don't lose the data in it.
28416 2001-11-25 Juanma Barranquero <lektu@terra.es>
28418 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
28420 * buffer.c (Fkill_buffer): Likewise.
28422 * print.c (temp_output_buffer_setup): Likewise.
28424 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
28426 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
28428 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
28430 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
28431 Niemitalo <kon@iki.fi>.
28433 2001-11-25 Jason Rumney <jasonr@gnu.org>
28435 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
28437 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
28438 (Fx_show_tip): Block input during frame creation.
28439 (Fx_show_tip, Fx_hide_tip): Enable.
28441 2001-11-24 Richard M. Stallman <rms@gnu.org>
28443 * lread.c (Fload): Detect recursive load error for more than 3
28444 nestings of the same file.
28445 (Vrecursive_load_depth_limit): Variable deleted.
28446 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
28448 2001-11-24 Jason Rumney <jasonr@gnu.org>
28450 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
28451 mouse position if either left or top is not specified.
28453 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
28454 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
28455 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
28456 (my_create_tip_window): Assign tip_window.
28457 (x_create_tip_frame): Use same defaults as X.
28458 (compute_tip_xy): Remove unused variable. Use full screen width.
28459 (Fx_show_tip): Do not double height. Call ShowWindow directly.
28461 * w32term.c (x_after_update_window_line): Doc fix.
28462 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
28464 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
28466 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
28467 for all Windowed systems.
28469 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
28471 * msdos.c (IT_clear_screen): If the frame's faces are not yet
28472 realized, use the initial screen colors to clear the screen.
28474 2001-11-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28476 * textprop.c (Fset_text_properties): Remove unused variables
28477 `unchanged', `prev_changed', `s' and `len'.
28479 * search.c (Freplace_match): Remove unused variable `inslen'.
28481 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
28483 2001-11-22 Jason Rumney <jasonr@gnu.org>
28485 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
28486 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
28487 (my_create_tip_window): New function.
28488 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
28489 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
28491 2001-11-20 Jason Rumney <jasonr@gnu.org>
28493 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
28494 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
28496 * w32fns.c (Vw32_system_coding_system): Remove.
28497 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
28499 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
28501 * fileio.c (Fwrite_region): Move choose_write_coding_system to
28502 after build_annotations.
28504 * syntax.c (describe_syntax): Add dummy arg.
28505 (describe_syntax_1): Update call to describe_vector.
28507 * category.c (describe_category): Add dummy arg.
28508 (describe_category_1): Update call to describe_vector.
28510 * keymap.c (Fdescribe_vector): Add `describer' parameter.
28511 (describe_command, describe_translation): Add dummy second param.
28512 (describe_map): Call elt_describer with two arguments.
28513 (describe_vector_princ): Add `fun' parameter.
28514 Call it instead of the hardcoded `princ'.
28515 (describe_vector): Add arg `args'.
28516 Pass it as a new second argument to elt_describer.
28518 * keymap.h (describe_vector): Update prototype.
28520 * frame.c: Don't include keymap.h any more.
28521 (keys_of_frame): Remove.
28523 * lisp.h (keys_of_frame): Remove declaration.
28525 * emacs.c (main): Don't call `keys_of_frame' any more.
28527 2001-11-14 Andreas Schwab <schwab@suse.de>
28529 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
28530 if defined, 0 otherwise.
28531 (MAP_FAILED): Define if not defined and use it to test mmap failure.
28532 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
28534 2001-11-19 Richard M. Stallman <rms@gnu.org>
28536 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
28538 2001-11-18 Jason Rumney <jasonr@gnu.org>
28540 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
28541 (x_draw_bar_cursor): If the background color of the glyph under
28542 the cursor equals the frame's cursor color, use the glyph's
28543 foreground color for drawing the bar cursor.
28544 (x_after_update_window_line): Clear internal border in different
28546 (w32_set_vertical_scroll_bar): Check for width and height > 0.
28547 (w32_draw_relief_rect): Correct relief by 1 pixel.
28548 (x_set_glyph_string_background_width):
28549 Set extends_to_end_of_line_p if the row's fill_line_p is set and
28550 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
28551 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
28552 if cursor_in_non_selected_windows is false.
28553 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
28554 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
28555 Notice if cursor gets overwritten.
28556 (notice_overwritten_cursor): Renamed from
28557 note_overwritten_text_cursor. Rewritten to take glyph widths
28558 into account, and to take X positions as parameters.
28559 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
28560 around call to x_draw_glyphs.
28561 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
28562 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
28563 color to use for image glyph reliefs.
28564 (x_draw_image_relief): Accept zero tool_bar_button_relief.
28565 (glyph_rect): Remove unused variable `area'.
28567 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
28569 (x_set_internal_border_width): Set frame garbaged when window
28571 (Fx_create_frame): Accept zero tool_bar_button_relief.
28572 (x_clear_image_1, four_corners_best, image_background)
28573 (image_background_transparent): New functions.
28574 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
28575 (gs_format): Add `:background' entry.
28576 (lookup_image): Set IMG's background color if specified.
28577 (pbm_load, xbm_load_image, png_load): Set IMG's background field
28579 (x_clear_image_1): Reset `background_valid' and
28580 `background_transparent_valid' fields.
28581 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
28582 calculating it here. Set IMG's background_transparent field.
28583 (enum xpm_keyword_index): Add XPM_BACKGROUND.
28584 (enum png_keyword_index): Add PNG_BACKGROUND.
28585 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
28586 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
28587 (enum gif_keyword_index): Add GIF_BACKGROUND.
28588 (enum gs_keyword_index): Add GS_BACKGROUND.
28589 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
28590 Pre-calculate image background color where necessary.
28591 (x_create_x_image_and_pixmap, xbm_load, gs_load):
28592 Use display info's n_cbits entry for screen depth.
28593 (Fx_show_tip): Remove unused variables `buffer', `top',
28594 `left', `max_width' and `max_height'.
28596 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
28598 2001-11-18 Gerd Moellmann <gerd@gnu.org>
28600 * puresize.h (BASE_PURESIZE): Increase to 750000.
28602 2001-11-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28604 * frame.c (Fframe_live_p): Doc fix.
28606 2001-11-18 Richard M. Stallman <rms@gnu.org>
28608 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
28609 (message_dolog_marker3): New static variables hold three markers.
28610 (syms_of_xdisp): Initialize and staticpro them.
28611 (message_dolog): Use message_dolog_marker1..3 instead of
28612 allocating markers each time. Unchain them when done.
28614 2001-11-17 Richard M. Stallman <rms@gnu.org>
28616 * doc.c (Fsnarf_documentation): Doc fix.
28618 2001-11-17 Andreas Schwab <schwab@suse.de>
28620 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
28622 2001-11-17 Richard M. Stallman <rms@gnu.org>
28624 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
28626 2001-11-17 Jason Rumney <jasonr@gnu.org>
28628 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
28630 2001-11-17 Gerd Moellmann <gerd@gnu.org>
28632 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
28633 with invalid position.
28635 2001-11-16 Richard M. Stallman <rms@gnu.org>
28637 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
28639 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
28640 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
28641 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
28643 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
28645 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
28647 * fileio.c (build_annotations): Split off the tail.
28648 (build_annotations_2): New fun. Extracted from build_annotations.
28649 (Fwrite_region): Split the call to build_annotations into two
28650 calls to build_annotations and build_annotations_2.
28652 2001-11-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28654 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
28655 clear_waiting_for_input with argument.
28657 * xterm.h (x_update_cursor): Remove duplicated prototype.
28659 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
28661 * xterm.c (waiting_for_input): Remove unnecessary declaration.
28663 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
28665 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
28667 * fileio.c (choose_write_coding_system): New fun, extracted
28668 from Fwrite_region.
28669 (Fwrite_region): Use it.
28671 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
28672 (funcall_lambda, run_hook_with_args): Make static and add prototype.
28673 (ml_apply, find_handler_clause): Add prototype.
28675 2001-11-16 Eli Zaretskii <eliz@gnu.org>
28677 * config.in: Add #undef HAVE_COFF_H.
28679 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
28680 Required for ISC 4.1.
28682 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
28684 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
28685 Andrew Wiseman <a.wiseman@btclick.com>.
28687 2001-11-16 Kim F. Storm <storm@cua.dk>
28689 The following changes are made to clean up the various internal
28690 references to the fringes to actually use the term `fringe' for
28691 them. Previously, they were called `flags areas', `bitmap areas',
28692 `left/right side of windows', or implicitly as `flags' or
28695 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
28696 Comments fixed. Use renamed symbols.
28698 * dispnew.c: Comment fix. Use renamed symbols.
28700 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
28701 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
28702 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
28704 * msdos.c: Comment fix.
28706 * w32fns.c: Use renamed symbols.
28708 * w32term.c: Comment fixes. Use renamed symbols.
28709 (fringe_bitmap_type): Renamed from bitmap_type.
28710 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
28711 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
28712 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
28714 * w32term.h: Comment fixes. Use renamed symbols.
28715 (fringes_extra): Renamed from flags_areas_extra.
28716 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
28717 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
28718 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
28719 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
28720 (FRAME_X_LEFT_FRINGE_WIDTH):
28721 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
28722 (FRAME_X_RIGHT_FRINGE_WIDTH):
28723 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
28725 * widget.c: Use renamed symbols.
28727 * window.c: Comment fixes. Use renamed symbols.
28728 (coordinates-in-window-p): Doc fix.
28730 * xdisp.c: Comment fixes. Use renamed symbols.
28732 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
28734 * xfns.c: Use renamed symbols.
28736 * xterm.c: Comment fixes. Use renamed symbols.
28737 (fringe_bitmap_type): Renamed from bitmap_type.
28738 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
28739 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
28740 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
28742 * xterm.h: Comment fixes. Use renamed symbols.
28743 (fringes_extra): Renamed from flags_areas_extra.
28744 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
28745 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
28746 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
28747 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
28748 (FRAME_X_LEFT_FRINGE_WIDTH):
28749 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
28750 (FRAME_X_RIGHT_FRINGE_WIDTH):
28751 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
28753 2001-11-15 Jason Rumney <jasonr@gnu.org>
28755 * w32menu.c (add-menu-item): Make help_echo and radio buttons
28756 work for most menu items. From David Ponce
28757 <david.ponce@wanadoo.fr>.
28759 2001-11-15 Gerd Moellmann <gerd@gnu.org>
28761 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
28762 Some x_set_* function expect to be called even if old and new
28765 * xdisp.c (build_desired_tool_bar_string): Accept zero
28766 tool_bar_button_relief.
28768 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
28770 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
28772 * xterm.c (x_draw_bar_cursor): If the background color of the
28773 glyph under the cursor equals the frame's cursor color, use
28774 the glyph's foreground color for drawing the bar cursor.
28776 * dispnew.c (direct_output_forward_char): Fix character/byte
28777 position comparison.
28779 2001-11-15 Miles Bader <miles@gnu.org>
28781 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
28782 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
28783 Update arguments to find_field.
28784 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
28785 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
28786 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
28787 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
28789 2001-11-14 Richard M. Stallman <rms@gnu.org>
28791 * editfns.c (Fpropertize): Allow call with 1 arg.
28793 * dispextern.h (image_background, image_background_transparent):
28794 Conditionalize on HAVE_X_WINDOWS.
28796 2001-11-13 Richard M. Stallman <rms@gnu.org>
28798 * print.c (Fprin1_to_string): Doc fix.
28800 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
28802 * floatfns.c (Fceiling, Ffloor): Doc fixes.
28804 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
28806 * fileio.c (Ffile_accessible_directory_p): Doc fix.
28808 * eval.c (syms_of_eval): Doc fix.
28810 * coding.c (syms_of_coding): Doc fix.
28812 * doc.c (Fsnarf_documentation): Doc fix.
28814 * dispnew.c (syms_of_display): Doc fix.
28816 * category.c (Fget_unused_category): Doc fix.
28818 * buffer.c (syms_of_buffer): Doc fixes.
28820 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
28822 * print.c (prin1, print): Doc fix.
28824 2001-11-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28826 * fontset.h: Remove declarations of variables
28827 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
28829 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
28830 `Vclip_large_size_font'.
28832 2001-11-13 Jason Rumney <jasonr@gnu.org>
28834 * w32fns.c: Doc fix.
28836 2001-11-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28838 * xfaces.c (Fface_attributes_as_vector): Doc fix.
28842 * emacs.c: Doc fix.
28844 * coding.c: Doc fix.
28846 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
28847 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
28848 `new style' [w/`doc:' keyword].
28850 2001-11-12 Richard M. Stallman <rms@gnu.org>
28852 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
28853 LeaveNotify events. Only FocusIn and FocusOut do that now.
28854 (x_display_and_set_cursor): Do display hollow cursors in active
28855 minibuffer windows when they are not selected.
28857 2001-11-12 Jason Rumney <jasonr@gnu.org>
28859 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
28860 * w32term.c: Change doc-string comments to `new style'
28861 [w/`doc:' keyword]. Doc fixes.
28863 * w32fns.c: Don't define max.
28864 (Fx_open_connection): Only execute once.
28866 2001-11-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28868 * ccl.c: Change macros to use do-while block instead of if-else.
28869 Use braces to follow GNU Coding Standards.
28871 2001-11-11 Richard M. Stallman <rms@gnu.org>
28873 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
28875 * lread.c (read_escape): Use end_of_file_error for reporting eof.
28877 * insdel.c (replace_range): Use adjust_markers_for_replace
28878 instead of adjust_markers_for_delete and adjust_markers_for_insert.
28880 * intervals.h (set_text_properties, set_text_properties_1): Declare.
28882 * textprop.c (set_text_properties_1): New subroutine
28883 broken out of set_text_properties.
28884 (set_text_properties): Use set_text_properties_1.
28886 * intervals.c (graft_intervals_into_buffer):
28887 Use set_text_properties_1 to clear out properties.
28889 * search.c (Freplace_match): Use replace_range to insert
28890 and delete. Don't request property inheritance from
28893 2001-11-10 Jason Rumney <jasonr@gnu.org>
28895 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
28896 vertical fonts. Allow them if face name is explicitly specified.
28897 Do not give up if we find a font that cannot be converted to an xlfd.
28899 2001-11-10 Gerd Moellmann <gerd@gnu.org>
28901 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
28902 instead of malloc/free.
28904 2001-11-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28906 * xfaces.c (merge_face_vectors): Use braces to follow GNU
28908 (Finternal_set_lisp_face_attribute): Likewise.
28910 * buffer.c (Fbury_buffer): Likewise.
28912 * indent.c (current_column_1): Remove unused variable `prev_col'.
28914 * coding.c (encode_coding): Use precomputed value of `src'.
28915 (encode_coding): Remove unused variable `src_end'.
28916 (code_convert_region): Remove unused variables `count'.
28918 2001-11-07 Jason Rumney <jasonr@gnu.org>
28920 * w32term.c (x_display_and_set_cursor): Do not move system caret
28921 if cursor_glyph is NULL.
28923 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28925 * keymap.c (access_keymap): Fix compilation error.
28927 2001-11-07 Miles Bader <miles@gnu.org>
28929 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
28931 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28933 * intervals.c (graft_intervals_into_buffer):
28934 Remove #ifdef'd-out code.
28935 (graft_intervals_into_buffer): Remove unused variable `middle'.
28937 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
28938 code (eval-current-buffer).
28939 Change doc-string comments to `new style' [w/`doc:' keyword].
28941 2001-11-06 Richard M. Stallman <rms@gnu.org>
28943 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
28945 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
28947 * lread.c (read1): Fix behavior with nested backquoting.
28949 * keyboard.c (make_lispy_event): Check integerness and fix
28950 Lisp_Object/int mixup.
28952 2001-11-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28954 * fns.c (copy_hash_table): Remove unused variable `v'.
28956 * fontset.c (fontset_font_pattern): Remove unused variable
28959 * indent.c (current_column_1): Remove unused variable `prev_col'.
28961 2001-11-05 Richard M. Stallman <rms@gnu.org>
28963 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
28965 * buffer.c (Fkill_buffer): Don't delete auto save file
28966 if buffer is modified.
28968 2001-11-05 Andrew Innes <andrewi@gnu.org>
28970 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
28973 2001-11-05 Richard M. Stallman <rms@gnu.org>
28975 * unexelf.c (unexec): Minor changes; clean up comments.
28977 2001-11-05 Sam Steingold <sds@gnu.org>
28979 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
28981 2001-11-05 Andreas Schwab <schwab@suse.de>
28983 * sound.c (sound_perror): Save errno from being clobbered.
28985 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
28987 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
28988 the program image directly.
28990 2001-11-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
28992 * buffer.h (Fbuffer_local_value): Add prototype.
28994 2001-11-04 Richard M. Stallman <rms@gnu.org>
28996 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
28999 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
29000 (record_char): Likewise.
29002 * keyboard.c (make_lispy_event): Don't insist a drag event must
29003 move to a different buffer position. Instead, check for moving at
29004 least double_click_fuzz.
29006 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
29008 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
29010 * indent.c (current_column_1, Fmove_to_column): Separate the code
29011 for display-table glyphs from the code for buffer text, to fix
29012 bugs in the former.
29014 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
29016 * buffer.c (Fbuffer_local_value): New function.
29017 (syms_of_buffer): Defsubr it.
29019 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
29020 value of `cursor-in-non-selected-windows'.
29022 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
29023 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
29024 (syms_of_xdisp): Initialize it.
29026 2001-11-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29028 * xfns.c (Fx_create_frame): Doc fix.
29030 * coding.c: Change doc-string comments to `new style' [w/`doc:'
29033 * eval.c (top_level_value, top_level_set): Remove commented and
29035 (Fdefvar): Fix usage in doc-string.
29037 2001-11-03 Richard M. Stallman <rms@gnu.org>
29039 * xfns.c: Include unistd.h, if it exists.
29041 * editfns.c: Move the include of ctype.h after unistd.h.
29043 * gmalloc.c: Test BROKEN_PROTOTYPES.
29045 2001-11-03 Ken Raeburn <raeburn@gnu.org>
29047 * lisp.h (CHECK_STRING_CAR): New macro.
29048 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
29049 treating XCAR and XCDR as lvalues.
29050 (openp): Use CHECK_STRING_CAR.
29051 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
29053 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
29055 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
29056 (SIGMASKTYPE): Define.
29058 * syssignal.h (sigunblock): Don't define if already defined.
29060 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29062 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
29063 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
29064 Fix typos in comments.
29066 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
29067 and #ifdef'd-out code.
29068 Fix and reindent comments.
29070 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
29072 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
29073 argument `i' in macros.
29075 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
29078 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
29079 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
29080 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
29081 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
29082 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
29083 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
29084 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
29085 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
29088 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
29089 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
29090 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
29091 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
29092 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
29093 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
29094 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
29095 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
29096 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
29097 (remove unused second argument).
29099 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
29101 * syntax.c (describe_syntax): New wrapper.
29102 (Finternal_describe_syntax_value): Rename from describe_syntax.
29103 Don't insert space at front and \n at the end.
29104 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
29106 * regex.c (re_wctype): Try to fix some warnings.
29107 (regcomp, regexec): Don't forget the __restrict.
29109 2001-11-02 Richard M. Stallman <rms@gnu.org>
29111 * textprop.c (Fget_char_property): Doc fix.
29113 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29115 * process.c (Fstart_process): Add usage to doc-string.
29117 * data.c (Fsetq_default): Ditto.
29119 * callint.c (Finteractive): Ditto.
29121 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
29123 * macros.c: Don't include keymap.h any more.
29125 2001-11-01 Richard M. Stallman <rms@gnu.org>
29127 * data.c (Fmake_local_variable): Doc fix.
29129 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
29130 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
29132 * keymap.c (Fdescribe_buffer_bindings): Print character property
29133 bindings along with or instead of the buffer local map.
29134 Make the overriding maps override what they should.
29136 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29138 * window.c (grow_mini_window): Fix typo in comment.
29140 2001-11-01 Gerd Moellmann <gerd@gnu.org>
29142 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
29143 (XTset_vertical_scroll_bar): Likewise.
29145 * xfns.c (x_build_heuristic_mask): Use four_corners_best
29146 instead of IMAGE_BACKGROUND.
29148 * xfns.c (four_corners_best): Reindent.
29150 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
29151 Handle :box so that it is possible to specify sexprs.
29153 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
29155 * s/hpux11.h: New file.
29157 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29159 * emacs.c (USAGE1): Show command line option --no-window-system
29160 instead of --no-windows in usage.
29161 (standard_args): Rename --no-windows to --no-window-system.
29162 (bug_reporting_address): Follow Emacs coding conventions.
29164 * eval.c (Fcommandp): Doc fix.
29165 Change doc-string comments to `new style' [w/`doc:' keyword].
29167 * frame.c (Fframe_live_p): Doc fix.
29169 * buffer.c (selective-display-ellipses): Doc fix.
29171 2001-10-31 Gerd Moellmann <gerd@gnu.org>
29173 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
29175 * xfaces.c (realize_x_face): If C is not a single-byte character,
29176 set the face's colors_copied_bitwise_p instead of the defaulted_p
29177 members which have a different meaning.
29178 (free_face_colors): Do nothing for a face whose colors have been
29181 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
29183 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29185 * marker.c, mocklisp.c: Change doc-string comments to `new style'
29186 [w/`doc:' keyword].
29188 2001-10-31 Gerd Moellmann <gerd@gnu.org>
29190 * fns.c (require_unwind): Return Lisp_Object.
29192 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29194 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
29195 (last-input-char): Revert doc-string to be the same as the
29196 doc-string of `last-input-event'.
29198 * xdisp.c: Fix typos in comments.
29200 2001-10-31 Gerd Moellmann <gerd@gnu.org>
29202 * window.c (grow_mini_window): Handle case that the root
29203 window is already smaller than the nominal mininum height.
29205 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
29207 * emacs.c (main): Don't call keys_of_macros any more.
29209 * lisp.h (keys_of_macros): Remove.
29211 * macros.c (keys_of_macros): Remove.
29213 * xfaces.c (Fface_attribute_relative_p): Declare args.
29215 2001-10-30 Jason Rumney <jasonr@gnu.org>
29217 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
29218 (enum_font_cb2): Ignore fonts with vertical orientation.
29220 2001-10-30 Richard M. Stallman <rms@gnu.org>
29222 * keyboard.c (Finput_pending_p): Doc fix.
29224 2001-10-30 Gerd Moellmann <gerd@gnu.org>
29226 * xterm.c (x_after_update_window_line): Don't run the code
29227 clearing in borders for rows whose visible height is 0.
29229 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
29230 resized_p flag is set. If not set, use the much less flickering
29231 method previously used.
29233 * dispnew.c (change_frame_size_1): Set frame's resized_p.
29235 * frame.h (struct frame) <resized_p>: New member.
29237 * lread.c (to_multibyte): Ensure read_buffer is at least twice
29238 as large as the number of bytes to convert.
29240 * lread.c (to_multibyte): New function.
29243 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
29245 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
29247 2001-10-30 Gerd Moellmann <gerd@gnu.org>
29249 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
29250 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
29251 if the row's fill_line_p is set and drawing the last glyph with
29252 DRAW_IMAGE_{RAISED,SUNKEN}.
29254 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
29256 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
29258 * xmenu.c: Include coding.h and charset.h.
29259 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
29260 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
29261 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
29262 Explicitly set wv->help. Use `TRUE' rather than `True'.
29263 (menu_help_callback): Use empty_string.
29265 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
29266 (Fx_popup_dialog): Explicitly init f.
29267 (w32_menu_display_help): Use empty_string.
29269 2001-10-29 Richard M. Stallman <rms@gnu.org>
29271 * fns.c (Frequire): Detect recursive try to require the same
29272 feature 3 or more levels deep, and get error.
29273 (require_unwind): New subroutine.
29274 (require_nesting_list): New variable.
29275 (syms_of_fns): Init and staticpro it.
29277 * print.c (print_object): Clarify indication of insertion type.
29279 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
29281 * coding.c (syms_of_coding): Document that locale-coding-system is
29282 used for decoding input on X.
29284 * window.c (Fscroll_left, Fscroll_right): Doc fix.
29286 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29288 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
29289 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
29291 2001-10-29 Gerd Moellmann <gerd@gnu.org>
29293 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
29294 use NO_CURSOR if cursor_in_non_selected_windows is false.
29296 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
29297 the slant attribute if FRAME is t.
29299 * xfns.c (x_set_internal_border_width): Set frame garbaged
29300 when X window doesn't exist yet.
29302 * xterm.c (x_after_update_window_line): Clear internal border
29303 in different circumstances.
29305 * xterm.c (XTread_socket) <KeyPress>: Don't use
29306 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
29309 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
29311 * m/ibms390.h: New file. From Adam Thornton
29312 <athornton@sinenomine.net>.
29314 2001-10-28 Gerd Moellmann <gerd@gnu.org>
29316 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
29318 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
29321 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29323 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
29325 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
29327 Fix typos in comments.
29329 * emacs.c (bug_reporting_address): New function.
29330 Use it when displaying usage message.
29332 * minibuf.c (read_minibuf): Remove unused external declaration of
29333 variable `Qread_only'.
29335 * keymap.c (access_keymap): Remove unused variable `charset'.
29337 2001-10-28 Miles Bader <miles@gnu.org>
29339 * xfaces.c (merge_face_heights): Handle TO being relative as well.
29340 Remove #ifdef'd-out code.
29341 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
29342 (syms_of_xfaces): Initialize them.
29344 2001-10-27 Jason Rumney <jasonr@gnu.org>
29346 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
29347 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
29348 position using the system caret.
29350 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
29351 (w32_system_caret_height, w32_system_caret_x)
29352 (w32_system_caret_y): New variables for tracking system caret.
29353 (w32_initialize): Initialize them.
29354 (x_display_and_set_cursor): Make system caret follow the active cursor.
29356 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
29357 New messages types.
29359 * w32term.c (note_mouse_highlight): Clear old help_echo.
29361 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29363 * xterm.c: Fix typo in a comment.
29365 * emacs.c: Fix typos in comments.
29366 Remove unnecessary spaces.
29367 Change doc-string comments to `new style' [w/`doc:' keyword].
29368 (USAGE2): Fix typos in usage string.
29370 * xterm.c: Fix typo in a comment.
29372 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
29375 2001-10-27 Gerd Moellmann <gerd@gnu.org>
29377 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
29378 instead of 1/2 line_height in the heuristic for skipping
29379 farther backward when target_y was not reached.
29381 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
29382 Display errno only if non-zero.
29383 (sound_warning): New function.
29384 (vox_configure): Don't treat failing to set sample rate as error.
29385 (various places): Improve error messages.
29387 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
29389 * fileio.c (Faccess_file): Run the argument filename through
29390 Fexpand_file_name, before using it.
29392 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
29393 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
29395 2001-10-26 Gerd Moellmann <gerd@gnu.org>
29397 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
29399 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
29400 Fix clearing in the case of scroll bars on the right.
29402 2001-10-26 Juanma Barranquero <lektu@terra.es>
29404 * w32gui.h (XImage): Add a dummy typedef.
29406 2001-10-26 Gerd Moellmann <gerd@gnu.org>
29408 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
29410 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
29412 * frame.c (Fframe_parameter): Fix last change.
29414 * fileio.c: Revert last change (which removed old commented-out
29415 version of expand-file-name). Add a comment that explains why
29416 this old version should not be removed.
29418 2001-10-25 Gerd Moellmann <gerd@gnu.org>
29420 * frame.c (Fframe_parameter): Fix a bug whereby some
29421 ``artificial'' frame parameters, like `minibuffer' were not
29422 obtained by calling Fframe_parameters.
29424 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
29425 cursor differently.
29427 * xdisp.c (move_it_vertically_backward): Compute line height
29428 differently. Add heuristic to try to be more compatible to 20.x.
29430 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
29432 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
29434 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
29437 2001-10-25 Miles Bader <miles@gnu.org>
29439 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
29440 BG is a pointer to a structure, not a structure.
29441 (gif_format, png_format): Add missing commas.
29443 2001-10-24 Richard M. Stallman <rms@gnu.org>
29445 * xfaces.c (Fface_attributes_as_vector): New function.
29446 (syms_of_xfaces): Defsubr it.
29448 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29450 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
29453 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29455 * search.c (scan_newline): Remove unused variable `selective_display'.
29457 2001-10-25 Miles Bader <miles@gnu.org>
29459 * dispextern.h (struct image): Add `background',
29460 `background_valid', and `background_transparent' fields.
29461 (image_background, image_background_transparent): New declarations.
29462 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
29463 * xfns.c (image_background, image_background_transparent)
29464 (four_corners_best): New functions.
29465 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
29466 (gs_format): Add `:background' entry.
29467 (lookup_image): Set IMG's background color if specified.
29468 (pbm_load, xbm_load_image, png_load): Set IMG's background field
29470 (x_clear_image_1): Reset `background_valid' and
29471 `background_transparent_valid' fields.
29472 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
29473 calculating it here. Set IMG's background_transparent field.
29474 (enum xpm_keyword_index): Add XPM_BACKGROUND.
29475 (enum png_keyword_index): Add PNG_BACKGROUND.
29476 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
29477 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
29478 (enum gif_keyword_index): Add GIF_BACKGROUND.
29479 (enum gs_keyword_index): Add GS_BACKGROUND.
29480 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
29481 Pre-calculate image background color where necessary.
29482 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
29483 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
29484 color to use for image glyph reliefs.
29486 2001-10-24 Gerd Moellmann <gerd@gnu.org>
29488 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
29489 in full-width rows.
29491 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
29492 Fix clearing of area not covered by scroll bar.
29494 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29496 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
29498 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
29499 (glyph_rect): Remove unused variable `area'.
29501 2001-10-24 Gerd Moellmann <gerd@gnu.org>
29503 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
29505 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
29506 (row_containing_pos): Take additional argument DY.
29507 Treat rows ending in middle of char differently.
29508 (display_line): Handle tabs on window systems differently.
29510 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
29511 with additional argument.
29513 * dispextern.h (row_containing_pos): Adjust prototype.
29515 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
29516 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
29517 (try_window_id, try_window_reusing_current_matrix)
29518 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
29519 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
29521 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29523 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
29525 (HAVE_BOXES): Fix typo in comment.
29526 (push_menu_pane): Fix typo in comment.
29528 * xdisp.c (display_prop_string_p): Remove unused local declaration
29530 (single_display_prop_string_p): Remove unused local declarations
29531 of `Qwhen' and `Qmargin'.
29532 (string_buffer_position): Remove unused variable `around'.
29533 (store_frame_title): Remove unused variable `width'.
29535 * window.c: Don't define max.
29536 (coordinates_in_window): Remove unused variable `uy'.
29538 * widget.c: Don't define max.
29540 * process.c: Don't define max.
29541 (create_process): Remove unused variable `buffer'.
29543 2001-10-23 Gerd Moellmann <gerd@gnu.org>
29545 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
29547 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
29549 * xfaces.c (Finternal_set_lisp_face_attribute)
29550 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
29551 frame is on a windowed display.
29553 2001-10-23 Gerd Moellmann <gerd@gnu.org>
29555 * dispnew.c (sync_window_with_frame_matrix_rows):
29556 Fix handling of windows which aren't full-width, fix handling
29559 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
29561 2001-10-23 Andreas Schwab <schwab@suse.de>
29563 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
29564 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
29566 2001-10-23 Gerd Moellmann <gerd@gnu.org>
29568 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
29569 REAL_END. Notice if cursor gets overwritten.
29570 (notice_overwritten_cursor): Take X positions as parameters.
29571 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
29572 around call to x_draw_glyphs.
29574 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29576 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
29577 instead of C) and usage.
29579 * editfns.c (char-to-string): Fix argument names (use CHAR instead
29582 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
29583 `left', `max_width' and `max_height'.
29585 2001-10-23 Gerd Moellmann <gerd@gnu.org>
29587 * xdisp.c (display_line): For a tab continued to the next line,
29588 set row's ends_in_middle_of_char_p.
29590 2001-10-22 Gerd Moellmann <gerd@gnu.org>
29592 * xdisp.c (display_line): Fix computation of continuation lines
29595 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29597 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
29600 * fileio.c: Remove unused code.
29602 2001-10-22 Miles Bader <miles@gnu.org>
29604 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
29605 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
29606 Remove `DOC_STRINGS_IN_COMMENTS' cases.
29608 2001-10-21 Jason Rumney <jasonr@gnu.org>
29610 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
29612 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
29614 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
29615 (Finsert_string): Avoid the multi-line string literals warning.
29617 2001-10-22 Miles Bader <miles@gnu.org>
29619 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
29620 (Fdocumentation): Don't use it.
29621 (syms_of_doc): Don't initialize it.
29623 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
29624 * print.c (Fwith_output_to_temp_buffer): Likewise.
29625 * window.c (Fsave_window_excursion): Likewise.
29626 * editfns.c (Fsave_excursion, Fsave_current_buffer)
29627 (Fsave_restriction): Likewise.
29628 * eval.c (Frun_hooks, Frun_hook_with_args)
29629 (Frun_hook_with_args_until_failure)
29630 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
29631 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
29632 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
29633 (Funwind_protect, Fcondition_case): Likewise.
29634 * coding.c (Ffind_operation_coding_system): Likewise.
29635 * keyboard.c (Ftrack_mouse): Likewise.
29637 2001-10-21 Miles Bader <miles@gnu.org>
29639 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
29640 (Fmake_hash_table): Add usage: string to doc string.
29641 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
29642 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
29643 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
29644 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
29645 (Fml_prefix_argument_loop): Likewise.
29647 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29649 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
29651 * sysdep.c (init_sys_modes): Change doc-string comments to `new
29652 style' [w/`doc:' keyword].
29654 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
29655 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
29656 comments to `new style' [w/`doc:' keyword].
29658 2001-10-21 Jason Rumney <jasonr@gnu.org>
29660 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
29662 * w32term.c (remember_mouse_glyph): New function.
29663 (w32_mouse_position): Use it.
29664 (note_mouse_movement): If the mouse moved off the glyph, remember
29667 * w32term.h (struct w32_output): Correct spelling of x_compatible.
29668 (w32_display_info): Add mouse_face_overlay.
29670 * w32term.c (notice_overwritten_cursor): Renamed from
29671 note_overwritten_text_cursor. Rewritten to take glyph widths into
29673 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
29674 (fast_find_string_pos): New function.
29675 (fast_find_position): Return the correct vpos. Add parameter
29676 STOP. In the final row, stop before glyphs having STOP as object.
29677 Don't consider glyphs that are not from a buffer.
29678 (fast_find_position) [0]: Add a presumably more correct version
29680 (expose_window_tree, expose_frame): Don't compute intersections here.
29681 (expose_window): Do it here instead.
29682 (expose_window_tree, expose_window, expose_line): Return 1 when
29683 overwriting mouse-face.
29684 (expose_window): If W is the window currently being updated, mark
29685 the frame garbaged.
29686 (expose_frame): If mouse-face was overwritten, redo it.
29687 (x_use_underline_position_properties): New variable.
29688 (syms_of_xterm): DEFVAR_BOOL it.
29689 (x_draw_glyph_string): Add comment to use it in future.
29690 (x_draw_glyph_string): Restore clipping after drawing box.
29691 Fix a computation of the underline position.
29692 (w32_get_glyph_string_clip_rect): Minor cleanup.
29693 (x_fill_stretch_glyph_string): Remove an assertion.
29694 (x_produce_glyphs): Don't convert multibyte characters
29695 to unibyte characters in unibyte buffers.
29696 (cursor_in_mouse_face_p): New function.
29697 (x_draw_stretch_glyph_string): Use it to choose a different GC
29698 when drawing a cursor within highlighted text. Don't draw
29699 background again if it has already been drawn.
29700 (x_draw_glyph_string_box): Don't draw a full-width
29701 box just because the glyph row's full_width_p flag is set.
29702 (x_draw_glyphs): Fix computation of rightmost x for
29704 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
29705 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
29706 change bottom shadow accordingly. Some cleanup.
29707 (x_update_window_end): Handle overwritten mouse face
29708 also for tool bar windows.
29709 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
29710 DRAW is DRAW_IMAGE_RAISED.
29711 (clear_mouse_face): Return 1 if text with mouse face was
29712 actually redrawn. Make the function static.
29713 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
29714 optimize away highlighting if we pass over that same overlay again.
29715 (note_mouse_highlight): Call mouse_face_overlay_overlaps
29716 to detect a case where we have to highlight a different region
29717 despite not having left the currently highlighted region.
29718 Set mouse_face_overlay in the x_display_info. Avoid changing the
29719 mouse pointer shape when show_mouse_face has already done it, or
29720 there is no need. Handle mouse-face and help-echo in strings.
29721 (glyph_rect): New function.
29722 (w32_mouse_position): Use it to raise the threshold for mouse
29723 movement event generation.
29724 (w32_initialize_display_info): Initialize the x_display_info's
29725 mouse_face_overlay.
29726 (w32_set_vertical_scroll_bar): Don't clear a zero height
29728 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
29729 a widget to zero height.
29731 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
29732 Protect unibyte strings created by replacing their multibyte
29733 equivalents in menu_items.
29734 (w32_menu_show): Don't overwrite an item's name with its key
29735 description in case the description is a multibyte string.
29736 (single_submenu): Some cleanup.
29738 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
29739 (postprocess_image): New function.
29740 (lookup_image): Call it for all image types except PostScript.
29741 (x_kill_gs_process): Call postprocess_image.
29742 (tiff_error_handler, tiff_warning_handler): New functions.
29743 (tiff_load): Install them as handlers.
29744 (x_kill_gs_process): Recognize if someone has cleared the image
29746 (valid_image_p): Protect better against invalid image
29747 specifications. Previous code could signal an error.
29748 (Fx_hide_tip, Fshow_tip): Doc fix.
29749 (Fv_max_tooltip_size): New variable.
29750 (syns_of_xfns): DEFVAR_LISP it.
29751 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
29752 window buffer to *tip* right after creating the frame. Set frame's
29753 window_width. Use a maximum tooltip size specified by
29754 Vx_max_tooltip_size, if that has valid contents.
29755 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
29756 Make sure the tooltip is completely visible.
29757 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
29758 (Fx_create_frame): Adjust the frame's height for presence
29759 of the tool bar before calling x_figure_window_size.
29760 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
29761 when the window gets smaller.
29762 (x_set_foreground_color): Set frame's cursor_pixel.
29763 (x_set_foreground_color, x_set_background_color): Cleaned up.
29764 (x_set_font): Handle case of x_new_fontset returning the same name
29765 as before, although there was a change in fontsets.
29767 2001-10-21 Miles Bader <miles@gnu.org>
29769 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
29770 (Flogxor): Add usage: string to doc string.
29771 * charset.c (Fstring): Likewise.
29772 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
29773 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
29775 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
29777 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
29779 * alloc.c: Reindent DEFUNs with doc: keywords.
29781 * abbrev.c (Finsert_abbrev_table_description): Reindent.
29783 * frame.c: Change doc-string comments to `new style' [w/`doc:'
29786 See ChangeLog.9 for earlier changes.
29788 ;; Local Variables:
29789 ;; coding: iso-2022-7bit
29790 ;; add-log-time-zone-rule: t
29793 Copyright (C) 2001, 2002, 2003, 2004, 2005,
29794 2006, 2007, 2008 Free Software Foundation, Inc.
29796 This file is part of GNU Emacs.
29798 GNU Emacs is free software; you can redistribute it and/or modify
29799 it under the terms of the GNU General Public License as published by
29800 the Free Software Foundation; either version 3, or (at your option)
29803 GNU Emacs is distributed in the hope that it will be useful,
29804 but WITHOUT ANY WARRANTY; without even the implied warranty of
29805 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29806 GNU General Public License for more details.
29808 You should have received a copy of the GNU General Public License
29809 along with GNU Emacs; see the file COPYING. If not, write to the
29810 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
29811 Boston, MA 02110-1301, USA.
29813 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4