[USE_ATSUI] (mac_draw_image_string_atsui) [MAC_OS_X]: Fix coordinate flipping.
[emacs.git] / src / ChangeLog
blob9282748191a0dfca3aa807bbe9d8db2047a836bc
1 2008-08-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3         * macterm.c [USE_CG_DRAWING] (mac_draw_cg_image):
4         Fix coordinate flipping.
5         [USE_ATSUI] (mac_draw_image_string_atsui) [MAC_OS_X]: Likewise.
6         [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Likewise.
8 2008-08-29  Eli Zaretskii  <eliz@gnu.org>
10         * fileio.c (Fexpand_file_name): Copy argument `name' into local
11         storage on all platforms, not just on DOS_NT.
13 2008-08-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15         * mac.c (mac_system_script_code): Use EMACS_INT for DEFVAR_INT variable.
16         [MAC_OSX] (mac_try_close_socket, sys_select) [SELECT_USE_CFSOCKET]:
17         Cast to pointer-size integer before casting to pointer.
19         * macmenu.c [HAVE_DIALOGS] (mac_dialog_show): Cast to pointer-size
20         integer before casting to pointer.
22         * macselect.c (Fmac_resume_apple_event): Distribute cast to pointer
23         over conditional branches.
25 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
27         * eval.c (Fcondition_case): Doc fix.
29 2008-08-26  Jason Rumney  <jasonr@gnu.org>
31         * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show): Ensure
32         mouse is not grabbed after menu is finished.
34 2008-08-26  Juanma Barranquero  <lekktu@gmail.com>
36         * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
38         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
40         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstring.
42         * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
43         (Fremove_text_properties): Fix typos in docstrings.
45         * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
47         * xdisp.c (syms_of_xdisp) <scroll-conservatively>:
48         Fix typo in docstring.
50         * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
51         Fix typos in docstrings.
53         * xselect.c (Fx_send_client_event): Doc fix.
55 2008-08-23  Jason Rumney  <jasonr@gnu.org>
57         * image.c (gif_format): Use :index, not :image.
59 2008-08-21  \e$,1 P\e(Bsmail D\e,Av\e(Bnmez  <ismail@namtrac.org>  (tiny change)
61         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
63 2008-08-20  Andreas Schwab  <schwab@suse.de>
65         * print.c (print_object): Fix off-by-one in last change.
67 2008-08-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
69         * macterm.c (x_load_font): Round average width to the nearest integer.
71         * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
72         Check if display is up to date before accessing current matrix.
74 2008-08-15  Chong Yidong  <cyd@stupidchicken.com>
76         * process.c (make_process): Initialize kill_without_query struct
77         member.
79 2008-08-10  Glenn Morris  <rgm@gnu.org>
81         Sync from trunk 2008-07-08:
82         * m/sparc.h: Define __sparc__ rather than sparc.  (Bug#507.)
83         * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
85         * unexsunos4.c: Use __sparc__ rather than sparc.
87 2008-08-08  Chong Yidong  <cyd@stupidchicken.com>
89         * xdisp.c (move_it_to): When stopping at a charpos, check if
90         that's a continued multi-char glyph; if so, advance to the actual
91         glyph.
92         (try_window): Check scroll margin on bottom window edge too.
94 2008-08-05  Chong Yidong  <cyd@stupidchicken.com>
96         * xdisp.c (redisplay_window): Don't enforce scroll-margin when
97         forcing a window start.
99         * fileio.c (Vauto_save_list_file_name): Move here from file.el.
100         (auto_save_1): Update modtime when auto-save-list-file-name is on.
102 2008-08-03  Andreas Schwab  <schwab@suse.de>
104         * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
105         (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
107 2008-08-02  Chong Yidong  <cyd@stupidchicken.com>
109         * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
110         Don't use uninitialized pointer variable when using getrlimit.
112 2008-08-02  Eli Zaretskii  <eliz@gnu.org>
114         * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
115         multibyte string.
117 2008-08-01  Jason Rumney  <jasonr@gnu.org>
119         * w32term.c (x_draw_composite_glyph_string_foreground): Force
120         use of Unicode output.
122 2008-07-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
124         * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
125         open menu.
127         * gtkutil.c (menu_nav_ended): Remove.
128         (create_menus): Remove signal connect for menu_nav_ended.
129         (create_menus): Connect selection-done to menu_nav_ended.
131 2008-07-26  Eli Zaretskii  <eliz@gnu.org>
133         * term.c (syms_of_term): Fix last change.
135 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
137         * term.c (syms_of_term): Initialize default_orig_pair,
138         default_set_foreground, and default_set_background.
140         * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
141         clash (bug#86).
142         (getloadavg): Callers changed.
144 2008-07-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
146         * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
148 2008-07-21  Ami Fischman  <ami@fischman.org>  (tiny change)
150         * print.c (print_object): Check print_depth before searching for
151         circularities.
153 2008-07-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
155         * macterm.h (kCGBitmapByteOrder32Host): New define for
156         non-universal SDKs.
158         * image.c (mac_create_cg_image_from_image, image_load_image_io)
159         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
161         * macterm.c (XDrawLine, XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]:
162         Remove conditionals for kCGBitmapByteOrder32Host.
164 2008-07-18  David Robinow  <drobinow@gmail.com>  (tiny change)
166         * w32inevt.c: Include dispextern.h.  Don't declare change_frame_size
167         here.
168         (maybe_generate_resize_event, resize_event): Call change_frame_size
169         with SAFE arg.
171 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
173         * gtkutil.c: Include <config.h> instead of "config.h".
175         * lisp.h (Foverlay_buffer): Add EXFUN.
177         * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
178         child process to complete child_setup.  Undo 2005-09-21 change.
180         * s/darwin.h: Mention setsid after vfork.
182 2008-07-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
184         * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
185         Depend on macgui.h.
187         * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
188         gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
190         * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
191         and f19.
192         [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
194         * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
195         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
196         Remove enumerators.
198         * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
199         Check if FACE_FROM_ID returns NULL.
201 2008-07-07  Chong Yidong  <cyd@stupidchicken.com>
203         * image.c (png_load): Use correct bit-depth for setting background
204         color.
206 2008-05-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
208         * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
209         [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
210         Fix last change.
212 2008-05-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
214         * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
215         to Gtk+ menus.
217 2008-05-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
219         * emacs.c (main_thread): Conditionalize on
220         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
221         (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
223         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
224         (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
225         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
227 2008-05-10  Eli Zaretskii  <eliz@gnu.org>
229         * dired.c (Fdirectory_files_and_attributes, Ffile_attributes):
230         Mention w32-get-true-file-attributes in the doc strings.
232         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
234         * w32.c (stat): Fix test of Vw32_get_true_file_attributes against
235         the value returned by GetDriveType.
237 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
239         * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
240         Create bitmap context in native byte order.
242         * macterm.c (XDrawLine, XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]:
243         Create bitmap context in native byte order.
245 2008-05-03  Eli Zaretskii  <eliz@gnu.org>
247         * dired.c (Ffile_attributes): Don't allow the device number become
248         negative.
250 2008-05-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
252         * config.in: Regenerate.
254         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
255         New definitions for Image I/O support.
256         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
257         (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
258         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
259         (mac_data_provider_release_data, image_load_image_io)
260         [USE_MAC_IMAGE_IO]: New functions.
261         (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
262         (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
263         (init_image_func_pointer) [MAC_OSX]: Remove function.
264         (image_load_quartz2d) [MAC_OSX]: Check availability of
265         CGImageCreateWithPNGDataProvider at compile time.
266         Use lowercase `false' for boolean constant.
267         (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
268         Use image_load_image_io.
269         (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
270         Don't check MyCGImageCreateWithPNGDataProvider.
271         (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
272         Don't call init_image_func_pointer.
274         * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
276         * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
277         Make variable non-static.
278         (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
279         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
281         * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
282         (RED_FROM_ULONG): Mask off higher bits.
283         (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
285         * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
286         Include AvailabilityMacros.h.
287         (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
288         (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
290 2008-04-25  Dennis Gilmore  <ausil@fedoraproject.org>  (tiny change)
292         * m/sparc.h: Additional redefinitions for GNU/Linux.
294 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
296         * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
297         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
298         (Qmouse_drag_overlay) [MAC_OSX]: New variable.
299         (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
300         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
301         (mac_ax_selected_text_range) [MAC_OSX]: New functions.
302         (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
303         Likewise.
305         * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
306         (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
307         (mac_ax_number_of_characters): Add externs.
308         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
309         [USE_MAC_TSM]: Likewise.
310         (mac_handle_text_input_event) [MAC_OSX]:
311         Handle kEventTextInputOffsetToPos for no active input area case.
312         Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
313         (mac_handle_document_access_event)
314         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
315         (install_application_handler) [MAC_OSX]: Register handlers for
316         kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
317         (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
318         Register mac_handle_document_access_event.
320         * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
321         Make functions non-static.
323 2008-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
325         * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
326         Make function non-static.
327         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
328         Remove function.
329         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
330         Move to mactoolbox.c.
331         (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
333         * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
334         (mac_rect_make): New macro.
336         * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
337         instead of float.
338         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
339         (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
340         (XSetBackground) [USE_CG_DRAWING]: Likewise.
341         (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
342         CGRectMake.
343         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
344         (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
345         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
346         (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
347         instead of WindowRef in argument type.
348         (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
349         (mac_invert_rectangle): Use CGContextSetBlendMode if available.
350         (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
351         instead of DISPLAY.  All uses changed.
352         (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
353         (x_calc_absolute_position): Simplify so as not to use
354         FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
355         (Vmac_ts_script_language_on_focus, saved_ts_script_language_on_focus)
356         [USE_MAC_TSM]: Make variables static.
357         (mac_store_event_ref_as_apple_event) [TARGET_API_MAC_CARBON]:
358         Don't use create_apple_event_from_event_ref.
359         Use mac_event_parameters_to_lisp.
361         * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
362         instead of WindowRef in argument type.
363         (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
364         [TARGET_API_MAC_CARBON]: Remove externs.
365         (create_apple_event, mac_event_parameters_to_lisp)
366         [TARGET_API_MAC_CARBON]: Add externs.
368         * mactoolbox.c (Vmac_ts_script_language_on_focus)
369         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
370         (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
371         is clicked.
372         (x_activate_menubar): Remove extern for saved_menu_event_location.
373         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
374         Move from mac.c.
376 2008-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
378         * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
379         [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
381 2008-04-11  Katsumi Yamaoka  <yamaoka@jpl.org>
383         * puresize.h (BASE_PURESIZE): Increase to 1140000.
385 2008-04-10  Michael Albinus  <michael.albinus@gmx.de>
387         * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
388         only after check for file name handler functions. Signal, when
389         native functionality is not supported.
390         (syms_of_fileio): Declare it unconditionally.
392 2008-04-10  Jason Rumney  <jasonr@gnu.org>
394         * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
395         attributes only for local files.
397         * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
398         default to Qlocal.
400 2008-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
402         * Makefile.in (MAC_OBJ): Add mactoolbox.o.
403         (mactoolbox.o): New target.
405         * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
406         Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
408         * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
409         Use mac_set_frame_window_background instead of XSetWindowBackground.
410         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
411         Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
412         (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
413         instead of SetWindowTitleWithCFString.
414         (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
415         Move function to mactoolbox.c.
416         (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
417         Use mac_set_window_modified instead of SetWindowModified.
418         Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
419         (mac_window, x_create_tip_frame): Use mac_create_frame_window.
420         (Fx_focus_frame): Use mac_front_non_floating_window instead of
421         FrontNonFloatingWindow.  Use mac_activate_window instead of
422         ActivateWindow.  Use mac_active_non_floating_window instead of
423         ActiveNonFloatingWindow.
424         (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
425         Use mac_show_hourglass and mac_hide_hourglass.
426         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
427         instead of GetGlobalMouse.
428         (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
429         instead of MoveWindow/SizeWindow/ShowWindow, respectively.
430         Use mac_bring_window_to_front instead of BringToFront.
431         (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
432         mactoolbox.c.
433         (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
434         mac_file_dialog in mactoolbox.c.  Use mac_file_dialog.
435         (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
436         mactoolbox.c.
438         * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
439         (XtPointer): Move typedef from macmenu.c.
440         (enum button_type): Move enum from macmenu.c.
441         (widget_value): Move typedef from macmenu.c.
442         (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
443         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
444         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
445         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
446         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
447         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
448         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
449         (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
450         (Selection): Move typedef from macselect.c.
451         (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
452         macterm.c.
453         (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
454         (mac_is_window_collapsed, mac_bring_window_to_front)
455         (mac_send_window_behind, mac_hide_window, mac_show_window)
456         (mac_collapse_window, mac_front_non_floating_window)
457         (mac_active_non_floating_window, mac_activate_window)
458         (mac_move_window_structure, mac_move_window, mac_size_window)
459         (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
461         * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
462         (enum mac_menu_kind): Move enum to mactoolbox.c.
463         (min_menu_id): Move variable to mactoolbox.c.
464         (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
465         (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
466         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
467         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
468         [TARGET_API_MAC_CARBON]: Likewise.
469         (XtPointer): Move typedef to macgui.h.
470         (enum button_type): Move enum to macgui.h.
471         (widget_value): Move typedef to macgui.h.
472         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
473         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
474         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
475         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
476         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
477         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
478         (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
479         (popup_activated_flag): Make variable non-static.
480         (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
481         (add_menu_item, fill_menu, dispose_menus):
482         Move functions to mactoolbox.c.
483         (restore_show_help_function, menu_target_item_handler)
484         (install_menu_target_item_handler, mac_handle_dialog_event)
485         (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
486         [TARGET_API_MAC_CARBON]: Likewise.
487         (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
488         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
489         (find_and_call_menu_selection, name_is_separator): Make function
490         non-static.
491         (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
492         to mactoolbox.c.
493         (set_frame_menubar): Don't call install_menu_quit_handler.
494         (menu_item_selection): New variable.
495         (mac_menu_show): Use create_and_show_popup_menu.
496         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
497         selection but set variable menu_item_selection.  All uses changed.
498         (mac_fill_menubar): Rename from fill_menubar.  All uses changed.
499         Call install_menu_quit_handler.  Move to mactoolbox.c.
501         * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
502         (Selection): Move typedef to macgui.h.
503         (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
504         (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
505         Make variables non-static.
506         (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
507         (mac_handle_apple_event, cleanup_all_suspended_apple_events):
508         Make functions non-static.
509         (Vmac_service_selection) [MAC_OSX]: Likewise.
510         (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
511         (mac_valid_selection_target_p, mac_clear_selection)
512         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
513         (mac_put_selection_value, mac_selection_has_target_p)
514         (mac_get_selection_value, mac_get_selection_target_list)
515         (init_apple_event_handler, install_drag_handler, remove_drag_handler):
516         Move functions to mactoolbox.c.
517         (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
518         Likewise.
519         (copy_scrap_flavor_data, mac_handle_service_event)
520         (install_service_handler) [MAC_OSX]: Likewise.
521         (syms_of_macselect) <Vmac_dnd_known_types>:
522         Use mac_dnd_default_known_types.
524         * macterm.c (mac_end_clip): Add argument F.  All uses changed.
525         (mac_begin_cg_clip, mac_end_cg_clip): Allow null GC.
526         (mac_invert_rectangle, mac_compute_glyph_string_overhangs)
527         (mac_load_query_font): Use them instead of SetPortWindowPort.
528         (mac_clear_window) [!USE_CG_DRAWING]: Likewise.
529         (mac_draw_image_string_cg): Call CGContextSetTextMatrix.
530         (x_update_begin, x_update_end): Call mac_update_begin and
531         mac_update_end.
532         (XTframe_up_to_date): Call mac_frame_up_to_date.
533         (XTring_bell): Use mac_alert_sound_play.
534         (note_mouse_movement): Use mac_get_frame_bounds.
535         (XTmouse_position): Use mac_get_frame_mouse.
536         (x_scroll_bar_create): Use mac_create_scroll_bar.
537         (x_scroll_bar_remove): Use mac_dispose_scroll_bar.
538         (XTset_vertical_scroll_bar): Use mac_set_scroll_bar_bounds and
539         mac_redraw_scroll_bar.
540         (mac_move_window_with_gravity) [USE_MAC_TOOLBAR]: Use mac_move_window
541         instead of MoveWindow.
542         (mac_handle_size_change) [TARGET_API_MAC_CARBON]:
543         Use mac_reposition_hourglass.
544         (x_set_offset): Use mac_move_window_structure instead of
545         MoveWindowStructure.
546         (x_set_window_size): Use mac_size_window instead of SizeWindow.
547         (x_set_mouse_pixel_position) [MAC_OSX]:
548         Use mac_convert_frame_point_to_global.
549         (x_raise_frame): Use mac_bring_window_to_front instead of BringToFront.
550         (x_lower_frame): Use mac_send_window_behind instead of SendBehind.
551         (mac_handle_visibility_change): Use Window instead of WindowRef.
552         Use mac_is_window_visible/mac_is_window_collapsed instead of
553         IsWindowVisible/IsWindowCollapsed, respectively.
554         Use mac_collapse_window/mac_show_window instead of
555         CollapseWindow/ShowWindow, respectively.
556         (x_make_frame_invisible): Use mac_hide_window instead of HideWindow.
557         (x_iconify_frame): Use mac_show_window instead of ShowWindow.
558         Use mac_collapse_window instead of CollapseWindow.
559         (x_free_frame_resources): Use Window instead of WindowRef.
560         Use mac_dispose_frame_window.  Clean up focus-related variables before
561         calling mac_dispose_frame_window.
562         (do_zoom_window) [MAC_OS8]: Use mac_clear_area instead of
563         mac_clear_window.
564         (mac_initialize): Use mac_toolbox_initialize instead of
565         initializing any_help_event_p and calling init_apple_event_handler,
566         init_tsm, and init_menu_bar.
567         (any_help_event_p, last_window, save_port_clip_region)
568         (read_socket_inev, saved_menu_event_location): Move variables to
569         mactoolbox.c.
570         (last_scroll_bar_part, scroll_bar_timer)
571         (scroll_bar_timer_event_posted_p) [USE_TOOLKIT_SCROLL_BARS]: Likewise.
572         (font_panel_shown_p) [USE_MAC_FONT_PANEL]: Likewise.
573         (tsm_document_id) [USE_MAC_TSM]: Likewise.
574         (mouse_region) [!TARGET_API_MAC_CARBON]: Likewise.
575         (mac_window_to_frame, DEFAULT_NUM_COLS, MIN_DOC_SIZE, MAX_DOC_SIZE):
576         Move defines to mactoolbox.c.
577         (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: Likewise.
578         (SCROLL_BAR_FIRST_DELAY, SCROLL_BAR_CONTINUOUS_DELAY)
579         [USE_TOOLKIT_SCROLL_BARS]: Likewise.
580         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
581         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
582         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID)
583         [USE_MAC_TOOLBAR]: Likewise.
584         (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
585         (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID): Move defines to macgui.h
586         (x_flush, is_emacs_window, mac_begin_clip, mac_end_clip)
587         (x_scroll_bar_handle_click, x_scroll_bar_report_motion)
588         (mac_get_window_bounds, do_window_update, is_emacs_window)
589         (do_grow_window, do_zoom_window, install_window_handler)
590         (remove_window_handler, XTread_socket, init_menu_bar): Move functions
591         to mactoolbox.c.
592         (mac_flush_display_optional, mac_begin_cg_clip, mac_end_cg_clip)
593         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
594         (mac_scroll_area, mac_event_to_emacs_modifiers, mac_get_mouse_btn)
595         (mac_convert_event_ref, mac_get_ideal_size, mac_store_drag_event)
596         (mac_handle_window_event, mac_handle_keyboard_event)
597         (mac_handle_command_event, mac_handle_mouse_event)
598         (install_application_handler, mac_post_mouse_moved_event)
599         [TARGET_API_MAC_CARBON]: Likewise.
600         (scroll_bar_timer_callback, install_scroll_bar_timer)
601         (set_scroll_bar_timer, control_part_code_to_scroll_bar_part)
602         (construct_scroll_bar_click, get_control_part_bounds)
603         (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
604         (x_scroll_bar_handle_drag, x_set_toolkit_scroll_bar_thumb)
605         [USE_TOOLKIT_SCROLL_BARS]: Likewise.
606         (x_scroll_bar_set_handle, x_scroll_bar_note_movement)
607         [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
608         (mac_handle_toolbar_event, mac_create_frame_tool_bar)
609         (update_frame_tool_bar, free_frame_tool_bar)
610         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
611         [USE_MAC_TOOLBAR]: Likewise.
612         (mac_font_panel_visible_p, mac_handle_font_event)
613         (mac_show_hide_font_panel, mac_set_font_info_for_selection)
614         [USE_MAC_FONT_PANEL]: Likewise.
615         (mac_handle_text_input_event, init_tsm) [USE_MAC_TSM]: Likewise.
616         (do_apple_menu, mac_wait_next_event) [!TARGET_API_MAC_CARBON]: Likewise.
617         (mac_store_service_event) [MAC_OSX]: Likewise.
618         (last_mouse_glyph, last_mouse_glyph_frame, last_mouse_scroll_bar)
619         (last_mouse_movement_time, input_signal_count)
620         (mac_screen_config_changed, Qhi_command, Qtoolbar_switch_mode)
621         (Qservice, Qpaste, Qperform, keycode_to_xkeysym_table): Make variables
622         non-static.
623         (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
624         (Qtext_input, Vmac_ts_active_input_overlay, Qupdate_active_input_area)
625         (Qunicode_for_key_event, Vmac_ts_script_language_on_focus)
626         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Likewise.
627         (mac_focus_changed, note_mouse_movement, mac_focus_frame)
628         (mac_handle_origin_change, mac_handle_size_change)
629         (mac_handle_visibility_change, mac_to_emacs_modifiers)
630         (mac_mapped_modifiers, mac_get_emulated_btn, do_keystroke)
631         (mac_get_screen_info): Make functions non-static.
632         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
633         (mac_image_spec_to_cg_image) [USE_MAC_TOOLBAR]: Likewise.
634         (mac_store_event_ref_as_apple_event) [TARGET_API_MAC_CARBON]: Likewise.
635         (Qwindow, mac_ready_for_apple_events): Move externs to mactoolbox.c.
636         (Qbefore_string) [USE_MAC_TSM]: Likewise.
637         (mac_toolbox_initialize, x_scroll_bar_report_motion, XTread_socket):
638         Add externs.
639         (mac_flush_display_optional) [USE_CG_DRAWING]: Likewise.
640         (install_drag_handler, remove_drag_handler, install_service_handler)
641         (install_menu_target_item_handler): Remove externs.
642         (XSetWindowBackground): Rename to mac_set_frame_window_background.
643         Take frame as argument instead of display and window.
644         Move to mactoolbox.c.
645         (mac_restore_keyboard_input_source, mac_save_keyboard_input_source)
646         [USE_MAC_TSM]: New functions created from mac_tsm_resume and
647         mac_tsm_suspend, respectively.
648         (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: Use them.
649         Move to mactoolbox.c.
651         * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
652         Move to mactoolbox.c.
653         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
654         (Fx_selection_owner_p): Add EXFUN.
655         (install_window_handler, remove_window_handler, XSetWindowBackground):
656         Remove externs.
657         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
658         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
659         (x_raise_frame, x_lower_frame, mac_alert_sound_play)
660         (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
661         (mac_convert_frame_point_to_global, mac_set_frame_window_background)
662         (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
663         (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
664         (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
665         (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
666         (create_and_show_popup_menu, mac_get_selection_from_symbol)
667         (mac_valid_selection_target_p, mac_clear_selection)
668         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
669         (mac_put_selection_value, mac_selection_has_target_p)
670         (mac_get_selection_value, mac_get_selection_target_list): Add externs.
671         (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
672         (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
673         (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
674         (mac_run_loop_run_once) [MAC_OSX]: Likewise.
675         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
676         (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
677         (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
678         (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
680         * mactoolbox.c: New file.
682 2008-04-05  Chong Yidong  <cyd@stupidchicken.com>
684         * search.c (compile_pattern_1): Treat non-nil and non-string of
685         search-spaces-regexp as nil.
687 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
689         * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
691 2008-03-31  Chong Yidong  <cyd@stupidchicken.com>
693         * xdisp.c (next_overlay_string): Don't set
694         overlay_strings_at_end_processed_p if we're currently reading from
695         a display string.
697         * fileio.c (auto_save_error_occurred): New var.
698         (auto_save_error): Set it.
699         (Fdo_auto_save): Don't overwrite the error message if an auto-save
700         error occurred.
702 2008-03-31  Jason Rumney  <jasonr@gnu.org>
704         * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
706 2008-03-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
708         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
709         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
711         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
712         [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
713         Use kCFAbsoluteTimeIntervalSince1970.
714         (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
715         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
716         Remove macros.
717         [MAC_OSX] (socket_callback): Do nothing.
718         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
719         ReceiveNextEvent.
720         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
721         socket_callback.
722         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
724         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
725         (mac_get_window_bounds): Move extern to macterm.h.
726         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
727         (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
728         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
730         * macgui.h: Replace WindowPtr with WindowRef.
731         (USE_MAC_TOOLBAR): New define.
732         (USE_CG_DRAWING): Don't require USE_ATSUI.
734         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
735         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
736         Replace ControlHandle with ControlRef.
737         [!TARGET_API_MAC_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
738         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
739         [TARGET_API_MAC_CARBON] (menu_target_item_handler): Don't call next
740         handler.  Return immediately unless popup is activated.
741         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
742         Remove argument.  Install handler to application.
743         (set_frame_menubar): Don't change deep_p.
744         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
745         FRAME_OUTER_TO_INNER_DIFF_Y.
746         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
747         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
748         [HAVE_DIALOGS]: New macros.
749         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
750         Use them.
751         (fill_menu) [TARGET_API_MAC_CARBON]: Use SetMenuItemHierarchicalMenu.
752         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
753         (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]: Put special
754         treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p in #if 0
755         as it is not compatible with y-or-n-p-with-timeout.
756         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
757         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
758         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
759         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
760         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
761         Run timers during dialog popup.
762         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
763         (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: New variable.
764         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
765         event loop should be quit.
766         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Quit dialog event loop
767         if quit_dialog_event_loop is set.
769         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
770         [MAC_OSX] (install_service_handler): Rename from init_service_handler.
771         All callers changed.  Return OSStatus value.
772         (Selection): New typedef.  Use instead of ScrapRef.
773         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
774         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
775         (mac_clear_selection): Rename from clear_scrap.
776         (get_flavor_type_from_symbol): New argument SEL and subsume function of
777         scrap_has_target_type.  All uses changed.
778         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
779         (mac_selection_has_target_p): New functions.
780         (mac_put_selection_value): Rename from put_scrap_string.
781         (mac_get_selection_value): Rename from get_scrap_string.
782         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
783         (put_scrap_private_timestamp, scrap_has_target_type)
784         (get_scrap_private_timestamp): Remove functions.
785         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
786         (x_own_selection, x_get_local_selection):
787         Use mac_valid_selection_value_p.
788         (x_own_selection): Don't use put_scrap_private_timestamp.
789         Record OWNERSHIP-INFO into Vselection_alist instead.
790         (x_get_local_selection): Don't check type if request is local.
791         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
792         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
794         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
795         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
796         Replace ControlHandle with ControlRef.
797         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
798         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
799         (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort. All callers
800         changed so as not to call SetPortWindowPort.
801         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
802         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
803         mac_draw_string_common.
804         (mac_draw_image_string_qd): Likewise.
805         (mac_draw_string_common): Use them.  Add INLINE.
806         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
807         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
808         GetGlobalMouse.
809         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
810         and FRAME_OUTER_TO_INNER_DIFF_Y.
811         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
812         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
813         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
814         repositioning window to mac_handle_window_event.
815         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
816         saving window location to mac_handle_window_event.
817         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
818         (install_menu_target_item_handler): Remove argument in extern.
819         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
820         Also accept command events.
821         (do_keystroke): New function created from XTread_socket.
822         (init_command_handler): Remove functions.
823         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
824         and save window location by kEventWindowShowing and kEventWindowHiding
825         handlers here.  Don't call next handler for window state change and
826         focus events.
827         (mac_handle_keyboard_event) [TARGET_API_MAC_CARBON]: New function.
828         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
829         kEventWindowShowing and kEventWindowHiding events.  Move installation
830         of mouse, font, text input and menu target item handlers to
831         install_application_handler.
832         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
833         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
834         New function.
835         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
836         Register it.
837         (XTread_socket) [TARGET_API_MAC_CARBON]:
838         Consolidate SendEventToEventTarget calls.
839         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
840         Move keyboard handler to mac_handle_keyboard_event.
841         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
842         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
843         init_command_handler.  Call install_application_handler.
844         (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background to scroll
845         bar gap.
846         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
847         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
848         scroll bars on frame edge.  Check fringe background extension.
849         Don't clear extended fringe background area.
850         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
851         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
852         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
853         [USE_MAC_TOOLBAR]: New macros.
854         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
855         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
856         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
857         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
858         [USE_MAC_TOOLBAR]: New functions.
859         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
860         manually if previous repositioning has failed.
861         (mac_handle_keyboard_event): Use precomputed event kind.
862         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
863         as tool bar item click.  Handle mouse movement over tool bar items.
864         (frame_highlight, frame_unhighlight): Don't call
865         ActivateControl/DeactivateControl here.
866         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
867         frame-notice-user-settings is non-nil.
868         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
869         for kEventParamFMFontStyle.
870         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
871         mac_pass_command_to_system and mac_pass_control_to_system here.
872         (XTread_socket): Call ActivateControl/DeactivateControl here.
873         (XTread_socket) [TARGET_API_MAC_CARBON]:
874         Check mac_pass_command_to_system and mac_pass_control_to_system here.
875         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Don't use invisible
876         frame as parent window for repositioning.
878         * macterm.h (struct scroll_bar): Rename member control_handle_low
879         and control_handle_high to control_ref_low and control_ref_high.
880         All uses changed.
881         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
882         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
883         respectively.  All uses changed.
884         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
885         (install_window_handler, remove_window_handler): Replace WindowPtr
886         with WindowRef in externs.
887         (mac_get_window_bounds): Move extern from macfns.c.
888         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
889         (struct mac_output) [USE_MAC_TOOLBAR]: New member toolbar_win_gravity.
890         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
891         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
892         Add externs.
894         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
895         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
897 2008-03-28  Jason Rumney  <jasonr@gnu.org>
899         * image.c (pbm_load): Allow color values up to 65535.
900         Throw an error if max_color_idx is outside the supported range.
901         Report an error when image size is invalid.
902         Read two bytes at a time when raw images have max_color_idx above 255.
904 2008-03-26  Alexandre Oliva  <aoliva@redhat.com>  (tiny change)
906         * regex.c (EXTEND_BUFFER): Change order of pointer addition
907         operations, to avoid having the difference between pointers
908         overflow.
910 2008-03-26  Eli Zaretskii  <eliz@gnu.org>
912         * w32.c (readdir): If FindFirstFile/FindNextFile return in
913         cFileName a file name that includes `?' characters, use the 8+3
914         alias in cAlternateFileName instead.
916 2008-03-26  Chong Yidong  <cyd@stupidchicken.com>
918         * Version 22.2 released.
920 2008-03-10  Kenichi Handa  <handa@ni.aist.go.jp>
922         * fileio.c (Finsert_file_contents): Don't make CCL program to
923         append "CCL: Quitted" when the decoding is quitted, but just
924         signal `quit'.
926         * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
927         append "CCL: Quitted" when the CCL program is quitted.
928         (setup_ccl_program): Initialize ccl->quit_silently to zero.
930         * ccl.h (struct ccl_program): New member quit_silently.
932 2008-03-08  Andreas Schwab  <schwab@suse.de>
934         * process.h (struct Lisp_Process): Declare bit field as unsigned.
936 2008-03-07  Stefan Monnier  <monnier@iro.umontreal.ca>
938         * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
939         size of resulting string.
941 2008-03-05  Jason Rumney  <jasonr@gnu.org>
943         * dispnew.c (adjust_glyph_matrix): Initialize window_height.
945 2008-03-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
947         * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
948         Don't pretend as if characters with display property haven't been
949         consumed for string-replacing-string case.
951 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
953         * xdisp.c (get_overlay_strings_1): Add missing argument type.
955 2008-02-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
957         * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
959 2008-02-27  Chong Yidong  <cyd@stupidchicken.com>
961         * process.c (wait_reading_process_output): Check for window
962         changes caused by timers.
963         Suggested by Johan Bockg\e,Ae\e(Brd.
965 2008-02-26  Chong Yidong  <cyd@stupidchicken.com>
967         * editfns.c (Fformat): Doc fix.
969 2008-02-25  Chong Yidong  <cyd@stupidchicken.com>
971         * keyboard.c (command_loop_1): Revert 2006-10-09 change.
973 2008-02-24  Jason Rumney  <jasonr@gnu.org>
975         * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
977 2008-02-24  Ulrich Neumerkel  <ulrich@complang.tuwien.ac.at>  (tiny change)
979         * xterm.c (x_set_offset): Don't change the gravity if
980         CHANGE_GRAVITY is -1.
982 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
984         * intervals.h (INT_LISPLIKE): Remove.  It may misfire.
985         (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
987 2008-02-18  Jason Rumney  <jasonr@gnu.org>
989         * w32fns.c (Fw32_shell_execute): Encode parameters.
991 2008-02-15  Jason Rumney  <jasonr@gnu.org>
993         * w32term.c (x_draw_glyph_string_background): Clear the background
994         manually when cleartype is in use.
995         (x_draw_glyph_string_foreground): Draw text transparently when
996         cleartype is in use.
998 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
1000         * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
1002 2008-02-05  Jason Rumney  <jasonr@gnu.org>
1004         * w32term.c (w32_read_socket) <WM_CHAR>: Use locale-coding-system
1005         instead of using mule-unicode-* charsets directly.
1007 2008-02-05  Juanma Barranquero  <lekktu@gmail.com>
1009         * unexec.c (make_hdr):
1010         * unexhp9k800.c (read_header): Replace `legal' with `valid'.
1012 2008-02-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1014         * macterm.c [MAC_OSX] (fn_keycode_to_keycode_table): Add more entries
1015         that ignore kEventKeyModifierFnMask.
1016         (XTread_socket) [MAC_OSX]: Move code for ignoring
1017         kEventKeyModifierFnMask for some keys ...
1018         (mac_mapped_modifiers) [MAC_OSX]: ... to here.  Add argument KEY_CODE.
1019         All callers changed.
1020         (mac_to_emacs_modifiers): New argument UNMAPPED_MODS.
1021         All callers changed.
1022         (mac_quit_char_key_p, XTread_socket): Get Emacs modifiers from
1023         mapped modifiers together with original ones.
1025 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
1027         * ccl.c (CCL_WRITE_CHAR): Fix overflow checking.
1028         (CCL_WRITE_MULTIBYTE_CHAR): Likewise.
1030 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
1032         * keyboard.c (make_ctrl_char): If C is a multibyte character, just
1033         return it ORed with ctrl_modifier.
1035 2008-01-26  Thien-Thi Nguyen  <ttn@gnuvola.org>
1037         * fns.c (Fclrhash): Return TABLE.
1039 2008-01-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1041         * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
1042         (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
1043         is set even without positional changes.
1044         (x_scroll_bar_clear): Set bar->redraw_needed_p.
1046         * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
1048 2008-01-19  Kenichi Handa  <handa@m17n.org>
1050         * coding.c (detect_coding_iso2022): New arg latin_extra_code_state.
1051         Allow Latin extra codes only when *latin_extra_code_state is nonzero.
1052         (detect_coding_mask): If there is a NULL byte, detect the encoding
1053         as UTF-16 or binary.  If Latin extra codes exist, detect the encoding
1054         as ISO-2022 only when no other proper encoding is found.
1056 2008-01-17  Jason Rumney  <jasonr@gnu.org>
1058         * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
1060         * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
1061         the unicode range available in MULE by locale-coding-system.
1062         Improve dbcs lead byte detection.  Set event timestamp and modifiers
1063         earlier.
1065 2008-01-17  Glenn Morris  <rgm@gnu.org>
1067         * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
1068         to HAVE_X86_64_LIB64_DIR.
1070 2008-01-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1072         * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
1073         [MAC_OSX] (init_mac_osx_environment): Initialize it.
1074         [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
1075         when used on child processes.
1077 2008-01-10  Chong Yidong  <cyd@stupidchicken.com>
1079         * process.c (wait_reading_process_output): Check for window
1080         changes caused by timers.
1082 2008-01-08  Glenn Morris  <rgm@gnu.org>
1084         * emacs.c (main): Set copyright year to 2008.
1086 2008-01-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1088         * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
1089         #ifdef MAC_OS.
1091 2008-01-04  Richard Stallman  <rms@gnu.org>
1093         * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
1095 2007-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1097         * process.c (make_process): Initialize pty_flag to Qnil instead of 0
1098         as it is not a bit field on Emacs 22 yet.
1100         * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
1102 2007-12-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1104         * macmenu.c (fill_menubar) [MAC_OSX]: Add workaround for Mac OS X 10.5
1105         about not changing Help menu title.
1107 2007-12-22  Eli Zaretskii  <eliz@gnu.org>
1109         * callint.c (syms_of_callint) <command-history>: Add reference to
1110         history-length in the doc string.
1112 2007-12-17  Jason Rumney  <jasonr@gnu.org>
1114         * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
1115         before passing as wParam.
1117 2007-12-14  Jason Rumney  <jasonr@gnu.org>
1119         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
1120         for characters above 127.
1122 2007-12-13  Jason Rumney  <jasonr@gnu.org>
1124         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
1125         before dereferencing array.
1126         (lookup_vk_code): Remove zero comparison.
1128 2007-12-02  Magnus Henoch  <mange@freemail.hu>
1130         * process.c (make_process): Initialize pty_flag to 0.
1132 2007-12-02  Jason Rumney  <jasonr@gnu.org>
1134         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
1135         specified XBMs.
1137 2007-12-01  Richard Stallman  <rms@gnu.org>
1139         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
1141 2007-11-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1143         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
1144         New variable.
1145         (mac_try_close_socket) [MAC_OSX]: New function.
1146         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
1147         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
1149         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
1150         Use mac_try_close_socket.
1152 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
1154         * s/gnu-kfreebsd.h: New file.
1156 2007-11-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1158         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
1159         reloc_base.
1160         (copy_dysymtab): Compute relocation base here.
1161         (rebase_reloc_address) [__ppc64__]: New function.
1162         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
1163         changed.
1165 2007-11-26  Jason Rumney  <jasonr@gnu.org>
1167         * w32proc.c (sys_spawnve): Quote args with wildcards.
1169 2007-11-26  Andreas Schwab  <schwab@suse.de>
1171         * process.c (list_processes_1): Fix indentation level of the
1172         command column.
1174 2007-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1176         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
1177         __objc_* sections.
1178         (unrelocate) [_LP64]: Set relocation base to address of data segment.
1180 2007-11-23  Andreas Schwab  <schwab@suse.de>
1182         * editfns.c (Fformat): Handle %c specially since it requires the
1183         argument to be of type int.
1185 2007-11-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1187         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
1188         file for image is nil.
1190 2007-11-19  Jason Rumney  <jasonr@gnu.org>
1192         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): CreateFileMapping
1193         returns NULL on failure.
1195 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
1197         * search.c (Fset_match_data): Remove the `evaporate' feature.
1198         (unwind_set_match_data): Don't use the `evaporate' feature.
1200 2007-11-15  Andreas Schwab  <schwab@suse.de>
1202         * editfns.c (Fformat): Correctly format EMACS_INT values.
1203         Also take precision into account when formatting an integer.
1205 2007-11-15  Juanma Barranquero  <lekktu@gmail.com>
1207         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
1208         (Fx_display_pixel_height, Fx_display_planes)
1209         (Fx_display_color_cells, Fx_server_max_request_size)
1210         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
1211         (Fx_display_visual_class, Fx_display_save_under):
1212         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
1213         (Fx_display_pixel_height, Fx_display_planes)
1214         (Fx_display_color_cells, Fx_server_max_request_size)
1215         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1216         (Fx_display_mm_height, Fx_display_mm_width)
1217         (Fx_display_backing_store, Fx_display_visual_class)
1218         (Fw32_select_font, Fx_display_save_under):
1219         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
1220         (Fx_display_pixel_height, Fx_display_planes)
1221         (Fx_display_color_cells, Fx_server_max_request_size)
1222         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
1223         (Fx_display_save_under): Fix typos in docstrings.
1225 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
1227         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
1228         corresponding to deleted entries; they are an implementation detail.
1229         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
1230         Remove variables.
1231         (Fw32_define_rgb_color, Fw32_load_color_file): Fix typos in docstrings.
1232         (Fx_server_version): Reflow docstring.
1233         (Fw32_shell_execute): Doc fixes.
1235 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
1237         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
1238         if w32_parse_hot_key returned nil.
1240 2007-11-10  Juri Linkov  <juri@jurta.org>
1242         * puresize.h (BASE_PURESIZE): Increase to 1130000.
1244 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
1246         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
1248 2007-11-07  Chong Yidong  <cyd@stupidchicken.com>
1250         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
1251         twice.
1253         * xdisp.c (handle_face_prop): Fix last change.
1255 2007-11-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1257         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
1258         abort with a message on unhandled store_type values.
1260 2007-11-04  Richard Stallman  <rms@gnu.org>
1262         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
1263         not just for after-strings and before-strings.
1264         Call face_for_overlay_string and pass the overlay to it.
1265         (handle_display_prop): Determine whether property came from an overlay.
1266         Pass OVERLAY arg to handle_single_display_spec.
1267         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
1268         (load_overlay_strings): Fill in it->string_overlays.
1269         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
1271         * xfaces.c (face_for_overlay_string): Function renamed from
1272         face_at_buffer_position_no_overlays, and add arg OVERLAY.
1274         * dispextern.h (struct it): New elt string_overlays.
1275         New elt from_overlay, also in stack.
1276         Rearrange a few elements.
1277         (face_for_overlay_string): Decl renamed from
1278         face_at_buffer_position_no_overlays, and add argument.
1280 2007-11-03  Richard Stallman  <rms@gnu.org>
1282         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
1283         to get the base face for an overlay string.
1285         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
1287         * xfaces.c (face_at_buffer_position_no_overlays): New function.
1289         * xdisp.c (handle_stop): Move some code out of loop.
1291 2007-11-01  Johan Bockg\e,Ae\e(Brd  <bojohan@gnu.org>
1293         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
1294         Don't set s->stippled_p here, since it has already been set by
1295         x_set_glyph_string_gc from x_draw_glyph_string.
1297 2007-10-31  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1299         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
1300         Fix conversion from Lisp object to ATSUFontID.
1302 2007-10-30  Jason Rumney  <jasonr@gnu.org>
1304         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
1306 2007-10-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1308         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
1309         Don't assume regions are aligned to page boundary.
1310         (print_load_command_name): Add LC_UUID if defined.
1312 2007-10-30  Richard Stallman  <rms@gnu.org>
1314         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
1316 2007-10-29  Juanma Barranquero  <lekktu@gmail.com>
1318         * emacs.c (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
1319         <installation-directory>: Reflow docstring.
1321 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
1323         * window.c (window_min_size_2): Don't count header-line.
1325 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
1327         * w32.c (init_environment): Fix tiny memory leak.
1328         (w32_get_resource): Remove unused variable `ok'.
1330 2007-10-24  Jason Rumney  <jasonr@gnu.org>
1332         * w32fns.c: Include math.h.
1334 2007-10-24  Richard Stallman  <rms@gnu.org>
1336         * frame.c (x_figure_window_size): For fullscreen case,
1337         set USPosition | PPosition without clobbering rest of window_prompting.
1339         * keyboard.c (Fcurrent_idle_time): Doc fix.
1341         * print.c (Fwith_output_to_temp_buffer): Doc fix.
1343 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
1345         * process.c (Fset_process_filter): Doc fix.
1347 2007-10-17  Glenn Morris  <rgm@gnu.org>
1349         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
1350         (syms_of_minibuf): Add Qcompletion_ignore_case.
1351         * dired.c (Qcompletion_ignore_case): Change to external.
1352         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
1353         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
1354         (Fread_file_name): Use it rather than intern'ing.
1356         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
1357         (Fread_coding_system): Ignore case of user input.
1359 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1361         * xdisp.c (handle_display_prop): Ignore display specs after
1362         replacing one when string text is being replaced.
1363         (handle_single_display_spec): Pretend as if characters with display
1364         property haven't been consumed only when buffer text is being replaced.
1366 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
1368         * eval.c (do_autoload): Don't save autoloads.
1370         * data.c (Ffset): Save autoload of the function being set.
1372 2007-10-07  John Paul Wallington  <jpw@pobox.com>
1374         * xfns.c (x_create_tip_frame): Set the `display-type' frame
1375         parameter before setting up faces.
1377 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
1379         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
1380         selected frame'' on MSDOS).
1382 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
1384         * frame.c (Qexplicit_name): New variable.
1385         (x_report_frame_params): Report it in parameter alist.
1386         (syms_of_frame): Intern and staticpro it.
1388 2007-10-09  Jason Rumney  <jasonr@gnu.org>
1390         * w32term.c (x_set_window_size): Disable code that attempts to tell
1391         Lisp code about a size change before it actually happens.
1393 2007-10-09  Richard Stallman  <rms@gnu.org>
1395         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
1396         return HANDLED_RETURN.
1398 2007-10-06  Martin Rudalics  <rudalics@gmx.at>
1400         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
1401         when there's an unread command event.
1403         * frame.c (focus_follows_mouse): Moved here from frame.el to allow
1404         window autoselection act appropriately when leaving selected frame.
1405         (syms_of_frame): Initialize focus_follows_mouse.
1406         * frame.h (focus_follows_mouse): Extern it.
1407         * macterm.c (XTread_socket): When focus_follows_mouse is nil
1408         make SELECT_WINDOW_EVENT only if we don't leave the selected
1409         frame.
1410         * msdos.c (dos_rawgetc): Likewise.
1411         * w32term.c (w32_read_socket): Likewise.
1412         * xterm.c (handle_one_xevent): Likewise.
1413         * xdisp.c (syms_of_xdisp): In doc-string of
1414         mouse-autoselect-window mention focus-follows-mouse.
1416 2007-10-06  Andreas Schwab  <schwab@suse.de>
1418         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
1420 2007-10-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1422         * macterm.c (mac_load_query_font): Fix missing return value.
1423         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
1424         Add BLOCK_INPUT.
1426 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
1428         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
1430 2007-10-02  Richard Stallman  <rms@gnu.org>
1432         * xdisp.c (get_window_cursor_type): Implement documented behavior
1433         for cursor-in-non-selected-windows = t.
1435 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
1437         * lread.c (Fload): Fix typo in docstring.
1439 2007-09-29  Juri Linkov  <juri@jurta.org>
1441         * emacs.c (standard_args): Change priority of "--no-splash"
1442         from 40 to 3.  Add "--no-desktop" with the same priority.
1444 2007-09-29  Jason Rumney  <jasonr@gnu.org>
1446         * w32.c (w32_get_resource): Always close registry keys.
1448 2007-09-27  Jason Rumney  <jasonr@gnu.org>
1450         * makefile.w32-in (LIBS): Add COMCTL32.
1452         * w32fns.c (globals_of_w32fns): Init common controls.
1454 2007-09-21  Richard Stallman  <rms@gnu.org>
1456         * image.c (our_memory_buffer): Renamed from omfib_buffer.
1458 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
1460         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
1461         underline_color, to draw strike-through.
1463 2007-09-20  Glenn Morris  <rgm@gnu.org>
1465         * process.c (Fmake_network_process): Doc fix.
1467 2007-09-19  Richard Stallman  <rms@gnu.org>
1469         * buffer.c (Foverlays_at): Doc fix.
1471 2007-09-18  Stefan Monnier  <monnier@iro.umontreal.ca>
1473         * fns.c (Fplist_put): Preserve uneven tail data.
1475 2007-09-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1477         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
1478         when we have no file name for the icon.
1479         (xg_tool_bar_expose_callback): Remove.
1480         (xg_create_tool_bar): Don't connect expose signal to
1481         xg_tool_bar_expose_callback.
1483 2007-09-16  Andreas Schwab  <schwab@suse.de>
1485         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
1486         values instead of zapping them.
1488 2007-09-15  Glenn Morris  <rgm@gnu.org>
1490         * s/hpux.h: No longer define `static' as nothing.
1492 2007-09-14  Glenn Morris  <rgm@gnu.org>
1494         * fringe.c (init_fringe_bitmap) <swap nibble>: Move to file scope.
1495         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
1496         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
1497         scope and rename to omfib_buffer for clarity.
1498         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
1500 2007-09-14  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
1502         * gtkutil.c (xg_get_file_with_chooser): Move GCPRO1 after declarations.
1504         * termhooks.h (enum event_kind): Remove trailing comma.
1506         * frame.h (enum): Remove trailing comma.
1508 2007-09-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1510         * keyboard.c, xterm.c, xfaces.c (abs): #undef before #define.
1512 2007-09-12  Glenn Morris  <rgm@gnu.org>
1514         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
1515         (menu_grab_callback): All uses changed.
1517         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
1518         (x_reply_selection_request): All uses changed.
1520 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
1522         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
1524 2007-09-06  Glenn Morris  <rgm@gnu.org>
1526         * gtkutil.c (menu_grab_callback) <cnt>:
1527         * xselect.c (x_reply_selection_request) <cnt>: Move static
1528         variable to file scope.
1530 2007-09-02  Dhuvra Krishnamurthy  <dhuvrakm@gmail.com>  (tiny change)
1532         * w32proc.c (delete_child): Don't terminate threads of zombies.
1534 2007-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1536         * keyboard.c: Qrtl is new.
1537         (parse_tool_bar_item): Handle :rtl keyword.
1538         (syms_of_keyboard): Intern :rtl keyword.
1540         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
1542         * gtkutil.c (file_for_image, find_rtl_image): New functions.
1543         (xg_get_image_for_pixmap): Use file_for_image
1544         (update_frame_tool_bar): If direction is RTL, use RTL image if
1545         defined.  Use Gtk stock images or named theme icons if defined.
1547 2007-08-29  Martin Rudalics  <rudalics@gmx.at>
1549         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
1551         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
1552         last-repeatable-command.
1553         (init_kboard): Initialize Vlast_repeatable_command.
1554         (command_loop_1): Set it to real_this_command unless that was
1555         bound to an input event.
1556         (mark_kboards): Mark it.
1558 2007-08-28  Juanma Barranquero  <lekktu@gmail.com>
1560         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
1561         Doc fixes.
1563 2007-08-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1565         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
1566         so no Lisp code is executed.
1568 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1570         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
1571         for nonexistent or zero-width glyph in composition glyph.
1573 2007-08-27  Richard Stallman  <rms@gnu.org>
1575         * eval.c (condition-case): Doc fix.
1577 2007-08-27  Masatake YAMATO  <jet@gyve.org>
1579         * xfaces.c (tty_supports_face_attributes_p): Fix code
1580         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
1581         was copied and not edited.
1583 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
1585         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
1587 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
1589         * lread.c (Qold_style_backquotes): New var.
1590         (syms_of_lread): Init and staticpro it.
1591         (load_warn_old_style_backquotes): New fun.
1592         (Fload): Use them to warn about old style backquotes.
1593         (end_of_file_error, Fload): Remove unused vars.
1595         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
1597         * lread.c (Vold_style_backquotes): New var.
1598         (syms_of_lread): Init and export it to Elisp.
1599         (read1): Set it when we find an old-style (back)quote.
1601 2007-08-22  Jason Rumney  <jasonr@gnu.org>
1603         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
1605 2007-08-21  Stefan Monnier  <monnier@iro.umontreal.ca>
1607         * insdel.c (reset_var_on_error): New fun.
1608         (signal_before_change, signal_after_change):
1609         Use it to reset (after|before)-change-functions to nil in case of error.
1610         Bind inhibit-modification-hooks to t.
1611         Don't bind (after|before)-change-functions to nil while they run.
1613 2007-08-19  Andreas Schwab  <schwab@suse.de>
1615         * alloc.c (pure): Round PURESIZE up.
1617 2007-08-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1619         * xterm.c (handle_one_xevent): Remove check that mouse click is in
1620         active frame.
1622 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
1624         * term.c (tty_default_color_capabilities): Declare static
1625         variables in file scope, to avoid HPUX compiler problem.
1627 2007-08-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1629         * gtkutil.c (update_frame_tool_bar): Use -1 as index
1630         to gtk_toolbar_insert.
1632 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1634         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
1635         filling pixmap with stippled background.
1637 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
1639         * print.c (new_backquote_output): Rename from old_backquote_output.
1640         (print): Inverse its logic (according to its name) so as to match the
1641         behavior of new_backquote_flag in lread.c.
1643 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1645         * gmalloc.c (posix_memalign): New function.
1647 2007-08-08  Glenn Morris  <rgm@gnu.org>
1649         * Replace `iff' in doc-strings and comments.
1651 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
1653         * dispextern.h (struct image): New members.
1655         * image.c: Sync to trunk version.
1656         (search_image_cache, uncache_image, image-refresh): New functions.
1657         Check for fg and bg colors.
1658         (lookup_image): Use search_image_cache.  Cache fg and bg colors.
1659         (pbm_load): Another check for invalid image data.
1660         (png_load): Ignore default background field.
1662         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
1664 2007-08-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1666         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
1668 2007-08-07  Sam Steingold  <sds@gnu.org>
1670         * gmalloc.c (__morecore): Fix the declaration to comply with the
1671         definition.
1673 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1675         * emacs.c (main)
1676         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
1677         Call malloc_enable_thread on interactive startup.
1679         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
1680         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
1681         [USE_PTHREAD]: Conditionalize with it.
1682         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
1683         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
1684         New functions.
1686 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
1688         * xdisp.c (redisplay_window): When restoring original buffer
1689         position, make sure it is still valid.
1691 2007-08-06  Martin Rudalics  <rudalics@gmx.at>
1693         * window.c (window_min_size_2): New function.
1694         (window_min_size_1, size_window, Fdisplay_buffer)
1695         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
1696         windows without mode- or header-lines when window-min-height is
1697         too small.
1698         (size_window): Reset nodelete_p after testing it, following an
1699         earlier note by Kim F. Storm.
1700         (display_buffer): Do not set split_height_threshold to twice the
1701         value of window_min_height to avoid changing the value of a
1702         customizable variable.  Rather explicitly check whether the
1703         height of the window that shall be splitted is at least as large
1704         as split_height_threshold.
1705         (Fwindow_full_width_p): New defun.
1706         (syms_of_window): Defsubr it.
1708         * window.h: Add EXFUN for Fwindow_full_width_p.
1710 2007-08-06  Andreas Schwab  <schwab@suse.de>
1712         * window.c (Fdisplay_buffer): Use NILP.
1713         (Fset_window_scroll_bars): Likewise.
1715 2007-08-03  Richard Stallman  <rms@gnu.org>
1717         * fileio.c (Fvisited_file_modtime): Use make_time.
1719 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
1721         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
1722         build.
1724 2007-07-30  Stefan Monnier  <monnier@iro.umontreal.ca>
1726         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
1728 2007-07-25  Glenn Morris  <rgm@gnu.org>
1730         * Relicense all FSF files to GPLv3 or later.
1732         * COPYING: Switch to GPLv3.
1734 2007-07-24  Jason Rumney  <jasonr@gnu.org>
1736         * w32fns.c (x_real_positions): Get real position from OS instead of
1737         calculating it.
1739 2007-07-23  Jason Rumney  <jasonr@gnu.org>
1741         * filelock.c (current_lock_owner): Allow for @ sign in username.
1743 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
1745         * makefile.w32-in (clean): Don't delete *~.
1747         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
1748         Define if not defined.
1750 2007-07-18  Jason Rumney  <jasonr@gnu.org>
1752         * w32proc.c (w32_executable_type): Handle 64 bit executables.
1754 2007-07-16  Juanma Barranquero  <lekktu@gmail.com>
1756         * coding.c (Ffind_operation_coding_system):
1757         * eval.c (For, Fand, Fprogn):
1758         * keyboard.c (Ftrack_mouse):
1759         * print.c (Fwith_output_to_temp_buffer):
1760         * window.c (Fsave_window_excursion): Doc fixes (some reported
1761         by Johan Bockg\e,Ae\e(Brd).
1763 2007-07-15  Richard Stallman  <rms@gnu.org>
1765         * data.c (Fsetq_default): Doc fix.
1767         * eval.c (Fsetq): Doc fix.
1769 2007-07-11  Jason Rumney  <jasonr@gnu.org>
1771         * makefile.w32-in (LIBS): Include OLE32.
1773         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
1774         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
1776 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1778         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1779         Check WINDOWP before using XWINDOW.
1781 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
1783         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
1785 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1787         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
1788         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
1789         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
1790         (_free_internal, memalign): Use them.
1791         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
1792         Initialize to PTHREAD_MUTEX_INITIALIZER.
1793         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
1794         (morecore_nolock): Rename from morecore.  All uses changed.
1795         Use only nolock versions of internal allocation functions.
1796         (_malloc_internal_nolock, _realloc_internal_nolock)
1797         (_free_internal_nolock): New functions created from
1798         _malloc_internal, _realloc_internal, and _free_internal.
1799         (_malloc_internal, _realloc_internal, _free_internal): Use them.
1800         Copy hook value to automatic variable before its use.
1801         (memalign): Copy hook value to automatic variable before its use.
1803 2007-06-21  Jason Rumney  <jasonr@gnu.org>
1805         * image.c (convert_mono_to_color_image): Swap fore and background.
1807 2007-06-20  Jason Rumney  <jasonr@gnu.org>
1809         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
1810         (w32_free_bdf_font): Unmap memory not handle.
1812 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
1814         * w32.c (_wsa_errlist): Fix typo in error message.
1815         (init_environment): Ignore any environment variable from the
1816         registry having a null value.
1818 2007-06-17  Jason Rumney  <jasonr@gnu.org>
1820         * w32menu.c (add_menu_item): Don't use multibyte string functions on
1821         unicode strings.
1823 2007-06-17  Juanma Barranquero  <lekktu@gmail.com>
1825         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
1826         Fix typo in docstring.
1828 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
1830         * w32menu.c (add_menu_item): Escape `&' characters in menu items
1831         and their keybindings.
1833 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
1835         * composite.c (update_compositions): Check validity of compositions.
1837 2007-06-10  Jason Rumney  <jasonr@gnu.org>
1839         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
1841 2007-06-06  Jason Rumney  <jasonr@gnu.org>
1843         * s/ms-w32.h: Don't define HAVE_TZNAME.
1845 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
1847         * image.c (xpm_load): Remove spurious call to
1848         xpm_init_color_cache.
1850 2007-06-06  Martin Rudalics  <rudalics@gmx.at>
1852         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
1854 2007-06-05  Dan Nicolaescu  <dann@ics.uci.edu>
1856         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
1857         * xdisp.c (next_element_from_buffer):
1858         * window.c (delete_window):
1859         * term.c (term_mouse_highlight):
1860         * msdos.c (getdefdir):
1861         * macterm.c (mac_create_bitmap_from_bitmap_data)
1862         (init_font_name_table):
1863         * fns.c (Fsxhash):
1864         * data.c (Fmake_local_variable):
1865         * ccl.c (ccl_driver): Likewise.
1867 2007-06-04  Juanma Barranquero  <lekktu@gmail.com>
1869         * window.c (Fshrink_window): Reflow docstring.
1871 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
1873         * Version 22.1 released.
1875         * xfns.c (x_set_name_internal): Undo last change.
1877 2007-06-01  Richard Stallman  <rms@gnu.org>
1879         * xfns.c (x_encode_text): Add GCPRO.
1880         (x_set_name_internal): Separate USE_GTK and non-USE_GTK cases.
1882 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1884         * xfns.c (x_set_name_internal): Save encoded name before
1885         x_encode_text in case string data is relocated.
1887 2007-05-31  Richard Stallman  <rms@gnu.org>
1889         * buffer.c (syms_of_buffer): Doc fix.
1891 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1893         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
1894         around current_column call.
1896 2007-05-24  Chong Yidong  <cyd@stupidchicken.com>
1898         * xdisp.c (redisplay_window): If first window line is a
1899         continuation line, recompute the new window start instead of
1900         recentering.
1902 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1904         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
1905         Call mac_wakeup_from_rne on window size change.
1907 2007-05-22  Richard Stallman  <rms@gnu.org>
1909         * xterm.c (x_connection_closed): Remove NO_RETURN.
1911 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
1913         * syntax.c (skip_chars): Update syntax-table only after we checked that
1914         the new location is valid.
1916 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1918         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
1919         mac_get_window_bounds.
1921 2007-05-17  Glenn Morris  <rgm@gnu.org>
1923         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
1925 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1927         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
1928         dead key repeat and up events.
1930 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
1932         * xterm.c (XTread_socket): Revert last change.
1934 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
1936         * image.c (pbm_load): Correctly check image size for greyscale pbm.
1938         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
1940 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
1942         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object mixup (YAILOM)
1944 2007-05-06  Richard Stallman  <rms@gnu.org>
1946         * process.c: Undo May 3 change.
1948 2007-05-03  Per Cederqvist  <ceder@lysator.liu.se>  (tiny change)
1950         * process.c (Faccept_process_output): Revert 2006-03-22 change so
1951         that the third argument once again is in microseconds (not
1952         milliseconds).  This makes it compatible with Emacs 21 and
1953         earlier.  Problem found by Henrik Rindl\e,Av\e(Bw.
1955 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1957         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
1958         (Fx_popup_dialog) [MAC_OSX]: Likewise.
1960 2007-04-29  Richard Stallman  <rms@gnu.org>
1962         * insdel.c (replace_range): For undo, record insertion first.
1964 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1966         * xdisp.c (try_window_reusing_current_matrix): Fix number of
1967         disabled lines.
1969 2007-04-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1971         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
1973         * gtkutil.c (xg_update_menubar, create_menus): Create empty
1974         submenu for menu bar items.
1976 2007-04-24  Chong Yidong  <cyd@stupidchicken.com>
1978         * xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
1979         values of the actual window.
1981 2007-04-23  Richard Stallman  <rms@gnu.org>
1983         * process.c (Fstart_process): Doc fix.
1985 2007-04-23  Eli Zaretskii  <eliz@gnu.org>
1987         * process.c (Fstart_process): Doc fix.
1989 2007-04-22  Richard Stallman  <rms@gnu.org>
1991         * abbrev.c (Fdefine_abbrev): Doc fix.
1993         * keymap.c (Fdefine_key): Minor doc fix.
1995 2007-04-21  Glenn Morris  <rgm@gnu.org>
1997         * keymap.c (Fdefine_key): Fix info ref in doc string.
1999 2007-04-20  Glenn Morris  <rgm@gnu.org>
2001         * sysdep.c (init_system_name): Don't accept localhost.localdomain.
2003 2007-04-19  Juanma Barranquero  <lekktu@gmail.com>
2005         * minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties)
2006         (Fminibuffer_completion_contents, Fdelete_minibuffer_contents):
2007         Doc fixes.
2009 2007-04-16  Chong Yidong  <cyd@stupidchicken.com>
2011         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
2012         Set garbaged flag in presence of window margins.
2013         (showing_window_margins_p): New function.
2015         * xdisp.c (cursor_row_p): Only end row on newline if it's a
2016         display string.  Suggested by Lennart Borgman.
2018 2007-04-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2020         * alloc.c (mem_insert): Set min_heap_address and max_heap_address
2021         if they are not yet initialized.
2023 2007-04-15  Chong Yidong  <cyd@stupidchicken.com>
2025         * xdisp.c (redisplay_window): When deciding whether or not to
2026         recenter, don't use the reset values of BEG_UNCHANGED and
2027         END_UNCHANGED.
2029 2007-04-13  Kim F. Storm  <storm@cua.dk>
2031         * buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes
2032         and check that buffer is still alive upon return.
2034 2007-04-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2036         * macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h.
2037         (mac_screen_config_changed): New variable.
2038         (mac_handle_dm_notification, init_dm_notification_handler)
2039         (mac_get_screen_info): New functions.
2040         [MAC_OS8] (main): Call init_dm_notification_handler.
2041         (mac_initialize) [MAC_OSX]: Likewise.
2042         (XTread_socket): Call mac_get_screen_info if screen config changed.
2043         (mac_initialized): Make static.
2044         (mac_initialize_display_info): Remove function.
2045         (mac_term_init): Call mac_get_screen_info.  Add partial contents of
2046         mac_initialize_display_info.
2048 2007-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2050         * mac.c (xrm_get_preference_database, Fmac_get_preference)
2051         [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
2053         * macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
2054         Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
2055         (mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
2056         (mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
2057         dpyinfo->width are those of whole screen.
2059 2007-04-10  Chong Yidong  <cyd@stupidchicken.com>
2061         * xdisp.c (note_mode_line_or_margin_highlight): Don't decrement
2062         glyph pointer before start of glyph row.
2064 2007-04-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2066         * s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
2067         (C_SWITCH_SYSTEM): Remove `-I../mac/src'.
2069 2007-04-09  Martin Rudalics  <rudalics@gmx.at>
2071         * indent.c (Fmove_to_column): Set next_boundary with correct start pt.
2073 2007-04-08  Richard Stallman  <rms@gnu.org>
2075         * xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
2077 2007-04-07  Chong Yidong  <cyd@stupidchicken.com>
2079         * editfns.c (Ftranspose_regions): Validate interval before setting
2080         text properties.
2082 2007-04-03  Eli Zaretskii  <eliz@gnu.org>
2084         * emacs.c (main): Fix instructions for building Emacs for profiling.
2086 2007-04-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2088         * gtkutil.c (xg_update_menubar): Call g_list_next after moving
2089         menu bar item.
2091 2007-04-02  Juanma Barranquero  <lekktu@gmail.com>
2093         * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
2095 2007-04-01  Chong Yidong  <cyd@stupidchicken.com>
2097         * keymap.c (Fcommand_remapping): New optional argument.
2098         (where_is_internal): Use new keymaps argument.
2099         (Fkey_binding): Caller changed.
2101         * keyboard.c (command_loop_1): Caller changed.
2103 2007-03-31  Eli Zaretskii  <eliz@gnu.org>
2105         * window.c (Fget_lru_window): Doc fix.
2107 2007-03-30  Chong Yidong  <cyd@stupidchicken.com>
2109         * undo.c (Fprimitive_undo): Give clearer error message when trying
2110         to change text properties outside accessible part of buffer.
2112 2007-03-29  Kim F. Storm  <storm@cua.dk>
2114         * process.c (wait_reading_process_output) [HAVE_PTYS]:
2115         When EIO happens, clear channel from descriptor masks before raising
2116         SIGCHLD signal to avoid busy loop between read and sigchld_handler.
2117         (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
2119 2007-03-29  Juanma Barranquero  <lekktu@gmail.com>
2121         * buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.
2123         * process.c (Fformat_network_address): Return nil when the
2124         argument vector contains invalid values.
2126 2007-03-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2128         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
2129         [USE_PTHREAD]: Include pthread.h.
2130         (malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
2131         (malloc_initialize_1): New function created from __malloc_initialize.
2132         (__malloc_initialize): Use it.
2133         (LOCK, UNLOCK): New macros to make malloc etc. thread safe.
2134         (_malloc_internal, _free_internal, _realloc_internal): Use them.
2136         * lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.
2138 2007-03-27  Juanma Barranquero  <lekktu@gmail.com>
2140         * process.c (Fformat_network_address): Make args array big enough
2141         to format IPv6 addresses.
2143 2007-03-27  Glenn Morris  <rgm@gnu.org>
2145         * m/hp800.h: Restore HP-UX support (removed 2007-01-29).
2147 2007-03-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2149         * macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
2150         screen size in pixels by millimeters per pixel of main display.
2152         * macselect.c (get_scrap_target_type_list, x_own_selection):
2153         Move assignments outside predicate macros.
2154         (Vselection_converter_alist): Doc fix.
2156         * macterm.c (create_text_encoding_info_alist): Move assignments
2157         outside predicate macros.
2158         (mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
2159         dpyinfo->width are those of whole screen.
2161 2007-03-26  Sam Steingold  <sds@gnu.org>
2163         * process.c (sigchld_handler): Delay by 1ms instead of 1s to
2164         alleviate sluggishness (the original problem is still fixed).
2166 2007-03-25  Kim F. Storm  <storm@cua.dk>
2168         * intervals.c (merge_properties): Use explicit loop instead of
2169         Fplist_member to avoid QUIT.  Don't use Fcdr.
2170         (intervals_equal): Likewise.  Rewrite loop to perform length check
2171         on the fly rather than calling Flength.  Don't use Fcar.
2173 2007-03-24  Eli Zaretskii  <eliz@gnu.org>
2175         * editfns.c (Fgoto_char): Doc fix.
2177         * indent.c (Findent_to): Doc fix.
2179 2007-03-24  Chong Yidong  <cyd@stupidchicken.com>
2181         * editfns.c (Ftranspose_regions): Use set_text_properties_1
2182         instead of Fset_text_properties to avoid GC.  Signal after change.
2184 2007-03-24  Eli Zaretskii  <eliz@gnu.org>
2186         * xfns.c (Fx_show_tip): Doc fix.
2188         * macfns.c (Fx_show_tip): Doc fix.
2190         * w32fns.c (Fx_show_tip): Doc fix.
2192 2007-03-23  Kim F. Storm  <storm@cua.dk>
2194         * intervals.c (merge_properties, intervals_equal):
2195         Use Fplist_member instead of Fmemq to find properties.
2197 2007-03-23  Glenn Morris  <rgm@gnu.org>
2199         * unexhp9k800.c: Restore file with clarified legal status.
2200         * m/sr2k.h: Restore since dependency unexhp9k800.c is restored.
2202 2007-03-22  Chong Yidong  <cyd@stupidchicken.com>
2204         * widget.c (EmacsFrameSetCharSize): Catch X errors.
2206 2007-03-22  Kenichi Handa  <handa@m17n.org>
2208         * fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
2209         non-encoded file name.
2210         (Frename_file): Likewise.
2211         (Fadd_name_to_file): Likewise.
2212         (Fmake_symbolic_link): Likewise.
2214 2007-03-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2216         * Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
2217         (dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
2218         (dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
2219         systime.h.
2220         (term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
2221         systime.h.
2222         (macfns.o): Remove duplicate dependency on systime.h.
2224         * dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
2225         (Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
2227         * fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
2228         (Fdo_auto_save): Add BLOCK_INPUT around fwrite.
2230         * keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
2231         (Fopen_dribble_file): Add BLOCK_INPUT around fclose.
2233         * lread.c: Include blockinput.h.
2234         (readchar, Fget_file_char): Add BLOCK_INPUT around getc.
2235         (unreadchar): Add BLOCK_INPUT around ungetc.
2236         (load_unwind): Add BLOCK_INPUT around fclose.
2238         * print.c: Include blockinput.h.
2239         (Fredirect_debugging_output): Add BLOCK_INPUT around fclose.
2241         * process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
2242         Clear immediate_quit before calling freeaddrinfo.
2243         Add BLOCK_INPUT around freeaddrinfo.
2245         * term.c: Include blockinput.h.
2246         (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
2248 2007-03-19  Richard Stallman  <rms@gnu.org>
2250         * keyboard.c (NUM_RECENT_KEYS): Bump up to 300.
2252         * buffer.c (syms_of_buffer): Doc fix.
2254 2007-03-18  Chong Yidong  <cyd@stupidchicken.com>
2256         * image.c (pbm_load): Signal error for invalid image size.
2258 2007-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2260         * macterm.c (note_mouse_movement): Don't return immediately for
2261         LeaveNotify case.
2263         * macmenu.c (popup_activated_flag): New variable.
2264         (x_activate_menubar, mac_menu_show): Set it during menu tracking.
2265         (popup_activated): New function.
2267         * xdisp.c (redisplay_internal, note_mouse_highlight):
2268         Check popup_activated for MAC_OS.
2270 2007-03-17  Juanma Barranquero  <lekktu@gmail.com>
2272         * buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
2273         Reported by Nikolaj Schumacher <n_schumacher@web.de>.
2275 2007-03-17  Richard Stallman  <rms@gnu.org>
2277         * dired.c (file_name_completion): gcpro NAME.
2279 2007-03-17  Chong Yidong  <cyd@stupidchicken.com>
2281         * xdisp.c (try_window_id): Increment matrix positions if the
2282         buffer's byte count has increased, but not the character count.
2284 2007-03-12  Andreas Schwab  <schwab@suse.de>
2286         * lisp.h: Declare check_obarray.
2288         * process.c (Fdelete_process): Properly handle deletion of first
2289         element of deleted_pid_list.
2290         (create_process): Declare pid as pid_t.
2292 2007-03-12  Kim F. Storm  <storm@cua.dk>
2294         * process.c (sigchld_handler): Change type of pid to pid_t.
2295         Scan deleted_pid_list explicitly to avoid using Fmember which don't
2296         know about mark bits and make_fixnum_or_float which may malloc.
2297         Reported by Andreas Schwab.
2299         * keyboard.c (read_key_sequence): Store original event into keybuf
2300         when replaying sequence with local keymap(s) from string.
2302 2007-03-12  Glenn Morris  <rgm@gnu.org>
2304         * editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
2305         savings" to "daylight saving").
2307 2007-03-11  Sam Steingold  <sds@gnu.org>
2309         * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
2311 2007-03-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2313         * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
2315 2007-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2317         * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
2318         Ignore mouse wheel movement on title bar or tool bar.
2320 2007-03-10  Chong Yidong  <cyd@stupidchicken.com>
2322         * keyboard.c (help_form_saved_window_configs): New var.
2323         (read_char_help_form_unwind): New function.
2324         (read_char): Don't restore window configuration if a mouse click
2325         arrives while the help form is being displayed.
2327 2007-03-10  Kim F. Storm  <storm@cua.dk>
2329         * xdisp.c (redisplay_window): Don't automatically select a new window
2330         start for a contination line during mouse-click.
2332 2007-03-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2334         * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
2336 2007-03-09  Juanma Barranquero  <lekktu@gmail.com>
2338         * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
2340 2007-03-08  Richard Stallman  <rms@gnu.org>
2342         * keyboard.c (syms_of_keyboard): Doc fix.
2344 2007-03-08  Chong Yidong  <cyd@stupidchicken.com>
2346         * minibuf.c (Ftry_completion): Don't short circuit if
2347         completion-ignore-case is non-nil.
2349 2007-03-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2351         * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
2352         Undo 2006-03-06 changes.
2354         * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
2355         bar if its width is smaller than that of Aqua small scroll bar.
2357 2007-03-07  Stefan Monnier  <monnier@iro.umontreal.ca>
2359         * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
2360         to handle correctly prompts with read-only property.
2362 2007-03-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2364         * sound.c (wav_play): Check header->data_length to see how much we
2365         shall read.
2366         (alsa_period_size): Convert ALSA period size in frames to bytes.
2367         (alsa_write): Return if frames is zero.
2369 2007-03-06  Kenichi Handa  <handa@m17n.org>
2371         * xselect.c (Vselection_coding_system): Documentation improved.
2373 2007-03-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2375         * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
2376         USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
2377         (x_set_window_size): Call SET_FRAME_GARBAGED.  Clear window if
2378         internal border width has changed.
2380         * macterm.h (struct mac_output): New member `internal_border_width'.
2382 2007-03-04  Richard Stallman  <rms@gnu.org>
2384         * window.c (Fdisplay_buffer): Doc fix.
2386 2007-03-03  Glenn Morris  <rgm@gnu.org>
2388         * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
2389         not include -lX11 on Solaris.
2391 2007-03-02  Stuart D. Herring  <herring@lanl.gov>
2393         * keymap.c (Fkey_binding): Don't consider one-element lists as events.
2395 2007-03-01  Kenichi Handa  <handa@m17n.org>
2397         * process.c (send_process_object): Check the process status and
2398         signal an error if something is wrong.
2400 2007-02-28  Chong Yidong  <cyd@stupidchicken.com>
2402         * insdel.c (Fcombine_after_change_execute): Return nil if
2403         combine_after_change_buffer has been invalidated.
2405 2007-02-25  Dan Nicolaescu  <dann@ics.uci.edu>
2407         * m/xtensa.h: New file.
2409 2007-02-24  Nick Roberts  <nickrob@snap.net.nz>
2411         * .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
2412         as strings and not character arrays.
2414 2007-02-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2416         * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
2417         (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
2418         scroll bar handle size in order to avoid `scroll backward' problem.
2419         (x_scroll_bar_create, XTset_vertical_scroll_bar)
2420         [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
2422         * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2423         New member `min_handle'.
2425 2007-02-23  Kim F. Storm  <storm@cua.dk>
2427         * print.c (print): Reset print_number_index if Vprint_number_table
2428         is nil.
2430 2007-02-23  Eli Zaretskii  <eliz@gnu.org>
2432         * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
2433         instead of strpbrk.
2435 2007-02-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2437         * macmenu.c (mac_menu_show): Call unbind_to early.  Use variable
2438         `menu_item_selection' as in W32 version.
2439         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
2440         braces to avoid ambiguous `else'.
2442         * macterm.c (mac_display_info_for_display): Remove function.
2443         (mac_flush_display_optional) [USE_CG_DRAWING]: New function.
2444         (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
2445         flush_display_optional.
2446         [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
2447         New argument MOUSE_POS.  All uses changed.  Set bar->dragging to
2448         negative integer if scroll bar handle is pressed.
2449         [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
2450         Negative bar->dragging means scroll bar handle is not dragged.
2451         [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
2452         offset of scroll bar handle from negative bar->dragging.
2453         (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
2454         bar click is compared against mapped one.  Set down/up_modifier
2455         for scroll bar click event with control key.
2457         * macterm.h (x_display_info_for_display): Remove extern.
2458         (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
2459         value to be unpacked to 32-bit on LP64 model.
2461 2007-02-23  Kenichi Handa  <handa@m17n.org>
2463         * process.c (send_process_object_unwind): New function.
2464         (send_process_object): New function.
2465         (Fprocess_send_region): Call send_process_object.
2466         (Fprocess_send_string): Likewise.
2468 2007-02-22  Jason Rumney  <jasonr@gnu.org>
2470         * w32menu.c (w32_menu_show): Mark the frame's menu as inactive
2471         when popup menu finishes.
2473         * w32fns.c (menubar_in_use): New flag.
2474         (w32_wnd_proc) <WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND>:
2475         Use it.
2477         * w32menu.c (Fx_popup_menu): Don't free menu strings here.
2478         (w32_menu_show): Do it here instead.
2480         * w32fns.c (w32_wnd_proc) <WM_INITMENU>: Set menubar_active frame
2481         parameter.
2483         * w32menu.c (current_popup_menu): Make available globally.
2484         (menubar_selection_callback): Free menu strings before pushing the
2485         menu event into the keyboard buffer.  Remove menu_command_in_progress.
2487         * w32fns.c (current_popup_menu): Use from w32menu.c.
2488         (w32_wnd_proc) <WM_EXITMENULOOP, WM_TIMER>: Use menubar_active
2489         and current_popup_menu to determine whether a menubar menu has
2490         been cancelled.
2492         * w32term.h (w32_output): Remove menu_command_in_progress.
2494 2007-02-22  Kim F. Storm  <storm@cua.dk>
2496         * dispnew.c (update_frame, update_single_window): Set force_p here if
2497         redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
2498         (update_window, update_frame_1): ... instead of here.
2499         (update_text_area): Clear mouse face on header lines.
2501 2007-02-21  Kim F. Storm  <storm@cua.dk>
2503         * minibuf.c (Fassoc_string): Doc fix.  Allow symbol for KEY too.
2505 2007-02-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2507         * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
2508         [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
2509         `mapped_modifiers'.
2510         (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
2511         Layout Services routines to get current Unicode keyboard layout.
2513 2007-02-20  Chong Yidong  <cyd@stupidchicken.com>
2515         * frame.c (x_set_screen_gamma): Apply gamma value to the frame's
2516         bgcolor.
2518 2007-02-19  Kim F. Storm  <storm@cua.dk>
2520         * minibuf.c (Fassoc_string): Allow symbols as keys.
2522         * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
2523         handle while dragging, except when we get close to eob.
2524         Fix position and size calculations so we don't scroll backwards
2525         just by clicking on the handle.
2527 2007-02-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2529         * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
2530         [HAVE_CARBON]: Remove target.
2531         (macosx-app) [HAVE_CARBON]: Don't depend on it.
2533 2007-02-17  Juanma Barranquero  <lekktu@gmail.com>
2535         * callproc.c (syms_of_callproc) <doc-directory>:
2536         <configure-info-directory>:
2537         (Fgetenv_internal): Fix typos in docstrings.
2539         * doc.c (Fsubstitute_command_keys): Fix typo in docstring.
2541 2007-02-16  Andreas Schwab  <schwab@suse.de>
2543         * frame.c (Fmodify_frame_parameters): Return a value.
2545         * editfns.c (Fformat): Add support for '+' flag.
2546         * doprnt.c (doprnt1): Likewise.  Fix overflow checking.
2548 2007-02-14  Chong Yidong  <cyd@stupidchicken.com>
2550         * s/umips.h: Unused file removed.
2552 2007-02-14  Juanma Barranquero  <lekktu@gmail.com>
2554         * xfaces.c (Fcolor_distance): Don't continue checking a color for
2555         errors after it has been correctly parsed as an RGB list.
2557 2007-02-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2559         * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
2561 2007-02-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2563         * macfns.c (Fx_focus_frame): Move current process to foreground if
2564         it is not.
2565         [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
2566         #ifdef MAC_OSX.
2567         (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
2568         Fmac_set_font_panel_visibility.  All uses changed.  Rename argument
2569         VISIBLE to FLAG.
2571         * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
2572         (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
2573         MakeMeTheFrontProcess.
2575 2007-02-12  Chong Yidong  <cyd@stupidchicken.com>
2577         * frame.c (x_set_screen_gamma): Clear face cache.
2579 2007-02-11  Juanma Barranquero  <lekktu@gmail.com>
2581         * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
2582         Reflow docstrings.
2584 2007-02-10  Eli Zaretskii  <eliz@gnu.org>
2586         * window.c (Fwindow_height, Fwindow_hscroll)
2587         (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
2588         (Fwindow_end, Fwindow_display_table, Fwindow_text_height):
2589         Document the effect of WINDOW arg being nil.
2591 2007-02-08  Kim F. Storm  <storm@cua.dk>
2593         * minibuf.c (read_minibuf): Fix 2007-01-30 change.
2594         Use Qlambda as interim value of Vminibuffer_completing_file_name.
2595         (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
2596         (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
2598 2007-02-07  Juanma Barranquero  <lekktu@gmail.com>
2600         * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
2601         of $(ALL_DEPS).
2603 2007-02-07  Eli Zaretskii  <eliz@gnu.org>
2605         * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
2606         put into $(BLD).
2608 2007-02-06  Chong Yidong  <cyd@stupidchicken.com>
2610         * frame.c (Fmodify_frame_parameters): Don't bind
2611         Qinhibit_default_face_x_resources, which has no effect.
2612         (Qinhibit_default_face_x_resources): Symbol deleted.
2614 2007-02-03  Eli Zaretskii  <eliz@gnu.org>
2616         * indent.c (Fmove_to_column): Document that the argument COLUMN is
2617         taken from prefix numeric argument.
2619 2007-02-03  Juanma Barranquero  <lekktu@gmail.com>
2621         * lread.c (syms_of_lread) <load-history>: Doc fix.
2623 2007-01-29  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>  (tiny change)
2625         * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
2626         Use the foreground color of the scroll-bar face when drawing
2627         the scroll-bar's border.
2629 2007-02-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2631         * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
2632         calling wm_supports.
2634 2007-02-01  Juanma Barranquero  <lekktu@gmail.com>
2636         * lread.c (syms_of_lread) <user-init-file>: Doc fix.
2637         Wording by Eli Zaretskii.
2639 2007-01-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2641         * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
2643 2007-01-30  Richard Stallman  <rms@gnu.org>
2645         * minibuf.c (read_minibuf):
2646         Save and clear Vminibuffer_completing_file_name.
2647         (read_minibuf_unwind): Restore it.
2648         (Vminibuffer_completion_table, Qminibuffer_completion_table)
2649         (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
2650         (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
2651         (Vminibuffer_completing_file_name): Definitions moved up.
2653 2007-01-29  Chong Yidong  <cyd@stupidchicken.com>
2655         * m/hp800.h: Restore, removing HP-UX support.
2657 2007-01-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2659         * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
2661 2007-01-28  Richard Stallman  <rms@gnu.org>
2663         * minibuf.c (Ftry_completion, Fall_completions)
2664         (Fcompleting_read, Ftest_completion):
2665         Rename arg ALIST or TABLE to COLLECTION.
2667 2007-01-27  Chong Yidong  <cyd@stupidchicken.com>
2669         * unexhp9k800.c: Remove due to lack of legal papers.
2671         * m/sr2k.h, m/hp800.h: Remove due to dependence on above.
2673 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
2675         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
2677         * minibuf.c (Fcompleting_read): Doc fix.
2679 2007-01-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2681         * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
2683         * Makefile.in: Use XFT_LIBS if defined.
2685 2007-01-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2687         * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
2688         BLOCK_INPUT/UNBLOCK_INPUT.
2690         * blockinput.h (interrupt_input_blocked): Declare volatile.
2692         * keyboard.c (interrupt_input_blocked): Declare volatile.
2694         * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
2696 2007-01-24  Kim F. Storm  <storm@cua.dk>
2698         * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
2700 2007-01-23  Juanma Barranquero  <lekktu@gmail.com>
2702         * editfns.c (Finsert_char): Doc fix.
2703         (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
2705 2007-01-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2707         * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
2708         Don't pass keyboard modifiers to mac_store_drag_event, but put
2709         them as kEventParamKeyModifiers Apple event parameter.
2711 2007-01-21  Chong Yidong  <cyd@stupidchicken.com>
2713         * xdisp.c (try_window): Revert previous change.
2715         * dispnew.c (update_text_area): Revert 2006-09-17 change.
2716         Always redraw non-mode-line rows with mouse-face.
2718 2007-01-20  Chong Yidong  <cyd@stupidchicken.com>
2720         * xdisp.c (try_window): Clear mouse-face highlights first.
2722         * window.c (set_window_buffer): Revert 2006-11-22 change.
2724 2007-01-20  Eli Zaretskii  <eliz@gnu.org>
2726         * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
2727         (xbuffer, xcons, xcar, xcdr): Fix doc strings.
2729 2007-01-20  Chong Yidong  <cyd@stupidchicken.com>
2731         * keyboard.c (read_key_sequence): Extract local map only if the
2732         given position is in an accessible buffer region.
2734 2007-01-19  Nick Roberts  <nickrob@snap.net.nz>
2736         * .gdbinit: Reformat documentation so that first sentence
2737         displays properly with "help user-defined" (like apropos).
2739 2007-01-18  Bruno Haible  <bruno@clisp.org>  (tiny change)
2741         * epaths.in: Move PATH_DOC from local/info to local/share/info.
2743 2007-01-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2745         * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
2746         Create movable modal window instead of movable alert window.
2747         (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
2748         of DisableControl.
2750         * macselect.c (Fmac_resume_apple_event): Set error number when
2751         descriptor type of reply is non-null.
2753 2007-01-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2755         * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
2756         Use DisableControl for disabled items.  Set default button to first
2757         enabled one.  Use icon of application in execution.
2759 2007-01-13  Eli Zaretskii  <eliz@gnu.org>
2761         * process.c (Fdelete_process, Fprocess_id, sigchld_handler):
2762         Copy PID into EMACS_INT to avoid GCC warnings.
2764         * fns.c (maybe_resize_hash_table): Copy new size of hash table
2765         into EMACS_INT to avoid GCC warnings.
2767         * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
2768         geteuid and getuid into EMACS_INT to avoid GCC warnings.
2770         * dired.c (Ffile_attributes): Fix last change.
2772 2007-01-12  Eli Zaretskii  <eliz@gnu.org>
2774         * dired.c (Ffile_attributes): Copy some members of `struct stat'
2775         into int's to avoid GCC warnings about limited range of short in
2776         arguments to FIXNUM_OVERFLOW_P.
2778 2007-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2780         * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
2781         (mac_handle_dialog_event, install_dialog_event_handler)
2782         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
2783         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2784         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
2785         (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2786         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2787         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2788         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2789         (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
2790         (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
2791         (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
2793         * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
2794         Call mac_prepare_for_quickdraw.
2795         (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
2796         outside #ifdef MAC_OSX.
2797         (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
2798         outside #ifdef MAC_OSX.
2799         (mac_check_bundle) [MAC_OSX]: Remove unused function.
2801         * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
2802         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
2804 2007-01-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2806         * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
2807         block/unblock SIGIO.
2809 2007-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2811         * editfns.c (Fformat): Allow integer-format to work with floats of size
2812         larger than most-positive-fixnum (but still smaller than MAXINT).
2814         * dired.c (Ffile_attributes): Use floats for large uids/gids.
2816 2007-01-09  Eli Zaretskii  <eliz@gnu.org>
2818         * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
2820 2007-01-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2822         * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
2823         around mkstemp.
2825         * image.c (XDrawLine) [MAC_OS]: Remove macro.
2826         (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
2827         (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
2828         XCreateGC_pixmap.
2830         * macgui.h (Display): Typedef to opaque type.
2832         * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
2833         (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
2834         Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
2835         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
2836         Use mac_quit_char_key_p.
2838         * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
2839         (XCreateGC): Change type of 2nd argument to void *.
2840         (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2841         Fix last change.
2842         (mac_to_emacs_modifiers): Change return type to int.
2843         [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
2844         (mac_mapped_modifiers): New function.
2845         (XTread_socket): Use it.
2846         [USE_TSM] (mac_handle_text_input_event): Likewise.
2847         (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2848         (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
2849         Remove variables.
2850         (mac_determine_quit_char_modifiers, init_quit_char_handler)
2851         [MAC_OSX]: Remove functions.
2852         (make_ctrl_char) [MAC_OSX]: Add extern.
2853         (mac_quit_char_key_p) [MAC_OSX]: New function.
2854         (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
2856         * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
2857         (XCreateGC): Change type in extern.
2858         (XDrawLine): Rename from mac_draw_line_to_pixmap.
2859         (mac_quit_char_key_p) [MAC_OSX]: Add extern.
2861 2007-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2863         * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
2864         interrupt_input_pending.
2866         * xterm.h (x_display_info): New: net_supported_atoms,
2867         nr_net_supported_atoms and net_supported_window.
2869         * xterm.c (last_user_time): New variable.
2870         (handle_one_xevent): Set last_user_time from events that have Time.
2871         Set net_supported_window to 0 when reparented.
2872         (wm_supports): New function.
2873         (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
2874         (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
2875         and net_supported_window.
2877 2007-01-05  Kim F. Storm  <storm@cua.dk>
2879         * indent.c (Fvertical_motion): Fix it overshoot check for overlay
2880         strings without embedded newlines immediately followed by newline.
2882 2007-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2884         * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
2885         (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
2886         gmtime/localtime/emacs_memftimeu/mktime.
2888         * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
2889         instead of 'EMAx'.
2890         [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
2892         * macgui.h (struct _XGC) [USE_CG_DRAWING
2893         && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
2894         and cg_back_color.
2896         * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
2897         (restore_show_help_function, menu_target_item_handler)
2898         [TARGET_API_MAC_CARBON]: New functions.
2899         (install_menu_target_item_handler): New function.
2900         (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
2901         item property.
2903         * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
2904         (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
2905         (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
2906         (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
2907         (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
2908         (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
2909         (mac_cg_color_black) [USE_CG_DRAWING
2910         && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
2911         (init_cg_color) [USE_CG_DRAWING]: New function.
2912         (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
2913         CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
2914         (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
2915         (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
2916         Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
2917         CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
2918         (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
2919         (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
2920         && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
2921         gc->cg_back_color.
2922         (install_drag_handler, remove_drag_handler): Make extern.
2923         (install_menu_target_item_handler): Add extern.
2924         (install_window_handler): Call install_menu_target_item_handler.
2925         [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
2926         (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
2928         * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
2930 2007-01-04  Juanma Barranquero  <lekktu@gmail.com>
2932         * window.c (Fwindow_end): Fix use of >= operator.
2934 2007-01-03  Richard Stallman  <rms@gnu.org>
2936         * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
2938 2007-01-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2940         * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
2941         unhighlight_id.
2943         * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
2944         parent of the menu item.  Get menu item widget from event.
2945         (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
2946         unhighlight_id has been removed.
2947         (create_menus): Connect enter/leave-notify-event to the menu instead
2948         of individual items.
2950 2006-12-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2952         * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
2953         xg_tool_bar_menu_proxy.
2954         (xg_tool_bar_menu_proxy): New function.
2955         (xg_tool_bar_proxy_callback): New function.
2957 2006-12-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2959         * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
2960         (xg_tool_bar_callback): Remove check for button.
2961         (update_frame_tool_bar): Put an event box in the tool bar and a button
2962         in the event box.  Attach enter/leave-notify-event to the event box.
2964 2006-12-30  Richard Stallman  <rms@gnu.org>
2966         * keymap.c (Fdefine_key): Doc fix.
2968 2006-12-29  Kim F. Storm  <storm@cua.dk>
2970         * frame.h (struct frame): New member minimize_tool_bar_window_p.
2972         * xdisp.c (auto_resize_tool_bars_p): Replace with ...
2973         (Vauto_resize_tool_bars): ... this.
2974         (syms_of_xdisp): DEFVAR_LISP and initialize it.  Update doc string
2975         to describe new value `grow-only', and use of C-l.
2976         (display_tool_bar_line): Only use default face for border below
2977         toolbar if not grow-only (to get acceptable visual appearence).
2978         Explicitly set visible_height for empty toolbar lines.
2979         (redisplay_tool_bar): Handle `grow-only' setting.  Check and clear
2980         minimize_tool_bar_window_p flag.
2982         * window.c (Frecenter): Set minimize_tool_bar_window_p flag
2983         when called without arg to redraw with minimum toolbar height.
2984         Update doc string.
2986 2006-12-29  Jason Rumney  <jasonr@gnu.org>
2988         * s/ms-w32.h (tzname): Do not define in msvc8.
2989         (utime): Do not define in msvc8.
2991         * regex.c (regerror): Change parameter name err_code.
2993 2006-12-26  Richard Stallman  <rms@gnu.org>
2995         * search.c (Fsearch_forward): Doc fix.
2997         * callint.c (Finteractive): Doc fix.
2999 2006-12-25  Kim F. Storm  <storm@cua.dk>
3001         * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
3003 2006-12-23  Eli Zaretskii  <eliz@gnu.org>
3005         * keyboard.c (some_mouse_moved): Fix last change.
3007 2006-12-22  Eli Zaretskii  <eliz@gnu.org>
3009         * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
3011 2006-12-22  Mark Davies  <mark@mcs.vuw.ac.nz>
3013         * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
3014         * m/sh3el.h: New file.
3016 2006-12-22  Eli Zaretskii  <eliz@gnu.org>
3018         * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
3019         $(BLD).
3020         ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
3021         (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
3022         ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
3023         (clean): Delete stamp_BLD.
3025 2006-12-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3027         * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
3028         Call mac_update_proxy_icon also when buffer modification flag changed.
3029         [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
3030         but compare FSRef/FSSpec of resolved alias.
3032 2006-12-21  Kim F. Storm  <storm@cua.dk>
3034         * w32.c (_sys_wait_accept): Fix handle leak.
3036 2006-12-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3038         * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
3039         defined.
3041 2006-12-20  Kim F. Storm  <storm@cua.dk>
3043         * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
3045 2006-12-19  Juanma Barranquero  <lekktu@gmail.com>
3047         * keyboard.c (syms_of_keyboard) <double-click-time>:
3048         * mac.c (Fmac_code_convert_string):
3049         * search.c (Fsearch_forward): Doc fixes.
3051 2006-12-19  Kim F. Storm  <storm@cua.dk>
3053         Rework 2006-12-04 change.  A SIGUSR1 (SIGUSR2) signal now generates
3054         a sigusr1 event instead of [signal usr1] sequence, and signal events
3055         are now supposed to be handled via special-event-map.
3057         * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
3058         (make_lispy_event): Don't generate Qsignal prefix for code 0.
3059         Abort if signal code is unknown.
3060         (store_user_signal_events): Don't make Qsignal prefix (code 0).
3061         (Qsignal): Move declaration back to process.c.
3062         (syms_of_keyboard): Don't intern or staticpro it here.
3064         * process.c (Qsignal): Declare here.
3065         (syms_of_process): Intern or staticpro it.
3067         * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
3069         * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
3071 2006-12-19  Juanma Barranquero  <lekktu@gmail.com>
3073         * buffer.c (syms_of_buffer) <buffer-display-table>:
3074         <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
3076 2006-12-17  Richard Stallman  <rms@gnu.org>
3078         * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
3079         to Ffile_name_completion.
3081         * dired.c (file_name_completion): New arg PREDICATE.  Some cleanup.
3082         (Ffile_name_completion): New arg PREDICATE.
3084 2006-12-17  Juanma Barranquero  <lekktu@gmail.com>
3086         * buffer.c (Fkill_buffer): Doc fix.
3087         (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
3089 2006-12-16  Juanma Barranquero  <lekktu@gmail.com>
3091         * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
3093 2006-12-16  Eli Zaretskii  <eliz@gnu.org>
3095         * w32fns.c (w32-window-exists-p): New function.
3096         (syms_of_w32fns): Defsubr it.
3098         * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
3100 2006-12-16  Juanma Barranquero  <lekktu@gmail.com>
3102         * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
3104 2006-12-15  Eli Zaretskii  <eliz@gnu.org>
3106         * emacs.c (USAGE3): Clarify documentation of --color.
3108 2006-12-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3110         * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
3111         New variable.
3112         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
3113         [!MAC_OSX] (select): Use them.
3114         [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
3115         (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
3117         * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
3118         (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
3119         (syms_of_macfns) [USE_ATSUI]: Defsubr it.
3121         * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
3122         Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
3124         * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
3125         ATSUGetGlyphBounds if not necessary.
3126         (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
3127         (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
3128         (fm_get_style_from_font, atsu_find_font_from_family_name)
3129         (atsu_find_font_family_name, mac_atsu_font_face_attributes)
3130         [USE_ATSUI]: New functions.
3131         (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
3132         (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
3133         Don't get metrics for Latin-1 right half characters.
3134         (mac_load_query_font): Don't load font if space width is not positive.
3135         [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
3136         Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
3137         (XTread_socket): Call SelectWindow when unfocused frame is clicked.
3139         * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
3141 2006-12-15  Kim F. Storm  <storm@cua.dk>
3143         * keyboard.c (ignore_mouse_drag_p): New global var.
3144         (some_mouse_moved): Return 0 if it is non-zero.
3145         (make_lispy_event): Generate click event on mouse up if
3146         ignore_mouse_drag_p is non-zero, even if mouse moved.
3147         Clear ignore_mouse_drag_p on mouse down/up.
3149         * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
3150         is resized to avoid generating a mouse drag event.
3152 2006-12-14  Juanma Barranquero  <lekktu@gmail.com>
3154         * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
3155         minimum tracking size.  Remove non-working old hack to do the same.
3157 2006-12-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3159         * emacs.c (handle_user_signal): Move function to keyboard.c.
3160         (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
3162         * keyboard.c (make_lispy_event): Use find_user_signal_name.
3163         (read_avail_input): Store pending user signal events.
3164         (struct user_signal_info): New struct.
3165         (user_signals): New variable.
3166         (add_user_signal, store_user_signal_events)
3167         (find_user_signal_name): New functions.
3168         (handle_user_signal): Move function from emacs.c.  Don't store
3169         USER_SIGNAL_EVENT here, but increment number of pending signals.
3171         * keyboard.h (add_user_signals): Add extern.
3173 2006-12-11  Juanma Barranquero  <lekktu@gmail.com>
3175         * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
3176         <default-scroll-up-aggressively, default-scroll-down-aggressively>:
3177         <line-spacing, left-margin>: Doc fixes.
3179         * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
3181 2006-12-10  Kim F. Storm  <storm@cua.dk>
3183         * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
3185 2006-12-10  Juanma Barranquero  <lekktu@gmail.com>
3187         * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
3188         * buffer.c (syms_of_buffer) <default-major-mode>:
3189         * keymap.c (Flookup_key):
3190         * lread.c (Feval_buffer, Feval_region):
3191         * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
3192         <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
3193         * marker.c (Fmarker_insertion_type):
3194         * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
3195         * msdos.c (syms_of_msdos) <delete-exited-processes>:
3196         * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3197         <x-underline-at-descent-line>:
3198         * xdisp.c (format-mode-line):
3199         * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
3200         <x-underline-at-descent-line>: Doc fixes.
3202 2006-12-10  Andreas Schwab  <schwab@suse.de>
3204         * systime.h (EMACS_GET_TIME): Remove check for
3205         HAVE_STRUCT_TIMEZONE which is never defined.
3207 2006-12-10  Alan Mackenzie  <acm@muc.de>
3209         * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
3210         result is now neither the last elt nor optional for OLDSTATE.
3212 2006-12-09  Eli Zaretskii  <eliz@gnu.org>
3214         * process.c (Fsignal_process): Doc fix.  Use XFLOAT_DATA to
3215         extract the process ID from a Lisp float.
3217 2006-12-09  Chong Yidong  <cyd@stupidchicken.com>
3219         * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
3221 2006-12-08  Eli Zaretskii  <eliz@gnu.org>
3223         * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
3224         platforms where long is 64-bit.
3226         * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
3228 2006-12-08  NAKAJI Hiroyuki  <nakaji@jp.freebsd.org>  (tiny change)
3230         * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
3232 2006-12-08  Kenichi Handa  <handa@m17n.org>
3234         * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
3236 2006-12-08  Juanma Barranquero  <lekktu@gmail.com>
3238         * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3240 2006-12-07  Kim F. Storm  <storm@cua.dk>
3242         * process.c (parse_signal): Use xstricmp instead of strcasecmp.
3243         (Fsignal_process): Don't use strncasecmp.
3245 2006-12-05  Glenn Morris  <rgm@gnu.org>
3247         * abbrev.c (Qforce): New Lisp_Object.
3248         (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
3249         abbrevs, unless 'force is applied.
3250         (syms_of_abbrev): Add Qforce.
3252 2006-12-04  Kim F. Storm  <storm@cua.dk>
3254         * process.c (parse_signal): Rename macro from handle_signal.
3255         (Fsignal_process): Also accept lower-case variants of signal
3256         names (to align with signal names generated by Emacs itself).
3258         * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
3259         (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
3260         first with code == 0 [signal] and one with code == sig number.
3261         (main): Use it as handler for SIGUR1 and SIGUSR2.
3263         * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
3264         if first event in [signal xxx] sequence.
3265         (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
3266         (syms_of_keyboard): Don't intern and staticpro them.
3267         (Qsignal): Declare here.
3268         (syms_of_keyboard): Intern and staticpro it.
3269         (make_lispy_event): Use it.  Intern symbols on the fly for other
3270         USER_SIGNAL_EVENTs events.
3272         * process.c (Qsignal): Declare extern.
3273         (syms_of_process): Don't intern/staticpro it here.
3275         * process.c (read_process_output): Abort if carryover < 0.
3277 2006-12-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3279         * config.in: Regenerate.
3281         * fileio.c [__NetBSD__]: Don't define `unix'.
3282         (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
3283         `#ifdef unix'.
3285 2006-12-04  Glenn Morris  <rgm@gnu.org>
3287         * Makefile.in (version): New variable, set by configure.
3288         (bootstrapclean, mostlyclean): Also remove emacs-${version}.
3290 2006-12-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3292         * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
3293         without an image.
3295 2006-12-01  Eli Zaretskii  <eliz@gnu.org>
3297         * w32fns.c (Fw32_shell_execute): Doc fix.
3299 2006-11-30  Chong Yidong  <cyd@stupidchicken.com>
3301         * xdisp.c (move_it_to): Correctly count tab glyphs for continued
3302         lines ending in tab.
3304 2006-11-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3306         * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
3307         property ...
3308         (XTframe_raise_lower): ... to here.
3310 2006-11-30  Kenichi Handa  <handa@m17n.org>
3312         * regex.c (regex_compile): Fix previous change.
3314 2006-11-29  Juanma Barranquero  <lekktu@gmail.com>
3316         * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
3318 2006-11-28  Chong Yidong  <cyd@stupidchicken.com>
3320         * config.in: Regenerate.
3322 2006-11-28  Kenichi Handa  <handa@m17n.org>
3324         * regex.c (regex_compile): Don't call SET_LIST_BIT with a
3325         multibyte character.
3327 2006-11-27  Chong Yidong  <cyd@stupidchicken.com>
3329         * s/aix4-2.h: Undefine _NO_PROTO.  Suggested by Joe Buehler.
3331 2006-11-27  Kim F. Storm  <storm@cua.dk>
3333         * window.c (set_window_buffer): Refactor recent changes.
3335 2006-11-27  Jason Rumney  <jasonr@gnu.org>
3337         * w32term.c (w32_msg_worker): Declare correctly.
3338         (w32_initialize): Don't cast w32_msg_worker.
3340         * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
3342 2006-11-26  Chong Yidong  <cyd@stupidchicken.com>
3344         * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
3345         directory exists.
3347 2006-11-25  Eli Zaretskii  <eliz@gnu.org>
3349         * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
3350         as per the calling sequence change on 2006-07-11.
3352 2006-11-25  Chong Yidong  <cyd@stupidchicken.com>
3354         * window.c (set_window_buffer): Use BLOCK_INPUT.
3356 2006-11-24  Juanma Barranquero  <lekktu@gmail.com>
3358         * fns.c (substring_both): Add missing address operator.
3360 2006-11-24  Stefan Monnier  <monnier@iro.umontreal.ca>
3362         * fns.c: Use AREF/ASIZE macros.
3363         (concat): Provide the full ANSI prototype.
3365 2006-11-24  Juanma Barranquero  <lekktu@gmail.com>
3367         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3369 2006-11-23  William Smith  <William.Smith@global360.com>  (tiny change)
3371         * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
3373 2006-11-22  Alfred M. Szmidt  <ams@gnu.org>  (tiny change)
3375         * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
3376         /usr/pkg/lib from the library search path.
3377         (LD_SWITCH_X_DEFAULT): New macro.
3379 2006-11-22  Chong Yidong  <cyd@stupidchicken.com>
3381         * window.c (set_window_buffer): Clear mouse highlight if it is in
3382         this window.
3384 2006-11-21  Chong Yidong  <cyd@stupidchicken.com>
3386         * xfaces.c (realize_default_face): Check if the default font name
3387         exists on this display before trying to use it.
3389 2006-11-21  Richard Stallman  <rms@gnu.org>
3391         * fileio.c: Break line before &&, not after.
3393 2006-11-20  Eli Zaretskii  <eliz@gnu.org>
3395         * fns.c (concat) [!__GNUC__]: Add prototype.
3397 2006-11-20  Kenichi Handa  <handa@m17n.org>
3399         * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
3400         check the tailing slash of a filename.
3402 2006-11-20  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>  (tiny change)
3404         * indent.c (Fvertical_motion): Include composition in the case of
3405         overshoot expected.
3407 2006-11-19  Andreas Schwab  <schwab@gnu.org>
3409         * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
3411         * xmenu.c (Fx_popup_menu): Initialize selection.
3413 2006-11-18  Andreas Schwab  <schwab@suse.de>
3415         * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
3417 2006-11-17  Tetsurou Okazaki  <okazaki@be.to>  (tiny change)
3419         * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
3420         to avoid gcc 2.96 error.
3422 2006-11-17  NIIMI Satoshi  <sa2c@sa2c.net>  (tiny change)
3424         * search.c (simple_search): In the loop of backward searching,
3425         check also the byte position against the limit.
3427 2006-11-14  Romain Francoise  <romain@orebokech.com>
3429         * minibuf.c (Fcompleting_read): Fix typo in docstring.
3431 2006-11-14  Kenichi Handa  <handa@m17n.org>
3433         * coding.c (code_convert_region): Initialize coding->heading_ascii.
3434         (decode_coding_string, code_convert_region): Likewise.
3436 2006-11-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3438         * config.in: Regenerate.
3440         * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
3441         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
3442         && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
3443         CGDisplayScreenSize is available.
3445         * macmenu.c (menu_quit_handler, install_menu_quit_handler):
3446         Replace `#ifdef HAVE_CANCELMENUTRACKING' with
3447         `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
3448         (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
3449         && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
3450         CancelMenuTracking is available.
3452         * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
3453         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
3454         && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
3455         CGContextShowGlyphsWithAdvances is available.
3457 2006-11-13  Jason Rumney  <jasonr@gnu.org>
3459         * s/ms-w32.h: Define HAVE_INET_SOCKETS.
3461 2006-11-13  Nozomu Ando  <nand@mac.com>
3463         * alloc.c (mark_memory): New argument OFFSET.  All uses changed.
3464         Fix address calculations for case END < START.
3465         (mark_stack): Impose Lisp_Object alignment on jmp_buf.
3467 2006-11-12  Juanma Barranquero  <lekktu@gmail.com>
3469         * coding.c (Fencode_sjis_char, Fencode_big5_char):
3470         Improve argument/docstring consistency.
3472         * editfns.c (Fmessage): Doc fixes.
3474         * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
3476 2006-11-12  Chong Yidong  <cyd@stupidchicken.com>
3478         * xmenu.c (popup_activated): Define outside HAVE_MENUS.
3480 2006-11-12  Romain Francoise  <romain@orebokech.com>
3482         * xselect.c (selection-coding-system): Fix docstring.
3484 2006-11-12  Juanma Barranquero  <lekktu@gmail.com>
3486         * category.c (Fchar_category_set): Improve arg/docstring consistency.
3488         * data.c (Flogxor):
3489         * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
3490         (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
3491         (Fstring_make_unibyte): Fix typos in docstrings.
3493 2006-11-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3495         * xterm.h (struct x_display_info): Fix indentation.
3497         * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
3498         (x_check_fullscreen): Call do_ewmh_fullscreen.
3499         (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
3501         * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
3503         * term.c: Define fullscreen_hook.
3504         (syms_of_term): Initialize fullscreen_hook to NULL.
3506         * termhooks.h: Add fullscreen_hook.
3508 2006-11-08  Juanma Barranquero  <lekktu@gmail.com>
3510         * bytecode.c (Fbyte_code):
3511         * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
3513 2006-11-06  Juanma Barranquero  <lekktu@gmail.com>
3515         * lread.c (syms_of_lread):
3516         * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
3518 2006-11-06  Martin Rudalics  <rudalics@gmx.at>
3520         * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
3522         * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
3523         Return nil if building without menus.
3525         * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
3526         Return nil if building without menus.
3528 2006-11-05  Mark Davies  <mark@mcs.vuw.ac.nz>  (tiny change)
3530         * s/netbsd.h (POSIX_SIGNALS): Define.
3532 2006-11-05  Martin Rudalics  <rudalics@gmx.at>
3534         * macmenu.c (Fmenu_or_popup_active_p): New function.
3535         (syms_of_macmenu): Defsubr it.
3537         * w32menu.c (Fmenu_or_popup_active_p): New function.
3538         (syms_of_w32menu): Defsubr it.
3539         (popup_activated_flag, popup_activated): Remove.
3541         * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
3542         check popup_activated.
3544         * xmenu.c (Fmenu_or_popup_active_p): New function.
3545         (syms_of_xmenu): Defsubr it.
3547 2006-11-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3549         * unexmacosx.c (malloc_cookie): Remove unused variable.
3550         (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
3551         (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
3552         (emacs_zone, data_segment_old_fileoff, data_segment_scp)
3553         (num_unexec_regions, unexec_regions): Make variables static.
3554         (print_regions, find_emacs_zone_regions): Make static.
3555         (unexec_region_info): New typedef.
3556         (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
3557         All uses changed.
3558         (unexec_regions_recorder): Subtract size of trailing null pages from
3559         filesize.  Show filesize.
3560         (unexec_regions_merge): Don't merge if null pages of preceding region
3561         is not too small.  Use long format in printf.
3562         (copy_segment, copy_data_segment): Show filesize.
3563         (copy_data_segment): Write filesize bytes of region data.
3564         Adjust filesize in segment command accordingly.
3565         (dump_it): Use long format in printf.
3567 2006-11-05  Juanma Barranquero  <lekktu@gmail.com>
3569         * dosfns.c (Finsert_startup_screen):
3570         * fns.c (Ffeaturep, syms_of_fns):
3571         * frame.c (syms_of_frame): Fix typos in docstrings.
3573         * unexcw.c (unexec): Fix typo in output message.
3575 2006-11-04  Ralf Angeli  <angeli@caeruleus.net>
3577         * w32fns.c (w32_createwindow): Remove code for handling -geometry
3578         command line option and `initial-frame-alist' which is superfluous
3579         after the last change to `w32_createwindow'.
3581 2006-11-04  Slawomir Nowaczyk  <slawek@cs.lth.se>  (tiny change)
3583         * w32proc.c (sys_wait): Only wait for processes with fd<0.
3584         Others should be handled by sys_select instead.  Fixes problems
3585         with (progn (start-process "" nil "ls") (call-process "ls")).
3587 2006-11-04  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
3589         * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
3590         avoid gcc 2.95 error.
3592 2006-11-04  Chong Yidong  <cyd@stupidchicken.com>
3594         * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
3595         wicon is null, insert an empty button.
3597 2006-11-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3599         * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
3600         window.
3602 2006-11-02  Juanma Barranquero  <lekktu@gmail.com>
3604         * emacs.c (Fkill_emacs): Fix typo in docstring.
3606 2006-11-02  Nozomu Ando  <nand@mac.com>
3608         * unexmacosx.c (mach_header, segment_command, vm_region, section)
3609         [_LP64]: New defines.
3610         (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
3611         (MH_MAGIC) [_LP64]: Redefine.
3612         (delta): Remove variable.
3613         (curr_file_offset, pagesize): New variables.
3614         (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
3615         (data_segment_old_fileoff): Initialize explicitly.
3616         (print_region, unexec_regions_recorder, print_load_command_name)
3617         (copy_segment, copy_data_segment): Use long format in printf.
3618         (MAX_UNEXEC_REGIONS): Increase to 400.
3619         (unexec_regions_recorder): Don't warn too many regions here.
3620         (find_emacs_zone_regions): Warn too many regions here.
3621         (print_load_command_name) [_LP64]: Show correct load command name.
3622         (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
3623         Show starting virtual memory address.  Don't show ending file offset.
3624         (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
3625         (dump_it): Use new local variable `linkedit_delta' and pass to them.
3626         Error if trying to handle multiple DATA segments.
3627         (unexec): Initialize variable `pagesize'.
3629 2006-11-01  Juanma Barranquero  <lekktu@gmail.com>
3631         * eval.c (Fcatch): Doc fix.
3633 2006-10-31  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3635         * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
3636         (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
3637         (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
3638         (xpm_load_image): Add const qualifier to arguments.
3639         [MAC_OS] (xpm_color_key_strings): Make static const.
3641         * mac.c (create_apple_event_from_event_ref)
3642         (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
3643         (parse_include_file, parse_binding, parse_component)
3644         (parse_resource_name, parse_value, parse_resource_line)
3645         (xrm_merge_string_database, xrm_get_resource)
3646         (xrm_get_preference_database): Add const qualifier to arguments.
3647         [MAC_OSX] (sys_select): Make variable `context' static const.
3649         * macfns.c (mac_color_map): Make static const.
3650         (mac_color_map_lookup): Add const qualifier to arguments.
3652         * macmenu.c (install_menu_quit_handler): Make variable `typesList'
3653         static const.
3654         (name_is_separator): Add const qualifier to arguments.
3656         * macselect.c (init_service_handler): Make variable `specs' static
3657         const.
3659         * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
3660         `swap_nibbles' static const.
3661         (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
3662         `tags', `sizes', `values' static const.
3663         (mac_draw_string_common): Make variables `context' static.
3664         Make variables `tags', `sizes', and `values' static const.
3665         (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
3666         (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
3667         (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
3668         (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
3669         (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
3670         qualifier to arguments.
3671         (xlfd_scalable_fields, keycode_to_xkeysym_table)
3672         (fn_keycode_to_keycode_table): Make static const.
3673         (mac_load_query_font): Make variables `tags', `sizes', `values',
3674         `types', and `selectors' static const.
3675         (mac_handle_command_event, mac_handle_window_event):
3676         Make variables `names' and `types' static const.
3677         (init_command_handler, install_window_handler): Make variables
3678         `specs*' static const.
3679         (mac_handle_font_event, mac_handle_text_input_event)
3680         (mac_store_service_event): Make variables `names' and `types'
3681         const.  Make variables `names_*' and `types_*' static const.
3683         * macterm.h (create_apple_event_from_event_ref)
3684         (create_apple_event_from_drag_ref, xrm_merge_string_database)
3685         (xrm_get_resource, xrm_get_preference_database): Add const
3686         qualifier to arguments in externs.
3688 2006-10-31  Kenichi Handa  <handa@m17n.org>
3690         * xfns.c (xic_create_xfontset): Fix previous change.
3692 2006-10-30  Chong Yidong  <cyd@stupidchicken.com>
3694         * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
3695         /usr/pkg/lib to library search path.
3697 2006-10-29  Mark Davies  <mark@mcs.vuw.ac.nz>  (tiny change)
3699         * ralloc.c (relinquish): Use a long for excess space counter to
3700         handle 64-bit case correctly.
3702 2006-10-29  Jeramey Crawford  <jeramey@jeramey.com>
3704         * m/amdx86-64.h: Add defines for OpenBSD x86-64.
3706 2006-10-29  Juanma Barranquero  <lekktu@gmail.com>
3708         * window.c (Fdisplay_buffer): Fix typo in docstring.
3710 2006-10-27  Ben North  <ben@redfrontdoor.org>  (tiny change)
3712         * w32term.c (x_draw_glyph_string_foreground): Set background mode
3713         to TRANSPARENT before using overstrike to simulate bold faces.
3715         * xfaces.c (best_matching_font): Fix logic to decide whether to
3716         use overstriking to simulate bold-face (it was reversed).
3718 2006-10-23  Kim F. Storm  <storm@cua.dk>
3720         * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
3721         initialized.
3723         * keyboard.c (read_char): Make an element (t . EVENT) in
3724         unread-command-events add EVENT to the current command's key sequence.
3725         (syms_of_keyboard) <unread-command-events>: Update doc.
3727 2006-10-21  Richard Stallman  <rms@gnu.org>
3729         * minibuf.c (Vread_expression_map): Define here.
3730         (Qread_expression_history): New variable.
3731         (syms_of_minibuf): Initialize them.
3732         (Feval_minibuffer): Use Vread_expression_map and
3733         Qread_expression_history.
3735 2006-10-21  Kenichi Handa  <handa@m17n.org>
3737         * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
3738         card, change it to "*".
3739         (xic_create_xfontset): Call XCreateFontSet for each single
3740         fontname in fontsetname.
3742 2006-10-19  Chong Yidong  <cyd@stupidchicken.com>
3744         * callint.c (callint_message): Convert to a Lisp string.
3745         (syms_of_callint): Initialize it.
3746         (callint_message_size): Var deleted.
3747         (Fcall_interactively): Use Fformat instead of doprnt to construct
3748         prompt string.
3750 2006-10-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3752         * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
3754 2006-10-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3756         * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
3757         New variable.
3758         (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
3760 2006-10-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3762         * xselect.c (x_handle_selection_request): If the converted_selection
3763         is nil or XCDR (converted_selection) is nil, decline the request.
3765 2006-10-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3767         * gtkutil.c (get_utf8_string): Remove warnings with casts.
3768         (xg_tool_bar_button_cb): Ditto.
3769         (xg_tool_bar_callback): Ditto.
3771 2006-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3773         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
3774         variable ch_dim.
3775         (adjust_frame_glyphs_for_window_redisplay): Likewise.  Don't allocate
3776         menu bar window matrices on non-X systems.
3778         * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
3780         * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
3781         adjustment is needed.
3782         (mac_load_query_font): Check if width and height are positive.
3784 2006-10-14  Richard Stallman  <rms@gnu.org>
3786         * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
3788 2006-10-13  Chong Yidong  <cyd@stupidchicken.com>
3790         * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
3791         title.
3793 2006-10-12  Chong Yidong  <cyd@stupidchicken.com>
3795         * keymap.c (Fkey_binding): Check Lisp_Object types before doing
3796         XCAR and XINT.
3798 2006-10-12  Romain Francoise  <romain@orebokech.com>
3800         * image.c (xbm_read_bitmap_data): Delete extra semicolon.
3802 2006-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
3804         * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
3806         * dispextern.h: Declare x_create_bitmap_from_xpm_data.
3808         * xterm.c (x_check_expected_move): Remove unused var `count'.
3810         * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
3811         Fdefalias is not declared in any *.h file.
3813 2006-10-09  Chong Yidong  <cyd@stupidchicken.com>
3815         * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
3817         * keyboard.c (command_loop_1): Handle non-number values of
3818         `minibuffer-message-timeout'.
3819         (Fexecute_extended_command): Fix typo.
3821         * minibuf.c (temp_echo_area_glyphs): Sit for
3822         `minibuffer-message-timeout' seconds.
3824 2006-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3826         * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
3827         Add argument OVERSTRIKE_P.
3828         (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
3829         Support overstrike.
3830         (mac_draw_string, mac_draw_string_16): Remove functions.
3831         (x_draw_glyph_string_foreground): Use overstrike when needed.
3832         (x_draw_composite_glyph_string_foreground): Likewise.
3833         Use mac_draw_image_string_16 instead of mac_draw_string_16.
3834         (mac_load_query_font): Rename from XLoadQueryFont.  Take argument
3835         F instead of DPY.  All uses changed.  Don't save/restore font.
3837 2006-10-07  Ralf Angeli  <angeli@caeruleus.net>
3839         * w32fns.c (w32_createwindow): Honour left and top positions if
3840         supplied explicitly.
3842 2006-10-06  Kim F. Storm  <storm@cua.dk>
3844         * xdisp.c (pos_visible_p): Fix value when EOB is visible.
3846 2006-10-05  Chong Yidong  <cyd@stupidchicken.com>
3848         * frame.c (Qinhibit_face_set_after_frame_default): New var.
3849         (syms_of_frame): Initialize it.
3850         (x_set_frame_parameters): Avoid resetting :font attributes to the
3851         new-frame defaults.
3853 2006-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
3855         * lisp.h (clear_regexp_cache): Declare.
3857         * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
3858         (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
3859         (clear_regexp_cache): Only flush those regexps which depend on
3860         a syntax-table.
3862         * regex.c (regex_compile): Set the new `used_syntax' bit.
3864         * regex.h: Remove file local variables.
3865         (struct re_pattern_buffer): New field `used_syntax'.
3867 2006-10-03  Kim F. Storm  <storm@cua.dk>
3869         * process.c (list_processes_1): Run sentinels before removing dead
3870         processes.  Also remove `closed' network connections.
3872 2006-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
3874         * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
3876 2006-09-30  Eli Zaretskii  <eliz@gnu.org>
3878         * config.in: Regenerated.
3880 2006-09-29  Juri Linkov  <juri@jurta.org>
3882         * buffer.c (syms_of_buffer): Reorder coding systems in the
3883         docstring of %z to the real order displayed in the modeline.
3885 2006-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
3887         * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
3889 2006-09-26  Chong Yidong  <cyd@stupidchicken.com>
3891         * indent.c (Fvertical_motion): Do move back if the Lisp string
3892         being displayed contains newlines.
3894 2006-09-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3896         * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
3897         [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
3899 2006-09-26  Kenichi Handa  <handa@m17n.org>
3901         * keymap.c (Fsingle_key_description): For an invalid char, return
3902         "Invalid char code NNNNN".
3904 2006-09-25  Chong Yidong  <cyd@stupidchicken.com>
3906         * callint.c (Fcall_interactively): Doc fix.
3908 2006-09-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3910         * macterm.c (x_underline_at_descent_line): New variable.
3911         (syms_of_macterm): DEFVAR_BOOL it.
3912         (x_draw_glyph_string): Use it.
3913         (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
3915 2006-09-25  Kenichi Handa  <handa@m17n.org>
3917         * keymap.c (Fsingle_key_description): Return unique names for
3918         generic characters.
3920 2006-09-24  Richard Stallman  <rms@gnu.org>
3922         * search.c (compile_pattern_1): Don't BLOCK_INPUT.
3924 2006-09-24  Eli Zaretskii  <eliz@gnu.org>
3926         * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
3927         Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
3929         * w32proc.c (nl_langinfo): New function.
3931         * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
3932         (w32-pass-lwindow-to-system, w32-enable-num-lock)
3933         (w32-enable-caps-lock, w32-scroll-lock-modifier)
3934         (w32-lwindow-modifier, w32-rwindow-modifier)
3935         (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
3937 2006-09-23  Juanma Barranquero  <lekktu@gmail.com>
3939         * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
3940         (Fdisplay_completion_list): Fix typos in docstrings.
3942 2006-09-23  Romain Francoise  <romain@orebokech.com>
3944         * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
3946 2006-09-23  Kenichi Handa  <handa@m17n.org>
3948         * keymap.c (Fmap_keymap): Docstring mentions about generic character.
3950 2006-09-22  Stefan Monnier  <monnier@iro.umontreal.ca>
3952         * regex.c (analyse_first): For eight-bit-control chars, mark both the
3953         char's value and its leading byte in the fastmap.
3954         (re_search_2): When fast-scanning without translation, be careful to
3955         check that we only match the leading byte of a multibyte char.
3957         * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
3958         byte sequence.
3959         (AT_CHAR_BOUNDARY): New macro.
3961 2006-09-22  Kenichi Handa  <handa@m17n.org>
3963         * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
3964         whose default value is non-nil.
3966 2006-09-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3968         * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
3969         Gtk+ versions < 2.10.
3971         * xfns.c (syms_of_xfns): Fix typo in help text for
3972         x-gtk-file-dialog-help-text.
3974 2006-09-21  Kim F. Storm  <storm@cua.dk>
3976         * fns.c (Fmemq): Refill doc string.
3977         (Fmemql): New defun, like memq but using eql.
3978         (syms_of_fns): Defsubr it.
3980 2006-09-20  Kim F. Storm  <storm@cua.dk>
3982         * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
3983         last visible glyph in window.
3985         * window.c (Fset_window_hscroll, Fwindow_line_height):
3986         Doc fix.  Use "off-window" instead of "off-screen".
3987         (Fpos_visible_in_window_p): Likewise.
3988         If POS is t, return info for last visible glyph in window.
3990 2006-09-19  Chong Yidong  <cyd@stupidchicken.com>
3992         * search.c (struct regexp_cache): New entry syntax_table.
3993         (compile_pattern_1): Set it.
3994         (syms_of_search): Initialize it.
3995         (compile_pattern): Require the syntax_table entry of the cache
3996         element to match the current syntax table entry.
3998 2006-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>
4000         * window.c (Fwindow_end): Fix recent change.
4002 2006-09-19  Kim F. Storm  <storm@cua.dk>
4004         * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
4005         Doc fix.  Use "off-screen" instead of "invisible".
4006         (Fwindow_line_height): Make line numbers 0-based.  Make line arg
4007         optional; if nil, use current cursor row.  Handle text terminals
4008         properly.  Return nil if non-interactive or pseudo-window.
4010 2006-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>
4012         * keymap.c: Include alloca.h if available.
4013         (Fkey_binding): Only use AREF after checking it's a vector.
4014         Remove unused var `window'.
4016 2006-09-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4018         * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
4019         inhibit_sentinels.
4021         * mac.c [!MAC_OSX] (select): Fix argument name.
4023         * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
4024         menu ID for Apple menu.
4025         (menubar_selection_callback): Remove function.
4026         (find_and_call_menu_selection): New function from xmenu.c.
4027         (x_activate_menubar): Use it.
4028         (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
4030         * macterm.c (menubar_selection_callback): Remove extern.
4031         (M_APPLE): Change to 234.
4032         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
4033         (do_menu_choice): Remove function.
4035         * macterm.h (struct mac_output): Remove member menubar_active.
4036         (do_menu_choice): Remove extern.
4037         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
4039 2006-09-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4041         * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
4042         x_gtk_file_dialog_help_text.
4044         * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
4045         to x-gtk-use-old-file-dialog.
4046         (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
4047         x_gtk_file_dialog_help_text.
4049         * xfns.c (syms_of_xfns): Ditto.
4051 2006-09-18  Kim F. Storm  <storm@cua.dk>
4053         * window.c (Fwindow_line_visibility): Remove.
4054         (Fwindow_line_height): New defun replacing it.
4055         (syms_of_window): Defsubr it.
4057 2006-09-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4059         * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
4060         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
4062 2006-09-17  Jay Belanger  <belanger@truman.edu>
4064         * gmalloc.c:
4065         * md5.c:
4066         * md5.h:
4067         * strftime.c: Replace "GNU Library General Public License" by "GNU
4068         General Public License" throughout.
4070 2006-09-17  Kim F. Storm  <storm@cua.dk>
4072         * dispnew.c (update_text_area): Undo 2000-07-18 change.
4073         Always redrawing whole row if line has mouse-face in it causes
4074         excessive flickering of the mode line.
4076 2006-09-17  Chong Yidong  <cyd@stupidchicken.com>
4078         * search.c (clear_regexp_cache): New function.
4080         * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
4082 2006-09-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4084         * gtkutil.c (xg_get_file_with_chooser):
4085         Check x-gtk-show-chooser-help-text before adding the help text.
4087         * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
4089         * gtkutil.c (get_utf8_string): Try harder to convert to UTF8.  Gtk+
4090         will simply crash if we fail.
4092 2006-09-16  Richard Stallman  <rms@gnu.org>
4094         * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
4096 2006-09-15  Kim F. Storm  <storm@cua.dk>
4098         * window.c (Fwindow_line_visibility): New defun for line-move-partial.
4099         (syms_of_window): Defsubr it.
4100         (Fwindow_end): Use window's buffer rather than current buffer.
4102 2006-09-15  Jay Belanger  <belanger@truman.edu>
4104         * COPYING: Replace "Library Public License" by "Lesser Public
4105         License" throughout.
4107 2006-09-15  David Kastrup  <dak@gnu.org>
4109         * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
4111         * keymap.c: include "window.h".
4112         (Fcommand_remapping): New optional POSITION argument.
4113         (Fkey_binding): New optional POSITION argument.  Completely rework
4114         handling of mouse clicks to get the same order of keymaps as
4115         `read-key-sequence' and heed POSITION.  Also temporarily switch
4116         buffers to location of mouse click and back.
4118         * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
4119         for additional argument.
4120         (parse_menu_item): Adjust call of `Fkey_binding' for additional
4121         argument.
4122         (read_key_sequence): If there are both `local-map' and `keymap'
4123         text properties at some buffer position, heed both.
4125         * keymap.h: Declare additional optional arguments of
4126         `Fcommand_remapping' and `Fkey_binding'.
4128 2006-09-15  Juanma Barranquero  <lekktu@gmail.com>
4130         * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
4132 2006-09-14  Andreas Schwab  <schwab@suse.de>
4134         * print.c: Whitespace fixup.
4136 2006-09-14  Kim F. Storm  <storm@cua.dk>
4138         * xdisp.c (produce_image_glyph): Automatically crop wide images at
4139         right window edge so we can draw the cursor on the same row to
4140         avoid confusing redisplay by placing the cursor outside the visible
4141         window area.
4143 2006-09-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4145         * xterm.c (x_initialize): Don't install Xt event timer here.
4146         (x_timeout_atimer_activated_flag): New var.
4147         (x_activate_timeout_atimer): New function to install Xt timer.
4148         (x_send_scroll_bar_event, x_process_timeouts): Use it.
4150         * xmenu.c (x_menu_set_in_use, popup_activate_callback)
4151         (create_and_show_popup_menu, create_and_show_dialog): Use it.
4153         * xterm.h (x_activate_timeout_atimer): Add prototype.
4155 2006-09-13  Richard Stallman  <rms@gnu.org>
4157         * print.c (print_string): When printcharfun is t,
4158         copy string contents and call strout on the copy.
4160         * keyboard.c (read_char): If end_time specified, don't put the
4161         event into this_command_keys.
4162         (read_key_sequence): If Voverriding_terminal_local_map is specified,
4163         don't check Voverriding_local_map at all.
4165 2006-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
4167         * textprop.c (Fnext_property_change, Fnext_single_property_change)
4168         (Fprevious_property_change, Fprevious_single_property_change):
4169         Avoid changing limit, so we can correctly catch the case where the
4170         property is constant up to limit.
4172 2006-09-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4174         * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4175         * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4176         Undo 2006-09-08 change.
4178 2006-09-11  Chong Yidong  <cyd@stupidchicken.com>
4180         * keymap.c (Fkey_binding): Use string position for string objects.
4182 2006-09-11  Kim F. Storm  <storm@cua.dk>
4184         * keymap.c (Fkey_binding): Fix last change.
4186         * editfns.c (Fmessage): Recommend using (message "%s" ...).
4188 2006-09-10  Chong Yidong  <cyd@stupidchicken.com>
4190         * keymap.c (Fkey_binding): Check for local keymap for mouse click
4191         events.
4193 2006-09-10  Kim F. Storm  <storm@cua.dk>
4195         * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
4196         and Vunread_post_input_method_events.
4198         * dispnew.c (Fredisplay): Document return value.
4200 2006-09-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4202         * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
4204         * gtkutil.c (xg_display_close): Always change default display if needed,
4205         check for < Gtk+ version 2.10 before calling gdk_display_close.
4207 2006-09-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4209         * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
4210         Make variable `ofds' static.  Remove variable `maxfd'.
4212         * macfns.c (Fx_file_dialog): Remove unused variable `f'.
4213         Call check_mac.
4215         * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
4216         * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
4217         Apply 2006-09-08 change for xmenu.c.
4219         * xfns.c (Fx_file_dialog): Call check_x.
4221 2006-09-10  Kim F. Storm  <storm@cua.dk>
4223         * xdisp.c (get_window_cursor_type): Use hollow cursor on
4224         non-transparent images.
4226 2006-09-09  Eli Zaretskii  <eliz@gnu.org>
4228         * editfns.c (Fsystem_name): Mention "host" in the doc string.
4229         (syms_of_editfns) <system-name>: Likewise.
4231 2006-09-08  Martin Rudalics  <rudalics@gmx.at>
4233         * xdisp.c (mouse_autoselect_window): Remove.
4234         (Vmouse_autoselect_window): New variable.  DEFVAR_LISP it.
4236         * dispextern.h (mouse_autoselect_window): Remove extern.
4237         (Vmouse_autoselect_window): Add extern.
4239         * macterm.c (XTread_socket): Test Vmouse_autoselect_window
4240         instead of mouse_autoselect_window.
4242         * msdos.c (dos_rawgetc): Likewise.
4244         * w32term.c (w32_read_socket): Likewise.
4246         * xterm.c (handle_one_xevent): Likewise.
4248 2006-09-08  Richard Stallman  <rms@gnu.org>
4250         * xdisp.c (Vmenu_updating_frame): Define here.
4251         (syms_of_xdisp): DEFVAR it here.
4252         (update_menu_bar): Always return hooks_run.
4253         Set Vmenu_updating_frame.
4255         * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
4256         before calculating SELECTED_FRAME.
4258         * xmenu.c (Vmenu_updating_frame): Don't define here.
4259         (syms_of_xmenu): Don't DEFVAR it here.
4261         * xterm.c (x_error_quitter): For BadName error, just return.
4263         * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
4265         * casetab.c (init_casetab_once): Call set_case_table.
4267         * emacs.c (shut_down_emacs): Set inhibit_sentinels.
4269         * process.c (inhibit_sentinels): New variable.
4270         (exec_sentinel): Test inhibit_sentinels.
4271         (init_process): Initialize it.
4273         * process.h (inhibit_sentinels): Add decl.
4275         * search.c (looking_at_1, string_match_1, search_command):
4276         Make syntax table's canon table point to eqv table.
4278 2006-09-08  Andreas Schwab  <schwab@suse.de>
4280         * print.c (strout): Fix whitespace.
4282 2006-09-08  Kim F. Storm  <storm@cua.dk>
4284         * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
4286 2006-09-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4288         * mac.c [!MAC_OSX]: Don't include keyboard.h.
4289         [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
4290         in the same BLOCK_INPUT block, in case that some input has already
4291         been read asynchronously.  Pretend to be interrupted by a signal
4292         if some input is available.
4293         [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
4294         (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
4295         Now used for ReceiveNextEvent timeout instead of select timeout.
4296         (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
4297         [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
4298         support.  Quit event loop.
4299         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
4300         connect support.  Reuse previously allocated CFRunLoopSource.
4301         (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
4302         (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
4304         * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4305         Specify kWindowAsyncDragAttribute.
4307         * macterm.c (mac_handle_origin_change, mac_handle_size_change)
4308         (mac_get_ideal_size): New functions.
4309         (x_set_offset, x_set_window_size, x_make_frame_visible)
4310         (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
4311         (install_window_handler, mac_handle_window_event)
4312         [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
4313         kEventWindowBoundsChanged.
4314         (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
4315         DragWindow.
4317 2006-09-07  Andreas Schwab  <schwab@suse.de>
4319         * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
4320         use lib64 instead of lib.
4322 2006-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
4324         * Makefile.in: Avoid double quotes when possible.
4326 2006-09-06  Kenichi Handa  <handa@m17n.org>
4328         * editfns.c (Fformat_time_string): Use make_unibyte_string to make
4329         a Lisp string from the result of emacs_memftimeu call.
4331 2006-09-06  Kim F. Storm  <storm@cua.dk>
4333         * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
4334         so calculate heights even when pos-visible-in-window-p is called
4335         with partially = t.  Don't overshoot last_visible_y in move_it_to.
4336         Return row height and row number in new rowh and vpos args.
4337         (cursor_row_fully_visible_p): First line is always "fully visible".
4338         (try_window): Don't clear matrix if vscrolled.
4340         * lisp.h (pos_visible_p): Update prototype.
4342         * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
4343         Return row height and row number for partially visible rows.
4344         Modify return value to a 2 element list for fully visible rows and
4345         6 for partially visible row.
4346         (window_scroll_pixel_based): Use pos_visible_p directly instead of
4347         Fpos_visible_in_window_p.  Fix auto vscrolling for partially
4348         visible lines.  Only vscroll backwards if already vscrolled
4349         forwards.  Unconditionally vscroll forwards if PT is first (and
4350         only) line.  Set new window start instead of scrolling at
4351         start/end of tall line.
4353 2006-09-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4355         * macterm.c (install_window_handler, mac_handle_window_event)
4356         [USE_CARBON_EVENTS]: Handle kEventWindowClose.
4357         [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
4358         ASCII keystroke event.
4360 2006-09-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4362         * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
4363         the file chooser message.  Only call gtk_file_chooser_set_current_name
4364         when action is SAVE.
4366 2006-09-04  Andreas Schwab  <schwab@suse.de>
4368         * Makefile.in: Double all single and back quotes in C-style
4369         comments to help fontifier.
4371 2006-09-03  Jason Rumney  <jasonr@gnu.org>
4373         * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
4374         (globals_of_w32): Register it as a signal handler.
4376 2006-09-02  Juri Linkov  <juri@jurta.org>
4378         * marker.c (Fmarker_position): Doc fix.
4380 2006-09-03  Eli Zaretskii  <eliz@gnu.org>
4382         * window.c (syms_of_window) <split-height-threshold>:
4383         <window-min-height, window-min-width>: Doc fix.
4385 2006-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4387         * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
4388         for writing files.  Call gtk_file_chooser_set_current_name to keep
4389         default filename.
4391         * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
4393 2006-09-02  Jindrich Makovicka  <makovick@gmail.com>  (tiny change)
4395         * fns.c (concat) [__GNUC__]: Declare with
4396         `__attribute__((noinline))'.
4398         * eval.c (apply1, call2) [__GNUC__]: Declare with
4399         `__attribute__((noinline))'.
4401 2006-09-02  Stuart D. Herring  <herring@lanl.gov>
4403         * minibuf.c (Finternal_complete_buffer): New function.
4404         (syms_of_minibuf): Defsubr it.
4405         (Fread_buffer): Use it, instead of Vbuffer_alist.
4407 2006-09-01  Martin Rudalics  <rudalics@gmx.at>
4409         * buffer.h (struct buffer_text): New field chars_modiff.
4410         (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
4411         * buffer.c (Fbuffer_chars_modified_tick): New function returning
4412         value of BUF_CHARS_MODIFF.
4413         (syms_of_buffer): Defsubr it.
4414         (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
4415         * insdel.c (modify_region): New argument preserve_chars_modiff.
4416         Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
4417         (insert_1_both, insert_from_string_1, insert_from_buffer_1)
4418         (adjust_after_replace, adjust_after_replace_noundo)
4419         (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
4420         * lisp.h (modify_region): Add fourth argument in extern.
4421         * casefiddle.c (casify_region): Call modify_region with fourth
4422         argument zero to assert that CHARS_MODIFF is updated.
4423         * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4424         (Ftranspose_regions): Likewise.
4425         * textprop.c (Fadd_text_properties, Fset_text_properties)
4426         (Fremove_text_properties, Fremove_list_of_text_properties):
4427         Call modify_region with fourth argument 1 to avoid that
4428         CHARS_MODIFF is updated.
4430 2006-08-31  Richard Stallman  <rms@gnu.org>
4432         * editfns.c (Fformat): Don't sign-extend for %o or %x.
4434 2006-08-29  Chong Yidong  <cyd@stupidchicken.com>
4436         * indent.c (Fvertical_motion): Don't move back if we were
4437         displaying a Lisp string, either.
4439 2006-08-28  Kim F. Storm  <storm@cua.dk>
4441         * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
4442         Don't attempt to replace cursor on image glyphs.
4444 2006-08-28  Kenichi Handa  <handa@m17n.org>
4446         * coding.c (Fdetect_coding_region, Fdetect_coding_string):
4447         Fix docstring about ISO-2022 control characters.
4449 2006-08-28  Kim F. Storm  <storm@cua.dk>
4451         * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
4452         with a hollow box cursor if image is larger than 32x32 (or the default
4453         frame font if that is bigger).  Replace any other cursor on images
4454         with hollow box cursor, as redisplay doesn't support bar and hbar
4455         cursors on images.
4457 2006-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4459         * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
4460         change.  Move mutex lock/unlock operations inside BLOCK_INPUT.
4462         * dired.c (directory_files_internal_unwind, directory_files_internal)
4463         (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
4465         * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
4466         of OSErr.
4468         * keyboard.c (in_sighandler): Remove variable.
4469         (Fcurrent_idle_time): Add missing `doc:'.
4470         (input_available_signal, init_keyboard): Undo previous change.
4472         * keyboard.h (in_sighandler): Remove extern.
4474         * mac.c (create_apple_event_from_event_ref, select)
4475         (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
4476         (Fmac_set_file_type, cfstring_create_normalized)
4477         (mac_get_system_locale, select_and_poll_event, sys_select):
4478         Use OSStatus instead of OSErr.
4480         * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
4481         Don't use FRAME_FILE_NAME.  Use (FS)UpdateAlias.
4482         (Fx_create_frame): Apply 2006-07-03 for xfns.c.
4484         * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
4485         (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
4486         (get_scrap_private_timestamp, get_scrap_target_type_list)
4487         (x_own_selection, x_get_foreign_selection)
4488         (Fx_disown_selection_internal, Fx_selection_owner_p)
4489         (Fx_selection_exists_p): Use OSStatus instead of OSErr.
4491         * macterm.c (mac_draw_string_common, mac_query_char_extents)
4492         (x_iconify_frame, XLoadQueryFont, install_window_handler)
4493         (mac_handle_command_event, init_command_handler, init_menu_bar):
4494         Use OSStatus instead of OSErr.
4495         (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
4496         FRAME_FILE_NAME.
4497         (x_query_font): Apply 2006-08-04 change for xterm.c.
4498         (Qhi_command): Rename from Qhicommand.  All uses changed.
4500         * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
4501         file_name.
4502         (FRAME_FILE_NAME): Remove macro.
4503         (install_window_handler, create_apple_event_from_event_ref):
4504         Return OSStatus instead of OSErr.
4506 2006-08-26  Kim F. Storm  <storm@cua.dk>
4508         * buffer.c (Fset_buffer_multibyte):
4509         * editfns.c (Fcurrent_time, Fget_internal_run_time):
4510         * macfns.c (Fxw_color_values):
4511         * w32fns.c (Fxw_color_values):
4512         * xfns.c (Fxw_color_values): Simplify; use list3.
4514         * fileio.c (Fmake_directory_internal, Fdelete_directory)
4515         (Fdelete_file): Simplify; use list1.
4516         (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
4517         Simplify; remove NO_ARG_ARRAY stuff, use list2.
4519 2006-08-25  Richard Stallman  <rms@gnu.org>
4521         * buffer.c (Fswitch_to_buffer): Fix previous change.
4523 2006-08-25  Kim F. Storm  <storm@cua.dk>
4525         * keyboard.c (Fcurrent_idle_time): Simplify.
4527 2006-08-25  Richard Stallman  <rms@gnu.org>
4529         * fns.c (sxhash_string): Rotate properly; don't lose bits.
4531 2006-08-24  Francesc Rocher  <francesc.rocher@gmail.com>
4533         * xdisp.c (overline_margin): New variable.
4534         (x_produce_glyphs): Use it.
4535         (syms_of_xdisp): DEFVAR_INT it.
4537         * xterm.c (x_underline_at_descent_line): New variable.
4538         (syms_of_xterm): DEFVAR_BOOL it.
4539         (x_draw_glyph_string): Use it.
4540         Draw underline and overline up to the end of line if the face
4541         extends to the end of line.
4543         * macterm.c: Likewise.
4545         * w32term.c: Likewise.
4547 2006-08-24  Nick Roberts  <nickrob@snap.net.nz>
4549         * buffer.c (Fswitch_to_buffer): Move buffer to front of
4550         buffer-alist if necessary.
4552 2006-08-22  Kim F. Storm  <storm@cua.dk>
4554         * xdisp.c (update_tool_bar): Redisplay toolbar also when only
4555         number of items changes.
4557 2006-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
4559         * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
4561 2006-08-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4563         * keyboard.c: Clarify difference between in_sighandler and
4564         handling_signal.
4566 2006-08-21  Kim F. Storm  <storm@cua.dk>
4568         * macterm.c (x_draw_stretch_glyph_string):
4569         * w32term.c (x_draw_stretch_glyph_string):
4570         * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
4571         stretch glyph in left marginal areas on header and mode lines.
4573 2006-08-21  Kenichi Handa  <handa@m17n.org>
4575         * keyboard.c (syms_of_keyboard): Docstring of
4576         Vunread_post_input_method_events and Vunread_input_method_events
4577         fixed.
4579 2006-08-20  Chong Yidong  <cyd@stupidchicken.com>
4581         * keyboard.c (show_help_echo): Preserve mouse movement flag if
4582         tracking mouse.
4584 2006-08-20  Richard Stallman  <rms@gnu.org>
4586         * xfaces.c (load_pixmap): Add quotes in error message.
4588         * keyboard.c (Fcurrent_idle_time): New function.
4589         (syms_of_keyboard): defsubr it.
4591 2006-08-18  Nick Roberts  <nickrob@snap.net.nz>
4593         * window.c (Fset_window_fringes): Do nothing on a tty.
4594         (Fwindow_fringes): Put ? operator after the line break.
4596 2006-08-16  Andreas Schwab  <schwab@suse.de>
4598         * print.c (debug_output_compilation_hack): Fix return type.
4600 2006-08-16  Richard Stallman  <rms@gnu.org>
4602         * print.c (debug_output_compilation_hack): New function.
4604 2006-08-16  Kenichi Handa  <handa@m17n.org>
4606         * fileio.c (choose_write_coding_system): Use LF for end-of-line
4607         in auto-saving.
4609 2006-08-15  Chong Yidong  <cyd@stupidchicken.com>
4611         * keyboard.c (read_char): Don't change idle timer state at all if
4612         end_time is supplied.
4614 2006-08-15  Kenichi Handa  <handa@m17n.org>
4616         * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET.  If SRC
4617         is exhausted, return with RET.
4618         (detect_coding_emacs_mule, detect_coding_iso2022)
4619         (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
4620         (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
4621         change.
4623 2006-08-14  Chong Yidong  <cyd@stupidchicken.com>
4625         * keyboard.c (read_char): Don't reset idle timers if a time limit
4626         is supplied.
4628 2006-08-14  Kim F. Storm  <storm@cua.dk>
4630         * .gdbinit (pitx): Print iterator position.
4631         Limit stack dump in case iterator is not initialized.
4633 2006-08-12  Eli Zaretskii  <eliz@gnu.org>
4635         * frame.c (Fmouse_position, Fmouse_pixel_position)
4636         (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
4638 2006-08-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4640         * xselect.c (Fx_register_dnd_atom): New function.
4641         (syms_of_xselect): Defsubr it.
4642         (x_handle_dnd_message): Check that message_type is in
4643         dpyinfo->x_dnd_atoms before generating lisp event.
4645         * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
4646         of drag and drop Atoms.
4648         * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
4650 2006-08-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4652         * keyboard.c: Define in_sighandler.
4653         (input_available_signal): Set in_sighandler.
4654         (init_keyboard): Initialize in_sighandler.
4656         * keyboard.h: Declare in_sighandler.
4658         * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
4659         to check if mutex should be locked or not.
4661 2006-08-09  Richard Stallman  <rms@gnu.org>
4663         * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
4664         (read_key_sequence): Always start fkey.start and fkey.end at 0,
4665         and likewise for keytran.
4667 2006-08-09  Kenichi Handa  <handa@m17n.org>
4669         * coding.c (syms_of_coding): Improve the docstring
4670         of file-coding-system-alist.
4672 2006-08-07  Andreas Schwab  <schwab@suse.de>
4674         * puresize.h (BASE_PURESIZE): Increase to 1120000.
4676 2006-08-06  Chong Yidong  <cyd@stupidchicken.com>
4678         * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
4679         (Fkill_all_local_variables): Use it.
4680         (syms_of_buffer): Defvar it.
4682 2006-08-05  Eli Zaretskii  <eliz@gnu.org>
4684         * w32.c (w32_valid_pointer_p): New function.
4686         * w32.h: Add prototype for w32_valid_pointer_p.
4688         * alloc.c: Include w32.h.
4689         (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
4690         the job.
4692         * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
4693         is exactly equal to end_time, not only when it is past that.
4695 2006-08-04  Chong Yidong  <cyd@stupidchicken.com>
4697         * keyboard.c (read_char): Rebalance specpdl after receiving jump.
4699         * process.c: Reapply 2006-08-01 change.
4701 2006-08-04  Eli Zaretskii  <eliz@gnu.org>
4703         * w32fns.c (w32_query_font): Fix last change: use stricmp.
4705 2006-08-04  Stefan Monnier  <monnier@iro.umontreal.ca>
4707         * editfns.c (Fsubst_char_in_region): Redo the setup work after running
4708         the before-change-functions since they may have altered the buffer.
4710 2006-08-04  Ralf Angeli  <angeli@caeruleus.net>
4712         * w32fns.c (w32_createwindow): Handle -geometry command line option
4713         and the geometry settings in the Registry.
4715 2006-08-04  Kenichi Handa  <handa@m17n.org>
4717         * w32fns.c (w32_query_font): Compare names by ignoring case.
4719         * xterm.c (x_query_font): Compare names by ignoring case.
4721 2006-08-03  Jason Rumney  <jasonr@gnu.org>
4723         * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
4724         when no option selected.
4726 2006-08-03  Chong Yidong  <cyd@stupidchicken.com>
4728         * process.c: Revert last change.
4730 2006-08-01  Kim F. Storm  <storm@cua.dk>
4732         * process.c (wait_reading_process_output_unwind): New function.
4733         Restores waiting_for_user_input_p to saved value.
4734         (wait_reading_process_output): Unwind protect waiting_for_user_input_p
4735         instead of save/restore old value on stack.
4737 2006-07-30  Thien-Thi Nguyen  <ttn@gnu.org>
4739         * editfns.c: Undo 2006-06-27 change.
4741 2006-07-29  Eli Zaretskii  <eliz@gnu.org>
4743         * coding.c (Ffind_operation_coding_system): Revert the change from
4744         2006-05-29.
4746         * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
4748 2006-07-28  Richard Stallman  <rms@gnu.org>
4750         * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
4751         Add conditional aborts for clarity.
4753         * xdisp.c (update_menu_bar): New arg HOOKS_RUN.  Callers changed.
4754         Used to avoid running the hooks over and over for each frame.
4755         (prepare_menu_bars): Pass value from update_menu_bar
4756         as HOOKS_RUN of next call.
4758         * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
4760 2006-07-28  Kim F. Storm  <storm@cua.dk>
4762         * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
4763         (valid_lisp_object_p): Use it to check for valid SUBRP obj.
4765 2006-07-26  Chong Yidong  <cyd@stupidchicken.com>
4767         * keyboard.c (read_char): New arg END_TIME specifying timeout.
4768         All callers changed.  Turn off echoing if END_TIME is non-NULL.
4769         (kbd_buffer_get_event): New arg END_TIME.
4771         * lread.c (read_filtered_event): New arg SECONDS to wait until.
4772         (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
4774         * lisp.h: Update read-char, read-event, and read_filtered_event
4775         prototypes.
4777         * keyboard.h: Include systime.h.  Update read_char prototype.
4779 2006-07-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4781         * alloc.c (find_string_data_in_pure): New function.
4782         (make_pure_string): Use it to reuse existing string data if possible.
4784         * puresize.h (BASE_PURESIZE): Decrease to 1102000.
4786 2006-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
4788         * keymap.c (Fdefine_key): If the key binding definition looks like an
4789         XEmacs-style key sequence, convert it to Emacs's format.
4791 2006-07-22  Ralf Angeli  <angeli@caeruleus.net>
4793         * w32fns.c (w32_createwindow): If `left' and/or `top' frame
4794         parameters are bound to some values, use that instead of
4795         CW_USEDEFAULT.
4797 2006-07-21  Eli Zaretskii  <eliz@gnu.org>
4799         * w32.c (convert_time): Use explicit long double constants to
4800         ensure long double arithmetics is used throughout.
4802 2006-07-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4804         * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
4805         (init_alloc_once): Initialize them.
4806         (pure_alloc): Allocate non-Lisp objects from the end of pure storage
4807         without alignment.
4809         * puresize.h (BASE_PURESIZE): Decrease to 1141000.
4811 2006-07-18  Francis Litterio  <franl@world.std.com>
4813         * w32term.c (x_calc_absolute_position): Fix frame positioning
4814         with negative X/Y coordinates.
4816 2006-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
4818         * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
4820         * textprop.c (text_read_only): Likewise.
4822         * lread.c (end_of_file_error): Likewise.
4824         * lisp.h (circular_list_error, memory_full, buffer_memory_full):
4825         Likewise.
4827         * eval.c (unwind_to_catch): Likewise.
4829         * buffer.h (buffer_slot_type_mismatch): Likewise.
4831 2006-07-18  Kim F. Storm  <storm@cua.dk>
4833         Cleanup Fsignal calls that never returns; now only use it for Qquit.
4835         * eval.c (xsignal): New func.  Like Fsignal, but marked no-return.
4836         (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
4837         (signal_error): New no-return function (from xfaces.c).
4838         (Fthrow): Use xsignal2 instead of Fsignal + abort.
4839         (error): Use xsignal1 instead of Fsignal + abort.
4840         (FletX, Flet, grow_specpdl): Use signal_error.
4841         (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
4843         * alloc.c (buffer_memory_full, memory_full): Use xsignal.  Remove loop.
4844         (list1): New function.
4846         * lisp.h (list1): Add EXFUN.
4847         (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
4848         Add prototypes.  Mark them as no-return.
4850         * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
4851         Use xsignal1.
4853         * callint.c (check_mark): Use xsignal0.
4855         * casefiddle.c (casify_object): wrong_type_argument is no-return.
4857         * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
4859         * coding.c (Fcheck_coding_system): Use xsignal1.  Remove loop.
4860         (Fdefine_coding_system_internal): Use xsignal1.
4862         * data.c (circular_list_error): Use xsignal.
4863         (wrong_type_argument): Use xsignal2.  Don't care about return value.
4864         (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
4865         Remove loop around Fsignal.
4866         (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
4867         (indirect_function, Findirect_function, Fstring_to_number)
4868         (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
4869         (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
4870         Use xsignal0.
4872         * doc.c (Fdocumentation): Use xsignal1.
4874         * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
4876         * fileio.c (report_file_error): Use xsignal.
4877         (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
4878         (Finsert_file_contents): Use xsignal2.
4879         (syms_of_fileio): Use list2, list3.
4881         * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
4882         (range_error2, domain_error2): Use xsignal3.
4883         (rounding_driver, fmod_float): Use xsignal0.
4884         (float_error): Use xsignal1.
4885         (matherr): Use xsignal.
4887         * fns.c (Flength): wrong_type_argument is no-return.
4888         (hashfn_user_defined, Fmake_hash_table): Use signal_error.
4889         (Fmd5): Use xsignal1.
4891         * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
4893         * keyboard.c (recursive_edit_1): Use xsignal1.
4895         * keymap.c (Fmap_keymap): Use xsignal1.
4897         * lread.c (Fload): Use xsignal2, signal_error.
4898         (end_of_file_error): Use xsignal0, xsignal1.
4899         (read0): Use xsignal1.
4900         (invalid_syntax): New error function marked no-return.
4901         (read_integer, read1, read_list): Use it.
4903         * macselect.c (x_get_local_selection): Use signal_error.
4905         * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
4907         * search.c (compile_pattern_1): Use xsignal1.
4908         (signal_failure): Remove (was only called once).
4909         (search_command): Use xsignal1 instead of signal_failure.
4911         * syntax.c (scan_lists): Use xsignal3.
4913         * textprop.c (text_read_only): Use xsignal0, xsignal1.
4915         * unexsol.c (unexec): Use xsignal.
4917         * window.c (window_scroll_pixel_based, window_scroll_line_based):
4918         Use xsignal0.
4920         * xfaces.c (signal_error): Move to eval.c.
4921         (resolve_face_name): Use xsignal1.
4923         * xfns.c (x_decode_color): Use signal_error.
4925         * xselect.c (x_get_local_selection, copy_multiple_data)
4926         (x_get_window_property_as_lisp_data)
4927         (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
4928         (Fx_get_cut_buffer_internal): Use signal_error.
4930 2006-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4932         * macterm.c (XTread_socket): Undo previous change.
4934 2006-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4936         * macterm.c (keycode_to_xkeysym): Remove function.  All uses now
4937         directly lookup keycode_to_xkeysym_table.
4938         [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
4939         ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
4940         (XTread_socket): Use character codes to construct keypad key events.
4941         (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
4942         (x_delete_display): Apply 2006-07-04 change for xterm.c.
4944 2006-07-17  Richard Stallman  <rms@gnu.org>
4946         * keyboard.c (Vcommand_error_function): New variable.
4947         (syms_of_keyboard): Defvar it.
4948         (cmd_error_internal): Simplify, and handle Vcommand_error_function.
4950         * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
4952 2006-07-17  Kim F. Storm  <storm@cua.dk>
4954         * xdisp.c (handle_single_display_spec): Ensure the right value of
4955         it->position is saved by push_it.
4956         (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
4957         (reseat_1): Don't setup it->object twice.
4958         (set_iterator_to_next): No need to set it->object after pop_it.
4959         (move_it_to): Explicitly check to see if last move reached to_charpos.
4961 2006-07-17  Thien-Thi Nguyen  <ttn@gnu.org>
4963         * xdisp.c (display_mode_line): Preserve match data.
4965 2006-07-14  Kim F. Storm  <storm@cua.dk>
4967         * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
4968         (init_winsock): Load them.  Use ws2_32.dll.
4969         (sys_listen): Undo last change.  Just set FILE_LISTEN flag.
4970         (sys_accept): Undo last change.  Instead, set child status to
4971         STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
4972         sys_select will wakeup the reader thread.
4973         (_sys_wait_accept): New function used by reader thread to wait for
4974         an incoming connection on a server socket.
4976         * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
4978         * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
4979         server socket (FILE_LISTEN flag).
4981 2006-07-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4983         * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
4985 2006-07-14  Kim F. Storm  <storm@cua.dk>
4987         * w32.c: Fix high cpu load for server sockets.
4988         (pfn_WSAEventSelect): New function ptr.
4989         (init_winsock): Load it.
4990         (sys_listen): Set FILE_LISTEN flag.  Set event mask for socket's
4991         char_avail event object to FD_ACCEPT.
4992         (sys_accept): Check FILE_LISTEN flag.  Set event mask on new
4993         socket's char_avail event object to FD_READ|FD_CLOSE.
4995         * w32.h (FILE_LISTEN): New filedesc flag value.
4997 2006-07-13  Kim F. Storm  <storm@cua.dk>
4999         * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
5000         Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
5001         Simplify loops and use CAR for Bnth and Belt.
5003         * data.c (Findirect_function): Optimize for no indirection.
5005         * eval.c (Fthrow): Remove loop around Fsignal.
5006         (Feval, Fapply, Ffuncall): Optimize for no function indirection.
5007         Use original function name in all signaled errors.
5008         Simplify Fsignal calls (no return).
5009         (funcall_lambda): Simplify Fsignal calls (no return).
5011 2006-07-13  Andreas Schwab  <schwab@suse.de>
5013         * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
5014         out_charpos.
5016 2006-07-13  Kenichi Handa  <handa@m17n.org>
5018         * editfns.c (Fformat): Fix calculation of text property positions
5019         of format string.
5021 2006-07-12  Kim F. Storm  <storm@cua.dk>
5023         * lisp.h (CHECK_TYPE): New macro for generic type checking.
5024         (CAR_SAFE, CDR_SAFE): New macros.
5025         (ARRAYP, CHECK_ARRAY): New macros.
5026         (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
5027         (CHECK_WINDOW_CONFIGURATION): New macro.
5028         (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
5029         (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
5030         (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
5031         (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
5032         (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
5033         (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
5034         (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
5035         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
5037         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
5038         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
5040         * callint.c (Fcall_interactively):
5041         * casefiddle.c (casify_object):
5042         * editfns.c (general_insert_function):
5043         * fns.c (Flength, Felt, Ffillarray):
5044         * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
5046         * data.c (wrong_type_argument): Remove loop around Fsignal.
5047         (Farrayp, Fsequencep): Use ARRAYP.
5048         (Fcar): Use CAR.
5049         (Fcar_safe): Use CAR_SAFE.
5050         (Fcdr): Use CDR.
5051         (Fcdr_safe): Use CDR_SAFE.
5052         (Fsetcar, Fsetcdr): Use CHECK_CONS.
5053         (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
5054         (Faset): Use CHECK_ARRAY.
5056         * fns.c (Felt): Use CHECK_ARRAY.
5057         (concat): Use CHECK_NUMBER.
5058         (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
5059         (Fmemq): Use CHECK_LIST.
5060         (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
5061         (assq_no_quit): Use CAR_SAFE.
5062         (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
5063         Use CHECK_LIST_CONS.
5064         (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
5066         * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
5068         * casetab.c (check_case_table):
5069         * category.c (check_category_table):
5070         * marker.c (Fcopy_marker):
5071         * syntax.c (check_syntax_table):
5072         * xfaces.c (load_pixmap): Use CHECK_TYPE.
5074         * fns.c (Fcopy_sequence, concat):
5075         * fringe.c (Fdefine_fringe_bitmap):
5076         * lread.c (check_obarray): Cleanup wrong_type_argument use.
5078         * keyboard.c (access_keymap_keyremap): Use ARRAYP.
5080         * keymap.c (Fdefine_key, Flookup_key):
5081         * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
5083         * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
5085         * search.c (Fset_match_data): Use CHECK_LIST.
5087         * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
5089         * window.c (Fwindow_configuration_frame, Fset_window_configuration):
5090         (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
5092 2006-07-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5094         * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
5096         * dired.c: Include blockinput.h.
5097         (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
5099         * editfns.c: Include blockinput.h.
5100         (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
5101         getpwuid/getpwnam.
5103         * fileio.c: Include blockinput.h.
5104         (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
5105         around getpwnam.
5106         (search_embedded_absfilename): Remove spurious xfree.
5108 2006-07-11  Kim F. Storm  <storm@cua.dk>
5110         * dispnew.c (sit_for): Reduce number of args from 5 to 3.
5111         Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
5112         Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
5113         Signal error if TIMEOUT is not a number.
5114         Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
5115         The rework of sit_for args also fixes several incorrect Qt args
5116         which should have been 1.
5117         (Fredisplay): Pass 1 instead of Qt to swallow_events and
5118         detect_input_pending_run_timers.
5120         * lisp.h (sit_for): Update prototype.
5121         (Fredisplay): Add EXFUN.
5123         * dispextern.h (sit_for): Remove prototype.
5125         * callint.c (Fcall_interactively):
5126         * minibuf.c (temp_echo_area_glyphs):
5127         * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
5128         * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
5130 2006-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
5132         * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
5134 2006-07-11  Kim F. Storm  <storm@cua.dk>
5136         * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
5137         input is available.  Fix test for redisplay_dont_pause non-nil.
5138         Specbind redisplay-dont-pause to t if FORCE non-nil.
5140 2006-07-10  Chong Yidong  <cyd@stupidchicken.com>
5142         * puresize.h (BASE_PURESIZE): Increment to 1211000.
5144         * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
5145         (Fsit_for): Function deleted.
5147         * keyboard.c (command_loop_1, Fexecute_extended_command):
5148         Call sit_for instead of Fsit_for.
5150         * minibuf.c (temp_echo_area_glyphs): Likewise.
5152 2006-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
5154         * syntax.c (Fforward_comment): Revert the reversion.
5155         (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
5157 2006-07-09  John Paul Wallington  <jpw@pobox.com>
5159         * syntax.c (Fforward_comment): Revert previous change.
5161 2006-07-09  Kim F. Storm  <storm@cua.dk>
5163         * window.c (Fforce_window_update): Doc fix.
5165 2006-07-08  Stephen Gildea  <gildea@stop.mail-abuse.org>
5167         * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
5168         directory unreadable for better user privacy.
5170 2006-07-07  Stefan Monnier  <monnier@iro.umontreal.ca>
5172         * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
5174         * lread.c (read_filtered_event): Remove `register' qualifier because it
5175         causes compilation problem with gcc-4.0.2-20051125 on amd64.
5176         (readevalloop): Remove unused var `bpos'.
5177         Yet another int/Lisp_Object mixup (YAILOM).
5179 2006-07-07  Eli Zaretskii  <eliz@gnu.org>
5181         * keyboard.c (Fexecute_extended_command): Mention the argument
5182         PREFIXARG in the doc string.
5184 2006-07-07  Kim F. Storm  <storm@cua.dk>
5186         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
5188 2006-07-05  Chong Yidong  <cyd@stupidchicken.com>
5190         * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
5191         clash detection using the base buffer.
5193         * puresize.h (BASE_PURESIZE): Increment to 1210500.
5195 2006-07-04  Kim F. Storm  <storm@cua.dk>
5197         * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
5199 2006-07-04  Kenichi Handa  <handa@m17n.org>
5201         * fontset.c (Fset_overriding_fontspec_internal): Check if we need
5202         to update Voverriding_fontspec_alist.
5204 2006-07-03  Richard Stallman  <rms@gnu.org>
5206         * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
5208         * xfaces.c (Fface_attribute_relative_p): Doc fix.
5210         * textprop.c (Fget_char_property_and_overlay): Doc fix.
5212         * eval.c (Fdefvaralias): Doc fix.
5214 2006-07-03  Kim F. Storm  <storm@cua.dk>
5216         * dispnew.c (sit_for): Fix preempt condition.
5218 2006-07-02  Stefan Monnier  <monnier@iro.umontreal.ca>
5220         * lread.c (read_filtered_event): Treat select-window just like
5221         switch-frame.
5223 2006-07-02  Kim F. Storm  <storm@cua.dk>
5225         * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
5226         to ever fit the tool-bar,
5227         (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
5228         (tool_bar_lines_needed): Use unused mode-line row as temp_row.
5229         (redisplay_tool_bar): Only clear desired matrix if we actually
5230         change the tool-bar window height.  Only try to make the tool-bar
5231         window bigger if there is actually room for it.
5233 2006-06-30  Ralf Angeli  <angeli@caeruleus.net>
5235         * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
5236         SPI_GETWORKAREA to find the dimensions of the screen work area,
5237         and adjust vertical position of the frame in order to avoid being
5238         covered by the task bar.
5240         * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
5241         f->left_pos and SH_SHOW instead of f->top_pos in the call to
5242         CreateWindow.  Record the actual position in f->left_pos and
5243         f->top_pos.
5245 2006-06-30  John Paul Wallington  <jpw@pobox.com>
5247         * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
5248         Doc fix - default value has changed.
5250 2006-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5252         * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
5254         * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
5256         * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
5258         * macterm.c (Qeql): Add extern.
5259         (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
5260         (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
5261         (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
5262         Change keys of Vmac_atsu_font_table from strings to numbers.
5263         (fm_style_to_face_attributes) [USE_ATSUI]: New function.
5264         (init_font_name_table) [USE_ATSUI]: Use it.
5265         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
5266         (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
5267         [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
5268         only when saved_ts_script_language_on_focus coincides with
5269         Vmac_ts_script_language_on_focus.
5270         [USE_MAC_TSM] (mac_tsm_suspend): Save value of
5271         Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
5272         (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
5273         [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
5275 2006-06-27  Chong Yidong  <cyd@stupidchicken.com>
5277         * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
5278         (Ffield_string_no_properties, Ffield_end): Mention
5279         args-out-of-range error condition in docstring.
5281 2006-06-27  Kim F. Storm  <storm@cua.dk>
5283         * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
5285 2006-06-25  Kim F. Storm  <storm@cua.dk>
5287         * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
5288         version 2.4 and later.
5290 2006-06-24  Chong Yidong  <cyd@stupidchicken.com>
5292         * xfns.c (Fx_create_frame): Set font parameter directly instead of
5293         using x_default_parameter, since x_get_args clears the parm alist.
5295 2006-06-24  Eli Zaretskii  <eliz@gnu.org>
5297         * dired.c (directory_files_internal) [WINDOWSNT]: Find files
5298         case-insensitively.
5300 2006-06-24  Aidan Kehoe  <kehoea@parhasard.net>
5302         * lread.c (read_escape): When an unknown Unicode code point is
5303         encountered as a string or character escape, signal an error.
5305 2006-06-23  Kim F. Storm  <storm@cua.dk>
5307         * .gdbinit (pitx): Dump iterator stack.
5309         * xdisp.c (handle_composition_prop): Push iterator on stack.
5310         (set_iterator_to_next): Pop iterator at end of composition.
5312 2006-06-23  Martin Rudalics  <rudalics@gmx.at>
5314         * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
5315         itself on DOS_NT platforms, if the old and new names are identical
5316         but for the letter-case.
5318 2006-06-21  Kim F. Storm  <storm@cua.dk>
5320         * dispextern.h (struct it): Add `position' member to iterator stack.
5321         Rename `pos' member to `current'.  Rearrange and add comments.
5323         * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
5324         if  we get any overlays.
5325         (set_cursor_from_row): Don't clobber `end' if we rescan from
5326         start_string.
5327         (push_it, pop_it): Save it->position.
5329 2006-06-19  Richard Stallman  <rms@gnu.org>
5331         * window.c (size_window): New arg FIRST_ONLY.  All callers changed.
5332         (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
5333         for the case of a top-level window and the following minibuffer.
5334         Don't exit because of no `next' when there is a parent.
5335         Use the FIRST_ONLY feature when resizing following windows.
5337         * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
5339 2006-06-17  Kim F. Storm  <storm@cua.dk>
5341         * dispnew.c (update_frame): Check for input pending on entry.
5342         (update_window, update_frame_1): Break loop if input is detected.
5344 2006-06-16  Francis Litterio  <flitterio@gmail.com>
5346         * xterm.c (x_check_expected_move, handle_one_xevent)
5347         (x_set_offset, x_check_fullscreen): Extensive changes to make
5348         frame positioning deterministic under X.
5350         * xterm.h (x_output): Add members left_before_move and
5351         top_before_move.  Removed members expected_left and expected_top.
5353 2006-06-16  Kim F. Storm  <storm@cua.dk>
5355         * dispextern.h (struct it): Add union to iterator stack to save
5356         image, composition, and stretch specific paramters.
5358         * xdisp.c (next_overlay_string): Fix assert.
5359         (push_it, pop_it): Handle composition and stretch specific values.
5360         Only handle it->slice in image (for now).
5361         (back_to_previous_visible_line_start): Continue search if newline is
5362         part of a compisition.  Simplify.
5363         (reseat_1): Set it->object to buffer.
5364         (set_iterator_to_next): Set it->object to string or buffer, when
5365         setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
5366         (next_element_from_composition): Set it->object to buffer if not
5367         from string.
5368         (set_cursor_from_row): Only save start of string if not already
5369         done to handle multiple strings in a row.
5371         * .gdbinit (pitx): Show composition parameters.
5372         (pgx, pg): New commands to print a glyph structure.
5373         (pgi, pgn): New commands to print specific/next glyph.
5374         (pgrowx, pgrow): New commands to print all glyphs in a row.
5376 2006-06-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5378         * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
5379         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
5381         * macterm.c (do_app_resume, do_app_suspend): Remove functions.
5382         (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
5383         (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
5384         (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
5385         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
5386         (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
5387         (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
5388         Services functions to get size of main display in pixels.
5390 2006-06-14  Chong Yidong  <cyd@stupidchicken.com>
5392         * xdisp.c (back_to_previous_visible_line_start):
5393         Reset it->continuation_lines_width.
5395 2006-06-14  Richard Stallman  <rms@gnu.org>
5397         * eval.c (Fdefconst): Mark variable as risky.
5399         * callproc.c (Fcall_process): Doc fix.
5401         * window.c (adjust_window_trailing_edge): Don't break out of the loop
5402         because there's no next window, if there are parallel windows.
5403         Do break out when WINDOW is nil.
5405 2006-06-14  Kim F. Storm  <storm@cua.dk>
5407         * dispextern.h (IT_STACK_SIZE): New macro specifying size of
5408         iterator stack (instead of hardcoded number).  Increase from 2 to
5409         4 to make room for propertized overlay strings before and after a
5410         display string, image or composition.
5411         (struct it): Add image_id and method members to iterator stack.
5413         * xdisp.c (init_from_display_pos): Don't set it->method and
5414         overlay_string_index after pop_it.  Add asserts.
5415         (handle_stop): Look for overlay strings around a display string,
5416         image, or composition.  Handle properties on those strings.
5417         (next_overlay_string): Don't set string, pos or method after pop_it.
5418         (get_overlay_strings_1): Split from get_overlay_strings; don't
5419         modify it if no overlay strings are found.
5420         (get_overlay_strings): Use get_overlay_strings_1.  Always set
5421         it->string and it->method.
5422         (push_it): Push it->image_id and it->method.  Push it->object
5423         instead of it->string if method is GET_FROM_IMAGE.
5424         (pop_it): Pop it->image_id and it->method.  Ppo it->object
5425         instead of it->string if method is GET_FROM_IMAGE.
5426         Reset it->current.string_pos if popped it->string is nil.
5427         (reseat_1): Remove comment dated 19 May 2003.  It expressed doubt
5428         whether a given change was correct; but the change is correct.
5429         Clear it->string_from_display_prop_p.
5430         (set_iterator_to_next): Rely on it->method and it->image_id from
5431         iterator stack, instead of setting them explicitly after pop_it.
5433         * dispnew.c (sit_for): Undo 2006-06-01 change.  Instead, a
5434         negative time forces redisplay even when input is available.
5435         (Fsit_for): Doc fix.
5437 2006-06-13  Kim F. Storm  <storm@cua.dk>
5439         * dispnew.c: Modify preemptive redisplay to be based on periodic
5440         checks for input.
5441         (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
5442         (Vredisplay_preemption_period): New variable.
5443         (syms_of_display): DEFVAR_LISP and initialize it.
5444         (preemption_period, preemption_next_check): New variables.
5445         (update_frame, update_single_window): Initialize them based on
5446         Vredisplay_preemption_period if !force_p.
5447         (update_window, update_frame_1): Use them to determine when to
5448         check for input.
5450 2006-06-03  Aidan Kehoe  <kehoea@parhasard.net>
5452         * lread.c (read_escape): Provide a Unicode character escape
5453         syntax; \u followed by exactly four or \U followed by exactly
5454         eight hex digits in a comment or string is read as a Unicode
5455         character with that code point.
5457 2006-06-09  Eli Zaretskii  <eliz@gnu.org>
5459         * window.c (window_scroll_pixel_based): Signal "Beginning of
5460         buffer" when scroll-down at the beginning of an empty buffer.
5462 2006-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5464         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
5465         Exclude 0x7f from ASCII range.
5467 2006-06-05  Jason Rumney  <jasonr@gnu.org>
5469         * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
5470         (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
5471         (x_scroll_bar_report_motion): Remove workarounds for
5472         versions of Windows NT < 3.51.
5473         [!SIF_ALL]: Remove.
5474         (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
5475         (w32_initialize): Don't dynamically load Get/SetScrollInfo.
5477 2006-06-04  David Kastrup  <dak@gnu.org>
5479         * dispnew.c: Mention `redisplay-dont-pause' in doc string of
5480         `sit-for'.
5482 2006-06-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5484         * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
5486         * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
5488         * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
5489         (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
5490         [USE_MAC_TSM]: Likewise.
5491         (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
5492         (Qbefore_string) [USE_MAC_TSM]: Add extern.
5493         (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
5494         ActivateTSMDocument/DeactivateTSMDocument.
5495         (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
5496         (mac_handle_window_event) [USE_MAC_TSM]: Handle
5497         kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
5498         (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
5499         (install_window_handler) [USE_MAC_TSM]: Install it.  Register
5500         kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
5501         (keycode_to_xkeysym_table): Add entry for f16.
5502         (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
5503         before/after passing keystroke event to toolbox dispatcher.
5504         (init_tsm) [USE_MAC_TSM]: New function.
5505         (mac_initialize) [USE_MAC_TSM]: Call it.
5506         (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
5508         * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
5510 2006-06-02  John Paul Wallington  <jpw@gnu.org>
5512         * xfns.c (x_set_name_internal): Set icon to `text', derived from
5513         name, when frame's icon_name isn't a string rather than only when
5514         it is nil.
5516 2006-06-03  Eli Zaretskii  <eliz@gnu.org>
5518         * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
5519         and not nil.
5521 2006-06-02  Chong Yidong  <cyd@stupidchicken.com>
5523         * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
5524         string.
5526 2006-06-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5528         * xdisp.c (next_element_from_composition): Set it->object to
5529         it->string if composition is coming from string.
5530         (set_cursor_from_row): Don't return 0 unless row displays a
5531         continued line.
5532         (dump_glyph): Dump composite glyph.
5534 2006-06-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5536         * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
5538 2006-06-01  Richard Stallman  <rms@gnu.org>
5540         * window.c (Fsplit_window): Doc fix.
5542 2006-06-01  Micha\e,Ak\e(Bl Cadilhac  <michael.cadilhac@lrde.org>
5544         * process.c (deleted_pid_list): New variable to store the pids
5545         of deleted processes.  Declare it only if SIGCHLD is defined.
5546         (init_process): Initialize it.
5547         (syms_of_process): Staticpro it.
5548         (Fdelete_process): Add pid of the deleted process to it.  Check after
5549         the addition and before the kill if the process is already stopped,
5550         in which case it is deleted from the list and not killed.
5551         (sigchld_handler): Define it only if SIGCHLD is.  Search the process
5552         that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
5553         Original idea by Stefan Monnier.
5555 2006-06-01  Kim F. Storm  <storm@cua.dk>
5557         * dispnew.c (sit_for): Perform redisplay even if input is pending
5558         when redisplay-dont-pause is non-nil.
5560 2006-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5562         * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
5563         (XTread_socket): Remove obsolete comment.
5565 2006-06-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5567         * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
5568         menu-bar-open.
5570 2006-06-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5572         * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
5573         menu-bar-open.
5575         * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
5577 2006-05-31  Juri Linkov  <juri@jurta.org>
5579         * minibuf.c (Vhistory_add_new_input): New variable.
5580         (read_minibuf): Use it.
5581         (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
5582         (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
5584 2006-05-31  Kim F. Storm  <storm@cua.dk>
5586         * process.c (select_wrapper): Add wrapper around select to work around
5587         "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
5588         select called from wait_reading_process_output.
5590 2006-05-30  Andreas Schwab  <schwab@suse.de>
5592         * xmenu.c (Fmenu_bar_start): Return a value.
5594 2006-05-30  Richard Stallman  <rms@gnu.org>
5596         * coding.c (Ffind_operation_coding_system): Doc fix.
5598 2006-05-30  Eli Zaretskii  <eliz@gnu.org>
5600         * w32term.c (x_draw_hollow_cursor): Fix last change.
5602 2006-05-29  Kim F. Storm  <storm@cua.dk>
5604         * w32term.c (x_draw_stretch_glyph_string): Fix last change.
5606 2006-05-29  Eli Zaretskii  <eliz@gnu.org>
5608         * coding.c (Ffind_operation_coding_system): Doc fix.
5610 2006-05-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5612         * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
5613         Call mac_set_font_info_for_selection if font panel is made visible.
5615         * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
5616         (mac_font_panel_visible_p, mac_show_hide_font_panel)
5617         [USE_MAC_FONT_PANEL]: New functions.
5618         [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection):
5619         Return immediately if font panel is not visible.
5621         * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
5622         Add externs.
5624 2006-05-29  Dan Nicolaescu  <dann@ics.uci.edu>
5626         * search.c (matcher_overflow): Mark as NO_RETURN.
5628         * xterm.c (x_connection_closed): Likewise.
5630         * sysdep.c (croak): Likewise.
5632         * sound.c (sound_perror, alsa_sound_perror): Likewise.
5634         * lisp.h (die, nsberror): Likewise.
5636 2006-05-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5638         * sound.c (alsa_open, alsa_configure, alsa_write):
5639         Move assignment to err out of if-statement.
5641         * gtkutil.c (menu_nav_ended): New function.
5642         (create_menus): Connect menu_nav_ended to "selection-done" to fix
5643         grabs.
5645         * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
5647 2006-05-28  Dan Nicolaescu  <dann@ics.uci.edu>
5649         * charset.h (invalid_character): Mark as NO_RETURN.
5651 2006-05-29  Kenichi Handa  <handa@m17n.org>
5653         * coding.c (Ffind_operation_coding_system): Call a function by
5654         safe_call1 instead of call1.
5656 2006-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
5658         * window.c (struct saved_window): Add `dedicated'.
5659         (Fset_window_configuration, save_window_save): Save/restore the
5660         `dedicated' flag.
5662 2006-05-28  Kim F. Storm  <storm@cua.dk>
5664         * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
5665         don't update w->cursor and return 0.  Return 1 on success.
5666         (try_cursor_movement): Repeat set_cursor_from_row on successive rows
5667         until it succeeds.
5669         * dispextern.h (set_cursor_from_row): Update prototype.
5671 2006-05-28  Kim F. Storm  <storm@cua.dk>
5673         * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
5674         parameters.  Adjust x and width in case cursor in on a partially
5675         visible stretch glyph on the left edge.
5676         (erase_phys_cursor): Don't erase into left fringe/margin in case
5677         previous cursor glyph is a partially visible stretch glyph on left.
5679         * dispextern.h (get_phys_cursor_geometry): Update prototype.
5681         * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
5682         cursor and erasing cursor on partially visible stretch glyph on left.
5683         (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
5685         * macterm.c: Likewise.
5687         * w32term.c: Likewise.
5689 2006-05-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5691         * macselect.c (mac_handle_apple_event):
5692         Return errAEEventNotHandled if key binding is not found.
5694 2006-05-26  Eli Zaretskii  <eliz@gnu.org>
5696         * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
5697         [__MINGW32__]: MinGW-specific declaration of `etext'.
5699         * w32heap.c (etext, edata): Remove unused definitions.
5701 2006-05-26  Chong Yidong  <cyd@stupidchicken.com>
5703         * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
5704         Incorporate the exclusive file-opening functionality into the behavior
5705         when OK-IF-ALREADY-EXISTS is nil.
5706         (Frename_file): Call Fcopy_file without MUSTBENEW argument.
5708 2006-05-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5710         * sound.c (alsa_configure): Move get period/buffer_size after
5711         setting hwparams.
5713 2006-05-26  Kenichi Handa  <handa@m17n.org>
5715         * coding.c (Ffind_operation_coding_system): Allow (FILENAME
5716         . BUFFER) in TARGET.
5718 2006-05-25  Chong Yidong  <cyd@stupidchicken.com>
5720         * image.c (png_load): Don't call fclose on NULL.
5722 2006-05-25  Luc Teirlinck  <teirllm@auburn.edu>
5724         * fns.c (Fyes_or_no_p):
5725         * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
5726         only seven args.
5728 2006-05-25  Juri Linkov  <juri@jurta.org>
5730         * lisp.h (Fread_from_minibuffer): Decrement number of args.
5732         * minibuf.c (read_minibuf): Remove arg KEEP_ALL.  Callers changed.
5733         (Fread_from_minibuffer): Remove arg KEEP_ALL.  Callers changed.
5735         * buffer.c (mode-line-format): Fix docstring.
5737 2006-05-25  Richard Stallman  <rms@gnu.org>
5739         * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
5741 2006-05-24  Luc Teirlinck  <teirllm@auburn.edu>
5743         * puresize.h (BASE_PURESIZE): Increase to 1210000.
5745 2006-05-24  Alan Mackenzie  <acm@muc.de>
5747         * lread.c (Vload_history): Enhance doc-string to say that the file
5748         is the absolute truename of the loaded file.
5750         * lread.c (Vafter_load_alist): doc-string: state that an element
5751         now has a regexp to match file names, not a file name as such.
5753         * lread.c (readevalloop): Call file-truename on the name for
5754         load-history, except at preloading time.
5756         * lread.c (Fload): At preloading time, preserve the extension of
5757         the filename which goes into load-history.  New var hist_file_name.
5759         * lread.c (Fload): Do eval-after-load stuff by calling the lisp
5760         function do-after-load-evaluation.
5762 2006-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5764         * mac.c (ae_attr_table): New variable.
5765         (syms_of_mac): Intern and staticpro its elements.
5766         (mac_aelist_to_lisp): Also convert Apple event attributes.
5767         (mac_ae_put_lisp): New function.
5768         (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
5770         * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
5772         * macselect.c (Qemacs_suspension_id): New variable.
5773         (syms_of_macselect): Intern and staticpro it.
5774         (struct suspended_ae_info): New struct.
5775         (deferred_apple_events, defer_apple_events)
5776         (Fmac_process_deferred_apple_events): Use it.
5777         (suspended_apple_events): New variable.
5778         (mac_handle_apple_event_1): New function.
5779         (mac_handle_apple_event): Use it.  Don't process previously
5780         suspended events.
5781         (cleanup_suspended_apple_events, get_suspension_id)
5782         (cleanup_all_suspended_apple_events): New functions.
5783         (init_apple_event_handler): Call cleanup_all_suspended_apple_events
5784         at exit.
5785         (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
5786         (Fmac_resume_apple_event): New defuns.
5787         (syms_of_macselect): Defsubr them.
5789         * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
5790         Fix last change.  Don't map `fn' modifier if pressed with F1 ... F12.
5792         * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
5793         (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
5794         (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
5795         (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5796         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5797         Likewise.
5798         (typeUTF8Text, kEventParamWindowMouseLocation)
5799         [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
5800         (x_get_focus_frame, mac_ae_put_lisp): Add externs.
5802 2006-05-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5804         * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
5805         (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
5806         (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
5807         (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
5808         (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
5809         resource to backtranslate key with modifiers.
5810         (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
5812 2006-05-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5814         * xterm.c: Remove declarations already in xterm.h
5816         * xterm.h: Add extern declarations for x_clear_errors,
5817         x_fully_uncatch_errors, x_catching_errors and
5818         x_alloc_lighter_color_for_widget.  Remove duplicated declarations.
5820 2006-05-21  Richard Stallman  <rms@gnu.org>
5822         * xfaces.c (best_matching_font): Abort for best == NULL
5823         before we start to use it.
5825         * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
5827 2006-05-20  Kim F. Storm  <storm@cua.dk>
5829         * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
5831 2006-05-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5833         * macterm.c (convert_fn_keycode): Fix last change.
5835 2006-05-19  Eli Zaretskii  <eliz@gnu.org>
5837         * w32.c (init_environment): Perform the processing of environment
5838         variables on a copy of default variables and their values, not on
5839         the original.  Simplify code that calls ExpandEnvironmentStrings
5840         and make buf1[] and buf2[] more visible for easier debugging.
5842 2006-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5844         * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
5846         * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
5848         * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
5850         * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
5851         Forward keyUp events to toolbox_dispatcher.
5853         * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
5855 2006-05-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5857         * config.in: Regenerated (HAVE_ALSA).
5859         * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
5860         (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
5861         (snd_error_quiet, alsa_init): New functions.
5862         (vox_init): Return 0 if unable to open device.
5863         (Fplay_sound_internal): Test for alsa first and use vox (oss) as
5864         a fallback.
5865         (struct sound_device): Add period_size.
5866         (wav_play, au_play): Use period_size if set.
5868         * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
5869         (ALL_CFLAGS): Add CFLAGS_SOUND.
5871 2006-05-18  Kenichi Handa  <handa@m17n.org>
5873         * callproc.c (Fcall_process): Reject encoding arguments by
5874         ascii-incompatible coding systems (e.g. utf-16).
5876         * coding.c (Qascii_incompatible): New variable.
5877         (syms_of_coding): Setup Qascii_incompatible.
5878         (setup_coding_system): Be sure to initialize coding->common_flags.
5879         Check `ascii-incompatible' property of the coding system.
5881         * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
5883 2006-05-18  Kim F. Storm  <storm@cua.dk>
5885         * xdisp.c (display_tool_bar_line): Restore entire tool-bar
5886         geometry when backtracking in case last image doesn't fit on line.
5888 2006-05-18  MIYOSHI Masanori  <miyoshi@meadowy.org>  (tiny change)
5890         * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
5891         more than height of one frame default line.
5893 2006-05-17  Richard Stallman  <rms@gnu.org>
5895         * xfaces.c (better_font_p): Any font beats no font.
5896         (best_matching_font): Simplify based on above change.
5898         * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
5900 2006-05-16  Kim F. Storm  <storm@cua.dk>
5902         * xterm.c (handle_one_xevent): Check that f is not NULL before
5903         calling x_kill_gs_process.
5905 2006-05-14  Richard Stallman  <rms@gnu.org>
5907         * textprop.c (Fnext_single_char_property_change)
5908         (Fprevious_single_char_property_change): Don't allow returning
5909         value beyond LIMIT in any cases.
5910         (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
5912         * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
5914 2006-05-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5916         * xterm.c (handle_one_xevent): Check that f is not NULL before
5917         calling _XEditResCheckMessages.
5919 2006-05-14  Kim F. Storm  <storm@cua.dk>
5921         * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
5923 2006-05-13  Eli Zaretskii  <eliz@gnu.org>
5925         * frame.c (x_set_border_width): Fix error message to say "frame",
5926         not "window".
5928         * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
5930 2006-05-12  Chong Yidong  <cyd@stupidchicken.com>
5932         * intervals.c (set_point_both): Fix mixup before before and after
5933         in variable names.
5935         * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
5936         while setting point temporarily.
5938 2006-05-11  Richard Stallman  <rms@gnu.org>
5940         * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
5942 2006-05-11  Kim F. Storm  <storm@cua.dk>
5944         * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
5946 2006-05-11  Kenichi Handa  <handa@m17n.org>
5948         * fileio.c (Finsert_file_contents): Fix for the case of IO error
5949         while handling replace operation.
5951 2006-05-10  Kenichi Handa  <handa@m17n.org>
5953         * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
5954         chosen for the default face was different from the frame font,
5955         adjust the frame font.
5957 2006-05-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5959         * image.c (Qduration) [MAC_OS]: Undo previous change.
5960         (syms_of_image) [MAC_OS]: Likewise.
5961         [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
5963         * macfns.c (x_to_mac_color): Fix shift amount change.
5964         (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
5965         [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
5967         * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
5968         Vmac_services_selection.  All uses changed.
5969         (mac_store_service_event): Rename from mac_store_services_event in
5970         extern and calls.
5972         * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices.  All uses
5973         changed.
5974         [MAC_OSX] (mac_store_service_event): Rename from
5975         mac_store_services_event.  All callers changed.
5976         [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
5977         FACE_ID and C.  All callers changed.
5978         (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
5979         mac_set_font_info_for_selection when focus frame is destroyed.
5980         (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
5982         * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
5983         args in extern.
5985 2006-05-09  Chong Yidong  <cyd@stupidchicken.com>
5987         * keymap.c (describe_map): Avoid generating duplicate entries if
5988         the shadowed binding has the same definition.
5990 2006-05-09  Kenichi Handa  <handa@m17n.org>
5992         * keymap.c (push_key_description): Handle invalid character key.
5994 2006-05-08  Kenichi Handa  <handa@m17n.org>
5996         * callproc.c (Fcall_process): Use system_eol_type for encoding
5997         arguments if eol_type is not yet decided.
5999         * coding.h (system_eol_type): Extern it.
6001         * coding.c (setup_coding_system): For invalid coding-system, set
6002         coding->eol_type to CODING_EOL_UNDECIDED.
6003         (encode_coding): Cancel previous change.
6004         (shrink_encoding_region): Likewise.
6005         (code_convert_region1): Likewise.
6006         (code_convert_string1): Likewise.
6007         (code_convert_string_norecord): Likewise.
6009         * fileio.c (choose_write_coding_system): Use system_eol_type for
6010         encoding if eol_type is not yet decided.
6012         * process.c (setup_process_coding_systems): Use system_eol_type
6013         for encoding if eol_type is not yet decided.
6014         (read_process_output): Likewise.
6015         (send_process): Likewise.
6017 2006-05-07  Juanma Barranquero  <lekktu@gmail.com>
6019         * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
6021 2006-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6023         * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
6024         (syms_of_mac): Likewise for defsubr.
6026         * macfns.c (mac_set_font): New function.
6027         (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
6028         (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
6029         kWindowToolbarButtonAttribute when creating window.
6030         (Fmac_clear_font_name_table): Move from macfns.c.
6031         (syms_of_macfns): Likewise for defsubr.
6032         [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
6033         (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
6035         * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
6036         and build is done on Mac OS X 10.2 and later.
6038         * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
6039         (mac_store_services_event): Change return type in extern.
6041         * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
6042         FMFontFamily value.
6043         [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
6044         (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
6045         (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
6046         (QWindow) [MAC_OSX]: Likewise.
6047         (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
6048         (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
6049         (syms_of_macterm) [USE_ATSUI]: Defvar it.
6050         (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
6051         (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
6052         (syms_of_macterm): Intern and staticpro them.
6053         (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
6054         [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
6055         New function.
6056         [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
6057         [MAC_OSX] (mac_store_services_event): Likewise.
6058         [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
6059         kEventWindowToolbarSwitchMode event.
6060         (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
6061         [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
6062         [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
6063         (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
6064         (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
6066         * macterm.h (mac_set_font_info_for_selection): Add extern.
6068 2006-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6070         * image.c (Qduration) [MAC_OS]: New variable.
6071         (syms_of_image) [MAC_OS]: Intern and staticpro it.
6072         [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
6073         [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
6074         instead of cfstring_create_with_string.
6076 2006-05-06  Kim F. Storm  <storm@cua.dk>
6078         * .gdbinit (xframe): Print frame name.
6079         (xlist): New command to print a list (max 10 elements).
6080         (xpr): Print lisp object of any type.
6081         (pitx): Print it->pixel_width.
6083 2006-05-05  Kenichi Handa  <handa@m17n.org>
6085         * xdisp.c (handle_composition_prop): Fix for the case of empty
6086         composition component.
6088 2006-05-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6090         * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
6091         from event->arg.
6093         * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
6094         MAC_APPLE_EVENT.
6096         * macterm.h (mac_make_lispy_event_code): Remove extern.
6097         (mac_post_mouse_moved_event): Add extern.
6098         (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
6099         `const AEDesc *' in externs.
6100         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
6102         * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
6103         `const AEDesc *'.
6104         [TARGET_API_MAC_CARBON] (create_apple_event): New function.
6105         [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
6106         Use xrealloc instead of repeated xmalloc/xfree.
6107         [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref):
6108         New function.
6110         * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
6112         * macselect.c: Update copyright year.
6113         (mac_store_apple_event): Change return type to void in extern.
6114         (mac_handle_apple_event): Don't get return value from
6115         mac_store_apple_event.
6116         [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
6117         (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
6118         [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
6119         macterm.c.  Use Vmac_dnd_known_types as acceptable flavors.
6120         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.  New
6121         implementation using create_apple_event_from_drag_ref.
6122         [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
6123         (mac_do_receive_dragUPP): Move variables from macterm.c.
6124         (install_drag_handler, remove_drag_handler): New functions.
6126         * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
6127         path select also for proxy icon click.
6128         [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
6129         [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
6130         (xlfdpat_create): Remove unused label `error' and trailing sentences.
6131         (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
6132         (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
6133         macselect.c.
6134         (install_drag_handler, remove_drag_handler): Add extern.
6135         (mac_store_apple_event): Change return type to void.  All uses changed.
6136         Create Lisp object from Apple event and store it into input event.
6137         (mac_make_lispy_event_code): Remove function.
6138         [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
6139         (install_window_handler): Call install_drag_handler.
6140         (remove_window_handler): Call remove_drag_handler.
6142 2006-05-03  Richard Stallman  <rms@gnu.org>
6144         * sound.c (Fplay_sound_internal): Dynamically allocate
6145         current_sound_device and current_sound.
6146         (sound_cleanup): Free them.
6148         * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
6149         when inside a keyboard macro.
6151 2006-05-02  Andreas Schwab  <schwab@suse.de>
6153         * xmenu.c (restore_menu_items): Return a value.
6155 2006-05-01  Martin Rudalics  <rudalics@gmx.at>
6157         * syntax.c (Fforward_comment): Detect generic comment at beginning of
6158         buffer when moving backwards.
6160 2006-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6162         * dispnew.c (update_window): Don't set changed_p when mode/header
6163         line is updated.
6165         * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
6166         (get_glyph_face_and_encoding, get_char_face_and_encoding):
6167         Don't distinguish known faces from others.
6169         * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
6170         through typeFileURL failed.
6172         * macfns.c (mac_update_title_bar): New function.
6173         [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
6174         (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
6175         Call mac_prepare_for_quickdraw.
6177         * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
6178         (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
6179         (enum pcm_status): New enum.
6180         (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
6181         (XCharStructRow): Remove.  Now validity is represented by
6182         non-negativeness of sum of ascent and descent.
6183         (struct MacFontStruct): Change type of member `rows'.
6184         (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
6186         * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
6187         Adjust endpoints of strictly horizontal/vertical lines.
6188         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
6189         (pcm_init, pcm_get_status): New functions.
6190         (x_per_char_metric, XLoadQueryFont): Use them instead of
6191         XCharStructRow and related macros.
6192         (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
6193         (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
6194         (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
6195         and window path pop-up menu on title bar.
6196         (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
6198         * macterm.h (mac_update_title_bar): Add extern.
6199         (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
6200         (FRAME_FILE_NAME): New macro.
6202         * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
6204 2006-04-30  Richard Stallman  <rms@gnu.org>
6206         * keymap.c (Fdefine_key): Improve error message
6207         when KEY begins with a non-prefix key.
6209 2006-04-30  Martin Rudalics  <rudalics@gmx.at>
6211         * syntax.c (Fforward_comment): Don't forget to break out of the loop
6212         when we skipped backward over a generic comment.
6214 2006-04-27  Nick Roberts  <nickrob@snap.net.nz>
6216         * .gdbinit (pp1, pv1): Only print value as expression is now
6217         printed out by gud-print.
6218         (pv1): Correct doc string.
6220 2006-04-26  Stefan Monnier  <monnier@iro.umontreal.ca>
6222         * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
6223         Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
6224         keymap.c:895: error: address of register variable `def' requested.
6226 2006-04-26  Jason Rumney  <jasonr@gnu.org>
6228         * w32term.c (construct_mouse_wheel): Handle negative coordinates.
6230         * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
6231         <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
6232         where we preempt mouse_button_timer.
6234 2006-04-25  Miles Bader  <miles@gnu.org>
6236         * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
6238 2006-04-24  Stefan Monnier  <monnier@iro.umontreal.ca>
6240         * process.h: Include headers for pid_t.
6242 2006-04-24  Kim F. Storm  <storm@cua.dk>
6244         * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
6245         does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
6246         (produce_stretch_glyph): Assume that face box height and width is
6247         already included in stretch glyph size so caller doesn't have to
6248         consider the extra space otherwise added (fixes problem in ses.el).
6250         * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
6251         matrices to force recalculation of tool-bar height after font change.
6253         * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
6254         Clear it when done, so we don't accidentally draw a second copy of
6255         the tool-bar after resetting f->n_tool_bar_rows.
6256         (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
6257         we recalculate f->n_tool_bar_rows.
6259 2006-04-23  Lars Hansen  <larsh@soem.dk>
6261         * editfns.c (find_field): Fix comment.
6262         (Ffield_beginning): Fix bug when POS is at field beginning.
6264 2006-04-22  Eli Zaretskii  <eliz@gnu.org>
6266         * puresize.h (BASE_PURESIZE): Increase to 1205000.
6268 2006-04-21  Kim F. Storm  <storm@cua.dk>
6270         * xdisp.c (redisplay_window): Fix last change.  Don't recenter if
6271         window start is at BEGV.
6273         * dispextern.h (struct image): New member `corners'.
6274         (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
6276         * image.c (four_corners_best): New arg CORNERS specifies what pixels
6277         to look at in case image has margin.
6278         (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
6279         (image_background, image_background_transparent)
6280         (x_build_heuristic_mask): Pass img->corners to four_corners_best.
6281         (gif_load): Set img->corners according to image's margin spec.
6282         Use img->corners values directly where applicable.
6283         Save image extension data in img->data.lisp_val.
6284         (gif_clear_image): New function to free img->data.lisp_val.
6285         (gif_type): Use it instead of generic x_clear_image.
6286         (Fimage_extension_data): New defun.
6287         (syms_of_image): Defsubr it.
6289 2006-04-21  John Sullivan  <john@wjsullivan.net>  (tiny change)
6291         * window.c (Fdisplay_buffer): Doc fix.
6293 2006-04-21  Eli Zaretskii  <eliz@gnu.org>
6295         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
6297 2006-04-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6299         * image.c [MAC_OS] (xpm_load_image): Fill in background field
6300         while we have ximg handy.
6302         * macmenu.c (restore_menu_items, save_menu_items): New functions
6303         from xmenu.c.
6304         (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
6305         changes for xmenu.c.
6307         * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
6308         (add_mac_font_name): New function.
6309         (init_font_name_table): Use it.  Adopt the first found font from
6310         those having the same family name.
6312 2006-04-21  Nick Roberts  <nickrob@snap.net.nz>
6314         * xdisp.c (note_mouse_highlight): Use build_string.
6316 2006-04-20  Lars Hansen  <larsh@soem.dk>
6318         * textprop.c (Fremove_list_of_text_properties):
6319         Ensure modify_region is called only when buffer is modified and that
6320         signal_after_change is allways called in that case.
6322         * print.c (PRINTFINISH): Call signal_after_change.
6324 2006-04-20  Kim F. Storm  <storm@cua.dk>
6326         * xdisp.c (redisplay_window): Fix last change.
6328         * xdisp.c (redisplay_window): If current window start is not at the
6329         beginning of a line, select a new window start if buffer is modified
6330         and window start is in the modified region, but the first change is
6331         before window start.
6333 2006-04-18  Richard Stallman  <rms@gnu.org>
6335         * xmenu.c (restore_menu_items, save_menu_items): New fns.
6336         (set_frame_menubar): Use save_menu_items.  Save updated vector in
6337         the frame before unwinding it.  Don't use unuse_menu_items.
6338         Don't use discard_menu_items.
6339         (digest_single_submenu): Abort if an item is not in a pane.
6340         (init_menu_items): Put the error check at the top.
6342         * keymap.c (describe_map): Make "shadowed" warning more verbose.
6344         * window.c (adjust_window_trailing_edge): Correctly distinguish
6345         series vs parallel cases, even when window has no parent.
6347         * abbrev.c (record_symbol): New function.
6348         (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
6350 2006-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6352         * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
6353         value of xmalloc.
6355         * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
6356         (create_apple_event_from_event_ref, xrm_get_preference_database)
6357         (cfstring_create_normalized): Don't check return value of xmalloc.
6359         * macselect.c (get_scrap_target_type_list, defer_apple_events)
6360         (copy_scrap_flavor_data, mac_handle_service_event): Don't check
6361         return value of xmalloc/xrealloc.
6363         * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
6364         (init_font_name_table, init_font_name_table, mac_do_list_fonts)
6365         (XLoadQueryFont, mac_store_apple_event): Don't check return value
6366         of xmalloc.
6368 2006-04-17  Kim F. Storm  <storm@cua.dk>
6370         * window.c (coordinates_in_window): On the vertical border,
6371         calculate the row number measured from the top of the window, not
6372         the top of the frame.
6373         (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
6374         (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
6376 2006-04-16  Eli Zaretskii  <eliz@gnu.org>
6378         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
6380 2006-04-16  Romain Francoise  <romain@orebokech.com>
6382         * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
6384 2006-04-16  Andreas Schwab  <schwab@suse.de>
6386         * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
6388 2006-04-15  Romain Francoise  <romain@orebokech.com>
6390         * puresize.h (BASE_PURESIZE): Increment to 1210000.
6392 2006-04-13  Micha\e,Ak\e(Bl Cadilhac  <michael.cadilhac@lrde.org>
6394         * print.c (Fprin1_to_string): Mention in the `doc' that the
6395         behavior is modified by `print-level' and `print-length'.
6397 2006-04-13  Kenichi Handa  <handa@m17n.org>
6399         * coding.c (setup_coding_system): If eol-type is not yet decided
6400         and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
6401         If coding_system is nil, return 0.
6402         (code_convert_region1): Even if coding_system is nil, don't skip
6403         conversion if system_eol_type is not LF.
6404         (code_convert_string1): Likewise.
6405         (code_convert_string_norecord): Likewise.
6407 2006-04-13  Kenichi Handa  <handa@m17n.org>
6409         * coding.c (setup_coding_system): Fix previous change.
6410         (encode_coding): If eol_type is not yet decided, use system_eol_type.
6411         (shrink_encoding_region): If eol_type is not yet decided and
6412         system_eol_type is not LF, don't shrink.
6414 2006-04-13  Nick Roberts  <nickrob@snap.net.nz>
6416         * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
6417         line.
6419 2006-04-12  Richard Stallman  <rms@gnu.org>
6421         * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
6423         * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
6424         (Fprocess_send_eof): Abort if fail to open null device.
6426 2006-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6428         * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
6430         * image.c [MAC_OS] (xpm_load_image): Add parentheses around
6431         assignment used as truth value.  Add explicit braces to avoid
6432         ambiguous `else'.
6433         [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
6435         * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
6436         EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
6437         (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
6438         Put externs in #ifdef HAVE_X_WINDOWS.
6439         (syms_of_macfns, syms_of_macselect, syms_of_macterm)
6440         (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
6441         (init_mac_osx_environment) [MAC_OSX]: Add extern.
6443         * mac.c (init_process): Remove undef.
6444         (select) [MAC_OSX]: Undefine before including sysselect.h.
6445         (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
6446         Remove functions and prototypes.
6447         (parse_value): Add parentheses around + inside shift.
6448         (path_from_vol_dir_name): Make static.
6449         (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
6450         [!MAC_OSX] (get_path_to_system_folder): Likewise.
6451         (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
6452         variable `cCode'.
6453         (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
6454         (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
6456         * macfns.c (x_to_mac_color): Remove unused variable `tail'.
6457         (x_set_mouse_color): Remove unused variable `dpy'.
6458         (Fx_create_frame): Remove unused variable `x_frame_count'.
6459         (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
6460         (x_sync): Move from macterm.c.
6461         (Fx_file_dialog): Remove unused variable `default_filter_index'.
6463         * macmenu.c (min_menu_id): Make element type explicit.
6465         * macselect.c (get_flavor_type_from_symbol): Remove unused
6466         variable `val'.
6467         (get_scrap_private_timestamp, x_get_foreign_selection)
6468         (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
6469         (Fmac_process_deferred_apple_events): Remove unused variables
6470         `keyword', `reply', `apple_event', `count', and `err'.
6472         * macterm.c: Don't include gnu.h.
6473         (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
6474         (x_sync): Move to macfns.c.
6475         [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
6476         variable `mask_bits'.
6477         (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
6478         (x_draw_image_glyph_string): Remove unused variable `pixmap'.
6479         (x_mac_to_emacs_modifiers): Remove function.
6480         (XTset_vertical_scroll_bar, mac_handle_visibility_change)
6481         (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
6482         Add explicit braces to avoid ambiguous `else'.
6483         (x_make_frame_visible): Remove unused variables `type',
6484         `original_top', and `original_left'.
6485         (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
6486         (x_load_font): Remove unused variables `full_name', and `value'.
6487         (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
6488         Remove functions.
6489         (do_zoom_window): Reorganize variables with respect to conditionals.
6490         (init_command_handler): Remove unused variable `err'.
6491         [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
6493         * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
6494         (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
6495         (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
6496         (do_menu_choice, have_menus_p, x_real_positions)
6497         (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
6498         (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
6499         (free_frame_menubar): Add externs.
6501         * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
6502         (malloc, realloc, free): Add undefs.
6503         (read_load_commands): Remove unused variable `n' and `j'.
6504         (copy_data_segment): Remove unused variable `r'.
6506         * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
6507         within ||.  Add explicit braces to avoid ambiguous `else'.
6508         (dump_glyph_row): Remove label for `inverse_p' from legend.
6510         * xfaces.c (Finternal_merge_in_global_face, try_font_list):
6511         Add explicit braces to avoid ambiguous `else'.
6513 2006-04-11  Micha\e,Ak\e(Bl Cadilhac  <michael.cadilhac@lrde.org>
6515         * dispnew.c (init_display): Don't init X display if the user asked
6516         for a non-X display.
6518 2006-04-12  Kenichi Handa  <handa@m17n.org>
6520         * coding.c (setup_coding_system): Use system_eol_type for default
6521         coding->eol_type.
6523 2006-04-11  Dan Nicolaescu  <dann@ics.uci.edu>
6525         * lisp.h (wrong_type_argument): Mark as NO_RETURN.
6527         * data.c (wrong_type_argument): Try to avoid compiler warnings due
6528         to the fact the function is now marked as NO_RETURN.
6530 2006-04-10  Eli Zaretskii  <eliz@gnu.org>
6532         * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
6534 2006-04-10  Romain Francoise  <romain@orebokech.com>
6536         * xrdb.c (gethomedir): Use xstrdup.
6538 2006-04-10  Andreas Schwab  <schwab@suse.de>
6540         * xrdb.c (gethomedir): Make sure to always return a pointer that
6541         can be passed to free.
6543 2006-04-09  Richard Stallman  <rms@gnu.org>
6545         * lisp.h (Fkill_emacs): Undo previous change.
6547 2006-04-08  Richard Stallman  <rms@gnu.org>
6549         * search.c (boyer_moore): Test ch >= 0400, not >.
6551 2006-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
6553         * puresize.h (pure_write_error): Mark as NO_RETURN.
6555         * lisp.h (args_out_of_range, args_out_of_range_3)
6557 2006-04-08  Eli Zaretskii  <eliz@gnu.org>
6559         * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
6560         if a menu is active on this frame.
6562 2006-04-08  Dan Nicolaescu  <dann@ics.uci.edu>
6564         * lisp.h (report_file_error): Mark as NO_RETURN.
6566 2006-04-08  Eli Zaretskii  <eliz@gnu.org>
6568         * alloc.c [STDC_HEADERS]: Include stddef.h.
6570         * lisp.h (PSEUDOVECSIZE): Fix last change.
6572 2006-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
6574         * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
6575         `raw_status_high', and `raw_status_low' with plain integers, and move
6576         them to the end of the structure.
6578         * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
6579         pseudovector's size field so only the Lisp_Object fields get GC'd.
6581         * process.c (update_status, make_process, Fdelete_process)
6582         (Fprocess_status, list_processes_1, start_process_unwind)
6583         (create_process, Fmake_network_process, server_accept_connection)
6584         (wait_reading_process_output, send_process, Fprocess_running_child_p)
6585         (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
6586         (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
6587         `pid' and `raw_status'.
6588         (Fprocess_id, Fsignal_process): Same, and additionally use floats when
6589         representing PIDs that are larger than most-positive-fixnum.
6591         * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
6593         * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
6595 2006-04-08  Eli Zaretskii  <eliz@gnu.org>
6597         * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
6599 2006-04-03  Paul Eggert  <eggert@cs.ucla.edu>
6601         * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
6602         ../lib-src/b2m.c and ../lib-src/editfns.c.
6603         (Fcurrent_time_string): Use it.
6604         Document that the year might not consume 4 columns if it's outside
6605         the range 1000-9999.
6606         Check for asctime failure.
6607         Don't assume that the output string length is always exactly 24.
6609 2006-04-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6611         * macterm.c (XTread_socket): Initialize variable `f' before its use.
6613 2006-04-03  Kenichi Handa  <handa@m17n.org>
6615         * image.c: Include "charset.h" and "coding.h".
6616         (x_find_image_file): Return an encoded file name.
6618 2006-04-01  Eli Zaretskii  <eliz@gnu.org>
6620         * configure: Regenerated.
6622 2006-03-31  Kenichi Handa  <handa@m17n.org>
6624         * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
6626 2006-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
6628         * xdisp.c (syms_of_xdisp): Fix variable name.
6630 2006-03-30  Kenichi Handa  <handa@m17n.org>
6632         * xterm.c (x_term_init): Delete superfluous UNGCPRO.
6634 2006-03-29  Juanma Barranquero  <lekktu@gmail.com>
6636         * keyboard.c (process_tool_bar_item): Reorder dummy args.
6638 2006-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
6640         * keyboard.c (tool_bar_items): Use map_keymap.
6641         (process_tool_bar_item): Add dummy args to fit the required interface.
6643 2006-03-25  Eli Zaretskii  <eliz@gnu.org>
6645         * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
6646         to zero before calling debug_print or safe_debug_print.
6648         * print.c (print_output_debug_flag): New global variable.
6649         (Fexternal_debugging_output) [WINDOWSNT]: Don't call
6650         OutputDebugString if print_output_debug_flag is zero.
6652 2006-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6654         * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
6655         (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
6656         (Fdecode_time): Cast tm_year to EMACS_INT.
6657         (Fcurrent_time_string): Report an invalid time specification if
6658         the argument is invalid.  Also, check for out-of-range time stamps.
6660 2006-03-24  Kim F. Storm  <storm@cua.dk>
6662         * xterm.c (handle_one_xevent):
6663         * w32term.c (w32_read_socket):
6664         * macterm.c (XTread_socket): Don't let key-press clear mouse face
6665         on in toolbar window if mouse-highlight is an integer.
6667         * fns.c (sxhash_list): Include last non-nil CDR in hash.
6669 2006-03-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6671         * macmenu.c (enum mac_menu_kind): New enum.
6672         (min_menu_id): New variable.
6673         (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
6674         (MIN_SUBMENU_ID): Remove defines.  All uses are replaced with
6675         min_menu_id and enumerators in enum mac_menu_kind.
6676         (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
6677         All uses changed.  Add range check for menu ID.
6678         (fill_menubar): Add range check for menu ID.
6679         [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
6680         GetEventParameter.
6681         (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
6682         for each menu kind.
6684 2006-03-22  Kim F. Storm  <storm@cua.dk>
6686         * xdisp.c: Undo 2006-03-21 change.
6688         * term.c: Define aliases for append_glyph and produce_stretch_glyph
6689         when `static' is defined to avoid name clash with those in xdisp.c.
6691         * process.c (Faccept_process_output): Fix to comply with lisp
6692         reference.  Change arg "timeout" to "seconds" and allow both
6693         integer and float value.  Change arg "timeout-msec" to "millisec"
6694         and interpret" as milliseconds rather than microseconds.  Fix doc
6695         string accordingly.
6697 2006-03-21  Ken Raeburn  <raeburn@raeburn.org>
6699         * xdisp.c (store_next_glyph): Rename from append_glyph.
6700         (generate_stretch_glyph): Rename from produce_stretch_glyph.
6701         All callers changed accordingly.
6703 2006-03-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6705         * xterm.c: x_session_initialized new variable.
6706         (x_term_init): Use x_session_initialized to check if
6707         x_session_initialize should be called.
6708         (x_initialize): Initialize x_session_initialized.
6710 2006-03-21  Kim F. Storm  <storm@cua.dk>
6712         * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
6713         bitmap here, but ...
6714         (update_window_fringes): ... here, so we can test if it has changed.
6716 2006-03-20  Andreas Schwab  <schwab@suse.de>
6718         * dispnew.c (init_display): Check DISPLAY here.
6720         * emacs.c (main): Don't check here.
6722         * xterm.c (x_display_ok): Don't use DISPLAY env var.
6724 2006-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
6726         * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
6727         mixup (YAILOM).
6729 2006-03-20  Eli Zaretskii  <eliz@gnu.org>
6731         * emacs.c (main): Fix last change.
6733 2006-03-20  Kenichi Handa  <handa@m17n.org>
6735         * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
6737         * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
6739         * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
6741         * xterm.c (x_term_init): Remove unnecessary GCPRO.
6743 2006-03-19  Kim F. Storm  <storm@cua.dk>
6745         * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
6746         so it doesn't associate overlay string with following glyph by default.
6747         Allow integer property value to specify explicit number of buffer
6748         positions associate with overlay string.
6750 2006-03-18  Chong Yidong  <cyd@stupidchicken.com>
6752         * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
6754 2006-03-18  Nozomu Ando  <nand@mac.com>
6756         * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
6757         (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
6758         (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
6759         Don't redefine.
6761         * m/mips.h: Don't use unexmips on NetBSD.
6762         (LIBS_MACHINE): Move definition lower, so it doesn't use
6763         LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
6764         C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
6766         * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
6767         (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
6768         option is broken (e.g., MIPS/NetBSD).
6770 2006-03-18  Craig McDaniel  <craigmcd@gmail.com>  (tiny change)
6772         * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
6773         Remove the HAVE_X_WINDOWS conditional.
6775 2006-03-18  Vivek Dasmohapatra  <vivek@etla.org>  (tiny change)
6777         * emacs.c (main): If user asks for a display that is unavailable,
6778         simulate -nw.
6780         * xterm.c (x_display_ok): New function.
6782         * xterm.h: Add prototype for x_display_ok.
6784 2006-03-18  Eli Zaretskii  <eliz@gnu.org>
6786         * w32fns.c (Fw32_select_font): Doc fix.
6788 2006-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6790         * image.c [MAC_OS] (XPutPixel, XGetPixel)
6791         [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
6792         version when depth is 32.
6793         (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
6794         New function.
6795         (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
6796         (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
6798         * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
6799         Create GWorld in ARGB pixel format.
6800         (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
6801         Remove functions.
6802         (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
6803         instead of mac_copy_area/mac_copy_area_with_mask.
6805 2006-03-15  Kim F. Storm  <storm@cua.dk>
6807         * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
6808         empty row.  Fixes memory corruption revealed by 2006-03-02 change.
6809         (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
6810         (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
6811         width is exactly the same as the window width.  Don't count a final
6812         empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
6814 2006-03-15  Juanma Barranquero  <lekktu@gmail.com>
6816         * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
6817         conditional on HAVE_NTGUI, not WINDOWS_NT.
6819 2006-03-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6821         * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
6823         * fringe.c (mac_init_fringe) [MAC_OS]: New function.
6825         * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
6826         (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
6827         (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
6828         (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
6829         (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
6830         (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
6831         instead of mac_draw_bitmap.
6832         (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
6833         define_fringe_bitmap and destroy_fringe_bitmap.
6835 2006-03-14  Chong Yidong  <cyd@stupidchicken.com>
6837         * xterm.c (x_uncatch_errors): Block input for entire function.
6839 2006-03-12  Jason Rumney  <jasonr@gnu.org>
6841         * w32fns.c (Fx_create_frame): Remove call to
6842         Qface_set_after_frame_default (from xfns.c 2003-05-26).
6844         * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
6845         finished with the menu.
6847         * w32term.c: Sync 2005-10-24 xterm.c changes.
6848         (last_mouse_glyph_frame): New var.
6849         (note_mouse_movement): Say mouse moved if current frame differs
6850         from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6851         (w32_mouse_position): Set last_mouse_glyph_frame.
6852         Remove OLD_REDISPLAY_CODE block.
6854 2006-03-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6856         * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
6858         * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
6859         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
6861         * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
6863         * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
6865         * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
6866         (x_draw_composite_glyph_string_foreground)
6867         (x_draw_image_foreground): Undo previous changes.
6868         (x_draw_hollow_cursor): Likewise.  Subtract 1 from the last
6869         argument of mac_draw_rectangle.
6870         (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
6871         (mac_draw_string_common, mac_draw_image_string_cg): Use them.
6872         (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
6873         (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
6874         [USE_CG_DRAWING]: New functions.
6875         (mac_draw_line, mac_erase_rectangle, mac_clear_window)
6876         (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
6877         (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
6878         (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
6879         (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
6880         (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
6881         (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
6883 2006-03-12  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
6885         * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
6887 2006-03-11  Jason Rumney  <jasonr@gnu.org>
6889         * w32fns.c (signal_user_input): New function.
6890         (post_character_message): Use it for keyboard input.
6891         (w32_msg_pump): Use it for mouse input.
6893 2006-03-11  Luc Teirlinck  <teirllm@auburn.edu>
6895         * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
6896         (window_scroll_pixel_based, syms_of_window): Adapt to above change.
6898 2006-03-11  Eli Zaretskii  <eliz@gnu.org>
6900         * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
6901         if a menu is already active (the menubar_active flag is on).
6903 2006-03-11  David Ponce  <david@dponce.com>
6905         * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
6907 2006-03-11  Eli Zaretskii  <eliz@gnu.org>
6909         * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
6910         the list of unused display error handling functions.
6912         * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
6913         HAVE_X_WINDOWS.
6914         (internal_condition_case, internal_condition_case_1)
6915         (internal_condition_case_2): Call x_catching_errors only if
6916         HAVE_X_WINDOWS.
6918         * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
6919         Don't include sys/resource.h unless defined.
6921 2006-03-11  Richard Stallman  <rms@gnu.org>
6923         * keymap.c (describe_map): Shorten string to indicate shadowed binding.
6925         * vm-limit.c (get_lim_data, lim_data, data_space_start):
6926         Move from mem-limits.h.
6927         (enum warnlevel): New data type.
6928         (check_memory_limits): Rewrite the logic about warnings.
6929         Use standard `struct rlimit'.  Check return values for nonsense.
6930         (memory_warnings): Always clear lim_data.
6932         * mem-limits.h (get_lim_data, lim_data, data_space_start):
6933         Move to vm-limit.c.
6935         * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
6937         * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
6938         (internal_condition_case_1, internal_condition_case_2):
6939         Abort if within unclosed x_catch_errors.
6941 2006-03-11  Romain Francoise  <romain@orebokech.com>
6943         * process.c (Vprocess_adaptive_read_buffering): Doc fix.
6945 2006-03-11  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
6947         * lisp.h: Remove duplicate prototypes.  Make the prototype of
6948         getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
6950 2006-03-11  Eli Zaretskii  <eliz@gnu.org>
6952         * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
6953         argument of XDrawRectangle.
6955         * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
6957         * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
6958         (x_draw_glyph_string_foreground)
6959         (x_draw_composite_glyph_string_foreground)
6960         (x_draw_image_foreground): Don't subtract 1 from width and height
6961         arguments to mac_draw_rectangle.
6962         (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
6964 2006-03-10  Kim F. Storm  <storm@cua.dk>
6966         * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
6968 2006-03-09  Stefan Monnier  <monnier@iro.umontreal.ca>
6970         * alloc.c (USE_POSIX_MEMALIGN): New macro.
6971         (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
6973 2006-03-09  Kenichi Handa  <handa@m17n.org>
6975         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
6976         ASCII component of a composition.
6978 2006-03-08  Luc Teirlinck  <teirllm@auburn.edu>
6980         * window.c: Declare preserve_y as a static global variable.
6981         (window_scroll_pixel_based): No longer declare preserve_y;
6982         it is global now.
6983         (syms_of_window): Set preserve_y to -1.
6985 2006-03-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6987         * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
6988         depth is 32.
6989         [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
6990         depth is 32.
6992 2006-03-06  Chong Yidong  <cyd@stupidchicken.com>
6994         * xdisp.c (handle_invisible_prop): Don't update it->position with
6995         a buffer position if we're in a display string.
6997 2006-03-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6999         * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
7000         (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
7002         * macfns.c (x_default_scroll_bar_color_parameter)
7003         (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
7004         Remove unnecessary prototypes.
7005         (x_set_scroll_bar_default_width):
7006         Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
7007         (mac_set_scroll_bar_width): New function.
7008         (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
7010         * macterm.c (get_control_part_bounds): Fix type of return value.
7011         (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
7012         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
7013         scroll bar if it is not tall enough to display scroll bar thumb.
7014         [USE_CARBON_EVENTS] (mac_convert_event_ref)
7015         (mac_handle_command_event, mac_handle_window_event)
7016         (mac_handle_mouse_event): Check error code of GetEventParameter.
7017         (convert_fn_keycode) [MAC_OSX]: Likewise.
7019 2006-03-05  Andreas Schwab  <schwab@suse.de>
7021         * xselect.c (x_catch_errors_unwind): Fix missing return value.
7023 2006-03-02  Kim F. Storm  <storm@cua.dk>
7025         * frame.h (struct frame): New member n_tool_bar_rows.
7027         * xdisp.c: Minimize the unpleasent visual impact of the requirement
7028         that non-toolkit tool-bars must occupy an integral number of screen
7029         lines, by distributing the rows evenly over the tool-bar screen area.
7030         (Vtool_bar_border): New variable.
7031         (syms_of_xdisp): DEFVAR_LISP it.
7032         (display_tool_bar_line): Add HEIGHT arg for desired row height.
7033         Make tool-bar row the desired height.  Use default face for border
7034         below tool-bar.
7035         (tool_bar_lines_needed): Add N_ROWS arg.  Use it to return number of
7036         actual tool-bar rows.
7037         (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
7038         Adjust the height of the tool-bar rows to fill tool-bar screen area.
7039         (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
7040         is resized.
7042 2006-03-01  Luc Teirlinck  <teirllm@auburn.edu>
7044         * search.c (Fregexp_quote): Do not precede a literal `]' with two
7045         backslashes to try to make clear that it has a literal meaning; it
7046         does not do that.  (It could close a character alternative
7047         containing a backslash.)
7049 2006-02-28  Chong Yidong  <cyd@stupidchicken.com>
7051         * xselect.c (x_catch_errors_unwind): New function.
7052         (x_reply_selection_request): Put x_uncatch_errors in an unwind.
7053         (Fx_get_atom_name): Call x_uncatch_errors earlier.
7055         * window.c (Qscroll_up, Qscroll_down): New syms.
7056         (window_scroll_pixel_based): Make preserve_y static to avoid
7057         getting point stuck when scrolling 1 line.
7059 2006-02-26  Chong Yidong  <cyd@stupidchicken.com>
7061         * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
7063         * xterm.c (x_load_font, x_term_init, XTmouse_position)
7064         (handle_one_xevent, x_connection_closed, x_list_fonts):
7065         No arg for x_uncatch_errors.
7067         * xselect.c (x_own_selection, x_decline_selection_request)
7068         (x_reply_selection_request, x_get_foreign_selection)
7069         (Fx_get_atom_name, Fx_send_client_event): Likewise.
7071         * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
7072         Likewise.
7074 2006-02-26  Luc Teirlinck  <teirllm@auburn.edu>
7076         * lread.c: Declare Vload_file_rep_suffixes instead of
7077         deleted variable default_suffixes.
7078         (Fget_load_suffixes): New function.
7079         (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
7080         No longer use deleted variable default_suffixes.  Update docstring.
7081         (syms_of_lread): defsubr Sget_load_suffixes.
7082         Expand `load-suffixes' docstring.
7083         Delete default_suffixes and DEFVAR_LISP the new variable
7084         `load-file-rep-suffixes'.
7086         * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
7087         of Vload_suffixes.
7089         * lisp.h: EXFUN Fget_load_suffixes.
7090         Extern Vload_file_rep_suffixes.
7092         * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
7093         with lisp.h.
7095 2006-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
7097         * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
7098         qualifier which was trying to avoid the bug that was fixed by
7099         yesterday's changes to xterm.c.
7101 2006-02-25  Chong Yidong  <cyd@stupidchicken.com>
7103         * xterm.h (x_catch_errors) Return value changed to void.
7104         (x_uncatch_errors): Delete unused count argument.
7106         * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
7107         it can be called in a signal handler.
7108         (x_catch_errors_unwind): Function deleted.
7109         (x_uncatch_errors): Deallocate last x_error_message_stack struct.
7110         (x_check_errors): Call x_uncatch_errors before signalling error.
7112         (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
7113         (x_connection_closed, x_list_fonts): Use new versions of
7114         x_catch_errors and x_uncatch_errors.
7116         * xselect.c (x_own_selection, x_decline_selection_request)
7117         (x_reply_selection_request, x_get_foreign_selection)
7118         (Fx_get_atom_name, Fx_send_client_event): Likewise.
7120         * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
7121         Likewise.
7123         * eval.c (record_unwind_protect): Add an assertion.
7125 2006-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
7127         * process.c (Fmake_network_process): Init the process's mark.
7129 2006-02-25  Kim F. Storm  <storm@cua.dk>
7131         * buffer.c (modify_overlay): Force redisplay if we modify an
7132         overlay at the end of the buffer.
7134 2006-02-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7136         * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
7137         nil the image file has been removed, in that case use the (cached)
7138         pixmap.
7140 2006-02-24  Kenichi Handa  <handa@m17n.org>
7142         * fileio.c (Finsert_file_contents): When a text is replaced
7143         partially, be sure to set point before the inserted characters.
7145 2006-02-23  Zhang Wei  <id.brep@gmail.com>  (tiny change)
7147         * xfns.c (Fx_file_dialog): Return a decoded file name.
7149 2006-02-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7151         * dispnew.c (update_text_area): Avoid needless redraw of rightmost
7152         glyph whose face is extended to the text area end.
7154         * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
7155         values if control is not visible or values are not changed.
7157 2006-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
7159         * window.c (Fwindow_list): Check `window' before doing XWINDOW.
7160         The default `window' should not be "on a different frame".
7162 2006-02-22  Kim F. Storm  <storm@cua.dk>
7164         * indent.c (Fvertical_motion): Only try to move back if we can.
7166 2006-02-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7168         * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
7169         n_clip_rects.
7171         * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
7172         xmenu.c.
7174         * macterm.c (GC_CLIP_REGION): Remove macro.
7175         (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
7176         All uses changed.  Don't do clipping if n_clip_rects is zero.
7177         (mac_set_clip_rectangles): Use xassert instead of abort.
7178         Set n_clip_rects.  Don't make clip_region empty when number of
7179         clipping rectangles is zero.
7180         (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
7181         calling mac_set_clip_rectangles.
7182         (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
7183         avoid multiple redraws.
7185 2006-02-22  Kim F. Storm  <storm@cua.dk>
7187         * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
7189 2006-02-21  Kim F. Storm  <storm@cua.dk>
7191         * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
7193 2006-02-21  Zhang Wei  <brep@newsmth.org>
7195         * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
7196         returning it.
7198 2006-02-21  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
7200         * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
7201         (standard_bitmaps): Use it.
7203 2006-02-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7205         * macterm.c (mac_draw_string_common): Remove arg MODE.  New arg
7206         BG_WIDTH.  All uses changed.  Draw background if BG_WIDTH is not zero.
7207         (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
7208         [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
7209         mac_draw_string_cg.  New arg BG_WIDTH.  All uses changed.
7210         Draw background if BG_WIDTH is not zero.  Use float constants as
7211         divisors instead of double.  Use alloca instead of xmalloc/xfree.
7212         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
7213         [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
7214         mac_draw_image_string* functions.
7215         (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
7216         some fonts when srcCopy text transfer mode might be used.
7217         (mac_begin_clip, mac_end_clip): Check if region is empty.
7218         (mac_set_clip_rectangles): When resetting clip region, make it
7219         empty instead of disposing of it.
7221 2006-02-20  Kim F. Storm  <storm@cua.dk>
7223         * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
7225         * buffer.h (struct buffer): New members fringe_indicator_alist and
7226         fringe_cursor_alist.
7228         * buffer.c (init_buffer_once): Set dummy default values for
7229         fringe-indicator-alist and fringe-cursor-alist.  The proper
7230         default values are set by pre-loading fringe.el.
7231         (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
7232         fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
7233         corresponding default- variables.
7235         * fringe.c (enum fringe_bitmap_type): Remove.  Change all uses
7236         to use `int'.
7237         (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
7238         Define explicitly.
7239         (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
7240         (Qhollow_small): New variables.
7241         (syms_of_fringe): Intern and staticpro them.
7242         (question_mark_bits): Rename from unknown_bits.
7243         (left_curly_arrow_bits): Rename from continuation_bits.
7244         (right_curly_arrow_bits): Rename from continued_bits.
7245         (left_triangle_bits): Rename from ov_bits.
7246         (right_triangle_bits): Add.
7247         (filled_rectangle_bits): Rename from filled_box_cursor_bits.
7248         (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
7249         (filled_square_bits): Add.
7250         (vertical_bar_bits): Rename from bar_cursor_bits.
7251         (horizontal_bar_bits): Rename from hbar_cursor_bits.
7252         (empty_line_bits): Rename from zv_bits.
7253         (standard_bitmaps): Update to use new names.
7254         (draw_fringe_bitmap_1): Make static.
7255         (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
7256         to map from logical cursors and indicators to physical bitmaps.
7257         (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
7258         bitmaps using symbol names instead of bitmap numbers.
7259         (update_window_fringes): Use logical indicator symbol names
7260         instead of bitmap numbers for logical.  Add bitmap cache.
7261         (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
7263 2006-02-20  Chong Yidong  <cyd@stupidchicken.com>
7265         * regex.c: Revert 2006-02-19 change.
7266         (xmalloc, xrealloc): Define these when not linked to Emacs.
7267         Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
7269 2006-02-19  Luc Teirlinck  <teirllm@auburn.edu>
7271         * regex.c (extend_range_table_work_area): Fix typo.
7273 2006-02-19  Richard M. Stallman  <rms@gnu.org>
7275         * xterm.c (x_catch_errors): Use xmalloc.
7277         * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
7278         (regex_compile): Likewise.
7279         (regcomp): Use xmalloc.
7281         * gtkutil.c (malloc_widget_value): Use xmalloc.
7283         * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
7284         (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
7286         * xmenu.c (digest_single_submenu): When pane_string is empty,
7287         do initialize save_wv.
7289 2006-02-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7291         * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
7292         w->update_mode_line if arg F is not the selected frame.
7294         * macmenu.c (popup_activated_flag, submenu_id)
7295         (next_menubar_widget_id): Remove variables.
7296         (initialize_frame_menubar): Remove function.
7297         (pop_down_menu, mac_menu_show): Simplify save value.
7298         (dispose_menus): New function.
7299         (pop_down_menu, fill_menubar): Use it.
7300         (fill_submenu): Remove function.  All uses changed to fill_menu.
7301         (add_menu_item): Remove args SUBMENU and FORCE_DISABLE.  New arg
7302         POS.  Don't call SetMenuItemHierarchicalID here.
7303         (fill_menu): Add arg SUBMENU_ID.  Return submenu_id that is to be
7304         used next.  Call SetMenuItemHierarchicalID here.
7305         (fill_menubar): Add arg DEEP_P.  All uses changed.  Clean up menu
7306         objects if needed.  Reuse existing menu bar titles if possible.
7307         (set_frame_menubar): Don't clean up menu objects here.
7309 2006-02-18  Chong Yidong  <cyd@stupidchicken.com>
7311         * window.c (window_min_size_1): Ensure room for the scroll bar and
7312         fringes.
7314 2006-02-17  Romain Francoise  <romain@orebokech.com>
7316         * puresize.h (BASE_PURESIZE): Increment to 1200000.
7318 2006-02-17  Stefan Monnier  <monnier@iro.umontreal.ca>
7320         * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
7321         addition of the BLOCK_INPUTs.
7323 2006-02-17  Juanma Barranquero  <lekktu@gmail.com>
7325         * window.c (Fset_window_scroll_bars): Doc fix.
7327 2006-02-17  Kenichi Handa  <handa@m17n.org>
7329         * xdisp.c (display_mode_element): Call display_string with correct
7330         PREC arg (which must be a number of characters, not column width).
7332 2006-02-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7334         * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
7336         * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
7338         * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
7340 2006-02-14  Richard M. Stallman  <rms@gnu.org>
7342         * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
7344         * m/ibms390x.h: New file.
7346 2006-02-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7348         * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
7349         value of x-gtk-whole-detached-tool-bar.
7350         (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
7352         * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
7354 2006-02-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7356         * xterm.c (x_x_to_emacs_modifiers): Make non-static.
7358         * xterm.h: Declare x_x_to_emacs_modifiers.
7360         * gtkutil.c (xg_tool_bar_button_cb): New function.
7361         (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
7362         store modifiers in event.
7363         (update_frame_tool_bar): Connect button-release-event to
7364         xg_tool_bar_button_cb.
7366 2006-02-13  Richard M. Stallman  <rms@gnu.org>
7368         * .gdbinit (xwindow): Update the code to show the window box.
7370 2006-02-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7372         * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
7374 2006-02-12  Richard M. Stallman  <rms@gnu.org>
7376         * cmds.c (internal_self_insert): Handle weird auto-fill-function.
7378 2006-02-11  Eli Zaretskii  <eliz@gnu.org>
7380         * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
7381         (syms_of_keyboard): DEVFAR_LISP and initialize it.
7382         (parse_tool_bar_item, parse_menu_item): If that variable is
7383         non-nil, don't disable menu items and tool-bar buttons.
7385 2006-02-11  Juanma Barranquero  <lekktu@gmail.com>
7387         * doc.c (Fsubstitute_command_keys): Doc fix.
7389 2006-02-10  Thien-Thi Nguyen  <ttn@gnu.org>
7391         * data.c (Findirect_function): Rewrite docstring.
7392         Fix omission bug: Declare new arg NOERROR.
7394 2006-02-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7396         * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
7397         if window_desc is not set yet.
7398         (Fx_create_frame): Remove variable x_frame_name.  Apply 2005-12-07
7399         and 2006-01-26 changes for xfns.c.  Call x_iconify_frame if frame
7400         parameter `visibility' is `icon'.
7401         (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
7402         instead of "fontset-mac".
7403         (Fx_focus_frame): New defun.
7404         (syms_of_macfns): Defsubr it.
7406         * macterm.c (mac_define_frame_cursor): Don't change pointer shape
7407         for unfocused frame.
7408         (x_raise_frame): Call BringToFront instead of SelectWindow.
7409         (x_lower_frame): Use NULL instead of nil.
7410         (x_make_frame_visible): Don't call SelectWindow.
7411         (XTread_socket): Increment handling_signal at the start, decrement
7412         it at the end.
7413         [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
7414         CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
7416 2006-02-10  Kim F. Storm  <storm@cua.dk>
7418         * data.c (Findirect_function): Add NOERROR arg.  All callers changed
7419         to pass Qnil for NOERROR.
7421         * keymap.c (current_minor_maps_error): Remove.
7422         (current_minor_maps): Pass Qt for NOERROR to Findirect_function
7423         instead of using internal_condition_case_1+current_minor_maps_error.
7425 2006-02-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7427         * xterm.c (handle_one_xevent): Must note mouse movement even for nil
7428         frames for GTK, in that case it is the tool bar.  This is so that
7429         highlighted text get reset properly.
7431 2006-02-09  Juanma Barranquero  <lekktu@gmail.com>
7433         * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
7435 2006-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7437         * window.c (adjust_window_trailing_edge): Check that shrinking
7438         does not set a window to size zero or less.
7440 2006-02-08  Miles Bader  <miles@gnu.org>
7442         * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
7443         of Fget_text_property (other field functions work with overlays as
7444         well as text-properties).
7446 2006-02-07  Kenichi Handa  <handa@m17n.org>
7448         * dispextern.h (unibyte_display_via_language_environment): Extern it.
7450         * xterm.h (unibyte_display_via_language_environment):
7451         * w32term.h (unibyte_display_via_language_environment):
7452         * macterm.h (unibyte_display_via_language_environment): Delete extern.
7454 2006-02-07  Kenichi Handa  <handa@m17n.org>
7456         * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
7457         (produce_glyphs): Set the character to print in
7458         it->char_to_display.  Handle unibyte-display-via-language-environment.
7459         (produce_stretch_glyph): Set character to print in it->char_to_display.
7461 2006-02-06  Kenichi Handa  <handa@m17n.org>
7463         * lread.c (openp): Initialize encoded_fn before GCPRO it.
7465 2006-02-05  Ken Raeburn  <raeburn@raeburn.org>
7467         * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
7469         * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
7470         Cast bitfield value to EMACS_INT, to suppress gcc warning.
7472         * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
7473         defining.
7475 2006-02-03  Kim F. Storm  <storm@cua.dk>
7477         * xdisp.c: Cache last merged escape glyph face.
7478         (last_escape_glyph_frame, last_escape_glyph_face_id)
7479         (last_escape_glyph_merged_face_id): New variables.
7480         (get_next_display_element): Use/update them.
7481         (redisplay_internal): Reset them before redisplay.
7483         * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
7484         Only recheck faces after displaying ellipsis.
7486 2006-02-02  Kenichi Handa  <handa@m17n.org>
7488         * coding.c (decode_composition_emacs_mule): Fix handling of
7489         incorrect format data.
7491 2006-01-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7493         * gtkutil.c (update_frame_tool_bar): Use new tool bar function
7494         gtk_toolbar_insert() so we can have tool bars of different sizes.
7496 2006-01-30  Luc Teirlinck  <teirllm@auburn.edu>
7498         * data.c (Flistp): Doc fix.
7500 2006-01-30  Juanma Barranquero  <lekktu@gmail.com>
7502         * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
7503         Fix typos in docstrings.
7505 2006-01-28  Luc Teirlinck  <teirllm@auburn.edu>
7507         * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
7509 2006-01-27  Chong Yidong  <cyd@stupidchicken.com>
7511         * alloc.c (make_interval, allocate_string)
7512         (allocate_string_data, make_float, Fcons, allocate_vectorlike)
7513         (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
7514         global variables.
7516 2006-01-27  Eli Zaretskii  <eliz@gnu.org>
7518         * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
7519         the MSDOS definition.
7521 2006-01-26  Richard M. Stallman  <rms@gnu.org>
7523         * alloc.c (check_pure_size): Make overflow message an "error message".
7525         * keymap.c (Fmap_keymap): Doc fix.
7527         * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
7528         unless they were cleared out.
7530         * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
7532 2006-01-26  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
7534         * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
7535         (find_field): Set before_field to after_field when pos is at BEGV.
7536         (Fline_beginning_position, Fline_end_position):
7537         Clarify confusing doc string.
7539         * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
7540         string.
7542 2006-01-26  Kenichi Handa  <handa@m17n.org>
7544         * callproc.c (Fcall_process): GCPRO error_file.  Encode infile,
7545         current_dir, and error_file.  On reporting an error, decode them
7546         back.
7548 2006-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>
7550         * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
7551         (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
7552         Don't check for quit, since any loop will go through fail or jump.
7554 2006-01-24  Chong Yidong  <cyd@stupidchicken.com>
7556         * alloc.c (allocate_string_data): Update next_free immediately, to
7557         reduce risk of memory clobberage.
7559 2006-01-24  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
7561         * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
7562         display when point moves across an ellipsis.  If there are
7563         adjacent invisible texts, don't lose the second one's ellipsis.
7564         (x_produce_glyphs): Doc fix.
7566 2006-01-23  Stefan Monnier  <monnier@iro.umontreal.ca>
7568         * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
7570 2006-01-23  Kim F. Storm  <storm@cua.dk>
7572         * xdisp.c (handle_single_display_spec): Fix handling of space
7573         property on char from string: set *position rather than
7574         it->current.pos.
7575         (produce_stretch_glyph): Reduce width of stretch glyphs so they
7576         don't get wider than the window (unless truncate-lines is on).
7578 2006-01-22  Stefan Monnier  <monnier@iro.umontreal.ca>
7580         * xterm.c: Avoid allocating Lisp data from a signal handler.
7581         (x_error_message): New var to replace x_error_message_string.
7582         (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
7583         (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
7584         (syms_of_xterm): Use it instead of x_error_message_string.
7586         * alloc.c (lisp_align_free): Add an assertion.
7587         (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
7588         (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
7589         a signal handler.
7591 2006-01-21  Luc Teirlinck  <teirllm@auburn.edu>
7593         * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
7595 2006-01-21  Romain Francoise  <romain@orebokech.com>
7597         * xdisp.c (get_window_cursor_type): Fix last change.
7598         Update copyright year.
7600 2006-01-20  Eli Zaretskii  <eliz@gnu.org>
7602         * lread.c (Fload): Don't leak the file descriptor returned by
7603         openp if we are going to signal an error.
7605         * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
7606         directly to _close.
7607         (sys_dup): Protect against new_fd larger than fd_info[] can handle.
7608         (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
7609         to _read.
7610         (sys_write): If FD is outside [0..MAXDESC) limits, pass it
7611         directly to _write.
7613         * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
7614         if it is NULL.
7616 2006-01-20  Kenichi Handa  <handa@m17n.org>
7618         * puresize.h (BASE_PURESIZE): Increment to 1190000.
7620 2006-01-19  Chong Yidong  <cyd@stupidchicken.com>
7622         * xdisp.c (get_window_cursor_type): Use cursor type specified by
7623         the selected buffer for the echo area too.
7625 2006-01-19  Richard M. Stallman  <rms@gnu.org>
7627         * keymap.c (Fmap_keymap): Doc fix.
7629         * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
7631         * keyboard.c (echo_char): Don't omit the space between first two
7632         echoed chars.
7634         * minibuf.c (read_minibuf): Fix previous change.
7636 2006-01-19  Kenichi Handa  <handa@m17n.org>
7638         * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
7640 2006-01-17  Richard M. Stallman  <rms@gnu.org>
7642         * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
7643         value in f->param_alist.
7645 2006-01-15  Andreas Schwab  <schwab@suse.de>
7647         * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
7649 2006-01-13  Richard M. Stallman  <rms@gnu.org>
7651         * Makefile.in: Define new macro WINDOW_SUPPORT.
7652         (lisp): Use it.
7653         (SOME_MACHINE_LISP): Add conditionally loaded files.
7655 2006-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7657         * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
7658         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
7659         (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
7660         decomposed form.
7662         * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
7663         (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
7664         (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
7665         macro.  Also try member ifr_addr when getting netmask.
7667 2006-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
7669         * fileio.c (Fexpand_file_name): Remove redundant tests.
7670         Fix elimination of // so that it doesn't prevent elimination of an
7671         immediately following /. or /..
7673 2006-01-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7675         * gtkutil.c (xg_toggle_notify_cb): New function.
7676         (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
7677         xg_toggle_notify_cb.
7678         (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
7679         parameter value changes so the toggle button gets updated.
7681 2006-01-06  Nick Roberts  <nickrob@snap.net.nz>
7683         * .gdbinit: Fix typo.
7685 2006-01-05  Eli Zaretskii  <eliz@gnu.org>
7687         * .gdbinit: Fix last change.
7689 2006-01-05  Kim F. Storm  <storm@cua.dk>
7691         * process.c (Fmake_network_process): Use AF_INET instead of
7692         AF_UNSPEC when AF_INET6 is not defined.
7694 2006-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7696         * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
7697         Don't check that the other type is known file-related one.
7699         * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
7700         gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
7701         OS X 10.4 and later.
7703 2006-01-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7705         * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
7706         let GTK do all image processing.  Importing Emacs own pixmaps to GTK
7707         looks bad for inactive tool bar items with some Gnome themes.
7709 2006-01-04  Eli Zaretskii  <eliz@gnu.org>
7711         * .gdbinit: Avoid a warning message when x_error_quitter is not
7712         compiled in.
7714         * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
7715         for w32.
7717 2006-01-04  Kim F. Storm  <storm@cua.dk>
7719         * process.c: Add IPv6 support.
7720         (Qipv4, Qipv6): New vars.
7721         (syms_of_process): Intern and staticpro them.
7722         (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
7723         with or without port number.  Handle 4 element vector as IPv4 address
7724         without port number.
7725         (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
7726         (conv_lisp_to_sockaddr): Handle IPv6 addresses.
7727         (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
7728         request that address family only.  :family nil or omitted means to
7729         determine address family from the specified :host and :service.
7730         (ifflag_table): Add missing OpenBSD IFF_ flags.
7731         (server_accept_connection): Handle IPv6 addresses.
7732         (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
7734         * .gdbinit: Undo last change.  Instead, look at Vsystem_type to
7735         determine which breakpoints to set.
7737 2006-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
7739         * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
7741         * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
7743 2006-01-03  Romain Francoise  <romain@orebokech.com>
7745         * emacs.c (main): Update copyright year.
7747 2006-01-03  Ken Raeburn  <raeburn@gnu.org>
7749         * callproc.c (delete_temp_file): Bind file-name-handler-alist to
7750         nil for the call to internal_delete_file.
7752 2006-01-01  Ken Raeburn  <raeburn@gnu.org>
7754         * callproc.c (Fcall_process_region): Bind file-name-handler-alist
7755         to nil for the call to Fwrite_region.
7757 2005-12-31  Richard M. Stallman  <rms@gnu.org>
7759         * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
7761 2005-12-31  Eli Zaretskii  <eliz@gnu.org>
7763         * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
7765 2005-12-30  Luc Teirlinck  <teirllm@auburn.edu>
7767         * textprop.c (set_text_properties): Reword description of return value.
7768         Return Qnil if caller wants to remove all text properties from a
7769         string and the string already has no intervals.
7771 2005-12-30  Stefan Monnier  <monnier@iro.umontreal.ca>
7773         * term.c (visible_cursor): New boolean var.
7774         (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
7775         visible_cursor.
7776         (syms_of_term): Export the new var as "visible-cursor".
7778 2005-12-30  Eli Zaretskii  <eliz@gnu.org>
7780         * .gdbinit: Tell users not to worry about GDB warnings that some
7781         functions do not exist in the binary.
7783 2005-12-30  Andreas Schwab  <schwab@suse.de>
7785         * process.c (Fnetwork_interface_info): Correctly terminate the
7786         loop over ifflag_table.
7788 2005-12-29  Richard M. Stallman  <rms@gnu.org>
7790         * lread.c (readevalloop): Test for reading a whole buffer
7791         before actually reading anything.  Handle all cases, including
7792         START = END = nil and an already-narrowed buffer.
7793         Convert END to a marker if it is a number.
7795         * keymap.c (describe_map): Put sparse map elements into an array,
7796         sort them, then output a sequence of identical bindings on one line.
7797         (struct describe_map_elt): New data type.
7798         (describe_map_compare): New function.
7800 2005-12-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7802         * gtkutil.c (xg_get_file_with_chooser): Change message shown
7803         in file chooser.
7805 2005-12-27  Richard M. Stallman  <rms@gnu.org>
7807         * lread.c (readevalloop): Set PT and ZV in the proper buffer,
7808         not the current one.
7810         * minibuf.c (Fminibuffer_message): Doc fix.
7811         (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
7813         * eval.c (do_autoload): Ignore elements of Vautoload_queue
7814         where car is not symbol.
7816 2005-12-27  Kenichi Handa  <handa@m17n.org>
7818         * charset.c (lisp_string_width): Check multibyteness of STRING.
7820 2005-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7822         * xfns.c (x_show_hidden_files): New variable.
7823         (syms_of_xfns): Defvar it.
7825         * gtkutil.c (xg_toggle_visibility_cb): New function.
7826         (xg_get_file_with_chooser): Add toggle hidden files and a message
7827         to the new file chooser dialog.  Show hidden files if
7828         x_show_hidden_files is non-zero.
7830 2005-12-26  Richard M. Stallman  <rms@gnu.org>
7832         * keyboard.h: Undo previous change.
7834         * Makefile.in (undo.o): Undo previous change.
7836         * undo.c: Undo previous change.
7838 2005-12-26  Luc Teirlinck  <teirllm@auburn.edu>
7840         * keyboard.h: extern last_point_position_window.
7842         * undo.c: include keyboard.h.
7844         * Makefile.in (undo.o): Depend on keyboard.h.
7846 2005-12-26  Richard M. Stallman  <rms@gnu.org>
7848         * commands.h (last_point_position_window): Declare.
7850         * undo.c: Depend on window.h.
7851         (record_point): Save old point from the correct window.
7853         * keyboard.c (last_point_position_window): New variable.
7854         (command_loop_1): Set last_point_position_window.
7855         (syms_of_keyboard): Init it.
7857         * Makefile.in (undo.o): Depend on window.h.
7859 2005-12-25  Richard M. Stallman  <rms@gnu.org>
7861         * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
7862         to undo a `provide'.
7864         * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
7866 2005-12-25  Giorgos Keramidas  <keramida@ceid.upatras.gr>
7868         * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
7869         define for FreeBSD on this platform.
7871 2005-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7873         * macterm.h (TYPE_FILE_NAME): New define.
7874         (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
7876         * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
7877         Add prototypes.  Make static.
7878         (mac_aedesc_to_lisp): Initialize err to noErr.
7879         (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
7880         (init_coercion_handler): New functions.
7881         (Fmac_coerce_ae_data): Use coercion of Apple event data for
7882         translation from/to file names.
7884         * macterm.c: Don't include sys/param.h.
7885         (init_coercion_handler): Add extern.
7886         [MAC_OS8] (main): Call init_coercion_handler.
7887         (mac_initialize) [MAC_OSX]: Likewise.
7888         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
7889         Apple event data for translation from/to file names.
7891         * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
7893         * image.c [MAC_OS] (find_image_fsspec): Likewise.
7895 2005-12-23  Martin Rudalics  <rudalics@gmx.at>
7897         * insdel.c (insert, insert_and_inherit, insert_before_markers)
7898         (insert_before_markers_and_inherit): Make sure FROM is correct
7899         when `after-change-functions' are called.
7901 2005-12-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7903         * xfns.c (Fx_uses_old_gtk_dialog): New function.
7905         * gtkutil.c (xg_uses_old_file_dialog): New function.
7906         (xg_get_file_name): Use xg_uses_old_file_dialog.
7908         * gtkutil.h: Declare xg_uses_old_file_dialog.
7910 2005-12-22  Richard M. Stallman  <rms@gnu.org>
7912         * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
7914 2005-12-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7916         * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
7918         * macgui.h (XCharStruct): Remove member `valid_p'.
7919         (STORE_XCHARSTRUCT): Don't set member `valid_p'.
7920         (XCharStructRow): New typedef.
7921         (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
7922         New macros.
7923         (struct MacFontStruct): Add member `bounds'.  Remove member
7924         `per_char'.  All uses for QuichDraw Text fonts are changed to
7925         `bounds.per_char'.  ATSUI font bounds are represented as an array
7926         `bounds.rows' of XCharStructRow's, each of which consists of a
7927         bitmap of valid entries and an array of char bounds.
7929         * macterm.c (mac_per_char_metric): Add prototype.
7930         (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
7931         (mac_query_char_extents): New function.
7932         (x_per_char_metric): Use it.
7933         (XLoadQueryFont): Likewise.  Consolidate min/max_bounds calculations.
7934         [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
7935         Use mac_per_char_metric instead of x_per_char_metric.
7936         (mac_text_extents_16): New function.
7937         (mac_compute_glyph_string_overhangs): Use it.
7938         (mac_unload_font): Free member `bounds' in struct MacFontStruct.
7940 2005-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
7942         * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
7943         (Fminibuffer_completion_help): Remove duplicates before display.
7945 2005-12-21  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
7947         * print.c (print_preprocess): Don't lose print_depth levels while
7948         iterating.
7950 2005-12-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7952         * macmenu.c (Qmac_apple_event): Add extern.
7953         (set_frame_menubar, mac_menu_show keymp_panes)
7954         (single_keymap_panes, list_of_panes, list_of_item)
7955         (single_menu_item): Add argument types to prototypes.
7956         (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
7957         (struct skp): New struct (from xmenu.c).
7958         (single_keymap_panes, single_menu_item, list_of_panes)
7959         (list_of_item): Sync with xmenu.c.
7960         (Fx_popup_menu, Fx_popup_dialog): Likewise.  Don't get window from
7961         POSITION if it is mac-apple-event event.
7962         (menubar_selection_callback): Don't use menu_command_in_progress.
7963         (set_frame_menubar): First parse all submenus, then make
7964         widget_value trees from them.  Don't allocate any widget_value
7965         objects until we are done with the parsing.
7966         (parse_single_submenu, digest_single_submenu): New functions.
7967         (single_submenu): Function deleted, replaced by those two.
7968         (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
7969         or dispose of EventHandlerUPP.  Install hander to all submenus.
7970         (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
7971         instead of ENCODE_SYSTEM.
7972         (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
7973         integer values.
7974         [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
7975         (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
7976         format menu item string.  Don't use NULL for integer value.
7978         * macterm.h (struct mac_output): Remove unused member
7979         menu_command_in_progress.
7981 2005-12-20  Juri Linkov  <juri@jurta.org>
7983         * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
7984         position is non-nil, else set it to nil.
7986         * macmenu.c (Fx_popup_menu): Add `else' to set
7987         Vmenu_updating_frame to nil only if position is nil.
7989         * w32menu.c (Fx_popup_menu): Add `else' to set
7990         Vmenu_updating_frame to nil only if position is nil.
7992 2005-12-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7994         * keyboard.c (make_lispy_event): Drag-and-drop items are now
7995         stored in member `args' of struct input_event.
7997         * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
7999         * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
8000         stored in member `args' of struct input_event.
8002         * w32term.c (construct_drag_n_drop): Likewise.
8004         * macterm.c (mac_do_receive_drag): Likewise.
8005         (x_use_underline_position_properties): Undo 2005-07-13 change.
8006         (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
8007         (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
8008         (mac_pass_command_to_system, mac_pass_control_to_system):
8009         New boolean variables renamed from Lisp_Object ones
8010         Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
8011         Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
8012         All uses changed.
8013         (syms_of_macterm): DEFVAR_BOOL them.  Remove previous DEFVAR_LISPs.
8014         Make them user options.
8015         (mac_handle_command_event, mac_store_services_event):
8016         Call create_apple_event_from_event_ref without 5th argument.
8017         (backtranslate_modified_keycode): Mask off modifier keys that are
8018         mapped to some Emacs modifiers before passing it to KeyTranslate.
8019         (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
8020         `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
8021         Fix docstrings of `mac-*-modifier'.
8023         * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
8024         (do_applescript): Change argument types to Lisp_Object.
8025         All uses changed.
8027         * macterm.h (create_apple_event_from_event_ref): Remove 5th
8028         argument from extern.
8030 2005-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
8032         * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
8033         the answer, return `lambda', not nil.
8035 2005-12-17  Eli Zaretskii  <eliz@gnu.org>
8037         * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
8038         enclosed in $(ARGQUOTE)s should not be split between two lines, as
8039         that will break with GNU Make >3.80, when sh.exe is used and
8040         arg quoting is with '..'.
8042 2005-12-17  Chong Yidong  <cyd@stupidchicken.com>
8044         * print.c (print_preprocess): Just signal an error if print_depth
8045         is exceeded.
8047 2005-12-17  Eli Zaretskii  <eliz@gnu.org>
8049         * .gdbinit: Set a breakpoint on w32_abort.
8051 2005-12-16  Juri Linkov  <juri@jurta.org>
8053         * minibuf.c (Fminibuffer_completion_contents): New Lisp function
8054         created from minibuffer_completion_contents.
8055         (minibuffer_completion_contents): Remove.
8056         (do_completion, Fminibuffer_complete_word)
8057         (Fminibuffer_completion_help): Replace minibuffer_completion_contents
8058         with Fminibuffer_completion_contents.
8059         (syms_of_minibuf): Add Sminibuffer_completion_contents.
8060         (Fdisplay_completion_list): Doc fix.
8061         (display_completion_list_1): Use `nil' for second arg of
8062         `Fdisplay_completion_list'.
8064 2005-12-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8066         * xfns.c (compute_tip_xy): Handle negative dx and dy.
8068         * w32fns.c (compute_tip_xy): Ditto.
8070         * macfns.c (compute_tip_xy): Ditto.
8072 2005-12-14  Chong Yidong  <cyd@stupidchicken.com>
8074         * print.c (print_preprocess): Go to a deeper print_depth to avoid
8075         print_object loop.
8077 2005-12-14  Kyotaro HORIGUCHI  <horiguti@meadowy.org>  (tiny change)
8079         * coding.c (code_convert_region_unwind): GCPRO arg.
8081 2005-12-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8083         * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
8084         i.e. dy is offset from top of frame instead of bottom.
8086         * macfns.c (compute_tip_xy): Ditto.
8088         * w32fns.c (compute_tip_xy): Ditto.
8090         * gtkutil.c (SSDATA): New macro to remove compiler warnings.
8091         (xg_get_image_for_pixmap, xg_create_frame_widgets)
8092         (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
8094         * xmenu.c (menubar_selection_callback): Do nothing if the callback
8095         is for an unselected radio menu item.
8097 2005-12-11  Richard M. Stallman  <rms@gnu.org>
8099         * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
8101         * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
8103         * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
8104         (Flookup_key): Doc fix.
8105         (syms_of_keymap) <function-key-map>: Doc fix.
8107         * fns.c (Frequire): Treat evaluating from a source file
8108         like loading the file.
8110         * floatfns.c (Flog): Doc fix.
8112         * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
8113         when we change the buffer.
8115 2005-12-11  Juri Linkov  <juri@jurta.org>
8117         * minibuf.c (display_completion_list_1):
8118         Call `minibuffer_completion_contents' instead of using `nil' as
8119         second arg of `Fdisplay_completion_list'.
8120         (keys_of_minibuf): Unbind SPC in
8121         Vminibuffer_local_filename_completion_map (see also related
8122         change on 2005-12-06).
8124 2005-12-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8126         * emacs.c (main) [MAC_OS8]: Undo previous change.
8128         * macselect.c (syms_of_macselect) <mac-apple-event-map>:
8129         Initialize to nil.  Keymap is now created in lisp/term/mac-win.el.
8131 2005-12-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8133         * Makefile.in (macselect.o): Depend on keymap.h.
8135         * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
8136         syms_of_macselect.
8138         * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
8139         [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
8141         * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
8142         (syms_of_keyboard) [MAC_OS]: Initialize it.
8143         (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
8145         * mac.c (Qundecoded_file_name): New variable.
8146         (syms_of_mac): Initialize it.
8147         (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
8148         [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
8149         (Fmac_coerce_ae_data): New defun.
8150         (syms_of_mac): Defsubr it.
8152         * macselect.c: Include keymap.h.
8153         (mac_ready_for_apple_events): New variable.
8154         (Vmac_apple_event_map, Qmac_apple_event_class)
8155         (Qmac_apple_event_id): New variables.
8156         (syms_of_macselect): Initialize them.
8157         (Qundefined, mac_store_apple_event): Add externs.
8158         (struct apple_event_binding): New struct.
8159         (find_event_binding_fun, find_event_binding)
8160         (mac_find_apple_event_spec, defer_apple_events)
8161         (mac_handle_apple_event, init_apple_event_handler)
8162         (copy_scrap_flavor_data): New functions.
8163         (Fmac_process_deferred_apple_events): New defun.
8164         (syms_of_macselect): Defsubr it.
8165         (mac_store_services_event): Fix extern.
8166         (mac_handle_service_event): Don't allocate Lisp objects during
8167         asynchronous input processing.  Use mac_store_services_event
8168         instead of mac_store_application_menu_event.
8170         * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
8171         (Qpreferences): Remove variables.
8172         (syms_of_macterm): Don't initialize them.
8173         (Qhicommand) [USE_CARBON_EVENTS]: New variable.
8174         (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
8175         (init_required_apple_events, do_ae_open_application)
8176         (do_ae_print_documents, do_ae_open_documents)
8177         (do_ae_quit_application): Remove functions and prototypes.
8178         (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
8179         (mac_find_apple_event_spec): Add externs.
8180         (mac_store_application_menu_event): Remove function.
8181         (mac_store_apple_event, mac_make_lispy_event_code): New functions.
8182         (mac_handle_command_event): Create Apple event from Carbon event.
8183         Use mac_store_apple_event instead of mac_store_application_menu_event.
8184         [MAC_OSX] (mac_store_services_event): Likewise.
8185         (struct SelectionRange, SelectionRange): Remove struct and typedef.
8186         [MAC_OS8] (main): Call init_apple_event_handler instead of
8187         init_required_apple_events.
8188         (mac_initialize) [MAC_OSX]: Likewise.
8189         [!USE_CARBON_EVENTS] (mac_wait_next_event):
8190         Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
8192         * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
8193         Add externs.
8194         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
8195         (Fmac_get_preference): Add EXFUN.
8197         * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
8198         event.
8200 2005-12-09  Richard M. Stallman  <rms@gnu.org>
8202         * xfns.c (Fx_create_frame): Reinstate previous change.
8204 2005-12-09  Eli Zaretskii  <eliz@gnu.org>
8206         * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
8207         GDB to the abort dialog.
8209 2005-12-09  Kyotaro HORIGUCHI  <horiguti@meadowy.org>  (tiny change)
8211         * indent.c (Fvertical_motion): Force move if starting on
8212         stretch glyph.
8214 2005-12-08  Richard M. Stallman  <rms@gnu.org>
8216         * lread.c (read_escape) <\s>: Don't treat strings specially.
8218         * xfns.c (Fx_create_frame): Comment out previous change.
8220 2005-12-07  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
8222         * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
8223         when needed.
8225 2005-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
8227         * minibuf.c (keys_of_minibuf): Just unbind SPC in
8228         Vminibuffer_local_filename_completion_map rather than forcing it
8229         explicitly to the same binding as the global map.
8231 2005-12-06  Ken Raeburn  <raeburn@gnu.org>
8233         * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
8234         * bytecode.c (Fbyte_code): Likewise.
8235         * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
8236         * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
8237         * undo.c (truncate_undo_list): Likewise.
8239 2005-12-05  Richard M. Stallman  <rms@gnu.org>
8241         * window.c (enlarge_window): Eliminate arg preserve_before.
8242         Assume it is 0.  All callers changed.
8243         (Fenlarge_window, Fshrink_window): Likewise.
8245 2005-12-02  Eli Zaretskii  <eliz@gnu.org>
8247         * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
8248         fit below.
8250 2005-12-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8252         * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
8254         * xfns.c (x_real_positions): int ign => unsigned int.
8255         (xg_set_icon_from_xpm_data): Remove unused variable err.
8256         (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
8257         to remove compiler warning.
8258         (compute_tip_xy): Put tip above pointer if it doesn't fit below.
8260 2005-12-02  David Reitter  <david.reitter@gmail.com>
8262         * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
8263         non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
8264         and Vminibuffer_local_must_match_filename_map keymaps.
8265         (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
8267         * keymap.c (Vminibuffer_local_filename_completion_map)
8268         (Vminibuffer_local_must_match_filename_map): New variables.
8269         (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
8270         parent to be Vminibuffer_local_completion_map and
8271         Vminibuffer_local_must_match_map, respectively.
8273         * commands.h (Vminibuffer_local_filename_completion_map)
8274         (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
8276 2005-12-01  Stefan Monnier  <monnier@iro.umontreal.ca>
8278         * window.c (Fset_window_configuration): Don't accidentally copy the
8279         window-point of one window to another.
8281 2005-11-30  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
8283         * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
8285 2005-11-30  Kim F. Storm  <storm@cua.dk>
8287         * alloc.c: Include fcntl.h.  Define O_WRONLY if not defined.
8288         (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
8289         passing it to `emacs_write'.
8291 2005-11-29  Ari Roponen  <arjuropo@cc.jyu.fi>  (tiny change)
8293         * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
8295 2005-11-27  Richard M. Stallman  <rms@gnu.org>
8297         * window.c (adjust_window_trailing_edge): New function.
8298         (Fadjust_window_trailing_edge): New function.
8299         (syms_of_window): Defsubr it.
8300         (window_deletion_count): New variable.
8301         (delete_window): Update window_deletion_count.
8303 2005-11-26  Eli Zaretskii  <eliz@gnu.org>
8305         * minibuf.c (syms_of_minibuf): Mention the extension of
8306         `completion-auto-help's meaning by complete.el.
8308 2005-11-26  Henrik Enberg  <henrik.enberg@telia.com>
8310         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
8311         Handle :inherit property as a lisp expression.
8313 2005-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8315         * macterm.c (Qcontrol): Rename from Qctrl.  All uses changed.
8316         (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
8317         Qsuper, and Qmodifier_value.
8318         (Vmac_control_modifier, Vmac_option_modifier)
8319         (Vmac_command_modifier, Vmac_function_modifier)
8320         (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
8321         (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
8322         (Vmac_charset_info_alist): Doc fixes.
8324 2005-11-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8326         * emacs.c (main) [MAC_OSX]: Change working directory to home
8327         directory if `-psn_*' option is specified.
8329         * mac.c (DECODE_UTF_8): Remove macro.
8330         [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
8331         created from cfstring_to_lisp.
8332         [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
8333         (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
8335         * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
8336         Add prototype.
8338 2005-11-21  Ken Raeburn  <raeburn@gnu.org>
8340         * keymap.c (shadow_lookup): Use make_number to pass a number to
8341         Fsubstring.
8343 2005-11-21  Juri Linkov  <juri@jurta.org>
8345         * puresize.h (BASE_PURESIZE): Increment to 1180000.
8347 2005-11-20  Chong Yidong  <cyd@stupidchicken.com>
8349         * xfaces.c (Finternal_set_lisp_face_attribute):
8350         Use :ignore-defface for new frame defaults when `unspecified' is
8351         supplied.
8352         (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
8353         (merge_face_vectors): Don't do :ignore-defface overwriting here.
8354         (Finternal_merge_in_global_face): Do it here.
8356 2005-11-20  Juri Linkov  <juri@jurta.org>
8358         * charset.c (invalid_character): Use Lisp-readable syntax
8359         for octal and hex.  Reorder decimal, octal and hex values.
8361 2005-11-20  Nick Roberts  <nickrob@snap.net.nz>
8363         * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
8364         this type is recognised when debugging.
8366 2005-11-19  Andreas Schwab  <schwab@suse.de>
8368         * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
8369         Lisp_Cons and Lisp_Float.
8371 2005-11-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8373         * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
8374         New variable.
8375         [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
8376         (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
8377         [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
8378         font size is smaller than or equal to cg_text_anti_aliasing_threshold.
8380 2005-11-17  Chong Yidong  <cyd@stupidchicken.com>
8382         * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
8384         * xfaces.c (Qignore_defface): New variable.
8385         (syms_of_xfaces): Provide `:ignore-defface'.
8386         (IGNORE_DEFFACE_P): New macro.
8387         (check_lface_attrs, lface_fully_specified_p)
8388         (Finternal_set_lisp_face_attribute)
8389         (Fface_attribute_relative_p, Fmerge_face_attribute):
8390         Handle Qignore_defface as a possible value.
8391         (merge_face_vectors): The merged face is `unspecified' if the
8392         mergee specifies `:ignore-defface'.
8394 2005-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
8396         * lread.c (readevalloop): Add missing GCPROs.
8398 2005-11-16  Chong Yidong  <cyd@stupidchicken.com>
8400         * xfns.c (xg_set_icon_from_xpm_data): New function.
8402         * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
8403         (gnu_xbm_bits): Rename from gnu_bits (xbm version).
8405         * xterm.c (x_bitmap_icon): Use the xpm if available.
8407         * image.c (x_create_bitmap_from_xpm_data): New function.
8408         (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
8410 2005-11-15  Luc Teirlinck  <teirllm@auburn.edu>
8412         * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
8414 2005-11-16  Nick Roberts  <nickrob@snap.net.nz>
8416         * .gdbinit: Make SIGTSTP work like SIGINT normally does.
8418 2005-11-15  Andreas Schwab  <schwab@suse.de>
8420         * lisp.h (struct Lisp_Cons): Make cdr a union.
8421         (XCDR_AS_LVALUE): Adjust.
8422         (struct Lisp_Float): Make data a union.
8423         (XFLOAT_DATA): Adjust.
8425         * alloc.c (free_float): Make free list chaining aliasing-safe.
8426         (make_float): Likewise.
8427         (free_cons): Likewise.
8428         (Fcons): Likewise.
8429         (check_cons_list): Likewise.
8430         (Fmake_symbol): Likewise.
8431         (allocate_misc): Likewise.
8432         (free_misc): Likewise.
8433         (gc_sweep): Likewise.
8435 2005-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8437         * mac.c (HASHKEY_QUERY_CACHE): New define.
8438         (xrm_create_database, xrm_q_put_resource): Empty query cache.
8439         (xrm_get_resource): Use query cache.
8441         * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
8442         inhibit_window_system is set.
8444 2005-11-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8446         * macgui.h (USE_CG_TEXT_DRAWING): New define.
8447         (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
8448         and cg_glyphs.
8450         * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
8451         (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
8452         (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
8453         cg_glyphs in struct MacFontStruct if synthesized bold or italic is
8454         not used and font substitution never occurs for ASCII and Latin-1
8455         characters.
8456         (XLoadQueryFont): Maximum and minimum metrics are now those among
8457         ASCII characters.
8458         (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
8459         height adjustments for Courier, Helvetica, and Times.
8461         * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
8463 2005-11-11  David Reitter  <david.reitter@gmail.com>
8465         * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
8466         macMetaKey, macAltKey.  Introduce Qctrl, Qmeta,
8467         Vmac_control_modifier / mac-control-modifier,
8468         Vmac_option_modifier / mac-option-modifier,
8469         Vmac_command_modifier / mac-command-modifier.
8470         (mac_to_emacs_modifiers): Use the new style modifier
8471         variables.  Return UInt32 (modifiers are longs now.)
8472         (backtranslate_modified_keycode): New function (refactoring).
8473         (XTread_socket): Use new modifier variables and refactored function.
8474         (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
8475         no dedicated meta key.  Not in use anyway.)
8476         (convert_fn_keycode): Map Fn-keys to their original keycode
8477         using a table (english keyboard only).
8479 2005-11-11  Kim F. Storm  <storm@cua.dk>
8481         * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
8482         Add post hook to "backtrace" to always dump lisp call stack to
8483         increase chance of people sending it to us when reporting bugs.
8485         * doc.c (Fsubstitute_command_keys): Doc fix.
8487         * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
8489         * xdisp.c (handle_stop): Skip overlay string handling if
8490         ignore_overlay_strings_at_pos_p is set.
8491         (set_iterator_to_next): At end of display vector, set
8492         ignore_overlay_strings_at_pos_p if dpvec came from an overlay
8493         string, so we skip those overlay strings at current pos.
8495 2005-11-10  Lars Hansen  <larsh@soem.dk>
8497         * fileio.c (file-regular-p): Doc fix.
8499 2005-11-10  Kim F. Storm  <storm@cua.dk>
8501         * alloc.c (valid_lisp_object_p): New function to validate that
8502         an object is really a valid Lisp_Object.
8504         * lisp.h (valid_lisp_object_p): Add prototype.
8506         * print.c (safe_debug_print): New function to be called from gdb
8507         to print Lisp objects; use valid_lisp_object_p to avoid crashing
8508         if user tries to print something which is not a Lisp object.
8510         * .gdbinit (pp, pp1): Use safe_debug_print.
8511         (pv, pv1): New commands to print value of a lisp variable.
8513 2005-11-10  Nick Roberts  <nickrob@snap.net.nz>
8515         * .gdbinit (pp1): New user-defined function.
8517 2005-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8519         * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
8521         * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
8522         related variables for dumped executable.
8524         * unexmacosx.c (unexec_write_zero): New function.
8525         (copy_data_segment): Clear uninitialized local variables in
8526         statically linked libraries.
8528         * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
8530 2005-11-09  Juri Linkov  <juri@jurta.org>
8532         * keymap.c (shadow_lookup): If Flookup_key returns a number,
8533         call it again with a sub-key-sequence, and if its return value
8534         is non-nil (sub-key is bound), return nil.
8536 2005-11-08  Kim F. Storm  <storm@cua.dk>
8538         * process.c (Fsignal_process): Recognize signal names with and
8539         without SIG prefix, e.g. SIGHUP and HUP.
8541         * search.c (search_buffer): No need to initialize base_pat.
8543 2005-11-04  Stefan Monnier  <monnier@iro.umontreal.ca>
8545         * window.c (Fget_lru_window, Fget_largest_window, window_loop):
8546         Don't abuse the `mini' arg.  Use the `obj' arg instead.
8548 2005-11-04  Kim F. Storm  <storm@cua.dk>
8550         * xdisp.c (show_mouse_face): Clear mouse face to eol.
8552 2005-11-03  Dan Nicolaescu  <dann@ics.uci.edu>
8554         * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
8555         font-lock.elc and jit-lock.elc.
8557 2005-11-03  Richard M. Stallman  <rms@gnu.org>
8559         * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
8560         (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
8561         (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
8563         * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
8565         * alloc.c (refill_memory_reserve): Move decl out of conditionals.
8567 2005-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
8569         * window.c (Fdisplay_buffer): Fix last change to not use
8570         a dedicated window.
8572 2005-11-01  Kim F. Storm  <storm@cua.dk>
8574         * fringe.c (update_window_fringes): Undo 2005-10-27 change.
8575         Instead, rotate the bottom angle bitmap 180 degrees to indicate
8576         that the bottom row does not end in a newline.
8578 2005-11-01  Andreas Schwab  <schwab@suse.de>
8580         * unexelf.c (unexec): Handle .plt section in BSS segment.
8582 2005-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
8584         * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
8586         * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
8587         determine whether to consider dedicated windows as well.
8588         (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
8589         (Fdisplay_buffer): Do consider dedicated windows in those cases where
8590         we will split the window rather than reuse it.
8591         Don't try to use windows on other displays.
8593 2005-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
8595         * puresize.h (BASE_PURESIZE): Increment to 1170000.
8597 2005-10-31  Romain Francoise  <romain@orebokech.com>
8599         * macfns.c: Update copyright year.
8600         * m/gould.h: Likewise.
8602 2005-10-30  Kim F. Storm  <storm@cua.dk>
8604         * xdisp.c (display_line): Restore it->current_x and call
8605         extend_face_to_end_of_line when last glyph doesn't fit on line.
8606         (set_glyph_string_background_width): Remove specific tests here
8607         to see if face background should extend to end of line.  Simplify.
8609 2005-10-30  Richard M. Stallman  <rms@gnu.org>
8611         * alloc.c (BYTES_USED): Use uordblks, not arena.
8612         (bytes_used_when_reconsidered): New variable.
8613         (emacs_blocked_free): Set that.
8615 2005-10-29  Chong Yidong  <cyd@stupidchicken.com>
8617         * alloc.c (emacs_blocked_free): Fix typo.
8619 2005-10-29  Richard M. Stallman  <rms@gnu.org>
8621         * data.c (Fmake_variable_frame_local): Doc fix.
8623         * xdisp.c (handle_fontified_prop): Do nothing if memory full.
8624         (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
8625         controls whether to save and restore mode_line_proptrans_alist.
8626         Callers changed.
8627         (unwind_format_mode_line): Work with that feature.
8628         (redisplay_internal): Don't call prepare_menu_bars if memory full.
8629         (move_elt_to_front): New function.
8630         (display_mode_element): Use move_elt_to_front.
8631         Don't bother munging text props on a null string.
8632         Delete obsolete elts from mode_line_proptrans_alist.
8633         (decode_mode_spec): Test Vmemory_full, not spare_memory.
8634         (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
8636         * lisp.h (memory_full_cons_threshold): Declare.
8637         (internal_lisp_condition_case): Declare.
8639         * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
8640         (Fmemory_full_p): Function deleted.
8641         (syms_of_alloc): Don't defsubr it.
8642         (memory_full_cons_threshold): New variable.
8643         (spare_memory): Now a vector of 7 elts.
8644         (buffer_memory_full): Don't set Vmemory_full here.
8645         (xfree): Don't try to refill here.
8646         (emacs_blocked_free): Record BYTES_USED in local var.
8647         (memory_full): Now free all the slots in spare_memory.
8648         (refill_memory_reserve): Allocate each slot in spare_memory.
8649         (init_alloc_once): Call refill_memory_reserve.
8651         * keyboard.c (command_loop_1): Don't set Vmemory_full here.
8653         * eval.c (internal_lisp_condition_case): New function.
8654         (Fcondition_case): Use internal_lisp_condition_case.
8655         (Feval): Test Vmemory_full and memory_full_cons_threshold.
8656         (Ffuncall): Likewise.
8658         * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
8660 2005-10-29  Stefan Monnier  <monnier@iro.umontreal.ca>
8662         * syntax.c (Fparse_partial_sexp): Fix docstring.
8664 2005-10-28  Romain Francoise  <romain@orebokech.com>
8666         * puresize.h (BASE_PURESIZE): Increment to 1130000.
8668 2005-10-28  Richard M. Stallman  <rms@gnu.org>
8670         * xfns.c (syms_of_xfns): Provide `x' as feature.
8672         * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
8674         * editfns.c (Fformat): Don't include string padding
8675         between info[n].start and info[n].end.
8677         * alloc.c (spare_memory): No longer static.
8678         (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
8680         * puresize.h (BASE_PURESIZE): Increment to 1120000.
8682 2005-10-27  Chong Yidong  <cyd@stupidchicken.com>
8684         * data.c (Fmake_variable_frame_local): Add clarification to docstring.
8686         * fringe.c (update_window_fringes): Handle case where buffer ends
8687         with a newline.
8689 2005-10-27  Kenichi Handa  <handa@m17n.org>
8691         * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
8693 2005-10-24  Kenichi Handa  <handa@m17n.org>
8695         * charset.h (charset_mule_unicode_0100_24ff)
8696         (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
8697         Extern them.
8699         * charset.c (charset_mule_unicode_0100_24ff)
8700         (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
8701         New variables.
8702         (Fsetup_special_charsets): Initialize them.
8704         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
8705         supported Unicode characters.
8707 2005-10-25  Jason Rumney  <jasonr@gnu.org>
8709         * w32fns.c (w32_to_x_font): Avoid forcing font widths.
8711 2005-10-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8713         * image.c [MAC_OS] (image_load_qt_1): Check image size.
8714         Use GraphicsImportGetImageDescription instead of
8715         GraphicsImportGetNaturalBounds.
8716         [MAC_OSX] (image_load_quartz2d): Check image size.
8717         [MAC_OS] (xpm_load_image): Likewise.
8719         * macterm.c (last_mouse_glyph_frame): New var.
8720         (note_mouse_movement): Say mouse moved if current frame differs
8721         from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
8722         (XTmouse_position): Set last_mouse_glyph_frame.
8723         (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
8724         (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
8725         Use EndianU16_BtoN.
8726         (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
8727         (x_per_char_metric, XLoadQueryFont)
8728         [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
8729         glyph bounds.
8730         (mac_to_x_fontname, mac_do_list_fonts)
8731         (mac_initialize_display_info): Change screen resolutions to 72dpi.
8733 2005-10-25  Masatake YAMATO  <jet@gyve.org>
8735         * minibuf.c (Fdisplay_completion_list): Small doc fix.
8737 2005-10-24  Kim F. Storm  <storm@cua.dk>
8739         * xterm.c: Undo 2005-10-23 change.
8740         (last_mouse_glyph_frame): New var.
8741         (note_mouse_movement): Say mouse moved if current frame differs
8742         from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
8743         (XTmouse_position): Set last_mouse_glyph_frame.
8744         (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
8745         last_mouse_glyph] on mouse up/down event.
8747         * editfns.c (Fcompare_buffer_substrings): Fix last change.
8749 2005-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
8751         * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
8753 2005-10-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8755         * xterm.c (note_mouse_movement): Always call note_mouse_highlight
8756         so tool tips don't interfere with press on tool bar button.
8758 2005-10-23  Richard M. Stallman  <rms@gnu.org>
8760         * casetab.c (Fset_case_table): Doc fix.
8762         * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
8763         (readevalloop): Compute ENTIRE properly.
8764         (syms_of_lread) <load-history>: Doc fix.
8766 2005-10-21  Richard M. Stallman  <rms@gnu.org>
8768         * lread.c (Fload): Simplify gcpro structure.
8769         Gcpro FOUND as well as FILE, but not EFOUND.
8770         Unless preloading, record FOUND instead of FILE in Vload_history.
8771         Rename repeat local FILE to MSG_FILE.
8772         (syms_of_lread) <load-history>: Doc fix.
8774 2005-10-21  Kenichi Handa  <handa@m17n.org>
8776         * search.c (boyer_moore): Add parens to fix and/or precedence bug.
8778 2005-10-20  Kim F. Storm  <storm@cua.dk>
8780         * buffer.c (clone_per_buffer_values): Remove unused var tem.
8781         (init_buffer): Remove unused vars dotstat, pwdstat.
8783         * ccl.c (check_ccl_update): Remove unused var vp.
8785         * fileio.c (auto_save_error): Call SAFE_FREE.
8787         * fns.c (Fchar_table_range): Remove unused var i.
8789         * minibuf.c (display_completion_list_1): New wrapper function
8790         for Fdisplay_completion_list.
8791         (Fminibuffer_completion_help): Use it.
8793         * term.c (encode_terminal_code): Remove unused var src_start.
8795         * window.c (Fwindow_tree): Remove unused var alist.
8797         * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
8799 2005-10-20  Aubrey Jaffer  <agj@alum.mit.edu>  (tiny change)
8801         * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
8803 2005-10-20  Olli Savia  <ops@iki.fi>  (tiny change)
8805         * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
8807 2005-10-20  Andreas Schwab  <schwab@suse.de>
8809         * minibuf.c (Fdisplay_completion_list): Doc fix.
8811 2005-10-19  Kim F. Storm  <storm@cua.dk>
8813         * image.c (check_image_size): Handle integer Vmax_image_size value
8814         directly as max pixel value.  Use default frame size for null frame.
8815         (syms_of_image) <max-image-size>: Describe integer value.
8817 2005-10-19  Romain Francoise  <romain@orebokech.com>
8819         * emacs.c (main): Update copyright year.
8821 2005-10-18  Chong Yidong  <cyd@stupidchicken.com>
8823         * image.c (Vmax_image_size): New variable.
8824         (check_image_size): New function.
8825         (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
8826         (gif_load, gs_load): Use it.
8827         (lookup_image): Try loading again if previous load failed.
8828         (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
8829         to display in, NULL if none.
8830         (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
8831         argument.
8833 2005-10-18  Richard M. Stallman  <rms@gnu.org>
8835         * search.c (Fstring_match): Doc fix.
8837 2005-10-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8839         * macterm.c (note_mouse_movement): Use PtInRect.
8840         (XTread_socket): Also ignore mouse motion just before a button
8841         release event.  Don't process button release event when mouse is
8842         not grabbed.
8844 2005-10-16  Masatake YAMATO  <jet@gyve.org>
8846         * minibuf.c (Fdisplay_completion_list): Add new optional
8847         argument COMMON_SUBSTRING.  Bind `completion-common-substring'
8848         to the optional argument during running `completion-setup-hook'.
8850 2005-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8852         * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
8853         Allow nil as argument.
8854          [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
8855         for encoding arguments as UTF-16 in native byte order, no BOM.
8857         * macfns.c (Fx_create_frame): Add debugging code.
8858         (Fx_show_tip): Set frame pixel width and height.
8860         * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
8861         (FRAME_NORMAL_GC): New macro.
8862         (mac_draw_line, mac_clear_area, mac_clear_window)
8863         (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
8864         (mac_draw_image_string, mac_draw_image_string_16): Rename from
8865         XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
8866         XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
8867         All uses changed.
8868         (mac_draw_line, mac_erase_rectangle, mac_clear_area)
8869         (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
8870         (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
8871         (mac_draw_string_16, mac_draw_image_string)
8872         (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
8873         (mac_scroll_area): Drawing functions now take frame as destination.
8874         All uses changed.
8875         (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
8876         (x_draw_fringe_bitmap): Set clipping area in face->gc.
8878         * macterm.h (mac_clear_area): Add extern.
8880 2005-10-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8882         * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
8883         changes for xterm.c.
8885         * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
8887 2005-10-14  Kenichi Handa  <handa@m17n.org>
8889         * search.c (search_buffer): Give up BM search on case-fold-search
8890         if one of a target character has a case-equivalence of different
8891         charset even if that target charcter is an ASCII.
8893         * casefiddle.c (casify_object): Fix for the case that case
8894         conversion change the byte length.
8896 2005-10-14  Kim F. Storm  <storm@cua.dk>
8898         * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
8899         (handle_one_xevent): Only clear help_echo_string; restore it if
8900         note_mouse_movement didn't record any mouse movement.
8902         * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
8903         (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
8905         * keyboard.c (make_lispy_position): Adjust wx for left margin if
8906         ON_TEXT.
8907         (Fposn_at_x_y): Fix calculation of x coordinate.
8908         (Fposn_at_point): Return nil if point is hscrolled out of view.
8910 2005-10-13  Andreas Schwab  <schwab@suse.de>
8912         * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
8913         non-interactive mode.
8915 2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8917         * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
8919 2005-10-12  Kim F. Storm  <storm@cua.dk>
8921         * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
8923 2005-10-12  Romain Francoise  <romain@orebokech.com>
8925         * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
8927 2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8929         * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
8930         get end of text rows.  Obtain header-line/mode-line rows directly.
8932         * xterm.c, w32term.c, macterm.c (note_mouse_movement):
8933         Restore help_echo_string if mouse is moved inside last_mouse_glyph.
8935 2005-10-12  Kim F. Storm  <storm@cua.dk>
8937         * xdisp.c (remember_mouse_glyph): New generic version based on
8938         glyph_rect and remember_mouse_glyph from xterm.c enhanced to
8939         properly handle all different window areas.
8941         * dispextern.h (remember_mouse_glyph): Add prototype.
8943         * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
8944         (note_mouse_movement, XTmouse_position): Use generic
8945         remember_mouse_glyph, add last_mouse_glyph arg.
8947         * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
8948         (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
8949         (note_mouse_movement, w32_mouse_position): Use generic
8950         remember_mouse_glyph, add last_mouse_glyph arg.
8952         * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
8953         (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
8954         (XTmouse_position): Adapt to use generic remember_mouse_glyph
8955         instead of pixel_to_glyph_coords.
8957         * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
8958         Fix x position for ON_TEXT when left margin width > 0.
8960 2005-10-11  Kim F. Storm  <storm@cua.dk>
8962         * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
8964         * keyboard.c (make_lispy_position): Fix buffer calculations for
8965         mouse click or movement in right fringe and the margins.
8967 2005-10-11  Juanma Barranquero  <lekktu@gmail.com>
8969         * image.c (fn_jpeg_stdio_src): Don't define it.
8970         (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
8971         (our_common_init_source): Rename from `our_init_source'.
8972         (our_common_term_source): Rename from `our_term_source'.
8973         (our_memory_fill_input_buffer): Rename from
8974         `our_fill_input_buffer'.
8975         (our_memory_skip_input_data): Rename from `our_skip_input_data'.
8976         (jpeg_memory_src): Use the new names.
8977         (struct jpeg_stdio_mgr): New struct.
8978         (JPEG_STDIO_BUFFER_SIZE): New constant.
8979         (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
8980         (jpeg_file_src): New functions.
8981         (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
8983 2005-10-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8985         * macterm.c (PER_CHAR_METRIC): Remove unused macro.
8986         (fm_font_family_alist): New variable.
8987         (syms_of_macterm): Initialize and staticpro it.
8988         (decode_mac_font_name): Replace '-' in family name with '_' if it
8989         occurs just once.  Lower family name.
8990         (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
8991         All uses changed.  Remove argument MF and code conversion for it.
8992         Add argument SIZE.  Rename argument MF_DECODED to FAMILY, and CS
8993         to CHARSET.  Parse font size.  Lower family name.  Return integer
8994         value for status of parsing.
8995         (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
8996         Don't use Fdowncase because family name is already lowered by
8997         decode_mac_font_name.
8998         (init_font_name_table): Always call decode_mac_font_name.
8999         Add pair of family name and its reference to fm_font_family_alist.
9000         (mac_clear_font_name_table): Clear fm_font_family_alist.
9001         (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
9002         Lookup fm_font_family_alist to get font family reference.
9003         (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
9004         name is already lowered by parse_x_font_name.
9006 2005-10-11  Kim F. Storm  <storm@cua.dk>
9008         * xterm.c (glyph_rect): Return 0 if position is outside text area.
9010         * keyboard.c (make_lispy_position): Fix buffer position calculation for
9011         mouse click or movement in fringe.
9013 2005-10-10  Jason Rumney  <jasonr@gnu.org>
9015         * xterm.c (remember_mouse_glyph): New function.
9016         (note_mouse_movement): Use it to remember the current glyph if changed.
9017         (XTmouse_position): Fix calculation of fake glyph under mouse.
9018         Move code to calculate glyph under mouse into remember_mouse_glyph.
9020 2005-10-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9022         * emacs.c (USAGE3, standard_args): -nb => -nbi.
9024 2005-10-10  Juanma Barranquero  <lekktu@gmail.com>
9026         * frame.c (Fredirect_frame_focus): Fix typos in docstring.
9027         (next_frame, prev_frame, set_term_frame_name): Make static.
9029         * window.c (Fwindow_tree): Fix spelling.
9031 2005-10-09  Romain Francoise  <romain@orebokech.com>
9033         * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
9035 2005-10-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9037         * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
9038         Add options -nb, --no-bitmap-icon.
9040         * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
9042 2005-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9044         * macgui.h (MAX_CLIP_RECTS): New define.
9045         (struct _XGC): New member clip_region.
9046         (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
9047         clip_rects.
9049         * macterm.c (GC_CLIP_REGION): New macro.
9050         (saved_port_clip_region): New variable.
9051         (mac_begin_clip, mac_end_clip): New functions.
9052         (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
9053         (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
9054         (mac_copy_area_with_mask, mac_scroll_area): Use them.
9055         (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
9056         [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
9057         [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
9058         (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
9059         rectangles stored in gc.
9060         (XFreeGC): Dispose of clipping region.
9061         (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
9062         (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
9063         (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
9064         (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
9065         (x_draw_bar_cursor): Use them.
9066         (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
9067         get multiple clipping rectangles.
9069         * macterm.h (mac_term_init): Add types to extern.
9070         (struct mac_output): Remove members mWP and pending_menu_activation.
9071         Put members scroll_bar_foreground_pixel and
9072         scroll_bar_background_pixel in #if 0.
9073         (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
9075         * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
9076         Add debugging code.
9078 2005-10-08  Kim F. Storm  <storm@cua.dk>
9080         * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
9082 2005-10-07  Kim F. Storm  <storm@cua.dk>
9084         * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
9085         [!HAVE_WINDOW_SYSTEM]: Don't declare them...
9086         (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
9088 2005-10-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9090         * dispextern.h (struct glyph_string): Rename member for_overlaps_p
9091         to for_overlaps.  Now occupy 3 bits.
9092         (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
9093         (OVERLAPS_ERASED_CURSOR): New defines.
9094         (struct redisplay_interface): Add new OVERLAPS arg to member
9095         fix_overlapping_area.
9096         (x_fix_overlapping_area): Add new OVERLAPS arg.
9097         (get_glyph_string_clip_rects): Add extern.
9099         * dispnew.c (redraw_overlapping_rows):
9100         Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
9102         * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
9103         for_overlaps.
9104         (get_glyph_string_clip_rects): New function created from
9105         get_glyph_string_clip_rect.  Set clipping rectangles according to the
9106         value of for_overlaps.  Enable to store multiple clipping rectangles.
9107         (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
9108         (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
9109         Rename argument OVERLAPS_P to OVERLAPS.  All uses in macros changed.
9110         (x_fix_overlapping_area): Add OVERLAPS arg.  Pass it to draw_glyphs.
9111         (draw_phys_cursor_glyph): Set width of erased cursor to use it for
9112         calculating clipping rectangles later.  Call x_fix_overlapping_area
9113         with new OVERLAPS arg to draw only erased cursor area.
9114         (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
9115         to draw overlaps in both preceding and succeeding rows.
9117         * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
9118         struct glyph_string to for_overlaps.
9120 2005-10-04  Richard M. Stallman  <rms@gnu.org>
9122         * alloc.c (refill_memory_reserve): Conditionalize the body,
9123         not the function's existence.
9125 2005-10-04  Kim F. Storm  <storm@cua.dk>
9127         * window.c (window_split_tree): New function.
9128         (Fwindow_split_tree): New defun.
9129         (syms_of_window): Defsubr it.
9131 2005-10-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9133         * macterm.c (mac_invert_rectangle): New function.
9134         (XTflash): Use it.
9136 2005-10-04  Stefan Monnier  <monnier@iro.umontreal.ca>
9138         * regex.h (re_char): Don't expose it in the interface.
9139         (re_set_whitespace_regexp): Adjust the arg's type to not use it.
9141         * regex.c (re_char): Move it back here.
9142         (re_set_whitespace_regexp): Change the arg's type to not use it.
9144         * keyboard.c (make_lispy_event): If point has moved between down and up
9145         event, make it a drag, not a click, to mirror what
9146         mouse-drag-region expects.
9148 2005-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
9150         * lisp.h (fatal): Undo previous change.
9151         * term.c (fatal): Undo previous change.
9153 2005-10-01  Richard M. Stallman  <rms@gnu.org>
9155         * xfaces.c (face_color_gray_p): Colors close to black count as gray.
9157 2005-10-01  Kim F. Storm  <storm@cua.dk>
9159         * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
9161 2005-10-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9163         * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
9165         * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
9166         (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
9167         (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
9168         Try ATSUI-compatible 12pt Monaco font first.
9170         * macgui.h (struct _XCharStruct): New member valid_p.
9171         (STORE_XCHARSTRUCT): Set valid_p.
9172         (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
9174         * macterm.c (mac_draw_string_common, x_per_char_metric)
9175         (mac_compute_glyph_string_overhangs, init_font_name_table)
9176         (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
9177         (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
9178         (x_draw_glyph_string_background)
9179         (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
9180         XDrawImageString.  Always draw background and foreground separately.
9181         (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
9182         functions for one-byte chars when using ATSUI-compatible fonts.
9183         (atsu_font_id_hash) [USE_ATSUI]: New variable.
9184         (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
9185         (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
9186         max_char_or_byte2 more in detail.
9187         (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
9189 2005-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
9191         * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
9192         * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
9194         * unexelf.c (fatal): Fix prototype.
9196         * term.c (fatal): Implement using varargs.
9198         * regex.c (re_char): Move typedef ...
9199         * regex.h (re_char): ... here.
9200         (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
9202         * emacs.c (malloc_set_state): Fix return type.
9203         (endif): Fix type.
9205         * lisp.h (fatal): Add argument types.
9207         * dispextern.h (fatal): Delete prototype.
9209         * systime.h (make_time): Prototype moved from ...
9210         * editfns.c (make_time): ... here.
9212         * editfns.c: Move systime.h include after lisp.h.
9213         * dired.c:
9214         * xsmfns.c:
9215         * process.c: Likewise.
9217         * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
9218         Add parameter types.
9219         (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
9220         (emacs_blocked_free): Change definition to match __free_hook.
9221         (emacs_blocked_malloc): Change definition to match __malloc_hook.
9222         (emacs_blocked_realloc): Change definition to match __realloc_hook.
9224 2005-09-30  Romain Francoise  <romain@orebokech.com>
9226         * minibuf.c (Fread_buffer): Follow convention for reading from the
9227         minibuffer with a default value.  Doc fix.
9229 2005-09-29  Juri Linkov  <juri@jurta.org>
9231         * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
9232         Rename argument name `string' to `format-string'.
9233         (Fformat): Doc fix.
9235 2005-09-28  Kim F. Storm  <storm@cua.dk>
9237         * image.c (gif_load): Fix size of allocated image buffer
9238         for images where a sub-image may be larger than the image's
9239         total height/width specifications.
9241 2005-09-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9243         * macgui.h (struct _XCharStruct): Each member now takes short value.
9245 2005-09-27  Dan Nicolaescu  <dann@ics.uci.edu>
9247         * xfaces.c (lookup_derived_face): Add parameter type.
9249         * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
9251         * marker.c (verify_bytepos): Add parameter type.
9253         * process.c (get_operating_system_release): Move prototype ...
9255         * systime.h (get_operating_system_release): ... here.
9257         * xterm.c (handle_one_xevent): Refer to union field to match the
9258         type required by the function definition.
9259         (set_vertical_scroll_bar): Move prototype ...
9261         * xterm.h: ... here.
9263         * fns.c (internal_equal, seed_random): Fix prototypes.
9264         (internal_equal): Add missing parameter.
9266 2005-09-25  Richard M. Stallman  <rms@gnu.org>
9268         * keyboard.c (update_menu_bindings): Variable deleted.
9269         (syms_of_keyboard): Don't defvar it.
9270         (parse_menu_item): Don't test it.
9272 2005-09-23  Richard M. Stallman  <rms@gnu.org>
9274         * editfns.c (Fformat): Explicitly test for end of format string
9275         and don't use `index'.
9277 2005-09-23  Dan Nicolaescu  <dann@ics.uci.edu>
9279         * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
9280         Define BROKEN_GET_CURRENT_DIR_NAME.
9282         * sysdep.c (get_current_dir_name): Also define if
9283         BROKEN_GET_CURRENT_DIR_NAME.
9285         * m/ibmrs6000.h: Test for USG5, not USG5_4.
9287 2005-09-22  Kim F. Storm  <storm@cua.dk>
9289         * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
9290         (message2): Fix commentary.  Ok to use alloca'ed memory.
9291         Still not ok to use Lisp string data (because of GC).
9292         (set_message): Add comment why GC cannot happen.
9294 2005-09-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9296         * macterm.c (xlfdpat_block_match_1): Fix assertion.
9297         (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
9298         variants for a scalable font multiple times.
9300 2005-09-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9302         * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
9303         Setup slave tty options before forking.
9305 2005-09-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9307         * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
9308         positions have been set for the frame (as is done for frames in
9309         special-display-buffer-names).
9311 2005-09-19  Kim F. Storm  <storm@cua.dk>
9313         * editfns.c (Fformat): Don't scan past end of format string that
9314         ends in %.  Reported by Johan Bockg\e,Ae\e(Brd.
9316 2005-09-18  Andreas Schwab  <schwab@suse.de>
9318         * window.h (struct window): Remove height_fixed_p, no longer set.
9320         * window.c (make_window): Don't initialize height_fixed_p.
9321         (window_fixed_size_p): Don't use it.
9323 2005-09-18  John Paul Wallington  <jpw@pobox.com>
9325         * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
9327 2005-09-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9329         * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
9331         * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
9332         New variables.
9333         [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
9334         file selection.
9336         * sysdep.c [MAC_OS8]: Don't include stdlib.h.  Include sys/param.h.
9338 2005-09-17  Eli Zaretskii  <eliz@gnu.org>
9340         * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
9341         (obj): Use XMENU_OBJ, not a literal xmenu.o.
9343 2005-09-16  Romain Francoise  <romain@orebokech.com>
9345         * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
9347 2005-09-15  Richard M. Stallman  <rms@gnu.org>
9349         * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
9350         (display_mode_element): Instead of `lisp_string' and `this',
9351         record `offset' and increment that.
9352         `last_offset' replaces `last'.
9354         * Makefile.in (XMENU_OBJ): Variable deleted.
9355         (obj): Use xmenu.o unconditionally.
9356         (SOME_MACHINE_OBJECTS): Delete xmenu.o.
9358         * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
9360 2005-09-15  Kim F. Storm  <storm@cua.dk>
9362         * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
9363         (reseat_at_next_visible_line_start): Likewise (in xassert).
9365 2005-09-14  Romain Francoise  <romain@orebokech.com>
9367         * fileio.c (write_region_inhibit_fsync): New variable.
9368         (Fwrite_region): Use it to skip call to fsync.
9369         (syms_of_fileio): Initialize it.
9371 2005-09-14  Kenichi Handa  <handa@m17n.org>
9373         * coding.c (code_convert_region_unwind): Argument format changed.
9374         (run_pre_post_conversion_on_str): If pre-write-conversion function
9375         changed the current buffer, delete the new buffer.
9376         (run_pre_write_conversin_on_c_str): Likewise.
9378         * fileio.c (Fexpand_file_name): Check multibyteness of
9379         default_directory.
9381 2005-09-13  Kenichi Handa  <handa@m17n.org>
9383         * composite.c (compose_chars_in_text): Delete it.
9385         * composite.h (compose_chars_in_text): Delete extern.
9387 2005-09-13  Kim F. Storm  <storm@cua.dk>
9389         * print.c (print_error_message): Fix last change.
9391 2005-09-12  Kim F. Storm  <storm@cua.dk>
9393         * composite.c (compose_chars_in_text): Fix setup of `pend'.
9394         Unconditionally reload `ptr' and `pend' after eval.
9396         * xdisp.c (message3): Pass copy of lisp string to message_dolog.
9398         * print.c (print_error_message): Pass copy of caller name to
9399         message_dolog.
9401         * fileio.c (auto_save_error): Pass copy of lisp string to message2.
9403 2005-09-12  Kenichi Handa  <handa@m17n.org>
9405         * xdisp.c (display_mode_element): Be sure to make variables THIS
9406         and LISP_STRING point into a string data of ELT.
9408 2005-09-12  Kim F. Storm  <storm@cua.dk>
9410         * editfns.c (Ftranslate_region_internal): Reload `tt' after
9411         signal_after_change that may have GC'ed.
9412         (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
9414         * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
9415         after insert while runs signal_after_change.
9417         * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
9418         declaration to where it is used.
9420         * w32.c (check_windows_init_file): Fix allocation of error buffer.
9422         * xfns.c (x_encode_text): Declare static.  Add FREEP arg.
9423         (x_set_name_internal): Call x_encode_text with new FREEP arg to
9424         know if xfree is needed instead of guessing.
9426         * xterm.h (x_encode_text): Remove prototype.
9428 2005-09-11  Chris Prince  <cprince@gmail.com>  (tiny change)
9430         * w32term.c (x_bitmap_icon): Load small icons too.
9432 2005-09-10  Romain Francoise  <romain@orebokech.com>
9434         * buffer.c (init_buffer): Grow buffer to add directory separator
9435         and terminal zero.  Fix typos.
9437 2005-09-10  Eli Zaretskii  <eliz@gnu.org>
9439         * buffer.c (init_buffer): Fix error message for failed call to
9440         get_current_dir_name.
9441         (get_current_dir_name): Remove prototype.
9443         * xsmfns.c (get_current_dir_name): Remove prototype.
9445         * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
9446         Add prototype.
9448         * sysdep.c [WINDOWSNT]: Add prototype for getwd.
9449         Don't #undef NULL after including blockinput.h.
9451         * config.in: Regenerated.
9453 2005-09-10  Giuseppe Scrivano  <gscrivano@gmail.com>
9455         Remove the MAXPATHLEN limitations:
9457         * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
9458         New function.
9460         * buffer.c (init_buffer): Use it.
9462         * xsmfns.c (smc_save_yourself_CB): Ditto.
9464 2005-09-09  Kim F. Storm  <storm@cua.dk>
9466         * doc.c (Fsubstitute_command_keys): Lookup key binding for
9467         commands that are remapped from some other command.
9469         * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
9470         flag in disabled rows below the window.
9472         * frame.h (struct frame): New member updated_p.
9474         * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
9475         member.  Remove local `updated' array and associated variables.
9477 2005-09-07  Kim F. Storm  <storm@cua.dk>
9479         * xdisp.c (handle_display_prop): Respect overlay window property.
9481         * xdisp.c (try_window): Remove superfluous cursor_height calculation.
9482         Fixes crash reported by YAMAMOTO Mitsuharu.
9484 2005-09-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9486         * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
9487         (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
9488         (xlfdpat_block_match_1, xlfdpat_match): New functions.
9489         (xlfdpat_block_match): New macro.
9490         (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
9491         (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
9492         (add_font_name_table_entry): Increase font_name_table_size more
9493         rapidly.
9494         (mac_c_string_match): Remove function.
9495         (mac_do_list_fonts): Use XLFD pattern match instead of regular
9496         expression match.
9498         * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
9500 2005-09-03  Richard M. Stallman  <rms@gnu.org>
9502         * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
9503         (move_it_in_display_line_to): Stop after last char on line even
9504         on a windowing terminal, if that's the specified stop position.
9506         * fns.c (Fsort): Doc fix.
9508         * editfns.c (Fpropertize): Don't insist that properties be symbols.
9510 2005-09-02  Stefan Monnier  <monnier@iro.umontreal.ca>
9512         * dired.c (directory_files_internal_unwind, directory_files_internal)
9513         (file_name_completion): Use a Save_Value object rather than a cons of
9514         two 16bit ints to store the DIR*.
9515         (directory_files_internal, file_name_completion): Handle both EINTR and
9516         EAGAIN consistently after `readdir'.
9518 2005-09-01  Stefan Monnier  <monnier@iro.umontreal.ca>
9520         * intervals.c (update_interval): Add position info in error.
9522         * dispnew.c (window_to_frame_hpos, update_window):
9523         Avoid gcc warning about unused variable `f'.
9525 2005-08-31  Jason Rumney  <jasonr@gnu.org>
9527         * w32menu.c (add_menu_item): If unicode_append_menu returns an
9528         error, revert to using AppendMenu.
9530 2005-08-31  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9532         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
9533         All uses changed.
9534         [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
9535         cases.
9536         (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
9537         [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
9538         Use posix_pathname_to_fsspec.
9539         [MAC_OS] (xpm_load_image): Fill in background_transparent field
9540         while we have mask.
9542         * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
9544         * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
9546 2005-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
9548         * syntax.c (update_syntax_table): Properly reproduce the special +1
9549         setting of e_property at the end of the buffer when bumping into the
9550         INTERVALS_AT_ONCE limit.
9552 2005-08-27  Eli Zaretskii  <eliz@gnu.org>
9554         * emacs.c (USAGE1): Fix the description of the -Q option.
9556 2005-08-26  Stefan Monnier  <monnier@iro.umontreal.ca>
9558         * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
9560 2005-08-26  Kim F. Storm  <storm@cua.dk>
9562         * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
9563         Don't move PT to new window start.
9565 2005-08-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9567         * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
9568         ICONIFY/DEICONIFY_EVENT.
9570         * macterm.c (mac_copy_area, mac_copy_area_with_mask):
9571         Restore background color.
9572         (mac_handle_visibility_change): New function.
9573         (x_make_frame_invisible, x_iconify_frame)
9574         (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
9575         [USE_CARBON_EVENTS] (mac_handle_window_event)
9576         (install_window_handler): Handle visibility change events.
9577         (x_make_frame_visible): Don't reposition window if it is iconified
9578         or asked for visible before.  Select and uncollapse window when it
9579         is made visible.
9580         (x_make_frame_invisible): Don't reset x_highlight_frame.
9581         (x_iconify_frame): Likewise.  Make invisible frame visible before
9582         it is iconified.
9583         (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
9584         (do_window_update): Don't change visibility of invisible frame.
9586 2005-08-22  Juri Linkov  <juri@jurta.org>
9588         * term.c (turn_on_face): Check for TS_set_foreground and
9589         TS_set_background depending on standout_mode.  Simplify.
9591 2005-08-21  Kim F. Storm  <storm@cua.dk>
9593         * fringe.c (update_window_fringes): Only put TOP and BOTTOM
9594         bitmaps on fully visible rows.
9596         * fringe.c (update_window_fringes): Replace FORCE_P arg with
9597         KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
9598         and return 0.
9600         * xdisp.c (redisplay_window): Call update_window_fringes with
9601         KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
9603 2005-08-20  Richard M. Stallman  <rms@gnu.org>
9605         * xdisp.c (display_echo_area_1): Get display start pos from w->start.
9606         (resize_mini_window): Set w->start, and PT, so as to display the tail
9607         end of the buffer, if it doesn't all fit.
9609 2005-08-18  Kim F. Storm  <storm@cua.dk>
9611         * xdisp.c (calc_pixel_width_or_height): Use actual display
9612         resolution when available instead of Vdisplay_pixels_per_inch.
9614 2005-08-17  Kim F. Storm  <storm@cua.dk>
9616         * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
9618         * dispnew.c (buffer_posn_from_coords): Check that target row is
9619         within matrix.
9621 2005-08-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9623         * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
9624         xg_set_frame_icon and call it.
9626         * gtkutil.c (xg_set_frame_icon): New function.
9628         * gtkutil.h (xg_set_frame_icon): Declare it.
9630 2005-08-16  Kim F. Storm  <storm@cua.dk>
9632         * dispnew.c (increment_row_positions): Skip non-enabled rows.
9634         * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
9635         (Fcurrent_window_configuration): Use VECSIZE macro instead.
9637 2005-08-15  Richard M. Stallman  <rms@gnu.org>
9639         * xdisp.c (message3_nolog): Clear echo_message_buffer.
9641 2005-08-15  Kim F. Storm  <storm@cua.dk>
9643         * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
9645         * process.c (deactivate_process, status_notify, read_process_output)
9646         (update_status, status_convert, decode_status, allocate_pty)
9647         (make_process, remove_process, list_processes_1)
9648         (create_process_1, unwind_request_sigio, read_process_output)
9649         (send_process, keyboard_bit_set): Declare static.
9650         (Fdelete_process): Simplify.  Pass process to status_notify, so we
9651         don't try to read output from it.
9652         (status_notify): New arg deleting_process--don't try to read
9653         output from that process.
9655         * lisp.h (deactivate_process, status_notify, read_process_output):
9656         Remove prototypes.
9658 2005-08-14  Richard M. Stallman  <rms@gnu.org>
9660         * image.c (syms_of_image): Init Qxbm, Qpbm before calling
9661         define_image_type.
9663 2005-08-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9665         * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
9666         (xg_get_image_for_pixmap): Move some code to
9667         xg_get_pixbuf_from_pix_and_mask, and call it.
9669         * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
9671         * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
9672         to get an GTK icon and set it with GTK functions to avoid having GTK
9673         override an icon set with just X functions.
9675 2005-08-11  Richard M. Stallman  <rms@gnu.org>
9677         * image.c (syms_of_image): Init image_types here, and call
9678         define_image_type.
9679         (init_image): Not here.
9681 2005-08-09  Richard M. Stallman  <rms@gnu.org>
9683         * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
9685         * lisp.h (QUIT): Throw t to Vthrow_on_input.
9687 2005-08-09  Thien-Thi Nguyen  <ttn@gnu.org>
9689         * floatfns.c (Fexpt): Use floats for negative exponent.
9691 2005-08-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9693         * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
9694         should not be there, causing menu display errors with GTK 2.6.9.
9696 2005-08-07  Richard M. Stallman  <rms@gnu.org>
9698         * floatfns.c (Fexpt): Undo previous change.
9700         * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
9701         so it can be used with various state vectors.
9703         * emacs.c (endif): Convert -script into -scriptload.
9704         (standard_args): Add -scriptload.  Allow -basic-display with one dash.
9706         * fns.c (syms_of_fns): Add `emacs' to features.
9708         * term.c (set_terminal_modes): If no TS_termcap_modes string,
9709         output newlines to scroll the old screen contents off the screen.
9711 2005-08-06  Thien-Thi Nguyen  <ttn@gnu.org>
9713         * floatfns.c (Fexpt): Use floats for negative exponent.
9714         Reported by D Goel.
9716 2005-08-02  Richard M. Stallman  <rms@gnu.org>
9718         * frame.c (Fframe_char_width): Doc fix.
9720 2005-07-30  Juanma Barranquero  <lekktu@gmail.com>
9722         * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
9723         Defvar it.
9725 2005-07-28  Juanma Barranquero  <lekktu@gmail.com>
9727         * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
9728         (my_create_window, my_create_tip_window): Make static.
9730         * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
9731         (my_set_foreground_window, my_destroy_window): Make static.
9733 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
9735         Merge gnulib getopt implementation into Emacs.
9737         * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
9738         now part of lib-src.
9740 2005-07-26  Stefan Monnier  <monnier@iro.umontreal.ca>
9742         * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
9744 2005-07-25  Jason Rumney  <jasonr@gnu.org>
9746         * w32menu.c (w32_menu_display_help): Suppress tooltip when
9747         navigating menus with the keyboard.
9749 2005-07-23  Richard M. Stallman  <rms@gnu.org>
9751         * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
9753         * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
9754         gc_relative_threshold, one by one.
9756         * keyboard.c (read_char): Test gc_cons_threshold.
9757         (syms_of_keyboard): staticpro Qecho_area_clear_hook.
9759         * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
9760         gc_relative_threshold, one by one.
9762         * alloc.c (gc_cons_threshold): Not static.
9763         (gc_cons_combined_threshold): Var deleted.
9764         (gc_relative_threshold): New variable.
9765         (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
9766         instead of gc_cons_combined_threshold.
9768         * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
9769         (gc_cons_combined_threshold): Declaration deleted.
9771 2005-07-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9773         * mac.c: Don't include stdlib.h or string.h.
9774         (Fdo_applescript, Fmac_file_name_to_posix)
9775         (Fmac_file_name_to_posix): Doc fixes.
9776         [TARGET_API_MAC_CARBON] (Fmac_get_preference)
9777         (Fmac_code_convert_string): Likewise.
9778         [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
9779         if the executable is not contained in a bundle.
9781         * macfns.c: Don't include stdlib.h or string.h.  Include atimer.h.
9782         (gray_width, gray_height): Remove defines.
9783         (gray_bits, gray_bitmap_width, gray_bitmap_height)
9784         (gray_bitmap_bits): Remove variables.
9785         (lispy_function_keys): Remove extern.
9786         (free_frame_menubar): Add extern.
9787         (x_window_to_frame): Remove function.
9788         (unwind_create_tip_frame): Add declaration.
9789         (x_set_name_internal): New function.
9790         (x_set_name, x_set_title): Use it.
9791         (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
9792         (Fx_display_pixel_height, Fx_display_planes)
9793         (Fx_display_color_cells, Fx_server_max_request_size)
9794         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9795         (Fx_display_mm_height, Fx_display_mm_width)
9796         (Fx_display_backing_store, Fx_display_visual_class)
9797         (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
9799         * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
9801         * macselect.c (Fx_own_selection_internal): Follow error conventions.
9802         (Fx_get_selection_internal, Fx_selection_owner_p)
9803         (Fx_selection_exists_p): Doc fixes.
9804         (syms_of_macselect) <selection-converter-alist>: Likewise.
9806 2005-07-21  Juanma Barranquero  <lekktu@gmail.com>
9808         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
9810         * ccl.c (Fregister_ccl_program): Fix typos in docstring.
9811         (Fccl_execute_on_string): Likewise; add usage info.
9813         * composite.c (Fcompose_region_internal)
9814         (Fcompose_string_internal):
9815         Improve argument/docstring consistency.
9817         * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
9818         Fix typos in docstrings.
9820         * textprop.c (Fnext_char_property_change)
9821         (Fprevious_char_property_change): Doc fixes.
9823         * window.c (Fset_window_margins, Fset_window_fringes):
9824         Improve argument/docstring consistency.
9826         * xfaces.c (Finternal_lisp_face_p): Doc fix.
9828 2005-07-21  Andreas Schwab  <schwab@suse.de>
9830         * eval.c (restore_stack_limits): Return a value.
9832 2005-07-20  Juanma Barranquero  <lekktu@gmail.com>
9834         * eval.c (Fdefvar): Doc fix.
9836 2005-07-20  Kim F. Storm  <storm@cua.dk>
9838         * fileio.c (Fdo_auto_save, do_auto_save_unwind):
9839         Use make_save_value to unwind protect stream.
9841         * lread.c (Fload, load_unwind):
9842         Use make_save_value to unwind protect stream.
9844 2005-07-19  Juanma Barranquero  <lekktu@gmail.com>
9846         * eval.c (Fprog2, Fcalled_interactively_p),
9847         (syms_of_eval) <debug-on-quit>: Doc fixes.
9848         (syms_of_eval) <max-specpdl-size>:
9849         (Finteractive_p): Fix typos in docstrings.
9851 2005-07-19  Kim F. Storm  <storm@cua.dk>
9853         * w32fns.c (Vx_hand_shape): Variable removed.
9854         (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
9856 2005-07-19  Kenichi Handa  <handa@m17n.org>
9858         * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
9860 2005-07-18  Stefan Monnier  <monnier@iro.umontreal.ca>
9862         * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
9864 2005-07-18  Kim F. Storm  <storm@cua.dk>
9866         * frame.h (struct frame): New member already_hscrolled_p.
9868         * xdisp.c (redisplay_internal): Only try to hscroll each frame once
9869         to avoid redisplay looping hscrolling back and forth ad infinitum.
9871 2005-07-18  Juri Linkov  <juri@jurta.org>
9873         * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
9874         * keymap.c (Fminor_mode_key_binding):
9875         * macterm.c (mac-emulate-three-button-mouse):
9876         Delete duplicate duplicate words.
9878 2005-07-18  Ken Raeburn  <raeburn@gnu.org>
9880         * minibuf.c (Ftest_completion): Fix odd syntax in test.
9882 2005-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9884         * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
9886         * macgui.h (struct _XGC): New struct.
9887         (GC): Use it.
9888         (GCForeground, GCBackground, GCFont): Use X11 mask values.
9889         (XCreateGC, XParseGeometry): Move externs to macterm.h.
9891         * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
9892         (XSetFont): Add declaration.
9893         (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
9894         Remove functions.
9895         (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
9896         New defines.
9897         (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
9898         (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
9899         (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
9900         Use them.
9901         (mac_erase_rectangle): New function.
9902         (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
9903         (x_draw_stretch_glyph_string): Use it.
9904         (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
9905         (XSetBackground, XSetFont): Adjust for new GC implementation.
9906         (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
9907         (XTset_vertical_scroll_bar): Clear area under scroll bar.
9909         * macterm.h (struct mac_display_info): Change types of
9910         scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
9911         (XCreateGC, XParseGeometry): Move externs from macgui.h.
9913         * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
9915 2005-07-16  Richard M. Stallman  <rms@gnu.org>
9917         * buffer.c (Fmake_overlay): Doc fix.
9919 2005-07-16  Eli Zaretskii  <eliz@gnu.org>
9921         * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
9922         Vw32_valid_locale_ids, and Vw32_valid_codepages.
9924 2005-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9926         * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
9927         Use Fstring_as_unibyte instead of string_make_unibyte.
9929 2005-07-15  Richard M. Stallman  <rms@gnu.org>
9931         * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
9933 2005-07-15  Kim F. Storm  <storm@cua.dk>
9935         * xdisp.c: Fix redisplay loop in last change.
9936         (IT_POS_VALID_AFTER_MOVE_P): New macro.
9937         (move_it_vertically_backward, move_it_by_lines): Use it.
9939 2005-07-14  Jason Rumney  <jasonr@gnu.org>
9941         * w32.c (init_environment): Default HOME directory to user's
9942         appdata directory if possible.
9944 2005-07-14  Kim F. Storm  <storm@cua.dk>
9946         * .gdbinit (pitx): Fix output format.  Print string charpos.
9948         * lread.c (syms_of_lread): Initialize seen_list.
9950         * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
9952         * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
9953         Staticpro re_match_object.
9955 2005-07-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9957         * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
9958         dereference.
9960         * macterm.c (mac_window_to_frame): Remove duplicate define.
9962 2005-07-14  Kenichi Handa  <handa@m17n.org>
9964         * coding.c (code_convert_region_unwind): ARG is changed to a cons.
9965         (code_convert_region): Adjust for the above change.
9966         (set_conversion_work_buffer): If the work buffer is already in
9967         use, generate a new buffer and return it.  Otherwise return Qnil.
9968         (run_pre_post_conversion_on_str): Adjust for the above change.
9969         (run_pre_write_conversin_on_c_str): Likewise.
9971 2005-07-13  Kim F. Storm  <storm@cua.dk>
9973         * xdisp.c (start_display): Don't reseat to next visible line start
9974         if current start position is in a string or image.
9975         (move_it_vertically_backward): Be sure to move out of strings and
9976         images when moving it2 forward.
9977         (move_it_by_lines): When moving forward, move to next buffer
9978         position if we end up in a string or image.  When moving backward,
9979         count rows moved over when moving to start of current row in case
9980         row starts in middle of a string or image.  Also move further
9981         backward if we end up in a string or image.
9982         (try_cursor_movement): If overlay string spans multiple lines,
9983         move backward to set cursor on start of an overlay string.
9984         (cursor_row_p): Row is ok if cursor is at newline from string, but
9985         string starts on this line (so we always position cursor at start
9986         of string).
9988         * indent.c (Fvertical_motion): If start position is on an image,
9989         don't move back if we move too far (that's almost certain to happen).
9991         * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
9992         row in minibuffer windows.
9993         (try_window): Don't check margins in minibuffer windows.
9995 2005-07-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9997         * macterm.c: Don't include stdlib.h or composite.h.
9998         (x_use_underline_position_properties, last_mouse_press_frame)
9999         (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
10000         (syms_of_macterm, mac_initialize): Don't initialize them.
10001         (waiting_for_input, initial_argv, initial_argc)
10002         (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
10003         (set_frame_menubar, path_from_vol_dir_name): Remove externs.
10004         (extra_keyboard_modifiers): Fix type in extern.
10005         (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
10006         (x_scroll_bar_report_motion): Add argument types to declaration.
10007         (mac_compute_glyph_string_overhangs): Add declaration.
10008         (disable_mouse_highlight): Remove unused variable.
10009         [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
10010         (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
10011         (x_scroll_bar_handle_drag): Remove argument `timestamp'.
10012         All callers changed.
10013         [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
10014         timestamp.
10015         [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
10016         (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
10017         only when its width is less than the height.
10018         (XTredeem_scroll_bar): Sync with xterm.c.
10019         (font_name_table, font_name_table_size, font_name_count):
10020         Make static.
10021         (drag_and_drop_file_list): Remove variable.  Previous use is now
10022         local to function.
10023         (do_ae_open_documents): Move DRAG_N_DROP event construction part
10024         from XTread_socket.
10025         (XTread_socket): Consolidate setting of event timestamp.
10026         Move DRAG_N_DROP event construction part to do_ae_open_documents.
10027         Support extra_keyboard_modifiers.
10029         * xfaces.c (try_font_list) [MAC_OS]: Try font family name
10030         beginning with that for ASCII.
10032 2005-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
10034         * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
10035         (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
10036         (syms_of_alloc): Declare gc-cons-percentage.
10038         * eval.c (Feval, Ffuncall):
10039         * keyboard.c (read_char):
10040         * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
10042         * lisp.h (gc_cons_combined_threshold): Declare.
10044 2005-07-12  Kim F. Storm  <storm@cua.dk>
10046         * coding.c (Qprocess_argument):
10047         * coding.h (Qprocess_argument): Remove unused var.
10049         * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
10051 2005-07-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10053         * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
10054         Endian.h.
10055         [!MAC_OSX] (fchmod, fchown): New functions.
10056         (mac_get_code_from_arg): Don't accept Lisp integer as argument.
10057         Use SBYTES and EndianU32_BtoN.
10058         (mac_get_object_from_code): Return 4 byte string even if argument
10059         is 0.  Use make_unibyte_string and EndianU32_NtoB.
10060         (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
10061         (Fmac_set_file_type): Fix documents and argument declarations.
10062         Don't specify kFSCatInfoNodeFlags.  Support Mac OS Classic.
10064 2005-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
10066         * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
10068 2005-07-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10070         * xfaces.c (x_update_menu_appearance): Use fontSet resource for
10071         Lucid if X_I18N, font otherwise.
10073 2005-07-10  Steven Tamm  <steventamm@mac.com>
10075         * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
10076         (Fmac_set_file_type, Fmac_set_file_creator): Add.
10077         (mac_get_object_from_code, mac_get_code_from_arg): Add.
10079 2005-07-10  Richard M. Stallman  <rms@gnu.org>
10081         * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
10082         (syms_of_lread): Set up eval-buffer-list.
10083         (Feval_buffer, Feval_region): Bind eval-buffer-list.
10085 2005-07-08  Richard M. Stallman  <rms@gnu.org>
10087         * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
10089 2005-07-08  Kim F. Storm  <storm@cua.dk>
10091         * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
10092         (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
10094 2005-07-07  Kim F. Storm  <storm@cua.dk>
10096         * window.c (Frecenter): Fix last change (set iarg before use).
10098 2005-07-06  Richard M. Stallman  <rms@gnu.org>
10100         * window.c (Frecenter): When arg is inside the scroll margin,
10101         move it out of the margin.
10103 2005-07-06  Jason Rumney  <jasonr@gnu.org>
10105         * w32console.c (initialize_w32_display): Detect when the console
10106         dimensions are insane, and default to 80x25 instead.
10107         (w32_use_full_screen_buffer): Default to nil.
10109 2005-07-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10111         * macterm.c (mac_draw_vertical_window_border): Use foreground of
10112         VERTICAL_BORDER_FACE_ID for vertical border line.
10113         (mac_encode_char): Call check_ccl_update in advance.
10114         (mac_to_x_fontname, x_font_name_to_mac_font_name)
10115         (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
10116         Don't assume that font family length is less than 32.
10117         (x_compute_min_glyph_bounds): Make static.
10118         (x_load_font): Never set fonts_changed_p to zero.
10120 2005-07-04  Lute Kamstra  <lute@gnu.org>
10122         * Update FSF's address in GPL notices.
10124 2005-07-03  Richard M. Stallman  <rms@gnu.org>
10126         * xdisp.c (try_window): Fix previous change in how it handles
10127         a partially-visible line or one only partly past the margin.
10129         * window.c (window_scroll_pixel_based): Take account
10130         of this_scroll_margin when finding point when scrolling up.
10132 2005-06-29  Ralf Angeli  <angeli@iwi.uni-sb.de>
10134         * window.c (window_scroll_pixel_based, window_scroll_line_based):
10135         Handle `scroll-preserve-screen-position' non-nil, non-t specially.
10136         (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
10138 2005-07-02  Juri Linkov  <juri@jurta.org>
10140         * w32term.c (w32_draw_vertical_window_border): Use foreground of
10141         VERTICAL_BORDER_FACE_ID for vertical border line.
10143 2005-07-02  Eli Zaretskii  <eliz@gnu.org>
10145         * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
10146         fchmod so that chmod doesn't get called on MSDOS before the file
10147         is closed.
10149 2005-07-01  Jason Rumney  <jasonr@gnu.org>
10151         * w32term.c (cleartype_active): New flag for enabling sub-pixel
10152         workaround.
10153         (w32_initialize): Initialize it.
10154         (w32_native_per_char_metric): Allow a couple of extra pixels when
10155         Cleartype is active.
10157         * w32term.c (w32_initialize): Move check for screen reader here
10158         from syms_of_w32term.
10160 2005-06-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10162         * xterm.c (handle_one_xevent): bzero compose_status when nbytes
10163         is not zero.
10165 2005-07-01  Masatake YAMATO  <jet@gyve.org>
10167         * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
10169 2005-06-30  Juri Linkov  <juri@jurta.org>
10171         * xdisp.c (x_draw_vertical_border): If left fringe is not present
10172         decrease x coord of vertical border by 1 pixel to not occupy text
10173         area of the right window.
10175         * xterm.c (x_draw_vertical_window_border): Use foreground of
10176         VERTICAL_BORDER_FACE_ID for vertical border line.
10178         * term.c (turn_on_face): In standout mode apply specified
10179         fg to bg, and specified bg to fg (this makes the logic of
10180         inversion on terminal consistent with X).
10182 2005-06-29  Juanma Barranquero  <lekktu@gmail.com>
10184         * eval.c (user_variable_p_eh): New function.
10185         (Fuser_variable_p): Use it.  Clarify docstring.
10186         Return t for aliases of user options, nil for alias loops.
10188 2005-06-27  Richard M. Stallman  <rms@gnu.org>
10190         * eval.c (Fdefvar): Improve error message.
10192 2005-06-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10194         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
10195         change.
10197 2005-06-27  Juanma Barranquero  <lekktu@gmail.com>
10199         * eval.c (Fdefvar): Don't try to set constant symbols.
10201 2005-06-25  Richard M. Stallman  <rms@gnu.org>
10203         * macfns.c (Fx_show_tip): Pass new arg to try_window.
10205         * w32fns.c (Fx_show_tip): Pass new arg to try_window.
10207         * xfns.c (Fx_show_tip): Pass new arg to try_window.
10209         * xdisp.c (try_window): New arg CHECK_MARGINS.  Calls changed.
10210         (redisplay_window): Handle try_window reporting point in scroll margin.
10212         * dispextern.h (try_window): Declare new arg.
10214         * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
10215         Use fchmod to copy the file modes.
10216         (Frename_file): Don't copy UID and GID here;
10217         instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
10219         * eval.c (call_debugger): Take full care of extending stack limits
10220         to make space for the debugger, and restore the change afterward.
10221         Bind debug-on-error to nil.
10222         (restore_stack_limits): New subroutine.
10223         (Fsignal): Extend specpdl bound along with eval depth bound,
10224         for calling edebug.  Don't do either one, for calling debugger.
10225         (find_handler_clause): Don't bind debug-on-error here.
10226         Don't unbind anything either.
10227         Temporarily advance max_specpdl_size for calling
10228         internal_with_output_to_temp_buffer.
10229         (grow_specpdl): Don't alter max_specpdl_size before signaling
10230         an error.
10231         (syms_of_eval) <max-specpdl-size>: Doc fix.
10233         * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
10235 2005-06-24  Eli Zaretskii  <eliz@gnu.org>
10237         * fileio.c (Frename_file): Undo last change: no need to ifdef away
10238         chown on DOS_NT platforms.
10240         * w32.c (sys_chown): New function.
10242         * s/ms-w32.h (chown): New; define to sys_chown.
10244 2005-06-24  Juanma Barranquero  <lekktu@gmail.com>
10246         * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
10247         (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
10249         * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
10251 2005-06-23  Richard M. Stallman  <rms@gnu.org>
10253         * xdisp.c (get_next_display_element): Finish reversing the tests of
10254         Vnobreak_char_display.
10256         * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
10257         All uses changed.
10258         (Qnobreak_space): Rename from Qno_break_space.  All uses changed.
10259         (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
10261         * fileio.c (Frename_file): Preserve owner and group, if possible,
10262         when copying.
10264 2005-06-23  Juanma Barranquero  <lekktu@gmail.com>
10266         * abbrev.c (Funexpand_abbrev):
10267         * category.c (Fmake_category_set):
10268         * dispnew.c (Fsleep_for, Fsit_for):
10269         * editfns.c (Fsubst_char_in_region):
10270         * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
10271         * frame.c (make_frame_without_minibuffer):
10272         * lread.c (read_vector):
10273         * macfns.c (check_x_frame):
10274         * process.c (Fstop_process, Fcontinue_process):
10275         * search.c (Freplace_match):
10276         * syntax.c (Fstring_to_syntax):
10277         * w32fns.c (check_x_frame, check_x_display_info):
10278         * xfaces.c (x_supports_face_attributes_p):
10279         * xselect.c (Fx_own_selection_internal): Follow error conventions.
10281         * image.c (fn_png_init_io): Don't define it.
10282         (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
10283         (png_read_from_file): New function, based on png_read_from_memory.
10284         (png_load): Use it, instead of fn_png_init_io.
10286 2005-06-23  Kim F. Storm  <storm@cua.dk>
10288         * search.c (Fmatch_data): Remove evaporate option.
10289         (Fset_match_data): Do not mention evaporate option in doc string.
10290         Add commentary explaining evaporate arg (for internal use only).
10291         (unwind_set_match_data): Add comment on evaporate use.
10293 2005-06-22  Miles Bader  <miles@gnu.org>
10295         * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
10296         (realize_basic_faces, syms_of_xfaces): Update references to it.
10297         * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
10298         to `VERTICAL_BORDER_FACE_ID'.
10299         * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
10301 2005-06-21  Juri Linkov  <juri@jurta.org>
10303         * dispextern.h: Add extern Qframe_set_background_mode.
10305         * xfaces.c: Rename obsolete function Qframe_update_face_colors to
10306         Qframe_set_background_mode.
10308         * frame.c (Fmodify_frame_parameters):
10309         Call frame-set-background-mode after changing the background color
10310         on non-window non-dos branch.
10312 2005-06-21  Juanma Barranquero  <lekktu@gmail.com>
10314         * fns.c (Fchar_table_range):
10315         * process.c (Fmake_network_process): Fix spellings.
10317 2005-06-20  Kim F. Storm  <storm@cua.dk>
10319         * fns.c (Fsort): Doc fix.
10321 2005-06-20  Miles Bader  <miles@gnu.org>
10323         * xfaces.c (Qvertical_divider): New variable.
10324         (realize_basic_faces): Realize its face.
10325         (syms_of_xfaces): Initialize it.
10327         * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
10329         * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
10330         window-separator on ttys using `vertical-divider' face by default.
10332 2005-06-17  Richard M. Stallman  <rms@gnu.org>
10334         * xdisp.c (get_next_display_element):
10335         Reverse test of Vshow_nonbreak_escape.
10337         * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
10338         (Ftty_no_underline): New function.
10339         (syms_of_term): defsubr it.
10341         * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
10343         * dispnew.c (spec_glyph_lookup_face): New function.
10344         (build_frame_matrix_from_leaf_window): Use it.
10346         * dispextern.h (spec_glyph_lookup_face): Add declaration.
10348         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
10350 2005-06-12  Richard M. Stallman  <rms@gnu.org>
10352         * keyboard.c (read_char): After catching a longjmp,
10353         call restore_getcjmp.
10355 2005-06-17  Juanma Barranquero  <lekktu@gmail.com>
10357         * xselect.c (lisp_data_to_selection_data): Fix spelling.
10359 2005-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10361         * macterm.c (mac_compute_glyph_string_overhangs): Don't set
10362         overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
10363         [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
10364         events.
10365         (XTread_socket): Don't pass keyboard events with the option
10366         modifier to the system when Vmac_command_key_is_meta is nil or
10367         Vmac_option_modifier is non-nil.
10368         [USE_CARBON_EVENTS] (read_socket_inev): New variable.
10369         [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
10370         [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
10371         handler function.
10372         (install_window_handler) [USE_CARBON_EVENTS]: Install it.
10373         (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
10374         handler part to mac_handle_mouse_event.
10376 2005-06-14  Juanma Barranquero  <lekktu@gmail.com>
10378         * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
10379         NEW-ALIAS and BASE-VARIABLE, respectively.
10381 2005-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
10383         * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
10384         (get_phys_cursor_geometry, format_mode_line_unwind_data)
10385         (get_line_height_property, x_produce_glyphs): Remove unused vars.
10387         * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
10389 2005-06-13  Eli Zaretskii  <eliz@gnu.org>
10391         * w32term.c (x_use_underline_position_properties): New variable.
10392         (x_draw_glyph_string): Remind in a comment to change doc string of
10393         x-use-underline-position-properties if/when underline positioning
10394         is implemented.
10395         (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
10396         and initialize it to nil.
10398 2005-06-12  Jason Rumney  <jasonr@gnu.org>
10400         * w32fns.c (NEWOPENFILENAME): New struct.
10401         (Fx_file_dialog): Use it to trick the system into giving us up to
10402         date dialogs on systems that are documented to support it.
10403         Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
10405 2005-06-12  Eli Zaretskii  <eliz@gnu.org>
10407         * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
10408         MB_ABORTRETRYIGNORE.  Never return, even if DebugBreak does.
10410 2005-06-11  Eli Zaretskii  <eliz@gnu.org>
10412         * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
10413         to CreateDIBSection to avoid a compiler warning.
10414         (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
10415         warning.
10416         (png_load): Cast return values of fn_png_create_read_struct and
10417         fn_png_create_info_struct, to avoid compiler warnings on W32.
10418         Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
10419         to avoid compiler warnings.
10420         (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
10421         compiler warning on W32.  Cast 3rd arg to IMAGE_BACKGROUND to
10422         avoid a compiler warning.
10423         (tiff_load): Cast return values of fn_TIFFOpen and
10424         fn_TIFFClientOpen to avoid compiler warning on W32.  Cast 3rd arg
10425         to IMAGE_BACKGROUND to avoid a compiler warning.
10426         (gif_load): Cast return values of fn_DGifOpenFileName and
10427         fn_DGifOpen to avoid compiler warnings on W32.  Cast 3rd arg to
10428         IMAGE_BACKGROUND to avoid a compiler warning.
10429         (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
10430         before redefining.
10432         * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
10433         the call to CreateDIBSection, to avoid a compiler warning.
10435 2005-06-11  Jason Rumney  <jasonr@gnu.org>
10437         * w32fns.c (Fx_file_dialog): Unblock input before falling back to
10438         minibuffer.
10439         * macfns.c (Fx_file_dialog): Likewise.
10441 2005-06-10  Eli Zaretskii  <eliz@gnu.org>
10443         * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
10445 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
10447         * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
10448         * w32fns.c (syms_of_w32fns): Fix spellings.
10450 2005-06-10  Eli Zaretskii  <eliz@gnu.org>
10452         * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
10453         `verbose'; print diagnostic messages only if it is non-zero.
10454         All callers changed to pass a zero value unless DEBUG_DUMP is defined
10455         in the environment.
10456         (copy_executable_and_dump_data): Print section names with %.8s.
10458 2005-06-10  Masatake YAMATO  <jet@gyve.org>
10460         * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
10461         when mouse_face is not given.
10463 2005-06-09  Luc Teirlinck  <teirllm@auburn.edu>
10465         * window.c (Fselect_window): Adapt call to Fselect_frame.
10467         * lisp.h: Update EXFUN of Fselect_frame.
10469         * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
10471         * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
10472         no_enter.
10473         (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
10474         Adapt to above change.
10476 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
10478         * fns.c (Fmemq, Fmaphash): Doc fixes.
10480 2005-06-09  Juanma Barranquero  <lekktu@gmail.com>
10482         * xfaces.c (Fdisplay_supports_face_attributes_p):
10483         Fix typo in docstring.
10485 2005-06-08  Steven Tamm  <steventamm@mac.com>
10487         * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
10488         used by gcc4 on intel mac.
10490 2005-06-09  Kim F. Storm  <storm@cua.dk>
10492         * search.c (Fmatch_data): Add optional RESEAT arg.  Unchain markers
10493         in REUSE list if non-nil; free them if equal to evaporate.
10494         (Fset_match_data): Add optional RESEAT arg.  Unchain markers in LIST
10495         if non-nil; free them if equal to evaporate.  Use XCAR/XCDR.
10496         (restore_search_regs): Rename from restore_match_data.  Uses changed.
10497         (unwind_set_match_data): New function.
10498         (record_unwind_save_match_data): New function like save-match-data.
10500         * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
10501         (record_unwind_save_match_data): Add prototype.
10502         (restore_search_regs): Rename from restore_match_data.
10504         * composite.c (compose_chars_in_text):
10505         * eval.c (do_autoload):
10506         * macmenu.c (set_frame_menubar):
10507         * process.c (read_process_output, exec_sentinel):
10508         * xmenu.c (set_frame_menubar):
10509         * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
10510         * w32menu.c (set_frame_menubar):
10511         Use record_unwind_save_match_data.
10513 2005-06-08  Richard M. Stallman  <rms@gnu.org>
10515         * xdisp.c (get_next_display_element): Alter previous change:
10516         Distinguish Vshow_nonbreak_escape = t or not t.
10517         For t, use escape_glyph once again, as before previous change.
10518         Use space or hyphen for display, instead of the non-ASCII char.
10519         (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
10521         * process.c (Fstart_process): Don't touch command_channel_p slot.
10523         * process.h (struct process): Delete command_channel_p.
10525 2005-06-07  Masatake YAMATO  <jet@gyve.org>
10527         * xdisp.c (note_mode_line_or_margin_highlight):
10528         Check the overlapping of re-rendering area to avoid flickering.
10529         (note_mouse_highlight): Call clear_mouse_face if PART
10530         is not ON_MODE_LINE nor ON_HEADER_LINE.
10532 2005-06-07  Kim F. Storm  <storm@cua.dk>
10534         * process.c: Improve commentary for adaptive read buffering.
10536 2005-06-06  Stefan Monnier  <monnier@iro.umontreal.ca>
10538         * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
10539         if available.
10541 2005-06-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10543         * macmenu.c (menu_quit_handler, install_menu_quit_handler):
10544         New functions for popping down menus on C-g.
10545         (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
10547         * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
10548         non-static.
10550         * config.in: Add HAVE_CANCELMENUTRACKING.
10552 2005-06-06  Eli Zaretskii  <eliz@gnu.org>
10554         * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
10556         * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
10558         * w32proc.c (RVA_TO_PTR): New macro.
10560         * w32heap.c (RVA_TO_PTR): No need to #undef now.
10562         * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
10563         Depend on w32heap.h.
10565 2005-06-06  Luc Teirlinck  <teirllm@auburn.edu>
10567         * keyboard.c (command_loop_1): Update Vthis_original_command.
10569 2005-06-06  Richard M. Stallman  <rms@gnu.org>
10571         * xmenu.c (popup_get_selection): Undo previous change.
10573 2005-06-06  Juri Linkov  <juri@jurta.org>
10575         * xdisp.c (Qno_break_space): New variable.
10576         (syms_of_xdisp): Initialize it.
10577         (get_next_display_element): Add no-break space and soft hypen
10578         codes for iso8859-2 and iso8859-5.  Don't add `\' for them.
10579         Use `no-break-space' face for no-break spaces.
10581 2005-06-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10583         * window.c (delete_window): Handle the case where a h/vchild has
10584         a h/vchild.
10586 2005-06-05  Eli Zaretskii  <eliz@gnu.org>
10588         * w32.c (sys_setsockopt): Change arg 4 to `const void *'.  In the
10589         call to pfn_setsockopt, cast optval to `const char *'.
10591 2005-06-04  Eli Zaretskii  <eliz@gnu.org>
10593         * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
10594         (open_unc_volume): Cast return value of map_w32_filename, to avoid
10595         compiler warnings.
10597         * s/ms-w32.h (fileno): Don't define if already defined.
10599         * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
10601         * makefile.w32-in (DOC): Define to point to the generated DOC-X.
10603 2005-06-04  Richard M. Stallman  <rms@gnu.org>
10605         * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
10607 2005-06-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10609         * macmenu.c (cleanup_popup_menu): New function.
10610         (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
10611         mac_menu_show Quit:s.
10612         (mac_menu_show): Quit on cancel if not popped up on click (i.e.
10613         a dialog).
10615 2005-06-04  Kim F. Storm  <storm@cua.dk>
10617         * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
10619         * callproc.c (Fcall_process): Don't use alloca to gradually
10620         increase size of buf, as it effectively uses twice the necessary
10621         space on the stack.  Instead, pre-allocate buf of full size, and
10622         gradually increase the read size.
10624         * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
10626         * eval.c (unbind_to): Preserve value of Vquit_flag.
10628         * xterm.c (handle_one_xevent): Also ignore mouse motion just
10629         before a button release event.
10631 2005-06-03  Juanma Barranquero  <lekktu@gmail.com>
10633         * xfaces.c (Finternal_lisp_face_equal_p): Really report
10634         on faces in a frame, if the argument FRAME is non-nil.
10635         Improve argument/docstring consistency.
10637 2005-06-02  Kim F. Storm  <storm@cua.dk>
10639         * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
10640         (x_consider_frame_title, Fformat_mode_line): Save offset into
10641         mode_line_noprop_buf rather than pointer, in case buffer is relocated.
10643 2005-06-01  Kim F. Storm  <storm@cua.dk>
10645         * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
10647 2005-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10649         * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
10650         resolution fields for scalable fonts to 0.
10652         * xfaces.c (build_scalable_font_name): Round pixel size to the
10653         nearest integer.
10655 2005-06-01  Kim F. Storm  <storm@cua.dk>
10657         * xdisp.c (display_mode_line): Support nested calls to redisplay
10658         and format-mode-line.  Set mode_line_target to MODE_LINE_DISPLAY.
10660 2005-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
10662         * fileio.c (Finsert_file_contents):
10663         * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
10665 2005-05-31  Kim F. Storm  <storm@cua.dk>
10667         * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
10668         (mode_line_noprop_ptr): Rename from frame_title_*.
10669         (store_mode_line_noprop_char): Rename from store_frame_title_char.
10670         (store_mode_line_noprop): Rename from store_frame_title.
10671         (mode_line_target): New enum to specify current output target
10672         for mode line formatting.
10673         (display_mode_element): Test it rather than frame_title_ptr and
10674         mode_line_string_list to determine where output should go.
10675         (mode_line_proptrans_alist, mode_line_string_alist): Make static.
10676         (Vmode_line_unwind_vector): New variable.
10677         (format_mode_line_unwind_data, unwind_format_mode_line):
10678         New functions for unwind protection in mode line formatting.
10679         (x_consider_frame_title): Use them and new local var 'title_start'
10680         to support nested calls to format-mode-line and redisplay.
10681         Set mode_line_target to MODE_LINE_TITLE.
10682         (Fformat_mode_line): Use them and new local var 'string_start' to
10683         support nested calls to format-mode-line and redisplay.
10684         Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
10685         Don't trim trailing dashes.
10686         (decode_mode_spec): Don't make infinite number of trailing dashes
10687         for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
10688         (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
10689         mode_line_string_face_prop, and Vmode_line_unwind_vector.
10690         (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
10691         Initialize mode_line_target to MODE_LINE_DISPLAY.
10693 2005-05-29  Richard M. Stallman  <rms@gnu.org>
10695         * buffer.c (Fbuffer_local_value): Call indirect_variable.
10697 2005-05-28  Masatake YAMATO  <jet@gyve.org>
10699         * xdisp.c (note_mode_line_or_margin_highlight): Change the
10700         pointer to a hand cursor when hoovering over a mouse-face.
10702 2005-05-27  Kenichi Handa  <handa@m17n.org>
10704         * xterm.c (x_encode_char): Call check_ccl_update in advance.
10706         * ccl.c: Now an element of Vccl_program_table is a vector of
10707         length 4, not 3.
10708         (ccl_get_compiled_code): New arg idx.  Caller changed.
10709         Adjust for the change of Vccl_program_table.
10710         (setup_ccl_program): Adjust for the change of Vccl_program_table.
10711         (check_ccl_update): New function.
10712         (Fregister_ccl_program): Use ASET to set an element of a vector.
10713         Adjusted for the change of Vccl_program_table.
10715         * ccl.h (struct ccl_program): New member idx.
10716         (check_ccl_update): Extern it.
10718 2005-05-27  Juanma Barranquero  <lekktu@gmail.com>
10720         * image.c (Vimage_library_alist): Move from image.el.
10721         (syms_of_image): Defvar it.
10722         (lookup_image_type): Use it.
10724         * buffer.c (Fbuffer_local_value): Make argument name match its use
10725         in docstring.
10727 2005-05-26  Juanma Barranquero  <lekktu@gmail.com>
10729         * keyboard.c (Frecursive_edit): Fix typo in docstring.
10730         (Fposn_at_x_y): Make argument name match its use in docstring.
10732 2005-05-26  Lute Kamstra  <lute@gnu.org>
10734         * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
10736 2005-05-24  Masatake YAMATO  <jet@gyve.org>
10738         * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
10739         as loop sentinels.
10741 2005-05-24  Nick Roberts  <nickrob@snap.net.nz>
10743         * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
10744         select frame title ("Question"/"Information").
10745         (xdialog_show): Use it.
10747         * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
10749         * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
10751         * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
10752         a third argument (Qnil).
10754         * lisp.h: x-popup-dialog can have three arguments.
10756         * editfns.c (Fmessage_box): Use "Information" for frame title.
10758 2005-05-23  Thien-Thi Nguyen  <ttn@gnu.org>
10760         * termcap.c [VMS]: Include <starlet.h>.
10762 2005-05-23  Masatake YAMATO  <jet@gyve.org>
10764         * xdisp.c (note_mode_line_or_margin_highlight): Add code
10765         for mouse-face.  Change the type of the first argument from `window'
10766         to `Lisp_Object'.
10767         (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
10768         window instead of w.
10770 2005-05-22  Andreas Schwab  <schwab@suse.de>
10772         * process.c (send_process): Move misplaced volatile.
10774 2005-05-21  Richard M. Stallman  <rms@gnu.org>
10776         * xdisp.c (display_mode_element): If we're processing a list and
10777         padding is specified, put it after the last element.
10779 2005-05-21  Eli Zaretskii  <eliz@gnu.org>
10781         * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
10782         "superroot" on DOS_NT systems.
10784 2005-05-21  David Hunter  <hunterd42@comcast.net>  (tiny change)
10786         * process.c (send_process): Restore the SIGPIPE handler if we
10787         catch a SIGPIPE.
10789 2005-05-20  Juanma Barranquero  <lekktu@gmail.com>
10791         * image.c (lookup_image, png_read_from_memory): Remove hacks (and
10792         misleading comments).
10793         (DEF_IMGLIB_FN): Use C calling convention for image libraries.
10795 2005-05-20  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
10797         * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
10798         Correct the right value.
10800 2005-05-19  Nick Roberts  <nickrob@snap.net.nz>
10802         * keyboard.c (syms_of_keyboard): Remove Lisp variables
10803         post-command-idle-hook and post-command-idle-delay.
10804         (command_loop_1): Don't try to execute post-command-idle-hook.
10806 2005-05-16  Kim F. Storm  <storm@cua.dk>
10808         * xdisp.c (handle_display_prop): Handle empty replacement.
10809         (handle_single_display_spec): Return -1 for empty replacement.
10811         * keyboard.c (adjust_point_for_property): Skip empty overlay string.
10813         * .gdbinit (pitx): Print more info about iterator.
10815 2005-05-16  Andreas Schwab  <schwab@suse.de>
10817         * unexmacosx.c (unexec_realloc): Move declarations before statements.
10819 2005-05-14  Richard M. Stallman  <rms@gnu.org>
10821         * xdisp.c (message3): Call cancel_echoing.
10823         * alloc.c (Fmemory_full_p): New function.
10824         (syms_of_alloc): defsubr it.
10826         * process.c (send_process_trap): Unblock SIGPIPE.
10827         (send_process): Reset SIGPIPE handler before reporting error.
10829 2005-05-14  Nick Roberts  <nickrob@snap.net.nz>
10831         * emacs.c (syms_of_emacs): Fix doc string for system-type.
10833 2005-05-13  Richard M. Stallman  <rms@gnu.org>
10835         * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
10836         (Finsert_file_contents): If we read 0 bytes from a special file,
10837         unlock the visited file if we locked it.
10838         (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
10839         (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
10841 2005-05-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10843         * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
10845         * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
10846         Regard toolkit scroll bar thumb drag events as squeezable and prevent
10847         redisplay from being paused by them.
10849         * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
10850         [!MAC_OSX] (target_ticks): Remove variable.
10851         [!MAC_OSX] (check_alarm, pause, index): Remove functions.
10852         [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
10853         [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
10854         event occurs before timeout, behave as if the function were interrupted.
10855         [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
10856         handling using Time Manager routines.
10857         [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
10858         New variables.
10859         [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
10860         (setitimer): New functions.
10862         * macfns.c, macmenu.c: Don't include signal.h.
10864         * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
10865         Rename from get_control_part_bound.  All callers changed.
10866         (x_scroll_bar_clear): New function.
10867         (x_clear_frame): Use it.
10868         (XTset_vertical_scroll_bar): Don't call Draw1Control.
10869         (x_scroll_bar_handle_click): Change type of second argument from
10870         int to ControlPartCode.
10871         (check_alarm): Remove declaration.
10872         (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
10873         (XTread_socket): Use ControlPartCode instead of SInt16.
10875 2005-05-13  Nozomu Ando  <nand@mac.com>
10877         * unexmacosx.c: Include assert.h.
10878         (MACOSX_MALLOC_MULT16): New define.
10879         [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
10880         ptr is in unexec regions by checking it is multiple of 16.
10881         (unexec_malloc_header_t): New typedef.
10882         (unexec_malloc, unexec_realloc, unexec_free): Store and use
10883         allocated size information in unexec_malloc_header.
10885 2005-05-10  Richard M. Stallman  <rms@gnu.org>
10887         * xterm.c (noinclude): Add #undef.
10889         * image.c, xfns.c, xmenu.c: Don't include signal.h.
10891 2005-05-09  Juanma Barranquero  <lekktu@gmail.com>
10893         * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
10894         (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
10895         Doc fixes.
10897         * dired.c (Ffile_name_completion): Make argument name
10898         match its use in docstring.
10900 2005-05-08  Luc Teirlinck  <teirllm@auburn.edu>
10902         * eval.c (Fdefvaralias): Remove any pre-existing
10903         variable-documentation property of the alias.
10905 2005-05-07  Thien-Thi Nguyen  <ttn@gnu.org>
10907         * xfns.c (start_hourglass): Do nothing when running on a tty.
10909 2005-05-07  Juanma Barranquero  <lekktu@gmail.com>
10911         * fns.c (Fchar_table_range): Fix typos in docstring.
10913 2005-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
10915         * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
10917 2005-05-06  Eli Zaretskii  <eliz@gnu.org>
10919         * lread.c (Flocate_file_internal): Doc fix.
10921         * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
10923 2005-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10925         * macselect.c (x_own_selection): Accept Lisp string as result of
10926         selection converter function.
10927         (x_clear_frame_selections): Don't call x-lost-selection-functions
10928         if Emacs is not owner of the selection.
10929         (Vmac_services_selection): Put variable and initialization in
10930         #ifdef MAC_OSX.
10931         (syms_of_macselect) [MAC_OSX]: Set default value of
10932         Vmac_services_selection to PRIMARY.
10934         * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
10935         (mac_handle_tool_bar_click): Remove unused function and declaration.
10936         [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
10937         (install_scroll_bar_timer, set_scroll_bar_timer)
10938         (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
10939         (get_control_part_bound, x_scroll_bar_handle_press)
10940         (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
10941         (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
10942         [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
10943         (scroll_bar_timer_event_posted_p): New variables.
10944         [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
10945         (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
10946         (x_scroll_bar_create): Set control reference with NewControl.
10947         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
10948         Initialize track_top and track_height to nil.
10949         (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
10950         Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
10951         (XTset_vertical_scroll_bar): Don't make space between scroll bar
10952         and associated window.
10953         (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
10954         from window config.
10955         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10956         Set track_top and track_height to nil when scroll bar size is changed.
10957         Recalculate them if they are nil.
10958         (XTread_socket) [MAC_OSX]: Use control kind to determine if the
10959         clicked control is a scroll bar.
10960         (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
10961         event handler functions.  Don't add modifiers to scroll bar click
10962         events.  Call scroll bar release handler when window is deactivated.
10963         (mac_initialize): Remove unused code for X toolkit.
10964         (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
10965         Initialize Vx_toolkit_scroll_bars to nil.
10967         * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10968         New members track_top and track_height.
10970         * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
10971         init_process when including sys/select.h.
10973 2005-05-05  Luc Teirlinck  <teirllm@auburn.edu>
10975         * eval.c (Fdefvaralias): Doc fix.
10977         * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
10979 2005-05-05  Kim F. Storm  <storm@cua.dk>
10981         * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
10982         default value.
10983         (syms_of_buffer): Add default-cursor-in-non-selected-windows.
10984         Fix type of cursor-in-non-selected-windows.
10986 2005-05-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10988         * mac.c: #undef init_process so not to conflict with system headers.
10990 2005-05-02  Richard M. Stallman  <rms@gnu.org>
10992         * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
10994         * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
10996         * xdisp.c (Vcursor_in_non_selected_windows)
10997         (Qcursor_in_non_selected_windows): Vars deleted.
10998         (syms_of_xdisp): Don't initialize them.
10999         (get_window_cursor_type): Use cursor_in_non_selected_windows
11000         buffer slot.
11002 2005-05-02  Kim F. Storm  <storm@cua.dk>
11004         * macros.c (executing_kbd_macro_index): Rename from
11005         executing_macro_index.  All uses changed.
11006         (executing_kbd_macro_iterations): Rename from
11007         executing_macro_iterations.  All uses changed.
11008         (executing_kbd_macro): Rename from executing_macro.
11009         All uses changed.
11010         (syms_of_macros): Rename Lisp var executing-macro-index to
11011         executing-kbd-macro-index.
11013         * xdisp.c (move_it_in_display_line_to): Fix last change.
11015 2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
11017         * xmenu.c (Fx_popup_menu): Doc fix.
11019         * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
11021 2005-05-02  Jason Rumney  <jasonr@gnu.org>
11023         * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
11025 2005-05-02  Nozomu Ando  <nand@mac.com>
11027         * sysselect.h: Fix typo.
11029 2005-05-02  Nick Roberts  <nickrob@snap.net.nz>
11031         * charset.c (Fchars_in_region): Remove as obsolete.
11033 2005-05-01  Kim F. Storm  <storm@cua.dk>
11035         * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
11036         TO_CHARPOS.  This may happen if last glyphs was an image or stretch
11037         glyph.
11039 2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
11041         * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
11043 2005-05-01  Richard M. Stallman  <rms@gnu.org>
11045         * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
11046         If user cancels the menu, quit unless FOR_CLICK.
11048         * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
11049         All uses changed.
11050         (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
11051         * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
11052         * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
11053         * commands.h (Vexecuting_kbd_macro): Likewise.
11055 2005-05-01  Thien-Thi Nguyen  <ttn@gnu.org>
11057         * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
11059 2005-04-30  Richard M. Stallman  <rms@gnu.org>
11061         * fileio.c (Ffind_file_name_handler): Handle the `operations'
11062         property of the file name handler.
11063         (Qoperations): New variable.
11064         (syms_of_fileio): Initialize and staticpro it.
11066         * xdisp.c (set_message_1): Delete xassert.
11068 2005-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11070         * mac.c: Don't include time.h.  Include sysselect.h after systime.h.
11072         * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
11074         * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
11075         before/after including Carbon.h if there is a working mktime.
11077 2005-04-28  Kim F. Storm  <storm@cua.dk>
11079         * xfaces.c (resolve_face_name): Add arg SIGNAL_P.  Calls changed.
11080         Fix cyclic alias check.  If alias loop is detected, signal
11081         circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
11083 2005-04-28  Lute Kamstra  <lute@gnu.org>
11085         * eval.c (do_autoload): Record only autoloads in the autoload
11086         property of symbols.
11088 2005-04-28  Nick Roberts  <nickrob@snap.net.nz>
11090         * emacs.c (USAGE1): Add --basic-display and --quick options.
11092 2005-04-27  Kim F. Storm  <storm@cua.dk>
11094         * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
11096 2005-04-26  Richard M. Stallman  <rms@gnu.org>
11098         * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
11099         (syms_of_window): Doc fixes.
11101         * indent.c (Fvertical_motion): Undo previous change.
11103 2005-04-26  Kenichi Handa  <handa@m17n.org>
11105         * fns.c (char_table_range): New function.
11106         (Fchar_table_range): Signal an error if characters in the range
11107         have inconsistent values.  Don't check the parent.
11109 2005-04-25  Kenichi Handa  <handa@m17n.org>
11111         * fontset.c (fontset_set): Fix previous change.
11113 2005-04-24  Richard M. Stallman  <rms@gnu.org>
11115         * indent.c (Fvertical_motion): Bind fontification-functions to nil.
11117 2005-04-24  Eli Zaretskii  <eliz@gnu.org>
11119         * regex.c (re_search_2, re_match_2_internal): Convert second arg
11120         of RE_TRANSLATE to int, to shut up GCC warnings.
11122         * fileio.c (Fcopy_file): Doc fix.
11123         [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
11124         not needed.
11126 2005-04-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11128         * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
11129         (SOME_MACHINE_OBJECTS): Likewise.
11130         (mac.o): Depend on ccl.h.
11131         (macselect.o): New target.
11133         * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
11134         Call syms_of_macselect.
11136         * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
11138         * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
11139         (QCLIPBOARD): Remove variable.
11140         (syms_of_mac): Don't initialize it.
11141         (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
11142         Remove functions.
11143         (syms_of_mac): Don't defsubr them.
11144         [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
11145         (QHFS_plus_D, QHFS_plus_C): New variables.
11146         (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
11147         [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
11148         (cfstring_create_normalized): New functions.
11149         [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
11150         (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
11152         * macterm.c (handling_window_update, terminate_flag):
11153         Remove variables.
11154         (do_window_update, do_ae_quit_application, XTread_socket):
11155         Don't use them.
11156         (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
11157         [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
11158         (init_service_handler): Move to macselect.c.  Remove declarations.
11159         [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
11160         (Qapplication, Qabout): New variables.
11161         (syms_of_mac): Initialize them.
11162         [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
11163         (Qperform): New variables.
11164         (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
11165         (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
11166         (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
11167         (mac_store_application_menu_event, init_menu_bar): New functions.
11168         [USE_CARBON_EVENTS] (mac_handle_command_event)
11169         (init_command_handler): New functions.
11170         (mac_handle_window_event): Return noErr on window update event.
11171         (do_ae_quit_application): Call mac_store_application_menu_event.
11172         (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
11173         and init_menu_bar.
11175         * macterm.h (x_clear_frame_selections): Add extern.
11177         * macselect.c: New file for selection processing on Mac OS.
11179 2005-04-23  Richard M. Stallman  <rms@gnu.org>
11181         * fileio.c (Fcopy_file): New arg MUSTBENEW.
11182         (Frename_file): Pass new arg to Fcopy_file.
11184         * window.c (window_size_fixed): Variable deleted.
11185         (syms_of_window): Initialize window-size-fixed to nil.
11186         But don't DEFVAR window_size_fixed.
11188 2005-04-23  Andreas Schwab  <schwab@suse.de>
11190         * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
11191         (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
11192         use lib64 instead of lib.
11193         (_LP64) [_ARCH_PPC64]: Define if not defined.
11195 2005-04-23  David Hunter  <hunterd42@comcast.net>  (tiny change)
11197         * s/ms-w32.h (HAVE_PWD_H): Define.
11199 2005-04-22  Kenichi Handa  <handa@m17n.org>
11201         * fns.c (copy_sub_char_table): Explicitly copy the default value
11202         of the sub-chartable.
11204         * fontset.c (fontset_set): When a sub-chartable is created,
11205         explicitly sets the defalt value.
11207 2005-04-22  Kim F. Storm  <storm@cua.dk>
11209         * fns.c (Fplist_get): Replace by Fsafe_plist_get.
11210         (Fsafe_plist_get): Rename to Fplist_get.
11211         (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
11212         (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
11214         * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
11216         * xdisp.c (store_mode_line_string, produce_stretch_glyph)
11217         (note_mode_line_or_margin_highlight, note_mouse_highlight):
11218         Use Fplist_get instead of Fsafe_plist_get.
11220         * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
11222 2005-04-21  Miles Bader  <miles@gnu.org>
11224         * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
11226 2005-04-20  Thien-Thi Nguyen  <ttn@gnu.org>
11228         * sysdep.c: Remove reference to defunct vms-pwd.h.
11229         * dired.c: Likewise.  Also, for pwd.h, use HAVE_PWD_H, not !VMS.
11230         * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
11232         * config.in: Regenerate.
11234 2005-04-20  Kenichi Handa  <handa@m17n.org>
11236         * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
11237         (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
11238         (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
11240         * alloc.c (make_sub_char_table): Argument changed to initial
11241         value of the slots.
11243         * data.c (Faref): Handle special slots used as default values of
11244         ascii, eight-bit-control, eight-bit-control.  Don't ignore a
11245         default value set for a group of characters.
11246         (Faset): Signal an error if IDXVAL is not a valid character code.
11247         Make a sub-chartable with correct initial value.
11249         * fns.c (Fset_char_table_range): Don't set slots used as default
11250         values for ascii, eight-bit-control, eight-bit-graphic.
11251         Don't call Faref with charset-id.
11252         (Fset_char_table_default): Document how to treat normal character
11253         argument.  Handle special slots used as default values of ascii,
11254         eight-bit-control, eight-bit-control.  Make a sub chartable if
11255         necessary.
11257 2005-04-20  Kenichi Handa  <handa@m17n.org>
11259         * search.c (boyer_moore): Fix previous change.
11261 2005-04-19  Kim F. Storm  <storm@cua.dk>
11263         * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
11264         face unless last visible char and first invisible char have the
11265         same face.  Also use default face if saved_face_id is undefined.
11267 2005-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11269         * macgui.h (MacFontStruct): Remove member `fontname'.  Add member
11270         `full_name'.
11271         [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
11272         mac_scriptcode member.
11274         * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
11275         (syms_of_mac): Don't initialize them.
11276         (Vmac_charset_info_alist): New variable.
11277         (syms_of_mac): Defvar it.
11278         (create_text_encoding_info_alist): New function.
11279         (decode_mac_font_name, mac_to_x_fontname)
11280         (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
11281         code the correspondence among XLFD charsets, Mac script codes, and
11282         Emacs coding systems.  Use Vmac_charset_info_alist and result of
11283         create_text_encoding_info_alist instead.
11284         (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
11285         routines also on Mac OS Classic.
11286         (init_font_name_table) [!TARGET_API_MAC_CARBON]:
11287         Use add_font_name_table_entry.
11288         (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
11289         specified.  Derive unspecified scalable fields from specified one.
11290         (x_list_fonts): Consider Valternate_fontname_alist.
11291         (kDefaultFontSize): Change value from 9 to 12.
11292         (XLoadQueryFont): Get decoded font family, font face, and charset
11293         from x_font_name_to_mac_font_name.  Set full name of loaded font.
11294         (mac_unload_font): Free `full_name' member.
11295         (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
11296         NULL.  Copy full_name member of struct MacFontStruct to that of
11297         struct font_info.
11299 2005-04-19  Kim F. Storm  <storm@cua.dk>
11301         * xdisp.c (handle_stop): Set saved_face_id to current face if
11302         selective_display_ellipsis_p so ellipsis will be shown in same
11303         face as preceding text.
11304         (setup_for_ellipsis): Don't set saved_face_id here.
11305         (next_element_from_display_vector): Default to saved_face_id.
11307         * fns.c (Fsafe_get): New function.
11308         (syms_of_fns): Defsubr it.
11310         * lisp.h (Fsafe_get): EXFUN it.
11312         * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
11313         loops in case of bad face property lists.  Limit number of face
11314         alias lookups to 10 (in case of face alias loops).
11316 2005-04-18  Kim F. Storm  <storm@cua.dk>
11318         * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
11319         It replaces the corresponding member from struct window, as a
11320         window may now show multiple overlay arrows.
11321         Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
11323         * dispnew.c (row_equal_p, update_window_line, scrolling_window):
11324         Compare overlay_arrow_bitmap than overlay_arrow_p members.
11326         * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
11327         rather than from window.
11328         (update_window_fringes): Compare overlay_arrow_bitmap rather than
11329         overlay_arrow_p members.
11330         (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
11331         if not default.
11333         * window.h (struct window): Remove member overlay_arrow_bitmap.
11335         * window.c (make_window): Don't initialize overlay_arrow_bitmap.
11337         * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
11338         Calls changed.  Don't check for overlay-arrow-bitmap property here.
11339         (overlay_arrow_at_row): Remove PBITMAP arg.  Instead, if left
11340         fringe is present, return Lisp integer for bitmap (or -1 for default).
11341         Fix value of overlay-arrow-bitmap property to be a symbol, use
11342         lookup_fringe_bitmap to parse it.
11343         (display_line): Change call to overlay_arrow_at_row.  Store integer
11344         return value as overlay bitmap in row rather than window.
11345         Only show overlay arrow if row displays text, or if no other overlay
11346         arrow is seen in window (if overlay marker is at point-max).
11348 2005-04-18  Thien-Thi Nguyen  <ttn@gnu.org>
11350         * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
11352 2005-04-18  Lute Kamstra  <lute@gnu.org>
11354         * lread.c (Vloads_in_progress): Static.
11355         * fns.c (Vloads_in_progress): Remove extern.
11356         (load_in_progress): Add extern.
11357         (Frequire): Use load_in_progress instead of Vloads_in_progress.
11359 2005-04-18  Thien-Thi Nguyen  <ttn@gnu.org>
11361         * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
11363 2005-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11365         * macterm.c (XTread_socket): Don't beep on keyboard input even if
11366         no frame is visible.
11368 2005-04-16  Dan Nicolaescu  <dann@ics.uci.edu>
11370         * term.c (struct keys): Add support for shifted keys.
11372 2005-04-16  Richard M. Stallman  <rms@gnu.org>
11374         * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
11375         (set_message): Call with_echo_area_buffer with WHICH = 0.
11376         (set_message_1): Erase the echo area buffer first thing.
11377         (echo_area_display): Don't clear echo_message_buffer.
11379 2005-04-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11381         * Makefile.in (mac.o): Depend on charset.h and coding.h.
11383         * mac.c: Include charset.h and coding.h.
11384         [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
11385         [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
11386         [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
11388         * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
11390         * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
11392         * macterm.c (x_autoselect_window_p): Remove variable.
11393         (last_window): New variable.
11394         (XTreassert_line_highlight, x_change_line_highlight):
11395         Remove declarations.
11396         (mac_focus_changed, x_detect_focus_change): New functions and
11397         declarations.
11398         (XTextExtents16, front_emacs_window): Remove function.
11399         (mac_focus_frame): New function.
11400         (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
11401         (mac_check_for_quit_char): Use it instead of front_emacs_window.
11402         (x_scroll_bar_report_motion): Obtain window from control owner.
11403         (x_make_frame_invisible): Set window manager size hint.
11404         (do_mouse_moved): Remove function.
11405         (XTread_socket): Move its contents here.  Generate select-window
11406         event on mouse movement if needed.  Use x_detect_focus_change on
11407         activate/deactivate events.  Don't deiconify frame or invalidate
11408         window rectangle when dnd items are dropped.
11409         Don't activate/deactivate root control.
11410         (frame_highlight, frame_unhighlight): Activate/deactivate root
11411         control here.
11412         (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
11414         * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
11415         New extern.
11417 2005-04-15  Luc Teirlinck  <teirllm@auburn.edu>
11419         * Makefile.in: Define new macro TOOLTIP_SUPPORT.
11420         (lisp): Use it.
11421         (SOME_MACHINE_LISP): Add tooltip.
11423 2005-04-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11425         * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
11426         Don't include TextEncodingConverter.h.
11427         (mac_system_script_code, Vmac_system_locale): New variables.
11428         (syms_of_mac): Defvar them.
11429         (mac_get_system_locale): New function.
11431         * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
11432         Use ENCODE_SYSTEM to encode title bar string.
11433         (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
11434         (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
11435         Use CFStringGetSystemEncoding to get system default string encoding.
11437         * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
11438         TextEncodingConverter.h.
11440 2005-04-13  Steven Tamm  <steventamm@mac.com>
11442         * macterm.c (syms_of_macterm): Remove redundant definition of
11443         mac-pass-control-to-system.
11445 2005-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
11447         * window.c (Fset_window_configuration): Be careful when you choose
11448         among several possible points for the new_current_buffer.
11450 2005-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11452         * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
11453         poll_for_input_1.  Set interrupt_input_pending to 1 instead.
11454         (Qlanguage_change) [MAC_OS]: New variable.
11455         (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
11456         (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
11458         * macterm.c (mac_keyboard_text_encoding)
11459         (current_mac_keyboard_text_encoding): Remove variables.
11460         (XTread_socket): Store language-change event if keyboard script change
11461         is detected.  Don't convert input to `mac_keyboard_text_encoding'.
11462         (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
11464         * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
11466 2005-04-10  Richard M. Stallman  <rms@gnu.org>
11468         * emacs.c (standard_args): Rename --bare-bones to --quick.
11469         Add -D aka --basic-display.
11471         * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
11473 2005-04-09  Richard M. Stallman  <rms@gnu.org>
11475         * keymap.c (where_is_internal): Convert a string used as event type
11476         into "(any string)".
11478         * lread.c (Vloads_in_progress): Not static.
11479         * fns.c (Vloads_in_progress): Add extern.
11480         (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
11482 2005-04-09  Thien-Thi Nguyen  <ttn@surf.glug.org>
11484         * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
11486 2005-04-09  Lute Kamstra  <lute@gnu.org>
11488         * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
11489         within the accessible part of the buffer.
11491 2005-04-09  Kim F. Storm  <storm@cua.dk>
11493         * lread.c (readevalloop): Add args START and END as region in
11494         current buffer to read.  Callers changed.
11495         When specified, narrow to this region only when reading,
11496         not during eval.  Track next point to read from during eval.
11497         Also restore point to "real" buffer position before eval.
11498         (Feval_region): Don't save excursion and restriction here, and
11499         don't narrow to region.  Just pass region to readevalloop.
11500         Note: Point is now preserved even when PRINTFLAG is nil.
11502 2005-04-08  Kim F. Storm  <storm@cua.dk>
11504         * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
11506 2005-04-06  Kim F. Storm  <storm@cua.dk>
11508         * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
11510 2005-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11512         * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
11513         (Fmac_get_preference): Doc fix.
11515         * macfns.c (Fx_create_frame, x_create_tip_frame):
11516         Add "fontset-mac" to fallback font/fontsets.
11518 2005-04-04  Kim F. Storm  <storm@cua.dk>
11520         * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
11522         * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
11523         Call it again after autoload.
11525 2005-04-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11527         * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
11528         mallopt.
11530         * ralloc.c (r_alloc_init): Ditto.
11532 2005-04-01  Kenichi Handa  <handa@m17n.org>
11534         * lisp.h (Vascii_upcase_table, Vascii_canon_table)
11535         (Vascii_eqv_table): Extern them.
11537         * casetab.c (set_case_table): If standard is nonzero, setup
11538         Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
11540         * search.c (looking_at_1): Use current_buffer->case_canon_table,
11541         not DOWNCASE_TABLE.
11542         (string_match_1): Likewise.
11543         (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
11544         Vascii_downcase_table.
11545         (fast_string_match_ignore_case): Likewise.
11546         (search_buffer): Fix checking of boyer-moore usability.
11547         (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
11548         No need of tranlating characters in PAT.  Fix calculation of
11549         simple_translate.
11551 2005-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
11553         * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
11554         (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
11555         Use XtNtopShadowPixel and XtNbottomShadowPixel.
11556         (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
11557         really work and that breaks with some versions of Xaw3d.
11559 2005-03-31  Kenichi Handa  <handa@m17n.org>
11561         * coding.c (syms_of_coding): Fix previous change.
11563 2005-03-30  Stefan Monnier  <monnier@iro.umontreal.ca>
11565         * fileio.c (search_embedded_absfilename): Fix last change.
11567 2005-03-25  Kenichi Handa  <handa@m17n.org>
11569         * coding.c (syms_of_coding): Suggest to use set-coding-category in
11570         the docstring of coding-category-list.
11572 2005-03-31  Kim F. Storm  <storm@cua.dk>
11574         * keyboard.c (Qmouse_fixup_help_message): New var.
11575         (syms_of_keyboard): Intern and staticpro it.
11576         (show_help_echo): Apply mouse-fixup-help-message to help string.
11578 2005-03-30  Kim F. Storm  <storm@cua.dk>
11580         * xdisp.c (display_line): Allow multiple overlay arrows in window.
11582 2005-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
11584         * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
11585         (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
11586         (Ffile_name_absolute_p): Use it.
11587         (search_embedded_absfilename): New fun, extracted from
11588         Fsubstitute_in_file_name.  Use file_name_absolute_p.
11589         Free the pw data after use.
11590         (Fsubstitute_in_file_name): Use it.
11591         After cutting a prefix, re-check file-name-handler.
11593 2005-03-26  Lennart Borgman  <lennart.borgman.073@student.lu.se>
11595         * w32term.h (x_output): Add focus_state.
11597         * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
11598         (w32_read_socket) <WM_SETFOCUS>: Call w32_detect_focus_change.
11600 2005-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
11602         * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
11603         Use Fexit_minibuffer.
11604         (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
11606 2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
11608         * dired.c (Ffile_attributes): Add a missing gcpro.
11610         * alloc.c (make_number): The arg can be bigger than `int'.
11611         * lisp.h (make_number): Make prototype more precise.
11613         * process.c, dired.c (Vfile_name_coding_system)
11614         (Vdefault_file_name_coding_system):
11615         * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
11616         (Vdefault_file_name_coding_system): Remove unused declarations.
11618 2005-03-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11620         * xmenu.c (create_and_show_popup_menu): Just remove menu and return
11621         if it failed to pop up (Gnome "show pointer on ctrl" option makes
11622         menus fail to pop up).
11624 2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
11626         * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
11627         Just prepend a backslash without replacing the NBSP by an SPC.
11629 2005-03-22  Kim F. Storm  <storm@cua.dk>
11631         * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
11632         * dispextern.h (lookup_derived_face): Fix prototype.
11633         * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
11635         * xdisp.c (handle_single_display_spec): Derive left-fringe and
11636         right-fringe face from fringe face.
11638         * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
11639         Derive face from fringe face.
11641 2005-03-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11643         * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
11645 2005-03-22  David Kastrup  <dak@gnu.org>
11647         * textprop.c (Fnext_char_property_change)
11648         (Fprevious_char_property_change): Allow marker as limit.
11649         (Fnext_single_char_property_change)
11650         (Fprevious_single_char_property_change): Check that limit is a
11651         number in strings.
11652         (Fnext_single_char_property_change): Coerce position to integer.
11653         (Fprevious_single_char_property_change): Same here.
11655 2005-03-21  Thien-Thi Nguyen  <ttn@gnu.org>
11657         * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
11659 2005-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
11661         * frame.c (Fignore_event): Remove.
11662         (syms_of_frame): Don't defsubr it.
11664         * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
11665         redundant `ignore-event'.
11667 2005-03-19  Eli Zaretskii  <eliz@gnu.org>
11669         * unexec.c (write_segment, unexec): Move these functions to avoid
11670         forward references (which cause errors with "gcc -gcoff").
11672 2005-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11674         * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
11675         that it doesn't become "tooltip".  The specbind is enough.
11677         * xrdb.c (x_load_resources): Use different char *helv when I18N
11678         is present.
11680 2005-03-17  Kenichi Handa  <handa@m17n.org>
11682         * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
11684 2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
11686         * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
11687         Use xic_create_fontsetname even for non-Motif menus.
11688         Don't forget to free the fontsetname.
11690         * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
11692 2005-03-17  Richard M. Stallman  <rms@gnu.org>
11694         * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
11696         * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
11697         (Fmake_symbolic_link): Use G to read the new file name.
11699         * callint.c (Finteractive): Document G option.
11700         (Fcall_interactively): Implement G option.
11702         * buffer.c (buffer_lisp_local_variables): New function,
11703         broken out from Fbuffer_local_variables.
11704         (clone_per_buffer_values): Use buffer_lisp_local_variables.
11706 2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
11708         * xfns.c (xic_create_fontsetname): Add `motif' argument.
11709         Always return a freshly allocated string.
11710         (xic_create_xfontset): Adjust call.
11712         * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
11713         Use xic_create_fontsetname to create a fontset so utf-8 locales work.
11714         (dump_realized_face): Fix warning.
11716         * emacs.c (Fkill_emacs): YAILOM.
11718         * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
11720 2005-03-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11722         * mac.c (HASHKEY_TERMINAL): Remove.
11723         (HASHKEY_MAX_NID): New macro.
11724         (xrm_q_get_resource_1): Rename from xrm_q_get_resource.  Add extra
11725         argument.
11726         (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
11727         (xrm_create_database, xrm_q_put_resource)
11728         (xrm_merge_string_database, xrm_q_get_resource_1)
11729         (xrm_q_get_resource): Change resource database representation so
11730         that it may not use multiple hash tables for a single database.
11731         [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
11733 2005-03-16  Stefan Monnier  <monnier@iro.umontreal.ca>
11735         * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
11737         * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
11738         locale-coding-system, as was already done for WINDOWSNT.
11740         * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
11741         translation for chars in the 0-255 range.
11743 2005-03-16  Lute Kamstra  <lute@gnu.org>
11745         * floatfns.c (Ffloor): Doc fix.
11747 2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11749         * mac.c: Include macterm.h instead of directly including Carbon.h.
11750         [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
11751         (Qarray, Qdictionary): New variables.
11752         (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
11753         [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
11754         [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
11755         [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
11756         in callback for CFDictionaryApplyFunction.
11757         [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
11758         (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
11759         (cfobject_desc_to_lisp, cfdictionary_add_to_list)
11760         (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
11761         [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
11762         (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
11763         (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
11764         (skip_white_space, parse_comment, parse_include_file)
11765         (parse_binding, parse_component, parse_resource_name, parse_value)
11766         (parse_resource_line, xrm_create_database, xrm_q_put_resource)
11767         (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
11768         (xrm_cfproperty_list_to_value, xrm_get_preference_database):
11769         New functions.
11771         * macfns.c (mac_get_rdb_resource): Remove function.
11772         (x_get_string_resource): Use xrm_get_resource.
11774         * macgui.h (XrmDatabase): Typedef to Lisp_Object.
11776         * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
11777         name_list_element.
11778         (mac_make_rdb): Create resource database from preferences and
11779         argument string.
11780         (mac_term_init): Save resource database to cddr part of
11781         name_list_element.
11783         * macterm.h (xrm_merge_string_database, xrm_get_resource)
11784         (xrm_get_preference_database): Add externs.
11785         [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
11786         (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
11787         (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
11789         * process.c (init_process): Change `#ifdef DARWIN' to `#if
11790         defined (DARWIN) || defined (MAC_OSX)'
11792         * s/darwin.h (DARWIN): Don't define.
11794 2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11796         * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
11797         Remove unused variables.
11798         (syms_of_macfns): Don't initialize them.  Likewise for
11799         Qface_set_after_frame_default.  Defvar and initialize
11800         Vx_window_horizontal_drag_shape.
11801         (x_set_mouse_color): Change mouse pointer shape.
11802         (mac_window) [!MAC_OSX]: Create root control.
11803         (Fx_create_frame): Remove initializations of mouse pointer shapes.
11804         (hourglass_started): New function (from xfns.c).
11805         (start_hourglass, cancel_hourglass): Put function body in #ifdef
11806         MAC_OSX.
11807         (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
11808         indicator for each non-tooltip frame if needed, and show it.
11809         (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
11811         * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
11812         Controls.h.  Use ThemeCursor instead of CursHandle.
11814         * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
11815         Remove functions and declarations.
11816         (mac_set_colors): Take argument for saving background color.
11817         All callers changed.
11818         (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
11819         (mac_draw_rectangle, mac_draw_string_common): Save and Restore
11820         background color.
11821         (x_update_end, mac_do_track_drag): Don't reset background color.
11822         (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
11823         Use SetThemeCursor.
11824         (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
11825         indicator control to the upper-right corner of the window.
11826         (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
11827         (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
11828         (do_window_update): Update controls after updating content area.
11829         (mac_handle_window_event): Remove unused extern.
11830         (XTread_socket): Check both control handle and control part code
11831         to determine whether a scroll bar is clicked.  Activate/deactivate
11832         root control instead of contained scroll bar controls.
11833         (make_mac_terminal_frame): Use ThemeCursor constants.
11835         * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
11836         New member hourglass_control.
11837         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
11838         (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
11840 2005-03-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11842         * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
11843         coincides with that in Apple X11 except `clear', `enter' on
11844         laptops, and fn + `enter' on laptops.
11846 2005-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
11848         * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
11849         (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
11850         (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
11852         * xfns.c (xic_defaut_fontset): New constant.
11853         (xic_create_fontsetname): New function.
11854         Extracted from create_frame_xic.  Try to generate a slightly
11855         better fontset.
11856         (xic_create_xfontset): Use it.
11857         (create_frame_xic): Simplify.
11859 2005-03-11  Stefan Monnier  <monnier@iro.umontreal.ca>
11861         * fileio.c (Fmake_symbolic_link): Fix last change.
11863 2005-03-11  Richard M. Stallman  <rms@gnu.org>
11865         * fileio.c (Frename_file, Fadd_name_to_file)
11866         (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
11867         expand the basename of FILE relative to it.
11869 2005-03-11  Kenichi Handa  <handa@m17n.org>
11871         * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
11872         before calling setup_coding_system so that autoloading of a coding
11873         system work.
11875 2005-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11877         * xfns.c (hourglass_started): New function.
11879         * dispextern.h: Declare hourglass_started.
11881         * keyboard.c (Fexecute_extended_command): Restart hourglass
11882         after call to Fcompleting_read if already started.
11884         * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
11885         GTK main loop is entered in xterm.c, thus doing the redraw.
11887 2005-03-10  Kim F. Storm  <storm@cua.dk>
11889         * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
11891 2005-03-08  Kenichi Handa  <handa@m17n.org>
11893         * frame.c (x_set_font): Call set_default_ascii_font if an
11894         available font is found.
11896         * fontset.c (set_default_ascii_font): New function.
11897         (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
11899         * fontset.h (set_default_ascii_font): Extern it.
11901 2005-03-07  Kim F. Storm  <storm@cua.dk>
11903         * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
11904         (clear_image_cache_count): New var.
11905         (redisplay_internal): Don't clear face and image caches in the
11906         middle of redisplay; do it afterwards.
11908         * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
11910         * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
11911         is valid.  If not, clear phys_cursor_on_p and return.
11913 2005-03-07  Andreas Schwab  <schwab@suse.de>
11915         * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
11917 2005-03-06  Richard M. Stallman  <rms@gnu.org>
11919         * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
11921         * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
11922         (Feval, Ffuncall): Use CHECK_CONS_LIST.
11924         * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
11926         * blockinput.h (UNBLOCK_INPUT_TO): New macro.
11927         (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
11929 2005-03-05  Juri Linkov  <juri@jurta.org>
11931         * emacs.c (USAGE1): Replace Info node name "command arguments"
11932         with "emacs invocation".
11933         (USAGE3): Fix usage of `--color=MODE' which actually doesn't
11934         allow arguments `--color' and `MODE' to be separated by space.
11935         Add --no-blinking-cursor, -nbc.
11936         (standard_args): Add -nbc, --no-blinking-cursor.
11938 2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
11940         * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
11941         * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
11942         * fileio.c (Fexpand_file_name) [VMS]:
11943         Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
11944         * doc.c (munge_doc_file_name) [VMS]: Likewise.
11945         (Fsnarf_documentation): Call munge_doc_file_name.
11947 2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
11949         * s/vms.h (FILE_SYSTEM_CASE): New macro.
11950         * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
11951         "manually"; this is now handled generally via FILE_SYSTEM_CASE.
11953 2005-03-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11955         * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
11956         defined (MAC_OSX) && defined (HAVE_CARBON)'.
11958         * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
11960         * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
11961         [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
11962         (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
11963         (mac_clear_font_name_table): Move extern to macterm.h.
11965         * macfns.c (install_window_handler): Move extern to macterm.h.
11966         (Fx_file_dialog): Check STRINGP (default_filename) to see it is
11967         valid.  Don't check !NILP (dir) because it is already checked with
11968         CHECK_STRING.
11969         (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
11970         specifying the default location and obtaining the selected filename.
11972         * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
11974         * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
11975         are included via Carbon.h.
11977         * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
11978         Define USE_CARBON_EVENTS to 1.
11979         (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
11980         (x_free_frame_resources): Call remove_window_handler for
11981         non-tooltip windows.
11982         [TARGET_API_MAC_CARBON]: Don't include headers that are included
11983         via Carbon.h.
11984         [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
11985         (mac_do_receive_dragUPP): New variables.
11986         (mac_handle_service_event, init_service_handler): Put declarations
11987         and definitions in #ifdef MAC_OSX.
11988         (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
11989         drag-and-drop handler functions and register them.
11990         (remove_window_handler): New function.
11991         (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
11992         Use fsspec_to_posix_pathname.
11993         (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
11994         (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
11995         [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
11996         Set default cursors.
11997         (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX]: Don't call
11998         init_service_handler or init_quit_char_handler.
11999         (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
12001         * macterm.h (install_window_handler, remove_window_handler)
12002         (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
12003         (mac_clear_font_name_table): New externs.
12005 2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
12007         * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
12008         (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
12009         (Fexpand_file_name): Likewise.
12011 2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
12013         * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
12014         no longer special-case VMS.  Add bogus return value.
12016 2005-03-02  Kim F. Storm  <storm@cua.dk>
12018         * dispextern.h (XASSERTS): Define to 0 if not already defined.
12019         (xassert) [!XASSERTS]: Define dummy version.
12021 2005-03-02  Kim F. Storm  <storm@cua.dk>
12023         * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
12024         Reported by David Kastrup.
12026 2005-03-01  Ehud Karni  <ehud@unix.mvs.co.il>
12028         * xdisp.c (get_next_display_element): Fix control and escape
12029         glyph from display vector.
12031 2005-03-01  Stefan Monnier  <monnier@iro.umontreal.ca>
12033         * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
12035 2005-02-27  Richard M. Stallman  <rms@gnu.org>
12037         * xdisp.c (fast_find_position): Rename END to BEG.
12038         (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
12040 2005-02-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12042         * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
12043         gtk_window_resize and x_wm_set_size_hint.
12045 2005-02-25  Kim F. Storm  <storm@cua.dk>
12047         * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
12049         * xdisp.c (init_from_display_pos): Don't read past end of
12050         it->overlay_strings array.
12052 2005-02-25  Stephan Stahl  <stahl@eos.franken.de>  (tiny change)
12054         * buffer.c (syms_of_buffer): Fix typo.
12056 2005-02-23  Lute Kamstra  <lute@gnu.org>
12058         * buffer.c (Foverlay_buffer): Doc fix.
12060 2005-02-22  Kim F. Storm  <storm@cua.dk>
12062         * minibuf.c (Ftry_completion, Fall_completions): Allow both string
12063         and symbol keys in alists and hash tables.
12065         * xdisp.c (fast_find_position): Fix search for start of overlay.
12067 2005-02-21  Kim F. Storm  <storm@cua.dk>
12069         * window.c (window_scroll_pixel_based): When scrolling backwards,
12070         handle partial visible line at end of window even when we hit PT.
12072 2005-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
12074         * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
12076 2005-02-21  Kim F. Storm  <storm@cua.dk>
12078         * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
12079         I think those asserts are bogus if buffer contains invisible text
12080         or images.
12082 2005-02-21  David Kastrup  <dak@gnu.org>
12084         * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
12086 2005-02-20  Kim F. Storm  <storm@cua.dk>
12088         * xdisp.c (pos_visible_p): Be sure to move to the specified
12089         position.  Always get the full ascent / descent of the
12090         corresponding row, to return reliable rtop and rbot values.
12091         (back_to_previous_visible_line_start): Fix 2005-01-18 change.
12092         Must look one character back, as back_to_previous_line_start
12093         returns position after the newline.
12094         (move_it_vertically_backward): Fix heuristic for when to move further
12095         back in case line_height * 2/3 is larger than window height.
12096         (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
12097         as it does not do anything anymore.  Add arg current_matrix_p to
12098         use current matrix rather than desired matrix when set.
12099         (try_cursor_movement): Don't scroll to make cursor row fully
12100         visible if cursor didn't move.  This avoids unexpected recentering
12101         in case of blinking cursor or accepting process output.
12102         Use current matrix to check cursor row visibility.
12103         (redisplay_window): Fix whether to recenter or move to top in case
12104         cursor line is taller than window height.
12105         (find_first_unchanged_at_end_row): Stop search if we reach a row
12106         which not enabled (instead of abort).
12108 2005-02-18  Kim F. Storm  <storm@cua.dk>
12110         * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
12111         to be nil in a :box attribute value list; customize prints that
12112         as lisp value when no box color is specified.
12114         * .gdbinit (pitx, pit): Pretty print display iterator.
12115         (prowx, prow): Pretty print glyph row.
12116         (pcursorx, pcursor): Pretty print a window cursor.
12117         (pwinx, pwin): Pretty print struct window.
12119 2005-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
12121         * alloc.c (BLOCK_BYTES): Harmless typo.
12123 2005-02-17  Andreas Schwab  <schwab@suse.de>
12125         * xfns.c (hack_wm_protocols): Use correct type for last parameter
12126         of XGetWindowProperty to avoid aliasing issues.
12127         (Fx_window_property): Likewise.
12129         * xselect.c (Fx_disown_selection_internal): Use union of struct
12130         input_event and struct selection_input_event to avoid aliasing issues.
12132         * xterm.c (handle_one_xevent): Use union of struct input_event and
12133         struct selection_input_event to avoid aliasing issues.
12134         (SET_SAVED_MENU_EVENT): Adapt reference to inev.
12136 2005-02-17  Kim F. Storm  <storm@cua.dk>
12138         * dispextern.h (enum it_method): New enum.
12139         (GET_FROM_*): Its members.
12140         (struct it): Change member method from function pointer to enum.
12142         * xdisp.c (check_it, init_from_display_pos, handle_stop)
12143         (setup_for_ellipsis, handle_single_display_spec)
12144         (handle_composition_prop, next_overlay_string)
12145         (get_overlay_strings, reseat_1, reseat_to_string)
12146         (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
12147         (in_display_vector_p, display_line, get_next_display_element):
12148         Change it->method from function pointer to enum.
12149         (get_next_element): New array to map it->method to function.
12150         (get_next_display_element): Use it.
12151         (set_iterator_to_next): Use switch instead of if/else chain.
12153 2005-02-15  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
12155         * w32select.c: Summary: Thorough rework to implement Unicode
12156         clipboard operations and delayed rendering.
12158         Drop last_clipboard_text and related code, keep track of
12159         ownership via clipboard_owner instead.  Drop old #if0 sections.
12161         (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
12162         (clipboard_owner, modifying_clipboard, cfg_coding_system)
12163         (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
12164         (current_coding_system, current_requires_encoding)
12165         (current_num_nls, current_clipboard_type, current_lcid):
12166         New static variables.
12168         (convert_to_handle_as_ascii, convert_to_handle_as_coded)
12169         (render, render_all, run_protected, lisp_error_handler)
12170         (owner_callback, create_owner, setup_config)
12171         (enum_locale_callback, cp_from_locale, coding_from_cp):
12172         New local functions.
12174         (term_w32select, globals_of_w32select): New global functions.
12176         (Fw32_set_clipboard_data): Ignore parameter FRAME, use
12177         clipboard_owner instead.  Use delayed rendering and provide
12178         all text formats.  Provide CF_LOCALE if necessary.
12180         (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
12181         CF_LOCALE.  Fall back to CF_TEXT, if CF_UNICODETEXT is not
12182         available.  Force DOS line-ends for decoding.
12184         (Fx_selection_exists_p): Handle CF_UNICODETEXT.
12186         (syms_of_w32select): Init and register new variables.
12188         * w32.h: Add prototypes for globals_of_w32select and
12189         term_w32select.  Make the neighboring K&R declarations into
12190         prototypes, too.
12192         * emacs.c: Include w32.h to get function prototypes.
12193         (main): Call globals_of_w32select.
12195         * w32.c (term_ntproc): Call term_w32select.
12197         * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
12199 2005-02-16  Kim F. Storm  <storm@cua.dk>
12201         * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
12202         at end of display vector.
12204 2005-02-15  Richard M. Stallman  <rms@gnu.org>
12206         * xdisp.c (get_next_display_element): Fix escape-glyph criterion
12207         for mode and header lines.
12209         * lread.c (syms_of_lread) <user-init-file>: Doc fix.
12211         * keymap.h (describe_map_tree): Change decl.
12213         * keyboard.c (command_loop_1): Always use safe_run_hooks
12214         to run Qdeferred_action_function.
12216         * keymap.c (describe_map_tree): New arg MENTION_SHADOW.  Calls changed.
12217         (describe_map, describe_vector): Likewise.  When it's 1,
12218         don't omit shadowed bindings, instead mark them as shadowed.
12220         * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
12221         for describe_map_tree.  Pass 1 for MENTION_SHADOW.
12223         * data.c (Fsetq_default): Allow no arg case.
12225 2005-02-14  Kenichi Handa  <handa@m17n.org>
12227         * coding.c (encode_coding_string): Always return a unibyte string.
12228         If NOCOPY is nonzero and there's no need of encoding, make STR
12229         unibyte directly.
12231         * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
12232         multibyte string, signal an error instead of aborting.
12234 2005-02-12  Dan Nicolaescu  <dann@ics.uci.edu>
12236         * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
12238 2005-02-12  Kim F. Storm  <storm@cua.dk>
12240         * xdisp.c (expose_window): Don't fix overlaps for mode lines.
12242 2005-02-10  Kim F. Storm  <storm@cua.dk>
12244         * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
12245         if it moves outside window or it doesn't display text.
12247 2005-02-09  Kim F. Storm  <storm@cua.dk>
12249         * undo.c (Fprimitive_undo): Check that undo function does not
12250         switch buffer.
12252 2005-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12254         * xselect.c (selection_data_to_lisp_data): For the special case
12255         type == XA_ATOM, data contains array of int, not array of Atom.
12256         (x_property_data_to_lisp, selection_data_to_lisp_data):
12257         Comment update: data must be array of int for format == 32.
12259 2005-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
12261         * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
12263 2005-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12265         * xfns.c (Fx_change_window_property): Use long array when format is 32.
12266         (Fx_window_property): If format is 32 and long is bigger than 32 bits,
12267         convert long array returned from XGetWindowProperty to an int array.
12268         (x_set_tool_bar_lines): Check that width and height is greater than
12269         zero before clearing area.
12271         * xselect.c (x_reply_selection_request): Pass long array to
12272         XChangeProperty so that 64 bit longs are handeled correctly.
12273         (x_get_window_property): If format is 32 and long is bigger than 32
12274         bits convert data from XGetWindowProperty from long array to int array.
12275         (lisp_data_to_selection_data): When the input is a vector and the
12276         format is 32, allocate a long array even if long is bigger than 32 bits.
12277         (x_fill_property_data): Use char, short and long as the man page
12278         for XChangeProperty specifies.  This way the data returned is OK for
12279         both 32 and 64 bit machines.
12280         (x_handle_dnd_message): Calculate size correctly even for 64 bit
12281         machines.
12282         (Fx_send_client_event): Undo change from 2005-02-05,
12283         x_fill_property_data now handles that case.
12285         * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
12286         reason for the approach in the code.
12288 2005-02-07  Kim F. Storm  <storm@cua.dk>
12290         * undo.c (Fprimitive_undo): Record max one dummmy apply element.
12292 2005-02-06  Richard M. Stallman  <rms@gnu.org>
12294         * eval.c (Frun_hook_with_args)
12295         (Frun_hook_with_args_until_success)
12296         (Frun_hook_with_args_until_failure): Doc fixes.
12298 2005-02-05  Andreas Schwab  <schwab@suse.de>
12300         * sysdep.c (sys_subshell): Properly terminate execlp argument list.
12302 2005-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12304         * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
12305         the longs in a XClientMessageEvent correctly when long is 64 bits.
12307 2005-02-05  Eli Zaretskii  <eliz@gnu.org>
12309         * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
12310         instead of HAVE_X_WINDOWS, for non-X windowed sessions.
12312 2005-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12314         * xmenu.c (menubar_selection_callback): Force out GTK buffered
12315         events so the menu event comes after them.  This is to prevent sit-for
12316         from exiting on buffered events directly after a menu selection,
12317         lisp code for Help => About Emacs uses sit-for.
12319         * gtkutil.c (create_menus): Connect selection-done event instead of
12320         the deactivate event to deactivate_cb.  This will make the last
12321         leave event come before the call to deactivate_cb, so the leave
12322         event does not make sit-for exit after a menu selection.
12324 2005-02-03  Kim F. Storm  <storm@cua.dk>
12326         * dispnew.c (build_frame_matrix_from_leaf_window)
12327          [!GLYPH_DEBUG]: Fix xassert.
12329         * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
12331         * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12333 2005-02-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12335         * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
12336         the compiling OS version.
12338         * macfns.c (x_create_tip_frame): Likewise.
12340         * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
12342 2005-02-03  Richard M. Stallman  <rms@gnu.org>
12344         * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
12346         * xdisp.c (echo_area_display): Clear echo_message_buffer.
12348         * buffer.c (Fbury_buffer): Doc fix.
12350 2005-02-02  Steven Tamm  <steventamm@mac.com>
12352         * macfns.c (unwind_create_frame): Fix compile error due to
12353         xassert being uncondition, but predicate is.
12354         * dispnew.c (update_window): Fix compile error due to
12355         xassert being uncondition, but predicate is.
12357 2005-02-02  Miles Bader  <miles@gnu.org>
12359         * dispextern.h (xassert): Enable unconditionally.
12361 2005-02-02  Kim F. Storm  <storm@cua.dk>
12363         * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
12365 2005-02-02  Kenichi Handa  <handa@m17n.org>
12367         * casefiddle.c (casify_object): Enable changing characters of
12368         different byte length.
12369         (casify_region): Fix loop condition, args to replace_range_2, and
12370         update opoint_byte.
12372         * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
12374 2005-02-01  Kim F. Storm  <storm@cua.dk>
12376         * xdisp.c (back_to_previous_visible_line_start): Reset iterator
12377         stack before calling handle_display_prop.
12379 2005-01-31  Kim F. Storm  <storm@cua.dk>
12381         * undo.c (Qapply): New lisp var.
12382         (syms_of_undo): Intern and staticpro it.
12383         (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
12384         (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
12386         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
12388 2005-01-30  Jesper Harder  <harder@phys.au.dk>
12390         * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
12391         <mac-emulate-three-button-mouse>: Fix docstring indentation.
12393 2005-01-29  Luc Teirlinck  <teirllm@auburn.edu>
12395         * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
12396         Increase value to 3 Meg.
12398 2005-01-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12400         * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
12401         button events are not received otherwise.
12403 2005-01-29  Richard M. Stallman  <rms@gnu.org>
12405         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
12407         * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
12409 2005-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
12411         * keymap.c (access_keymap): YAILOM.
12413 2005-01-27  Kim F. Storm  <storm@cua.dk>
12415         * xdisp.c (get_phys_cursor_geometry): New function to calculate
12416         phys cursor position and size for hollow cursor.  Position is
12417         aligned with get_glyph_string_clip_rect and ensures that a hollow
12418         cursor is shown, even when the actual glyph is not visible.
12420         * dispextern.h (get_phys_cursor_geometry): Add prototype.
12422         * xterm.c (x_clip_to_row): Ensure y >= 0.
12423         (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
12425         * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
12427         * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
12429 2005-01-27  Stefan Monnier  <monnier@iro.umontreal.ca>
12431         * xterm.c (x_error_quitter): Add a prototype.  Make it static again.
12433 2005-01-27  Kim F. Storm  <storm@cua.dk>
12435         * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
12436         glyph, even when row is only partially visible and actual cursor
12437         position is not visible.
12439 2005-01-24  Richard M. Stallman  <rms@gnu.org>
12441         * xterm.c (x_error_quitter): No longer static, and moved after
12442         x_error_handler.
12444 2005-01-24  Kim F. Storm  <storm@cua.dk>
12446         * xdisp.c (move_it_by_lines): If we move forward after going too
12447         far back, cancel move if end position is same as start position.
12449 2005-01-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12451         * dispextern.h (struct glyph_string): New members clip_head and
12452         clip_tail.
12454         * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
12455         region to the area between clip_head and clip_tail.
12456         (draw_glyphs): Record the area that need to be actually redrawn to
12457         the new variables clip_head and clip_tail when there are
12458         overhangs.  Set values of these variables to the corresponding
12459         members in struct glyph_string.  Refine x coordinates for
12460         notice_overwritten_cursor using clip_head and clip_tail.
12462         * macgui.h (STORE_XCHARSETSTRUCT): New macro.
12464         * macterm.c (mac_compute_glyph_string_overhangs): Implement with
12465         QDTextBounds.
12466         (x_draw_glyph_string): Don't fill the background of the successor
12467         of a glyph with a right overhang if the successor will draw a cursor.
12468         (XLoadQueryFont): Obtain font metrics using QDTextBounds.
12469         (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
12471 2005-01-24  Kim F. Storm  <storm@cua.dk>
12473         * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
12474         direction if window height was smaller than next-screen-context-lines.
12475         Now always scroll at least one line in the requested direction.
12476         Ensure that we actually do scroll backwards when requested to do so.
12478         * xdisp.c (redisplay_window): Only try to make cursor line fully
12479         visible once (to avoid redisplay loop).
12481 2005-01-23  Kim F. Storm  <storm@cua.dk>
12483         * window.c (Fpos_visible_in_window_p): Simplify return value for
12484         partially visible rows.
12485         (window_scroll_pixel_based): Adapt to that change.
12487         * window.c (window_scroll_pixel_based): Force moving to next line
12488         if scrolling doesn't move start point, e.g. if looking at tall image.
12490         * xdisp.c (pos_visible_p): Return 0 if non-interactive.
12491         Clear last_height before calling line_bottom_y to get real height.
12492         Fix calculation of y.
12494 2005-01-22  Steven Tamm  <steventamm@mac.com>
12496         * s/darwin.h: Removed PTY_ITERATION from here.
12497         (DARWIN): Define.
12499         * process.c (init_process): Default process-connection-type to
12500         nil on darwin 6 or less, t if it is 7 or higher.  This way the
12501         broken pty behavior is still allowed on darwin 6 for interactive
12502         processes for people that know what they are doing.
12504 2005-01-22  Kim F. Storm  <storm@cua.dk>
12506         * window.c (auto_window_vscroll_p): New boolean.
12507         (syms_of_window): DEFVAR_BOOL it.
12508         (Fpos_visible_in_window_p): Extend return value to include RTOP
12509         and RBOT values if FULLY is nil.
12510         (window_scroll_pixel_based): Adjust vscroll for partially visible
12511         rows if auto_window_vscroll_p is set.
12512         (Fset_window_vscroll): Do nothing if vscroll is not modified.
12514         * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
12515         to return number of partially invisible pixels at top and bottom
12516         of the dislay row at POS.
12518         * lisp.h (pos_visible_p): Fix prototype.
12520 2005-01-21  Richard M. Stallman  <rms@gnu.org>
12522         * fileio.c (Fcopy_file): Doc fix.
12524 2005-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12526         * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
12527         (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
12528         start of function for older compilers.
12530 2005-01-20  Richard M. Stallman  <rms@gnu.org>
12532         * editfns.c (Fmessage): If arg is "", return "" (as before).
12534         * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
12536         * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
12537         variable.
12539 2005-01-20  Steven Tamm  <steventamm@mac.com>
12541         * editfns.c (Voperating_system_release): Add.
12542         (init_editfns): Assign new variable operating-system-release
12543         based on call to uname if available.
12544         (get_operating_system_release): Add function to
12545         allow c-level access to operating system release.
12547         * config.h: Regenerated.
12549         * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
12550         (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
12551         using ptys as '7'.
12553 2005-01-20  Kim F. Storm  <storm@cua.dk>
12555         * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
12557         * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
12558         Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
12560         * macterm.c (x_draw_glyph_string_box): Likewise.
12562         * w32term.c (x_draw_glyph_string_box): Likewise.
12564         * indent.c (Fvertical_motion): Temporarily disable selective display.
12566 2005-01-19  Kim F. Storm  <storm@cua.dk>
12568         * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
12569         image property.
12571         * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
12573 2005-01-18  Kim F. Storm  <storm@cua.dk>
12575         * xdisp.c (fast_find_position): Backtrack to find first row if
12576         charpos is inside a display overlay that spans multiple lines.
12578 2005-01-18  Kenichi Handa  <handa@m17n.org>
12580         * coding.c (decode_coding_iso2022): Translate invalid codes if
12581         translation-table is specified.
12583 2005-01-18  Kim F. Storm  <storm@cua.dk>
12585         * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
12586         change.  If handle_display_prop indicates newline is replaced by
12587         image or text, move back to start of relevant overlay or interval
12588         and continue scan from there.  Simplify.
12590 2005-01-17  Kim F. Storm  <storm@cua.dk>
12592         * dispnew.c (mode_line_string, marginal_area_string):
12593         Fix off-by-one error in search for glyph.
12595 2005-01-16  Kim F. Storm  <storm@cua.dk>
12597         * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
12599 2005-01-16  Steven Tamm  <steventamm@mac.com>
12601         * macterm.c (mac_to_x_fontname): Remove spurious argument.
12603 2005-01-16  Andreas Schwab  <schwab@suse.de>
12605         * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
12607 2005-01-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12609         * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
12610         fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
12612 2005-01-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12614         * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
12615         (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
12616         New flags for readable_events.
12617         (get_filtered_input_pending, readable_filtered_events): Remove.
12618         (tracking_off): Call readable_events and get_input_pending with
12619         flag READABLE_EVENTS_DO_TIMERS_NOW.
12620         (readable_events): Move code from old readable_filtered_events here,
12621         but check new READABLE_EVENTS_* in argument flags instead of previous
12622         two boolean arguments do_timers_now and filter_events.
12623         If we are doing mouse tracking and the mouse moved, return only if
12624         READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
12625         (swallow_events): Call get_input_pending with flag
12626         READABLE_EVENTS_DO_TIMERS_NOW.
12627         (get_input_pending): Move code from old get_filtered_input_pending
12628         here.  Replace boolean arguments do_timers_now, filter_events with
12629         flags, and pass flags to readable_events.  Document new
12630         READABLE_EVENTS_* flags.
12631         (detect_input_pending_ignore_squeezables): New function.
12632         (detect_input_pending_run_timers): Call get_input_pending with flag
12633         READABLE_EVENTS_DO_TIMERS_NOW.
12634         (Finput_pending_p): Call get_input_pending with flags
12635         READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
12637         * dispnew.c (update_window, update_frame_1): Replace calls to
12638         detect_input_pending with detect_input_pending_ignore_squeezables
12639         so that redisplay is not paused if the event queue contains only
12640         mouse movements.
12642         * lisp.h: Declare detect_input_pending_ignore_squeezables.
12644 2005-01-15  Steven Tamm  <steventamm@mac.com>
12646         * macterm.c (Vmac_use_core_graphics): Declare variable for
12647         mac-allow-anti-aliasing.
12648         (syms_of_macterm): DEFVAR_LISP and initialize it.
12649         (mac_draw_string_common): Use core graphics text rendering if
12650         mac-allow-anti-aliasing is enabled.
12652         * macfns.c (Fx_file_dialog): Save As dialog includes only the
12653         file name in the text box.
12655 2005-01-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12657         * macfns.c (x_set_foreground_color, x_set_background_color):
12658         Sync with xfns.c.
12659         (mac_window, x_create_tip_frame): Use XSetWindowBackground.
12660         * macterm.c (XSetBackground, XSetWindowBackground): New functions.
12661         * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
12663 2005-01-14  Kim F. Storm  <storm@cua.dk>
12665         * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
12667 2005-01-13  Richard M. Stallman  <rms@gnu.org>
12669         * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
12670         if Voverriding_terminal_local_map is non-nil.
12672         * keyboard.c (syms_of_keyboard): Doc fix.
12674 2005-01-13  Kim F. Storm  <storm@cua.dk>
12676         * xdisp.c (Fformat_mode_line): Fix last change.  Remove NO_PROPS arg
12677         (specify 0 for FACE instead).  Reorder arg list.  Doc fix.
12679 2005-01-12  Richard M. Stallman  <rms@gnu.org>
12681         * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
12682         face property for characters that don't specify one.
12684         * fns.c (Frequire): Record in load-history unconditionally.
12686 2005-01-10  Kim F. Storm  <storm@cua.dk>
12688         * dispextern.h (merge_faces): Rename from merge_into_realized_face.
12690         * xfaces.c (merge_faces): Rename from merge_into_realized_face.
12691         Callers changed.
12692         Add support to merge with lisp face id too (if face_name is t).
12694         * xdisp.c (get_next_display_element, next_element_from_display_vector):
12695         Don't lookup lface_id from display table glyphs here; instead use
12696         merge_faces to merge the lisp face id into current face.
12698 2005-01-09  Kim F. Storm  <storm@cua.dk>
12700         * dispextern.h (struct it): New member dpvec_face_id.
12701         (merge_into_realized_face): Add prototype.
12703         * xfaces.c (merge_into_realized_face): New function.  Used to
12704         merge escape-glyph face or face from display table into current face.
12706         * xdisp.c (Vshow_nonbreak_escape): New lisp var.
12707         (syms_of_xdisp): DEFVAR_LISP it.
12708         (escape_glyph_face): Remove var.
12709         (redisplay_window): Don't initialize it.
12710         (setup_for_ellipsis, get_next_display_element):
12711         Set it->dpvec_face_id to -1.
12712         (get_next_display_element): Test Vshow_nonbreak_escape.
12713         Do not setup escape_glyph_face.
12714         Properly merge escape-glyph face or face from display table with
12715         current face for escape and control characters.
12716         Set it->dpvec_face_id to relevant face id instead of adding it to each
12717         element of display vector.
12718         (next_element_from_display_vector): If it->dpvec_face_id is set,
12719         use that instead of lface_id from glyph itself.
12721 2005-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12723         * xterm.h (struct x_output): New member, toolbar_detached.
12725         * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
12726         38.
12727         (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
12728         (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
12729         (xg_create_tool_bar): Initialize toolbar_detached.
12730         (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
12731         toolbar_detached is zero.
12733 2005-01-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12735         * xmenu.c (create_and_show_popup_menu): Pass zero as button to
12736         gtk_menu_popup if not for_click, so callbacks for the menu are called.
12738         * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
12739         (xg_tool_bar_callback, xg_tool_bar_help_callback)
12740         (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
12742         * xselect.c (x_get_foreign_selection, x_fill_property_data)
12743         (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
12744         XFLOAT_DATA to get extract number from Lisp object.
12746 2005-01-07  Kim F. Storm  <storm@cua.dk>
12748         * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
12749         Set stop_charpos to current charpos instead of 0.
12751 2005-01-06  Nick Roberts  <nickrob@snap.net.nz>
12753         * xdisp.c (Fformat_mode_line): First arg now required.
12755 2005-01-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12757         * macterm.c (XLoadQueryFont): Correctly handle 0 size
12758         font widths that are returned from some Japanese fonts.
12760 2005-01-06  Kim F. Storm  <storm@cua.dk>
12762         * fringe.c (fringe_faces): Change to Lisp_Object pointer.
12763         (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
12764         (destroy_fringe_bitmap): Set fringe_faces element to nil.
12765         (Fdefine_fringe_bitmap, init_fringe): Change allocation of
12766         fringe_faces array and init elements to nil.
12767         (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
12768         non-persistent face id.
12769         (mark_fringe_data): New function for GC.
12771         * alloc.c (mark_fringe_data): Declare extern.
12772         (Fgarbage_collect): Call mark_fringe_data.
12774         * alloc.c (overrun_check_free): Invalidate freed memory if
12775         XMALLOC_CLEAR_FREE_MEMORY is defined.
12777 2005-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12779         * macfns.c: Include sys/param.h.
12780         [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
12781         and function.
12782         [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
12783         of filename string.  Set event callback function when creating
12784         dialog boxes.  Add code conversions for filenames.  Don't dispose
12785         of apple event descriptor record if failed to create it.
12787         * macterm.c: Include sys/param.h.
12788         [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
12789         kEventWindowUpdate.
12790         (install_window_handler) [USE_CARBON_EVENTS]: Register it.
12791         (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
12792         of FSSpec from apple event descriptor record.
12793         (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
12794         size of filename string.
12795         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
12796         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
12797         file dialog is in action.
12798         [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
12799         Reject only when there are no filename items.  Set background color
12800         before (un)highlighting the window below the dragged items.
12801         (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
12803 2005-01-05  Romain Francoise  <romain@orebokech.com>
12805         * term.c (encode_terminal_code): Fix buffer size computation.
12807 2005-01-04  Richard M. Stallman  <rms@gnu.org>
12809         * xdisp.c (Fformat_mode_line): Doc fix.
12811 2005-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
12813         * alloc.c (refill_memory_reserve): Move.
12814         (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
12815         (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
12817 2005-01-03  Richard M. Stallman  <rms@gnu.org>
12819         * window.c (window_scroll_pixel_based): Don't correct preserve_y
12820         for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
12822 2005-01-03  Jason Rumney  <jasonr@gnu.org>
12824         * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
12825         fontp->space_width to FONT_WIDTH so they are valid.
12827         * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
12828         average width.  Set fontp->average_width and fontp->space_width to
12829         their appropriate values.
12831         * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
12832         fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
12833         fontp->space_width.
12835 2005-01-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12837         * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
12838         (x_font_min_bounds, XLoadQueryFont): Use the correct font width
12839         metrics for max and min bounds.
12840         (x_load_font): Correctly calculate average font width metrics.
12842 2005-01-02  Richard M. Stallman  <rms@gnu.org>
12844         * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
12846 2004-12-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12848         * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
12850 2004-12-31  Richard M. Stallman  <rms@gnu.org>
12852         * xdisp.c (setup_for_ellipsis, get_next_display_element):
12853         Set it->ellipsis_p to 1 or 0.
12854         (display_line): Record whether row ends in mid-ellipsis.
12855         (set_cursor_from_row): If ends in ellipsis, find start of it.
12856         (cursor_row_p): If PT's at the end of the ellipsis the row
12857         ends within, don't display cursor on this row.
12859         * dispextern.h (struct it): New element ellipsis_p.
12860         (struct glyph_row): New element ends_in_ellipsis_p.
12862         * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
12863         position if we're reading from something other than the buffer.
12865         * window.c (window_scroll_pixel_based): Only look at
12866         Vscroll_preserve_screen_position if the old PT can't be kept.
12867         (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
12869 2004-12-30  Kim F. Storm  <storm@cua.dk>
12871         * xdisp.c (get_line_height_property): New function extracted from
12872         original calc_line_height_property.
12873         (calc_line_height_property): Rework.  Handle t and (nil . ratio).
12874         (x_produce_glyphs): Use them to handle line-height and
12875         line-spacing according to new height spec.
12876         (Qtotal): Remove.
12877         (syms_of_xdisp): Remove intern and staticpro for Qtotal.
12879 2004-12-30  Kenichi Handa  <handa@m17n.org>
12881         * fileio.c (Finsert_file_contents): Don't use
12882         current_buffer->buffer_file_coding_system even if REPLACE is
12883         non-nil.  Call Qafter_insert_file_set_coding with the second arg VISIT.
12885         * fontset.h (struct font_info): New members space_width and
12886         average_width.
12888         * frame.h (struct frame): New member space_width.
12889         (FRAME_SPACE_WIDTH): New macro.
12891         * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
12893         * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
12894         fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
12895         fontp->space_width.
12896         (x_load_font): Calculate fontp->space_width and fontp->average_width.
12897         (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
12899         * xdisp.c (x_produce_glyphs): Calculate tab width by
12900         FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
12902 2004-12-29  Sanghyuk Suh  <han9kin@mac.com>
12904         * macterm.c (SelectionRange): Add Xcode position apple event struct.
12905         (do_ae_open_documents): Handle Xcode-style file position open events.
12907 2004-12-29  Luc Teirlinck  <teirllm@auburn.edu>
12909         * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
12911 2004-12-29  Richard M. Stallman  <rms@gnu.org>
12913         * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
12915 2004-12-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12917         * macfns.c (install_window_handler): Modify extern to return OSErr
12918         value.
12919         (mac_window): Handle return value of install_window_handler.
12921         * macterm.c (reflect_byte): Remove function.
12922         (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
12923         Lookup table instead.
12924         (mac_do_font_lists): Simplify calculation of the longest
12925         nonspecial string.
12926         (init_mac_drag_n_drop): Remove function and declaration.
12927         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12928         init_mac_drag_n_drop.
12929         (mac_do_track_drag): New function and declaration.
12930         (install_window_handler): Return OSErr value.
12931         (install_window_handler) [TARGET_API_MAC_CARBON]:
12932         Register handlers for tracking/receiving drag-and-drop items.
12933         (do_ae_open_documents): Generate unibyte strings for filenames.
12934         (mac_do_receive_drag) [TARGET_API_MAC_CARBON]: Likewise.
12935         Reject only non-filename items.  Set event modifiers, and return value.
12937 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
12939         * coding.c (decode_coding): Fix previous change.
12941 2004-12-28  Richard M. Stallman  <rms@gnu.org>
12943         * xdisp.c (back_to_previous_visible_line_start):
12944         Don't call handle_display_prop.
12946 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
12948         * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
12949         (decode_coding_emacs_mule, encode_coding_emacs_mule)
12950         (decode_coding_iso2022, encode_designation_at_bol)
12951         (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
12952         (decode_coding): Constify arguments and local vars.
12954 2004-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12956         * xmenu.c (popup_get_selection): Only pop down dialogs
12957         on C-g and Escape.
12958         (popup_get_selection): Remove parameter down_on_keypress.
12959         (create_and_show_popup_menu, create_and_show_dialog):
12960         Remove parameter down_on_keypress to popup_get_selection.
12962 2004-12-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12964         * dispextern.h: Change HAVE_CARBON to MAC_OS.
12965         (struct glyph_string): Likewise.
12967         * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
12968         mac_initialize.
12970         * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
12971         Change TARGET_API_MAC_CARBON to HAVE_CARBON.
12973         * fns.c (vector): Change MAC_OSX to MAC_OS.
12975         * frame.c (x_set_frame_parameters, x_report_frame_params)
12976         (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
12977         (x_set_border_width, Vdefault_frame_scroll_bars):
12978         Change HAVE_CARBON to MAC_OS.
12980         * image.c [MAC_OS]: Include sys/stat.h.
12981         [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
12982         QuickTimeComponents.h.
12984         * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
12985         [!MAC_OSX] (select): Use mac_wait_next_event.
12986         [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
12987         [!MAC_OSX] (select, run_mac_command): Change `#ifdef
12988         TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
12989         (mac_clear_font_name_table): Add extern.
12990         (Fmac_clear_font_name_table): New defun.
12991         (syms_of_mac): Defsubr it.
12992         [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
12993         [MAC_OSX] (select_and_poll_event): New function.
12994         [MAC_OSX] (sys_select): Use it.
12995         [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
12996         [MAC_OSX && SELECT_USE_CFSOCKET]
12997         (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
12998         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
12999         RunLoop for simultaneously monitoring two kinds of inputs, window
13000         events and process outputs, without periodically polling.
13002         * macfns.c (mac_initialized): Remove extern.
13003         (stricmp): Put in #if 0.  All callers changed to use xstricmp in
13004         xfaces.c.
13005         (strnicmp): Decrement `n' at the end of each loop, not the beginning.
13006         (check_mac): Use the term "Mac native windows" instead of "Mac OS".
13007         (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
13008         (mac_get_rdb_resource): New function (from w32reg.c).
13009         (x_get_string_resource): Use it.
13010         (install_window_handler): Add extern.
13011         (mac_window): New function.
13012         (Fx_create_frame): Use it instead of make_mac_frame.
13013         Set parameter for Qfullscreen.  Call x_wm_set_size_hint.
13014         (Fx_open_connection, Fx_close_connection): New defuns.
13015         (syms_of_macfns): Defsubr them.
13016         (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
13017         Add kWindowNoUpdatesAttribute to the window attribute.
13018         (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
13019         (x_create_tip_frame): Don't call ShowWindow.
13020         (Fx_show_tip): Call ShowWindow.
13021         (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
13022         TARGET_API_MAC_CARBON'.
13023         (mac_frame_parm_handlers): Set handlers for Qfullscreen.
13024         (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
13026         * macgui.h [!MAC_OSX]: Don't include Controls.h.  Include Windows.h.
13027         (Window): Typedef to WindowPtr and move outside `#if
13028         TARGET_API_MAC_CARBON'.
13029         (XSizeHints): New struct.
13031         * macterm.c (x_update_begin, x_update_end)
13032         [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
13033         frame.
13034         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
13035         [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
13036         (construct_mouse_click): Put in #if 0.
13037         (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
13038         (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
13039         TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
13040         (activate_scroll_bars, deactivate_scroll_bars)
13041         [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
13042         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
13043         if the position is neither user-specified nor program-specified.
13044         (x_free_frame_resources): Free size_hints.
13045         (x_wm_set_size_hint): Allocate size_hints if needed.  Set size_hints.
13046         (mac_clear_font_name_table): New function.
13047         (mac_do_list_fonts): Initialize font_name_table if needed.
13048         (x_list_fonts): Don't initialize font_name_table.  Add BLOCK_INPUT
13049         around mac_do_list_fonts.
13050         (mac_unload_font): New function.
13051         (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
13052         (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
13053         and definitions with #if TARGET_API_MAC_CARBON.
13054         [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
13055         (install_window_handler): Add decl.
13056         (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
13057         window.  Use UpdateControls.  Get the rectangle that should be
13058         updated and restrict the target of expose_frame to it.
13059         (do_grow_window): Set minimum height/width according to size_hints.
13060         (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
13061         (do_zoom_window): Don't use x_set_window_size.
13062         [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
13063         (install_window_handler): New function.
13064         [!USE_CARBON_EVENTS] (mouse_region): New variable.
13065         [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
13066         (XTread_socket) [USE_CARBON_EVENTS]: Move call to
13067         GetEventDispatcherTarget inside BLOCK_INPUT.
13068         (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
13069         Update mouse_region when mouse is moved.
13070         (make_mac_frame): Remove.
13071         (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
13072         Initialize mouse pointer shapes.  Change values of f->left_pos and
13073         f->top_pos.  Don't use make_mac_frame.  Use NewCWindow.
13074         Don't call ShowWindow.
13075         (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
13076         Vinvocation_name and Vsystem_name.
13077         (mac_make_rdb): New function (from w32term.c).
13078         (mac_term_init): Use it.  Add BLOCK_INPUT.  Error if display has
13079         already been opened.  Don't pass argument to
13080         mac_initialize_display_info.  Don't set dpyinfo->height/width.
13081         Add entries to x_display_list and x_display_name_list.
13082         (x_delete_display): New function.
13083         (mac_initialize): Don't call mac_initialize_display_info.
13084         (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
13086         * macterm.h (check_mac): Add extern.
13087         (struct mac_output): New member size_hints.
13088         (FRAME_SIZE_HINTS): New macro.
13089         (mac_unload_font): Add extern.
13091         * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
13093         * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
13095 2004-12-27  Richard M. Stallman  <rms@gnu.org>
13097         * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
13098         (syms_of_buffer): Don't defsubr it.
13100         * process.c (list_processes_1): Set undo_list instead
13101         of calling Fbuffer_disable_undo.
13103         * xdisp.c (single_display_spec_string_p): Rename from
13104         single_display_prop_string_p.
13105         (single_display_spec_intangible_p): Rename from
13106         single_display_prop_intangible_p.
13107         (handle_single_display_spec): Rename from handle_single_display_prop.
13108         Rewritten to be easier to understand.
13110         Change in load-history format.  Functions now get (defun . NAME),
13111         and variables get just NAME.
13113         * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
13115         * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
13116         (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
13117         (Qdefvar): Var deleted.
13118         (syms_of_eval): Don't initialze it.
13120         * lread.c (syms_of_lread) <load-history>: Doc fix.
13122 2004-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13124         * xmenu.c (popup_get_selection): Pop down on C-g.
13125         (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
13126         pops down menu on C-g.
13127         (xdialog_show): If dialog popped down and no button in the dialog was
13128         pushed, call Fsignal to quit.
13129         (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
13130         Fsignal to quit.
13132         * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
13134         * gtkutil.c (xg_initialize): Install bindings for C-g so that
13135         dialogs and menus pop down.
13137 2004-12-27  Kenichi Handa  <handa@m17n.org>
13139         * coding.c (code_convert_region): Fix calculation of `ratio'.
13141 2004-12-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13143         * gtkutil.c (update_frame_tool_bar): Make the value of
13144         tool-bar-button-margin control margins of images in tool bar.
13146         * alloc.c (check_depth): New variable.
13147         (overrun_check_malloc, overrun_check_realloc): Only add
13148         overhead and write check pattern if check_depth is 1 (to handle
13149         recursive calls).  Increase/decrease check_depth in entry/exit.
13150         (overrun_check_free): Only check for overhead if check_depth is 1.
13151         Increase/decrease check_depth in entry/exit.
13153 2004-12-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13155         * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
13156         before touching input_available_clear_time, to avoid accessing it
13157         from multiple threads.
13159 2004-12-23  Jason Rumney  <jasonr@gnu.org>
13161         * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
13162         of JPEG library.
13164 2004-12-22  Richard M. Stallman  <rms@gnu.org>
13166         * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
13168         * lisp.h (Vundo_outer_limit): Fix decl.
13170         * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
13171         Uses changed.
13172         (syms_of_undo): Initialize appropriately.
13173         (truncate_undo_list): If it's nil, there's no limit.
13175 2004-12-22  Kenichi Handa  <handa@m17n.org>
13177         * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
13179 2004-12-21  Richard M. Stallman  <rms@gnu.org>
13181         * eval.c (unwind_to_catch): Clear immediate_quit.
13183         * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
13184         specially as `\ ' and `\-'.
13186         * keyboard.c (kbd_buffer_store_event_hold):
13187         In the code for while-no-input, handle immediate_quit.
13189         * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
13190         Call that at the very start.
13191         (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
13192         (syms_of_alloc): Don't define undo-limit,
13193         undo-strong-limit and undo-outer-limit here.
13195         * undo.c (truncate_undo_list): Return void.
13196         Take just one argument, the buffer.
13197         Make it current, and inhibit recursive GC.
13198         Access and update the undo list directly; return void.
13199         Refer to the undo...limit variables directly.
13200         Test undo_outer_limit only after counting the whole current command.
13201         When it's exceeded, call the function in undo-outer-limit-function.
13202         (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
13203         (Vundo_outer_limit_function): New variable.
13204         (syms_of_undo): Define undo-limit, undo-strong-limit
13205         and undo-outer-limit here, and undo-outer-limit-function.
13206         Doc fixes.
13208         * lisp.h (truncate_undo_list): Update decl.
13210 2004-12-21  Piet van Oostrum  <piet@cs.uu.nl>
13212         * fileio.c (Fread_file_name): Delete duplicates in
13213         file-name-history when history_delete_duplicates is true.
13215 2004-12-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13217         * macterm.c (mac_do_list_fonts): Fix memory leak
13219 2004-12-20  Richard M. Stallman  <rms@gnu.org>
13221         * regex.c (re_match_2_internal) <symend, wordend>:
13222         Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
13224 2004-12-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13226         * macterm.c (endif, x_font_name_to_mac_font_name):
13227         Use maccentraleurroman instead of maccentraleuropean
13228         (mac_c_string_match, mac_do_list_fonts): Speed up font search by
13229         quickly finding a specific font without needing regexps.
13231 2004-12-15  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13233         * syssignal.h: Declare main_thread.
13234         (SIGNAL_THREAD_CHECK): New macro.
13236         * keyboard.c (input_available_signal): Move thread checking code
13237         to macro SIGNAL_THREAD_CHECK and call that macro.
13238         (interrupt_signal): Call SIGNAL_THREAD_CHECK.
13240         * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
13242         * emacs.c: Define main_thread.
13243         (main): Initialize main_thread.
13244         (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
13245         (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
13247         * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
13249         * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
13251         * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
13253         * process.c (send_process_trap, sigchld_handler):
13254         Call SIGNAL_THREAD_CHECK.
13256         * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
13258         * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
13260         * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
13261         returning when xg_ignore_gtk_scrollbar is true.
13263 2004-12-14  Kim F. Storm  <storm@cua.dk>
13265         * keyboard.c (read_char): Save and restore echo_string when
13266         handling input method.
13268 2004-12-13  Richard M. Stallman  <rms@gnu.org>
13270         * eval.c (syms_of_eval) <quit-flag>: Doc fix.
13272         * keyboard.c (Vthrow_on_input): New variable.
13273         (syms_of_keyboard): Defvar and initialize it.
13274         (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
13276         * lisp.h (QUIT): Check for Vthrow_on_input.
13277         (Vthrow_on_input): Declare it.
13279 2004-12-13  Kim F. Storm  <storm@cua.dk>
13281         * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
13282         vector.
13284 2004-12-12  Richard M. Stallman  <rms@gnu.org>
13286         * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
13288         * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
13289         (Ftry_completion): Really use outer `zero'; eliminate inner one.
13291 2004-12-12  Kenichi Handa  <handa@m17n.org>
13293         * term.c (encode_terminal_code): Fix previous change.
13295 2004-12-11  Stefan Monnier  <monnier@iro.umontreal.ca>
13297         * keyboard.c (handle_async_input): Remove pthread mutex handling.
13298         (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
13300         * syntax.c (Fforward_word): Avoid non-idempotent side-effects
13301         in macro arguments.
13303         * minibuf.c (Ftry_completion, Fall_completions): Don't use
13304         XFASTINT blindly.
13306         * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
13308 2004-12-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13310         * w32term.c (x_calc_absolute_position): Remove calculation of
13311         difference between inner and outer window.  Don't subtract difference
13312         for left and top calculations.
13314         * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
13315         for left and top calculations.  Remove call to x_real_positions.
13316         [Bug report by Drew Adams in November.]
13317         (x_check_expected_move): Do not set change_gravity to 1 when calling
13318         x_set_offset.
13320 2004-12-08  Richard M. Stallman  <rms@gnu.org>
13322         * xdisp.c (get_next_display_element): Use `escape-glyph' for
13323         control chars and escaped octal codes.
13324         (Qescape_glyph): New variable.
13325         (syms_of_xdisp): Initialize it.
13326         (escape_glyph_face): New variable.
13327         (redisplay_window): Initialize it.
13329 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13331         * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
13332         (init_image): Use 1 rather than TRUE.  TRUE's not always defined.
13334 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13336         * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
13337         reset_malloc_hooks.
13339         * keyboard.c (handle_async_input, input_available_signal):
13340         Add ! defined (SYSTEM_MALLOC) around thread code.
13342         * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
13344 2004-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
13346         * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
13348         * config.in: Regenerate.
13350 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13352         * xmenu.c (Fx_popup_menu): Correct documentation about position.
13353         (xmenu_show): Do not call XTranslateCoordinates.  Adjust position
13354         if not given by a mouse click to correspond with x-popup-menu
13355         documentation.
13357         * config.in: Regenerate.
13359         * gtkutil.c: Include signal.h and syssignal.h.
13360         (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
13362         * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
13363         new variables main_thread and alloc_mutex,
13364         define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
13365         emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
13366         If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
13367         as (UN)BLOCK_INPUT.
13368         (emacs_blocked_free, emacs_blocked_malloc)
13369         (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
13370         (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
13371         (reset_malloc_hooks): New function.
13373         * lisp.h: Declare reset_malloc_hooks.
13375         * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
13377         * keyboard.c: Conditionally include pthread.h.
13378         (handle_async_input, input_available_signalt): If not in the main
13379         thread, block signal, send signal to main thread and return.
13381         * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
13382         Set current folder in file chooser if default_filename is a directory.
13384 2004-12-05  Stefan Monnier  <monnier@iro.umontreal.ca>
13386         * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
13387         Remove redundant correctness checks.
13388         (regex_compile): Fix up error codes for \{..\} expressions.
13390 2004-12-05  Richard M. Stallman  <rms@gnu.org>
13392         * regex.c (regex_compile): Fix end-of-pattern case for space.
13394 2004-12-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13396         * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
13397         * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
13398         crashes with invalid characters.
13399         * macmenu.c (add_menu_item): Use it.
13400         * image.c (image_load_quartz2d): Likewise.
13401         * macfns.c (x_set_name, x_set_title): Likewise.
13402         (Fx_file_dialog): Likewise.  Use constant CFRefs instead of
13403         creating them each time for labels.
13405 2004-12-02  Richard M. Stallman  <rms@gnu.org>
13407         * config.in (RE_TRANSLATE_P): If make_number is not a macro,
13408         don't use it here.
13410         * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
13411         (interactive_p): Skip Scalled_interactively_p frames
13412         like Sinteractive_p frames.
13413         (unwind_to_catch): Clear handling_signal.
13415         * data.c (Fmake_variable_buffer_local): Doc fix.
13416         (Fmake_local_variable): Doc fix.
13418         * insdel.c (insert_from_string_before_markers)
13419         (insert_from_string): Don't modify buffer on empty insertion.
13421         * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
13423 2004-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13425         * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
13426         menu text as UTF8 fails.
13428 2004-12-01  Kim F. Storm  <storm@cua.dk>
13430         * alloc.c: Add commentary for last change.
13431         (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
13432         sizeof(size_t) != 4.
13433         (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
13434         Use them.  Also clear header and trailer of freed memory.
13435         (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
13436         (string_overrun_cookie): Rename from string_overrun_pattern.
13437         (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
13439 2004-12-01  Andreas Schwab  <schwab@suse.de>
13441         * lisp.h: Declare string_to_multibyte.
13443 2004-12-01  Kenichi Handa  <handa@m17n.org>
13445         * w32console.c (w32con_write_glyphs): Decide coding here.
13446         Adjusted for the change of encode_terminal_code.
13448         * term.c (encode_terminal_code): Don't make it "static".
13450 2004-11-30  Kenichi Handa  <handa@m17n.org>
13452         * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
13453         (encode_terminal_code): Argument changed.  Encode all
13454         characters at once, and return a pointer to the result of encoding.
13455         (write_glyphs): Decide coding here.  Adjusted for the above change.
13456         (insert_glyphs): Likewise.
13457         (term_init): Initialize encode_terminal_bufsize to 0.
13459         * coding.c (Vcode_conversion_workbuf_name): New variable.
13460         (syms_of_coding): Initialize and staticpro it.
13461         (set_conversion_work_buffer): New function.
13462         (run_pre_post_conversion_on_str): Use it.
13463         (run_pre_write_conversin_on_c_str): New function.
13465         * coding.h (run_pre_write_conversin_on_c_str): Extern it.
13467 2004-11-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13469         * keyboard.c: Don't undef SIGIO
13470         * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
13471         * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
13472         (macfns.o): Don't depend on ccl.h.
13473         * macfns.c (mac_frame_parm_handlers): Set handlers for
13474         Qleft_fringe and Qright_fringe.
13475         * macterm.c (mac_fill_rectangle_to_pixmap)
13476         (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
13477         (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
13478         Put in #if 0.
13479         (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
13480         (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
13481         (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
13482         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
13483         [!MAC_OS8]: Added ifdef'd out code for os8.  Don't use
13484         XDrawImageString.  Always draw background and foreground separately.
13485         (x_draw_image_foreground): Use clipping instead of computing the
13486         intersection rectangle.
13487         (x_draw_image_glyph_string): Don't draw an image with mask to a
13488         pixmap.
13489         (x_redisplay_interface): Set flush_display_optional member to 0.
13490         (XTread_socket): Correctly reset the TEConverter
13491         object.
13493 2004-11-30  Kim F. Storm  <storm@cua.dk>
13495         * lisp.h: New defines to enable buffer overrun checking.
13496         (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
13497         (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
13499         * alloc.c: Add more checks for buffer overruns.
13500         (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
13501         xmalloc_overrun_check_trailer, overrun_check_malloc)
13502         overrun_check_realloc, overrun_check_free): Add.
13503         (GC_STRING_EXTRA, string_overrun_pattern): Add.
13504         (check_sblock, allocate_string_data, compact_small_strings):
13505         Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
13506         (check_cons_list): Condition on GC_CHECK_CONS_LIST.
13507         (check_string_free_list): Add.
13508         (allocate_string, sweep_strings): Call check_string_free_list.
13510         * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
13511         XMALLOC_OVERRUN_CHECK to avoid crash during load.
13513 2004-11-29  Kim F. Storm  <storm@cua.dk>
13515         * fns.c (concat): Use SAFE_ALLOCA.
13517 2004-11-29  Stefan Monnier  <monnier@iro.umontreal.ca>
13519         * sysdep.c (emacs_write): Don't use QUIT.
13521 2004-11-29  Kenichi Handa  <handa@m17n.org>
13523         * buffer.c (init_buffer): Set current_buffer->directory to a
13524         multibyte string made by string_to_multibyte.
13526         * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
13528 2004-11-27  Andreas Schwab  <schwab@suse.de>
13530         * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
13532         * s/gnu-linux.h: Enable no-op gcpros on ia64.
13533         (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
13535         * filelock.c (lock_file_1): Call get_boot_time early.
13536         Increase buffer size.
13538 2004-11-27  Eli Zaretskii  <eliz@gnu.org>
13540         * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
13541         is not defined.
13543 2004-11-27  Kim F. Storm  <storm@cua.dk>
13545         * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
13546         marker out of doc string.
13548 2004-11-26  Stefan Monnier  <monnier@iro.umontreal.ca>
13550         * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
13551         which was not mentioned in the log.
13553 2004-11-26  Kim F. Storm  <storm@cua.dk>
13555         * fringe.c (update_window_fringes): Prefer truncation bitmaps over
13556         angle bitmaps at top/bottom line.
13558         * xdisp.c: Undo recent changes for restoring saved_face_id.  Instead,
13559         set it when it->method is set to next_element_from_display_vector.
13560         (setup_for_ellipsis): Add LEN argument.  Callers changed.
13561         Set it->saved_face_id.
13562         (get_next_display_element): Use loop instead of recursion.
13563         Set it->saved_face_id.  Combine duplicate code for ctr chars.
13564         (next_element_from_display_vector): Do not set it->saved_face_id.
13565         (next_element_from_ellipsis): Use setup_for_ellipsis.
13567 2004-11-26  Eli Zaretskii  <eliz@gnu.org>
13569         * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
13570         prevent compiler warnings.
13572 2004-11-25  Stefan Monnier  <monnier@iro.umontreal.ca>
13574         * keyboard.c (command_loop_1): Print a message describing the key
13575         the user just pressed when this key has no binding.
13577         * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
13578         (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
13580         * lread.c (readchar): Check QUIT when `getc' is interrupted.
13582 2004-11-24  Richard M. Stallman  <rms@gnu.org>
13584         * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
13586         * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
13588 2004-11-24  Kim F. Storm  <storm@cua.dk>
13590         * xdisp.c (move_it_in_display_line_to, display_line):
13591         Restore saved_face_id also when truncate-lines or hscrolled.
13593 2004-11-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13595         * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
13596         x-use-old-gtk-file-dialog.
13598         * xfns.c: Define x_use_old_gtk_file_dialog.
13599         (syms_of_xfns): Rename use-old-gtk-file-dialog to x-...  Move it
13600         outside ifdef USE_GTK.
13602 2004-11-23  Stefan Monnier  <monnier@iro.umontreal.ca>
13604         * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
13605         Don't use XFASTINT blindly.
13607         * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
13609         * indent.c (skip_invisible): Avoid non-idempotent side-effects
13610         in macro arguments.
13612         * keymap.c (Flookup_key): Check INTEGERP before XINT.
13614         * lread.c (oblookup): Don't use XFASTINT blindly.
13616         * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
13617         (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
13619 2004-11-23  Kim F. Storm  <storm@cua.dk>
13621         * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
13622         (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
13624         * xfaces.c (lookup_named_face): Add signal_p arg.  Return -1 if
13625         signal_p is zero and face name is unknown.
13626         (Fx_list_fonts): Don't signal error in lookup_named_face.
13627         (Fface_font): Signal error in lookup_named_face.
13628         (ascii_face_of_lisp_face): Likewise.
13630         * dispextern.h (lookup_named_face): Fix prototype.
13632         * xdisp.c (handle_single_display_prop): Don't signal error in
13633         lookup_named_face for unknown fringe face name.
13634         (highlight_trailing_whitespace): Don't signal error in
13635         lookup_named_face if trailing-whitespace face unknown.
13636         (calc_line_height_property): Don't signal error in
13637         lookup_named_face if specified face name is unknown.
13639         * fringe.c (update_window_fringes): Show top row indicator if
13640         window has header-line.  Don't show arrow at bob and eob
13641         if the boundary indicators are not used.
13642         (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
13644         * window.c (set_window_buffer): Clear display_error_modiff.
13646 2004-11-22  Kim F. Storm  <storm@cua.dk>
13648         * fringe.c (update_window_fringes): Provide sensible fall-back
13649         value for non-nil indicate-buffer-boundaries setting.
13651 2004-11-22  Markus Rost  <rost@ias.edu>
13653         * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
13655 2004-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
13657         * eval.c (Fdefvar): Warn when var is let-bound but globally void.
13659 2004-11-21  Kim F. Storm  <storm@cua.dk>
13661         * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
13663         * xterm.c (x_clip_to_row): Add area arg.  Callers changed.
13664         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
13666         * w32term.c (w32_clip_to_row): Add area arg.  Callers changed.
13667         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
13669         * macterm.c (x_clip_to_row): Add area arg.  Callers changed.
13670         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
13672         * xdisp.c (move_it_in_display_line_to, display_line):
13673         Restore saved_face_id if overflow-newline-into-fringe is enabled and
13674         line is continued before or in middle of element from display vector.
13676         * indent.c (Fvertical_motion): Fix last change.  Use another
13677         method to detect if iterator moved too far ahead after reseat.
13679         * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro.  Do not
13680         expand matrix width for overflow in zero-width area.
13681         (append_glyph, append_composite_glyph, produce_image_glyph)
13682         (append_stretch_glyph): Use it to avoid loop in redisplay.
13683         (note_mode_line_or_margin_highlight): Don't let help-echo from
13684         string override help-echo from image map.
13686 2004-11-20  Luc Teirlinck  <teirllm@auburn.edu>
13688         * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
13689         * callint.c (Fcall_interactively): Ditto.
13691 2004-11-20  Stefan Monnier  <monnier@iro.umontreal.ca>
13693         * minibuf.c (Fminibuffer_complete_and_exit):
13694         Fixup the case of the completed value, for case-indep completion.
13696 2004-11-20  Richard M. Stallman  <rms@gnu.org>
13698         * lisp.h (Fread_from_minibuffer): Add arg in decl.
13700         * minibuf.c (read_minibuf): New arg KEEP_ALL.  Callers changed.
13701         (Fread_from_minibuffer): New arg KEEP_ALL.  Callers changed.
13703         * search.c (Vsearch_spaces_regexp):
13704         Rename from Vsearch_whitespace_regexp.  All uses changed.
13706 2004-11-20  Thien-Thi Nguyen  <ttn@gnu.org>
13708         * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
13710 2004-11-19  Richard M. Stallman  <rms@gnu.org>
13712         * search.c (Vsearch_whitespace_regexp): New variable.
13713         (syms_of_search): Defvar it.
13714         (compile_pattern_1): Call re_set_whitespace_regexp with it.
13715         (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
13716         is non-nil.
13717         (struct regexp_cache): New element whitespace_regexp.
13718         (syms_of_search): Initialize whitespace_regexp elements.
13719         (compile_pattern): Compare whitespace_regexp elements.
13720         (compile_pattern_1): Set whitespace_regexp elements.
13722         * regex.c (regex_compile): Substitute whitespace_regexp
13723         for spaces, if it is nonzero.
13724         (whitespace_regexp): New variable.
13725         (re_set_whitespace_regexp): New function.
13727 2004-11-19  Kim F. Storm  <storm@cua.dk>
13729         * indent.c (Fvertical_motion): Fix last change.
13731 2004-11-18  Kim F. Storm  <storm@cua.dk>
13733         * indent.c (Fvertical_motion): Undo 2004-11-16 change.
13734         Instead, move back again if reseating moves too far ahead.
13736 2004-11-17  Luc Teirlinck  <teirllm@auburn.edu>
13738         * xdisp.c (message3): Call clear_message.
13740 2004-11-17  Kim F. Storm  <storm@cua.dk>
13742         * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
13744 2004-11-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13746         * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
13748         * xmenu.c (x_menu_in_use): Remove.
13749         (x_menu_set_in_use): Also set popup_activated_flag.
13751         * xfns.c (Fx_file_dialog): Call popup_activated instead of
13752         x_menu_in_use.  Call x_menu_set_in_use in Motif version also.
13754         * xterm.h (x_menu_in_use): Remove.
13756 2004-11-16  Richard M. Stallman  <rms@gnu.org>
13758         * keymap.c (Fmap_keymap): New arg SORT-FIRST.
13759         Use map-keymap-internal to implement that.
13761         * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
13763 2004-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
13765         * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
13766         a window before using XWINDOW.
13768         * window.c (make_window, Fselect_window, make_dummy_parent)
13769         (save_window_save):
13770         * frame.c (make_frame):
13771         * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
13773         * lisp.h (NILP): Use EQ rather than XFASTINT.
13775 2004-11-16  Kim F. Storm  <storm@cua.dk>
13777         * fringe.c (Fdefine_fringe_bitmap): Always set 'h'.  Simplify.
13779         * indent.c (Fvertical_motion): Fix last change.  Only reseat when
13780         moving backwards.
13782 2004-11-16  Luc Teirlinck  <teirllm@auburn.edu>
13784         * dispextern.h: Extern reseat_at_previous_visible_line_start.
13786 2004-11-16  Kenichi Handa  <handa@m17n.org>
13788         * xdisp.c (display_mode_element): Fix previous change (calculate
13789         end position of substring to display correctly).
13791 2004-11-16  Kim F. Storm  <storm@cua.dk>
13793         * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
13794         Reported by Andrew M. Scott.
13796 2004-11-15  Kim F. Storm  <storm@cua.dk>
13798         * fns.c (Fsafe_plist_get): New defun.
13799         (syms_of_fns): Defsubr it.
13801         * lisp.h (Fsafe_plist_get): Add EXFUN.
13803         * xdisp.c (store_mode_line_string, produce_stretch_glyph):
13804         Use Fsafe_plist_get.
13805         (note_mode_line_or_margin_highlight, note_mouse_highlight):
13806         Fix image map element parsing.  Use Fsafe_plist_get.
13808 2004-11-15  Richard M. Stallman  <rms@gnu.org>
13810         * xdisp.c (get_next_display_element): Fix previous change.
13812 2004-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13814         * window.c (shrink_windows): Handle special case of one window left
13815         when trying to shrink the final reminder.  Grow windows if
13816         total_removed is less than total_shrink.
13818         * xmenu.c (pop_down_menu): Remove global variable current_menu,
13819         extract pointer from arg with XSAVE_VALUE.
13820         (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
13821         Construct arg to record_unwind_protect with make_save_value.
13823 2004-11-13  Richard M. Stallman  <rms@gnu.org>
13825         * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
13826         (get_next_display_element): Fix previous change to apply only to \n.
13828         * indent.c (Fvertical_motion): Scan to PT from start of line to
13829         make iterator consistent.
13831         * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
13833 2004-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13835         * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
13837         * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
13838         Record unwind with clean_up_file_dialog.
13840         * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
13841         Declare.
13843         * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
13845 2004-11-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13847         * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
13848         (xg_file_sel_destroy): Remove.
13849         (xg_file_response_cb, pop_down_file_dialog)
13850         (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
13851         New functions.
13852         (xg_get_file_with_chooser, xg_get_file_with_selection):
13853         Take new arg func, set it to xg_get_file_name_from_chooser/selector.
13854         Move common code to xg_get_file_name.  Return widget created.
13855         (xg_get_file_name): Set name, transient for, modal and destroy
13856         with parent here.  Connect response signal to xg_file_response_cb,
13857         connect delete-event to gtk_true.  Record pop_down_file_dialog
13858         for unwind.  Do event loop and call x_menu_wait_for_event in loop.
13859         (xg_create_widget): Make dialogs modal.
13861         * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
13862         Lisp_Object.
13863         (popup_get_selection): Move unwind protect ...
13864         (create_and_show_popup_menu, create_and_show_dialog): ... to here.
13865         Move destroy of widget to pop_down_menu.
13866         (popup_widget_loop): Move unwind protect ...
13867         (create_and_show_popup_menu, create_and_show_dialog): ... to here.
13868         Move destroy of widget to pop_down_menu.
13869         (pop_down_menu): BLOCK_INPUT and destroy widget/window.
13870         (xmenu_show): Record unwind pop_down_menu.  Move XMenuDestroy,
13871         x_mouse_leave and grabbed = 0 to pop_down_menu.
13873 2004-11-13  Kim F. Storm  <storm@cua.dk>
13875         * xdisp.c (make_cursor_line_fully_visible_p): New variable.
13876         (syms_of_xdisp): DEFVAR_BOOL it.
13877         (make_cursor_line_fully_visible, try_cursor_movement)
13878         (try_window_id): Use it.
13880 2004-11-12  Kim F. Storm  <storm@cua.dk>
13882         * dispextern.h (struct glyph_row): New member extra_line_spacing.
13883         (struct it): New member max_extra_line_spacing.
13884         (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
13885         (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
13886         (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
13887         part of last line is only extra line spacing (so the text on the
13888         line is fully visible).  Use helper macros.
13889         Add W arg (to use them).  All callers changed.
13890         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
13891         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
13893         * window.c (window_scroll_pixel_based, Frecenter):
13894         Use move_it_vertically_backward directly.
13895         (Frecenter): Fix calculation of new start pos for negative arg.
13896         Before, the new start pos was sometimes chosen too far back, so
13897         the last line became only partially visible, and thus would be
13898         either only semi-visible or automatically scrolled to the middle
13899         of the window by redisplay.
13901         * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
13902         (move_it_vertically_backward): Don't recure to move further back.
13903         (move_it_vertically): Remove superfluous condition.
13904         (move_it_by_lines): Clear last_height when moved 0 lines.
13905         (resize_mini_window): Use it.max_extra_line_spacing.
13906         (display_tool_bar_line): Clear row->extra_line_spacing.
13907         (try_scrolling): Use move_it_vertically_backward directly.
13908         (redisplay_window): Likewise.
13909         (compute_line_metrics): Set row->extra_line_spacing.
13910         (display_line, display_string): Likewise.
13911         (x_produce_glyphs): Update it->max_extra_line_spacing.
13913         * xmenu.c (pop_down_menu): Return nil.
13915 2004-11-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13917         * xmenu.c (x_menu_wait_for_event): New function.
13918         (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
13919         to handle timers.
13920         (popup_widget_loop): Add argument do_timers.
13921         (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
13922         do_timers to popup_widget_loop.
13923         (xmenu_show): Call XMenuActivateSetWaitFunction so that
13924         x_menu_wait_for_event is called by XMenuActivate.
13925         (create_and_show_popup_menu): Pass 1 for do_timers to
13926         popup_get_selection.
13927         (pop_down_menu): New function.
13928         (popup_get_selection, popup_widget_loop): Unwind protect to
13929         pop_down_menu.
13930         (popup_widget_loop): Add argument widget.
13931         (create_and_show_popup_menu, create_and_show_dialog): Pass new
13932         argument widget to popup_widget_loop.
13934 2004-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
13936         * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
13938 2004-11-09  Kim F. Storm  <storm@cua.dk>
13940         * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
13941         Fix various comments referring to XEvents instead of input events.
13942         (x_queue_event): Fix format strings.
13943         (x_stop_queuing_selection_requests): Likewise.
13945         * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
13946         (pint2hrstr): Add extra braces to silence compiler.
13948         * print.c (print_object): Fix format string.
13950         * lread.c (read1): Fix next_char matching.
13952         * lisp.h (Fdelete): Add EXFUN.
13953         (replace_range_2): Add prototype.
13955         * keyboard.c (read_avail_input): Remove unused variable 'discard'.
13957         * intervals.h (NULL_INTERVAL_P): Add separate version when
13958         ENABLE_CHECKING is not defined to silence compiler.
13959         (compare_string_intervals): Add prototype.
13961         * fringe.c (destroy_fringe_bitmap): Fix return type.
13962         (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
13964         * emacs.c (Fdump_emacs): Fix format string.
13966         * doc.c: Include <ctype.h>.
13967         (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
13969         * data.c (store_symval_forwarding): Remove unused variables.
13971         * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
13973 2004-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13975         * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
13976         to ${OLDXMENU}.
13978 2004-11-09  Kim F. Storm  <storm@cua.dk>
13980         * process.c (Fmake_network_process): Remove kludge for interrupted
13981         connects on BSD.  If connect is interrupted, just close socket and
13982         start over rather than sleeping and retry with same socket.
13984 2004-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13986         * .cvsignore: Add buildobj.lst.
13988         * doc.c: New variable Vbuild_files.
13989         (Fsnarf_documentation): If Vbuild_files is nil, populate it with
13990         file names from buildobj.lst.  Only attach docstrings from files
13991         that are in Vbuild_files.
13992         (syms_of_doc): Defvar Vbuild_files.
13994         * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
13995         and w32*.o.
13996         (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
13997         (mostlyclean): Rm buildobj.lst
13999         * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
14000         is linked.
14002 2004-11-09  Kim F. Storm  <storm@cua.dk>
14004         * fringe.c (update_window_fringes): Update fringe bitmaps if
14005         cur and row ends_at_zv_p differs.  If bitmaps of a row is updated,
14006         also update previous row to get rid of misc. artifacts.
14008 2004-11-08  Kim F. Storm  <storm@cua.dk>
14010         * xdisp.c (fast_find_position): Fix start pos if header line present.
14011         (note_mouse_highlight): Clear mouse face if we move out of text area.
14013 2004-11-08  Eli Zaretskii  <eliz@gnu.org>
14015         * editfns.c: Move #include "systime.h" before <sys/resource.h>.
14016         Don't include <sys/time.h> explicitly.
14017         Include <stdio.h> unconditionally, not just on MacOS.
14019 2004-11-08  Kenichi Handa  <handa@m17n.org>
14021         * fontset.c (fontset_pattern_regexp): Cancel my previous change;
14022         don't pay attention to '\' before '*'.
14023         (fontset_pattern_regexp): Change the meaning of the second arg.
14024         (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
14025         (check_fontset_name): Try NAME as literal at first, and if it
14026         failes, try NAME as pattern.
14028 2004-11-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14030         * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
14032 2004-11-07  Andreas Schwab  <schwab@suse.de>
14034         * lisp.h (Fmsdos_downcase_filename): Declare.
14035         * dired.c (Fmsdos_downcase_filename): Don't declare here.
14036         * fileio.c: Likewise.
14038 2004-11-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14040         * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
14041         comparisons with integers instead of Lisp_Object address.
14042         (Fmsdos_set_keyboard): Declare argument allkeys.
14044         * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
14046         * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
14047         int/Lisp_Object mixup.
14049         * fileio.c: Ditto.
14051 2004-11-06  Steven Tamm  <steventamm@mac.com>
14053         * editfns.c: Need to include sys/time.h before resource.h on darwin.
14055 2004-11-06  Richard M. Stallman  <rms@gnu.org>
14057         * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
14059         * xfaces.c (merge_named_face): GCPRO the face_name in the
14060         named_merge_point struct that we make.
14061         (merge_face_heights): Eliminate GCPRO arg.  All callers changed.
14063         * keyboard.c (command_loop_1): Change Vtransient_mark_mode
14064         before deciding whether to inactivate mark.
14066 2004-11-06  Lars Brinkhoff  <lars@nocrew.org>
14068         * config.in: Regenerate (add HAVE_GETRUSAGE).
14069         * editfns.c (Fget_internal_run_time): New function.
14070         (syms_of_data): Defsubr it.
14071         * fns.c (sxhash): As far as possible, merge calculation of
14072         hash code for symbols and strings.
14074 2004-11-06  Eli Zaretskii  <eliz@gnu.org>
14076         * frame.c (syms_of_frame): Fix the example in the doc string.
14078 2004-11-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14080         * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
14082         * xmenu.c (popup_get_selection, create_and_show_popup_menu)
14083         (create_and_show_dialog): Revert change from 2004-10-31.
14085 2004-11-05  Luc Teirlinck  <teirllm@auburn.edu>
14087         * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
14089 2004-11-05  Kim F. Storm  <storm@cua.dk>
14091         * print.c (print_object): Print Lisp_Misc_Save_Value objects.
14093         * fileio.c (Ffile_modes): Doc fix.
14094         (auto_save_1): Check for Ffile_modes nil value.
14096 2004-11-05  Kim F. Storm  <storm@cua.dk>
14098         * xselect.c (struct selection_event_queue, selection_queue)
14099         (x_queue_selection_requests, x_queue_event)
14100         (x_start_queuing_selection_requests)
14101         (x_stop_queuing_selection_requests): Add new queue for selection
14102         input events to replace previous XEvent queue in xterm.c.
14103         (queue_selection_requests_unwind): Adapt to new queue.
14104         (x_reply_selection_request): Adapt to new queue.
14105         Unexpect wait_object in case of x errors (memory leak).
14106         (x_handle_selection_request, x_handle_selection_clear): Make static.
14107         (x_handle_selection_event): New function.  May queue selection events.
14108         (wait_for_property_change_unwind): Use save_value instead of cons.
14109         Clear property_change_reply_object.
14110         (wait_for_property_change): Abort if already waiting.
14111         Use save_value instead of cons for unwind data.
14112         (x_handle_property_notify): Skip events already arrived, but don't
14113         free them, as "arrived" field is checked by wait_for_property_change,
14114         and it will be freed by unwind or explicit unexpect_property_change.
14115         (x_get_foreign_selection): Add to new queue.
14116         (receive_incremental_selection): Don't unexpect wait_object when done
14117         as it has already been freed by previous wait_for_property_change.
14119         * xterm.h (x_start_queuing_selection_requests)
14120         (x_stop_queuing_selection_requests, x_handle_selection_request)
14121         (x_handle_selection_clear): Remove prototypes.
14122         (x_handle_selection_event): Add prototype.
14124         * xterm.c (handle_one_xevent): Don't queue X selection events
14125         here, it may be too late if we start queuing after we have already
14126         stored some selection events into the kbd buffer.
14127         (struct selection_event_queue, queue, x_queue_selection_requests)
14128         (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
14129         (x_stop_queuing_selection_requests): Remove/move to xselect.c.
14130         (x_catch_errors_unwind): Block input around final XSync.
14132         * keyboard.h (kbd_buffer_unget_event): Add prototype.
14134         * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
14135         (kbd_buffer_unget_event): New function.
14136         (kbd_buffer_get_event, swallow_events): Combine SELECTION events
14137         and use x_handle_selection_event.
14138         (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
14140 2004-11-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14142         * xselect.c (TRACE3): New debug macro.
14143         (x_reply_selection_request): Use it.
14144         (receive_incremental_selection): In call to TRACE0, the name of
14145         a symbol is in xname.
14147 2004-11-05  Kim F. Storm  <storm@cua.dk>
14149         * fontset.c (fontset_pattern_regexp): Use unsigned char.
14151 2004-11-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14153         * fileio.c (Fnext_read_file_uses_dialog_p): New function.
14155         * gtkutil.h (use_old_gtk_file_dialog): Declare.
14157         * gtkutil.c: Make use_old_gtk_file_dialog non-static.
14158         (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
14159         * xfns.c (syms_of_xfns): ... to here.
14161         * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
14162         it doesn't start with /.
14164 2004-11-04  Kenichi Handa  <handa@m17n.org>
14166         * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
14167         treat it as a literal character.
14169 2004-11-03  Kim F. Storm  <storm@cua.dk>
14171         * .gdbinit (ppt): New function.
14173 2004-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14175         * xterm.c (x_window_to_scroll_bar): Only call
14176         xg_get_scroll_id_for_window if toolkit scroll bars are used.
14178         * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
14179         of save.
14181 2004-11-02  Andreas Schwab  <schwab@suse.de>
14183         * window.c (Fscroll_right): Fix last change.
14185 2004-11-02  Kim F. Storm  <storm@cua.dk>
14187         * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
14189 2004-11-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14191         * callproc.c (Fcall_process): Block input around vfork.
14193 2004-11-02  Kim F. Storm  <storm@cua.dk>
14195         * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
14196         (syms_of_eval): Defsubr it.
14198 2004-11-02  Richard M. Stallman  <rms@gnu.org>
14200         * insdel.c (replace_range_2): New function.
14202         * casefiddle.c (casify_region): Handle changes in byte-length
14203         using replace_range_2.
14205         * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
14207         * xdisp.c (back_to_previous_visible_line_start):
14208         Subtract 1 from pos when checking previous newline for invisibility.
14210         * window.c (window_scroll_pixel_based): Update preserve_y
14211         for header line if any.
14212         (Fscroll_left, Fscroll_right): Don't call interactive_p;
14213         use a new second argument instead.
14215         * eval.c (Fcall_interactive_p): New function.
14216         (interactive_p): Don't test INTERACTIVE here.
14217         (Finteractive_p): Doc fix.
14219         * eval.c (Feval): Abort if INPUT_BLOCKED_P.
14221 2004-11-02  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
14223         * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
14224         comparing font names.
14226 2004-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14228         * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
14229         Fx_file_dialog if only directories should be read.
14231         * lisp.h: Fx_file_dialog takes 5 parameters.
14233         * xfns.c (Fx_file_dialog): Both Motif and GTK version:
14234         Add parameter only_dir_p.
14235         In Motif version, don't put DEFAULT_FILENAME in filter part of the
14236         dialog, just text field part.  Do not add DEFAULT_FILENAME
14237         to list of files if it isn't there.
14238         In GTK version, pass only_dir_p parameter to xg_get_file_name.
14240         * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
14241         Check only_dir_p instead of comparing prompt to "Dired".  When using
14242         a save dialog, add option kNavDontConfirmReplacement, change title
14243         to "Enter name", change text for save button to "Ok".
14245         * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
14246         Check only_dir_p instead of comparing prompt to "Dired".
14248         * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
14249         New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
14250         and HAVE_GTK_FILE_SELECTION_NEW respectively.
14251         (xg_get_file_name): Add parameter only_dir_p.
14252         Call xg_get_file_with_chooser or xg_get_file_with_selection
14253         depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
14254         (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
14256         * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
14258         * config.in: Rebuild (added HAVE_GTK_FILE_*).
14260 2004-11-01  Kim F. Storm  <storm@cua.dk>
14262         * process.c (connect_wait_mask, num_pending_connects):
14263         Only declare and use them if NON_BLOCKING_CONNECT is defined.
14264         (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
14265         (IF_NON_BLOCKING_CONNECT): New helper macro.
14266         (wait_reading_process_output): Only declare and use local vars
14267         Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
14269 2004-11-01  Andy Petrusenco  <Igrek@star-sw.com>  (tiny change)
14271         * w32term.c (x_scroll_run): Delete region objects after use.
14273 2004-10-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14275         * xmenu.c: Add prototypes for forward function declarations.
14276         (popup_get_selection): Remove parameter do_timers, remove call to
14277         timer_check.
14278         (create_and_show_popup_menu, create_and_show_dialog):
14279         Remove parameter do_timers from call to popup_get_selection.
14281         * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
14282         tool_bar_items and assign the result to f->tool_bar_items if
14283         not equal.  Move BLOCK/UNBLOCK_INPUT from around call to
14284         tool_bar_items to assignment of result.
14286         * atimer.c (alarm_signal_handler): Do not call set_alarm if
14287         pending_atimers is non-zero.
14289 2004-10-31  Kim F. Storm  <storm@cua.dk>
14291         * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
14293 2004-10-28  Will  <will@glozer.net>
14295         * macterm.c: Allow user to assign key modifiers to the Mac Option
14296         key via a 'mac-option-modifier' variable.
14298 2004-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
14300         * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
14301         Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
14302         (x_handle_selection_request, x_handle_selection_clear)
14303         (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
14305 2004-10-28  Richard M. Stallman  <rms@gnu.org>
14307         * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
14309         * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
14311 2004-10-27  Stefan Monnier  <monnier@iro.umontreal.ca>
14313         * syntax.c (scan_sexps_forward): Give precedence to a 2-char
14314         comment-starter over a 1-char one.
14316 2004-10-27  Richard M. Stallman  <rms@gnu.org>
14318         * xdisp.c (get_next_display_element): In mode lines,
14319         treat newline and tab like other control characters.
14321         * editfns.c (Fmessage): Doc fix.
14323         * indent.c (vmotion): When moving up, check the newline before.
14324         Make prevline an int, not a Lisp_Object.
14326 2004-10-27  Kim F. Storm  <storm@cua.dk>
14328         * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
14329         Only allocate info and discarded tables once.
14331         * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
14332         (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
14333         (SAFE_FREE): Test it to determine if we need to unwind to free.
14334         Remove size arg.  All users changed.
14335         (SAFE_FREE_LISP) Remove.  All users changed to use SAFE_FREE.
14337 2004-10-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14339         * gtkutil.c: Put empty line between comment and function body.
14340         (xg_destroy_widgets): Rename from remove_from_container.
14341         Just destroy all widgets in list.  Argument wcont removed.
14342         (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
14343         instead of remove_from_container.
14344         (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
14345         (free_frame_tool_bar): Add comment.
14347         * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
14348         is not NULL before strcmp.
14350 2004-10-26  Kim F. Storm  <storm@cua.dk>
14352         * callint.c (Fcall_interactively): Add 'U' code to get the
14353         up-event discarded by a previous 'k' or 'K' argument.
14355 2004-10-26  David Kastrup  <dak@gnu.org>
14357         * buffer.c (syms_of_buffer): Fix a few typos.
14359 2004-10-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14361         * xsmfns.c: Put empty line between comment and function body.
14362         Use two spaces before comment end.
14364 2004-10-25  Kenichi Handa  <handa@m17n.org>
14366         * fontset.c (fontset_pattern_regexp): Optimize for the case that
14367         PATTERN is full XLFD.
14369 2004-10-24  Kenichi Handa  <handa@m17n.org>
14371         * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
14373         * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
14374         (regex_compile): Return REG_ERANGEX if appropriate.
14376 2004-10-22  Kenichi Handa  <handa@m17n.org>
14378         * editfns.c (Ftranslate_region_internal): New function.
14379         (syms_of_editfns): Defsubr it.
14381 2004-10-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14383         * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
14385 2004-10-21  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <lorentey@elte.hu>
14387         * xterm.h (x_output): New member `xic_base_fontname'.
14388         (FRAME_XIC_BASE_FONTNAME): New macro.
14389         (xic_free_xfontset): Declare.
14391         * xfns.c (xic_create_xfontset): Share fontsets between frames
14392         based on base_fontname.
14393         (xic_free_xfontset): New function.
14394         (free_frame_xic): Use it.
14395         (xic_set_xfontset): Ditto.
14397         * xterm.c (xim_destroy_callback): Ditto.
14399 2004-10-20  B. Anyos  <banyos@freemail.hu>  (tiny change)
14401         * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
14403 2004-10-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14405         * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
14406         XSync.
14408         * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
14409         New variables and constant.
14410         (main): Calculate heap_bss_diff.  If we are dumping and the
14411         heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
14412         and exec ourself again.
14413         (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
14414         print a warning.
14416         * lastfile.c: Make my_endbss and my_endbss_static available on all
14417         platforms.
14419         * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
14420         * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
14422 2004-10-19  Luc Teirlinck  <teirllm@auburn.edu>
14424         * data.c (Flocal_variable_if_set_p): Doc fix.
14426 2004-10-19  Jason Rumney  <jasonr@gnu.org>
14428         * w32.c (init_environment): Set emacs_dir correctly when running
14429         emacs from the build directory.
14431 2004-10-19  Richard M. Stallman  <rms@gnu.org>
14433         * editfns.c (Fdelete_and_extract_region):
14434         If region is empty, return null string.
14436 2004-10-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14438         * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
14439         and canon_width.
14440         (xg_frame_cleared): Remove.
14442         * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
14443         (xg_find_top_left_in_fixed): Remove.
14444         (xg_create_scroll_bar): Put an event box widget between
14445         the scroll bar widget and the edit widget.
14446         (xg_show_scroll_bar): Show the parent widget (the event box).
14447         (xg_remove_scroll_bar): Destroy parent (the event box) also.
14448         (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
14449         Move the parent (the event box) widget inside the fixed widget.
14450         Move window clear to xterm.c.
14452         * gtkutil.h (xg_frame_cleared): Remove.
14454         * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
14455         (x_scroll_bar_create, XTset_vertical_scroll_bar):
14456         Remove arguments left and width to xg_update_scrollbar_pos.
14457         (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
14459 2004-10-19  Kenichi Handa  <handa@m17n.org>
14461         * xdisp.c (display_mode_element): Fix display of wide chars.
14463 2004-10-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14465         * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
14466         gdk_window_clear and move gdk_window_process_all_updates after
14467         clear so events are sent to the X server in correct order.
14469 2004-10-18  Kenichi Handa  <handa@m17n.org>
14471         * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
14472         comparing font names.
14473         (fs_query_fontset): Use fast_string_match for comparing fontset names.
14474         (list_fontsets): Likewise.
14476         * search.c (fast_string_match_ignore_case): New function.
14478         * lisp.h (fast_string_match_ignore_case): Extern it.
14480 2004-10-17  Kim F. Storm  <storm@cua.dk>
14482         * xdisp.c (overlay_arrow_at_row): Return overlay string rather
14483         than bitmap if there is not left fringe.
14484         (get_overlay_arrow_glyph_row): Also used on windows system.
14485         (display_line): Display overlay string if no left fringe.
14487 2004-10-16  Jason Rumney  <jasonr@gnu.org>
14489         * w32fns.c (w32_font_match): Encode font name being matched.
14491 2004-10-16  Richard M. Stallman  <rms@gnu.org>
14493         * window.c (Fspecial_display_p): Doc fix.
14495 2004-10-15  Stefan Monnier  <monnier@iro.umontreal.ca>
14497         * doc.c (Fsubstitute_command_keys): Fix remap-handling.
14498         Don't ignore menus, because where-is-internal already does it for us.
14500 2004-10-15  Kim F. Storm  <storm@cua.dk>
14502         * xdisp.c (redisplay_window): Only update fringes and vertical
14503         border on window frames.
14505 2004-10-14  Andreas Schwab  <schwab@suse.de>
14507         * m/ia64.h (DATA_SEG_BITS): Don't define.
14509 2004-10-14  Kim F. Storm  <storm@cua.dk>
14511         * xterm.h: Include Xutil.h after keysym.h to work around bug
14512         in some X versions.
14514 2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>
14516         * fns.c (map_char_table): Add missing gcpros.
14518 2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>
14520         * keymap.c (get_keymap): An autoload form is not a keymap.
14522         * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
14524 2004-10-13  Kim F. Storm  <storm@cua.dk>
14526         * callproc.c (Fcall_process): Simplify handling of display arg.
14527         Resume `display_on_the_fly' once a coding system is determined.
14529         * xdisp.c (redisplay_preserve_echo_area): Fix last change.
14531 2004-10-12  Kim F. Storm  <storm@cua.dk>
14533         * xdisp.c (redisplay_preserve_echo_area): Flush display in case
14534         caller, such as call-process, is not going to poll for input.
14535         (calc_line_height_property): Handle case where it->object is nil.
14537         * xterm.c (x_redisplay_interface): Fix flush_display_optional.
14539 2004-10-12  Kenichi Handa  <handa@m17n.org>
14541         * xdisp.c (get_next_display_element):
14542         If unibyte_display_via_language_environment is zero, display 8-bit
14543         chars in octal in unibyte buffer.
14545 2004-10-12  Kim F. Storm  <storm@cua.dk>
14547         * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
14548         are no ordinary bindings.
14550 2004-10-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14552         * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
14554 2004-10-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14556         * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
14557         (x_lower_frame): Add BLOCK_INPUT around SendBehind.
14558         (make_mac_frame): Add BLOCK_INPUT around the making of a
14559         terminal frame.
14560         (mac_initialize): Add BLOCK_INPUT around carbon initialization.
14561         * macgui.h (mktime): Use emacs_mktime.
14562         * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
14563         Make a cancel file-open dialog be like C-g.
14564         * mac.c (mktime): Use emacs_mktime.
14565         (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
14566         (Fmac_paste_function): Add better error handling for carbon cut/paste.
14568 2004-10-10  Kim F. Storm  <storm@cua.dk>
14570         * keyboard.c (timer_resume_idle): New function to resume idle
14571         timer without resetting timers on the idle list.
14572         (read_char): Use timer_resume_idle.  Remove local var last_idle_start.
14573         (timer_start_idle, timer_stop_idle): Declare static.
14574         (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
14576         * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
14578 2004-10-08  Steven Tamm  <steventamm@mac.com>
14580         * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
14581         * macterm.c (mac_check_for_quit_char): Remove warning for using
14582         NULL where 0 should be used.
14583         * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
14584         objc/malloc.h
14585         * mac.c: Include time.h for Tiger compatibility.
14587 2004-10-07  Kim F. Storm  <storm@cua.dk>
14589         * xdisp.c (redisplay_window): Fix flicker on vertical line between
14590         windows.  Update vertical line after drawing window fringes, but
14591         only if actually drawing any bitmaps--or there is no fringe.
14593         * xterm.c (x_update_window_end): Likewise.
14594         * macterm.c (x_update_window_end): Likewise.
14595         * w32term.c (x_update_window_end): Likewise.
14597         * fringe.c (draw_window_fringes): Return value now indicates if
14598         any fringe bitmaps were redrawn (or there are no fringes).
14600         * dispextern.h (draw_window_fringes): Update prototype.
14602 2004-10-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14604         * macfns.c (mac_get_window_bounds): Add extern.
14605         (x_real_positions): Use mac_get_window_bounds.
14607         * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
14608         xmenu.c (YAILOM).
14610         * macterm.c [!MAC_OSX]: Include Windows.h.
14611         (front_emacs_window): Rename from mac_front_window.  All uses
14612         changed.  Return the frontmost non-tooltip emacs window.
14613         (mac_get_window_bounds): New function.
14614         (x_calc_absolute_position): Use the difference of width and height
14615         between the inner and outer window.
14616         (x_set_offset): Specify window position by the coordinae of the
14617         outer window.  Adjust the position if the title bar is completely
14618         outside the screen.
14619         (app_is_suspended, app_sleep_time): Remove unused variables.
14620         (do_app_resume, do_app_suspend): Remove their contents because
14621         window-activate/deactivate events will do the job.
14622         (do_zoom_window): Remove unused variables.  Make compliant to the
14623         standard way of zooming.  Set f->left_pos and f->top_pos.
14624         (XTread_socket): Don't use argument `expected'.  Don't use
14625         FrontWindow to determine the clicked window.  Exclude unprocessed
14626         mouseUp cases in the early stage.  Add parentheses to fix operator
14627         precedence.
14628         (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
14630 2004-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14632         * config.in: Regenerate.
14634         * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
14635         HAVE_EXECSHIELD.
14637 2004-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14639         * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
14640         a row if Alt or Meta has been found for that row.  Also stop scanning
14641         for Keysyms for that row.
14643 2004-10-04  Kim F. Storm  <storm@cua.dk>
14645         * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
14646         to list.  Include overlay arrow bitmap in return value.
14648         * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
14649         bars with fractional column width.  If scroll bar separates two
14650         windows, move it towards the window it belongs to.  Only update
14651         the padding area below the scroll bar widget when necessary,
14652         i.e. when scroll bar widget is created, moved, or resized.
14654         * xdisp.c (define_frame_cursor1): Do not change frame cursor
14655         while tracking/dragging mouse.
14656         (x_draw_vertical_border): Do not draw line if frame has scroll bars.
14658         * window.c (coordinates_in_window): Relax check for cursor
14659         on vertial border between mode lines.
14660         (Fset_window_fringes): Do not allow negative widths.
14661         (Fset_window_scroll_bars): Likewise.
14663         * .gdbinit (pp): Shorthand for p ARG + pr.
14664         (ff): New command: flush frame updates (X only).
14666 2004-10-03  Michael Albinus  <michael.albinus@gmx.de>
14668         * fileio.c (auto_save_1) Call Ffile_modes for remote files.
14670 2004-09-30  Kenichi Handa  <handa@m17n.org>
14672         * process.c (send_process): Free composition data.
14674         * fileio.c (Finsert_file_contents): Free composition data.
14676         * coding.c (code_convert_region): Don't skip ASCIIs if there are
14677         compositions to encode.
14678         (encode_coding_string): Likewise.  Free composition data.
14680 2004-09-30  Florian Weimer  <fw@deneb.enyo.de>
14682         * coding.c (code_convert_region): Free composition data.
14684 2004-09-29  Kim F. Storm  <storm@cua.dk>
14686         * fringe.c: Remove limit on number of bitmaps.
14687         (fringe_bitmaps, fringe_faces): Change to pointers.
14688         (max_fringe_bitmaps): New var.
14689         (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
14690         (init_fringe): Allocate fringe_bitmaps and fringe_faces.
14692         * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
14693         (struct glyph_row): Reorder fringe_bitmap related fields.
14694         (struct it): Likewise.
14696         * w32term.c (fringe_bmp): Change to pointer.
14697         (max_fringe_bmp): New var.
14698         (w32_define_fringe_bitmap): Expand fringe_bmp.
14699         (w32_draw_fringe_bitmap): Check max_fringe_bmp.
14700         (w32_destroy_fringe_bitmap): Likewise.
14702 2004-09-29  Kim F. Storm  <storm@cua.dk>
14704         * fringe.c: Simplify last change.
14705         (lookup_fringe_bitmap): New function.
14706         (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
14707         (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
14708         Keep standard bitmaps in Vfringe_bitmaps.
14709         (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
14710         (Fset_fringe_bitmap_face): Likewise.
14712         * dispextern.h (lookup_fringe_bitmap): Add prototype.
14713         (valid_fringe_bitmap_p): Remove prototype.
14715         * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
14717 2004-09-29  Kim F. Storm  <storm@cua.dk>
14719         * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
14720         (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
14722         * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
14724         * fringe.c (Vfringe_bitmaps): New variable.
14725         (syms_of_fringe): DEFVAR_LISP it.
14726         (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
14727         Change arg to Lisp_Object and fail if not an integer.
14728         (get_fringe_bitmap_name, resolve_fringe_bitmap)
14729         (destroy_fringe_bitmap): New functions.
14730         (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
14731         Use destroy_fringe_bitmap.  Remove symbol from Vfringe_bitmaps and
14732         clear its fringe property.
14733         (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
14734         Fdestroy_fringe_bitmap.
14735         (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
14736         bitmap symbol; remove WHICH arg.  Add symbol to Vfringe_bitmaps
14737         and set fringe property.  Signal error if no free slots.
14738         (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
14739         (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
14741         * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
14742         symbols with a fringe property.
14744 2004-09-27  Kim F. Storm  <storm@cua.dk>
14746         * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
14747         Doc fix.  Format may now be a symbol or alist, not a cons.
14749         * fringe.c (update_window_fringes): Handle new formats of
14750         indicate-buffer-boundaries (symbol or alist).  No longer
14751         allow a simple cons.
14752         (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
14754 2004-09-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14756         * config.in: Rebuild.
14758 2004-09-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14760         * config.in: Rebuild.
14762         * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
14764 2004-09-18  Stefan Monnier  <monnier@iro.umontreal.ca>
14766         * xterm.c (x_term_init): Work around a bug in some X servers.
14768 2004-09-18  Richard M. Stallman  <rms@gnu.org>
14770         * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
14772         * xdisp.c (try_window_reusing_current_matrix):
14773         Handle the case where we reach the old displayed text,
14774         out of sync with the old line boundary.
14776 2004-09-14  Stefan Monnier  <monnier@iro.umontreal.ca>
14778         * fileio.c (Finsert_file_contents): Fix case of replacement in a
14779         narrowed buffer.
14781 2004-09-14  Kim F. Storm  <storm@cua.dk>
14783         * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
14785         * xfaces.c (Qface_no_inherit): New var.
14786         (syms_of_xfaces): Intern and staticpro it.
14787         (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
14788         (Finternal_copy_lisp_face, update_face_from_frame_parameter):
14789         Don't increment face_change_count when face has non-nil
14790         face-no-inherit property.
14792 2004-09-13  Stefan Monnier  <monnier@iro.umontreal.ca>
14794         * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
14795         (Fbyte_code): Remove dead code after `wrong_type_argument'.
14797         * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
14798         before doing the mark_stack_check_gcpros since they're not on the stack.
14800 2004-09-12  Kim F. Storm  <storm@cua.dk>
14802         * editfns.c (Fformat): Handle format strings with multiple text
14803         properties.  Reverse text property list from the format string,
14804         so the positions are in increasing order.
14806 2004-09-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14808         * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
14809         x_uncatch_errors so that possible protocol errors are delivered.
14811 2004-09-10  Eli Zaretskii  <eliz@gnu.org>
14813         * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
14814         blockinput.h.
14815         (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
14816         charset.h, and coding.h
14817         (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
14818         (term.o): Depend on window.h and keymap.h.
14819         (abbrev.o): Depend on syntax.h.
14820         (callint.o): Depend on keymap.h.
14821         (casefiddle.o): Depend on charset.h and keymap.h.
14822         (category.o): Depend on keymap.h.
14823         (coding.o): Depend on dispextern.h.
14824         (cmds.o): Depend on keyboard.h and keymap.h.
14825         (dispnew.o): Depend on indent.h and intervals.h.
14826         (doc.o): Depend on keymap.h.
14827         (editfns.o): Depend on frame.h.
14828         (emacs.o): Depend on dispextern.h.
14829         (fileio.o): Don't depend on ccl.h.
14830         (filelock.o): Depend on charset.h and coding.h.
14831         (frame.o): Depend on w32term.h and macterm.h.
14832         (insdel.o): Depend on region-cache.h.
14833         (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
14834         (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
14835         (search.o): Depend on $(INTERVALS_SRC).
14836         (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
14837         (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
14838         xterm.h, w32term.h, and macterm.h.
14839         (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
14840         w32term.h, and macterm.h.
14841         (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
14842         region-cache.h, xterm.h, w32term.h, and macterm.h.
14843         (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
14844         (data.o): Depend on frame.h.
14845         (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
14846         (print.o): Depend on termchar.h and $(INTERVALS_SRC).
14847         (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
14848         (intervals.o): Depend on keymap.h.
14850         * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
14851         Add debugging print-out to termscript.
14853 2004-09-09  Richard M. Stallman  <rms@gnu.org>
14855         * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
14857 2004-09-08  Richard M. Stallman  <rms@gnu.org>
14859         * window.c (Fset_window_buffer): Doc fix.
14861         * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
14863 2004-09-08  Dan Nicolaescu  <dann@ics.uci.edu>
14865         * minibuf.c (history_delete_duplicates): New variable.
14866         (read_minibuf): Use it.
14867         (syms_of_minibuf): Create the corresponding lisp variable.
14869 2004-09-08  Kim F. Storm  <storm@cua.dk>
14871         * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
14872         overlay just before point.
14874 2004-09-07  Luc Teirlinck  <teirllm@auburn.edu>
14876         * buffer.h (struct buffer): Add auto_save_file_format field.
14877         * buffer.c (reset_buffer, init_buffer_once):
14878         Handle auto_save_file_format field.
14879         (syms_of_buffer): Add DEFVAR_PER_BUFFER for
14880         `buffer-auto-save-file-format'.
14881         * fileio.c: Delete declaration for removed Vauto_save_file_format.
14882         (build_annotations): Adapt to replacement of
14883         `auto-save-file-format' with the new buffer-local variable
14884         `buffer-auto-save-file-format'.
14885         (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
14887 2004-09-07  Jason Rumney  <jasonr@gnu.org>
14889         * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
14891         * w32fns.c (w32_wnd_proc) <WM_MEASUREITEM, WM_DRAWITEM>:
14892         Handle Unicode menu titles.
14894 2004-09-07  Kim F. Storm  <storm@cua.dk>
14896         * xdisp.c (set_cursor_from_row): Fix last change.  Only use 'cursor'
14897         property from text property or overlay strings at point.
14899 2004-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
14901         * xmenu.c (update_submenu_strings): YAILOM.
14902         (set_frame_menubar): Make sure last_i is initialized.
14904 2004-09-03  Jason Rumney  <jasonr@gnu.org>
14906         * w32menu.c (_widget_value): Add lname and lkey.
14907         (digest_single_submenu): Set lname and lkey in widget_value
14908         instead of name and key.
14909         (update_submenu_strings): New function.
14910         (set_frame_menubar): Remove call to inhibit_garbage_collection,
14911         call update_submenu_strings.
14913         * w32menu.c (globals_of_w32menu): Check for Unicode API.
14914         (digest_single_submenu, w32_menu_show): Encode menu strings as
14915         UTF-8 if Unicode API is available.
14916         (utf8to16): New function.
14917         (add_menu_item): Use it when calling Unicode API.
14919 2004-09-03  Kim F. Storm  <storm@cua.dk>
14921         * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
14922         in overlay or text-property strings; set cursor on corresponding
14923         glyph rather than at end of the string.
14925 2004-09-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14927         * macfns.c (x_real_positions): Save the current window port and
14928         set a new one before obtaining the global coordinate.
14929         Use FRAME_MAC_WINDOW.
14930         (x_set_name, x_set_title): Encode title to UTF8.
14931         Use SetWindowTitleWithCFString.
14932         (Fx_server_version): Get correct OS version.
14934         * macmenu.c (add_menu_item): Remove unused variable `i'.
14935         Don't let separator items destroy refence constants of other menu items.
14937         * macterm.c (x_update_end): Move SetPortWindowPort to inside
14938         BLOCK_INPUT.
14939         (x_set_offset): Use FRAME_MAC_WINDOW.
14941         * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
14942         nontext_cursor if it is on a scroll bar.
14944         * s/darwin.h (LIBS_CARBON): New define to specify libraries for
14945         Carbon support.
14946         (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
14947         Use LIBS_CARBON.
14949 2004-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14951         * xfns.c (x_set_name_internal): New function.  Check if we shall call
14952         xfree before ENCODE_UTF_8.
14953         (x_set_name, x_set_title): Call x_set_name_internal.
14955 2004-08-31  NAKAMURA Toshikazu  <nr-tkz@nifty.com>  (tiny change)
14957         * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
14958         reload it.
14960 2004-08-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14962         * macmenu.c (_widget_value): Add lname and lkey.
14963         (single_submenu): Set lname and lkey in widget_value
14964         instead of name and key.
14965         (update_submenu_strings): New function.
14966         (set_frame_menubar): Remove call to inhibit_garbage_collection,
14967         call update_submenu_strings.
14969         * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
14970         instead of name and key.
14971         (update_submenu_strings): New function.
14972         (set_frame_menubar): Remove call to inhibit_garbage_collection,
14973         call update_submenu_strings.
14975         * gtkutil.h (_widget_value): Added lname and lkey.
14977 2004-08-30  Steven Tamm  <steventamm@mac.com>
14979         * macmenu.c (mac_menu_show): Remove shadowing of menu variable
14980         by using different names for inner loop variables.
14982 2004-08-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14984         * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
14985         from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
14987         * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
14988         tool bar items is 0.
14990 2004-08-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14992         * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
14993         strings in menu items.
14994         (single_submenu): Use ENCODE_MENU_STRING
14995         (mac_menu_show): Use ENCODE_MENU_STRING.  Reset grabbed because
14996         button release isn't passed to event loop
14997         (add_menu_item): Use SetMenuItemWithCFString
14999 2004-08-26  Steven Tamm  <steventamm@mac.com>
15001         * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
15002         tool-bar/menu click.
15003         * macfns.c (Fx_file_dialog): Implement using NavServices.
15005 2004-08-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15007         * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
15009         * xfns.c (x_window_to_frame, x_any_window_to_frame)
15010         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
15011         (x_top_window_to_frame): Return 0 if wdesc is None.
15013 2004-08-22  Richard M. Stallman  <rms@gnu.org>
15015         * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
15016         HAVE_TERMIOS]: If there's no char for this signal, drop through
15017         and use system calls.
15019         * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
15021 2004-08-20  Kim F. Storm  <storm@cua.dk>
15023         * process.c (wait_reading_process_output): Rename from
15024         wait_reading_process_input.  All uses changed.
15025         (wait_reading_process_output_1): Rename from
15026         wait_reading_process_input_1.  All uses changed.
15028         * dispnew.c (Fsleep_for): Remove obsolete code.
15030 2004-08-20  Kenichi Handa  <handa@m17n.org>
15032         * syntax.c (skip_chars): Fix for unibyte case.
15034 2004-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
15036         * syntax.c (char_quoted): Mixup byte/char pos.
15037         (back_comment): Fixup globals in all cases.
15039 2004-08-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15041         * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
15042         passing it to gtk_window_set_title.
15044 2004-08-19  Kim F. Storm  <storm@cua.dk>
15046         * process.c (wait_reading_process_input): Clean up.
15047         Add wait_for_cell, wait_proc, and just_wait_proc args
15048         to avoid overloading `read_kbd' and `do_display' args.
15049         Change read_kbd arg to int.  All callers changed.
15051         * process.c (process_send_signal): Use CDISABLE.
15053         * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
15055 2004-08-18  Kim F. Storm  <storm@cua.dk>
15057         * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
15058         forward to wait_reading_process_input via DO_DISPLAY arg.
15059         (wait_reading_process_input): If DO_DISPLAY < 0 for a process
15060         object, only process output from that process; also inhibit
15061         running timers if DO_DISPLAY==-2.
15063 2004-08-17  Kim F. Storm  <storm@cua.dk>
15065         * process.c (process_send_signal): Fix last change--use
15066         _POSIX_VDISABLE instead of CVDISABLE when available.
15068 2004-08-16  Richard M. Stallman  <rms@gnu.org>
15070         * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
15071         Set VQUIT and VINTR chars to the standard ones if they are unset.
15072         [AIX]: Don't do that here.  And don't force VINTR to standard
15073         when SIGNALS_VIA_CHARACTERS.
15075         * process.c (process_send_signal)
15076         [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
15077         Do nothing if the character is CVDISABLE.
15079         * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
15081         * intervals.c (move_if_not_intangible):
15082         Force POSITION to be between BEGV and ZV.
15084 2004-08-14  John Paul Wallington  <jpw@gnu.org>
15086         * buffer.c (Frestore_buffer_modified_p): Doc fix.
15088         * fileio.c (Fread_file_name): Doc fix.
15090         * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
15092 2004-08-09  Luc Teirlinck  <teirllm@auburn.edu>
15094         * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
15096 2004-08-08  Luc Teirlinck  <teirllm@auburn.edu>
15098         * keyboard.c: Declare Qdisabled_command_function instead of
15099         Qdisabled_command_hook.
15100         (Fcommand_execute): Use Qdisabled_command_function instead of
15101         Qdisabled_command_hook.
15102         (syms_of_keyboard): Ditto.
15104 2004-08-07  Luc Teirlinck  <teirllm@auburn.edu>
15106         * keymap.c (Flocal_key_binding, Fglobal_key_binding)
15107         (syms_of_keymap) <key-translation-map>: Doc fixes.
15109 2004-08-07  Stefan Monnier  <monnier@iro.umontreal.ca>
15111         * window.c (window_list_1): YAILOM.
15113         * fileio.c (make_temp_name): Handle multibyte prefixes.
15115 2004-08-06  Luc Teirlinck  <teirllm@auburn.edu>
15117         * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
15118         Doc fix.
15120 2004-08-03  Kenichi Handa  <handa@m17n.org>
15122         * coding.c (decode_coding_string): Adjust coding->consumed, and
15123         etc. with shrinked_bytes.
15125 2004-08-03  Kim F. Storm  <storm@cua.dk>
15127         * indent.c (compute_motion): Fix check for full width window
15128         in non-window case.  Do not count left truncation glyph on
15129         window systems.
15131 2004-08-02  Luc Teirlinck  <teirllm@auburn.edu>
15133         * data.c (Finteractive_form): Doc fix.
15135 2004-08-02  Kim F. Storm  <storm@cua.dk>
15137         * indent.c (compute_motion): Use actual window width if WIDTH is -1,
15138         properly accounting for continuation glyph on non-window systems.
15139         (Fcompute_motion): Use actual window width if WIDTH is nil, and
15140         actual window width/height if TOPOS is nil, properly accounting for
15141         continuation glyphs on non-window systems, and optional header lines.
15142         (vmotion): Let compute_motion calculate actual window width.
15144         * window.c (window_scroll_line_based): Let compute_motion
15145         calculate actual window width.
15147 2004-08-02  Kim F. Storm  <storm@cua.dk>
15149         * process.c (read_process_output): Use whole read buffer.
15150         Don't trigger adaptive read buffering on errors.
15152 2004-07-31  Luc Teirlinck  <teirllm@auburn.edu>
15154         * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
15156         * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
15158         * callint.c (Fcall_interactively): Doc fix.
15160 2004-07-30  Richard M. Stallman  <rms@gnu.org>
15162         * abbrev.c (Fexpand_abbrev): Undo previous change.
15164 2004-07-30  Kim F. Storm  <storm@cua.dk>
15166         * editfns.c (Fformat): Allocate extra (dummy) element in info.
15168 2004-07-28  Luc Teirlinck  <teirllm@auburn.edu>
15170         * eval.c (Fdefvar, Fdefconst): Doc fixes.
15172 2004-07-27  Kim F. Storm  <storm@cua.dk>
15174         * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
15175         we have ensured that the glyph fits on the current line (or returned
15176         MOVE_LINE_CONTINUED otherwise).
15178 2004-07-26  Kim F. Storm  <storm@cua.dk>
15180         * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
15181         is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
15182         if target position is at end of display line but char is not a newline.
15184 2004-07-25  Richard M. Stallman  <rms@gnu.org>
15186         * window.c (coordinates_in_window): Return ON_SCROLL_BAR
15187         instead of ON_VERTICAL_BORDER, when on scroll bar.
15188         (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
15190         * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
15192         * window.c (Fcoordinates_in_window_p):
15193         Take account of FRAME_INTERNAL_BORDER_WIDTH.
15195         * alloc.c (check_cons_list): New function (contents commented out).
15197 2004-07-24  Luc Teirlinck  <teirllm@auburn.edu>
15199         * xfaces.c (Fcolor_supported_p): Doc fix.
15201         * frame.c (Fselect_frame, Fset_frame_selected_window)
15202         (Fframe_visible_p, Fraise_frame): Doc fixes.
15204 2004-07-24  Richard M. Stallman  <rms@gnu.org>
15206         * keyboard.h (not_single_kboard_state): Declare.
15208         * fileio.c (Fwrite_region): Doc fix.
15210         * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
15212         * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
15213         only when a real abbrev is present.
15215         * xfns.c (x_icon_verify): New function.
15216         (Fx_create_frame): Use it.
15218 2004-07-22  Barry Fishman  <barry_fishman@att.net>  (tiny change)
15220         * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
15222 2004-07-21  Kim F. Storm  <storm@cua.dk>
15224         * window.h (struct glyph_matrix): New members nrows_scale_factor
15225         and ncols_scale_factor.
15227         * window.c (make_window): Initialize nrows_scale_factor and
15228         ncols_scale_factor members.
15230         * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
15231         (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
15232         (required_matrix_height): Apply nrows_scale_factor.
15233         (required_matrix_width): Apply ncols_scale_factor.
15235         * xdisp.c (display_line): Increment nrows_scale_factor and set
15236         fonts_changed_p if past last allocated row.
15237         (append_glyph, append_composite_glyph, produce_image_glyph)
15238         (append_stretch_glyph): Increment ncols_scale_factor and set
15239         fonts_changed_p if current area is full.
15241 2004-07-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15243         * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
15245 2004-07-19  Luc Teirlinck  <teirllm@auburn.edu>
15247         * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
15248         (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
15249         (Fset_window_start, Fscroll_up, Fscroll_down)
15250         (Fother_window_for_scrolling, Fscroll_other_window)
15251         (Fsave_window_excursion, Fset_window_vscroll)
15252         (syms_of_window) <window-size-fixed>: Doc fixes.
15254 2004-07-19  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
15256         * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
15257         ENCODE_SYSTEM for filenames.
15259 2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15261         * mac.c (sys_select): Block input around call to
15262         ReceiveNextEvent to prevent breakage.  Correctly handle
15263         blocking on event queue only by calling ReceiveNextEvent
15264         instead of select (since GUI events aren't on an fd).
15265         (sys_read): Remove function
15266         * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
15268 2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15270         * mac.c (sys_select): Redo sys_select to use alarm-based
15271         polling instead of 1 sec timeouts (like solaris).
15273         * macterm.c (x_make_frame_visible): Comment in polling on
15274         frame creation.
15276         * keyboard.c: Undef SIGIO on Carbon
15278         * atimer.c (alarm_signal_handler): Call alarm handlers after
15279         scheduling.
15281         * eval.c (Feval): Remove quit_char test
15283         * process.c (wait_reading_process_input): Remove clearing
15284         stdin for select call on process input.
15286 2004-07-18  Luc Teirlinck  <teirllm@auburn.edu>
15288         * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
15289         capitalization error in docstring.
15291 2004-07-17  Juanma Barranquero  <lektu@terra.es>
15293         * keyboard.c (not_single_kboard_state): Do nothing unless
15294         MULTI_KBOARD is defined.
15296 2004-07-17  Richard M. Stallman  <rms@gnu.org>
15298         * window.c (coordinates_in_window): Inside the window but outside
15299         its box to the L or R, return ON_VERTICAL_BORDER.
15300         (window_list_1): Rotate the list to start with WINDOW.
15302         * print.c (print_preprocess): Test for print_depth at limit
15303         before entering in being_printed.
15305         * keyboard.c (not_single_kboard_state): New function.
15306         (stuff_buffered_input): Now no-op only if no SIGTSTP.
15308         * frame.c (Fdelete_frame): If we're in single_bboard_state on
15309         this kboard, and we delete its last frame, go to any_kboard_state.
15311         * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
15313 2004-07-15  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
15315         * w32fns.c (Fx_file_dialog): Encode strings in system coding
15316         system before passing them to OS functions for display.
15318 2004-07-15  David Kastrup  <dak@gnu.org>
15320         * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
15321         Apparently fixes an abort condition.
15323 2004-07-14  Luc Teirlinck  <teirllm@auburn.edu>
15325         * fileio.c (Fvisited_file_modtime): Return a list of two integers,
15326         instead of a cons.
15328 2004-07-14  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <lorentey@elte.hu>
15330         * keyboard.c (echo_dash): Do nothing if there already is a dash
15331         at the end of the echo string.
15333 2004-07-12  Kim F. Storm  <storm@cua.dk>
15335         * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
15336         if GC_MARK_STACK.
15338 2004-07-10  Luc Teirlinck  <teirllm@auburn.edu>
15340         * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
15342         * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
15343         (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
15344         (Freplace_buffer_in_windows, Fset_window_buffer)
15345         (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
15346         (syms_of_window): Expand docstring of `display-buffer-function'.
15348 2004-07-09  Luc Teirlinck  <teirllm@auburn.edu>
15350         * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
15351         (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
15352         that time values of the type (HIGH . LOW) are considered obsolete.
15354 2004-07-06  Luc Teirlinck  <teirllm@auburn.edu>
15356         * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
15357         docstring.
15359         * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
15361 2004-07-06  John Paul Wallington  <jpw@gnu.org>
15363         * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
15365         * fns.c (Fclear_string): Signal an error if STRING is not a string.
15367 2004-07-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15369         * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
15370         instead of CGMainDisplayID (only in OSX 10.2 and later).
15372 2004-07-04  John Paul Wallington  <jpw@gnu.org>
15374         * fileio.c (read_file_name_completion_ignore_case): New variable.
15375         (syms_of_fileio): Declare and initialise it.
15376         (Fread_file_name): Bind `completion-ignore-case' to respect it.
15378 2004-07-03  Eli Zaretskii  <eliz@gnu.org>
15380         * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
15381         for event.x and event.y.
15383 2004-07-01  Kenichi Handa  <handa@m17n.org>
15385         * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
15386         after getting a new string by pre-write-conversion.
15388 2004-06-30  Stefan Monnier  <monnier@iro.umontreal.ca>
15390         * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
15391         (x_calc_absolute_position): Remove unused var `child'.
15393         * xfaces.c (x_supports_face_attributes_p)
15394         (Fdisplay_supports_face_attributes_p): YAILOM.
15395         (tty_supports_face_attributes_p): Remove unused var `i'.
15397         * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
15398         back_unibyte_ok.
15400         * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
15402         * fontset.c (Fset_fontset_font): Remove unused vars `family' and
15403         `registry'.
15405         * Makefile.in (${etc}DOC): Fix file name of make-docfile.
15407 2004-06-30  Andreas Schwab  <schwab@suse.de>
15409         * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
15410         (Finit_image_library): Pass LIBRARIES through to
15411         CHECK_LIB_AVAILABLE.  Declare parameters.  Doc fix.
15412         (lookup_image_type): Pass Qnil as second argument to
15413         Finit_image_library.
15415         * lisp.h (Finit_image_library): Declare.
15417 2004-06-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15419         * macterm.c (do_window_activate, do_window_deactivate): Remove.
15420         (XTread_socket): Send mouse button events to the toolbox
15421         dispatcher even when the mouse is grabbed.  Don't process window
15422         activate events for non-Emacs windows.  Replace function calls to
15423         do_window_activate and do_window_deactivate with their contents.
15424         Reset mouse grabbing status when a window is deactivated.
15426 2004-06-29  Steven Tamm  <steventamm@mac.com>
15428         * macterm.c (mac_get_emulated_btn)
15429         (mac_event_to_emacs_modifiers): Fix emulated mouse button
15430         support to correctly mask out modifiers.
15432 2004-06-29  David Kastrup  <dak@gnu.org>
15434         * search.c (Fset_match_data): Allow buffer before end of list
15435         which can happen if set-match-data is using a pre-consed list.
15437 2004-06-28  Steven Tamm  <steventamm@mac.com>
15439         * macterm.c (XTread_socket): Correctly set the frame position
15440         after the window is moved.
15442 2004-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15444         * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
15445         gpix and gmask just before return to avoid memory leak.
15446         (xg_get_image_for_pixmap): Add workaround for monochrome displays
15447         so insensitive and activated icons look ok.
15449 2004-06-27  Jason Rumney  <jasonr@gnu.org>
15451         * w32fns.c (file_dialog_callback): Disable edit control if set
15452         to directories only on CDN_INITDONE message.
15453         (Fx_file_dialog): Default to directories only when prompt starts
15454         with "Dired".
15456 2004-06-25  Kim F. Storm  <storm@cua.dk>
15458         * alloc.c (allocate_misc): Update total_free_markers.
15459         (free_misc): New function.
15460         (safe_alloca_unwind, free_marker): Use it.
15462         * lisp.h (free_misc): Add prototype.
15464         * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
15466 2004-06-24  Richard M. Stallman  <rms@gnu.org>
15468         * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
15469         (syms_of_emacs): Lisp variables deleted.
15471 2004-06-23  David Kastrup  <dak@gnu.org>
15473         * search.c (Freplace_match): Adjust the match-data more thoroughly
15474         when replacing strings in the buffer.
15475         (Fmatch_data): When INTEGERS is non-nil and the last match was in
15476         a buffer, add the buffer as last element to the match data.
15477         (Fset_match_data): If an additional element of the match-data is a
15478         buffer, restore it to last_thing_searched.
15479         (save_search_regs): Save last_thing_searched as part of the match data.
15480         (restore_match_data): Restore it again.
15482 2004-06-23  Luc Teirlinck  <teirllm@auburn.edu>
15484         * keymap.c (Ftext_char_description): Doc fix.
15485         * doc.c (Fsnarf_documentation): Doc fix.
15487 2004-06-22  Kim F. Storm  <storm@cua.dk>
15489         * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
15491         * lisp.h (struct Lisp_Save_Value): New member dogc.
15492         (SAFE_ALLOCA_LISP): Change second arg to number of elements.
15493         Set dogc member in Lisp_Save_Value object so it will be GC'ed.
15494         (SAFE_FREE_LISP): New macro.
15496         * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
15497         (make_save_value): Init new dogc member.
15498         (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
15500         * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
15501         SAFE_FREE_LISP macros.
15503 2004-06-22  Kim F. Storm  <storm@cua.dk>
15505         * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
15506         Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
15507         in that memory area are unknown to GC.  Add comments.
15509         * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
15511 2004-06-21  Kim F. Storm  <storm@cua.dk>
15513         * lisp.h (MAX_ALLOCA): Define here.
15514         (safe_alloca_unwind): Add prototype.
15515         (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
15517         * alloc.c (safe_alloca_unwind): New function.
15519         * casefiddle.c (casify_object): Use SAFE_ALLOCA.
15521         * charset.c (Fstring): Use SAFE_ALLOCA.
15523         * coding.c (MAX_ALLOCA): Remove define.
15525         * data.c (MAX_ALLOCA): Remove define.
15526         (Faset): Use SAFE_ALLOCA.
15528         * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
15530         * fns.c (string_make_multibyte, string_to_multibyte)
15531         (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
15532         (MAX_ALLOCA): Remove define.
15533         (Fbase64_encode_region, Fbase64_encode_string)
15534         (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
15535         (Fbase64_encode_region, Fbase64_encode_string): Fix potential
15536         memory leak if encoding fails.
15538         * xdisp.c (add_to_log): Use SAFE_ALLOCA.
15540 2004-06-21  Eli Zaretskii  <eliz@gnu.org>
15542         * print.c (Fwith_output_to_temp_buffer): Doc fix.
15544 2004-06-20  Richard M. Stallman  <rms@gnu.org>
15546         * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
15548         * search.c (match_limit): Cleaner err msg when no match data available.
15550         * window.c (syms_of_window): Doc fix.
15552         * keyboard.c (command_loop_1): Handle values `only' and `identity'
15553         for Vtransient_mark_mode.
15555         * buffer.c (syms_of_buffer): Doc fix.
15557 2004-06-21  David Kastrup  <dak@gnu.org>
15559         * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
15560         and unbinding of `case-fold-search' according to
15561         `completion-ignore-case' around calls of string-match and
15562         predicates, respectively.  Should give satisfactory performance
15563         in all relevant cases.
15565 2004-06-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15567         * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
15568         clip_x/y_origin.
15570         * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
15572         * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
15574         * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
15575         on Mac OSX.
15577 2004-06-16  Luc Teirlinck  <teirllm@auburn.edu>
15579         * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
15581 2004-06-16  Kim F. Storm  <storm@cua.dk>
15583         * dispextern.h (Vimage_types): Remove extern.
15585 2004-06-16  Miles Bader  <miles@gnu.org>
15587         * image.c (lookup_image_type): Initialize image type if necessary.
15589 2004-06-15  Kim F. Storm  <storm@cua.dk>
15591         * xdisp.c (try_cursor_movement): Exclude header line from scroll
15592         margin at top of window.
15593         (try_window_reusing_current_matrix): Calculate proper cursor position
15594         after scrolling up with non-zero scroll margin, as the old cursor
15595         position corresponds to value of PT before executing this command.
15596         (try_window_id): Consider scroll margin at bottom of window too;
15597         otherwise we fail to scroll when hl-line-mode is enabled.
15599         * syntax.c (skip_chars): Only recognize [:class:] when it has the
15600         proper format and class is a lower-case word.
15602 2004-06-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15604         * gtkutil.c (xg_get_image_for_pixmap): New function.
15605         (xg_get_gdk_pixmap_and_mask): Remove.
15606         (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
15607         xg_get_gdk_pixmap_and_mask.
15609         * xterm.h (struct x_display_info): Typo in comment fixed.
15611 2004-06-14  Juanma Barranquero  <lektu@terra.es>
15613         * dispextern.h (Vimage_types): Make it conditional on
15614         HAVE_WINDOW_SYSTEM.
15616         * image.c (Vimage_types): Move from xdisp.c.
15617         (Vimage_type_cache): New variable.
15618         (define_image_type): New argument indicating whether an image
15619         library was loaded; cache loaded status and return t on success,
15620         nil otherwise.
15621         (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
15622         (w32_delayed_load): New function to load an image library from a
15623         list of possible filenames.
15624         (init_xpm_functions, init_png_functions, init_jpeg_functions)
15625         (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
15626         (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
15627         (Finit_image_library): New function, extracted from `init_image'.
15628         Try to initialize an image library on demand and cache whether we
15629         were successful or not.
15630         (syms_of_image): Initialize `Vimage_types' and
15631         `Vimage_type_cache'.  Add recognized image types to Vimage_types.
15632         Export `init-image-library'.
15633         (init_image): Remove initialization of all image types, except xbm
15634         and pbm.
15636         * xdisp.c (Vimage_types): Delete (moved to image.c).
15638 2004-06-14  Andreas Schwab  <schwab@suse.de>
15640         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
15641         Avoid calling specbind when completion-regexp-list is empty.
15643 2004-06-13  Richard M. Stallman  <rms@gnu.org>
15645         * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
15646         (re_wctype, re_iswctype, re_wctype_to_bit):
15647         Non-function definitions moved here from regex.c.
15649         * regex.c (re_wctype, re_iswctype): Function defs longer static.
15650         (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
15651         (re_wctype, re_iswctype, re_wctype_to_bit):
15652         Non-function definitions moved to regex.h.
15654         * window.c (Fselect_window): Doc fix.
15656         * syntax.c: Include regex.h.
15657         (skip_chars): New arg HANDLE_ISO_CLASSES.  Callers changed.
15658         If requested, make a list of classes, then check the scanned
15659         chars for membership in them.
15660         (in_classes): New function.
15661         Doc fix.
15663         * keyboard.c (cmd_error): Don't call any_kboard_state
15664         if inside a recursive edit level.
15666 2004-06-13  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <lorentey@elte.hu>
15668         * keyboard.c (command_loop): Call any_kboard_state before
15669         command_loop_2 when at top level.
15671 2004-06-13  Andreas Schwab  <schwab@suse.de>
15673         * print.c (print_object): Always use %ld for printing EMACS_INT.
15675         * keyboard.c (cancel_hourglass_unwind): Return a value.
15676         (modify_event_symbol): Always use %ld for printing EMACS_INT.
15677         (Fexecute_extended_command): Likewise.
15679         * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
15680         avoid clashes.
15681         (SYNTAX): Likewise.
15682         (SYNTAX_WITH_FLAGS): Likewise.
15683         (SYNTAX_MATCH): Likewise.
15685         * syntax.c (char_quoted): Avoid warning about undefined operation.
15686         (find_defun_start): Likewise.
15687         (scan_lists): Likewise.
15688         (INC_FROM): Likewise.
15689         (scan_sexps_forward): Likewise.
15691         * image.c: Include <ctype.h>.
15693         * xfaces.c (face_attr_equal_p): Declare parameters.
15695 2004-06-13  Kenichi Handa  <handa@m17n.org>
15697         * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
15699 2004-06-12  Matthew Mundell  <matt@mundell.ukfsn.org>
15701         * eval.c (Fdefun): Signal an error if NAME is not a symbol.
15703 2004-06-12  Kenichi Handa  <handa@m17n.org>
15705         * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
15706         ccl_prog_stack_struct and update it.
15707         (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
15708         (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
15709         ccl->eof_ic on EOF.
15710         (ccl_debug_hook): New function.
15711         (struct ccl_prog_stack): New member eof_ic.
15712         (ccl_driver): Handle EOF in subrountine call correctly.
15714 2004-06-11  Kenichi Handa  <handa@m17n.org>
15716         * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
15718 2004-06-11  Kim F. Storm  <storm@cua.dk>
15720         * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
15722 2004-06-11  Juanma Barranquero  <lektu@terra.es>
15724         * keyboard.c (Fposn_at_point): Doc fix.
15726 2004-06-11  David Kastrup  <dak@gnu.org>
15728         * search.c (match_limit): Don't flag an error if match-data
15729         exceeding the allocated search_regs.num_regs gets requested, just
15730         return Qnil.
15732 2004-06-08  Miles Bader  <miles@gnu.org>
15734         * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
15736 2004-06-07  Juanma Barranquero  <lektu@terra.es>
15738         * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
15739         (Fcurrent_time_string, Fcurrent_time_zone)
15740         (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
15742 2004-06-07  Miles Bader  <miles@gnu.org>
15744         * xfaces.c (struct named_merge_point): New type.
15745         (push_named_merge_point): New function.
15746         (merge_named_face): New function.
15747         (merge_face_ref, face_at_buffer_position, face_at_string_position):
15748         Use `merge_named_face'.
15749         (merge_face_inheritance): Function removed.
15750         (merge_face_ref): Rename from `merge_face_vector_with_property'.
15751         Add new `err_msgs' and `named_merge_points' args.  Return error
15752         status.  Only print error messages if ERR_MSGS is true.  Don't try to
15753         do :inherit attribute validation.
15754         (merge_face_heights): Handle `unspecified' in both directions.
15755         (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
15756         Call `merge_face_ref' instead of `merge_face_inheritance'.
15757         (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
15758         (compute_char_face, face_at_buffer_position)
15759         (face_at_string_position): Call `merge_face_ref' instead of
15760         `merge_face_vector_with_property'.
15762 2004-06-07  Kenichi Handa  <handa@m17n.org>
15764         * coding.c (find_safe_codings): Check NILP (safe_codings) only at
15765         the necessary places.
15767 2004-06-07  Kim F. Storm  <storm@cua.dk>
15769         * process.c (Fdelete_process): Undo 2004-05-28 change.
15770         Instead, call status_notify also for network process.
15771         (status_message): Use process instead of status as arg.
15772         Give messages "deleted" or "connection broken by remote peer" for
15773         an exited network process.
15774         (status_notify): Change call to status_message.
15775         (read_process_output): Increase readmax to 4096.  Do not increase
15776         buffer size for datagram channels (default is now large enough).
15778 2004-06-06  Steven Tamm  <tamm@Steven-Tamms-Computer.local>
15780         * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
15781         problem due to newly defined variable.
15783 2004-06-06  Miles Bader  <miles@gnu.org>
15785         * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
15786         immediately if non-interactive or not initialized.
15788 2004-06-05  Richard M. Stallman  <rms@gnu.org>
15790         * minibuf.c (Fcompleting_read): Doc fix.
15792 2004-06-05  Andreas Schwab  <schwab@suse.de>
15794         * macfns.c (x_create_tip_frame): Fix declaration after statement.
15796 2004-06-05  Juanma Barranquero  <lektu@terra.es>
15798         * keymap.c (Fdescribe_vector): Fix docstring.
15799         (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
15801 2004-06-05  Miles Bader  <miles@gnu.org>
15803         * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
15804         attributes have different values than the default face.
15806 2004-06-04  Eli Zaretskii  <eliz@gnu.org>
15808         * xfaces.c (x_supports_face_attributes_p): Make this function
15809         conditional on HAVE_WINDOW_SYSTEM.
15810         (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
15811         Don't call x_supports_face_attributes_p if it was not compiled in.
15813 2004-06-04  Miles Bader  <miles@gnu.org>
15815         * xfaces.c (tty_supports_face_attributes_p): New function, mostly
15816         from Ftty_supports_face_attributes_p.
15817         (x_supports_face_attributes_p): New function.
15818         (Ftty_supports_face_attributes_p): Function deleted.
15819         (Fdisplay_supports_face_attributes_p): New function.
15820         (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
15821         (face_attr_equal_p): New function.
15822         (lface_equal_p): Use it.
15824 2004-06-03  Juanma Barranquero  <lektu@terra.es>
15826         * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
15827         (Vw32_color_map): Fix typo in docstring.
15828         (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
15829         (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
15830         Make argument names match their use in docstring.
15832 2004-06-02  Juanma Barranquero  <lektu@terra.es>
15834         Work around bugs/problems with MinGW builds of graphics libraries
15835         called from MSVC builds of Emacs.
15837         * image.c (lookup_image): Make pointer to img static.
15838         (png_read_from_memory): Disable "global" optimization.
15840 2004-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
15842         * eval.c (Fcondition_case): Fix usage.  Simplify.
15844         * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
15846 2004-05-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15848         * macfns.c: Don't include ccl.h.
15849         [MAC_OSX]: Don't include QuickTime/QuickTime.h.
15850         [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
15851         TextUtils.h.
15852         (Fx_create_frame): Sync with xfns.c.  Initialize cursor descriptors.
15853         (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
15854         display height/width.
15855         (compute_tip_xy, Vx_max_tooltip_size): Declare.
15856         (unwind_create_tip_frame, compute_tip_xy): New functions.
15857         (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
15858         (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
15859         and last_show_tip_args.
15861         * macgui.h [!MAC_OSX]: Include Gestalt.h.
15862         (Cursor, No_Cursor): New defines.
15863         [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
15864         [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
15866         * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
15868         * macterm.c: Don't include Gestalt.h.
15869         (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
15870         (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
15871         (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
15872         (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
15873         (mac_copy_area, mac_copy_area_with_mask, x_update_end)
15874         (construct_mouse_click, XTmouse_position)
15875         (x_scroll_bar_report_motion, x_calc_absolute_position)
15876         (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
15877         (XTread_socket, make_mac_frame): Use SetPortWindowPort.
15878         (note_mouse_movement): Clear the mouse face and reset the pointer
15879         shape when the pointer goes outside the frame without grabbing.
15880         (mac_front_window): New function.
15881         (mac_window_to_frame): New macro.
15882         (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
15883         (do_window_activate, do_window_deactivate, do_app_resume)
15884         (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
15885         (do_zoom_window, mac_do_receive_drag, XTread_socket)
15886         (mac_check_for_quit_char): Use mac_front_window and/or
15887         mac_window_to_frame.
15888         (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
15889         scroll-bar click event.
15890         (mac_define_frame_cursor): Change the pointer shape.
15891         (x_free_frame_resources): Reset tip_window to NULL when it is
15892         disposed of.
15893         [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
15894         [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
15895         (do_window_update): Don't do anything if the updated window is the
15896         tooltip window.
15897         (do_mouse_moved): Handle mouse movement events here (previously in
15898         XTread_socket).  Clear the mouse face if
15899         dpyinfo->mouse_face_hidden is set.
15900         (do_os_event, do_events): Remove (now in XTread_socket).
15901         (XTread_socket): Immediately return if interrupt_input_blocked.
15902         Loop until all the events in the queue are processed.
15903         Rearrange codes for mouse grabbing.  Add tooltip support.  Include the
15904         contents of do_os_event and do_events.  Remove mouse movement
15905         handling (now in do_mouse_moved).  Add the case where
15906         Vmouse_highlight has an integer value.
15907         (NewMacWindow): Remove.
15908         (make_mac_frame): Do what NewMacWindow previously did.  Don't do
15909         excess initializations.
15910         (make_mac_terminal_frame): Previous initializations in
15911         make_mac_frame are moved here.
15912         (mac_initialize_display_info):
15913         Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
15915         * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
15916         (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
15918 2004-05-29  Richard M. Stallman  <rms@gnu.org>
15920         * lisp.h (truncate_undo_list): Update decl.
15922         * alloc.c (undo_outer_limit): New variable.
15923         (syms_of_alloc): Defvar it.
15924         (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
15926         * undo.c (truncate_undo_list): New arg LIMITSIZE.
15928         * alloc.c (lisp_align_malloc): Check for base == 0
15929         regardless of HAVE_POSIX_MEMALIGN.
15930         Clean up HAVE_POSIX_MEMALIGN handling of `err'.
15932 2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
15934         * alloc.c: Undo Kim's recent changes and fix the same bug differently.
15935         (marker_blocks_pending_free): Remove.
15936         (Fgarbage_collect): Sweep after cleaning up undo-lists.
15937         Mark the undo lists after claning them up.
15938         Don't free block in marker_blocks_pending_free.
15939         (mark_buffer): Don't mark undo_list.
15940         (gc_sweep): Sweep hash-tables and strings first.
15941         Do free marker blocks that are empty.
15943 2004-05-28  Jim Blandy  <jimb@redhat.com>
15945         * regex.c (print_partial_compiled_pattern): Add missing 'break'
15946         after 'case wordend'.  For symbeg and symend, print to stderr,
15947         like the other cases.
15949 2004-05-28  Noah Friedman  <friedman@splode.com>
15951         * process.c (Fdelete_process): Do not call remove_process.
15953 2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
15955         * alloc.c (struct backtrace): Remove.
15956         (Fgarbage_collect): Use the new mark_backtrace.
15958         * eval.c (mark_backtrace): New function.
15960         * minibuf.c (run_exit_minibuf_hook): New function.
15961         (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
15962         (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
15964 2004-05-27  Kim F. Storm  <storm@cua.dk>
15966         * xdisp.c (back_to_previous_visible_line_start): Skip backwards
15967         over display properties, e.g. images, that replace buffer text.
15969 2004-05-25  Kim F. Storm  <storm@cua.dk>
15971         * alloc.c (marker_blocks_pending_free): New var.
15972         (gc_sweep): Store free marker blocks on that list.
15973         (Fgarbage_collect): Free them after undo-list cleanup.
15975         * process.c (wait_reading_process_input): Check connect_wait_mask
15976         before actually accepting connection in case it has already been
15977         accepted due to recursion.
15979 2004-05-23  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <lorentey@elte.hu>
15981         * coding.c (Fset_safe_terminal_coding_system_internal):
15982         Set suppress_error in safe_terminal_coding, not terminal_coding.
15984 2004-05-22  Richard M. Stallman  <rms@gnu.org>
15986         * alloc.c (Fmake_string): Doc fix.
15988         * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
15989         and the alist pairs too.
15991         * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
15993         * emacs.c (main): Update copyright year.
15995         * fileio.c (Fread_file_name): Expand DIR if not absolute.
15997         * insdel.c (del_range_2, replace_range): Don't write an anchor
15998         if the gap is empty.
16000         * xdisp.c (try_scrolling): If scroll-up-aggressively or
16001         scroll-down-aggressively is small but positive, put point
16002         near the screen edge.
16004 2004-05-22  Juanma Barranquero  <lektu@terra.es>
16006         * keymap.c (Fdefine_key): Doc fix.
16008 2004-05-22  Kim F. Storm  <storm@cua.dk>
16010         * alloc.c (struct backtrace): Add debug_on_exit member.
16011         (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
16012         Identify those markers as Lisp_Misc_Free objects.  Clear car and cdr of
16013         the removed cons cells.
16014         (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
16015         (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
16016         any cons cells pointing to unallocated stings.
16017         Do not lisp_free any marker blocks, as there may still be pointers
16018         to them from buffer undo lists at this stage of GC.
16020         * keyboard.c (struct backtrace): Add debug_on_exit member.
16021         (Fcommand_execute): Clear it.
16023 2004-05-20  Luc Teirlinck  <teirllm@auburn.edu>
16025         * intervals.c (lookup_char_property): Do not prematurely return nil.
16027 2004-05-19  Jim Blandy  <jimb@redhat.com>
16029         Add support for new '\_<' and '\_>' regexp operators, matching the
16030         beginning and end of symbols.
16032         * regex.c (enum syntaxcode): Add Ssymbol.
16033         (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
16034         (re_opcode_t): New opcodes `symbeg' and `symend'.
16035         (print_partial_compiled_pattern): Print the new opcodes properly.
16036         (regex_compile): Parse the new operators.
16037         (analyse_first): Skip sym(beg|end) (they match only the empty string).
16038         (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
16039         \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
16040         (re_match_2_internal): Match symbeg and symend.
16042         * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
16044 2004-05-19  Kim F. Storm  <storm@cua.dk>
16046         * .gdbinit (xsymbol): Fix last change.
16048 2004-05-18  Stefan Monnier  <monnier@iro.umontreal.ca>
16050         * .gdbinit (xprintstr): New fun.
16051         (xstring, xprintsym): Use it.
16053         * w32proc.c (create_child): Use INTMASK.
16055         * alloc.c (Fgarbage_collect): Do all the marking before flushing
16056         unmarked elements of the undo list.
16058 2004-05-18  David Ponce  <david@dponce.com>
16060         * print.c (print): Reset print_depth before to call print_object.
16062 2004-05-18  Jason Rumney  <jasonr@gnu.org>
16064         * w32console.c: Prefix RIF functions with w32con_ to avoid
16065         namespace clash with functions in term.c and w32term.c.
16067         * w32menu.c (add_menu_item, w32_menu_display_help)
16068         [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
16070         * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
16072 2004-05-18  Eli Zaretskii  <eliz@gnu.org>
16074         * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
16076         * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
16077         with make_number.
16078         (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
16079         with XINT.
16081 2004-05-18  Kim F. Storm  <storm@cua.dk>
16083         * blockinput.h (INPUT_BLOCKED_P): New macros.
16085         * keyboard.c (Frecursive_edit): Return immediately if input blocked.
16086         (Ftop_level): Unblock input if blocked.
16088         * buffer.h (GET_OVERLAYS_AT): New macro.
16089         * msdos.c (IT_note_mouse_highlight): Use it.
16090         * textprop.c (get_char_property_and_overlay): Use it.
16091         * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
16092         * xfaces.c (face_at_buffer_position): Use it.
16094         * print.c (print_object): Increase buf size.
16096 2004-05-17  Jason Rumney  <jasonr@gnu.org>
16098         * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
16099         (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
16100         Lisp_Object using i member.
16101         (w32_quit_key): Rename from Vw32_quit_key, and make an int.
16102         (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
16103         consistently.
16105         * w32proc.c (create_child): Use make_number instead of masking pid.
16107         * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
16108         (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
16109         Use EQ to compare Lisp_Objects.
16110         (w32_parse_hot_key): Use int for lisp_modifiers consistently.
16112         * w32term.c (w32_num_mouse_buttons): Rename from
16113         Vw32_num_mouse_buttons and make it an int.
16115         * w32.c (init_environment): Use it.
16117         * w32fns.c (w32_wnd_proc): Likewise.
16119         * w32proc.c (w32_pipe_read_delay): Rename from
16120         Vw32_pipe_read_delay and make it an int.
16122         * w32.c (_sys_read_ahead): Use it.
16124         * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
16126         * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
16128         * w32inevt.c (w32_console_mouse_position, do_mouse_event)
16129         (key_event): Don't mix Lisp_Object and int.
16131         * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
16133         * keyboard.c (kbd_buffer_get_event): Don't use event->code and
16134         modifiers in language change event.
16136 2004-05-17  Kim F. Storm  <storm@cua.dk>
16138         * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
16139         Such objects may be freed markers which still exist on an undo list.
16141 2004-05-16  Juanma Barranquero  <lektu@terra.es>
16143         * data.c (Fset_default): Make argument names match their use in
16144         docstring.
16146 2004-05-15  Andreas Schwab  <schwab@suse.de>
16148         * emacs.c (gdb_array_mark_flag): Define.
16149         * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
16151 2004-05-15  Eli Zaretskii  <eliz@gnu.org>
16153         * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
16154         __attribute__((__aligned__)), so that USE_LSB_TAG would not become
16155         defined for the MS-DOS build.
16157 2004-05-14  Stefan Monnier  <monnier@iro.umontreal.ca>
16159         * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
16161 2004-05-14  Kenichi Handa  <handa@m17n.org>
16163         * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
16165 2004-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16167         * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
16168         section to frame.c section.
16169         (Fxw_display_color_p, Fx_file_dialog): Declare if
16170         HAVE_WINDOW_SYSTEM defined.
16172         * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
16174         * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
16176         * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
16177         (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
16178         (XTread_socket): Fix int/Lisp_Object mixup.
16179         (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
16181         * macterm.h (struct frame, struct face, struct image)
16182         (display_x_get_resource, Fx_display_color_p)
16183         (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
16184         Add prototypes.
16186 2004-05-14  Kim F. Storm  <storm@cua.dk>
16188         * process.c (wait_reading_process_input): Make reentrant.
16189         Make Available and Connecting non-static.  Save and restore value
16190         of waiting_for_user_input_p.
16192 2004-05-13  Kim F. Storm  <storm@cua.dk>
16194         * keyboard.c (mark_kboards): Don't mark x and y members
16195         that are overloaded in selection request events.
16197 2004-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
16199         * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
16201 2004-05-13  Glenn Morris  <gmorris@ast.cam.ac.uk>
16203         * window.c (Fdisplay_buffer, Fsplit_window)
16204         (split-height-threshold): Doc fix.
16206 2004-05-13  Juanma Barranquero  <lektu@terra.es>
16208         * xfaces.c (Ftty_supports_face_attributes_p)
16209         (Finternal_copy_lisp_face): Fix typo in docstring.
16210         (Finternal_get_lisp_face_attribute): Fix docstring.
16212 2004-05-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16214         * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
16216 2004-05-11  Steven Tamm  <steventamm@mac.com>
16218         * macfns.c (Fx_create_frame): Default to using tool-bar by
16219         setting tool-bar-lines to 1 in default-frame-alist.
16221 2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16223         * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
16224         (xpm_get_color_table_v, xpm_make_color_table_h)
16225         (xpm_put_color_table_h, xpm_get_color_table_h)
16226         (xpm_str_to_color_key, xpm_load_image, xpm_load)
16227         (syms_of_image): Support XPM on Carbon Emacs.  Does not
16228         depend on libXpm, but only supports XPM version 3 without extensions.
16230 2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16232         * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
16233         instead of FRAME_X_P
16235 2004-05-11  Kim F. Storm  <storm@cua.dk>
16237         * process.c (read_process_output): Grow decoding_buf when needed;
16238         this could cause a crash in allocate_string and compact_small_strings.
16240 2004-04-29  Jim Blandy  <jimb@redhat.com>
16242         * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
16243         against proper opcode.
16245 2004-05-10  Juanma Barranquero  <lektu@terra.es>
16247         * process.c (Fstart_process): Fix docstring.
16249         * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
16250         (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
16251         (Fsplit_char, Fchar_charset): Make argument names match their use
16252         in docstring.
16254 2004-05-10  Richard M. Stallman  <rms@gnu.org>
16256         * print.c (print_preprocess): Use being_printed, loop_count and
16257         halftail to detect overdeep nesting and cyclic cdr chains.
16259 2004-05-10  Andreas Schwab  <schwab@suse.de>
16261         * lisp.h (Fmake_symbolic_link): Declare.
16263         * fileio.c (Frename_file): Remove extra argument in call to
16264         Fmake_symbolic_link.
16266 2004-05-10  Kim F. Storm  <storm@cua.dk>
16268         * xdisp.c (calc_line_height_property): Use string position when
16269         object is a string.
16271 2004-05-10  Kenichi Handa  <handa@m17n.org>
16273         * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
16274         inhibit-modification-hooks to t temporarily before calling
16275         Ferase_buffer.
16277         * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
16278         inhibit-modification-hooks to t temporarily before calling
16279         Ferase_buffer.
16281         * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
16282         inhibit-modification-hooks to t temporarily before calling
16283         Ferase_buffer.
16285         * fns.c (count_combining): Delete it.
16286         (concat): Don't check combining bytes.
16288 2004-05-09  Jason Rumney  <jasonr@gnu.org>
16290         * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
16291         (globals_of_w32fns): Set it.
16293 2004-05-09  Piet van Oostrum  <piet@cs.uu.nl>
16295         * data.c (Fquo): Simplify.
16297 2004-05-08  Peter Whaite  <emacs@whaite.ca>  (tiny change)
16299         * data.c (Fquo): If any argument is float, do the computation in
16300         floating point.
16302 2004-05-08  Juanma Barranquero  <lektu@terra.es>
16304         * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
16305         (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
16306         Fix spelling of Emacs on docstring.
16307         (Fset_process_coding_system, Fprocess_coding_system)
16308         (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
16309         Make argument names match their use in docstring.
16310         (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
16311         Fix docstring.
16313         * editfns.c (Finsert_buffer_substring): Make argument names match their
16314         use in docstring.
16316         * syntax.c (Fmodify_syntax_entry): Fix docstring.
16318 2004-05-07  Steven Tamm  <steventamm@mac.com>
16320         * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
16321         around call to ReceiveEvent to avoid certain crashes.
16323 2004-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16325         * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
16326         (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
16327         (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
16328         Save/restore the current graphics port and device handle when
16329         drawing into an offscreen graphics world.
16331         * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
16332         (gif_load): Likewise.
16334 2004-05-07  Juanma Barranquero  <lektu@terra.es>
16336         * window.c (Fset_window_buffer): Fix docstring.
16338 2004-05-06  Thien-Thi Nguyen  <ttn@gnu.org>
16340         * emacs.c (main) [VMS]: Fix var ref.
16342 2004-05-06  Romain Francoise  <romain@orebokech.com>
16344         * data.c (Fsetq_default): Fix docstring.
16346 2004-05-06  Jason Rumney  <jasonr@gnu.org>
16348         * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
16349         to avoid name clash.
16351 2004-05-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16353         * fileio.c (barf_or_query_if_file_exists): Use lstat.
16354         (Frename_file): Handle renaming of symlinks across file systems.
16355         (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
16357 2004-05-04  Kim F. Storm  <storm@cua.dk>
16359         * xdisp.c (Qtotal): New var.
16360         (syms_of_xdisp): Intern and staticpro it.
16361         (calc_line_height_property): New arg total.  Set it if
16362         line-spacing property has format (total . VALUE).
16363         (x_produce_glyphs): Ignore line-spacing if line-height is 0.
16364         Handle total line-spacing property.
16366 2004-05-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16368         * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
16369         "under" scroll bar when size/position changes.
16371 2004-05-03  Jason Rumney  <jasonr@gnu.org>
16373         * makefile.nt: Remove.
16375 2004-05-02  Eli Zaretskii  <eliz@gnu.org>
16377         * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
16378         Avoid compiler warnings.
16380         * Makefile.in (region-cache.o): Depend on config.h.
16382 2004-05-02  Romain Francoise  <romain@orebokech.com>
16384         * indent.c (compute_motion): Save vpos in prev_vpos when dealing
16385         with continuation lines, too.
16387 2004-05-02  Thien-Thi Nguyen  <ttn@gnu.org>
16389         * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
16391 2004-05-01  Stefan Monnier  <monnier@iro.umontreal.ca>
16393         * xdisp.c (calc_line_height_property): YAILOM (yet another
16394         int/Lisp_Object mixup).
16396 2004-05-01  Eli Zaretskii  <eliz@gnu.org>
16398         * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
16399         undo bad effect of pack(4) in some versions of system headers.
16401 2004-05-01  Jason Rumney  <jasonr@gnu.org>
16403         * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
16405 2004-04-30  Kim F. Storm  <storm@cua.dk>
16407         * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
16408         (syms_of_buffer) <cursor-type>: Doc fix.
16410         * dispextern.h (struct it): Remove member use_default_face.
16411         Add members override_ascent, override_descent, override_boff.
16413         * xdisp.c (init_iterator): Handle line-spacing float value.
16414         Initialize override_ascent member.
16415         (append_space_for_newline): Reset override_ascent.
16416         Remove use_default_face.
16417         (calc_line_height_property): New function to calculate value of
16418         line-height and line-spacing properties.  Look at overlays, too.
16419         Set override_ascent, override_descent, override_boff members when
16420         using another face than the current face.  Float values are now
16421         relative to the frame default font, by default; accept a cons
16422         of ratio and face name to specify value relative to a specific face.
16423         (x_produce_glyphs): Use calc_line_height_property.
16424         Use override_ascent etc. when set to handle different face heights.
16425         A negative line-spacing property value is interpreted as a total
16426         line height, rather than inter-line spacing.
16427         (note_mouse_highlight): Allocate room for 40 overlays initially.
16429 2004-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
16431         * data.c (Fsubr_name): New fun.
16432         (syms_of_data): Defsubr it.
16434 2004-04-29  Kim F. Storm  <storm@cua.dk>
16436         * xdisp.c (null_glyph_slice): New var.
16437         (append_glyph, append_composite_glyph, append_stretch_glyph):
16438         Use it to initialize glyph slice.
16440 2004-04-27  Stefan Monnier  <monnier@iro.umontreal.ca>
16442         * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
16443         (on_hot_spot_p): Make sure we always return a value.
16444         (Flookup_image_map): Remove unused var ix and iy.
16445         (note_mode_line_or_margin_highlight): Remove unused var `image'.
16447 2004-04-27  Eli Zaretskii  <eliz@gnu.org>
16449         * msdos.c (init_environment): If one of the TMP... environment
16450         variables is set to a drive letter without a trailing slash,
16451         append a slash.
16453 2004-04-27  Matthew Mundell  <matt@mundell.ukfsn.org>
16455         * editfns.c (lisp_time_argument): Provide externally.
16457         * fileio.c (Fset_file_times): New function.
16458         (syms_of_fileio): Intern and staticpro it.
16460 2004-04-27  Kim F. Storm  <storm@cua.dk>
16462         * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
16463         header line strings.
16465         * dispextern.h (struct it): New member use_default_face.
16467         * xdisp.c (Qline_height): New variable.
16468         (syms_of_xdisp): Intern and staticpro it.
16469         (append_space_for_newline): Partially undo 2004-04-25 change;
16470         add default_face_p arg, and restore callers.
16471         Clear it->use_default_face after use.
16472         (x_produce_glyphs): Set default font for ascii char if
16473         it->use_default_font is set.  Change line-spacing property to set
16474         just extra line spacing.  Handle new line-height property.
16476 2004-04-26  Andreas Schwab  <schwab@suse.de>
16478         * print.c (print_object): Print non-ascii characters in bool
16479         vector representation as octal escapes.
16481         * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
16482         * print.c (print_object): Use it instead of BITS_PER_CHAR for
16483         bool vectors.
16484         * lread.c (read1): Likewise.
16485         * alloc.c (Fmake_bool_vector): Likewise.
16486         * data.c (Faref, Faset): Likewise.
16487         * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
16488         (mapcar1): Likewise.
16490 2004-04-26  Steven Tamm  <tamm@Steven-Tamms-Computer.local>
16492         * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
16494 2004-04-26  Miles Bader  <miles@gnu.org>
16496         * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
16498 2004-04-26  Juanma Barranquero  <lektu@terra.es>
16500         * buffer.c (Fpop_to_buffer): Fix docstring.
16502 2004-04-26  Steven Tamm  <steventamm@mac.com>
16504         * lread.c (init_lread): Don't display missing lisp directory
16505         warnings with Carbon Emacs because self-contained bundled Emacs
16506         may be built without correct installation path.
16508 2004-04-25  Kim F. Storm  <storm@cua.dk>
16510         * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
16512         * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
16514         * xdisp.c (append_space_for_newline): Rename from append_space.
16515         Remove DEFAULT_FACE_P arg; always use current face.  Callers changed.
16516         (x_produce_glyphs): Handle line-spacing property on newline char.
16517         If value is t, adjust ascent and descent to fit current row height.
16518         If value is an integer or float, set extra_line_spacing to integer
16519         value, or to float value x current line height.
16521 2004-04-23  Kenichi Handa  <handa@m17n.org>
16523         * fontset.c (Finternal_char_font): If POSITION is nil, return
16524         font for displaying CH with the default face.
16526 2004-04-23  Juanma Barranquero  <lektu@terra.es>
16528         * makefile.w32-in: Add "-*- makefile -*-" mode tag.
16530 2004-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
16532         * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
16533         Don't make assumptions about the relative place of i and val.
16534         (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
16536 2004-04-21  Kim F. Storm  <storm@cua.dk>
16538         * dispextern.h (struct glyph_slice): New struct.
16539         (struct glyph): New member slice.
16540         (GLYPH_SLICE_EQUAL_P): New macro.
16541         (GLYPH_EQUAL_P): Use it.
16542         (struct glyph_string): New member slice.
16543         (struct it_slice): New struct.
16544         (struct it): New member slice, add member to stack too.
16545         New member constrain_row_ascent_descent_p.
16546         (image_ascent): Add prototype.
16548         * dispnew.c (buffer_posn_from_coords): Return full image width
16549         and height even for image slices (posn is relative to full image).
16550         (marginal_area_string): Adjust x0,y0 for image slice.
16552         * image.c (image_ascent): Add slice arg; calculate ascent for
16553         image slice (or full image).
16555         * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
16556         (syms_of_keyboard): Defsubr them.
16558         * lisp.h (pos_visible_p): Fix prototype.
16560         * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
16561         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
16562         (x_draw_image_foreground, x_draw_image_relief)
16563         (x_draw_image_foreground_1, x_draw_image_glyph_string):
16564         Draw sliced images.
16566         * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
16567         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
16568         (x_draw_image_foreground, x_draw_image_relief)
16569         (w32_draw_image_foreground_1, x_draw_image_glyph_string):
16570         Draw sliced images.
16572         * w32term.h (image_ascent): Remove prototype.
16574         * window.c (Fpos_visible_in_window_p): Return pixel position if
16575         PARTIALLY arg is non-nil.  Simplify.  Doc fix.
16576         (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
16577         to return/set vscroll in pixels.
16579         * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
16581         * xdisp.c (Qslice): New variable.
16582         (syms_of_xdisp): Intern and staticpro it.
16583         (pos_visible_p): Return pixel position in new x and y args.
16584         (init_iterator): Reset it->slice info.
16585         (handle_display_prop): Parse (slice ...) property.
16586         (push_it, pop_it): Save/restore slice info.
16587         (make_cursor_line_fully_visible): Fix 2004-04-14 change.  Do not
16588         force repositioning of tall row if window is vscrolled, as that
16589         would reset vscroll.
16590         (append_space): Set it->constrain_row_ascent_descent_p to avoid
16591         increasing row height if row is non-empty.
16592         (fill_image_glyph_string): Copy slice info.
16593         (take_vertical_position_into_account): Simplify.
16594         (produce_image_glyph): Handle iterator slice info, setup glyph
16595         slice info.  Do not force minimum line height.
16596         (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
16597         do not increase height (ascent/descent) of non-empty row when
16598         adding normal character glyph; instead reduce glyph ascent/descent
16599         appropriately; if row is higher than current glyph, adjust glyph
16600         descent/ascent to reposition glyph within the existing row.
16601         Likewise, when char is newline, only set ascent/descent if row is
16602         currently empty.
16603         (note_mouse_highlight): Handle hotspots with sliced image.
16605         * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
16606         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
16607         (x_draw_image_foreground, x_draw_image_relief)
16608         (x_draw_image_foreground_1, x_draw_image_glyph_string):
16609         Draw sliced images.
16611         * xterm.h (image_ascent): Remove prototype.
16613 2004-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
16615         * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
16617 2004-04-20  John Paul Wallington  <jpw@gnu.org>
16619         * fns.c (Fassoc, Feql): Fix indentation.
16621         * fontset.c (regularize_fontname): Rename from regulalize_fontname.
16623 2004-04-19  John Paul Wallington  <jpw@gnu.org>
16625         * fns.c (Feql): New function.
16626         (syms_of_fns): Defsubr it.
16628 2004-04-18  Jason Rumney  <jasonr@gnu.org>
16630         * w32select.c (Fw32_set_clipboard_data): Get sequence number
16631         after closing the clipboard.
16633 2004-04-16  Luc Teirlinck  <teirllm@auburn.edu>
16635         * buffer.c (Fbuffer_base_buffer): Doc fix.
16637 2004-04-17  Kim F. Storm  <storm@cua.dk>
16639         * keymap.c (Fkey_description): Add optional PREFIX arg.
16640         Combine prefix with KEYS to make up the full key sequence to describe.
16641         Correlate meta_prefix_char and following (simple) key to describe
16642         as meta modifier.  All callers changed.
16643         (describe_map): Rename arg `keys' to `prefix'.  Remove local
16644         `elt_prefix' var.  Use Fkey_description with prefix instead of
16645         elt_prefix combined with Fsingle_key_description.
16646         (describe_vector): Declare static.  Replace arg `elt_prefix' with
16647         `prefix'.  Add KEYMAP_P arg.  Add local var `elt_prefix'; use it
16648         if !KEYMAP_P.  Use Fkey_description with prefix instead of
16649         Fsingle_key_description.
16651         * keymap.h (Fkey_description): Fix prototype.
16652         (describe_vector): Remove prototype.
16654         * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
16656         * image.c (PNG_BG_COLOR_SHIFT): Remove.
16657         (png_load): Fix calculation of transparent background color on X
16658         and W32 platforms.
16660 2004-04-16  Juanma Barranquero  <lektu@terra.es>
16662         * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
16663         not too large before computing how much to scroll.
16665 2004-04-15  Stefan Monnier  <monnier@iro.umontreal.ca>
16667         * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
16669 2004-04-14  Luc Teirlinck  <teirllm@auburn.edu>
16671         * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
16672         Add hyperlink to Elisp manual to the docstring.
16674 2004-04-14  Stefan Monnier  <monnier@iro.umontreal.ca>
16676         * callint.c (fix_command): Use XDCR.
16678 2004-04-14  Nick Roberts  <nick@nick.uklinux.net>
16680         * window.c (Fget_lru_window): Doc fix.
16682 2004-04-14  Kim F. Storm  <storm@cua.dk>
16684         * editfns.c (Fformat): Fix allocation size of precision array.
16686         * dispnew.c (update_window): Only set changed_p if
16687         scrolling_window actually did scroll.
16688         (scrolling_window): Only return 1 if we actually did scroll.
16690         * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
16691         height to glyph height when cursor row is not fully visible.
16692         (make_cursor_line_fully_visible): Add FORCE_P arg to return
16693         failure in case row is higher than window.  Callers changed.
16694         (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
16695         Try to scroll partially visible, higher-than-window cursor row.
16696         (redisplay_window): Always try to scroll partially visible,
16697         higher-than-window cursor row - both initially and again with
16698         centering_position = 0.
16699         Clear desired matrix before retrying with centering_position = 0.
16701 2004-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
16703         * syntax.c (scan_lists): Simplify backward string scan.
16704         Fix off-by-one boundary check for string and comment fences.
16706 2004-04-13  Joe Buehler  <jbuehler@hekimian.com>
16708         * sheap.c, unexcw.c: New files.
16710 2004-04-12  Luc Teirlinck  <teirllm@auburn.edu>
16712         * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
16713         base buffer has been killed.  Correct the error message if the
16714         base buffer does not exist.
16716 2004-04-12  Joe Buehler  <jbuehler@hekimian.com>
16718         * s/cygwin.h: Changes for Cygwin unexec() support, changes in
16719         Cygwin itself.  Add support for Xaw3d scrollbars.
16721         * puresize.h: Set up PURE_P() for Cygwin unexec() support.
16723         * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
16725         * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
16726         before Cygwin unexec.
16728         * Makefile.in: Link changes for Cygwin unexec() support.
16730 2004-04-12  Andreas Schwab  <schwab@suse.de>
16732         * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
16734 2004-04-11  Luc Teirlinck  <teirllm@auburn.edu>
16736         * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
16737         IGNORE argument equals NAME.  Doc fix.
16739 2004-04-11  Masatake YAMATO  <jet@gyve.org>
16741         * buffer.c (fix_start_end_in_overlays): Make overlays
16742         empty if they are backwards.
16744 2004-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
16746         * xfaces.c (face_color_supported_p): Fix compilation without X11.
16748 2004-04-07  Stefan Monnier  <monnier@iro.umontreal.ca>
16750         * doc.c (Fsnarf_documentation): Ignore new file name entries.
16752 2004-04-06  Kim F. Storm  <storm@cua.dk>
16754         * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
16755         (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
16757         * w32term.c (w32_read_socket): Set mouse_face_hidden after
16758         clearing highlight.
16760         * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
16762         * xterm.c (handle_one_xevent): Set mouse_face_hidden after
16763         clearing highlight.
16765         * indent.c (vmotion): Do not reserve one column for continuation
16766         marks on window frames.
16768 2004-04-04  Eli Zaretskii  <eliz@gnu.org>
16770         * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
16771         from GCC.
16773 2004-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
16775         * .gdbinit-union: Remove.
16777         * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
16778         (xgetptr, xgetint, xgettype): New funs.  Use them everywhere.
16779         ($nonvalbits): Remove.
16780         ($valmask): Set it by calling xreload to avoid redundancy.
16782         * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
16783         (gdb_emacs_intbits): Remove.
16785 2004-03-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16787         * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
16789 2004-03-30  Kenichi Handa  <handa@m17n.org>
16791         * editfns.c (Fformat): Fix initialization of the array info.
16793 2004-03-30  Kim F. Storm  <storm@cua.dk>
16795         * xterm.c (x_mouse_click_focus_ignore_position): New var.
16796         (syms_of_xterm): DEFVAR_BOOL it.
16797         (ignore_next_mouse_click_timeout): New var.
16798         (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
16799         Use it to filter mouse clicks following focus event.
16801 2004-03-29  David Ponce  <david@dponce.com>
16803         * callint.c (Fcall_interactively): Fix last change.
16805 2004-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
16807         * eval.c (Fcommandp): Simplify.
16809         * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
16810         Extend to handle all kinds of functions.
16812         * lisp.h (Finteractive_form): Declare.
16814         * callint.c (Fcall_interactively): Use it.
16816 2004-03-26  Kim F. Storm  <storm@cua.dk>
16818         * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
16819         to catch errors in calc_pixel_width_or_height during redisplay.
16821 2004-03-26  Masatake YAMATO  <jet@gyve.org>
16823         * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
16825         * lisp.h (fix_start_end_in_overlays): Likewise.
16827         * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
16829         * editfns.c (Ftranspose_regions): Likewise.
16831 2004-03-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16833         * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
16835 2004-03-19  Richard M. Stallman  <rms@gnu.org>
16837         * s/sol2-6.h: Delete previous change.
16839 2004-03-19  Kim F. Storm  <storm@cua.dk>
16841         * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
16842         to_charpos corresponds to newline in right fringe.  Use local
16843         BUFFER_POS_REACHED_P macro.
16845 2004-03-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16847         * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
16848         to compile on non-window system.
16850 2004-03-19  Kim F. Storm  <storm@cua.dk>
16852         * dispextern.h (calc_pixel_width_or_height): Add prototype.
16854         * image.c (Qcenter): Move to xdisp.c.
16856         * xdisp.c (Qcenter): Declare here.
16857         (syms_of_xdisp): Intern and staticpro it.
16858         (handle_single_display_prop): Allow space display property on all
16859         platforms.
16860         (display_mode_line): Set mode_line_p before displaying line.
16861         (calc_pixel_width_or_height): Declare extern.  Add separate :align-to
16862         handling.  Remove complex cases for fringes and scroll-bars.
16863         Add left, right, and center alignment positions.  Add text (area)
16864         width/height.  Return width or height for image specs.
16865         (produce_stretch_glyph): Improve handling of :align-to.  Is now
16866         relative to left of text area by default, but other base offsets
16867         can be specified -- also for text lines.
16869         * term.c (produce_glyphs): Handle IT_STRETCH.
16870         (produce_stretch_glyph): New function to handle space width and
16871         align-to display properties on non-window systems.
16873 2004-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
16875         * fileio.c (Fread_file_name): Set completion-ignore-case for
16876         case-insensitive systems.
16878 2004-03-14  Masatake YAMATO  <jet@gyve.org>
16880         * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
16881         when keymap and cursor are setup.
16883 2004-03-14  Steven Tamm  <steventamm@mac.com>
16885         * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
16887 2004-03-14  Kim F. Storm  <storm@cua.dk>
16889         * dispextern.h (x_find_image_file): Add prototype.
16891         * image.c (x_find_image_file): Make extern.
16893         * xfns.c (x_find_image_file): Remove prototype.
16895 2004-03-13  Eli Zaretskii  <eliz@gnu.org>
16897         * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
16899         * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
16901 2004-03-12  Richard M. Stallman  <rms@gnu.org>
16903         * fns.c (internal_equal): New arg PROPS controls comparing
16904         text properties.  All callers changed.
16905         (Fequal_including_properties): New function.
16906         (syms_of_fns): defsubr it.
16908 2004-03-12  Kim F. Storm  <storm@cua.dk>
16910         Fix image support on MAC.  From YAMAMOTO Mitsuharu.
16912         * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
16913         (image_background, image_background_transparent): Fix prototypes.
16915         * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
16917         * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
16918         (x_query_font, x_find_ccl_program, x_set_window_size)
16919         (x_make_frame_visible, mac_initialize, XCreatePixmap)
16920         (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
16921         (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
16923         * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
16924         (x_query_font, x_find_ccl_program, x_set_window_size)
16925         (x_make_frame_visible, mac_initialize, XCreatePixmap)
16926         (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
16927         (mac_draw_line_to_pixmap): Add prototypes.
16929 2004-03-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16931         * macterm.c (XTread_socket): Fix mouse click on tool bar.
16933 2004-03-11  Kim F. Storm  <storm@cua.dk>
16935         * dispextern.h: Move image related prototypes from xfns.c section
16936         to image.c.  Condition them by HAVE_WINDOW_SYSTEM rather than
16937         HAVE_X_WINDOWS.
16939         * Makefile.in (XOBJ): Consolidate into one list.  Add image.o.
16940         Move gtkutil.o to new GTK_OBJ list.
16941         (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
16942         (GTK_OBJ) [USE_GTK]: New declaration.
16943         (obj): Add $(GTK_OBJ) to list.
16945 2004-03-11  Steven Tamm  <steventamm@mac.com>
16947         * image.c [MAC_OSX]: Include sys/stat.h.
16949         * macfns.c (syms_of_macfns): Remove definitions of things now
16950         defined in image.c.
16952 2004-03-11  Kim F. Storm  <storm@cua.dk>
16954         The following changes consolidates the identical/similar image
16955         support code previously found in xfns.c, w32fns.c, and macfns.c
16956         into a new file image.c.
16958         * makefile.w32-in (OBJ1): Add image.o.
16959         ($(BLD)/image.$(O)): Add dependencies.
16961         * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
16962         (image.o): Add dependencies.
16964         * image.c: New file with consolidated image support code.
16965         (COLOR_TABLE_SUPPORT): New define to control whether
16966         color table support is available (X only).
16967         (Bitmap_Record): Common name for x_bitmap_record,
16968         w32_bitmap_record, and mac_bitmap_record.
16969         (XImagePtr): Common name for pointer to XImage or equivalent.
16970         (XImagePtr_or_DC): New type to simplify code sharing; equivalent
16971         to XImagePtr on X+MAC, and to HDC on W32.
16972         (GET_PIXEL): Wrapper for XGetPixel or equivalent.
16973         (NO_PIXMAP): Common name for "None" or equivalent.
16974         (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
16975         (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
16976         (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
16977         (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
16978         Define with suitable equivalents on W32 and MAC for code sharing.
16979         (XDrawLine): Define on MAC for code sharing.
16980         (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
16981         (IF_LIB_AVAILABLE): Macro to simplify code sharing.
16982         (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16983         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16984         (x_reference_bitmap, x_create_bitmap_from_data)
16985         (x_create_bitmap_from_file, x_destroy_bitmap)
16986         (x_destroy_all_bitmaps, x_create_bitmap_mask)
16987         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16988         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16989         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16990         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16991         (define_image_type, lookup_image_type, valid_image_p)
16992         (image_error, enum image_value_type, struct image_keyword)
16993         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16994         (make_image, free_image, prepare_image_for_display, image_ascent)
16995         (four_corners_best, image_background, image_background_transparent)
16996         (x_clear_image_1, x_clear_image, x_alloc_image_color)
16997         (make_image_cache, free_image_cache, clear_image_cache)
16998         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16999         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
17000         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
17001         (find_image_fsspec, image_load_qt_1, image_load_quicktime)
17002         (init_image_func_pointer, image_load_quartz2d)
17003         (struct ct_color, init_color_table, free_color_table)
17004         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
17005         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
17006         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
17007         (x_disable_image, x_build_heuristic_mask)
17008         (XBM support, XPM support, PBM support, PNG support, JPEG support)
17009         (TIFF support, GIF support, Ghostscript support): Consolidate image
17010         code from xfns.c, w32fns.c, and macfns.c.
17011         (syms_of_image): Consolidate image related symbol setup here.
17012         (init_image): Consolidate image related initializations here.
17014         * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
17015         and init_image.  Remove call to init_xfns.
17017         * macterm.h (struct mac_bitmap_record): Add file member.
17018         Not currently used, but simplifies code sharing.
17020         * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
17021         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
17022         (x_reference_bitmap, x_create_bitmap_from_data)
17023         (x_create_bitmap_from_file, x_destroy_bitmap)
17024         (x_destroy_all_bitmaps, x_create_bitmap_mask)
17025         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17026         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
17027         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
17028         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
17029         (define_image_type, lookup_image_type, valid_image_p)
17030         (image_error, enum image_value_type, struct image_keyword)
17031         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
17032         (make_image, free_image, prepare_image_for_display, image_ascent)
17033         (four_corners_best, image_background, image_background_transparent)
17034         (x_clear_image_1, x_clear_image, x_alloc_image_color)
17035         (make_image_cache, free_image_cache, clear_image_cache)
17036         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
17037         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
17038         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
17039         (find_image_fsspec, image_load_qt_1, image_load_quicktime)
17040         (init_image_func_pointer, image_load_quartz2d)
17041         (struct ct_color, init_color_table, free_color_table)
17042         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
17043         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
17044         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
17045         (x_disable_image, x_build_heuristic_mask)
17046         (XBM support, XPM support, PBM support, PNG support, JPEG support)
17047         (TIFF support, GIF support, Ghostscript support): Merge with image
17048         code from xfns.c and macfns.c into image.c.
17049         (syms_of_xfns): Move image related symbols to image.c.
17050         (init_external_image_libraries, init_xfns): Remove; initialization
17051         moved to init_image in image.c.
17053         * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
17054         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
17055         (x_reference_bitmap, x_create_bitmap_from_data)
17056         (x_create_bitmap_from_file, x_destroy_bitmap)
17057         (x_destroy_all_bitmaps, x_create_bitmap_mask)
17058         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
17059         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
17060         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
17061         (define_image_type, lookup_image_type, valid_image_p)
17062         (image_error, enum image_value_type, struct image_keyword)
17063         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
17064         (make_image, free_image, prepare_image_for_display, image_ascent)
17065         (four_corners_best, image_background, image_background_transparent)
17066         (x_clear_image_1, x_clear_image, x_alloc_image_color)
17067         (make_image_cache, free_image_cache, clear_image_cache)
17068         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
17069         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
17070         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
17071         (struct ct_color, init_color_table, free_color_table)
17072         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
17073         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
17074         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
17075         (x_disable_image, x_build_heuristic_mask)
17076         (XBM support, XPM support, PBM support, PNG support, JPEG support)
17077         (TIFF support, GIF support, Ghostscript support): Merge with image
17078         code from xfns.c and macfns.c into image.c.
17079         (syms_of_xfns): Move image related symbols to image.c.
17080         (init_external_image_libraries, init_xfns): Remove; initialization
17081         moved to init_image in image.c.
17083         * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
17084         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
17085         (x_reference_bitmap, x_create_bitmap_from_data)
17086         (x_create_bitmap_from_file, x_destroy_bitmap)
17087         (x_destroy_all_bitmaps, x_create_bitmap_mask)
17088         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
17089         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
17090         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
17091         (define_image_type, lookup_image_type, valid_image_p)
17092         (image_error, enum image_value_type, struct image_keyword)
17093         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
17094         (make_image, free_image, prepare_image_for_display, image_ascent)
17095         (four_corners_best, image_background, image_background_transparent)
17096         (x_clear_image_1, x_clear_image, x_alloc_image_color)
17097         (make_image_cache, free_image_cache, clear_image_cache)
17098         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
17099         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
17100         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
17101         (struct ct_color, init_color_table, free_color_table)
17102         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
17103         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
17104         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
17105         (x_disable_image, x_build_heuristic_mask)
17106         (XBM support, XPM support, PBM support, PNG support, JPEG support)
17107         (TIFF support, GIF support, Ghostscript support): Merge with
17108         w32fns.c and macfns.c image code into image.c.
17109         (syms_of_xfns): Move image related symbols to image.c.
17110         (init_xfns): Remove; initialization moved to init_image in image.c.
17112         * lisp.h (syms_of_image, init_image): Add protoypes.
17113         (init_xfns): Remove prototype.
17115         * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
17116         (x_reference_bitmap, x_create_bitmap_from_data)
17117         (x_create_bitmap_from_file, x_destroy_bitmap)
17118         (x_create_bitmap_mask): Move prototypes from dispextern.h.
17119         (gamma_correct) [MAC_OS]: Add prototype.
17121         * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
17122         (x_reference_bitmap, x_create_bitmap_from_data)
17123         (x_create_bitmap_from_file, x_destroy_bitmap)
17124         (x_create_bitmap_mask): Move prototypes to dispextern.h.
17126 2004-03-09  Kenichi Handa  <handa@etlken2>
17128         * coding.c (decode_coding_emacs_mule): Handle insufficent source
17129         correctly.
17131 2004-03-04  Richard M. Stallman  <rms@gnu.org>
17133         * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
17135         * window.c (Fdisplay_buffer): Doc fix.
17137         * buffer.c (Fpop_to_buffer): Doc fix.
17139 2004-03-03  Kim F. Storm  <storm@cua.dk>
17141         * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
17143 2004-03-02  Stefan Monnier  <monnier@iro.umontreal.ca>
17145         * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
17147 2004-03-02  Richard M. Stallman  <rms@gnu.org>
17149         * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
17151 2004-03-02  Kenichi Handa  <handa@m17n.org>
17153         * doc.c (Fsubstitute_command_keys): Fix counding bytes.
17155 2004-03-02  Kim F. Storm  <storm@cua.dk>
17157         * window.h (struct window): New member overlay_arrow_bitmap.
17159         * window.c (make_window): Initialize overlay_arrow_bitmap.
17161         * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
17162         implement and integrate multiple overlay arrows with redisplay.
17163         (syms_of_xdisp): DEFVAR_LISP and initialize it.
17164         (last_arrow_position, last_arrow_string): Replace by properties.
17165         (Qlast_arrow_position, Qlast_arrow_string)
17166         (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
17167         (syms_of_xdisp): Intern and staticpro them.
17168         (overlay_arrow_string_or_property, update_overlay_arrows)
17169         (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
17170         (overlay_arrow_at_row): New functions for multiple overlay arrows.
17171         (redisplay_internal): Use them instead of directly accessing
17172         Voverlay_arrow_position etc. for multiple overlay arrows.
17173         (mark_window_display_accurate): Use update_overlay_arrows.
17174         (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
17175         (try_window_id): Use overlay_arrows_changed_p.
17176         (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
17177         (display_line): Use overlay_arrow_at_row to check multiple
17178         overlay arrows, and get relevant overlay-arrow-string and
17179         overlay-arrow-bitmap.  Set w->overlay_arrow_bitmap accordingly.
17180         (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
17181         (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
17183         * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
17184         (update_window_fringes): Remove unused code.
17186 2004-03-01  Jason Rumney  <jasonr@gnu.org>
17188         * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
17190 2004-03-01  Juanma Barranquero  <lektu@terra.es>
17192         * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
17194         * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
17196 2004-03-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17198         * xfns.c (Fx_display_color_cells): Use number of planes to calculate
17199         how many colors can be displayed.
17201 2004-03-01  Kenichi Handa  <handa@m17n.org>
17203         * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
17204         correctly.
17206 2004-02-28  Kim F. Storm  <storm@cua.dk>
17208         * dispnew.c (update_window): Update header line also if there are
17209         no other changes in window (move code after set_cursor label).
17211         * lisp.h (mark_window_display_accurate): Remove prototype.
17213         * window.c (window_loop, Fforce_window_update): Force mode line
17214         updates by setting prevent_redisplay_optimizations_p and
17215         update_mode_lines.
17217 2004-02-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17219         * xfns.c (x_window): Fix indentation.
17221         * xterm.c (x_calc_absolute_position): Call x_real_positions
17222         to get WM window sizes and use those to calculate position.
17223         (x_set_offset): Remove code commented out.
17225 2004-02-28  Miles Bader  <miles@gnu.org>
17227         * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
17229 2004-02-28  Kim F. Storm  <storm@cua.dk>
17231         * keyboard.c (kbd_buffer_store_event_hold): New function to store
17232         an event into kbd fifo, but with special handling of quit event;
17233         a quit event is saved for later, and further events are discarded
17234         until the saved quit event has been processed.
17235         (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
17236         (gen_help_event): Store help event in kbd fifo.
17237         (NREAD_INPUT_EVENTS): Remove.
17238         (read_avail_input): Adapt to new read_socket_hook interface.
17239         Remove allocation and initialization of local input_event buffer,
17240         as read_socket_hook stores events directly in fifo.  Allocate and
17241         initialize local hold_quit event to handle postponed quit event
17242         (and store it if set by kbd_buffer_store_event_hold).
17244         * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
17245         (gen_help_event): Fix prototype.
17247         * macterm.c (XTread_socket): Remove bufp_r and
17248         numcharsp args.  Add hold_quit arg.
17249         Rework to use just one, local, inev input_event.  Store inev
17250         directly in fifo using kbd_buffer_store_event_hold.
17252         * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
17253         (read_input_waiting): Adapt to new read_socket_hook interface.
17254         Remove allocation and initialization of local input_event buffer,
17255         as read_socket_hook stores events directly in fifo.  Allocate and
17256         initialize local hold_quit event to handle postponed quit event
17257         (and store it if set by kbd_buffer_store_event_hold).
17259         * term.c (read_socket_hook): Fix arg list.
17261         * termhooks.h (read_socket_hook): Fix prototype.
17263         * w32inevt.c (w32_console_read_socket): Remove bufp_r and
17264         numcharsp args.  Add hold_quit arg.
17265         Rework to use just one, local, inev input_event.  Store inev
17266         directly in fifo using kbd_buffer_store_event_hold.
17268         * w32inevt.h (w32_console_mouse_position): Fix prototype.
17270         * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
17271         Add hold_quit arg.  Rework to use just one, local, inev
17272         input_event.  Store inev directly in fifo using
17273         kbd_buffer_store_event_hold.  Update count in one place.
17274         Postpone call to gen_help_event until inev is stored; use new
17275         local do_help for this.
17276         Remove local emacs_event in handing of ButtonPress event; just use
17277         inev instead (so no reason to copy it later).
17279         * xsmfns.c (x_session_check_input): Remove numchars arg.
17281         * xterm.c (x_focus_changed, x_detect_focus_change):
17282         Remove numchars arg.  Always store event into bufp arg.
17283         Return nothing.  Callers changed accordingly.
17284         (glyph_rect): Simplify.
17285         (STORE_KEYSYM_FOR_DEBUG): New macro.
17286         (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
17287         (current_bufp, current_numcharsp) [USE_GTK]: Remove.
17288         (current_hold_quit) [USE_GTK]: Add.
17289         (event_handler_gdk): Adapt to new handle_one_xevent.
17290         (handle_one_xevent): Remove bufp_r and numcharsp args.
17291         Add hold_quit arg.  Rework to use just one, local, inev
17292         input_event.  Store inev directly in fifo using
17293         kbd_buffer_store_event_hold.  Update count in one place.
17294         Postpone call to gen_help_event until inev is stored; use new
17295         local do_help for this.
17296         Simplify handling of keysyms (consolidate common code).  Fix bug
17297         where count was updated with nchars instead of nbytes.
17298         Remove local emacs_event in handing of ButtonPress event; just use
17299         inev instead (so no reason to copy it later).
17300         Remove `out' label.  Rename label `ret' to `done'; add various
17301         `goto done' to clarify code flow in deeply nested blocks.
17302         (x_dispatch_event): Simplify as handle_one_xevent now calls
17303         kbd_buffer_store_event itself.
17304         (XTread_socket): Remove bufp_r and numcharsp args.  Add hold_quit
17305         arg.  Call handle_one_xevent with new arglist.  Store event from
17306         x_session_check_input in fifo.
17307         [USE_GTK]: Setup current_hold_quit.
17308         Decrement handling_signal before unblocking input.
17309         (x_initialize) [USE_GTK]: Initialize current_count.
17311         * xterm.h (x_session_check_input): Fix prototype.
17313 2004-02-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17315         * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
17317         * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
17318         macgui.h).
17320         * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
17322         * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
17323         (mktime, DEBUG, Z, free, malloc, realloc, max, min)
17324         (init_process) [MAC_OSX]: Avoid conflicts with Carbon/Carbon.h.
17325         [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
17326         (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
17327         (Bitmap): Remove typedef.
17328         (Pixmap): Change int to GWorldPtr.
17330         * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
17332         * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
17333         (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
17334         New #define to extract 16-bit depth color components from unsigned
17335         long representation.
17336         (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
17337         colors used for masks.
17338         (struct mac_display_info): Add color_p.  Remove n_cbits.
17340         * macfns.c: Include sys/types.h and sys/stat.h.
17341         [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
17342         Include QuickTime/QuickTime.h.
17343         (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17344         (XSetForeground, mac_draw_line_to_pixmap): Add externs for
17345         functions defined in macterm.c.
17346         (XImagePtr): New typedef.  Corresponds to XImage * in xfns.c.
17347         (ZPixmap): New #define for compatibility with xfns.c.
17348         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17349         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17350         (find_image_fsspec, image_load_qt_1, image_load_quicktime):
17351         New functions.
17352         (four_corners_best, x_create_x_image_and_pixmap)
17353         (x_destroy_x_image, unwind_create_frame, x_disable_image)
17354         (x_edge_detection, init_color_table, colors_in_color_table)
17355         (lookup_rgb_color, lookup_pixel_color, postprocess_image)
17356         (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
17357         (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
17358         (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
17359         (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
17360         long mixup.
17361         (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
17362         (x_decode_color): Don't use n_cbits (in struct mac_display_info).
17363         (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
17364         (x_set_cursor_type, Fxw_color_values, valid_image_p)
17365         (image_value_type, parse_image_spec, image_ascent, x_clear_image)
17366         (x_alloc_image_color, clear_image_cache, lookup_image)
17367         (x_find_image_file, xbm_read_bitmap_file_data)
17368         (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
17369         (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
17370         (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
17371         (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
17372         (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
17373         (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
17374         (x_make_gc): Sync with xfns.c.  Enclose unused `border_tile' with
17375         #if 0.
17376         (x_free_gcs): Sync with xfns.c.  Enclose unused `border_tile' with
17377         #if 0.  Free white_relief.gc and black_relief.gc.
17378         (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
17379         New functions (from xfns.c).
17380         (Fx_create_frame): Record unwind_create_frame.
17381         (Fxw_display_color_p): Use dpyinfo->color_p.
17382         (Fx_display_grayscale_p, Fx_display_planes): Don't use
17383         dpyinfo->n_cbits.
17384         (Fx_display_color_cells): Use dpyinfo->n_planes;
17385         (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
17386         (Qheuristic, cross_disabled_images, emboss_matrix)
17387         (laplace_matrix): New variables (from xfns.c).
17388         (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
17389         (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
17390         (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
17391         (image_background_transparent): New function (from xfns.c).
17392         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17393         (image_load_quicktime): Add declaration.
17394         [MAC_OSX] (image_load_quartz2d): Likewise.
17395         [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
17396         [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
17397         [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
17398         (xbm_load_image_from_file, x_laplace_read_row)
17399         (x_laplace_write_row, pbm_read_file): Remove functions.
17400         [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
17401         (xpm_load): Sync with xfns.c (although XPM is not supported yet).
17402         (colors_in_color_table): Sync with xfns.c (although not used).
17403         (lookup_rgb_color): Don't lookup color table.  Just do gamma
17404         correction.
17405         (COLOR_INTENSITY): New #define (from xfns.c).
17406         (x_disable_image): New function (from xfns.c).
17407         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17408         (x_build_heuristic_mask): Sync with xfns.c.
17409         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17410         (HAVE_PBM): Remove #ifdef.
17411         (pbm_load): Sync with xfns.c.  Set img->width and img->height
17412         before IMAGE_BACKGROUND.
17413         (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
17414         (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
17415         Don't enclose with #if HAVE_PNG.
17416         [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
17417         symbol _CGImageCreateWithPNGDataProvider is defined.
17418         Otherwise use image_load_quicktime.
17419         [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
17420         [HAVE_PNG] (png_load): Sync with xfns.c.
17421         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
17422         (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
17423         HAVE_JPEG.
17424         (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
17425         (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
17426         [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
17427         [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
17428         [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
17429         (tiff_image_p, tiff_load): Don't enclose declarations with #if
17430         HAVE_TIFF.
17431         (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
17432         (tiff_image_p): Don't enclose with #if HAVE_TIFF.
17433         [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
17434         [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
17435         New functions (from xfns.c).
17436         [HAVE_TIFF] (tiff_load): Sync with xfns.c.
17437         (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
17438         (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
17439         Don't enclose with #if HAVE_GIF.
17440         [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
17441         animated gif.  Otherwise use image_load_quicktime.
17442         [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
17443         gif_DrawText to avoid conflict with QuickdrawText.h.
17444         [HAVE_GIF] (gif_load): Sync with xfns.c.
17445         (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
17446         [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
17447         Ghostscript is not supported yet).
17448         (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
17449         QCmatrix, QCcolor_adjustment, and QCmask.  Add DEFVAR_BOOL
17450         cross_disabled_images (from xfns.c).  Remove #if 0 for supported
17451         image types.  Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
17452         HAVE_PNG.  Add defsubr for Simage_size and Simage_mask_p.
17453         (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
17454         HAVE_PNG.  Call EnterMovies to support animated gifs.
17455         Call init_image_func_pointer to bind a symbol
17456         _CGImageCreateWithPNGDataProvider if it is defined.
17458         * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
17459         (x_draw_bar_cursor): Sync declaration with xterm.c.
17460         (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
17461         (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
17462         graphics).
17463         (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
17464         (mac_draw_line_to_pixmap, XCreatePixmap)
17465         (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
17466         (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
17467         New functions.
17468         (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
17469         Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
17470         Cast bits to char *.
17471         (reflect_byte): New function (from w32fns.c).
17472         (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
17473         due to byte alignment.
17474         (mac_scroll_area) [TARGET_API_MAC_CARBON]:
17475         Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
17476         (XSetForeground): Remove static (now used in macfns.c).
17477         (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
17478         (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
17479         (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
17480         (x_draw_glyph_string_box, x_draw_image_foreground)
17481         (x_draw_image_foreground_1, x_draw_image_glyph_string)
17482         (x_draw_stretch_glyph_string, x_draw_glyph_string)
17483         (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
17484         Sync with xterm.c.
17485         (x_draw_relief_rect): Sync with xterm.c.  Make 1 pixel shorter
17486         than the xterm.c version when a strictly horizontal or vertical
17487         line is drawn.
17488         (XTset_terminal_window): Add static.
17489         (x_make_frame_visible): Add UNBLOCK_INPUT.
17490         (x_free_frame_resources): New funcion (from xterm.c).
17491         (XTread_socket): Call handle_tool_bar_click if mouse up/down event
17492         occurs in tool bar area.
17493         (mac_initialize_display_info): Remove dpyinfo->n_cbits.
17494         Set dpyinfo->color_p.  Determine dpyinfo->n_planes using HasDepth.
17495         Initialize image cache.
17496         (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
17497         Enclose unused functions with #if 0.
17498         (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
17499         (decode_mac_font_name): New function to apply code conversions
17500         from a mac font name to an XLFD font name according to its script code.
17501         (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
17502         font name to a mac font name according to REGISTRY and ENCODING fields.
17503         (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
17504         whose name starts with `.'.
17505         (init_font_name_table): Use decode_mac_font_name.  Add both
17506         jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
17507         of a font is smJapanese.
17508         (mac_do_list_fonts): New function to list fonts that match a given
17509         pattern.
17510         (x_list_fonts, XLoadQueryFont): Use it.
17511         (XLoadQueryFont): Set rbearing field for each variable width
17512         character to avoid needless redraw.
17513         (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
17515 2004-02-26  Kim F. Storm  <storm@cua.dk>
17517         * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
17518         as read_socket_hook handler on X aborts if buffer is too small
17519         and W32 handler doesn't always check buffer limit.
17521         * xdisp.c (handle_single_display_prop): Handle left-fringe and
17522         right-fringe similar to a display margin image.  Specifically,
17523         the characters having the fringe prop are no longer shown, and
17524         we use IT_IMAGE/next_element_from_image with image_id = -1 to
17525         do this.  Set fringe bitmap face_id in it->face_id.
17526         (produce_image_glyph): Handle image_id < 0 as "no image" case, but
17527         still realize it->face (i.e. the fringe bitmap face).
17529 2004-02-25  Miles Bader  <miles@gnu.org>
17531         * xdisp.c (check_it): Check string/string_pos consistency.
17532         (init_iterator): Initialize string-related fields properly.
17534 2004-02-11  Miles Bader  <miles@gnu.org>
17536         * xdisp.c (produce_image_glyph): Force negative descents to zero.
17538 2004-02-10  Miles Bader  <miles@gnu.org>
17540         * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
17541         BLOCK_INPUT can be nested, so it doesn't make much sense.
17543 2004-02-24  Michael Mauger  <mmaug@yahoo.com>
17545         * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
17546         (xbm_read_bitmap_data): Use unsigned char for image data.
17548 2004-02-23  Luc Teirlinck  <teirllm@auburn.edu>
17550         * abbrev.c (Finsert_abbrev_table_description): Doc fix.
17552 2004-02-22  Jason Rumney  <jasonr@gnu.org>
17554         * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
17555         correctly over other bitmaps.
17557 2004-02-21  Eli Zaretskii  <eliz@gnu.org>
17559         * emacs.c (USAGE1): Split into two halves.
17560         (USAGE2): Second half of the old USAGE1.
17561         (USAGE3): Rename from USAGE2.
17562         (USAGE4): Rename from USAGE3.
17564 2004-02-21  Juri Linkov  <juri@jurta.org>
17566         * emacs.c (USAGE1): Add --no-desktop.  Move --display from USAGE2.
17567         Fix --multibyte.  Move --help, --version to USAGE2.  Add alias
17568         --file.  Fix -f, -l.  Sort options.  Untabify.
17569         (USAGE2): Add -hb.  Fix --name, --title.  Sort options.  Untabify.
17571 2004-02-19  Luc Teirlinck  <teirllm@auburn.edu>
17573         * category.c (Fdefine_category, Fcategory_docstring)
17574         (Fget_unused_category, Fset_category_table)
17575         (Fcategory_set_mnemonics): Doc fixes.
17577 2004-02-20  Kim F. Storm  <storm@cua.dk>
17579         * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
17580         The following changes are relative to the 2004-01-21 revision.
17581         (NREAD_INPUT_EVENTS): Define as max number of input events to read
17582         in one call to read_socket_hook.  Value is 8.
17583         (read_avail_input): Separate and rework handling of read_socket_hook
17584         and non-read_socket_hook cases.  Use smaller input_event buffer
17585         in read_socket_hook case, and repeat if full buffer is read.
17586         Use new local variable 'discard' to skip input after C-g.
17587         In non-read_socket_hook case, just use a single input_event, and
17588         call kbd_buffer_store_event on the fly for each character.
17590 2004-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
17592         * lisp.h (union Lisp_Object): Give a more precise type for `type'.
17593         Remove unused `gu' alternative.
17595 2004-02-19  Andreas Schwab  <schwab@suse.de>
17597         * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
17598         warning.
17600 2004-02-18  Kim F. Storm  <storm@cua.dk>
17602         * xdisp.c (get_window_cursor_type, display_and_set_cursor):
17603         Fix last change.
17605 2004-02-17  Kim F. Storm  <storm@cua.dk>
17607         * xdisp.c (fast_find_position): Fix return value of new version;
17608         it was inverted compared to the 21.1 version.
17609         (get_window_cursor_type): Don't look at glyph if NULL.
17610         (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
17612         * keyboard.c: Rework previous change; it didn't consider that the
17613         buf array was allocated on the stack.
17614         (prev_read): Remove variable.
17615         (read_avail_input_buf): New static event buffer array.
17616         (in_read_avail_input): New static variable to handle re-entrancy.
17617         (read_avail_input): Change buf to pinter to read_avail_input_buf.
17618         Use in_read_avail_input to handle re-entrance; when re-entered,
17619         fully initialize and use tmp_buf array instead of read_avail_input_buf.
17620         Do not initialize read_avail_input_buf in full here; instead assume it
17621         is always cleared on entry.  To ensure that, we clear (just) the
17622         entries that were used before we return.
17623         (init_keyboard): Initialize read_avail_input_buf here.
17625 2004-02-16  Jesper Harder  <harder@ifa.au.dk>
17627         * cmds.c (Fend_of_line): Doc fix.
17629 2004-02-16  Dmitry Antipov  <dmitry.antipov@mail.ru>  (tiny change)
17631         * keyboard.c (prev_read): New static variable.
17632         (read_avail_input): Use it to zero out only those slots in buf[]
17633         that were used last time we were called.
17635 2004-02-16  Eli Zaretskii  <eliz@gnu.org>
17637         * Makefile.in (obj): Move fringe.o from here...
17638         (XOBJ, MAC_OBJ): ...to here.
17640 2004-02-16  Stephen Eglen  <stephen@gnu.org>
17642         * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
17644 2004-02-15  Stefan Monnier  <monnier@iro.umontreal.ca>
17646         * data.c (Fbyteorder):
17647         * fringe.c (Fdefine_fringe_bitmap):
17648         * xdisp.c (handle_single_display_prop):
17649         * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
17651 2004-02-16  Jason Rumney  <jasonr@gnu.org>
17653         * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
17655 2004-02-15  Steven Tamm  <steventamm@mac.com>
17657         * macterm.c (Vmac_emulate_three_button_mouse): New variable for
17658         controlling emulation of a three button mouse with option and
17659         command keys.
17660         (Qreverse, mac_get_enumlated_btn): Handle the emulation.
17661         (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
17663 2004-02-15  Kim F. Storm  <storm@cua.dk>
17665         * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
17667         * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
17668         Perform byte-swapping.
17670 2004-02-14  Kim F. Storm  <storm@cua.dk>
17672         * dispextern.h (struct draw_fringe_bitmap_params): Change member
17673         bits from char to short to facilitate wider bitmaps.
17674         (struct redisplay_interface): Fix prototype of define_fringe_bitmap
17675         member.
17677         * fringe.c (struct fringe_bitmap): Change member bits from char to
17678         short to facilitate 16 bits wide bitmaps.  Modify all standard
17679         bitmaps accordingly.
17680         (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
17681         (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
17682         (draw_fringe_bitmap): Ditto.
17683         (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
17684         (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
17685         handle up to 16 bits wide bitmaps.
17686         (Fdefine_fringe_bitmap): Doc fix.  Handle wider bitmaps.
17687         (Ffringe_bitmaps_at_pos): Add missing arg declarations.
17689         * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
17690         (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
17691         need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
17693         * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
17694         so it is no longer necessary to expand them here.
17696         * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
17698 2004-02-12  Kim F. Storm  <storm@cua.dk>
17700         * window.c (Fwindow_fringes): Doc fix.
17702 2004-02-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17704         * xselect.c (x_get_foreign_selection): Add new optional parameter
17705         time_stamp.
17706         (Fx_get_selection_internal): Ditto, pass time_stamp to
17707         x_get_foreign_selection.
17709         * data.c (Fbyteorder): New function.
17711 2004-02-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17713         * atimer.c: Move include stdio.h to same place as in other files.
17715         * region-cache.c: Ditto.
17717         * sysdep.c: Ditto.
17719         * xfaces.c: Ditto.
17721 2004-02-09  Sam Steingold  <sds@gnu.org>
17723         * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
17725 2004-02-09  Kim F. Storm  <storm@cua.dk>
17727         * fringe.c: New file.  Move original fringe related declarations
17728         and code from dispextern.h and xdisp.c here.
17729         Rework code to support user defined fringe bitmaps, redefining
17730         standard bitmaps, ability to overlay user defined bitmap with
17731         overlay arrow bitmap, and add faces to bitmaps.
17732         (Voverflow_newline_into_fringe): Declare here.
17733         (enum fringe_bitmap_align): New enum.
17734         (..._bits): All bitmaps are now defined without bitswapping; that
17735         is now done in init_fringe_once (if necessary).
17736         (standard_bitmaps): New array with specifications for the
17737         standard fringe bitmaps.
17738         (fringe_faces): New array.
17739         (valid_fringe_bitmap_id_p): New function.
17740         (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
17741         (draw_fringe_bitmap): New function which draws fringe bitmap,
17742         possibly overlaying bitmap with cursor in right fringe or the
17743         overlay arrow in the left fringe.
17744         (update_window_fringes): Do not handle overlay arrow here.
17745         Compare and copy fringe bitmap faces.
17746         (init_fringe_bitmap): New function.
17747         (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
17748         define and destroy user defined fringe bitmaps.
17749         (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
17750         (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
17751         (syms_of_fringe): New function.  Defsubr new DEFUNs.
17752         DEFVAR_LISP Voverflow_newline_into_fringe.
17753         (init_fringe_once, init_fringe): New functions.
17754         (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
17756         * Makefile.in (obj): Add fringe.o.
17757         (fringe.o): New dependencies.
17759         * dispextern.h (FRINGE_ID_BITS): New definition for number of
17760         bits allocated to hold a fringe number.  Increase number of bits
17761         from 4 to 8 to allow user defined fringe bitmaps.
17762         (struct glyph_row, struct it): New members left_user_fringe_bitmap,
17763         left_user_fringe_face_id, right_user_fringe_bitmap,
17764         right_user_fringe_face_id.
17765         (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
17766         Move to new file fringe.c.
17767         (MAX_FRINGE_BITMAPS): Define here.
17768         (struct draw_fringe_bitmap_params): New members bits, cursor_p,
17769         and overlay_p.  Change member which to int.
17770         (struct redisplay_interface): New members define_fringe_bitmap
17771         and destroy_fringe_bitmap.
17772         (valid_fringe_bitmap_id_p): Add prototype.
17773         (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
17775         * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
17776         arrows.
17777         (update_frame): Do flush_display if force_flush_display_p to
17778         ensure display (specifically fringes) are updated in a timely
17779         manner when resizing the frame by dragging the mouse.
17780         (update_window_line): Update row if overlay arrow changed.
17781         (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
17782         or overlay arrow changed.
17784         * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
17785         syms_of_fringe, and init_fringe.
17787         * frame.h (struct frame): New member force_flush_display_p.
17789         * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
17790         Add prototypes.
17792         * macterm.c (mac_draw_bitmap): Add overlay_p arg.
17793         (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
17794         thanks to YAMAMOTO Mitsuharu for advice on how to do this.
17795         Use cursor color for displaying cursor in fringe.
17796         (x_redisplay_interface): Add null handlers for
17797         define_fringe_bitmap and destroy_fringe_bitmap functions.
17799         * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
17800         xterm.c to handle overlayed fringe bitmaps and to use cursor color
17801         for displaying cursor in fringe.
17802         (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
17803         specific functions to define and destroy fringe bitmaps in fringe_bmp.
17804         (w32_redisplay_interface): Add them to redisplay_interface.
17805         (w32_term_init): Call w32_init_fringe instead of explicitly
17806         defining fringe bitmaps in fringe_bmp array.
17807         (x_delete_display): Call w32_reset_fringes instead of explicitly
17808         destroying fringe bitmaps in fringe_bmp array.
17810         * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
17811         (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
17812         (continued_bits, continuation_bits, ov_bits, first_line_bits)
17813         (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
17814         (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
17815         (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
17816         (draw_window_fringes, compute_fringe_widths, update_window_fringes):
17817         Move fringe handling vars and code to new file fringe.c.
17818         (handle_display_prop): Handle left-fringe and right-fringe
17819         display properties; store user fringe bitmaps in iterator.
17820         (move_it_in_display_line_to): Handle cursor in fringe at eob.
17821         (clear_garbaged_frames): Set force_flush_display_p if resized.
17822         (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
17823         (display_line): Handle cursor in fringe at eob.
17824         (display_line): Set row user fringe bitmaps from iterator.
17826         * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
17827         Use cursor color for displaying cursor in fringe.
17828         (x_redisplay_interface): Add null handlers for
17829         define_fringe_bitmap and destroy_fringe_bitmap functions.
17831 2004-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17833         * macfns.c (Fx_change_window_property): Make doc string and
17834         parameters same as for X version.
17836         * w32fns.c (Fx_change_window_property): Ditto.
17838 2004-02-07  Kim F. Storm  <storm@cua.dk>
17840         * xdisp.c (hscroll_window_tree): Position cursor near to right
17841         margin in hscrolled window when jumping to end of line (rather
17842         than centering cursor).
17844         * process.c (wait_reading_process_input): Don't do adaptive read
17845         buffering if waiting for a specific process.
17847 2004-02-05  Luc Teirlinck  <teirllm@auburn.edu>
17849         * minibuf.c (Fminibufferp, Fread_from_minibuffer)
17850         (Fread_minibuffer, Feval_minibuffer)
17851         (Fread_string, Fread_no_blanks_input)
17852         (Fcompleting_read): Doc fixes.
17853         (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
17854         completion-regexp-list.  Define Qcase_fold_search and staticpro it.
17855         (read_minibuf): Fix initial comment.
17856         (Ftry_completion, Fall_completions, Ftest_completion): Bind
17857         case-fold-search to the value of completion-ignore-case when
17858         checking completion-regexp-list.
17859         (Fdisplay_completion_list): Make it handle arguments that are
17860         symbols.  Doc fix.
17862 2004-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17864         * xterm.h: Add declaration of free_frame_menubar.
17866         * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
17867         (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
17868         (Fx_change_window_property): Add declaration of parameters type and
17869         format.  Remove unused variable cons.
17871         * xselect.c: Include stdio.h.
17873 2004-02-05  Kenichi Handa  <handa@m17n.org>
17875         * fns.c (Fset_char_table_range): Fix previous change.
17877         * buffer.c (Fset_buffer_multibyte): Fix docstring.
17879 2004-02-04  Luc Teirlinck  <teirllm@auburn.edu>
17881         * editfns.c (Fchar_after, Fchar_before): Doc fixes.
17883 2004-02-04  Stefan Monnier  <monnier@iro.umontreal.ca>
17885         * keymap.c (Vmouse_events): Rename from Vmenu_events.
17886         (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
17888 2004-02-04  Kenichi Handa  <handa@m17n.org>
17890         * fns.c (Fset_char_table_range): Handle charsets ascii,
17891         eight-bit-control, and eight-bit-graphic correctly.
17893 2004-02-03  Jason Rumney  <jasonr@gnu.org>
17895         * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
17897         * w32fns.c (x_to_w32_font): Likewise.
17899 2004-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17901         * xterm.h: Add x_handle_dnd_message, x_check_property_data,
17902         x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
17904         * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
17905         ClientMessages.
17907         * xselect.c: Include termhooks.h and X11/Xproto.h.
17908         (x_check_property_data, x_fill_property_data)
17909         (x_property_data_to_lisp, mouse_position_for_drop)
17910         (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
17911         (Fx_send_client_event): Move here from xfns.c.
17912         (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
17914         * xfns.c (x-send-client-message): Move to xselect.c.
17915         (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
17916         OUTER_P.
17917         (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
17918         VECTOR_RET_P.  Handle AnyPropertyType.  Call x_property_data_to_lisp
17919         if vector_ret_p is true.
17920         (syms_of_xfns): Sx_send_client_message moved to xselect.c.
17922 2004-02-02  Eli Zaretskii  <eliz@gnu.org>
17924         * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
17925         basename of FILE relative to it, not FILE itself.
17927 2004-02-02  Kenichi Handa  <handa@m17n.org>
17929         * coding.c (coding_restore_composition): Check invalid
17930         composition data more rigidly.
17932 2004-01-30  Luc Teirlinck  <teirllm@auburn.edu>
17934         * fileio.c (Fread_file_name_internal): Correctly handle the case
17935         where insert-default-directory is nil.
17936         (Fread_file_name): Always return an empty string if the user exits
17937         with an empty minibuffer.  Adapt the docstring accordingly.
17938         (syms_of_fileio): Adapt the docstring of insert-default-directory
17939         to the change in Fread_file_name.
17941 2004-01-29  Eli Zaretskii  <eliz@gnu.org>
17943         * alloca.c [!alloca]: Fix the prototype for xfree.
17945 2004-01-29  Kenichi Handa  <handa@m17n.org>
17947         * fns.c (string_char_to_byte): Optimize for ASCII only string.
17948         (string_byte_to_char): Likewise.
17950 2004-01-28  Peter Runestig  <peter@runestig.com>
17952         * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
17954 2004-01-27  Steven Tamm  <steventamm@mac.com>
17956         * unexmacosx.c (unexec_copy): Do not copy more than was
17957         requested to prevent overwriting during unexec.
17959 2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17961         * process.c (sigchld_handler): Add comment about not calling malloc.
17963         * process.h: Add extern to synch_process_termsig.
17965 2004-01-27  Steven Tamm  <steventamm@mac.com>
17967         * macterm.c (make_mac_frame, make_mac_terminal_frame):
17968         Move setting of scroll bars from make_mac_frame to
17969         make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
17971 2004-01-26  Richard M. Stallman  <rms@gnu.org>
17973         * search.c (Freplace_match): Handle nonexistent
17974         back-references properly.
17976 2004-01-03  Richard M. Stallman  <rms@gnu.org>
17978         * window.c (decode_any_window): New function.
17979         (Fwindow_height, Fwindow_width, Fwindow_edges)
17980         (Fwindow_pixel_edges, Fwindow_inside_edges)
17981         (Fwindow_inside_pixel_edges): Use decode_any_window.
17983 2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17985         * process.h: synch_process_termsig new variable.
17987         * callproc.c: Define synch_process_termsig.
17988         (Fcall_process): Initiate synch_process_termsig to zero and
17989         check if non-zero and get signal name after subprocess has ended.
17991         * process.c (sigchld_handler): Set synch_process_termsig
17992         if terminated by a signal.  synch_process_death setting removed.
17994         * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
17996 2004-01-26  Andreas Schwab  <schwab@suse.de>
17998         * print.c (print_preprocess): Declare size as EMACS_INT to not
17999         lose bits.
18000         (print_object): Likewise.
18001         * alloc.c (Fpurecopy): Likewise.
18003 2004-01-25  Luc Teirlinck  <teirllm@auburn.edu>
18005         * window.c (Fwindow_minibuffer_p): Doc fix.
18007 2004-01-24  Jonathan Yavner  <jyavner@member.fsf.org>
18009         * editfns.c (Fformat): Make both passes accept the same set of flags.
18011 2004-01-23  Kenichi Handa  <handa@m17n.org>
18013         * fns.c (Fmd5): If OBJECT is a buffer different from the current
18014         one, set buffer to OBJECT temporarily.
18016 2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
18018         * keyboard.c (kbd_buffer_gcpro): Remove.
18019         (kbd_buffer_store_event, clear_event, Fdiscard_input)
18020         (stuff_buffered_input, init_keyboard, syms_of_keyboard):
18021         Don't initialize and/or maintain the variable any more.  It was made
18022         redundant by my commit of 2003-06-15.
18024         * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
18026 2004-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18028         * lisp.h: Add undef DECL_ALIGN.
18030 2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
18032         * process.c (wait_reading_process_input) [SYNC_INPUT]:
18033         Check interrupt_input_pending explicitly.
18035         * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
18037         * keyboard.c (handle_async_input): New fun,
18038         extracted from input_available_signal.
18039         (input_available_signal, reinvoke_input_signal): Use it.
18041 2004-01-20  Stefan Monnier  <monnier@iro.umontreal.ca>
18043         * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
18045         * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
18046         manipulation macros for when tags are in the lower bits.
18047         (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
18048         (DECL_ALIGN): New macro.
18049         (DEFUN): Use it.
18051         * lisp.h [ENABLE_CHECKING]: Don't force union type.
18053         * s/darwin.h (__attribute__): Remove outdated workaround.
18055         * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
18057         * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
18058         Don't check range of malloc address.
18059         (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
18061         * process.c (wait_reading_process_input): Lisp_Object/int mixup.
18063         * dired.c (Ffile_attributes): Lisp_Object/int mixup.
18065 2004-01-19  Kenichi Handa  <handa@m17n.org>
18067         * fontset.c (fontset_font_pattern): Fix previous change.
18069 2004-01-16  Miles Bader  <miles@gnu.ai.mit.edu>
18071         * xdisp.c (Voverflow_newline_into_fringe)
18072         (move_it_in_display_line_to, redisplay_internal)
18073         (update_window_fringes, redisplay_window, display_line, window):
18074         Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
18075         that it compiles without a window-system.
18076         * dispnew.c (direct_output_for_insert, update_window): Likewise.
18078 2004-01-16  Kim F. Storm  <storm@cua.dk>
18080         * buffer.h (struct buffer): New member indicate_buffer_boundaries.
18082         * buffer.c (init_buffer_once): Set buffer_defaults and
18083         buffer_local_flags for indicate_buffer_boundaries.
18084         (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
18085         default- variable for it.
18087         * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
18088         right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
18089         New members exact_window_width_line_p and cursor_in_fringe_p for
18090         overflowing newlines into right fringe.
18091         New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
18092         and indicate_bottom_line_p for buffer boundaries and scrolling.
18093         (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
18094         FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
18095         HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
18096         and HOLLOW_SQUARE_BITMAP.
18097         (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
18098         Add prototypes.
18100         * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
18101         instead of related indicator fields.
18102         Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
18103         (direct_output_for_insert): Handle exact width lines like
18104         contined lines.  Call update_window_fringes.
18105         (update_window): Call update_window_fringes.
18106         (scrolling_window): Don't skip desired rows with changed bitmaps.
18107         Check if fringe bitmaps changes when assigning scrolled rows.
18109         * xdisp.c (Voverflow_newline_into_fringe): New variable.
18110         (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
18111         (move_it_in_display_line_to): Overflow newline into fringe for
18112         rows that are exactly as wide as the window.
18113         (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
18114         (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
18115         (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
18116         (fringe_bitmaps): Add new bitmaps.
18117         (draw_fringe_bitmap): Make extern.  Remove WHICH arg.
18118         Select proper bitmap for cursor in fringe when appropriate.
18119         Handle alignment of bitmap to top or bottom of row.
18120         (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
18121         done by update_window_fringes.
18122         (update_window_fringes, draw_window_fringes): New functions.
18123         (redisplay_internal): Call update_window_fringes in case only
18124         cursor row is updated.
18125         (redisplay_window): Call update_window_fringes.
18126         Explicitly call draw_window_fringes if redisplay was done using
18127         the current matrix or the overlay arrow is in the window.
18128         (try_window_reusing_current_matrix): Mark scrolled rows for
18129         fringe update (to update buffer-boundaries / scrolling icons).
18130         (find_last_unchanged_at_beg_row): Handle exact width lines line
18131         continued lines.
18132         (display_line): Overflow newline into fringe for rows that are
18133         exactly as wide as the window.  Don't append space for newline
18134         in this case.
18135         (notice_overwritten_cursor): Explicitly clear cursor bitmap
18136         in fringe as if it had been overwritten.
18137         (erase_phys_cursor): Erase cursor bitmap in fringe.
18138         (syms_of_xdisp): Mark show-trailing-whitespace and
18139         void-text-area-pointer as user options.
18140         DEFVAR_LISP Voverflow_newline_into_fringe.  Enable by default.
18142         * xterm.c (x_update_window_end): Call draw_window_fringes.
18143         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
18144         in row instead of actually drawing fringe bitmaps.
18145         (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
18146         (x_draw_window_cursor): Draw cursor in fringe.
18148         * w32term.c (x_update_window_end): Call draw_window_fringes.
18149         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
18150         in row instead of actually drawing fringe bitmaps.
18151         (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
18152         (w32_draw_window_cursor): Draw cursor in fringe.
18154         * macterm.c (x_update_window_end): Call draw_window_fringes.
18155         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
18156         in row instead of actually drawing fringe bitmaps.
18157         (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
18158         (mac_draw_window_cursor): Draw cursor in fringe.
18160 2004-01-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18162         * xterm.c (handle_one_xevent): Don't handle characters that are part
18163         of an old style (XLookupString) compose sequence.
18165 2004-01-15  Kenichi Handa  <handa@m17n.org>
18167         * search.c (Freplace_match): Use make_multibyte_string or
18168         make_unibyte_string according to the buffer multibyteness.
18170 2004-01-14  Stefan Monnier  <monnier@iro.umontreal.ca>
18172         * alloc.c (struct interval_block, struct string_block)
18173         (struct symbol_block, struct marker_block, live_string_p)
18174         (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
18175         Better preserve alignment for objects in blocks.
18176         (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
18178         * lread.c (defvar_per_buffer): Remove dead declaration.
18180         * macterm.c (do_check_ram_size): Don't hardcode the lisp address
18181         space size.
18183 2004-01-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18185         * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
18186         if a key press should pop down.  Only pop down if a key is pressed
18187         outside the menu/dialog.
18188         (create_and_show_popup_menu): Pass 0 for down_on_keypress to
18189         popup_get_selection.
18190         (create_and_show_dialog): Pass 1 for down_on_keypress to
18191         popup_get_selection.
18193 2004-01-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18195         * alloc.c (allocate_vectorlike): Surround calls to mallopt with
18196         BLOCK/UNBLOCK_INPUT.
18198 2004-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18200         * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
18201         specified.
18203 2004-01-08  Kenichi Handa  <handa@m17n.org>
18205         * editfns.c (Fformat): Fix '&' to '&&'.
18207 2004-01-08  Andreas Schwab  <schwab@suse.de>
18209         * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
18210         size if PSEUDOVECTOR_FLAG is set.
18212 2004-01-07  Kenichi Handa  <handa@m17n.org>
18214         * charset.c (Fdeclare_equiv_charset): Fix docstring.
18216         * fontset.c (fontset_ref_via_base): Fix previous change.
18218 2004-01-07  Kim F. Storm  <storm@cua.dk>
18220         * process.c (read_process_output): Only activate adaptive
18221         buffering if we read less than 256 bytes at a time.
18223 2004-01-06  Kim F. Storm  <storm@cua.dk>
18225         * dispnew.c (buffer_posn_from_coords): Return both buffer/string
18226         object and image object.  Return glyph width and height.
18227         (mode_line_string, marginal_area_string): Ditto.
18229         * dispextern.h (buffer_posn_from_coords, mode_line_string)
18230         (marginal_area_string): Fix prototypes.
18232         * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
18233         POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN.  All uses changed.
18234         (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
18236         * keyboard.c (make_lispy_position): Use modified mode_line_string,
18237         buffer_posn_from_coords, and marginal_area_string functions to
18238         include both string object and image object in the lispy position.
18239         Also add actual glyph width and height to position.
18240         (read_key_sequence): Use real buffer position from mouse
18241         event to find keymap property even when click is in marginal area.
18243         * xdisp.c (note_mode_line_or_margin_highlight): Use modified
18244         mode_line_string and marginal_area_string functions to handle
18245         both string object and image object properties.
18247 2004-01-06  Andreas Schwab  <schwab@suse.de>
18249         * syntax.c (skip_chars): Treat '-' at end of string as ordinary
18250         character.
18252 2004-01-02  Andreas Schwab  <schwab@suse.de>
18254         * macterm.c (emacs_options, x_initialized, same_x_server):
18255         Remove unused (and duplicated) definitions.
18257 2004-01-02  Kim F. Storm  <storm@cua.dk>
18259         * process.h (struct Lisp_Process): New members for adaptive read
18260         buffering: adaptive_read_buffering, read_output_delay, and
18261         read_output_skip.
18263         * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
18264         (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
18265         (READ_OUTPUT_DELAY_MAX_MAX): New constants.
18266         (process_output_delay_count, process_output_skip): New vars.
18267         (Vprocess_adaptive_read_buffering): New variable.
18268         (make_process): Initialize adaptive read buffering members.
18269         (Fstart_process): Set adaptive_read_buffering member.
18270         (deactivate_process): Cleanup adaptive read buffering.
18271         (wait_reading_process_input): Temporarily omit delayed
18272         subprocesses from the set of file descriptors to read from;
18273         adjust the select timeout if we skipped any subprocesses.
18274         (read_process_output): Increase adaptive read buffering delay if
18275         we read less than a full buffer; reduce delay when we read a
18276         full buffer.
18277         (send_process): Simplify using local Lisp_Process var.
18278         Reset adaptive read buffering delay after write.
18279         (init_process): Initialize process_output_delay_count and
18280         process_output_skip.
18281         (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
18283 2004-01-01  Jason Rumney  <jasonr@gnu.org>
18285         * w32term.c (w32_text_out): Use s->font, for consistency with callers.
18287 2003-12-30  Luc Teirlinck  <teirllm@auburn.edu>
18289         * print.c (Ferror_message_string): Add hyperlink in the docstring
18290         to the definition of `signal' in the Elisp manual.
18291         * eval.c (Fsignal): Ditto.
18293 2003-12-29  James Clark  <jjc@jclark.com>
18295         * fns.c (internal_equal): Return t for two NaN arguments.
18297 2003-12-29  Richard M. Stallman  <rms@gnu.org>
18299         * data.c (store_symval_forwarding): Handle setting
18300         default-fill-column, etc., by changing the value in
18301         buffers that use the default.
18303         * minibuf.c (Fset_minibuffer_window): Doc fix.
18305         * fileio.c (choose_write_coding_system): Ignore auto_saving
18306         if using the visited file for auto saves.
18307         (Fwrite_region): Don't update SAVE_MODIFF
18308         if auto-saving in visited file.
18310 2003-12-29  Kenichi Handa  <handa@m17n.org>
18312         * dispextern.h (face_font_available_p): Extern it.
18314         * fontset.c (Voverriding_fontspec_alist): New variable.
18315         (lookup_overriding_fontspec): New function.
18316         (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
18317         (fontset_font_pattern): Likewise.
18318         (regulalize_fontname): New function.
18319         (Fset_fontset_font): Call regulalize_fontname.
18320         (Fset_overriding_fontspec_internal): New function.
18321         (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
18322         Defsubr Sset_overriding_fontspec_internal.
18324         * xfaces.c (face_font_available_p): New function.
18326 2003-12-28  Richard M. Stallman  <rms@gnu.org>
18328         * buffer.c (Fother_buffer): Don't crash if BUF is nil
18329         or if its name is nil.
18331         * buffer.c (Fkill_buffer): Don't delete auto-save file
18332         if it's the same as the visited file.
18334 2003-12-28  Luc Teirlinck  <teirllm@auburn.edu>
18336         * coding.c (Fcheck_coding_system): Doc fix.
18338 2003-12-28  Kim F. Storm  <storm@cua.dk>
18340         * Makefile.in (eval.o): Depend on dispextern.h.
18342         * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
18343         image glyph using image's ascent.
18344         (mode_line_string): Return image glyph as object clicked on.
18345         Adjust y0 for image glyph using image's ascent.
18347         * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
18348         (struct glyph): New members, ascent and descent.  Used to save
18349         this glyph's ascent and descent, instead of having.
18350         (struct glyph): Declare member face_id using FACE_ID_BITS.
18351         (find_hot_spot): Add prototype.
18353         * keyboard.c (Qimage): Remove extern (now in lisp.h).
18354         (QCmap): Declare extern.
18355         (make_lispy_position): When position is inside image hot-spot,
18356         use hot-spot element's id as posn element.
18358         * lisp.h (IMAGEP): New macro to test for image object type.
18359         (Qimage): Declare extern.
18361         * macfns.c (Qimage): Remove extern (now in lisp.h).
18362         (valid_image_p, parse_image_spec): Use IMAGEP macro.
18364         * macterm.c (Qface, Qmouse_face): Remove unused externs.
18366         * w32fns.c (Qimage): Remove extern (now in lisp.h).
18367         (valid_image_p, parse_image_spec): Use IMAGEP macro.
18369         * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
18371         * w32term.c (Qface, Qmouse_face): Remove unused externs.
18373         * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
18374         pointer types.
18375         (Qrelative_width, Qalign_to): Remove unused variables.
18376         (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
18377         (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
18378         maps.
18379         (x_y_to_hpos_vpos): Return glyph relative coordinates through new
18380         dx and dy args.  Remove buffer_only_p arg (always 0).  Simplify
18381         code accordingly.
18382         (get_glyph_string_clip_rect): Draw cursor using glyph's rather
18383         than row's ascent and height, to get sensible height on tall rows.
18384         (build_desired_tool_bar_string): Remove Qimage extern.
18385         (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
18386         (produce_image_glyph): Adjust it.ascent to minimum row ascent if
18387         image glyph is alone on the last line.
18388         (append_glyph, append_composite_glyph, produce_image_glyph)
18389         (append_stretch_glyph): Set glyph's ascent and descent.
18390         (on_hot_spot_p): New function to check if position is inside an
18391         rectangular, circular, or polygon-shaped image hot-spot,
18392         (find_hot_spot): New function to search for image hot-spot.
18393         (Flookup_image_map): New defun to search for image hot-spot.
18394         (define_frame_cursor1): New aux function to determine frame
18395         pointer.
18396         (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
18397         `pointer' text property and :pointer image property to control
18398         frame pointer shape.  Detect image hot-spots for pointer and
18399         help_echo properties.  Use define_frame_cursor1.
18400         (note_mouse_highlight): Use Vvoid_text_area_pointer.
18401         (syms_of_xdisp): Defsubr new defun.  Intern and staticpro new
18402         variables.  DEFVAR_LISP Vvoid_text_area_pointer instead of
18403         Vshow_text_cursor_in_void.
18405         * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
18407         * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
18408         (Qimage): Remove extern (now in lisp.h).
18409         (valid_image_p, parse_image_spec): Use IMAGEP macro.
18411         * xmenu.c (show_help_event): Remove unused code.
18413         * xterm.c (Qface, Qmouse_face): Remove unused externs.
18414         (x_draw_hollow_cursor): Draw cursor using glyph's rather than
18415         row's ascent and descent, to get a sensible height on tall rows.
18417 2003-12-25  Luc Teirlinck  <teirllm@auburn.edu>
18419         * minibuf.c (Fcompleting_read): Undo previous change.
18421 2003-12-25  Lars Hansen  <larsh@math.ku.dk>
18423         * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
18424         Arguments GCPRO'ed in call to file name handler.
18426 2003-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
18428         * termcap.c (tgetst1): Scan for "%pN"; if all
18429         N are continuous in [1,9], remove all "%pN".
18431 2003-12-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18433         * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
18435         * xfaces.c (lface_fully_specified_p): Take into account that
18436         MAC OS always have unspecified stipple.
18438 2003-12-24  Thien-Thi Nguyen  <ttn@gnu.org>
18440         * tparam.c (tparam1): Add handling for `%pN', which
18441         means use param N for the next substitution.
18443 2003-12-24  Thien-Thi Nguyen  <ttn@gnu.org>
18445         * xfaces.c (Fcolor_gray_p): Fix omission bug:
18446         In case `frame' is nil, consult the selected frame.
18447         (Fcolor_supported_p): Likewise.
18449 2003-12-23  Luc Teirlinck  <teirllm@auburn.edu>
18451         * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
18452         Doc fixes.
18454         * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
18455         and an integer.  Adapt the introductory comment accordingly.
18456         (Fread_from_minibuffer): Delete code moved into read_minibuf.
18457         Doc fix.
18458         (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
18459         read_minibuf.
18460         (Fcompleting_read): Delete code moved into read_minibuf.
18461         (Ftest_completion): Make it handle obarrays and hash tables correctly.
18463 2003-12-03  Kenichi Handa  <handa@m17n.org>
18465         * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
18466         encoding sequence.
18468 2003-12-01  Kenichi Handa  <handa@m17n.org>
18470         * composite.c (syms_of_composite): Don't make the compostion hash
18471         table week.
18473 2003-11-30  Luc Teirlinck  <teirllm@auburn.edu>
18475         * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
18476         * textprop.c (Fget_char_property_and_overlay): New function.
18477         (syms_of_textprop): Defsubr it.
18479 2003-11-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18481         * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
18482         to compile on terminal configuration.
18484         * fileio.c (Fread_file_name): Check use_file_dialog also before
18485         calling Fx_file_dialog.
18487         * fns.c (use_file_dialog): New variable.
18488         (syms_of_fns): DEFVAR_BOOL use-file-dialog.
18490 2003-11-29  Kim F. Storm  <storm@cua.dk>
18492         * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
18493         (syms_of_msdos): Don't intern and staticpro them.
18495 2003-11-27  Kim F. Storm  <storm@cua.dk>
18497         * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
18498         coordinates relative to glyph at posn.  If glyph is an image,
18499         return that as object at posn.  Callers changed.
18500         (mode_line_string, marginal_area_string): Calculate and return
18501         pixel coordinates relative to glyph.  Callers changed.
18503         * dispextern.h (buffer_posn_from_coords, mode_line_string)
18504         (marginal_area_string): Fix prototypes.
18505         (window_box_left_offset, window_box_right_offset): Add prototypes.
18507         * frame.h (get_specified_cursor_type, get_window_cursor_type):
18508         Remove prototypes.
18510         * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
18512         * keyboard.c (make_lispy_position): Add x and y coordinates
18513         relative to the current glyph as 7th element of position.
18514         If glyph is an image, return it in the object element.
18515         (read_key_sequence): Skip checks for keymap property in cases
18516         where POSN_STRING is not a string (e.g. an image).
18518         * xdisp.c (Vdisplay_pixels_per_inch): New variable.
18519         (Vshow_text_cursor_in_void): New variable.
18520         (glyph_to_pixel_coords): Don't use negative hpos.
18521         (x_y_to_hpos_vpos): Fix for partially visible first glyph.
18522         (append_stretch_glyph): Change ascent arg to be actual value
18523         in pixels rather than ratio to height.  Callers changed.
18524         (calc_pixel_width_or_height): New aux function, implementing
18525         pixel based artihmetic for glyph widths and heights.
18526         (produce_stretch_glyph): Use calc_pixel_width_or_height for
18527         :width, :height, :align-to, and :ascent, thus allowing these to
18528         be specified in pixels as well as multiples of characters.
18529         Don't produce stretch glyphs with zero width or height.
18530         (get_specified_cursor_type): Declare static.
18531         (get_window_cursor_type): Declare static.  Add glyph arg to be
18532         able to know when cursor is on an image; always substitute
18533         hollow-box cursor for filled-box cursor on images, to avoid
18534         negative images and flicker when blinking the cursor.
18535         (display_and_set_cursor): Pass glyph to get_window_cursor_type.
18536         (note_mode_line_or_margin_highlight): Use non-text cursor rather
18537         than vertical scroll-bar cursor in display margins.
18538         (note_mouse_highlight): Use non-text cursor rather than text
18539         cursor in fringes and over images in the text area.
18540         Use non-text cursor when mouse pointer is outside editable text,
18541         i.e. in the void after end-of-line or end-of-buffer; this was
18542         already done for W32, but is now standard for all systems --
18543         user can toggle show-text-cursor-in-void to get old behaviour.
18544         (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
18545         Vdisplay_pixels_per_inch.
18547 2003-11-25  Andreas Schwab  <schwab@suse.de>
18549         * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
18550         EMACS_INT to not lose bits.
18551         (Ffillarray): Don't set bits beyond the size of a bool vector.
18553 2003-11-25  Kim F. Storm  <storm@cua.dk>
18555         * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
18556         define this defun on systems that cannot use stderr as lvalue.
18558 2003-11-24  Gerd Moellmann  <gerd@gnu.org>
18560         * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
18561         [__FreeBSD_version >= 500042]: Define as -znocombreloc because
18562         ld's default is incompatible with unexec.
18564 2003-11-23  Kim F. Storm  <storm@cua.dk>
18566         * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
18567         (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
18568         (Fforce_window_update): New defun.
18569         (syms_of_window): Defsubr it.
18570         (Fset_window_margins, Fset_window_fringes): Doc fix.
18572         * print.c (Fredirect_debugging_output): New defun.
18573         (syms_of_print): Defsubr it.
18575 2003-11-22  Luc Teirlinck  <teirllm@auburn.edu>
18577         * fns.c (Fset_char_table_parent): Doc fix.
18579 2003-11-22  Kim F. Storm  <storm@cua.dk>
18581         * dispnew.c (buffer_posn_from_coords): Return actual row/column
18582         for glyph clicked on, rather than (unused) pixel positions.
18583         (mode_line_string, marginal_area_string): Change X and Y args to
18584         pointers for returning actual row/column for glyph clicked on.
18585         Simplify and optimize loops.
18587         * dispextern.h (mode_line_string, marginal_area_string):
18588         Update prototypes.
18590         * keyboard.c (make_lispy_position): New function for generating
18591         mouse click positions from frame and pixel coordinates.
18592         Enhanced to return buffer position and actual row/column for
18593         events outside the text area using updated mode_line_string and
18594         marginal_area_string functions.
18595         Return left-fringe and right-fringe clicks as such, rather than
18596         clicks in text area.
18597         (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
18598         pixel_to_glyph_coords, as we never use the results.
18599         (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
18600         WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
18601         Eliminate unused code in WHEEL_EVENT handling.
18602         (make_lispy_movement): Use make_lispy_position.
18604         * window.c (coordinates_in_window): Remove redundant tests.
18605         Fix returned X pixel value for left-margin.
18607         * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
18608         mode_line_string and marginal_area_string parameters.
18610 2003-11-22  Lars Hansen  <larsh@math.ku.dk>
18612         * w32.c (struct the_group, getgrgid): Add.
18613         * mac.c (struct my_group, getgrgid): Add.
18615 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
18617         * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
18619 2003-11-21  Lars Hansen  <larsh@math.ku.dk>
18621         * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
18622         include in call to file name handler.  Optionally translate numeric
18623         UID and GID to strings.  Update docstring.
18624         (directory_files_internal): Add parameter ID-FORMAT.
18625         (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
18626         include in call to file name handler and call to
18627         directory_files_internal.  Update Docstring.
18628         (Fdirectory_files): Add dummy parameter in call to
18629         directory_files_internal.
18630         * lisp.h (Qinteger): Add.
18631         (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
18632         (Ffile_attributes): Add parameter.
18633         * data.c (Qinteger): Export.
18635 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
18637         * fns.c (Freverse, Fnreverse): Doc fixes.
18639 2003-11-19  Kim F. Storm  <storm@cua.dk>
18641         * xdisp.c (init_iterator): Initialize it->start to position
18642         before reseating (in case start position is invisible).
18643         (init_to_row_start): Set it->start to row-start.
18644         (redisplay_window): Accept optional_new_start if start position
18645         is invisible (in which case IT_CHARPOS overshoots PT).
18646         (display_line): Setup row->start from it->start (rather than
18647         it->current which is wrong if first char on line is invisible).
18648         When done, reseat it->start to it->current (= start of next row).
18649         (expose_area): Fix exposure of text area when first char (e.g. TAB)
18650         is only partially visible.
18652         * dispextern.h (struct it): New member start.
18654 2003-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
18656         * alloc.c (make_float, Fcons): Clear the markbit at init time.
18657         (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
18658         of block_index outside of the macro call.
18659         (Fgarbage_collect): Remove null code.
18661         * m/amdx86-64.h: Don't redefine XPNTR.
18663         * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
18664         of VALMASK.
18666         * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
18667         (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
18668         (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
18670         * lisp.h (VALMASK): Only define for non-union type.
18671         (MARKBIT): Remove.
18672         (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
18673         (XTYPE): Define unconditionally.
18674         (XSETTYPE): Remove one more remnant.
18675         (EQ): Define differently for the union and non-union cases.
18676         (INTMASK): New bit mask.
18677         (struct Lisp_Marker): Move down to prepare for upcoming patch.
18678         (GC_EQ): Delegate to EQ.
18680         * coding.c (coding_restore_composition): Lisp_Object/int mixup.
18682 2003-11-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18684         * xterm.c (x_window_to_scroll_bar): Move check of display to
18685         where window_id is compared.
18687 2003-11-17  Kim F. Storm  <storm@cua.dk>
18689         * dispextern.h (struct it): New member first_vpos.
18691         * xdisp.c (start_display): Set it->first_vpos.
18692         (try_window_id): Use first_vpos to start display in first _text_
18693         line if no reusable lines at start of window with header line.
18695 2003-11-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18697         * w32fns.c (XPutPixel):
18698         * w32bdf.c (w32_init_bdf_font):
18699         * sunfns.c (sel_read):
18700         * process.c (Fmake_network_process):
18701         * frame.c (store_frame_param):
18702         * fontset.c (Fset_fontset_font):
18703         * emacs.c (shut_down_emacs):
18704         * ccl.c (ccl_driver): Remove period at end of error message.
18706         * config.in: Regenerate.
18708         * xfns.c (x_window_to_frame, x_any_window_to_frame)
18709         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
18710         (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
18711         (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
18712         (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
18714         * xterm.h (struct x_display_info): New field xg_cursor for GTK.
18716         * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
18717         (XTmouse_position, handle_one_xevent): Pass Display* to
18718         x_window_to_scroll_bar.
18719         (x_window_to_scroll_bar): Take a Display* argument.
18720         Check that display for frame is equal to Display* argument.
18721         (event_handler_gdk): Remove current_dpyinfo.  Get dpyinfo from
18722         x_display_info_for_display instead.  Use Display in xev instead
18723         of GDK_DISPLAY.
18724         (x_dispatch_event): Call x_display_info_for_display.
18725         (XTread_socket): Move GTK part out of loop.  current_dpyinfo removed.
18726         (x_connection_closed): Call xg_display_close for GTK.
18727         (x_term_init): Call xg_display_open for additional displays.
18728         Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
18729         for GTK.
18731         * xmenu.c (single_menu_item, mouse_position_for_popup)
18732         (x_activate_menubar): Formatting adjustments.
18734         * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
18735         adjustments.
18737         * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
18738         (xg_display_close, xg_create_default_cursor)
18739         (xg_get_gdk_pixmap_and_mask): New functions for multiple display
18740         handling.
18741         (xg_left_ptr_cursor): Remove.
18742         (xg_set_cursor): Change cursor to GdkCursor*.  Do not create
18743         cursor here.
18744         (xg_win_to_widget): Take Display* argument, call
18745         gdk_xid_table_lookup_for_display.
18746         (xg_create_frame_widgets, xg_get_file_name, create_menus)
18747         (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
18748         (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
18749         in FRAME_X_DISPLAY_INFO.
18750         (xg_get_scroll_id_for_window): Take Display* argument.
18751         (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
18752         (xg_initialize): Remove xg_left_ptr_cursor.
18754         * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
18755         Display* argument.
18756         (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
18758 2003-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18760         * xterm.c (x_detect_focus_change): Do not change focus frame for
18761         Enter/LeaveNotify if the current focus frame has explicit focus.
18763 2003-11-14  Kim F. Storm  <storm@cua.dk>
18765         * dispnew.c (update_text_area): Fix redisplay error when hscroll
18766         is active and first glyph is only partially visible.
18768 2003-11-13  Kenichi Handa  <handa@m17n.org>
18770         * xdisp.c (select_frame_for_redisplay): New function.
18771         (redisplay_internal): Record also selected_frame for
18772         unwind_redisplay.  Call select_frame_for_redisplay before
18773         redrawing each frame.
18774         (unwind_redisplay): Argument changed to a cons.
18776 2003-11-12  Luc Teirlinck  <teirllm@auburn.edu>
18778         * fns.c (Fstring_to_multibyte): Doc fix.
18780 2003-11-11  Kenichi Handa  <handa@m17n.org>
18782         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18784 2003-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18786         * xfns.c (x_window): Set XtNx and XtNy in shell widget for
18787         program specified positions.
18789 2003-11-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18791         * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
18793 2003-11-08  Kenichi Handa  <handa@m17n.org>
18795         * Makefile.in (lisp): Add kannada.el.
18796         (shortlisp): Likewise.
18798 2003-11-07  Kenichi Handa  <handa@m17n.org>
18800         * coding.c (coding_allocate_composition_data):
18801         Reset coding->composing to COMPOSITION_NO.
18802         (coding_restore_composition): Detect invalid composition data.
18803         Give Fstring and Fvector a Lispy integer, not C int.
18805 2003-11-05  Stefan Monnier  <monnier@iro.umontreal.ca>
18807         * floatfns.c (Flogb): Don't use VALMASK.
18809         * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
18810         * m/ia64.h (VALBITS, XINT, XUINT): Remove.
18812         * lisp.h (XINT): Move the cast to clarify what is going on.
18813         (GCTYPEMASK, XSETTYPE): Remove.
18814         (XGCTYPE): Make it an alias of XTYPE.
18816 2003-11-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18818         * xterm.c (x_term_init): Fix formatting.
18820 2003-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18822         * gtkutil.h (xg_have_tear_offs): Declare.
18823         (xg_keep_popup, xg_did_tearoff): Remove.
18825         * gtkutil.c: Remove variable xg_did_tearoff.
18826         (xg_have_tear_offs): New function.
18827         (tearoff_remove): Just decrease xg_detached_menus.
18828         (tearoff_activate): Increase xg_detached_menus and call
18829         tearoff_remove when tearoff is removed.
18830         (xg_keep_popup): Remove function.
18831         (create_menus): Give add_tearoff_p as argument to recursive
18832         call to create_menus.
18833         (xg_create_widget): Use variables instead of multiple
18834         strcmp.  Tell create_menus to create tear off only for
18835         menu bar menus.
18836         (xg_update_menubar): Change title for a detached menu also.
18837         (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
18838         of deep_p.
18839         (xg_initialize): Initialize xg_detached_menus, remove
18840         initialization of xg_did_tearoff.
18842         * xmenu.c (set_frame_menubar): For GTK, set deep_p if
18843         xg_have_tear_offs returns non-zero.
18844         (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
18845         call to xg_keep_popup.
18847 2003-11-01  Andrew Choi  <akochoi@shaw.ca>
18849         * macterm.c (XTread_socket): Handle menubar selection and grow
18850         window only for mouseDown events.
18852 2003-10-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18854         * xterm.c (x_term_init): For GTK part, increase x_initialized
18855         to check for more than one display.  Use error instead of return 0.
18857 2003-10-31  Andrew Choi  <akochoi@shaw.ca>
18859         * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
18860         (copy_dysymtab): Call it.
18862 2003-10-31  Luc Teirlinck  <teirllm@auburn.edu>
18864         * eval.c (Fdefvaralias): Doc fix.
18866 2003-10-26  Luc Teirlinck  <teirllm@auburn.edu>
18868         * data.c (Fsetplist): Doc fix.
18870 2003-10-14  Lute Kamstra  <lute@gnu.org>
18872         * window.c (Fset_window_fringes): Clarify docstring.
18874 2003-10-14  Kim F. Storm  <storm@cua.dk>
18876         * window.c (Fset_window_margins): Simplify arg checking.
18878 2003-10-13  Richard M. Stallman  <rms@gnu.org>
18880         * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
18881         (print_partial_compiled_pattern): Replace assert with a printout.
18882         (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
18884         * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
18886         * window.c (Fset_window_margins): Allow only integers as args.
18887         (syms_of_window) <special-display-buffer-names,
18888         special-display-regexps>: Doc fixes.
18890 2003-10-13  Lute Kamstra  <lute@gnu.org>
18892         * window.c (Fset_window_fringes): Elaborate docstring.
18894 2003-10-12  Andrew Choi  <akochoi@shaw.ca>
18896         * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
18898         * s/darwin.h (GC_MARK_STACK): Define.
18900 2003-10-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18902         * window.c (shrink_windows): New function.
18903         (size_window): Call shrink_windows to calculate window sizes when
18904         shrinking frame with more than one window.
18906 2003-10-12  Kim F. Storm  <storm@cua.dk>
18908         * xdisp.c (compute_fringe_widths): Doc fix.
18910 2003-10-08  Kenichi Handa  <handa@m17n.org>
18912         * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
18914 2003-10-07  Kenichi Handa  <handa@m17n.org>
18916         * coding.c (Qcoding_system_define_form): New variable.
18917         (syms_of_coding): Intern and staticpro it.
18918         (Fcheck_coding_system): Try to autoload the definition of
18919         CODING-SYSTEM.
18921 2003-10-05  Luc Teirlinck  <teirllm@auburn.edu>
18923         * fns.c (Frequire): Doc fix.
18925 2003-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18927         * xfns.c (Fx_send_client_event): New function as a base for
18928         manipulating extended window manager hints.
18929         (Fx_send_client_event): Remove unused variable s.
18931         * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
18932         that function is removed.
18934         * xterm.c (x_set_offset): Use move_offset_left/top instead of
18935         x/y_pixels_outer_diff.
18936         (x_check_expected_move): Calculate move_offset_left/top.
18938         * xterm.h (struct x_output): New members: move_offset_top/left.
18940         * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
18941         call x_set_offset directly.
18943         * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
18945         * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
18947         * xterm.c (x_delete_display): Free font names and font_encoder
18948         in dpyinfo->font_table.
18950         * xfns.c (Fx_close_connection): Only call XFreeFont here.
18951         Move xfree of font names to x_delete_display.
18953         * xterm.h (struct x_display_info): New member, wm_type.
18954         (struct x_output): New members, expected_top/left and
18955         check_expected_move.
18957         * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
18958         is received.
18959         (handle_one_xevent): Rename x_check_expected_move from
18960         x_check_fullscreen_move.
18961         (x_set_offset): Only add WM decoration sizes to modified_top/left
18962         for X_WMTYPE_A.  Set check_expected_move when WM type is unknown.
18963         (x_check_expected_move): Rename from x_check_fullscreen_move.
18964         Removed fullscreen specific code.  Use check_expected_move,
18965         expected_left/top instead.  Also, set wm_type.
18966         (x_term_init): Initialize wm_type to unknown.
18968         * frame.c (x_fullscreen_move): Remove addition of WM decoration
18969         sizes to move_x/y.
18971 2003-10-03  Kenichi Handa  <handa@m17n.org>
18973         * macterm.c (x_load_font): Clear all members of FONTP before start
18974         filling them.
18976 2003-10-02  Kenichi Handa  <handa@m17n.org>
18978         * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
18979         before calling find_ccl_program_func.  Call find_ccl_program_func
18980         only when fontp->font_encoder is not NULL.
18982         * xterm.c (x_load_font): Clear all members of FONTP before start
18983         filling them.
18985 2003-10-03  John Paul Wallington  <jpw@gnu.org>
18987         * keymap.c (map_keymap): Don't abort when binding is a vector.
18989 2003-10-02  Jason Rumney  <jasonr@gnu.org>
18991         * makefile.w32-in (emacs.o, coding.o, bytecode.o):
18992         Sync dependencies with Makefile.in.
18993         (alloca.o): Remove.
18995         * w32fns.c (w32_load_system_font): Clear all members of FONTP before
18996         filling them.
18998         * w32bdf.c (w32_load_bdf_font): Likewise.
19000 2003-09-30  Richard M. Stallman  <rms@gnu.org>
19002         * term.c (set_tty_color_mode): Calculate current_mode_spec
19003         regardless of value of VAL.
19005         * intervals.c (graft_intervals_into_buffer):
19006         Set BUF_INTERVALS (buffer)->up_obj when appropriate.
19007         Handle over_used when splitting UNDER.
19009 2003-09-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19011         * regex.c (regex_compile): Free the stack when returning from function.
19013 2003-09-28  Kenichi Handa  <handa@m17n.org>
19015         * fontset.c (Finternal_char_font): Change return value to
19016         cons (FONT-NAME . GLYPH-CODE).
19018 2003-09-28  Eli Zaretskii  <eliz@gnu.org>
19020         * term.c (tty_setup_colors): Treat any negative argument as -1.
19022 2003-09-27  Gaute B Strokkenes  <biggaute@uwc.net>  (tiny change)
19024         * process.c (send_process): Delete unused temp_buf.
19026 2003-09-26  Dave Love  <fx@gnu.org>
19028         * xterm.c (x_bitmap_mask): Declare.
19030 2003-09-25  Dave Love  <fx@gnu.org>
19032         * Makefile.in (fns.o): Depend on md5.h.
19034 2003-09-25  Kim F. Storm  <storm@cua.dk>
19036         * window.c (set_window_buffer): Fix redisplay problems when
19037         switching between buffers with different display margin widths.
19039 2003-09-23  Kim F. Storm  <storm@cua.dk>
19041         * process.c (set_socket_option): Fix :bindtodevice option.
19042         (Fset_network_process_option): Update process contact list when
19043         setting option succeeds.
19044         (Fmake_network_process): Doc fix.
19046 2003-09-23  Dave Love  <fx@gnu.org>
19048         * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
19050 2003-09-22  Eli Zaretskii  <eliz@gnu.org>
19052         * term.c (set_tty_color_mode): Use INTEGERP to test whether a
19053         color mode is an integer number (it could be -1).
19055 2003-09-22  Richard M. Stallman  <rms@gnu.org>
19057         * intervals.c (graft_intervals_into_buffer): Correct the main loop
19058         in the case where OVER is longer than UNDER.
19060 2003-09-22  Masatake YAMATO  <jet@gyve.org>
19062         * window.c (Fset_window_scroll_bars): Validate the value of
19063         `vertical_type'.
19065 2003-09-21  Kim F. Storm  <storm@cua.dk>
19067         * frame.c (Vdefault_frame_scroll_bars): New variable.
19068         (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
19069         (syms_of_frame): DEFVAR_LISP it, and initialize according to
19070         window-system default scroll bar position.
19072         * window.c (Fwindow_scroll_bars): Doc fix.
19074 2003-09-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19076         * xterm.c (x_set_offset): Take window manager decorations into account.
19078 2003-09-19  Richard M. Stallman  <rms@gnu.org>
19080         * atimer.h: Don't include lisp.h.
19081         (P_): Define it here (as well as elsewhere).
19083         * print.c (Fprin1_to_string): Move the PRINTPREPARE
19084         later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
19086         * data.c (Fvariable_binding_locus): New function.
19087         (syms_of_data): defsubr it.
19088         (Flocal_variable_p): Delete duplicate call to indirect_variable.
19090 2003-09-18  Dave Love  <fx@gnu.org>
19092         * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
19094         * process.c (Fnetwork_interface_info): Fix type error.
19095         (Fnetwork_interface_list): Doc fix.
19096         (read_process_output, read_process_output): Delete unused var.
19098 2003-09-17  Kim F. Storm  <storm@cua.dk>
19100         * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
19101         Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
19102         (Fnetwork_interface_info): Check that ifreq struct has required
19103         fields before accessing them; this requires that those fields are
19104         defined as macros, which may be too restrictive on some platforms,
19105         but it is better than failing on other platforms.
19106         (syms_of_process): Only defsubr above fns when included.
19108 2003-09-17  Dave Love  <fx@gnu.org>
19110         * unexalpha.c: Don't include varargs.h.
19112 2003-09-17  Kim F. Storm  <storm@cua.dk>
19114         * process.c (Fset_process_sentinel): Add sentinel to childp plist
19115         for network process.
19116         (socket_options): Add `:' prefix to option names.  Add optbit field.
19117         (set_socket_option): Remove no_error arg and special handling of s < 0.
19118         Return 1<<optbit for known option, 0 for unknown.
19119         Do not interpret 0 as false for boolean option (only nil).
19120         Pass failed option and value to report_file_error.
19121         (Fset_network_process_options): Replace by Fset_network_process_option.
19122         (Fset_network_process_option): New function to set just one option.
19123         (Fmake_network_process): Allow :coding arg to be a cons.
19124         Allow :server arg to be an integer specifying backlog size.
19125         Remove :options arg, and allow options to be specified directly
19126         as :KEY, VALUE pairs.  Parse these options before binding socket.
19127         As before, :reuseaddr t is default for a server process, but this
19128         can now be disabled by specifying :reuseaddr nil.
19129         (Fnetwork_interface_info): Rename from Fget_network_interface_info.
19130         (init_process): Availability of network options is now checked with
19131         simpler syntax (featurep 'make-network-process :OPTION); use loop to
19132         setup features.
19133         (syms_of_process): Fix defsubr's for the replaced functions.
19135 2003-09-16  Dave Love  <fx@gnu.org>
19137         * Makefile.in: Depend on coding.h.
19139 2003-09-14  Kim F. Storm  <storm@cua.dk>
19141         * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
19142         (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
19143         (syms_of_process): Defsubr them.
19145         * config.in: Regenerate.
19147 2003-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
19149         * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
19150         * m/news-r6.h (XUNMARK): Remove.
19151         * m/mips.h (XUNMARK): Remove.
19152         * m/mips-siemens.h (XUNMARK): Remove.
19153         * m/iris4d.h (XUNMARK): Remove.
19154         * m/hp800.h (XMARKBIT, XUNMARK): Remove.
19156 2003-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
19158         * lisp.h (VALBITS): Don't remove 1 for the markbit.
19159         (union Lisp_Object): Use unsigned int for types.  Remove markbit.
19160         (MARKBIT): Remove 1 from VALBITS so we still use same old val.
19161         (XTYPE): Use unsigned right-shift.
19162         (XMARKBIT, XMARK, XUNMARK): Remove.
19164         * alloc.c (init_intervals, init_symbol, init_marker):
19165         Don't preallocate anything.
19166         (Fgarbage_collect, mark_object): Ignore the markbit.
19168         * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
19170 2003-09-08  Lute Kamstra  <lute@gnu.org>
19172         * xdisp.c (pint2hrstr): New function.
19173         (decode_mode_spec): Add `%i' and `%I' specs.
19174         * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
19175         for `mode-line-format'.
19177 2003-09-07  Andreas Schwab  <schwab@suse.de>
19179         * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
19180         avoid warning.
19182 2003-09-07  Eli Zaretskii  <eliz@gnu.org>
19184         * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
19186 2003-09-03  Kim F. Storm  <storm@cua.dk>
19188         * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
19189         change (superseded by 2002-08-30 change); the default blink-off
19190         cursor is now again "no cursor".
19192 2003-09-01  Jason Rumney  <jasonr@gnu.org>
19194         * makefile.w32-in (alloca.o): Remove.
19195         (coding.o): Depend on intervals.h
19196         (emacs.o, bytecode.o): Depend on window.h
19198 2003-09-01  Dave Love  <fx@gnu.org>
19200         * Makefile.in (alloca.o): Remove commands.
19201         (coding.o): Depend on intervals.h composite.h window.h.
19202         (emacs.o): Depend on window.h keyboard.h keymap.h.
19203         (gtkutil.o): Depend on keyboard.h charset.h coding.h.
19204         (bytecode.o): Depend on window.h.
19206 2003-08-31  Jason Rumney  <jasonr@gnu.org>
19208         * w32term.c (w32_per_char_metric): Allow cached metrics to be
19209         returned even when font_type is unknown.
19211         * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
19213 2003-08-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19215         * xterm.c (x_term_init): Initialize new fields in x_display_info.
19217         * xterm.h (struct x_display_info): Add red/green/blue_bits and
19218         *_offset.
19220         * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
19221         calculate pixel value.
19223 2003-08-29  Gerd Moellmann  <gerd.moellmann@t-online.de>
19225         * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
19226         Don't tell redisplay display is accurate when it's actually been
19227         paused for pending input.
19229 2003-08-29  Richard M. Stallman  <rms@gnu.org>
19231         * dispnew.c (adjust_glyph_matrix): Call window_box
19232         whenever W is nonzero.
19234         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19235         (Fkill_local_variable, Fmake_variable_frame_local)
19236         (Flocal_variable_p, Flocal_variable_if_set_p):
19237         Use indirect_variable to trace thru variable aliases.
19239         * config.in: Updated.
19241         * callint.c (Fcall_interactively): Save and restore
19242         Vthis_command, Vthis_original_command, real_this_command,
19243         and current_kboard->Vlast_command.
19245         * abbrev.c (Fexpand_abbrev): Insert before deleting.
19247 2003-08-29  Gerd Moellmann  <gerd@gnu.org>
19249         * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
19251 2003-08-28  David Abrahams  <dave@boost-consulting.com>  (tiny change)
19253         * coding.c (decode_coding_iso2022): Initialize local variable c2.
19254         (decode_coding_sjis_big5): Likewise.
19256 2003-08-27  Jason Rumney  <jasonr@gnu.org>
19258         * w32.c (sys_pipe): Protect against file descriptor overflow.
19260         * w32fns.c (syms_of_w32fns): Remove non-existent functions.
19262         * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
19264 2003-08-26  Terje Rosten  <terjeros@phys.ntnu.no>
19266         * xfns.c (Vgtk_version_string): New variable.
19267         (syms_of_xfns): DEFVAR_LISP it.  Provide gtk.
19269 2003-08-24  Eli Zaretskii  <eliz@gnu.org>
19271         * term.c (term_init): Remove `const' from buffer_size's declaration.
19273         * Makefile.in (msdos.o): Depend on intervals.h.
19275         * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
19277 2003-08-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19279         * xterm.h (struct x_display_info): New fields: client_leader_window
19280         and Xatom_wm_client_leader.
19282         * xterm.c (x_initialize): Move call to x_session_initialize to ...
19283         (x_term_init): ... here.  Initialize client_leader fields in dpyinfo.
19285         * xsmfns.c (create_client_leader_window): New function.
19286         (x_session_initialize): Call create_client_leader_window, take
19287         dpyinfo as argument.
19289         * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
19291         * Makefile.in (xsmfns.o): Add more depenedencies.
19293 2003-08-21  Dave Love  <fx@gnu.org>
19295         * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
19297 2003-08-21  Kenichi Handa  <handa@m17n.org>
19299         * term.c (term_init): Fix previous change; don't rely on the
19300         length of `buffer' if TERMINFO is defined.
19302 2003-08-20  Dave Love  <fx@gnu.org>
19304         * atimer.h: Include lisp.h.
19306         * lisp.h (EMACS_LISP_H): New.
19307         (popup_activated_flag): Don't declare.
19309         * alloca.c: Some merging with gnulib.  Change logic and doc
19310         concerning (x)malloc/(x)free -- no longer Emacs-specific.
19311         [DO_BLOCK_INPUT]: Don't include lisp.h.
19312         (xmalloc, xfree): Declare.
19313         (malloc): Don't declare.
19315         * Makefile.in (LWLIB_OPTIONS): Remove (unused).
19316         (alloca.o): Remove obsolete stuff concerning alloca.s.  Depend on
19317         atimer.h, blockinput.h.
19319         * alloc.c (lisp_align_malloc): Change type of `aligned'.
19321         * alloca.s: Remove.
19323 2003-08-19  Gerd Moellmann  <gerd@gnu.org>
19325         * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
19326         use -lncurses.
19328         * term.c (term_init): Use a buffer of size 4096 for tgetent since
19329         FreeBSD returns something longer than 2044.  Abort if the end of
19330         the buffer is overwritten.
19332 2003-08-19  Miles Bader  <miles@gnu.org>
19334         * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
19336 2003-08-19  Gerd Moellmann  <gerd@gnu.org>
19338         * alloc.c (lisp_align_malloc): Check for memory full when
19339         allocating ablocks, which also avoids freeing a pointer into an
19340         ablocks structure.
19342         * puresize.h (BASE_PURESIZE): Increase to 1100000.
19344         * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
19346 2003-08-16  Richard M. Stallman  <rms@gnu.org>
19348         * editfns.c (Fencode_time): Doc fix.
19350 2003-08-16  David Ponce  <david@dponce.com>
19352         * fileio.c (Fwrite_region): Fix conditional expression to issue
19353         the right message.
19355 2003-08-16  Juri Linkov  <juri@jurta.org>
19357         * syntax.c (Fforward_word): Argument changed to optional.
19358         Set default value to 1.
19360 2003-08-15  Kenichi Handa  <handa@m17n.org>
19362         * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
19363         what autoscaled.
19364         (best_matching_font): Once we find a better scalable font, set
19365         non_scalable_has_exact_height_p to 1.
19366         (try_font_list): Call try_alternative_families to try any family
19367         with the given registry.
19369 2003-08-09  Andreas Schwab  <schwab@suse.de>
19371         * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
19373         * print.c (print_string): Fix printing of multibyte string with
19374         nontrivial printcharfun.
19376 2003-07-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19378         * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
19380         * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
19382 2003-07-31  Kenichi Handa  <handa@m17n.org>
19384         * process.c (read_process_output): Return the actually read bytes
19385         instead of the result of decoding.
19387 2003-07-31  Kenichi Handa  <handa@m17n.org>
19389         * xterm.h (struct x_bitmap_record): New member have_mask.
19391         * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
19392         to 0.
19393         (x_create_bitmap_from_file): Likewise.
19394         (x_destroy_bitmap): Check have_mask member before freeing a mask.
19395         (x_destroy_all_bitmaps): Likewise.
19396         (x_create_bitmap_mask): Set have_mask member to 1.
19398 2003-07-30  Richard M. Stallman  <rms@gnu.org>
19400         * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
19402 2003-07-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19404         * gtkutil.c (xg_mark_data): Update calls to mark_object.
19406 2003-07-29  Richard M. Stallman  <rms@gnu.org>
19408         * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
19409         Conditionalize XIM code on HAVE_XIM.
19411         * fns.c (Fclear_string): New function.
19412         (syms_of_fns): defsubr it.
19414 2003-07-28  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
19416         * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
19418 2003-07-22  Stefan Monnier  <monnier@cs.yale.edu>
19420         * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
19422         * buffer.c (delete_all_overlays): New function.
19423         * buffer.h (delete_all_overlays): Declare.
19424         * coding.c (run_pre_post_conversion_on_str):
19425         * print.c (temp_output_buffer_setup):
19426         * fileio.c (Finsert_file_contents):
19427         * minibuf.c (get_minibuffer): Use it.
19429 2003-07-22  Andrew Choi  <akochoi@shaw.ca>
19431         * unexmacosx.c (unexec_regions_sort_compare):
19432         (unexec_regions_merge): New functions.  Sort and merge unexec
19433         regions before dumping them.
19435 2003-07-22  Dave Love  <fx@gnu.org>
19437         * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
19439 2003-07-21  Stefan Monnier  <monnier@cs.yale.edu>
19441         * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
19442         (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
19443         MARKBIT as the gcmarkbit for strings.
19445 2003-07-21  Richard M. Stallman  <rms@gnu.org>
19447         * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
19449         * fns.c (Flocale_info): Rename from Flanginfo.  Doc fixes.
19450         (syms_of_fns): Corresponding change.
19452         * alloc.c (syms_of_alloc): Doc fixes.
19454 2003-07-20  Han Boetes  <han@mijncomputer.nl>  (tiny change)
19456         * s/netbsd.h: Use -Wl syntax.
19458 2003-07-17  Richard M. Stallman  <rms@gnu.org>
19460         * xterm.c (xim_initialize): Redo 6/24 change.
19462 2003-07-15  Stefan Monnier  <monnier@cs.yale.edu>
19464         * buffer.c (copy_overlays): Use EMACS_INT for positions.
19465         (Fswitch_to_buffer): Don't signal an error when switching to the same
19466         buffer in a dedicated window.
19468         * alloc.c: Use bitmaps for cons, as was done for floats.
19469         (init_float, init_cons): Let the normal code allocate the first block.
19470         (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
19471         (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
19472         New macros.
19473         (struct cons_block): Move conses to the beginning.  Add gcmarkbits.
19474         (Fcons): Use lisp_align_malloc and CONS_UNMARK.
19475         (live_cons_p): Check the pointer is not past the `conses' array.
19476         (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
19477         (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
19478         (survives_gc_p): Use CONS_MARKED_P and simplify.
19479         (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
19481 2003-07-13  Paul Eggert  <eggert@twinsun.com>
19483         GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
19484         puts it into BSS instead, at least on Solaris 8 and 9.
19485         This is a valid optimization, and it may occur on other platforms,
19486         so Emacs should not assume that initializing a static variable to
19487         zero puts it into data.
19488         * alloc.c (pure, staticvec):
19489         Initialize these arrays to nonzero, so that they're not
19490         put into BSS by that optimization.
19492 2003-07-13  Stefan Monnier  <monnier@cs.yale.edu>
19494         * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING.  Update users.
19495         (lisp_align_malloc): Use posix_memalign is available.
19496         (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
19497         (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
19498         for consistency.  Update users.
19500 2003-07-13  Richard M. Stallman  <rms@gnu.org>
19502         * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
19504 2003-07-13  Terje Rosten  <terjeros@phys.ntnu.no>
19506         * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
19507         and use the Gtk+ function gtk_window_icon_from_file if available.
19509         * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
19510         handle mask of bitmaps.
19511         (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
19512         mask property.
19513         (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
19515         * xterm.h (xg_set_icon): New function.
19517 2003-07-12  Paul Eggert  <eggert@twinsun.com>
19519         * unexelf.c (unexec): Consider a section to precede the .bss
19520         section if its addresses overlap that of .bss.
19522 2003-07-12  Richard M. Stallman  <rms@gnu.org>
19524         * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
19526         * config.in (HAVE_CRTIN): Add #undef.
19527         (INLINE): Really inline only if OPTIMIZE is defined.
19529         * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
19530         END_FILES_1.
19531         (START_FILES_1, END_FILES_1): New macros (conditional).
19532         (LD_SWITCH_SYSTEM_TEMACS): Define.
19534         * s/openbsd.h: Don't include bsd4-3.h.
19535         (TERMINFO): Define.
19536         (LIBS_TERMCAP): Define.
19537         (LD_SWITCH_SYSTEM): Define (two definitions).
19539         * xfns.c: Include libpng/png.h instead of png.h.
19541 2003-07-11  Andreas Schwab  <schwab@suse.de>
19543         * buffer.c (modify_overlay): Update prototype.
19544         * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
19545         Likewise.
19547 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
19549         * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
19550         (struct interval): Move to intervals.h.
19551         (struct Lisp_Marker): Use EMACS_INT for position info.
19552         (forward_point): Remove prototype of defunct function.
19553         (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
19554         (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
19555         (syms_of_textprop, set_text_properties): Remove prototypes that are
19556         already in intervals.h.
19558         * intervals.h (struct interval): Move from lisp.h.
19559         Use EMACS_INT for position and size info.
19561         * coding.c: Include intervals.h for Fset_text_properties.
19563         * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
19564         position and length information.
19566 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
19568         * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
19569         position and length information.
19571 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
19573         Change overlays_after and overlays_before so the overlays themselves
19574         are linked into lists, rather than using cons cells.  After all each
19575         Lisp_Misc already occupies 5 words, so we can add a `next' field to
19576         Lisp_Overlay for free and save up one cons cell per overlay (not
19577         to mention one indirection when traversing the list of overlay).
19579         * lisp.h (struct Lisp_Overlay): New field `next'.
19581         * buffer.h (struct buffer): Change overlays_before and overlays_after
19582         from Lisp lists of overlays to pointers to overlays.
19584         * buffer.c (overlay_strings, recenter_overlay_lists):
19585         Fix typo in eassert in last commit.
19586         (unchain_overlay): New function.
19587         (add_overlay_mod_hooklist): Use AREF.
19588         (copy_overlays, reset_buffer, overlays_at, overlays_in)
19589         (overlay_touches_p, overlay_strings, recenter_overlay_lists)
19590         (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
19591         (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
19592         (report_overlay_modification, evaporate_overlays, init_buffer_once):
19593         Adjust to new type of overlays_(before|after).
19595         * alloc.c (mark_object): Mark the new `next' field of overlays.
19596         (mark_buffer): Manually mark the overlays_(after|before) fields.
19598         * coding.c (run_pre_post_conversion_on_str):
19599         * editfns.c (overlays_around):
19600         * xdisp.c (load_overlay_strings):
19601         * fileio.c (Finsert_file_contents):
19602         * indent.c (current_column):
19603         * insdel.c (signal_before_change, signal_after_change):
19604         * intervals.c (set_point_both):
19605         * print.c (temp_output_buffer_setup): Use new type for
19606         overlays_(before|after).
19608 2003-07-08  Stefan Monnier  <monnier@cs.yale.edu>
19610         * buffer.c (report_overlay_modification): Don't run hooks while
19611         traversing the list of overlays.
19613         * buffer.h (struct buffer): Use an int for overlay_center.
19614         (overlays_at, evaporate_overlays, recenter_overlay_lists)
19615         (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
19617         * buffer.c (reset_buffer, recenter_overlay_lists)
19618         (adjust_overlays_for_insert, adjust_overlays_for_delete)
19619         (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
19620         (evaporate_overlays, init_buffer_once): Update use of overlay_center.
19621         (overlays_at, evaporate_overlays, recenter_overlay_lists)
19622         (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
19624         * xdisp.c (fast_find_position): Remove unused var.
19626         * cmds.c (Qexpand_abbrev): New sym.
19627         (syms_of_cmds): Initialize it.
19628         (internal_self_insert): Use it to call expand-abbrev.
19630 2003-07-09  Kim F. Storm  <storm@cua.dk>
19632         * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
19633         was configured with --without-xim.
19634         (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
19636 2003-07-07  Richard M. Stallman  <rms@gnu.org>
19638         * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
19640         * alloc.c (Fgarbage_collect): Doc fix.
19642 2003-07-07  Nozomu Ando  <nand@mac.com>
19644         * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
19646 2003-07-06  Stefan Monnier  <monnier@cs.yale.edu>
19648         * minibuf.c (read_minibuf): UNGCPRO before returning.
19649         (Ftry_completion, Fall_completions): Doc fix.
19651         * alloc.c (live_float_p): Check that p is not past the `floats' array,
19652         now that `floats' is not the last element of the struct any more.
19654 2003-07-06  Jason Rumney  <jasonr@gnu.org>
19656         * w32term.h (ClipboardSequence_Proc): New type.
19658         * w32fns.c (clipboard_sequence_fn): New variable.
19659         (globals_of_w32fns): Initialize it.
19661         * w32select.c (last_clipboard_sequence_number): New variable.
19662         (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
19663         number if possible.
19665 2003-07-06  Stefan Monnier  <monnier@cs.yale.edu>
19667         * m/amdx86-64.h (MARKBIT):
19668         * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
19669         MARKBIT and ARRAY_MARK_FLAG any more.
19671         * m/hp800.h (XSETMARKBIT):
19672         * m/sr2k.h (XSETMARKBIT):
19673         * lisp.h (XSETMARKBIT): Remove unused macro.
19675         * lisp.h (mark_object): Change prototype.
19677         * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
19678         (last_marked): Change accordingly.
19679         (mark_interval, mark_maybe_object, mark_maybe_pointer)
19680         (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
19681         (mark_buffer): Update calls to mark_object.
19683         * bytecode.c (mark_byte_stack):
19684         * fns.c (sweep_weak_table):
19685         * keyboard.c (mark_kboards): Update calls to mark_object.
19687 2003-07-06  Jason Rumney  <jasonr@gnu.org>
19689         * alloc.c (struct ablock): Only include padding when there is some.
19691 2003-07-04  Stefan Monnier  <monnier@cs.yale.edu>
19693         * alloc.c (ALIGN): Add casts to simplify usage.
19694         (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
19695         (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
19696         (struct ablock, struct ablocks): New types.
19697         (free_ablock): New global var.
19698         (lisp_align_malloc, lisp_align_free): New functions.
19699         (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
19700         (struct float_block): Reorder and add gcmarkbits.
19701         (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
19702         (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
19703         (init_float, make_float): Use lisp_align_malloc.
19704         (free_float, live_float_p): Don't use `type' any more.
19705         (make_float): Use FLOAT_UNMARK to access to mark bit.
19706         (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
19707         Use FLOAT_MARKED_P to access the mark bit.
19708         (pure_alloc): Simplify use of ALIGN.
19709         (mark_object): Use FLOAT_MARK to access the mark bit.
19710         (gc_sweep): Use new macros to access the float's mark bit.
19711         (init_alloc_once): Init free_ablock.
19713         * lisp.h (struct Lisp_Float): Remove unused field `type'.
19715 2003-06-27  Stefan Monnier  <monnier@cs.yale.edu>
19717         * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
19718         (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
19719         (allocate_buffer): Move.
19720         (string_bytes): Don't mask markbit of `size_byte'.
19721         (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
19722         (mark_object, mark_buffer, survives_gc_p, gc_sweep):
19723         Use the `size' field of buffers (rather than the `name' field) for
19724         the mark bit, as is done for all other vectorlike objects.
19725         Use the new macros to access the mark bit of vectorlike objects.
19727 2003-06-26  Richard M. Stallman  <rms@gnu.org>
19729         * puresize.h (BASE_PURESIZE): Increment base size.
19731         * xdisp.c (fast_find_position): Enable Gerd's new definition.
19733         * xterm.c (xim_initialize): Undo previous change.
19735 2003-06-26  Stefan Monnier  <monnier@cs.yale.edu>
19737         * alloc.c (survives_gc_p): Simplify.
19739         * buffer.c (set_buffer_internal_1): Test CONSP for lists.
19741         * window.c (Fset_window_dedicated_p): Simplify.
19742         (display_buffer_1): Don't raise the win from which minibuf was entered.
19743         (temp_output_buffer_show): Don't assume BEG == 1.  Simplify.
19744         (Fminibuffer_selected_window): Simplify.
19746         * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
19748         * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
19749         (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
19751         * insdel.c (check_markers, adjust_markers_for_delete)
19752         (adjust_markers_for_insert, adjust_markers_for_replace)
19753         (prepare_to_modify_buffer, RESTORE_VALUE):
19754         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
19755         (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
19756         (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
19757         * alloc.c (Fmake_marker, free_marker, gc_sweep):
19758         * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
19759         * editfns.c (save_excursion_restore, transpose_markers):
19760         * window.c (delete_window):
19761         * xdisp.c (message_dolog): Update for new types.
19763 2003-06-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19765         * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
19766         (realize_default_face): Use default_face_done_p for the force_p
19767         argument to set_lface_from_font_name.  Set default_face_done_p to one.
19769         * frame.c (make_frame): Initialize default_face_done_p.
19771         * frame.h (struct frame): Add default_face_done_p.
19773         * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
19774         will be defined.
19776 2003-06-25  Stefan Monnier  <monnier@cs.yale.edu>
19778         * alloc.c (make_interval, Fmake_symbol, allocate_misc):
19779         Initialize the new field `gcmarkbit'.
19780         (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
19781         (mark_interval_tree): Don't mark the tree separately from the nodes.
19782         (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
19783         (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
19784         (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
19786         * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
19787         (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
19788         (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
19789         (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
19790         (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
19792 2003-06-24  Dave Love  <fx@gnu.org>
19794         * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
19796         * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux.  Merge changes
19797         from gnulib.
19799 2003-06-21  Richard M. Stallman  <rms@gnu.org>
19801         * fileio.c (Fwrite_region): Alternate messages
19802         for append and partial write.
19804         * keyboard.c (read_key_sequence): When converting upcase fn key to
19805         downcase, update fkey and keytran so `backspace' gets translated.
19807         * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
19809         * process.c (wait_reading_process_input): Don't signal SIGIO
19810         in batch mode.
19812 2003-06-17  Kenichi Handa  <handa@m17n.org>
19814         * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
19815         composite.h.
19817         * xselect.c: Don't include charset.h, coding.h, composite.h.
19818         (Qforeign_selection): New variable.
19819         (syms_of_xselect): Intern and static it.
19820         (selection_data_to_lisp_data): Return a unibyte string made from
19821         data with `foreign-selection' text property.
19823 2003-06-15  Stefan Monnier  <monnier@cs.yale.edu>
19825         * termhooks.h (EVENT_INIT): New macro.
19827         * keyboard.c (mark_kboards): Move from alloc.c.  Mark kbd_buffer.
19829         * alloc.c (mark_kboards): Move to keyboard.c.
19831         * keyboard.c (record_asynch_buffer_change, read_avail_input):
19832         * xterm.c (x_dispatch_event):
19833         * xmenu.c (find_and_call_menu_selection):
19834         * xdisp.c (handle_tool_bar_click):
19835         * w32menu.c (menubar_selection_callback):
19836         * sysdep.c (kbd_input_ast, read_input_waiting):
19837         * msdos.c (dos_rawgetc):
19838         * macterm.c (mac_check_for_quit_char):
19839         * macmenu.c (menubar_selection_callback):
19840         * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
19841         data to kbd_buffer_store_event.
19843 2003-06-15  Kim F. Storm  <storm@cua.dk>
19845         * xdisp.c (x_fix_overlapping_area): Always use area relative X
19846         to fix redisplay problem with tall characters (such as \e,AC\e(B).
19848 2003-06-13  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
19850         * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
19852 2003-06-12  Kenichi Handa  <handa@m17n.org>
19854         * fileio.c (Fwrite_region): Save and restore restriction.
19856 2003-06-12  Dave Love  <fx@gnu.org>
19858         * alloca.c (alloca): Declare arg as size_t.
19860         * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
19861         Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
19863 2003-06-11  Dave Love  <fx@gnu.org>
19865         * search.c (shrink_regexp_cache): Use xrealloc.
19866         (syms_of_search): Use xmalloc.
19868 2003-06-10  Kim F. Storm  <storm@cua.dk>
19870         * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
19871         Adjust phys_cursor.x to be relative to window box, rather than
19872         text area before checking -- to ensure cursor is redrawn when
19873         exposing window.
19874         Note: This also fixes a similar (older) bug if display margins
19875         are present.
19877 2003-06-06  Kenichi Handa  <handa@m17n.org>
19879         * coding.c (encoding_buffer_size): If coding->type is
19880         coding_type_ccl, double magnification on CRLF encoding.
19882 2003-06-06  Jason Rumney  <jasonr@gnu.org>
19884         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
19885         (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
19887         * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
19888         Mac too.
19890 2003-06-05  Dave Love  <fx@gnu.org>
19892         * strftime.c: Merge changes from gnulib.
19894         * mktime.c (__mktime_internal): Merge changes from gnulib
19895         involving year 69 and dst2.
19897         Changes to merge with gnulib version and be consistent with the
19898         autoconf test:
19900         * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
19901         Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
19902         [HAVE_LOCALE_H]: Include locale.h.
19903         (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
19905 2003-06-05  Kim F. Storm  <storm@cua.dk>
19907         * window.c (coordinates_in_window): Convert X and Y to window
19908         relative coordinates inside mode-line and header-line parts.
19909         Convert X and Y to margin area relative coordinates inside left
19910         and right display margin parts.
19912 2003-06-05  Jason Rumney  <jasonr@gnu.org>
19914         * w32fns.c (add_system_logical_colors_to_map): New function.
19915         (Fx_open_connection): Use it.
19917 2003-06-04  Stefan Monnier  <monnier@cs.yale.edu>
19919         * process.c (allocate_pty): Revert part of the previous patch.
19920         (Faccept_process_output): Simplify.
19922 2003-06-04  Jason Rumney  <jasonr@gnu.org>
19924         * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
19926         * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
19927         (lispy_mouse_wheel_names): Remove.
19928         (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
19929         Always define drag_and_drop_syms.
19931         * macterm.c (XTread_socket): Map mouse wheel events to Emacs
19932         WHEEL_EVENT events.
19934 2003-06-03  Stefan Monnier  <monnier@cs.yale.edu>
19936         * xdisp.c (update_tool_bar): Add missing UNGCPRO.
19938         * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
19940 2003-06-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19942         * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
19943         menu item label.
19945 2003-06-03  Richard M. Stallman  <rms@gnu.org>
19947         * window.c (Fwindow_edges): Doc fix.
19948         (Fwindow_pixel_edges, Fwindow_inside_edges)
19949         (Fwindow_inside_pixel_edges): New functions.
19950         (syms_of_window): defsubr them.
19952         * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
19953         (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
19955 2003-06-02  Stefan Monnier  <monnier@cs.yale.edu>
19957         * dispnew.c (Fsit_for): Don't lie about the number of args.
19959 2003-06-02  Dave Love  <fx@gnu.org>
19961         * callproc.c: Use HAVE_FCNTL_H, not USG5.
19962         (syms_of_callproc) <process-environment>: Doc fix.
19964         * doc.c: Use HAVE_FCNTL_H, not USG5.
19966         * xfaces.c (font_rescale_ratio): Fix for K&R.
19968         * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
19970         * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
19972         * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
19974         * gtkutil.c: Include keyboard.h, charset.h, coding.h.
19975         (xg_create_frame_widgets): Use ENCODE_UTF_8.
19977         * xterm.c (Qutf_8): Move to coding.c
19979         * xmenu.c (ENCODE_MENU_STRING): New.
19980         (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
19981         Use it.
19983         * coding.h (ENCODE_UTF_8): New.
19984         (Qutf_8): Declare.
19986         * coding.c (Qutf_8): New.
19987         (syms_of_coding): Intern it.
19989         * fns.c: Doc fixes.
19991 2003-06-02  Kenichi Handa  <handa@m17n.org>
19993         * buffer.c (Fset_buffer_multibyte): Fix previous change.
19995 2003-06-01  Stefan Monnier  <monnier@cs.yale.edu>
19997         * lread.c (openp): Make sure STR is a string.
19999 2003-06-01  David Ponce  <david@dponce.com>
20001         * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
20002         Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
20004         * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
20005         (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
20006         (discard_mouse_events): Discard WHEEL_EVENT events too.
20007         (lispy_wheel_names, wheel_syms): New.
20008         (syms_of_keyboard): Init and staticpro `wheel_syms'.  Init and
20009         staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
20010         (make_lispy_event): Add WHEEL_EVENT handler.
20012         * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
20013         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
20014         WHEEL_EVENT events.
20016 2003-05-31  John Paul Wallington  <jpw@gnu.org>
20018         * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
20019         timer are in lisp/emacs-lisp.
20021 2003-05-31  Kenichi Handa  <handa@m17n.org>
20023         * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
20024         region when a buffer is changed to unibyte.
20026         * charset.h (VALID_LEADING_CODE_P): New macro.
20027         (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
20029         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
20030         is nonzero, accept multibyte form of eight-bit-control chars.
20031         (decode_composition_emacs_mule): Likewise.
20032         (decode_coding_emacs_mule): Likewise.
20033         (encode_coding_emacs_mule): If coding->flags is nonzero, produce
20034         multibyte form of eight-bit-control chars.
20036         * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
20037         (Finsert_file_contents): If coding-system-for-read is bound to
20038         Qauto_save_coding, use the coding system emacs-mule with special
20039         setting for recovering a file.
20040         (choose_write_coding_system): On auto saving, use the coding
20041         system emacs-mule with special setting for auto saving.
20042         (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
20044 2003-05-30  Kenichi Handa  <handa@m17n.org>
20046         * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
20047         properly before calling ccl_driver.
20049         * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
20051         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
20052         (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
20053         (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
20055 2003-05-29  Glenn Morris  <gmorris@ast.cam.ac.uk>
20057         * xfaces.c (realize_default_face): Do not abort if lface is
20058         non-existent - reverts change from 2003-05-19.
20060 2003-05-29  Kenichi Handa  <handa@m17n.org>
20062         * coding.c (decode_coding_iso2022): Pay attention to the byte
20063         sequence of CTEXT extended segment, and retain those bytes as is.
20065 2003-05-28  Kenichi Handa  <handa@m17n.org>
20067         * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
20068         of CODING_REPLACEMENT_CHARACTER.
20069         (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
20070         CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
20071         check this flag on encoding.
20072         (encode_coding_sjis_big5):
20073         Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
20074         (Fset_terminal_coding_system_internal):
20075         Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
20076         instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
20078         * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
20079         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20080         (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
20082 2003-05-28  Richard M. Stallman  <rms@gnu.org>
20084         * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
20086         * eval.c (unbind_to): Move init of this_binding to separate statement.
20088 2003-05-28  Kim F. Storm  <storm@cua.dk>
20090         * xdisp.c (expose_window): Fix error in calculation of
20091         window relative coordinates of area to redisplay.
20093 2003-05-27  Jason Rumney  <jasonr@gnu.org>
20095         * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
20097 2003-05-27  David Ponce  <david@dponce.com>
20099         Handle W32 mouse wheel events as mouse click events, like in X.
20101         * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
20102         MOUSE_WHEEL_EVENT anymore.
20104         * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
20105         Scrolling down/up the mouse wheel is respectively mapped to mouse
20106         button 4 and 5.
20107         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
20108         MOUSE_CLICK_EVENT events.  Forward w32 MSH_MOUSEWHEEL events as
20109         WM_MOUSEWHEEL events.
20111 2003-05-27  Andreas Schwab  <schwab@suse.de>
20113         * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
20115         * xdisp.c (try_window_id): Avoid aborting if PT is inside a
20116         partially visible line.
20118         * alloc.c (Fgarbage_collect): Fix last change.
20120 2003-05-26  John Paul Wallington  <jpw@gnu.org>
20122         * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
20124 2003-05-25  Stefan Monnier  <monnier@cs.yale.edu>
20126         * window.c (Fset_window_buffer): Add type of `keep_margins'.
20127         (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
20129         * window.h (window_box_text_cols): Declare.
20131         * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
20132         (x_draw_vertical_border): Remove unused var `f'.
20134         * xfaces.c (build_scalable_font_name): Remove `unused var
20135         pixel_size' warning.
20137         * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
20139         * unexelf.c (unexec): Remove `unused var n' warning.
20141         * strftime.c (my_strftime_localtime_r): Remove `defined but
20142         unused' warning.
20144         * process.c (allocate_pty): Remove `unused var stb' and
20145         `cp might be used uninitialized' warnings.
20147         * dispnew.c (mode_line_string): Remove unused var `f'.
20149         * coding.c (find_safe_codings): Remove unused var `i'.
20151         * bytecode.c (Fbyte_code): Remove `unused val' warning.
20153         * buffer.c (Fkill_buffer): Remove unused var `list'.
20155         * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
20157 2003-05-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
20159         * frame.c (make_frame): Condition want_fullscreen with
20160         HAVE_WINDOW_SYSTEM.
20162 2003-05-25  Juanma Barranquero  <lektu@terra.es>
20164         * window.c (Fset_window_scroll_bars): Fix typo in argument name.
20165         (Fwindow_scroll_bars): Fix typo in docstring.
20167 2003-05-24  Kim F. Storm  <storm@cua.dk>
20169         The following changes serve several purposes:
20171         1) Swap the position of fringes and display margins in windows, i.e.
20172         the fringes are now displayed between the margins and the text area
20173         (by default).
20175         2) Allow fringe and scroll bar parameters to be set per-buffer and
20176         per-window (like display margins).  Such settings are now stored
20177         in window configurations, preserved when frames are resized, and
20178         copied when windows are split vertically or horizontally.
20179         Several bugs related to display margins have been fixed.
20181         3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
20183         4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
20184         rather than FRAME_WIDTH (FRAME_FONT (f)).
20186         5) Introduce a consistent naming of variables, members and macros
20187         depending on whether their value is measured in pixels or in
20188         canonical columns/lines.  Pixel dimensions are named *_width and
20189         *_height, while canonical columns/lines are named *_cols and
20190         *_lines.  Pixel positions are named *_x and *_y, while column/line
20191         positions are named *_col and *_line.
20193         6) Consolidate more of the X, W32, and MAC gui code by moving
20194         common data into struct frame, and generalize it for the non-gui
20195         case by using suitable defaults.
20197         7) Cleanup and consolidate the macros controlling frame and window
20198         layout into frame.h and window.h, and generalize the use of the
20199         various window_box_* functions (enhanced to handle the new fringe
20200         position and the per-window fringe and scroll bar settings).
20202         * frame.h (struct frame): Rename members height to text_lines,
20203         width to text_cols, window_height to total_lines, window_width to
20204         total_cols, new_height to new_text_lines, new_width to
20205         new_text_cols.  All uses changed.
20206         (struct frame): New members which consolidate common members of
20207         x_output, w32_output, and mac_output structures: left_pos,
20208         top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
20209         win_gravity, size_hint_flags, border_width, internal_border_width,
20210         line_height, fringe_cols, left_fringe_width, right_fringe_width,
20211         want_fullscreen.  All uses changed.
20212         (struct frame): New member column_width contaning the canonical
20213         column width, analogue to line_height.  All uses changed.
20214         (struct frame): Rename members scroll_bar_pixel_width to
20215         config_scroll_bar_width, and scroll_bar_cols to
20216         config_scroll_bar_cols.  All uses changed.
20217         (struct frame): New member scroll_bar_actual_width which
20218         consolidates and renames the vertical_scroll_bar_extra member of
20219         x_output, w32_output, and mac_output structures.  All uses changed.
20220         (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
20221         from x/w32/macterm.h files.  All uses changed.  Also change code
20222         which referred to f->output_data...->pixel_height.
20223         (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
20224         from x/w32/macterm.h files.  All uses changed.  Also change code
20225         which referred to f->output_data...->pixel_width.
20226         (FRAME_LINES): Rename from FRAME_HEIGHT.  All uses changed.
20227         Also change code which referred to f->height.
20228         (FRAME_COLS): Rename from FRAME_WIDTH.  All uses changed.
20229         Also change code which referred to f->width.
20230         (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
20231         to update new_text_lines and new_text_cols members directly.
20232         (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
20233         FRAME_SCROLL_BAR_PIXEL_WIDTH.  All uses changed.
20234         (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
20235         FRAME_SCROLL_BAR_COLS.  All uses changed.
20236         (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
20237         Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
20238         FRAME_RIGHT_SCROLL_BAR_WIDTH, resp.  All uses changed.
20239         (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
20240         (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
20241         (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
20242         (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
20243         (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
20244         (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
20245         (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
20246         (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
20247         Unconditionally return line_height member (it now has proper value
20248         also for non-window frames).
20249         (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT.  Unconditionally
20250         return new column_width member (rather than the default font width).
20251         (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
20252         (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
20253         from x/w32/macterm.h files.  Unconditionally return corresponding
20254         member of frame structure (they now have proper values also for
20255         non-window frames).
20256         (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
20257         Calculate return value from left and right widths.
20258         (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
20259         internal_border_width member (has proper value for non-window frame).
20260         (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
20261         (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
20262         (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
20263         (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
20264         (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
20265         consolidated from xterm.h, macterm.h, and w32term.h.
20266         (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
20267         consolidated from xterm.h, macterm.h, and w32term.h.
20268         (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
20269         CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
20270         (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
20271         CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
20272         (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
20273         consolidated from x/mac/w32term.h.
20274         (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
20275         consolidated from x/mac/w32term.h.
20276         (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
20277         PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
20278         (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
20279         PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
20281         * window.h (struct window): Rename members left to left_col,
20282         top to top_line, height to total_lines, width to total_cols,
20283         left_margin_width to left_margin_cols, right_margin_width to
20284         right_margin_cols, orig_height to orig_total_lines, orig_top to
20285         orig_top_line.  All uses changed.
20286         (struct window): New members left_fringe_width, right_fringe_width,
20287         fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
20288         (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
20289         New macros primarily used to simplify other macros.
20290         (WINDOW_TOTAL_COLS): New macro.  Change relevant code that
20291         referred to XINT (w->width).
20292         (WINDOW_TOTAL_LINES): New macro.  Change relevant code that
20293         referred to XINT (w->height).
20294         (WINDOW_TOTAL_WIDTH): New macro.  Change relevant code that
20295         referred to XINT (w->width) * canon_x_unit.
20296         (WINDOW_TOTAL_HEIGHT): New macro.  Change relevant code that
20297         referred to XINT (w->height) * canon_y_unit.
20298         (WINDOW_LEFT_EDGE_COL): New macro.  Change relevant code that
20299         referred to XINT (w->left).
20300         (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE.  Change
20301         all uses and code that referred to XINT (w->left) + XINT (w->width).
20302         (WINDOW_TOP_EDGE_LINE): New macro.  Change relevant code that
20303         referred to XINT (w->top).
20304         (WINDOW_BOTTOM_EDGE_LINE): New macro.  Change relevant code that
20305         referred to XINT (w->top) + XINT (w->height).
20306         (WINDOW_LEFT_EDGE_X): New macro.  Change relevant code that
20307         referred to XINT (w->left) * canon_x_unit.
20308         (WINDOW_RIGHT_EDGE_X): New macro.  Change relevant code that
20309         referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
20310         (WINDOW_TOP_EDGE_Y): New macro.  Change relevant code that
20311         referred to XINT (w->top) * canon_y_unit.
20312         (WINDOW_BOTTOM_EDGE_Y): New macro.  Change relevant code that
20313         referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
20314         (WINDOW_LEFTMOST_P): New macro.
20315         (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
20316         All uses changed.
20317         (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
20318         All uses changed.
20319         (WINDOW_BOX_LEFT_EDGE_X): Rename from
20320         WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
20321         Do not exclude left fringe width.
20322         (WINDOW_BOX_RIGHT_EDGE_X): Rename from
20323         WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
20324         Do not exclude fringe widths.
20325         (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
20326         (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
20327         Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
20328         FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
20329         FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
20330         (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
20331         (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
20332         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
20333         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
20334         (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
20335         New macros.  Change code which referenced corresponding
20336         FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
20337         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
20338         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
20339         FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
20340         allow per-window scroll-bar settings.
20341         (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
20342         (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code that
20343         referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
20344         (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code
20345         that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
20346         FRAME_SCROLL_BAR_WIDTH.
20347         (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
20348         (WINDOW_SCROLL_BAR_AREA_X): New macros.
20349         (WINDOW_HEADER_LINE_HEIGHT): Rename from
20350         WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
20351         (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
20352         WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
20353         (WINDOW_BOX_TEXT_HEIGHT): Rename from
20354         WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
20355         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
20356         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
20357         (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
20358         (WINDOW_LEFT_MARGIN_WIDTH): Rename from
20359         WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
20360         (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
20361         WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
20362         (window_from_coordinates): Update prototype.
20363         (Fset_window_buffer): Update EXFUN.
20364         (set_window_buffer): Update prototype.
20366         * dispextern.h (struct glyph_matrix): Rename members window_left_x
20367         to window_left_col, window_top_y to window_top_line.  All uses
20368         changed.
20369         (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
20370         use FRAME_INTERNAL_BORDER_WIDTH macro instead as
20371         internal_border_width is now set to 0 for non-window frames.
20372         (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
20373         (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
20374         (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
20375         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
20376         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
20377         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
20378         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
20379         (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
20380         (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
20381         Move to window.h and renamed [see window.h changes].
20382         (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
20383         (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
20384         (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
20385         Use WINDOW_TOTAL_LINES.
20386         (frame_update_line_height): Remove prototype.
20388         * buffer.h (struct buffer): Rename members measured in columns:
20389         left_margin_width to left_margin_cols, right_margin_width to
20390         right_margin_cols.  All uses changed.
20391         New members left_fringe_width, right_fringe_width,
20392         fringes_outside_margins for per-buffer fringe settings.
20393         New members scroll_bar_width and vertical_scroll_bar_type for
20394         per-buffer scroll bar settings.
20396         * buffer.c (init_buffer_once): Set buffer_defaults and
20397         buffer_local_flags for new buffer-local variables
20398         left_fringe_width, right_fringe_width, fringes_outside_margins,
20399         scroll_bar_width, and vertical_scroll_bar_type.
20400         (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
20401         default-* variables for them.
20403         * dispnew.c: Make (many) trivial substitutions for renamed and
20404         new macros in dispextern.h, frame.h and window.h.
20405         (mode_line_string): No need to adjust width for mode lines, as it
20406         is already adjusted by the caller.
20407         (marginal_area_string): Handle fringes inside/outside margins.
20409         * frame.c: Make (many) trivial substitutions for renamed and
20410         new macros in dispextern.h, frame.h and window.h.
20411         (make_frame): Initialize left_fringe_width, right_fringe_width,
20412         fringe_cols, scroll_bar_actual_width, border_width,
20413         internal_border_width, column_width, line_height, x_pixels_diff,
20414         y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
20415         members with values suitable for a non-window frames.
20417         * gtkutil.c: Make (many) trivial substitutions for renamed and
20418         new macros in dispextern.h, frame.h and window.h.
20420         * indent.c: Make (few) trivial substitutions for renamed and
20421         new macros in dispextern.h, frame.h and window.h.
20423         * keyboard.c: Make (many) trivial substitutions for renamed and
20424         new macros in dispextern.h, frame.h and window.h.
20425         (make_lispy_event): Use window positions returned from
20426         window_from_coordinates when constructing the lisp event for
20427         MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
20428         (incorrect) values locally.
20429         (make_lispy_movement): Use window positions returned from
20430         window_from_coordinates when constructing the lisp event, rather
20431         than calculating (incorrect) values locally.
20433         * scroll.c: Make (some) trivial substitutions for renamed and
20434         new macros in dispextern.h, frame.h and window.h.
20436         * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
20437         scroll-bars.
20439         * sysdep.c: Make (few) trivial substitutions for renamed and
20440         new macros in dispextern.h, frame.h and window.h.
20442         * term.c: Make (some) trivial substitutions for renamed and
20443         new macros in dispextern.h, frame.h and window.h.
20445         * widget.c: Make (few) trivial substitutions for renamed and
20446         new macros in dispextern.h, frame.h and window.h.
20448         * window.c: Make (many) trivial substitutions for renamed and
20449         new macros in dispextern.h, frame.h and window.h.
20450         (make_window): Initialize new members
20451         left_margin_cols, right_margin_cols, left_fringe_width,
20452         right_fringe_width, fringes_outside_margins, scroll_bar_width,
20453         and vertical_scroll_bar_type.
20454         (coordinates_in_window): Adapt to new fringe/margin positions
20455         and per-window fringes and scroll-bars.
20456         Fix bug related to incorrectly adjusting coordinates by
20457         frame's internal_border_width (the effect normally negible since
20458         the internal_border_width is typically 0 or 1 pixel, but very
20459         noticeable for an internal_border_width of e.g. 25 pixels).
20460         Upon successful return (other than ON_NOTHING), the coordinates
20461         are now always properly converted to window relative for the
20462         given display element.
20463         (window_from_coordinates): Add new parameters wx and wy to
20464         return the window relative x and y position in the returned
20465         window and part.  A null arg means, don't return the position.
20466         All callers changed.
20467         (adjust_window_margins): New function which may reduce the width
20468         of the display margins if a window's text area is too small after
20469         resizing or splitting windows.
20470         (size_window): Fix bug that did not account for display margin
20471         widths when checking the minimum width of a window; use
20472         adjust_window_margins.
20473         (set_window_buffer): Call Fset_window_fringes and
20474         Fset_window_scroll_bars to setup per-window elements.
20475         Add new arg KEEP_MARGINS_P.  Non-nil means to keep window's
20476         existing display margin, fringe widths, and scroll bar settings
20477         (e.g. after splitting a window or resizing the frame).
20478         All callers changed.
20479         (Fset_window_buffer): New arg KEEP_MARGINS.  All callers changed.
20480         (Fsplit_window): Duplicate original window's display margin,
20481         fringe, and scroll-bar settings; then call Fset_window_buffer with
20482         KEEP_MARGINS non-nil.  This fixes a bug which caused a split
20483         window to only preserve the display margins in one of the windows.
20484         When splitting horizontally, call adjust_window_margins on both
20485         windows to ensure that the text area of the new windows is non too
20486         narrow.  This fixes a bug which could cause Emacs to trap if the
20487         width of the split window was less than the width of the display
20488         margins.
20489         (window_box_text_cols): Rename from window_internal_width.
20490         All uses changed.  Adapt to per-window fringes and scroll bars.
20491         Fix bug that caused vertical separator to be subtracted also on
20492         window frames.  Fix another bug that did not reduce the returned
20493         value by the columns used for display margins.
20494         (window_scroll_line_based): Fix bug related to scrolling too much
20495         when display margins are present (implicitly fixed by the fix to
20496         window_box_text_cols).
20497         (scroll_left, scroll_right): Fix bug related to scrolling too far
20498         by default when display margins are present (implicitly fixed by
20499         the fix to window_box_text_cols).
20500         (struct saved_window): Rename members left to left_col, top to
20501         top_line, width to total_cols, height to total_lines, orig_top to
20502         orig_top_line, orig_height to orig_total_lines.  All uses changed.
20503         New members left_margin_cols, right_margin_cols,
20504         left_fringe_width, right_fringe_width, fringes_outside_margins,
20505         scroll_bar_width, and vertical_scroll_bar_type for saving
20506         per-window display elements.
20507         (Fset_window_configuration): Restore display margins, fringes,
20508         and scroll bar settings.  This fixes a bug which caused display
20509         margins to be discarded when saving and restoring a window
20510         configuration.
20511         (save_window_save): Save display margins, fringes, and scroll bar
20512         settings.  This fixes a bug which caused display margins to be
20513         discarded when saving and restoring a window configuration.
20514         (Fset_window_margins): Do nothing if display margins are not
20515         really changed.  Otherwise, call adjust_window_margins to ensure
20516         the text area doesn't get too narrow.  This fixes a bug which
20517         could cause Emacs to trap if setting display margins wider than
20518         the width of the window.
20519         (Fset_window_fringes): New defun to allow user to specifically set
20520         this window's fringe widths and position vs. display margins.
20521         (Fwindow_fringes): New defun to return window's actual fringe settings.
20522         (Fset_window_scroll_bars): New defun to allow user to specifically
20523         set this window's scroll bar width and position.
20524         (Fwindow_scroll_bars): New defun to return window's actual scroll
20525         bar settings.
20526         (compare_window_configurations): Also compare display margins,
20527         fringes, and scroll bar settings.
20528         (syms_of_window): Defsubr new defuns for fringe and scroll bars.
20530         * xdisp.c: Make (many) trivial substitutions for renamed and
20531         new macros in dispextern.h, frame.h and window.h.
20532         (window_box_width): Adapt to per-window fringes and scroll bars,
20533         and new fringe vs. display margin position.  Note that returned
20534         value is no longer guaranteed to be a whole multiple of the frame
20535         column width, since per-window fringes may now be any width.
20536         (window_box_left_offset): New function like window_box_left, but
20537         value is relative to left border of window (rather than frame).
20538         (window_box_right_offset): New function like window_box_right,
20539         but value is relative to left border of window.
20540         (window_box_left): Adapt to per-window fringes and scroll bars,
20541         and new fringe vs. display margin position.  Simplify by using
20542         WINDOW_LEFT_EDGE_X and window_box_left_offset.
20543         (window_box): Allow null args for unnecessary return values;
20544         change/simplify relevant callers.
20545         (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
20546         and new fringe vs. display margin position.
20547         Use window_box_left_offset and window_box_right_offset
20548         (get_glyph_string_clip_rect): Adapt to per-window fringes and
20549         scroll bars, and new fringe vs. display margin position.
20550         Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
20551         (draw_fringe_bitmap): Rework to handle per-window fringes and new
20552         fringe vs. display margin position.
20553         (hscroll_window_tree): Use window_box_width instead of window_box.
20554         (redisplay_window): Adapt to per-window scroll bars.
20555         (draw_glyphs): Rework to handle per-window fringes and scroll
20556         bars, and new fringe vs. display margin position.
20557         Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
20558         (x_clear_end_of_line): Adapt to per-window fringes and scroll
20559         bars, and new fringe vs. display margin position.  Fix bug which
20560         increased total width of full_width rows by width of scroll bars
20561         although window's total width already includes that.
20562         (x_fix_overlapping_area): Simplify using window_box_left_offset.
20563         (expose_area): Simplify using window_box_left_offset.
20564         (x_draw_vertical_border): Handle per-window scroll bar settings,
20565         mixing windows with left, right and no scroll bars.
20567         * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
20568         where it's used in x_list_fonts (for clarity).
20569         (frame_update_line_height): Remove unused function; functionality
20570         is now done directly when setting the default font in x_set_font.
20572         * xfns.c: Make (many) trivial substitutions for renamed and
20573         new macros in dispextern.h, frame.h and window.h.
20575         * xmenu.c: Make (some) trivial substitutions for renamed and
20576         new macros in dispextern.h, frame.h and window.h.
20578         * xterm.h (struct x_output): Move members left_pos, top_pos,
20579         border_width, pixel_height, pixel_width, line_height,
20580         internal_border_width, vertical_scroll_bar_extra,
20581         left_fringe_width, right_fringe_width, fringe_cols,
20582         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
20583         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
20584         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
20585         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
20586         (PIXEL_WIDTH, PIXEL_HEIGHT)
20587         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
20588         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
20589         frame.h and renamed [see frame.h changes].
20590         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
20591         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
20592         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
20593         and renamed [see frame.h changes].
20595         * xterm.c: Make (several) trivial substitutions for renamed and
20596         new macros in dispextern.h, frame.h and window.h.
20597         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
20598         (scroll_run): Adapt to new fringe position.
20599         (glyph_rect): Use window coordinates returned from
20600         window_from_coordinates rather than frame_to_window_pixel_xy.
20601         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
20602         scroll-bars.
20603         (handle_one_xevent): Simplify a USE_GTK conditional.
20604         (x_clip_to_row): Remove superfluous whole_line_p arg and code
20605         (fringes are now inside margins, i.e. always in the clipping area).
20606         All callers changed.
20607         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
20608         directly, then call compute_fringe_widths.  Don't call
20609         frame_update_line_height.
20611         * w32term.h (struct w32_output): Move members left_pos, top_pos,
20612         border_width, pixel_height, pixel_width, line_height,
20613         internal_border_width, vertical_scroll_bar_extra,
20614         left_fringe_width, right_fringe_width, fringe_cols,
20615         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
20616         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
20617         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
20618         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
20619         (PIXEL_WIDTH, PIXEL_HEIGHT)
20620         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
20621         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
20622         frame.h and renamed [see frame.h changes].
20623         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
20624         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
20625         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
20626         and renamed [see frame.h changes].
20628         * w32term.c: Make (several) trivial substitutions for renamed and
20629         new macros in dispextern.h, frame.h and window.h.
20630         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
20631         (glyph_rect): Use window coordinates returned from
20632         window_from_coordinates rather than frame_to_window_pixel_xy.
20633         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
20634         scroll-bars.
20635         (w32_clip_to_row): Remove superfluous whole_line_p arg and code
20636         (fringes are now inside margins, i.e. always in the clipping area).
20637         All callers changed.
20638         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
20639         directly, then call compute_fringe_widths.  Don't call
20640         frame_update_line_height.
20642         * w32console.c: Make (few) trivial substitutions for renamed and
20643         new macros in dispextern.h, frame.h and window.h.
20645         * w32fns.c: Make (many) trivial substitutions for renamed and
20646         new macros in dispextern.h, frame.h and window.h.
20648         * w32menu.c: Make (few) trivial substitutions for renamed and
20649         new macros in dispextern.h, frame.h and window.h.
20651         * macterm.h (struct mac_output): Move members left_pos, top_pos,
20652         border_width, pixel_height, pixel_width, line_height,
20653         internal_border_width, vertical_scroll_bar_extra,
20654         left_fringe_width, right_fringe_width, fringe_cols,
20655         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
20656         x_pixels_diff, y_pixels_diff to struct frame (frame.h).
20657         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
20658         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
20659         (PIXEL_WIDTH, PIXEL_HEIGHT)
20660         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
20661         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
20662         frame.h and renamed [see frame.h changes].
20663         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
20664         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
20665         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
20666         and renamed [see frame.h changes].
20668         * macterm.c: Make (several) trivial substitutions for renamed and
20669         new macros in dispextern.h, frame.h and window.h.
20670         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
20671         (glyph_rect): Use window coordinates returned from
20672         window_from_coordinates rather than frame_to_window_pixel_xy.
20673         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
20674         scroll-bars.
20675         (x_clip_to_row): Remove superfluous whole_line_p arg and code
20676         (fringes are now inside margins, i.e. always in the clipping area).
20677         All callers changed.
20678         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
20679         directly, then call compute_fringe_widths.  Don't call
20680         frame_update_line_height.
20682         * macfns.c: Make (several) trivial substitutions for renamed and
20683         new macros in dispextern.h, frame.h and window.h.
20684         (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
20686         * macmenu.c: Make (few) trivial substitutions for renamed and
20687         new macros in dispextern.h, frame.h and window.h.
20689         * msdos.h (struct x_output): Remove members left_pos, top_pos,
20690         and line_height, and use corresponding new members in struct
20691         frame.  All uses changed.
20692         (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
20693         superseeded by corresponding macros in frame.h.
20695         * msdos.c: Make (several) trivial substitutions for renamed and
20696         new macros in dispextern.h, frame.h and window.h.
20697         (IT_note_mouse_highlight): Use updated window coordinates returned
20698         by window_from_coordinates, rather than adjusting them locally.
20699         (internal_terminal_init): No need to initialize line_height here;
20700         it now defaults to 1.
20702 2003-05-24  Stefan Monnier  <monnier@cs.yale.edu>
20704         * keyboard.c (read_key_sequence): Adjust fkey and keytran when
20705         dropping `down' events.
20707 2003-05-24  Andreas Schwab  <schwab@suse.de>
20709         * coding.c (find_safe_codings): Fix last change.
20711 2003-05-24  Istvan Marko  <mi@imarko.dhs.org>  (tiny change)
20713         * xfns.c (x_window): Fix typo from 2003-05-21 change.
20715 2003-05-23  Stefan Monnier  <monnier@cs.yale.edu>
20717         * xdisp.c (display_mode_element): Increase max depth.
20718         Simplify the error handling code.  Use a different error string
20719         for the case where we hit the depth limit.
20721         * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
20723         * buffer.c (reset_buffer_local_variables): Remove redundant setting.
20725 2003-05-21  Stefan Monnier  <monnier@cs.yale.edu>
20727         * intervals.c (get_local_map): Don't get char-property of previous
20728         point any more: get_pos_property already does it and better.
20730 2003-05-21  Dave Love  <fx@gnu.org>
20732         [Merged from unicode branch.]
20734         * xfns.c (x_window, x_window): Use use_xim.
20736         * xterm.c (use_xim): Initialize.
20737         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20738         (x_term_init): Maybe set use_xim.
20740         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20742 2003-05-21  Jason Rumney  <jasonr@gnu.org>
20744         * unexw32.c (_start): Remove _fmode initialization.
20746         * emacs.c (main) [WINDOWSNT]: Move it here.
20748 2003-05-20  Dave Love  <fx@gnu.org>
20750         * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
20752 2003-05-19  Richard M. Stallman  <rms@gnu.org>
20754         * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
20755         as value for QCfont attribute.
20756         (realize_default_face): lface should already exist; crash if not.
20757         Specify 0 for FORCE_P when calling set_lface_from_font_name.
20759         * frame.c (Fignore_event): Doc fix.
20761 2003-05-19  Kenichi Handa  <handa@m17n.org>
20763         * coding.c (decode_coding_string): Handle post-read-conversion
20764         even if the coding doesn't require decoding.
20766 2003-05-18  Richard M. Stallman  <rms@gnu.org>
20768         * callproc.c (Fcall_process_region): Doc fix.
20770 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
20772         * lread.c (Fload): Print a message if package is obsolete.
20774         * window.c (Fselect_window): Add optional `norecord' arg.
20775         (select_window_1): Fold into Fselect_window.
20776         (select_window_norecord): New function.
20777         (temp_output_buffer_show): Use it.  Preserve current buffer.
20779         * window.h (Fselect_window): Update declaration.
20781         * window.c (delete_window, Fother_window, Fset_window_configuration):
20782         * minibuf.c (read_minibuf):
20783         * macterm.c (x_new_focus_frame):
20784         * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
20785         * callint.c (Fcall_interactively):
20786         * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
20788         * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
20790 2003-05-17  David Kastrup  <dak@gnu.org>
20792         * process.c (read_process_output): Back out change from 2003-03-09.
20794 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
20796         * editfns.c (get_pos_property): Don't assume that `object' = nil.
20798         * textprop.c (text_property_stickiness): New arg `buffer'.
20800         * intervals.h (text_property_stickiness): New arg `buffer'.
20801         (get_pos_property): Declare.
20803         * intervals.c (get_local_map): Use get_pos_property, to obey
20804         stickiness and empty overlays.
20805         (create_root_interval, graft_intervals_into_buffer): Use BEG.
20806         (merge_properties, intervals_equal, merge_properties_sticky):
20807         Use XCAR, XCDR.
20808         (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
20810 2003-05-17  Richard M. Stallman  <rms@gnu.org>
20812         * minibuf.c (read_minibuf): If buffer is empty, record the default
20813         in the history.
20814         (Fminibuffer_complete_word): When deleting the overlap, take account
20815         of its real position.
20817         * fns.c (map_char_table): Fix previous change.
20819         * syntax.c (find_defun_start):
20820         When open_paren_in_column_0_is_defun_start,
20821         return beginning of buffer.
20823         * lisp.h (map_char_table): Declare added arg.
20825         * fns.c (map_char_table): New arg TABLE gets the master table.
20826         All calls changed.
20827         Process default and inheritance, resorting to Faref if necessary.
20829         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20830         (Faccessible_keymaps): Pass new arg to map_char_table.
20832         * fontset.c (Ffontset_info): Pass new arg to map_char_table.
20834         * casetab.c (set_case_table): Pass new arg to map_char_table.
20836         * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
20838         * lisp.h (specbinding_func): New typedef.
20839         (struct specbinding): Use specbinding_func, to put the `volatile'
20840         in the right place.
20842         * alloc.c (Fgarbage_collect): Cast pointers into specpdl
20843         to avoid GCC warning.
20845 2003-05-16  Ralph Schleicher  <rs@nunatak.allgaeu.org>
20847         * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
20849 2003-05-15  Stefan Monnier  <monnier@cs.yale.edu>
20851         * keyboard.c (apply_modifiers): Don't fill the other cache.
20853 2003-05-14  Stefan Monnier  <monnier@cs.yale.edu>
20855         * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
20857         * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
20858         (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
20859         (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
20860         (Fset_window_configuration, Fcurrent_window_configuration)
20861         (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
20862         (Fpos_visible_in_window_p, mark_window_cursors_off)
20863         (window_internal_height, window_internal_width, Frecenter)
20864         (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
20865         (replace_buffer_in_all_windows, init_window_once, init_window)
20866         (syms_of_window, keys_of_window): Move from lisp.h.
20867         * lisp.h: Move window.c declarations to window.h.
20869         * bytecode.c: Include window.h.
20870         * emacs.c: Include window.h.
20872         * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
20873         (keyremap): Add `parent' field.
20874         (keyremap_step): Use it.  Remove `parent' argument.
20875         (read_key_sequence): Setup and use the new `parent' field.
20877 2003-05-11  Stefan Monnier  <monnier@cs.yale.edu>
20879         * keyboard.c (adjust_point_for_property): Ensure termination.
20881 2003-05-10  Stefan Monnier  <monnier@cs.yale.edu>
20883         * keyboard.c (follow_key): Remove dead variable `did_meta'.
20884         (access_keymap_keyremap, keyremap_step): New funs, extracted from the
20885         duplicated handling of function-key-map and key-translation-map
20886         in read_key_sequence.
20887         (read_key_sequence): Use them.
20889         * keyboard.c (adjust_point_for_property): Try harder to move point
20890         to the non-sticky end of an invisible property.
20892         * xdisp.c (single_display_prop_intangible_p): Make `space' display
20893         property intangible as well.
20895 2003-05-10  Andreas Schwab  <schwab@suse.de>
20897         * xmenu.c (single_menu_item): Change last parameter to void* to
20898         avoid warning.
20900 2003-05-09  Richard M. Stallman  <rms@gnu.org>
20902         * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
20903         Bind Qinhibit_modification_hooks to t so there will be no GC.
20904         Rename local `tem' to `save_deactivate_mark'.
20906         * eval.c (specpdl_ptr): Declare volatile.
20907         (unbind_to): Copy the whole binding and decrement specpdl_ptr
20908         before doing the work of unbinding it.
20910         * lisp.h (struct specbinding): Declare elements volatile.
20911         (specpdl_ptr): Declare volatile.
20913         * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
20915         * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
20916         for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
20918 2003-05-08  Dave Love  <fx@gnu.org>
20920         * coding.c (Vlast_coding_system_used): Doc fix.
20922 2003-05-07  Jason Rumney  <jasonr@gnu.org>
20924         * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
20925         when system does not support them.
20927 2003-05-05  Stefan Monnier  <monnier@cs.yale.edu>
20929         * fileio.c (Qwrite_region_annotate_functions): New var.
20930         (build_annotations): Use it to process the global part of the hook.
20931         (syms_of_fileio): Init and staticpro it.
20933         * keyboard.c (safe_run_hooks_error): Display a message instead of
20934         silently ignoring the error.
20936 2003-05-03  Stefan Monnier  <monnier@cs.yale.edu>
20938         * keyboard.c (input_available_signal): Mark static.
20939         (menu_bar_items): Use map_keymap.
20940         (menu_bar_one_keymap): Remove.
20941         (menu_bar_item): Adjust arglist (for use in map_keymap).
20942         Properly hide a second binding when not both are keymaps.
20944         * xmenu.c (struct skp): New struct, to pass args through map_keymap.
20945         (single_keymap_panes): Use it and map_keymap.
20946         (single_menu_item): Use skp as well.
20948         * keymap.h (map_keymap_function_t): New type.
20949         (map_keymap): Declare.
20951         * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
20952         (map_keymap_call, Fmap_keymap): New functions.
20953         (syms_of_keymap): Defsubr map-keymap.
20955 2003-05-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
20957         * gtkutil.c (create_dialog, make_widget_for_menu_item)
20958         (make_menu_item, create_menus, xg_update_menu_item): Don't call
20959         ..._with_mnemonic functions for menu items.
20961 2003-05-01  Kenichi Handa  <handa@m17n.org>
20963         * coding.c (coding_system_accept_latin_extra_p): Delete this
20964         function.
20965         (find_safe_codings): Pay attention to
20966         the property tranlsation-table-for-encode of each codings.
20967         (syms_of_coding): Give Qtranslation_table the extra slot number 2.
20969 2003-05-01  Stefan Monnier  <monnier@cs.yale.edu>
20971         * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
20973 2003-04-30  Stefan Monnier  <monnier@cs.yale.edu>
20975         * eval.c (unbind_to): Don't handle symbol = Qnil any more.
20977         * lisp.h (CHECK): Wrap args in parenthesis.
20978         (specbind): Fix doc: symbol = Qnil is not supported any more.
20980         * bytecode.c (Fbyte_code) <unwind-protect>:
20981         Use Fprogn rather than 0 and Qnil.
20983         * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
20984         `double', and `triple' modifiers as well.
20986 2003-04-30  Richard M. Stallman  <rms@gnu.org>
20988         * keyboard.c (echo_char): Don't clear out a dash that follows a space.
20990         * alloc.c (abort_on_gc): New variable.
20991         (Fgarbage_collect): Abort if abort_on_gc is set.
20993         * lisp.h (abort_on_gc): Add decl.
20995         * eval.c (Fsignal): Clear abort_on_gc.
20997         * editfns.c (Fformat): Set abort_on_gc during first scan of format.
20998         Reinit FORMAT_START and END before second scan.
21000         * xdisp.c (move_it_vertically_backward): Do the final big else
21001         even if nlines is 0.
21003         * xdisp.c (redisplay_internal): Finish the per-frame loop
21004         even if redisplay is suspended by input.
21006 2003-04-24  Andrew Choi  <akochoi@shaw.ca>
21008         * macterm.c (x_list_fonts): Return all fonts that match if
21009         maxnames = -1.
21011 2003-04-25  Kenichi Handa  <handa@m17n.org>
21013         * syntax.c (skip_chars): Fix previous change.
21015 2003-04-24  Kenichi Handa  <handa@m17n.org>
21017         * syntax.c (skip_chars): Make the code faster by using the common
21018         technique of *p, *stop, and *endp.
21020 2003-04-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21022         * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
21023         tool_bar_items so GTK tool bar expose callback does not access items
21024         being updated.
21026 2003-04-19  Stefan Monnier  <monnier@cs.yale.edu>
21028         * eval.c (Fapply): Undo last change and add a comment about why.
21030 2003-04-18  Miles Bader  <miles@gnu.org>
21032         * data.c (Faset): Calculate nbytes earlier, to satisfy the now
21033         pickier PARSE_MULTIBYTE_SEQ.
21035 2003-04-17  Stefan Monnier  <monnier@cs.yale.edu>
21037         * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
21038         Use XCDR, XCAR, CONSP.
21039         (Fdefmacro): Fix docstring.  Use XCAR, XCDR.
21040         (Fapply): Remove unnecessary GCPRO.
21042         * doc.c (Fsubstitute_command_keys): Remove spurious casts.
21044         * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
21046         * buffer.h: Don't hardcode BEG==1.
21048         * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
21050 2003-04-16  Richard M. Stallman  <rms@gnu.org>
21052         * xdisp.c (try_window, try_window_reusing_current_matrix):
21053         When at end of window, set window_end_pos to Z-ZV.
21055         * buffer.c (Foverlay_recenter): Doc fix.
21057 2003-04-14  Stefan Monnier  <monnier@cs.yale.edu>
21059         * dispnew.c (Fsit_For): Support XEmacs-style arg list.
21061 2003-04-14  Andrew Choi  <akochoi@shaw.ca>
21063         * macterm.c (mac_check_for_quit_char): Don't check more often than
21064         once a second.
21066 2003-04-11  Stefan Monnier  <monnier@cs.yale.edu>
21068         * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
21069         specially, so that they can't hide an implicit switch-frame event.
21070         (make_lispy_event): Handle SELECT_WINDOW_EVENT.
21071         (head_table): Use switch-frame as event_kind for select-window.
21072         (keys_of_keyboard): Don't bind [select-window] in special-event-map.
21074         * editfns.c (Fformat): Lisp_Object/int mixup.
21075         (format2): Remove unused var numargs.
21077 2003-04-11  Kenichi Handa  <handa@m17n.org>
21079         * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
21080         (Qafter_insert_file_set_coding): New variable.
21081         (syms_of_fileio): Initialize and staticpro it.  Delete declaration
21082         for after-insert-file-adjust-coding-function.
21083         (Finsert_file_contents): Call Qafter_insert_file_set_coding
21084         instead of Vafter_insert_file_adjust_coding_function.
21086 2003-04-11  Kenichi Handa  <handa@m17n.org>
21088         * lisp.h (temp_echo_area_glyphs): Adjust prototype.
21090         * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
21091         string.  Callers changed.
21093 2003-04-10  Kenichi Handa  <handa@m17n.org>
21095         * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
21096         (syms_of_fileio): Declare it as a lisp variable.
21097         (Finsert_file_contents):
21098         Call Vafter_insert_file_adjust_coding_function before calling
21099         decode-format.
21101 2003-04-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21103         * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
21104         get GtkAdjustment as widget now is a GtkRange.
21106         * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
21107         GtkRange to avoid memory leak.
21109 2003-04-09  Kenichi Handa  <handa@m17n.org>
21111         * xfaces.c (Vface_font_rescale_alist): New variable.
21112         (struct font_name): New member rescale_ratio.
21113         (font_rescale_ratio): New function.
21114         (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
21115         (better_font_p): On comparing point sized, pay attention to
21116         recale_ratio member of fonts.
21117         (build_scalable_font_name): Reflect font->rescale_ratio in the
21118         font name.
21119         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21121         * lread.c (read1): Before calling index, check if the 2nd
21122         arguemnt is in ASCII range.
21124 2003-04-08  Richard M. Stallman  <rms@gnu.org>
21126         * fileio.c (Ffile_symlink_p): Doc fix.
21128         * editfns.c (Fformat): Translate positions of text properties
21129         in the format string to apply them to the result.
21131         * fileio.c (Finsert_file_contents): Doc fix.
21132         (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21134 2003-04-08  Ivan Zakharyaschev  <imz@altlinux.org>  (tiny change)
21136         * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
21138 2003-04-08  Steven Tamm  <steventamm@mac.com>
21140         * mac.c (init_mac_osx_environment): Switch libexec and bin so
21141         that self-contained application finds libexec files.
21143 2003-04-08  Kenichi Handa  <handa@m17n.org>
21145         * coding.c (code_convert_region_unwind):
21146         Set Vlast_coding_system_used to the argument.
21147         (code_convert_region): If post-read-conversion function changed
21148         the value of last-coding-sytem, keep the new value in
21149         coding->symbol so that it won't be overridden.
21150         (run_pre_post_conversion_on_str): Likewise.
21151         (coding_system_accept_latin_extra_p): New function.
21152         (find_safe_codings): Pay attention to characters registered in
21153         latin-extra-code-table.
21155 2003-04-07  Thien-Thi Nguyen  <ttn@gnu.org>
21157         * Makefile.in (md5.o): Add missing dependency info.
21159 2003-04-06  Richard M. Stallman  <rms@gnu.org>
21161         * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
21163         * marker.c (verify_bytepos): New function.
21165         * intervals.c (set_intervals_multibyte_1): When becoming
21166         multibyte, adjust right and left child sizes to a whole set of
21167         characters.  If an interval gets zero total-length, delete it.
21168         If an interval consists of just its children, delete one of them.
21170         * intervals.h (CHECK_TOTAL_LENGTH): New macro.
21171         * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
21173         * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
21174         All calls deleted.
21175         (lisp_malloc): Do the work here directly.
21177 2003-04-06  Gareth Jones  <emacs@referential.org.uk>  (tiny change)
21179         * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
21180         char tables.
21182 2003-04-04  Kenichi Handa  <handa@m17n.org>
21184         * editfns.c (Fformat): Use a copy of FORMAT string so that we can
21185         destructively change "%S" to "%s".
21187 2003-04-03  Miles Bader  <miles@gnu.org>
21189         * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
21190         always set.
21192 2003-04-01  Dave Love  <fx@gnu.org>
21194         * xfns.c (xpm_lookup_color): Grok "opaque".
21196 2003-03-31  Andrew Choi  <akochoi@shaw.ca>
21198         * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
21199         parent window ID.
21201         * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
21203         * macterm.h (struct mac_output): Define x_pixels_diff and
21204         y_pixels_diff.
21206 2003-03-31  Juanma Barranquero  <lektu@terra.es>
21208         * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
21209         blockinput.h and files included from it.
21211 2003-03-31  Kim F. Storm  <storm@cua.dk>
21213         The following changes consolidates the common code related to
21214         frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
21215         files into frame.c.
21217         * frame.c: Include blockinput.h.
21218         (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
21219         (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
21220         (Qauto_raise, Qauto_lower, ...): Define all frame parameter
21221         related vars here.
21222         (struct frame_parm_table, frame_parms): New table for describing
21223         frame parameters and their associated Q-variable.
21224         The order of the parameters corresponds to the sequence of the
21225         frame_parm_handlers table in redisplay_interface.
21226         (x_fullscreen_move, x_set_frame_parameters)
21227         (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
21228         (x_set_screen_gamma, x_set_font, x_set_fringe_width)
21229         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
21230         (x_set_autoraise, x_set_autolower, x_set_unsplittable)
21231         (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
21232         Generic functions for processing of frame parameters.
21233         (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
21234         (display_x_get_resource, x_get_resource_string): Functions for
21235         generic access to X resources.
21236         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
21237         (x_default_parameter, Fx_parse_geometry): Functions for generic
21238         access to frame parameters.
21239         (x_figure_window_size): Generic calculation of frame size.
21240         Fixed to add space needed for tool bar.  Also setup size_hint_flags.
21241         (syms_of_frame): Intern and staticpro frame parameter variables.
21242         Defvar_lisp Vx_resource_class and Vx_resource_name here.
21243         Defsubr Sx_get_resource and Sx_parse_geometry.
21245         * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
21246         parameter related vars defined in frame.c.
21247         (EMACS_CLASS): Define here.
21248         (enum FULLSCREEN_*): Define here.
21249         (x_set_scroll_bar_default_width, x_wm_set_icon_position)
21250         (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
21251         (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
21252         (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
21253         (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
21254         (x_set_visibility, x_set_autoraise, x_set_autolower)
21255         (x_set_unsplittable, x_set_vertical_scroll_bars)
21256         (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
21257         (x_figure_window_size): Add prototypes.
21259         * dispextern.h (frame_parm_handler): New typedef.
21260         (struct redisplay_interface): New member frame_parm_handlers.
21261         (enum resource_types): Move declaration here.
21262         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
21263         (x_default_parameter): Add prototypes.
21265         * window.c: Remove extern decl for frame parameter vars.
21266         (change_window_heights): New generic function;
21267         replaces x_change_window_heights.  All users changed.
21269         * window.h (change_window_heights): Add prototype.
21271         * xfaces.c: Remove extern decl for frame parameter vars.
21273         * xterm.h (EMACS_CLASS): Remove.  Use generic define.
21274         (struct w32_display_info): Fix type of xrdb member.
21275         (enum FULLSCREEN_*): Remove.
21276         Remove prototypes for generic functions (in frame.h).
21278         * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
21279         parameters now defined in frame.h and frame.c.
21280         (Vx_resource_name): Remove.  Use generic var.
21281         (enum x_frame_parms): Remove (bogus, unused enum).
21282         (check_x_display_info): Make non-static (for frame.c).
21283         (struct x_frame_parm_table, x_frame_parms): Remove.
21284         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
21285         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
21286         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
21287         (x_change_window_heights, x_set_autoraise, x_set_autolower)
21288         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
21289         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
21290         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
21291         Remove.  Use generic functions instead.
21292         (enum resource_types): Remove.
21293         (x_set_scroll_bar_default_width): New global function (for frame.c).
21294         (Fx_create_frame): Depend on x_figure_window_size to add space for
21295         toolbar and setup size_hint_flags.
21296         (x_frame_parm_handlers): New table for redisplay_interface.
21297         (syms_of_xfns): Don't intern/staticpro removed vars.
21299         * xterm.c: Remove unnecessary extern declarations.
21300         (x_fullscreen_adjust): Remove.  Use generic instead.
21301         (x_redisplay_interface): Add x_frame_parm_handlers member.
21303         * w32gui.h (XrmDatabase): New (dummy) typedef.
21305         * w32term.h (EMACS_CLASS): Remove.  Use generic define.
21306         (struct w32_display_info): Fix type of xrdb member.
21307         (enum FULLSCREEN_*): Remove.
21308         (x_fullscreen_adjust): Remove prototype.
21310         * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
21311         parameters now defined in frame.h and frame.c.
21312         (Vx_resource_name): Remove.  Use generic var.
21313         (enum x_frame_parms): Remove (bogus, unused enum).
21314         (check_x_display_info): Make non-static (for frame.c).
21315         (struct x_frame_parm_table, x_frame_parms): Remove.
21316         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
21317         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
21318         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
21319         (x_change_window_heights, x_set_autoraise, x_set_autolower)
21320         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
21321         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
21322         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
21323         Remove.  Use generic functions instead.
21324         (enum resource_types): Remove.
21325         (x_set_scroll_bar_default_width): New global function (for frame.c).
21326         (Fx_create_frame): Depend on x_figure_window_size to add space for
21327         toolbar and setup size_hint_flags.
21328         (w32_frame_parm_handlers): New table for redisplay_interface.
21329         (syms_of_w32fns): Don't intern/staticpro removed vars.
21331         * w32term.c: Remove unnecessary extern declarations.
21332         (x_fullscreen_adjust): Remove.  Use generic instead.
21333         (x_redisplay_interface): Add w32_frame_parm_handlers member.
21335         * w32reg.c (x_get_string_resource): Use XrmDatabase.
21337         * macgui.h (XrmDatabase): New (dummy) typedef.
21339         * macterm.h (EMACS_CLASS): Remove.
21340         (struct mac_display_info): Add xrdb member.
21341         (struct mac_output): Add want_fullscreen member.
21343         * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
21344         parameters now defined in frame.h and frame.c.
21345         (Vx_resource_name): Remove.  Use generic var.
21346         (check_x_display_info): Make non-static (for frame.c).
21347         (struct x_frame_parm_table, x_frame_parms): Remove.
21348         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
21349         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
21350         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
21351         (x_change_window_heights, x_set_autoraise, x_set_autolower)
21352         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
21353         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
21354         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
21355         Remove.  Use generic functions instead.
21356         (enum resource_types): Remove.
21357         (x_set_scroll_bar_default_width): New global function (for frame.c).
21358         (mac_frame_parm_handlers): New table for redisplay_interface.
21359         (syms_of_macfns): Don't intern/staticpro removed vars.
21361         * macterm.c: Remove unnecessary extern declarations.
21362         (x_redisplay_interface): Add mac_frame_parm_handlers member.
21364         * Makefile.in (frame.o): Add dependency on blockinput.h and files
21365         included from it (atimer.h and systime.h).
21367 2003-03-30  Andreas Schwab  <schwab@suse.de>
21369         * xdisp.c (x_insert_glyphs): Fix swapped width and height
21370         parameters for shift_glyphs_for_insert.
21372         * macterm.c (x_redisplay_interface): Add missing entry for
21373         draw_vertical_window_border.
21375 2003-03-29  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
21377         * fileio.c (Fexpand_file_name): In the no-handler case, after
21378         expanding, look again for a handler and invoke it.  This is needed
21379         for filenames like "/foo/../user@host:/bar/../baz" -- the first
21380         expansion produces "/user@host:/bar/../baz" which needs to be
21381         expanded again for the finame result "/user@host:/baz".
21383 2003-03-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21385         * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
21386         of area to be redrawn for better performance.
21388 2003-03-28  Stefan Monnier  <monnier@cs.yale.edu>
21390         * xterm.c (take_vertical_position_into_account): Remove.
21391         (xt_action_hook): Call set_vertical_scroll_bar if needed.
21392         (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
21393         (xm_scroll_callback, x_create_toolkit_scroll_bar)
21394         (x_set_toolkit_scroll_bar_thumb): Simplify.
21395         (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
21396         (XTread_socket): Remove unused var.
21397         (x_make_frame_invisible): Replace goto with else.
21399         * xdisp.c (set_vertical_scroll_bar): New fun.
21400         (redisplay_window): Use it.
21402 2003-03-26  Richard M. Stallman  <rms@gnu.org>
21404         * xdisp.c (update_tool_bar): Recompute tool bar if
21405         update_mode_lines is set.  Set w->update_mode_line
21406         only if the tool bar contents actually change.
21407         (update_menu_bar): Undo previous change.
21409 2003-03-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21411         * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
21412         (xg_frame_set_char_size): Calculate scroll bar width before frame
21413         width.  Call SET_FRAME_GARBAGED and cancel_mouse_face.
21414         (xg_separator_p): Check for all documented separator types.
21415         (xg_update_scrollbar_pos): Variable gheight not needed, use height.
21416         (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
21418         * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
21419         so tool bar gets updated.
21421 2003-03-26  Stefan Monnier  <monnier@cs.yale.edu>
21423         * data.c (store_symval_forwarding): Re-instate part of the code
21424         that was deleted with too much enthusiasm.
21426 2003-03-25  Stefan Monnier  <monnier@cs.yale.edu>
21428         * data.c (store_symval_forwarding): Delete special read-only
21429         hack for type == -1, since we now use ->constant instead.
21430         (Fkill_local_variable): Don't use XBUFFER if it can be nil.
21432         * buffer.c (overlays_in): Declare static.
21433         (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
21434         `constant' field rather than the variable's `type' field.
21436 2003-03-24  Andrew Choi  <akochoi@shaw.ca>
21438         * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
21440         * dispextern.h [HAVE_CARBON]: Include Carbon.h.
21442         * fns.c [MAC_OSX]: Do not redefine vector.
21444         * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
21446         * macgui.h: Remove definition of No_Cursor.
21448         * macterm.h: Include Carbon.h.  Replace (struct Cursor *) by Cursor.
21450         * xdisp.c: Define No_Cursor.
21451         (x_write_glyphs, notice_overwritten_cursor)
21452         (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
21453         (note_mouse_highlight): Remove Mac-specific code.
21454         (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
21456 2003-03-24  John Paul Wallington  <jpw@gnu.org>
21458         * xdisp.c (redisplay_window): If mini window's buffer is not
21459         empty, then redisplay it like other windows.
21461 2003-03-23  Kim F. Storm  <storm@cua.dk>
21463         * w32term.c (w32_draw_window_cursor): Fix last change.
21465 2003-03-23  Kenichi Handa  <handa@m17n.org>
21467         * alloc.c (make_string_from_bytes, make_specified_string):
21468         Add `const' for the arg CONTENTS.
21470         * lisp.h (make_string_from_bytes, make_specified_string):
21471         Prototypes adjusted.
21473 2003-03-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21475         * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
21477         * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
21478         (XG_SB_RANGE): New define.
21480         * gtkutil.c (xg_fixed_handle_expose): New function.
21481         (xg_create_frame_widgets): Call xg_fixed_handle_expose for
21482         expose events.
21483         (xg_update_scrollbar_pos): Take two more arguments, left and width
21484         of scroll bar including borders.
21485         Clear left and right part outside scroll bar separately as some
21486         themes have bars that are not an even number of pixels.
21487         Don't set reallocate_redraws, don't call
21488         gdk_window_process_all_updates.
21489         (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
21490         so no need to change it.  Calculate size and value with XG_SB_RANGE.
21492         * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
21493         Pass left and width of scroll bar including borders to
21494         xg_update_scrollbar_pos.
21496 2003-03-22  Thien-Thi Nguyen  <ttn@gnu.org>
21498         * Makefile.in: Make sure space precedes end-of-line backslashes.
21500 2003-03-22  Kim F. Storm  <storm@cua.dk>
21502         * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
21503         Add generic versions here.  Remove system specific versions
21504         defined elsewhere.
21506         * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
21507         Add prototypes.
21509         * xterm.h (STORE_NATIVE_RECT): New macro.
21511 2003-03-21  Kim F. Storm  <storm@cua.dk>
21513         * xdisp.c (get_glyph_string_clip_rect):
21514         Use FRAME_INTERNAL_BORDER_WIDTH.
21516         * dispextern.h (struct redisplay_interface): Add active_p
21517         argument to draw_window_cursor member.  All uses changed.
21519 2003-03-21  Kim F. Storm  <storm@cua.dk>
21521         The following changes consolidate code related to writing and
21522         inserting glyphs, exposing frame, the tool bar, the mouse face,
21523         the output cursor, and help echo from xterm.c, w32term.c and
21524         macterm.c into xdisp.c.  It also generalizes the use of the
21525         window_part enum instead of using numeric values throughout.
21527         * xdisp.c: Consolidate gui-independent code here.
21528         Include keymap.h.
21529         (Qhelp_echo): Import.
21530         (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
21531         (help_echo_string, help_echo_window, help_echo_object)
21532         (previous_help_echo_string, help_echo_pos): Declare here.
21533         (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
21534         (estimate_mode_line_height): Define here.  Handle windowing
21535         systems directly (without using estimate_mode_line_height_hook).
21536         (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
21537         (update_window_cursor, update_cursor_in_window_tree)
21538         (fast_find_position, fast_find_string_pos)
21539         (note_mode_line_highlight, note_mode_line_or_margin_highlight)
21540         (expose_area, expose_line, expose_overlaps, expose_window)
21541         (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
21542         declared static as they are only used locally in xdisp.c.
21543         (draw_glyphs): Rename from x_draw_glyphs and make static.
21544         (tool_bar_item_info, notice_overwritten_cursor): Make static.
21545         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
21546         (set_output_cursor, x_cursor_to, handle_tool_bar_click)
21547         (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
21548         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
21549         (display_and_set_cursor, x_update_cursor, x_clear_cursor)
21550         (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
21551         (note_mouse_highlight, x_clear_window_mouse_face)
21552         (cancel_mouse_face, x_draw_vertical_border, expose_frame)
21553         (x_intersect_rectangles): New generic functions for use by xdisp.c
21554         and GUI front-ends.
21555         (syms_of_xdisp): Initialize and staticpro help_echo* variables.
21556         Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
21558         * dispextern.h (Display_Info): Generic typedef for *_display_info.
21559         (NativeRectangle): Generic typedef for rectangle type.
21560         (enum window_part): Move here from window.c.
21561         (struct redisplay_interface): New members flush_display_optional,
21562         define_frame_cursor, clear_frame_area, draw_window_cursor,
21563         draw_vertical_window_border, shift_glyphs_for_insert.
21564         Rename member clear_mouse_face to clear_window_mouse_face.
21565         (estimate_mode_line_height_hook): Remove hook.
21566         (auto_raise_tool_bar_buttons_p): Don't declare extern.
21567         (tool_bar_item_info): Remove prototype.
21568         (help_echo_string, help_echo_window, help_echo_object)
21569         (previous_help_echo_string, help_echo_pos)
21570         (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
21571         (x_stretch_cursor_p, output_cursor): Declare extern.
21572         (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
21573         (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
21574         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
21575         (display_and_set_cursor, set_output_cursor, x_cursor_to)
21576         (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
21577         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
21578         (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
21579         (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
21580         (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
21581         Add prototypes.
21582         (mode_line_string, marginal_area_string): Fix prototypes.
21584         * window.c (enum window_part): Move to dispextern.h.
21585         (coordinates_in_window): Use enum window_part member names
21586         instead of numbers to describe return value.
21587         (struct check_window_data): Change part member to window_part.
21588         (check_window_containing): Return window_part unaltered.
21589         (window_from_coordinates): Change part arg from int to enum
21590         window_part.  Allow part arg to be null.  All users changed.
21592         * window.h (window_from_coordinates): Fix prototype.
21594         * term.c (estimate_mode_line_height): Move to xdisp.c.
21596         * keyboard.c (make_lispy_event): Use enum window_part.
21598         * dispnew.c (mode_line_string, marginal_area_string): Use enum
21599         window_part instead of int in arg list.  Users changed.
21601         * xterm.h (No_Cursor): Declare as None for X.
21602         (struct mac_output): Replace member cross_cursor by hand_cursor.
21604         * xterm.c: Remove consolidated defines and code.
21605         (BETWEEN): Remove unused macro.
21606         (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
21607         (x_define_frame_cursor, x_clear_frame_area)
21608         (x_draw_window_cursor): New X-specific functions for RIF.
21609         (x_redisplay_interface): Add new members.
21611         * xfns.c: Setup and use hand_cursor instead of cross_cursor.
21613         * w32term.h (struct w32_output): Remove cross_cursor member.
21615         * w32term.c: Remove consolidated defines and code.
21616         (BETWEEN): Remove unused macro.
21617         (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
21618         (w32_define_frame_cursor, w32_clear_frame_area)
21619         (w32_draw_window_cursor): New W32-specific functions for RIF.
21620         (w32_redisplay_interface): Add new members.
21622         * w32gui.h (No_Cursor): Define as 0 for W32.
21623         (XRectangle): Add X compatible rectangle type.
21624         (NativeRectangle): Declare as RECT for W32.
21625         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
21627         * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
21629         * w32console.c: Remove consolidated defines and code.
21631         * msdos.h (Display_Info): Add generic typedef.
21633         * msdos.c: Remove consolidated defines and code.
21634         (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
21636         * macterm.h (struct mac_output): Replace member cross_cursor by
21637         hand_cursor.
21638         (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
21640         * macterm.c: Remove consolidated defines and code.
21641         (BETWEEN): Remove unused macro.
21642         (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
21643         (mac_define_frame_cursor, mac_clear_frame_area)
21644         (mac_draw_window_cursor): New Mac-specific functions for RIF.
21645         (x_redisplay_interface): Add new members.
21647         * macgui.h (No_Cursor): Define as 0 for Mac.
21648         (XRectangle): Add X compatible rectangle type.
21649         (NativeRectangle): Declare as Rect for Mac.
21650         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
21652         * macfns.c (x_set_mouse_color): Setup hand_cursor.
21653         (x_set_cursor_color): Use x_display_and_set_cursor.
21655         * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
21656         included from it.  Add dependency on keymap.h.
21658         * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
21660 2003-03-21  Kenichi Handa  <handa@m17n.org>
21662         * fileio.c (Fexpand_file_name): Fix previous change.
21664 2003-03-19  Kenichi Handa  <handa@m17n.org>
21666         * fileio.c (Ffile_name_directory): Reconstruct file name by
21667         make_specified_string.
21668         (Ffile_name_nondirectory, Ffile_name_as_directory)
21669         (Fdirectory_file_name, Fexpand_file_name)
21670         (Fsubstitute_in_file_name): Likewise.
21671         (Fread_file_name): Compare decoded homedir with DIR and
21672         DEFAULT_FILENAME.
21674         * alloc.c (make_specified_string): If NCHARS is negative, count
21675         the number of characters.
21677 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21679         * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
21680         all widgets.
21682         * gtkutil.h: Removed xg_ignore_next_thumb.
21684 2003-03-18  Kenichi Handa  <handa@m17n.org>
21686         * coding.c (Vchar_coding_system_table): Remove this variable.
21687         (Vcoding_system_safe_chars): New variable.
21688         (intersection): Remove this function.
21689         (find_safe_codings): Don't use Vchar_coding_system_table, but try
21690         all codings in SAFE_CODINGS.
21691         (Ffind_coding_systems_region_internal): Adjust for the change of
21692         find_safe_codings.  Get generic coding systems from
21693         Vcoding_system_safe_chars.
21694         (Fdefine_coding_system_internal): New function.
21695         (syms_of_coding): Defsubr Sdefine_coding_system_internal.
21696         Initialize and staticpro Vcoding_system_safe_chars.
21698 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21700         * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
21701         equal old values before updating.
21703         * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
21705         * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
21707 2003-03-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21709         * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
21710         (xg_resize_widgets): Don't call foreach(handle_fixed_child).
21711         (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
21712         (scroll_bar_button_cb): Set bar->dragging to nil on button release.
21713         (xg_create_scroll_bar): Pass bar to button event callback.
21714         (xg_find_top_left_in_fixed): New function.
21715         (xg_update_scrollbar_pos): Don't call gdk_window_clear on
21716         whole scroll bar area.  Get old position with
21717         xg_find_top_left_in_fixed, calculate and only clear needed areas.
21718         (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
21719         dragging is in progress.  Calculate whole as for Motif.
21720         Remove code that saved last values.  Call gtk_range functions to
21721         set scroll bar sizes.
21723         * gtkutil.h: Removed xg_ignore_next_thumb.
21725 2003-03-17  Juanma Barranquero  <lektu@terra.es>
21727         * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
21728         and files included from it.
21730 2003-03-18  Stefan Monnier  <monnier@cs.yale.edu>
21732         * keymap.c (accessible_keymaps_1): Break cycles but without preventing
21733         multiple occurrences of the same keymap under different prefixes.
21734         (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
21736 2003-03-16  Jason Rumney  <jasonr@gnu.org>
21738         * w32gui.h: Use HDC for Display.
21740         * w32term.c (w32_encode_char): Prevent double-byte chars from
21741         crashing Emacs.
21743         * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
21744         as binary.
21746 2003-03-16  Juanma Barranquero  <lektu@terra.es>
21748         * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
21750 2003-03-16  Kim F. Storm  <storm@cua.dk>
21752         The following changes consolidate some of the gui-independent
21753         parts of the processing and drawing of "glyph strings" from
21754         xterm.c, w32term.c, and macterm.c into xdisp.c.
21756         * dispextern.h (struct glyph): Reduce face_id member from 22 to
21757         21 bits (this reduces number of faces from 4M to 2M).
21758         Replace W32 specific w32_font_type member (2 bits) by generic
21759         font_type member (3 bits) for portability.
21760         (FONT_TYPE_UNKNOWN): New define, default for font_type member.
21761         (enum draw_glyphs_face): Define here.
21762         (struct glyph_string): Define here.  Merge W32 and X versions.
21763         (struct redisplay_interface): New members per_char_metric,
21764         encode_char, compute_glyph_string_overhangs, draw_glyph_string.
21765         (VCENTER_BASELINE_OFFSET): Define here.
21766         (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
21767         (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
21769         * xdisp.c: Consolidate gui-independent "glyph string" code here.
21770         (dump_glyph_string): Moved here.
21771         (init_glyph_string, append_glyph_string_lists, append_glyph_string)
21772         (prepend_glyph_string_lists, get_glyph_face_and_encoding)
21773         (fill_composite_glyph_string, fill_glyph_string)
21774         (fill_image_glyph_string, fill_stretch_glyph_string)
21775         (left_overwritten, left_overwriting, right_overwritten)
21776         (right_overwriting, get_char_face_and_encoding)
21777         (set_glyph_string_background_width, compute_overhangs_and_x)
21778         (append_glyph, append_composite_glyph, produce_image_glyph)
21779         (take_vertical_position_into_account, append_stretch_glyph)
21780         (produce_stretch_glyph): New generic functions (based on X version).
21781         Call platform specific functions through rif.
21782         (INIT_GLYPH_STRING): New macro, hides W32 details.
21783         (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
21784         (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
21785         (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
21786         (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
21787         (notice_overwritten_cursor):
21788         Generic functions exported to platform modules.  Users changed.
21790         * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
21791         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
21792         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
21793         New macros for consolidated code.
21795         * xterm.c: Remove consolidated defines and code.
21796         (x_per_char_metric, x_encode_char)
21797         (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
21798         (x_redisplay_interface): Add new members.
21800         * w32gui.h (Display): Add dummy typedef for consolidation.
21801         (XChar2b): Define alias for wchar_t for consolidation.
21802         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
21804         * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
21805         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
21806         New macros for consolidation.
21808         * w32term.c: Remove consolidated defines and code.
21809         (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
21810         to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
21811         (w32_per_char_metric): Change font_type arg to int for RIF.
21812         (w32_encode_char): Return int according to RIF requirements.
21813         (w32_compute_glyph_string_overhangs): Adapt to RIF.
21814         (w32_get_glyph_overhangs): New function for RIF.  Uses generic
21815         x_get_glyph_overhangs.
21816         (w32_redisplay_interface): Add new members.
21818         * macgui.h (XChar2b): Move typedef here for consolidation.
21819         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
21821         * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
21822         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
21823         consolidation.
21825         * macterm.c: Remove consolidated defines and code.
21826         (mac_per_char_metric): New function for RIF.
21827         (mac_encode_char): Adapt to new RIF requirements.
21828         (mac_compute_glyph_string_overhangs): Adapt for RIF.
21829         (x_redisplay_interface): Add new members.
21831 2003-03-15  Stefan Monnier  <monnier@cs.yale.edu>
21833         * keymap.c (Vmenu_events): New var.
21834         (syms_of_keymap): Initialize it.
21835         (where_is_internal): Check more carefully what is a menu event.
21837 2003-03-14  Richard M. Stallman  <rms@gnu.org>
21839         * lread.c (read1): After #!, exit loop on eof.
21841 2003-03-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21843         * gtkutil.h: Add declaration for xg_frame_cleared.
21845         * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
21847         * gtkutil.c (struct xg_last_sb_pos): New structure.
21848         (handle_fixed_child): New function.
21849         (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
21850         and force a redraw on them.
21851         (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
21852         (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
21853         so we can avoid unneeded redraws.
21854         (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
21855         and force a redraw on the scroll bar.
21856         (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
21857         if xg_last_sb_pos shows the positions are up to date.
21858         (xg_frame_cleared): New function.
21860 2003-03-13  Kenichi Handa  <handa@m17n.org>
21862         * coding.c (Fdetect_coding_region): Fix docstring.
21863         (Fdetect_coding_string): Fix docstring.
21865 2003-03-13  Andreas Schwab  <schwab@suse.de>
21867         * gtkutil.c: Add prototype for create_menus.
21869         * data.c (long_to_cons): Fix type of top.
21871         * xselect.c (selection_data_to_lisp_data): Use int instead of
21872         long for an integer of size 4.
21874         * gtkutil.c (xg_update_frame_menubar): Add missing return value.
21875         (xg_tool_bar_help_callback): Likewise.
21877 2003-03-12  Andreas Schwab  <schwab@suse.de>
21879         * xterm.c (x_term_init) [USE_GTK]: Fix typo.
21881 2003-03-12  Kim F. Storm  <storm@cua.dk>
21883         The following changes consolidate the fringe handling from
21884         xterm.c, w32term.c, and macterm.c into xdisp.c.
21886         * xdisp.c: Consolidate fringe handling code here.
21887         (left_bits, right_bits, continued_bits, continuation_bits)
21888         (ov_bits, zv_bits): Define fringe bitmaps.
21889         (fringe_bitmaps): New array holding fringe bitmaps.
21890         (draw_fringe_bitmap): Draw a specific bitmap; call display
21891         specific drawing routine via rif->draw_fringe_bitmap.
21892         (draw_row_fringe_bitmaps): Generic replacement for
21893         x_draw_row_fringe_bitmaps; all callers changed.
21894         (compute_fringe_widths): Generic replacement for
21895         x_compute_fringe_widths; all callers changed.
21897         * dispextern.h (enum fringe_bitmap_type): Define here.
21898         (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
21899         (fringe_bitmaps): Declare extern.
21900         (struct redisplay_interface): New member draw_fringe_bitmap.
21901         (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
21903         * xterm.c: Remove generic fringe code.
21904         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
21905         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
21907         * w32term.c: Remove generic fringe code.
21908         (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
21909         (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
21911         * macterm.c: Remove generic fringe code.
21912         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
21913         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
21915 2003-03-11  Stefan Monnier  <monnier@cs.yale.edu>
21917         * print.c (Fprin1_to_string): Return unibyte string if possible.
21919 2003-03-09  David Kastrup  <dak@gnu.org>
21921         * process.c (read_process_output): We have allocated enough space
21922         for readmax and carryover, so actually use the alloted space.
21924 2003-03-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21926         * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
21927         toolkit scrollbar click.
21929         * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
21930         for USE_GTK.
21931         (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
21932         also.
21933         (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
21934         scrollbar and control is pressed, call x_scroll_bar_handle_click.
21936         * gtkutil.h (xg_get_scroll_id_for_window): Declare.
21938         * gtkutil.c (xg_get_scroll_id_for_window): New function.
21939         (xg_tool_bar_item_expose_callback): New function.
21940         (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
21941         (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
21942         on the tool bar widget.
21943         (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
21944         to expose on the tool bar item widgets.
21946 2003-03-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21948         * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
21949         struct image* when deciding to update (struct image* may have been
21950         deleted from the image cache).
21952         * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
21953         the event isn't for a frame (i.e. for dialogs).
21955 2003-03-07  Kenichi Handa  <handa@m17n.org>
21957         * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
21958         composition components reaches the limit, terminate composing.
21959         (COMPOSITION_OK): New macro.
21960         (detect_coding_iso2022): Use it if an escape sequence for
21961         composition is found.
21962         (coding_restore_composition): Adjust the number of composition
21963         components if it is not sane.
21965 2003-03-06  Juanma Barranquero  <lektu@terra.es>
21967         * w32term.h (struct w32_display_info): Add xrdb member to support
21968         passing resources via -xrm on Windows.
21970         * w32term.c (w32_make_rdb): New function.
21971         (w32_term_init): Use it to initialize xrdb member of w32_display_info
21972         struct.  Delete leftover code.
21974         * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
21975         for resources passed on the command line.
21977         * w32reg.c (w32_get_rdb_resource): New function.
21978         (x_get_string_resource): Use it, so resources passed with -xrm
21979         supercede the ones in the registry.
21981 2003-03-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21983         * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
21984         instead of x_top_window_to_frame.
21986 2003-03-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21988         * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
21989         when restarting Emacs.
21991 2003-03-03  Richard M. Stallman  <rms@gnu.org>
21993         * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
21994         to run kill-buffer-query-functions.
21995         (Qkill_buffer_query_functions): New var.
21996         (syms_of_buffer): Init and staticpro it.
21998 2003-03-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22000         * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
22002 2003-02-25  Kim F. Storm  <storm@cua.dk>
22004         * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
22005         If centering point failed to make whole line visible and vscroll
22006         is non-zero, disable vscroll and try centering point again.
22008         * lread.c (read1): Accept `single space' syntax like (? x).
22010 2003-02-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22012         * keyboard.c (cancel_hourglass_unwind): Surround with
22013         #ifdef HAVE_X_WINDOWS.
22015 2003-02-25  Kenichi Handa  <handa@m17n.org>
22017         * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
22018         process only when "subprocesses" is defined.
22020 2003-02-24  Stefan Monnier  <monnier@cs.yale.edu>
22022         * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
22024 2003-02-24  Juanma Barranquero  <lektu@terra.es>
22026         * callint.c (fix_command): Declare as static void and move before
22027         Fcall_interactively.
22029         * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
22030         (syms_of_xdisp): Don't initialize Qwhen.
22032 2003-02-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22034         * keyboard.c (cancel_hourglass_unwind): New function.
22035         (command_loop_1): Cancel hourglass with unwind-protect.
22037 2003-02-23  Richard M. Stallman  <rms@gnu.org>
22039         * callint.c (fix_command): New subroutine, from Fcall_interactively.
22040         Detect (when ... (region-beginning)) etc.
22041         (Fcall_interactively): Call fix_command.
22042         (Qif, Qwhen): New variables.
22043         (syms_of_callint): Init and staticpro them.
22045         * regex.c (print_partial_compiled_pattern): Output to stderr.
22047 2003-02-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
22049         * dired.c (directory_files_internal): Don't expand directory.
22050         (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
22051         instead.  From Lars Hansen <larsh@math.ku.dk>.
22053 2003-02-22  Stefan Monnier  <monnier@cs.yale.edu>
22055         * fns.c (string_to_multibyte): Remove unused var i.
22056         (Flanginfo): Fix int/Lisp_Object mixup.
22057         (void_call2): New fun.
22058         (Fmap_char_table): Use it in place of call2.
22060         * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
22062         * macros.c (Fstart_kbd_macro): Remove redundant assignment.
22064         * keymap.c (copy_keymap_1): Make it static.
22066         * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
22068 2003-02-22  David Ponce  <david@dponce.com>
22070         * lread.c (Fload): Don't check STRING_MULTIBYTE.
22072 2003-02-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22074         * process.h: Removed subtty field from struct Lisp_Process.
22076         * process.c (create_process): Remove setting of subtty.
22077         (emacs_get_tty_pgrp): New function.
22078         (Fprocess_running_child_p, process_send_signal):
22079         Call emacs_get_tty_pgrp instead of ioctl.
22080         (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
22082 2003-02-21  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
22084         * keymap.c (Fdefine_key): Doc fix.
22086 2003-02-21  Juanma Barranquero  <lektu@terra.es>
22088         Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
22090         * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
22091         POLLING_PROBLEM_IN_SELECT.
22093         * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
22094         Delete #undef of POLLING_PROBLEM_IN_SELECT.
22096         * s/hpux10-20.h: New file.
22098         * process.c (wait_reading_process_input):
22099         Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
22101 2003-02-20  Kenichi Handa  <handa@m17n.org>
22103         * fontset.c (check_fontset_name): If NAME is nil, return the
22104         default fontset.
22105         (override_font_info): New function.
22106         (Fset_fontset_font): Document that NAME nil means the default fontset.
22107         (Ffontset_info): If FONTSET is not the default fontset, merge
22108         FONTSET onto the copy of the default fontset, and work on that
22109         copy.  Document that NAME nil means the default fontset.
22110         (Ffontset_font): Document that NAME nil means the default fontset.
22112         * process.c (setup_process_coding_systems): If the process's
22113         in/out descriptor is -1, do nothing.
22115 2003-02-19  Andreas Schwab  <schwab@suse.de>
22117         * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
22118         Add prototypes.
22120 2003-02-19  Kenichi Handa  <handa@m17n.org>
22122         * xfaces.c (try_alternative_families): Try all scalable fonts if
22123         Vscalable_fonts_allowed is not Qt.
22125 2003-02-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22127         * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
22129 2003-02-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22131         * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
22132         names.
22134         * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
22135         (sorted_font_list): Move allocation of struct font_name to
22136         x_face_list_fonts.
22137         (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
22138         (Fx_list_fonts): Set maxnames to -1 to get all font names.
22140 2003-02-18  Kim F. Storm  <storm@cua.dk>
22142         * lread.c (read1): Fix last change.
22143         "`" is not always special.  Allow "?" after a character constant.
22145 2003-02-18  Andrew Choi  <akochoi@shaw.ca>
22147         * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
22149 2003-02-18  Andreas Schwab  <schwab@suse.de>
22151         * window.c (window_scroll_pixel_based): Move outside a
22152         multi-glyph character before setting new window start.
22154         * xdisp.c (in_display_vector_p): New function.
22155         * dispextern.h (in_display_vector_p): Declare.
22157 2003-02-18  Kim F. Storm  <storm@cua.dk>
22159         * lread.c (read1): Fix and relax read syntax.
22160         Recognize "[", ";", "#", and "?" after a dotted-pair dot.
22161         Only recognize "," after dotted-pair dot if inside backquote.
22162         Never include "`" or "," (inside backquote) in a symbol.
22163         Allow dotted-pair dot after a character constant.
22164         Allow "`" and "," (inside backquote) after a character constant.
22166 2003-02-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22168         * gtkutil.c (xg_tool_bar_expose_callback): New function.
22169         (xg_create_tool_bar): Force style of tool bar to be horizontal with
22170         icons.  Set name of tool bar to emacs-toolbar.
22171         (update_frame_tool_bar): Connect expose event to
22172         xg_tool_bar_expose_callback.
22174 2003-02-17  Richard M. Stallman  <rms@gnu.org>
22176         * keyboard.c (this_command_key_count_reset): New variable.
22177         Initiatize to 0 where this_command_key_count is set.
22178         (read_char): Save and restore this_command_key_count_reset
22179         around input method code.
22180         (read_char): If this_command_key_count_reset, echo reread commands.
22181         (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
22183 2003-02-17  Kenichi Handa  <handa@m17n.org>
22185         * fns.c (string_to_multibyte): Always return a multibyte string.
22187 2003-02-16  Jason Rumney  <jasonr@gnu.org>
22189         * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
22190         Negative max_fonts parameter means list all.
22192 2003-02-14  Dave Love  <fx@gnu.org>
22194         * fns.c (Flanginfo): Doc fix.
22196 2003-02-13  Kim F. Storm  <storm@cua.dk>
22198         * lread.c (read_escape): Interpret \s as a SPACE character, except
22199         for \s-X in a character constant which still is the super modifier.
22200         (read1): Signal an `invalid read syntax' error if a character
22201         constant is immediately followed by a digit or symbol character.
22203         * search.c (Fmatch_data): Doc fix.  Explicitly state that
22204         match-data is undefined if last search failed.
22206         * keymap.c (Fcommand_remapping): Rename from Fremap_command.
22207         All uses changed.
22209 2003-02-12  Juanma Barranquero  <lektu@terra.es>
22211         * eval.c (Fdefmacro): Fix typo.
22213 2003-02-12  Kim F. Storm  <storm@cua.dk>
22215         * macros.c (Fstart_kbd_macro): If appending, and last keyboard
22216         macro is a string, convert meta modifiers in string when copying
22217         the string into a vector.
22219 2003-02-11  Kim F. Storm  <storm@cua.dk>
22221         * keymap.c (Fremap_command): Return nil if arg is not a symbol.
22223 2003-02-11  Kenichi Handa  <handa@m17n.org>
22225         * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
22227 2003-02-10  Kim F. Storm  <storm@cua.dk>
22229         * process.c: Doc fixes.
22230         (syms_of_process): Add `:' prefix to QCfilter_multibyte.
22232 2003-02-10  Kenichi Handa  <handa@m17n.org>
22234         * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
22236         * process.c (QCfilter_multibyte): New variable.
22237         (setup_process_coding_systems): New function.
22238         (Fset_process_buffer, Fset_process_filter):
22239         Call setup_process_coding_systems.
22240         (Fstart_process): Initialize the member `filter_multibyte' of
22241         struct Lisp_Process.
22242         (create_process): Call setup_process_coding_systems.
22243         (Fmake_network_process): New keyward `:filter-multibyte'.
22244         Initialize the member `filter_multibyte' of struct Lisp_Process.
22245         Call setup_process_coding_systems.
22246         (server_accept_connection): Call setup_process_coding_systems.
22247         (read_process_output): If the process has a filter, decide the
22248         multibyteness of a string to given to the filter by
22249         `filter_multibyte' member of the process.  If the process doesn't
22250         have a filter and the result of conversion is unibyte, use
22251         Fstring_to_multibyte (not Fstring_make_multibyte) to get the
22252         multibyte form.
22253         (Fset_process_coding_system): Call setup_process_coding_systems.
22254         (Fset_process_filter_multibyte): New function.
22255         (Fprocess_filter_multibyte_p): New function.
22256         (syms_of_process): Intern and staticpro QCfilter_multibyte.
22257         Defsubr Sset_process_filter_multibyte and
22258         Sprocess_filter_multibyte_p.
22260         * process.h (struct Lisp_Process): New member filter_multibyte.
22262         * lisp.h (setup_process_coding_systems): Add prototype.
22264         * buffer.c (Fset_buffer_multibyte): If the current buffer has a
22265         process, update coding systems for the process.
22267 2003-02-09  Kenichi Handa  <handa@m17n.org>
22269         * fns.c (string_to_multibyte): New function.
22270         (Fstring_to_multibyte): New function.
22271         (syms_of_fns): Defsubr it.
22273 2003-02-08  Andreas Schwab  <schwab@suse.de>
22275         * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
22276         instead of the substitution.
22278 2003-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22280         * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
22282         * xmenu.c (menu_position_func): Adjust menu popup position so that
22283         the menu is fully visible.
22285 2003-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22287         * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
22288         (x_make_frame_invisible, x_wm_set_icon_position):
22289         Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
22291         * xfns.c (x_set_name, x_set_title): Ditto.
22293 2003-02-04  Richard M. Stallman  <rms@gnu.org>
22295         * keyboard.c (echo_now): Update before_command_echo_length.
22296         (Freset_this_command_lengths): Reset this_command_key_count etc.
22297         immediately rather than arranging to do it later.
22298         (before_command_key_count_1, before_command_echo_length_1)
22299         (before_command_restore_flag): Vars deleted.
22300         (add_command_key): Don't handle before_command_restore_flag.
22301         (read_char, record_menu_key): Don't update before_command_key_count or
22302         before_command_echo_length.
22303         (read_char): Don't handle before_command_restore_flag.
22305         * keyboard.c (command_loop_1): Don't call adjust_point_for_property
22306         in direct-output clauses if it wouldn't be called in the ordinary case.
22308 2003-02-04  Kim F. Storm  <storm@cua.dk>
22310         * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
22312 2003-02-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22314         * gtkutil.c (remove_from_container): Copying list is not needed.
22315         (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
22316         (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
22317         on list returned from gtk_container_get_children to avoid memory leak.
22319 2003-02-01  Jason Rumney  <jasonr@gnu.org>
22321         * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
22322         local malloc.
22323         [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
22324         definitions in xpm.h.
22325         (init_xpm_functions): New function.
22326         (xpm_load): Sync with xfns.c.  Adapt for Windows version of libXpm.
22327         (init_external_image_libraries): Try to load libXpm.dll.
22329         * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
22330         timestamp.
22332 2003-01-31  Dave Love  <fx@gnu.org>
22334         * syntax.c (Fskip_chars_forward)
22335         (open-paren-in-column-0-is-defun-start): Doc fix.
22337 2003-01-31  Joe Buehler  <jhpb@draco.hekimian.com>
22339         * fileio.c: Support // at start of name for Cygwin (just added proper
22340         preprocessor tests).
22342         * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
22344         * Makefile.in: Use @EXEEXT@ for Cygwin.
22346         * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
22348         * s/cygwin.h: Added for Cygwin port.
22350 2003-01-31  Juanma Barranquero  <lektu@terra.es>
22352         * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
22353         when including gif_lib.h.
22354         (init_gif_functions, init_tiff_functions): New functions.
22355         (gif_load, tiff_load): Sync with xfns.c version.  Adjust colors for
22356         Windows.  Disable color table lookups.  Call library functions
22357         through pointers determined at runtime.
22358         (init_external_image_libraries): Try to load libungif.dll and
22359         libtiff.dll.
22361 2003-01-31  Kenichi Handa  <handa@m17n.org>
22363         * xdisp.c (SKIP_GLYPHS): New macro.
22364         (set_cursor_from_row): Skip all glyphs that comes from overlay string.
22366 2003-01-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22368         * gtkutil.c (free_frame_tool_bar): Remove debug printf.
22370 2003-01-30  Dave Love  <fx@gnu.org>
22372         * alloc.c (Vgc_elapsed, gcs_done): New variables.
22373         (Fgarbage_collect): Use them.
22374         (init_alloc, syms_of_alloc): Set them up.
22376 2003-01-30  Juanma Barranquero  <lektu@terra.es>
22378         * w32fns.c (init_external_image_libraries): Add missing operator.
22380 2003-01-29  Jason Rumney  <jasonr@gnu.org>
22382         * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
22383         an alternative name for jpeg.dll.
22385 2003-01-29  Kenichi Handa  <handa@m17n.org>
22387         * xdisp.c (set_cursor_from_row): Pay attention to string display
22388         properties.
22390 2003-01-28  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
22392         * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
22393         <escape>.
22394         (keycode_to_xkeysym_table): Reformat and add more comments.
22395         (XTread_socket): Drop special case for backspace.
22397 2003-01-28  Andrew Choi  <akochoi@shaw.ca>
22399         * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
22400         values in old-style RGB specs.
22402 2003-01-27  Juanma Barranquero  <lektu@terra.es>
22404         * w32fns.c (init_external_image_libraries): Try alternate names for the
22405         jpeg dll.
22407 2003-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22409         * gtkutil.c (create_dialog, xg_separator_p)
22410         (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
22411         before calling strcmp or strlen.
22413 2003-01-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22415         * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
22416         and handle image load failure.
22418 2003-01-26  Jason Rumney  <jasonr@gnu.org>
22420         * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
22421         New functions.
22422         (jpeg_load): Sync with xfns.c version.  Adjust colors for Windows.
22423         Disable color table lookups.  Call jpeg library functions
22424         through pointers determined at runtime.
22425         (init_external_image_libraries): Try to load jpeg.dll.
22427 2003-01-25  Richard M. Stallman  <rms@gnu.org>
22429         * lisp.h: Declare format2 instead of format1.
22431         * fileio.c (barf_or_query_if_file_exists):
22432         Call format2 instead of format1.
22434         * editfns.c (format2): New function, replaces format1
22435         but takes exactly two Lisp Objects as format args.
22437         * buffer.c (Fkill_buffer): Call format2 instead of format1.
22439 2003-01-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22441         * xterm.h: Change to return value of x_dispatch_event to int.
22443         * xterm.c (x_filter_event): New function.
22444         (event_handler_gdk, XTread_socket): Call x_filter_event.
22445         (x_dispatch_event): Change to return value of finish.
22446         (event_handler_gdk): Use return value from x_dispatch_event.
22448         * xfns.c (x_window): Call create_frame_xic for GTK version to
22449         initialize input methods.
22451         * gtkutil.h: Add (void) prototypes.
22453         * gtkutil.c (create_menus): Remove code that puts the help menu to
22454         the right.
22456 2003-01-25  Jason Rumney  <jasonr@gnu.org>
22458         * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
22459         [HAVE_PNG]: Sync with xfns.c version.
22460         (png_load): Adjust colors for Windows.  Use Windows
22461         bitmaps.  Disable color table lookups.
22462         (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
22463         (init_png_functions): New function.
22464         (png_read_from_memory, png_load): Call png library functions
22465         through pointers determined at runtime.
22466         (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
22467         (init_external_image_libraries): New function.
22468         (init_xfns): Call it.
22470 2003-01-24  Andreas Schwab  <schwab@suse.de>
22472         * minibuf.c (Fminibuffer_message): Verify type of parameter.
22474 2003-01-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22476         * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
22477         of static initializer.
22479 2003-01-24  Dave Love  <fx@gnu.org>
22481         * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
22482         architectures.
22484         * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
22485         Use __alignof__.
22487 2003-01-24  Kenichi Handa  <handa@m17n.org>
22489         * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
22490         It it is nonzero, don't pretend that an invisible area doesn't exist.
22491         (command_loop_1): Call adjust_point_for_property with proper
22492         second arg.
22494 2003-01-22  Jason Rumney  <jasonr@gnu.org>
22496         Sync changes with xterm.c and xfns.c.
22498         * w32term.c (x_draw_glyph_string_foreground)
22499         (x_draw_composite_glyph_string_foreground): Implement overstriking.
22501         * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
22502         phys_cursor's hpos is overwritten.  This is still not completely
22503         correct, as it doesn't really make sense to use hpos at all to
22504         get the cursor glyph (as that is relative to the width of the
22505         characters on the line, which may have changed during the update).
22507         * w32term.c (notice_overwritten_cursor): Handle the special case
22508         of the cursor being in the first blank non-text line at the
22509         end of a window.
22511         * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
22512         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
22513         Compute from the x position returned by x_draw_glyphs.
22515         (x_display_and_set_cursor): Don't set phys_cursor_width here,
22516         except for NO_CURSOR and system caret, to make phys_cursor_width
22517         contain what its name suggests.
22518         (notice_overwritten_cursor): Consider the cursor image erased if
22519         the output area intersects the cursor image in y-direction.
22521         * w32term.c (note_mode_line_or_margin_highlight): Rename from
22522         note_mode_line_highlight and extend.
22524         * w32term.c (last_window): New variable.
22525         (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
22526         (note_mouse_movement): Remove reimplemented code in #if 0.
22528         * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
22529         not update_mode_lines, and always set it to 1.
22531 2003-01-21  Jason Rumney  <jasonr@gnu.org>
22533         * w32fns.c (IDC_HAND): Define it if system headers don't.
22535 2003-01-21  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
22537         * w32term.h (struct w32_output): New member hand_cursor.
22538         (WM_EMACS_SETCURSOR): New message definition.
22540         * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
22541         function w32_define_cursor.
22542         (note_mouse_highlight): Initialize, setup cursor accoding to mouse
22543         position, change member name output_data.x to output_data.w32 and
22544         add function w32_define_cursor.
22545         (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
22546         and change member name output_data.x to output_data.w32.
22547         (w32_initialize_display_info):
22548         Setup dpyinfo->vertical_scroll_bar_cursor.
22550         * w32fns.c (Vx_hand_shape): New variable.
22551         (w32_wnd_proc): Add message entries for WM_SETCURSOR and
22552         WM_EMACS_SETCURSOR.
22553         (x-create-frame): Setup Cursor types.
22555 2003-01-21  David Ponce  <david@dponce.com>
22557         * w32term.c (w32_encode_char): For DIM=1 charset, set
22558         ccl->reg[2] to -1 before calling ccl_driver.
22559         (Sync. with xterm.c x_encode_char change by Kenichi Handa
22560         <handa@m17n.org> on 2002-09-30.)
22561         (w32_draw_relief_rect): Declare all args.
22562         (w32_define_cursor): New.
22564         * w32fns.c (w32_load_cursor): New function.
22565         (w32_init_class): Use it.
22566         (x_put_x_image): Declare all args.
22568 2003-01-21  Richard Dawe  <rich@phekda.freeserve.co.uk>
22570         * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
22572 2003-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22574         * gtkutil.c: Must include stdio.h before termhooks.h.
22576 2003-01-21  Dave Love  <fx@gnu.org>
22578         * alloc.c (Fgc_status): Print zombie list.
22579         (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
22580         Fix assignment of zombies.
22581         (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
22582         Don't take car of non-cons.
22584         * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
22586         * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
22588 2003-01-20  David Ponce  <david@dponce.com>
22590         * w32menu.c (digest_single_submenu): Declare all args.
22592         Sync with 2002-12-23  Richard M. Stallman  <rms@gnu.org>
22593         changes in xmenu.c:
22595         (parse_single_submenu): Use individual keymap's prompt
22596         string as pane name, if there is one.
22597         (set_frame_menubar): Save menu_items_n_panes from each call to
22598         parse_single_submenu and use it when calling digest_single_submenu.
22600 2003-01-20  Steven Tamm  <steventamm@mac.com>
22602         * macterm.c (XTread_socket): Check for valid, visible window
22603         before sending a scroll-wheel event.
22605 2003-01-20  Richard M. Stallman  <rms@gnu.org>
22607         * xdisp.c (redisplay_window): If mini window's buffer is not
22608         a minibuffer, then redisplay it like other windows.
22610 2003-01-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22612         * gtkutil.c (xg_create_frame_widgets): Check if there is an
22613         external tool bar before setting tool bar height.
22615 2003-01-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22617         * xterm.c (handle_one_xevent): Surround popup_activated
22618         with #ifdef:s for non-toolkit version.
22620         * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
22621         (gtkutil.o): New file.
22622         (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
22623         (LIBW): Set to @GTK_LIBS@ if USE_GTK.
22625         * gtkutil.c: New file for GTK version.
22627         * gtkutil.h: New file for GTK version.
22629         * xterm.h: Add xt_or_gtk_widget.
22630         Include gtk files for USE_GTK.
22631         (struct x_output): Add toolbar_height.
22632         (struct x_output): Add GTK widgets and Gdk size_hints.
22633         (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
22634         (FRAME_OUTER_WINDOW): New macros for USE_GTK.
22635         (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
22637         * xterm.c: Include gtkutil.h for USE_GTK.
22638         (free_frame_menubar): Declare extern void for USE_GTK.
22639         (note_mouse_highlight): Check popup_activated for USE_GTK.
22640         (xt_action_hook): Don't compile if USE_GTK.
22641         (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
22642         (xg_scroll_callback): New function.
22643         (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
22644         (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
22645         for USE_GTK.
22646         (x_scroll_bar_create): Call xg_update_scrollbar_pos and
22647         xg_show_scroll_bar for USE_GTK.
22648         (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
22649         (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
22650         (event_handler_gdk): New function for USE_GTK.
22651         (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
22652         (handle_one_xevent): Make sure widget is mapped before
22653         calling x_real_positions for USE_GTK.
22654         (XTread_socket): Add GTK event loop for USE_GTK.
22655         (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
22656         (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
22657         (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
22658         (x_iconify_frame): Add code for USE_GTK.
22659         (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
22660         (x_wm_set_size_hint): Only compile if not USE_GTK.  GTK version
22661         is in gtkutil.c.
22662         (x_term_init): Add initialization for GTK.
22663         (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
22665         * xmenu.c: Include gtkutil.h for USE_GTK.
22666         (Fx_popup_menu): Use current position if x and y are nil.
22667         (single_menu_item, single_menu_item, Fx_popup_dialog):
22668         Check for USE_GTK.
22669         (popup_widget_loop): New function for USE_GTK.
22670         (x_activate_menubar): Add code for USE_GTK.
22671         (popup_activate_callback, popup_deactivate_callback)
22672         (menu_highlight_callback, menubar_selection_callback):
22673         Add USE_GTK versions.
22674         (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
22675         (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
22676         (free_frame_menubar): Only compile if not USE_GTK.  GTK version
22677         is in gtkutil.c.
22678         (popup_selection_callback): New version for USE_GTK.
22679         (create_and_show_popup_menu): New fuction, one USE_GTK version and
22680         one USE_X_TOOLKIT version.
22681         (xmenu_show): Call create_and_show_popup_menu.
22682         (dialog_selection_callback): New version for USE_GTK.
22683         (create_and_show_dialog): New fuction, one USE_GTK version and
22684         one USE_X_TOOLKIT version.
22685         (xdialog_show): Call create_and_show_dialog.
22687         * xfns.c: Include gtkutil for USE_GTK.
22688         (x_window_to_frame, x_any_window_to_frame)
22689         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
22690         (x_top_window_to_frame): Add code for USE_GTK.
22691         (x_set_background_color): Call xg_set_background_color for GTK.
22692         (x_set_menu_bar_lines): Check for USE_GTK.
22693         (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
22694         (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
22695         (x_window): Call xg_create_frame_widgets for USE_GTK.
22696         (Fx_create_frame): Check for USE_GTK.
22697         (Fx_file_dialog): New implementation for USE_GTK.
22699         * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
22700         (update_menu_bar): Add check for USE_GTK.
22701         (update_tool_bar): Add check for USE_GTK and external tool bar.
22702         (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
22703         (redisplay_internal): Add check for USE_GTK and popup_activated.
22704         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
22705         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
22706         (display_menu_bar): Add check for USE_GTK
22708         * lisp.h (Vx_resource_name): Declare extern.
22710         * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
22711         for USE_GTK.
22712         (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
22714         * frame.h (struct frame): Add external_tool_bar.  Check for USE_GTK.
22715         (FRAME_EXTERNAL_TOOL_BAR): New macro.
22716         (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
22718         * fileio.c (Fread_file_name): Add check for USE_GTK.
22720         * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
22721         Add check for USE_GTK.
22723         * config.in: Added HAVE_GTK.
22725         * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
22727 2003-01-18  Stefan Monnier  <monnier@cs.yale.edu>
22729         * charset.h (Funibyte_char_to_multibyte): Export.
22731 2003-01-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22733         * xmenu.c (mouse_position_for_popup): New function.
22734         (Fx_popup_menu): Call mouse_position_for_popup for X and
22735         mouse_position_hook for others.
22737 2003-01-17  Kim F. Storm  <storm@cua.dk>
22739         * editfns.c (Finsert): Mention `string-make-multibyte' and
22740         `string-as-multibyte' in doc string.
22742 2003-01-17  Kenichi Handa  <handa@m17n.org>
22744         * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
22746         * editfns.c (Fformat): Convert an unibyte char argument that is
22747         formatted by "%c" to multibyte if the total result must be a
22748         multibyte string.
22750 2003-01-16  Kim F. Storm  <storm@cua.dk>
22752         * process.c (set-process-filter): Document unibyte/multibyte-ness
22753         of string argument.
22755 2003-01-16  Kenichi Handa  <handa@m17n.org>
22757         * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
22759         * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
22760         (re_search_2): Likewise.
22762 2003-01-15  Kenichi Handa  <handa@m17n.org>
22764         * xdisp.c (message_dolog): Fix bug of the case that *Message*
22765         buffer is unibyte.
22767 2003-01-15  Francesco Potort\e,Al\e(B  <pot@gnu.org>
22769         * fns.c (Fsubstring): Clarify doc string.
22771         * textprop.c (Ftext_properties_at, Fnext_char_property_change)
22772         (Fprevious_char_property_change)
22773         (Fnext_single_char_property_change)
22774         (Fprevious_single_char_property_change, Fnext_property_change)
22775         (Fnext_single_property_change, Fprevious_property_change)
22776         (Fprevious_single_property_change, Fadd_text_properties)
22777         (Fput_text_property, Fset_text_properties)
22778         (Fremove_text_properties, Fremove_list_of_text_properties)
22779         (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
22781 2003-01-14  Kim F. Storm  <storm@cua.dk>
22783         * process.h (struct Lisp_Process): New member plist replaces old
22784         member private_vars.  All uses changed.
22786         * process.c: Reworked 2003-01-12 change -- call a plist a plist!
22787         (QCplist): Rename from QCvars.  Change all uses.
22788         (Fprocess_plist): Replaces Fprocess_variable.  Simplified.
22789         (Fset_process_plist): Replaces Fset_process_variable.  Simplify.
22790         (syms_of_process): Intern, staticpro, defsubr these.
22791         (Fmake_network_process): Describe :plist arg.  Remove :vars arg.
22793 2003-01-14  Francesco Potort\e,Al\e(B  <pot@gnu.org>
22795         * m/delta.h: Remove (obsolete).
22797 2003-01-13  Francesco Potort\e,Al\e(B  <pot@gnu.org>
22799         * fileio.c (Fdelete_directory, Fdelete_file): Document the
22800         behaviour in front of symlinks.
22801         (Fdelete_file): Raise an error on directories.
22803 2003-01-13  Dave Love  <fx@gnu.org>
22805         * fns.c (Freverse): Use QUIT.
22807 2003-01-13  Richard M. Stallman  <rms@gnu.org>
22809         * minibuf.c (minibuffer_completion_contents):
22810         Error if point is inside prompt.
22812         * keyboard.c (command_loop_1): Don't redisplay directly
22813         if there's a post-command-hook.
22815         * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
22816         (Fdo_auto_save): Add gcpros around Ffile_name_directory.
22818 2003-01-12  Kim F. Storm  <storm@cua.dk>
22820         * process.h (struct Lisp_Process): New member private_vars.
22822         * process.c (QCvars): New variable.
22823         (syms_of_process): Intern and staticpro it.
22824         (Fset_process_contact): Removed function.
22825         (Fprocess_variable, Fset_process_variable): New functions.
22826         (syms_of_process): Defsubr them.
22827         (Fstart_process): Initialize private_vars plist to nil.
22828         (Fmake_network_process): New arg :vars to setup the private
22829         variables for new network process.
22830         (server_accept_connection): Copy server's private variables to
22831         client process.
22833         * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
22834         crashes).  Code rewritten and simplified.  Now directly aligns the
22835         pointer and recalculates pure_bytes_used, rather than aligning the
22836         size and adjusting the pointer.
22838 2003-01-11  Kim F. Storm  <storm@cua.dk>
22840         * process.c (Fset_process_contact): New function.
22841         (syms_of_process): defsubr it.
22842         (make-network-process): Update doc.
22844 2003-01-10  Andreas Schwab  <schwab@suse.de>
22846         * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
22847         Reported by Berthold Gunreben <b.gunreben@web.de>.
22849 2003-01-10  Dave Love  <fx@gnu.org>
22851         * composite.c (syms_of_composite): Make composition_hash_table weak.
22853 2003-01-09  Kim F. Storm  <storm@cua.dk>
22855         * process.c (Fmake_network_process): Convert new port number
22856         to host byte order for `:service t' case.  From Mario Lang.
22858 2003-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22860         * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
22861         instead of XtAppProcessEvent.
22863         * xterm.c (handle_one_xevent): New function.
22864         (x_dispatch_event): New function.
22865         (XTread_socket): Call handle_one_xevent.
22867         * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
22869         * xmenu.c (Fx_popup_menu): If popping up at mouse position,
22870         call XQueryPointer to get coordinates.
22871         (popup_get_selection): Do not set popup_activated_flag to zero,
22872         let popup_deactivate_callback do that.  Needed for Motif.
22873         Call x_dispatch_event instead of XtDispatchEvent.
22874         (xmenu_show): Calculate root coordinate from frame top/left position.
22876 2003-01-08  Kim F. Storm  <storm@cua.dk>
22878         * process.c (server_accept_connection): Fix recording of new
22879         connection's local address in :local property of contact info.
22880         (Fmake_network_process): Record local network address for new
22881         client processes in :local property of contact info.
22882         (format-network-address): Add arg OMIT-PORT.  Change callers.
22884 2003-01-07  Dave Love  <fx@gnu.org>
22886         * Makefile.in (fns.o): Depend on coding.h.
22888 2003-01-06  Dave Love  <fx@gnu.org>
22890         * fns.c: Include coding.h.  Use POINTER_TYPE*, not void*.
22891         (Vlocale_coding_system): Declare.
22892         (Qcodeset, Qdays, Qmonths, Qpaper): New.
22893         (Flanginfo): New.
22894         (syms_of_fns): Initialize new stuff.
22896 2003-01-07  Markus Rost  <rost@math.ohio-state.edu>
22898         * minibuf.c (Fread_variable): Doc fix.
22900         * eval.c (Fuser_variable_p): Doc change.  For custom variables,
22901         use the same test as for custom-variable-p.
22903 2003-01-05  Richard M. Stallman  <rms@gnu.org>
22905         * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
22906         Count LAST_LINE_MISFIT in scroll margin for end of window.
22907         Move label too_near_end before setting SCROLL_MARGIN_POS.
22908         Set LAST_LINE_MISFIT before jumping there.
22910         * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
22911         scroll_conservatively case.  If scrolling that much doesn't change
22912         STARTP, move it down one line.
22914         * xdisp.c (redisplay_window): Pass last_line_misfit arg to
22915         try_scrolling.  Make it 1 after make_cursor_line_fully_visible fails.
22917         * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
22918         selected frame.
22920         * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
22921         (syms_of_keymap): Staticpro them.
22922         (Fapropos_internal): Initialize them and clear them out.
22923         Don't GCPRO them.
22925         * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
22927         * lisp.h: New misc type Lisp_Save_Value.
22928         (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
22929         (XSAVE_VALUE): New macro.
22930         (struct Lisp_Save_Value): New data type.
22931         (union Lisp_Misc): Add u_save_value alternative.
22932         (make_save_value): Declare.
22934         * alloc.c (make_save_value): New function.
22936         * xterm.c (x_catch_errors): Save dpy using make_save_value.
22937         (x_catch_errors_unwind): Call XSync.
22939 2003-01-01  Richard M. Stallman  <rms@gnu.org>
22941         * window.c (window_scroll_pixel_based): Partially undo last change.
22943         * keyboard.c (command_loop_1): Call adjust_point_for_property
22944         in direct action cases for Qforward_char and Qbackward_char.
22945         Set already_adjusted so it won't be done twice.
22947 2002-12-30  Richard Dawe  <rich@phekda.freeserve.co.uk>
22949         * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
22950         type definition of size_t.
22952 2003-01-02  Steven Tamm  <steventamm@mac.com>
22954         * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
22955         distinguish Carbon GUI builds from X11 builds on darwin.
22957 2002-12-30  Steven Tamm  <steventamm@mac.com>
22959         * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
22960         to default to t.
22962 2002-12-29  Francesco Potort\e,Al\e(B  <pot@gnu.org>
22964         * data.c (Fstring_to_number, Fminus): Better English in doc strings.
22966 2002-12-28  Steven Tamm  <steventamm@mac.com>
22968         * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
22969         allow building in a different directory than source.  Uses some
22970         GNU Make extensions, but there is no other make on Mac OS X.
22972 2002-12-26  Francesco Potort\e,Al\e(B  <pot@gnu.org>
22974         * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
22975         (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
22976         (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
22977         (Fstring_to_number): Mention the returned value in the doc strings.
22979 2002-12-23  Richard M. Stallman  <rms@gnu.org>
22981         * buffer.c (syms_of_buffer) <scroll-up-aggressively>
22982         <scroll-down-aggressively>: Doc fix.
22984         * xmenu.c (parse_single_submenu): Use individual keymap's prompt
22985         string as pane name, if there is one.
22986         (set_frame_menubar): Save menu_items_n_panes from each call to
22987         parse_single_submenu and use it when calling digest_single_submenu.
22989         * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
22990         Don't try to make last line fully visible if it is past end of window.
22992 2002-12-22  Steven Tamm  <steventamm@mac.com>
22994         * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
22995         (mac_menu_show): Add support for hierarchical popup menus.
22996         (add_menu_item): Remove indentation support.
22997         (fill_submenu, fill_menu): Create hierarchical menus
22998         instead of using indentation.
23000 2002-12-22  Richard M. Stallman  <rms@gnu.org>
23002         * xdisp.c (try_cursor_movement): Don't call try_window here.
23003         (redisplay_window): Never redisplay minibuffer when inactive.
23005         * window.c (select_window_1): Undo 9/21 change.
23007 2002-12-22  Steven Tamm  <steventamm@mac.com>
23009         * macterm.c (XTread_socket): Call KeyTranslate for control and
23010         meta to deal correctly shifted non-alpha characters, like C-S-5
23011         being treated like C-%.  Do not look for shift key to deal
23012         with masking off control-key with mac-reverse-ctrl-meta.
23014 2002-12-21  Richard M. Stallman  <rms@gnu.org>
23016         * xmenu.c (popup_get_selection): Now static.  New arg DO_TIMERS.
23017         If it is non-nil, run timers.  Use an unwind-protect to requeue
23018         the events that were read ahead.
23019         (popup_get_selection_unwind): New subroutine.
23020         (popup_get_selection_queue): File-scope variable now holds that queue.
23021         (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
23022         (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
23023         Use an unwind-protect to pop down the dialog box.
23024         (xdialog_show_unwind): New subroutine implements that.
23026         * xdisp.c (row_containing_pos): Change exit test using last_y.
23027         (try_window_id): Abort if row_containing_pos returns null.
23029         * lread.c (load_error_handler): New function.
23030         (Fload): Handle errors in Fsubstitute_in_file_name.
23031         Don't expect Fsignal to return.
23033         * eval.c: Errors and throws work right with interrupt blocking.
23034         (struct catchtag): New elt interrupt_input_blocked.
23035         (unwind_to_catch): Restore interrupt_input_blocked from saved value.
23036         (internal_catch, Fcondition_case, internal_condition_case)
23037         (internal_condition_case_1, internal_condition_case_2): Save it.
23038         (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
23040         * editfns.c (Fformat): Add parens.
23042         * dired.c (file_name_completion): Fix that change.
23043         Delete special quit-handling code; just use QUIT.
23045 2002-12-21  Tak Ota  <Takaaki.Ota@am.sony.com>
23047         * dired.c (file_name_completion): Close directory on error
23048         just as in directory_files_internal.
23050 2002-12-19  David Kastrup  <David.Kastrup@t-online.de>
23052         * window.c (Fset_window_configuration): Set old_point to correct
23053         value when new_current_buffer == current_buffer.
23055 2002-12-17  Ben Key  <bkey1@tampabay.rr.com>
23057         Revisited my earlier fix for the following entry in etc/PROBLEMS:
23058         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
23059         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
23061         These changes were in part based upon suggestions made by Peter
23062         'Luna' Runestig [peter@runestig.com].
23064         * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
23065         (g_b_init_get_token_information, g_b_init_lookup_account_sid)
23066         (g_b_init_get_sid_identifier_authority ): Add several static
23067         global variables.
23069         * w32.c (globals_of_w32): New function.  Used to initialize those
23070         global variables that must always be initialized on startup even
23071         when the global variable initialized is non zero.  Its primary
23072         purpose at this time is to set the global variables
23073         g_b_init_is_windows_9x, g_b_init_open_process_token,
23074         g_b_init_get_token_information, g_b_init_lookup_account_sid, and
23075         g_b_init_get_sid_identifier_authority to 0 on startup.
23076         Called from main.
23078         * w32.c (is_windows_9x): Perform initialization only if
23079         g_b_init_is_windows_9x is equal to 0.  On initialization set
23080         g_b_init_is_windows_9x equal to 1.
23082         * w32.c (open_process_token): Perform initialization only if
23083         g_b_init_open_process_token is equal to 0.  On initialization set
23084         g_b_init_open_process_token equal to 1.
23086         * w32.c (get_token_information): Perform initialization only if
23087         g_b_init_get_token_information is equal to 0.  On initialization
23088         set g_b_init_get_token_information equal to 1.
23090         * w32.c (lookup_account_sid): Perform initialization only if
23091         g_b_init_lookup_account_sid is equal to 0.  On initialization
23092         set g_b_init_lookup_account_sid equal to 1.
23094         * w32.c (get_sid_identifier_authority): Perform initialization
23095         only if g_b_init_get_sid_identifier_authority is equal to 0.
23096         On initialization set g_b_init_get_sid_identifier_authority equal to 1.
23098         * w32fns.c (globals_of_w32fns): New function.  Used to initialize
23099         those global variables that must always be initialized on startup
23100         even when the global variable initialized is non zero.
23101         Its primary purpose at this time is to initialize the global variable
23102         track_mouse_event_fn.
23104         * w32fns.c (w32_wnd_proc): Remove initialization of
23105         track_mouse_event_fn from the handler for the WM_SETFOCUS message.
23107         * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
23109         * w32menu.c (globals_of_w32menu): New function.  Used to
23110         initialize those global variables that must always be initialized
23111         on startup even when the global variable initialized is non zero.
23112         Its primary purpose at this time is to initialize the global
23113         variables get_menu_item_info and set_menu_item_info.
23115         * w32menu.c (initialize_frame_menubar): Remove initialization of
23116         get_menu_item_info and set_menu_item_info.
23118         * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
23120         * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
23121         Declare them.
23123         * emacs.c (main): Call globals_of_w32 prior to calling
23124         init_environment if WINDOWSNT is defined.  Call globals_of_w32fns
23125         and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
23126         is defined.
23128         * w32term.c (x_update_window_begin): Fix Windows API error
23129         detected by BoundsChecker.  Test to determine if
23130         w32_system_caret_hwnd is NULL prior to attempting to use
23131         SendMessage to send the WM_EMACS_HIDE_CARET message to it.
23133         * w32term.c (x_update_window_end): Fix Windows API error
23134         detected by BoundsChecker.  Test to determine if
23135         w32_system_caret_hwnd is NULL prior to attempting to use
23136         SendMessage to send the WM_EMACS_SHOW_CARET message to it.
23138 2002-12-17  Kenichi Handa  <handa@m17n.org>
23140         * coding.c (coding_system_require_warning): New variable.
23141         (syms_of_coding): DEFVAR it.
23143         * coding.h (coding_system_require_warning): Extern it.
23145         * fileio.c (choose_write_coding_system): Even if
23146         Vcoding_system_for_write is non-nil, if
23147         coding_system_require_warning is nonzero, call
23148         Vselect_safe_coding_system_function.
23150 2002-12-17  Markus Rost  <rost@math.ohio-state.edu>
23152         * Makefile.in (lisp, shortlisp): Add cus-face and timer.
23153         (lisp): Add font-core.
23155 2002-12-13  Stefan Monnier  <monnier@cs.yale.edu>
23157         * textprop.c (text_read_only): New arg `propval'.
23158         (get_char_property_and_overlay): Remove unused var `next_overlay'.
23159         (verify_interval_modification): Use text_read_only's new arg.
23161 2002-12-13  Kenichi Handa  <handa@m17n.org>
23163         * coding.c (Funencodable_char_position): Set pend correctly.
23165 2002-12-12  Jason Rumney  <jasonr@gnu.org>
23167         * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
23168         (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
23169         Be more careful about when help_events are generated.
23171 2002-12-12  Steven Tamm  <steventamm@mac.com>
23173         * macterm.c (mac_check_for_quit_char): Correctly set the
23174         modifiers of the event to 0.
23175         * mac.c (sys_select): Duplicate rfds before calling select to
23176         ensure that rfds survive the while loop.
23178 2002-12-11  Kim F. Storm  <storm@cua.dk>
23180         * xdisp.c (try_window_id): Don't call set_cursor_from_row if
23181         row_containing_pos returned NULL.
23183 2002-12-10  Steven Tamm  <steventamm@mac.com>
23185         * mac.c (sys_read): Fix sys_read to not call select if IO is
23186         non-blocking.
23187         (sys_select): Fix sys_select to not use a timeout larger than
23188         the one given.
23190 2002-12-10  Juanma Barranquero  <lektu@terra.es>
23192         * editfns.c (Fformat): Use alloca, not _alloca.
23194 2002-12-09  Richard M. Stallman  <rms@gnu.org>
23196         * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
23197         as the last thing.
23199 2002-12-09  Dave Love  <fx@gnu.org>
23201         * s/sol2-8.h: Removed.  (Not necessary.)
23203 2002-12-09  Matthew Swift  <swift@alum.mit.edu>
23205         * editfns.c (Fformat): Handle precision in string conversion
23206         specifiers like libc functions do (ie, print at most that many
23207         characters).
23209 2002-12-08  Richard M. Stallman  <rms@gnu.org>
23211         * xdisp.c (row_containing_pos): Check more carefully
23212         whether charpos is really in the row before returning it.
23214 2002-12-07  Steven Tamm  <steventamm@mac.com>
23216         * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
23218         * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
23219         each stack frame.  This may change as it could be time consuming.
23221         * macterm.c (mac_check_for_quit_char, quit_char_comp)
23222         (init_quit_char_handler, mac_determine_quit_char_modifiers)
23223         (mac_initialize): Add code to check for pressing of quit_char
23224         in the OS event queue.
23226         * mac.c (sys_select): Call mac_check_for_quit_char every second
23227         while blocking on select.
23229         * mac.c (sys_read): Use sys_select to test for input first
23230         before calling read, to allow C-g to break.
23232 2002-12-07  Richard M. Stallman  <rms@gnu.org>
23234         * minibuf.c (Fcompleting_read): Doc fix.
23236         * lread.c (syms_of_lread) <load-history>: Doc fix.
23238         * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
23240         * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
23241         autoload.
23243         * data.c (Fdefalias): Record in load-history redefining an autoload.
23245         * alloca.c: Undo ifdef change accidentally made on 12-04.
23247 2002-12-06  Francesco Potort\e,Al\e(B  <pot@gnu.org>
23249         * xfns.c (png_load): Avoid double gamma correction for PNG images.
23251 2002-12-04  Richard M. Stallman  <rms@gnu.org>
23253         * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
23255         * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
23257         * alloca.c: Don't use #error.
23259 2002-12-03  Dave Love  <fx@gnu.org>
23261         * buffer.c (Qucs_set_table_for_input): New.
23262         (Fget_buffer_create): Use it.
23263         (Qset_buffer_major_mode_hook): Deleted.
23264         (Fset_buffer_major_mode): Revert previous change.
23265         (init_buffer_once): Intern ucs-set-table-for-input.
23266         (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
23267         Add &Qucs_set_table_for_input.
23269 2002-12-03  Andreas Schwab  <schwab@suse.de>
23271         * callint.c (Fcall_interactively): Use next_event only if less
23272         than key_count.
23274 2002-12-02  Andrew Choi  <akochoi@shaw.ca>
23276         * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
23277         names to 255 characters.
23279         * macterm.c (XTread_socket): If all frames have been collapsed,
23280         expand the first one before handling drag-and-drop events.
23282         * s/darwin.h (GETPGRP_NO_ARG): Delete.  Replaced by GETPGRP_VOID,
23283         which is detected by autoconf.
23285 2002-12-01  Steven Tamm  <steventamm@mac.com>
23287         * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
23288         offset in two hints table to allow prebinding to be redone and
23289         allow the executable to be stripped.
23291 2002-11-29  Dave Love  <fx@gnu.org>
23293         * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
23294         already provided.
23296 2002-11-29  Richard M. Stallman  <rms@gnu.org>
23298         * xdisp.c (start_display): Check more intelligently for
23299         whether the line is continued.
23300         (move_it_vertically_backward): Clear it->continuation_lines_width.
23302 2002-11-28  Dave Love  <fx@gnu.org>
23304         * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
23305         * s/alliant.h, s/altos.h: Deleted.  (Unused/empty.)
23307 2002-11-27  Steven Tamm  <steventamm@mac.com>
23309         * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
23310         more descriptive error output from lread.c:Fload upon most require
23311         cycles during boostrapping.
23313 2002-11-27  Jason Rumney  <jasonr@gnu.org>
23315         * fileio.c (Finsert_file_contents): Give a more appropriate error
23316         for files bigger than 2Gb when off_t is 32 bit.
23318         * dired.c (Ffile_attributes): Don't return negative file sizes for
23319         files bigger than 2Gb when off_t is 32 bit.
23321 2002-11-27  Dave Love  <fx@gnu.org>
23323         * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
23325         * systty.h: Don't conditionally define GETPGRP_NO_ARG.
23326         Test GETPGRP_VOID instead.
23327         [BSD_TERMIOS]: Remove definitions (never used).
23329         * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
23330         Don't define.
23331         (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
23333         * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
23335 2002-11-25  Jason Rumney  <jasonr@gnu.org>
23337         * w32.c (sys_write): Avoid non-blocking mode, which is not fully
23338         supported.
23340 2002-11-25  Dave Love  <fx@gnu.org>
23342         * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
23344         * Makefile.in (TEMACS_LDFLAGS): Update last change.
23346 2002-11-25  Andreas Schwab  <schwab@suse.de>
23348         * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
23350 2002-11-24  Steven Tamm  <steventamm@mac.com>
23352         * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
23353         determine the size of pointers alloced in unexed space instead
23354         of using possibly invalid emacs_zone pointers.  This fixes the
23355         binary incompatibility problems caused by updates to libSystem.B.
23357 2002-11-24  Richard M. Stallman  <rms@gnu.org>
23359         * search.c (Fstring_match): Doc fix.
23361         * callint.c (Fcall_interactively): If a command fails because
23362         `*' detects a read-only buffer, but RECORD_FLAG is set,
23363         record it anyway if the args don't actually do tty input.
23365 2002-11-22  Dave Love  <fx@gnu.org>
23367         * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
23369         * keyboard.c (interrupt_signal): Provide forward declaration.
23370         (kbd_buffer_store_event): Don't declare interrupt_signal.
23372         * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
23374 2002-11-21  Richard M. Stallman  <rms@gnu.org>
23376         * eval.c (interactive_p): Skip any number of bytecode
23377         and special form frames, in any order.
23379 2002-11-20  Jason Rumney  <jasonr@gnu.org>
23381         * w32fns.c (convert_mono_to_color_image): New function.
23382         (xbm_load, xbm_load_image): Use it when foreground or background
23383         is explicitly set.
23385 2002-11-19  Dave Love  <fx@gnu.org>
23387         * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
23389 2002-11-18  Jason Rumney  <jasonr@gnu.org>
23391         * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
23392         (XPutPixel): Swap blue and red.
23393         (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
23394         (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
23395         (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
23396         (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
23398 2002-11-18  Dave Love  <fx@gnu.org>
23400         * m/orion105.h (HAVE_ALLOCA): Don't define.
23402         * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
23404         * m/intel386.h: Don't include alloca.h or define alloca.
23406         * m/ia64.h: Don't include alloca.h, stdlib.h.  Don't declare
23407         malloc, realloc, calloc.
23409         * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
23410         (bcmp): Don't define.
23412         * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
23414         * m/amdahl.h: Don't define LIB_STANDARD.
23416         * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
23418         * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
23420         * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
23421         Don't include alloca.h.
23423         * s/aix3-2.h (HAVE_FSYNC): Don't define.
23425         * regex.c (_GNU_SOURCE): Don't define.
23427         * process.c (_GNU_SOURCE): Don't define.
23429         * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
23431 2002-11-18  Markus Rost  <rost@math.ohio-state.edu>
23433         * s/sol2-8.h: Include sol2-6.h.
23435 2002-11-18  Miles Bader  <miles@gnu.org>
23437         * dispextern.h (struct face): Add `overstrike' field.
23438         * xterm.c (x_draw_glyph_string_foreground)
23439         (x_draw_composite_glyph_string_foreground): Implement overstriking.
23440         * xfaces.c (load_face_font): Set `face->overstrike' based on
23441         result from choose_face_font.
23442         (best_matching_font, choose_face_font): Add `needs_overstrike'
23443         argument, and use it to return whether overstriking is desirable
23444         for this face/font combo.
23445         (set_font_frame_param: Pass new argument to choose_face_font.
23447 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
23449         This change is my fix for the following entry in etc/PROBLEMS:
23450         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
23451         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
23453         * w32.c: Added wrapper functions around the win32 API functions
23454         OpenProcessToken, GetTokenInformation, LookupAccountSid, and
23455         GetSidIdentifierAuthority.  These wrapper functions serve two
23456         purposes:
23457         1.  They ensure that the wrapped function can never be called
23458         when Emacs is running on an operating system on which they are
23459         not supported (Microsoft Windows 95 / 98 / ME).
23460         2.  They call the wrapped functions via function pointers rather
23461         than calling them directly.  This avoids taking advantage of the
23462         undocumented fact that although these functions are not supported
23463         in the 9x branch of Microsoft Windows, the functions do exist in
23464         the version of advapi32.dll that is found in the 9x branch of
23465         Microsoft Windows.
23467         * w32.c (init_user_info): Replace the calls to the win32 API
23468         functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
23469         and GetSidIdentifierAuthority with calls to the newly added
23470         wrapper functions.
23472         * w32.h: Added extern declarations for the following functions:
23473         syms_of_w32term, syms_of_w32fns, syms_of_w32select,
23474         syms_of_w32menu, and void syms_of_fontset.
23476         * w32fns.c (w32_wnd_proc): Add code to reinitialize the
23477         function pointer track_mouse_event_fn in the handler for the
23478         WM_SETFOCUS message.
23480         * w32menu.c (initialize_frame_menubar): Add code to
23481         reinitialize the function pointers set_menu_item_info and
23482         get_menu_item_info.
23484 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
23486         * sound.c: Added a partial implementation of play-sound-internal
23487         for Microsoft Windows.  Added various #ifdef / #else / #endif
23488         code blocks to separate the code that will compile under
23489         Microsoft Windows from the code that is specific to GNU/Linux.
23490         Moved several blocks of code around to make this separation of code
23491         into Windows compatible and GNU/Linux compatible code blocks easier.
23493         * makefile.w32-in: Include sound.c and link with WinMM.lib.
23495         * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
23496         added support for play-sound-internal under Windows would be
23497         included in the build of Emacs.
23499 2002-11-16  Jason Rumney  <jasonr@gnu.org>
23501         * w32fns.c (w32_load_system_font): Don't disable Cleartype.
23503         * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
23505 2002-11-15  Stefan Monnier  <monnier@cs.yale.edu>
23507         * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
23508         (adjust_point_for_property): Move out of display and invisible even if
23509         we were already inside before (in case a property was added while
23510         we weren't looking).  Be more careful when handling invisible props.
23511         Skip invisible text as if it really wasn't there at all.
23513 2002-11-15  Jason Rumney  <jasonr@gnu.org>
23515         * w32term.c (x_draw_image_foreground)
23516         (w32_draw_image_foreground_1): Use standard copy and invert
23517         operations to draw images.
23519         * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
23520         depth of 1.
23521         (xbm_read_bitmap_data): Invert bits as xbm is read in.
23522         (XPutPixel): Don't invert bits here.
23524 2002-11-15  Jason Rumney  <jasonr@gnu.org>
23526         * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
23527         (w32_draw_image_foreground_1): Handle image masks.
23528         (x_draw_image_glyph_string): Don't BitBlt transparently.
23530         * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
23531         (x_from_xcolors): Adjust RGB values for W32.
23532         (image_background, image_background_transparent)
23533         (postprocess_image, x_to_xcolors, x_disable_image)
23534         (x_build_heuristic_mask): Adapt for W32 and enable.
23535         (x_create_x_image_and_pixmap): Mark images with palettes as such.
23536         (xbm_load): Remove unused variable.
23538 2002-11-14  Richard M. Stallman  <rms@gnu.org>
23540         * buffer.c (syms_of_buffer): Doc fix.
23542 2002-11-14  Dave Love  <fx@gnu.org>
23544         * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
23546         * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
23547         * xmenu.c (unuse_menu_items, digest_single_submenu):
23548         * xfns.c (x_put_x_image):
23549         * xdisp.c (message2_nolog, set_message):
23550         * undo.c (record_point):
23551         * terminfo.c (tparam):
23552         * syntax.c (scan_sexps_forward):
23553         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23554         * composite.c (update_compositions):
23555         * cm.c (calccost, cmgoto):
23556         * charset.c (c_string_width): Declare all args (per C99).
23558         * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
23560         * lisp.h (get_specified_cursor_type, get_window_cursor_type):
23561         Don't declare.
23563         * emacs.c (main) [!VMS]: Avoid third arg.
23565         * fns.c (Fcopy_sequence): Doc fix.
23566         (Fmap_char_table): Cast `call2'.
23568 2002-11-14  Francesco Potort\e,Al\e(B  <pot@gnu.org>
23570         * s/sol2-8.h: New file.
23572 2002-11-14  Kim F. Storm  <storm@cua.dk>
23574         * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
23575         dependency on `risky-local-variable' and the :propertize form.
23577 2002-11-12  Stefan Monnier  <monnier@cs.yale.edu>
23579         * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
23581         * syntax.c (scan_sexps_forward): Undo last patch.
23582         Use a more obvious fix: check eob before updating the syntax table.
23584 2002-11-09  Stefan Monnier  <monnier@cs.yale.edu>
23586         * syntax.c (scan_sexps_forward): Update syntax table before reading
23587         a char rather than after so we don't update the table past eob.
23589 2002-11-09  Dave Love  <fx@gnu.org>
23591         * buffer.c (Fset_buffer_major_mode): Fix last change.
23593         * regex.c (regexec): Fix pmatch declaration.
23595         * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
23597         * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
23598         to self-inserting characters.
23599         (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
23601         * coding.c (Vtranslation_table_for_input): New.
23602         (syms_of_coding): DEFVAR it.
23604 2002-11-08  Juanma Barranquero  <lektu@terra.es>
23606         * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
23607         window.
23609 2002-11-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23611         * process.c (Fformat_network_address): Remove unused locals p,
23612         cp, and i.
23614 2002-11-06  Dave Love  <fx@gnu.org>
23616         * buffer.c (Qset_buffer_major_mode_hook): New.
23617         (Fset_buffer_major_mode): Use it.
23619 2002-11-06  Richard M. Stallman  <rms@gnu.org>
23621         * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
23622         and stop_polling.
23624         * process.c (wait_reading_process_input):
23625         Test POLLING_PROBLEM_IN_SELECT, not hpux.
23626         Avoid initialization for auto Lisp_Object var.
23628         * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
23630         * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
23632 2002-11-05  Richard M. Stallman  <rms@gnu.org>
23634         * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
23636         * callint.c (Fcall_interactively): New local filter_specs.
23637         (Fcall_interactively): Check for progn as well as let.
23638         Add a gcpro.
23639         (Qprogn): New variable.
23640         (syms_of_callint): Staticpro and init Qprogn.
23642 2002-11-04  John Paul Wallington  <jpw@shootybangbang.com>
23644         * lread.c (Feval_buffer): Doc fix.
23646 2002-11-04  Dave Love  <fx@gnu.org>
23648         * keyboard.c (read_char): Always translate iff
23649         Vkeyboard_translate_table is a char table and c is valid.
23651         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23652         and fix C types.
23654 2002-11-03  Stefan Monnier  <monnier@cs.yale.edu>
23656         * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
23658         * editfns.c (get_pos_property): Don't hardcode Qfield.
23660         * keyboard.c (adjust_point_for_property): Handle `display' prop on
23661         overlays.  Also handle `invisible' prop.
23663 2002-11-02  Stefan Monnier  <monnier@cs.yale.edu>
23665         * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
23666         (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
23668 2002-11-01  Andreas Schwab  <schwab@suse.de>
23670         * editfns.c (Fmessage): Revert last change to properly handle %%.
23672 2002-11-01  Stefan Monnier  <monnier@cs.yale.edu>
23674         * xmenu.c (unuse_menu_items): New fun.
23675         (menu_items_inuse): New var.
23676         (syms_of_xmenu): Initialize it.
23677         (init_menu_items): Use it to detect re-entrance.
23678         (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
23679         (Fx_popup_menu): Remove spurious XSETFRAME.
23681         * editfns.c (find_field): Make an exception for nil fields.
23683 2002-11-01  Dave Love  <fx@gnu.org>
23685         * m/gec63.h: Deleted.
23687 2002-10-31  Dave Love  <fx@gnu.org>
23689         * xterm.c (XTread_socket): Fix last change.
23690         (xaw_scroll_callback): Cast call_data to long to avoid warning.
23692 2002-10-31  Stefan Monnier  <monnier@cs.yale.edu>
23694         * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
23696 2002-10-30  Stefan Monnier  <monnier@cs.yale.edu>
23698         * editfns.c (overlays_around, get_pos_property): New funs.
23699         (find_field): Use them.
23700         Also be careful not to modify POS before its last use.
23701         (Fmessage): Don't Fformat if there's nothing to format.
23703 2002-10-30  Dave Love  <fx@gnu.org>
23705         * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
23706         [HAVE_PTY_H]; Include pty.h.
23708         * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
23710         * xterm.c (Qeql): Declare.
23711         (Vx_keysym_table): New.
23712         (syms_of_xterm): Initialize it.
23713         (XTread_socket): Use it.  Deal with ASCII keysyms.
23714         (XSetIMValues) [HAVE_X11R6]: Prototype.
23716         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
23717         (lispy_kana_keys): Comment out.
23718         (make_lispy_event) [XK_kana_A]: Comment out.
23719         (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
23720         Fix sprintf call.
23722         * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
23723         regexp.h change).
23724         (TERMINFO, LIBS_TERMCAP): Define.
23726         * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
23727         (bcmp): Define conditional on HAVE_BCMP.
23728         (NO_SIOCTL_H): Don't define.
23729         (TIOCSIGSEND): Don't make conditional on IRIX6.
23731         * s/sol2-5.h: Don't include strings.h.
23732         (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
23734         * s/irix6-0.h (IRIX6): Don't define.
23735         (bcopy, bcmp, bzero): Don't undef.
23737         * s/irix6-5.h: Don't include strings.h.
23738         (IRIX6): Don't define.
23739         (bcopy, bcmp, bzero): Don't undef.
23741         * syntax.c (Fforward_comment): Doc fix.
23743 2002-10-29  Kim F. Storm  <storm@cua.dk>
23745         * process.c (Fsignal_process): Allow PROCESS to be specified by
23746         name in addition to pid (as integer or string).
23748 2002-10-28  Harald Maier  <Harald.Maier.BW@t-online.de>  (tiny change)
23750         * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
23751         environments.
23753 2002-10-27  Kim F. Storm  <storm@cua.dk>
23755         * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
23757         * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
23759         * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
23761         * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
23763 2002-10-26  Richard M. Stallman  <rms@gnu.org>
23765         * editfns.c (Fformat): Detect invalid format letters for floats.
23767 2002-10-25  Kenichi Handa  <handa@m17n.org>
23769         * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
23770         (x_set_title): Likewise.
23772 2002-10-25  Juanma Barranquero  <lektu@terra.es>
23774         * macgui.h:
23775         * w32gui.h: Remove definition of XColor.
23777         * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
23779 2002-10-24  Kim F. Storm  <storm@cua.dk>
23781         * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
23782         Callers changed (supply dummy arg).
23784         * lisp.h (get_window_cursor_type): Update prototype.
23786         * w32term.c (x_display_and_set_cursor): Get active_cursor from
23787         get_window_cursor_type to track system caret.
23789 2002-10-24  Kim F. Storm  <storm@cua.dk>
23791         * process.c (Fformat_network_address): New function.
23792         (syms_of_process): Defsubr it.
23793         (list_processes_1): Use it to format :local/:remote address if
23794         service/host is not set; before Emacs would crash in that case.
23795         (Fmake_network_process): Don't use Ffind_operation_coding_system
23796         to setup coding system if host or service is not set.
23798 2002-10-23  Juanma Barranquero  <lektu@terra.es>
23800         Patch suggested by Jay Finger <jay_finger@hotmail.com>.
23802         * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
23803         COLORREF.
23805         * macgui.h:
23806         * w32gui.h: Add definition of XColor.
23808         * macfns.c:
23809         * w32fns.c:
23810         * xfaces.c: Remove definition of XColor.
23812 2002-10-22  Stefan Monnier  <monnier@cs.yale.edu>
23814         * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
23816         * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
23817         Only ignore truly dedicated windows.  For UNSHOW_BUFFER, delete the
23818         window if it is dedicated.
23819         (Fshrink_window): Add preserve_before as was done for enlarge_window.
23820         (Vspecial_display_function): Update docstring.
23822         * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
23823         (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
23824         (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
23826 2002-10-21  Stefan Monnier  <monnier@cs.yale.edu>
23828         * casefiddle.c (casify_region): Don't treat a prefix char as part
23829         of a word when at the beginning.
23831 2002-10-17  Juanma Barranquero  <lektu@terra.es>
23833         * lread.c (syms_of_lread): Fix typos.
23835 2002-10-17  Dave Love  <fx@gnu.org>
23837         * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
23839 2002-10-16  Richard M. Stallman  <rms@gnu.org>
23841         * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
23843 2002-10-14  Juanma Barranquero  <lektu@terra.es>
23845         * w16select.c (syms_of_win16select): Fix docstring for
23846         `selection-coding-system'.
23848         * w32select.c (syms_of_w32select): Likewise.
23850 2002-10-14  Stefan Monnier  <monnier@cs.yale.edu>
23852         * syntax.c (scan_lists): Don't get fooled by a symbol ending with
23853         a backslash-quoted char.
23854         (scan_lists, scan_sexps_forward): Pacify the compiler.
23856 2002-10-13  Richard M. Stallman  <rms@gnu.org>
23858         * window.c (window_scroll): Set immediate_quit.
23860         * print.c (print): When backquote form is the car of a list,
23861         output in old style.  Use old_backquote_output to output all
23862         comma forms inside it in old style too.
23864         * buffer.h (struct buffer): Move `undo_list' down below `name'.
23866 2002-10-11  Markus Rost  <rost@math.ohio-state.edu>
23868         * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
23869         batch mode).
23871         * lread.c (Fload): Doc fix (load-suffixes).
23873 2002-10-10  Steven Tamm  <steventamm@mac.com>
23875         * macterm.c (syms_of_macterm, mac_get_mouse_btn):
23876         Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
23877         Also switch the default to Qnil from Qt.
23879 2002-10-08  Kenichi Handa  <handa@m17n.org>
23881         * coding.c (code_convert_region): When we need more GAP for
23882         conversion, pay attention to the case that coding->produced is not
23883         greater than coding->consumed.
23885 2002-10-07  Richard M. Stallman  <rms@gnu.org>
23887         * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
23889 2002-10-06  Andrew Choi  <akochoi@shaw.ca>
23891         * macmenu.c (mac_menu_show): Add j to count menu items; match
23892         menu_item_selection to it to find selected item.
23894 2002-10-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
23896         * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
23897         cases.  The correct fix is to pass ReparentNotify to Xt.
23898         The shell widget interprets ConfigureNotify differently depending
23899         on if it has been reparented or not.
23901 2002-10-05  Markus Rost  <rost@math.ohio-state.edu>
23903         * editfns.c (Fformat_time_string): Doc fix.
23905 2002-10-05  John Paul Wallington  <jpw@shootybangbang.com>
23907         * fns.c (Flength): Doc fix.
23909 2002-10-04  Stefan Monnier  <monnier@cs.yale.edu>
23911         * keyboard.c (keyremap): New struct.
23912         (read_key_sequence): Use it: globally replace keytran_foo with
23913         keytran.foo and fkey_foo with fkey.foo.  Rename temp vars
23914         keytran_next and fkey_next to just `next'.
23916 2002-10-04  Steven Tamm  <steventamm@mac.com>
23918         * macterm.c (keycode_to_xkeysym_table): Change return to be
23919         treated like an X keysym.
23921 2002-10-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
23923         * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
23924         and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
23925         This is to also handle x/y changes that occur because of a resize.
23927 2002-10-02  John Paul Wallington  <jpw@shootybangbang.com>
23929         * frame.c (Vdelete_frame_functions): New variable.
23930         (syms_of_frame): Initialize and defvar it.
23931         (Fdelete_frame): Use it instead of delete-frame-hook.  Don't run
23932         it when frame's `tooltip' parameter is non-nil.
23934         * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
23936         * w32fns.c (x_create_tip_frame): Likewise.
23938         * macfns.c (x_create_tip_frame): Likewise.
23940 2002-09-30  Kenichi Handa  <handa@m17n.org>
23942         * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
23943         -1 before calling ccl_driver.
23945         * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
23946         Only when it is non-nil, handle composition sequence.
23947         (setup_coding_system) <0>: Don't force composition handling.
23949         * Makefile.in (lisp, shortlisp): Add utf-16.elc.
23951 2002-09-29  Richard M. Stallman  <rms@gnu.org>
23953         * search.c (Freplace_match): Adjust match data for the substitution
23954         just made in the buffer.
23956         * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
23957         (redisplay_internal): Use them.  Do RESUME_POLLING at end of function.
23959 2002-09-27  Richard M. Stallman  <rms@gnu.org>
23961         * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
23962         (read_char): Use them.  Do all exits thru the end of the function.
23964 2002-09-27  Kenichi Handa  <handa@etl.go.jp>
23966         * xfaces.c (try_font_list): Pay attention to the case that FAMILY
23967         is nil.
23969 2002-09-26  Richard M. Stallman  <rms@gnu.org>
23971         * regex.h (__restrict_arr): Don't define if already defined.
23973         * coding.c (run_pre_post_conversion_on_str):
23974         Save and restore Vdeactivate_mark.
23976 2002-09-26  John Paul Wallington  <jpw@shootybangbang.com>
23978         * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
23980 2002-09-26  Kenichi Handa  <handa@etl.go.jp>
23982         * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY.  If it is
23983         nonzero, try face's family at first.  Otherwise try FAMILY at first.
23984         (choose_face_font): If C is a single byte char or latin-1, call
23985         try_font_list with PREFER_FACE_FAMILY 1.
23987 2002-09-21  Richard M. Stallman  <rms@gnu.org>
23989         * window.c (select_window_1): Don't select frame.
23990         Set frame's selected window only when frame itself is selected.
23991         (Fselect_window): Doc fix.
23993 2002-09-18  Kim F. Storm  <storm@cua.dk>
23995         * process.c (make-network-process): Doc fix (there is no
23996         network-server-log-function hook).
23998 2002-09-18  Richard M. Stallman  <rms@gnu.org>
24000         * print.c (print): Clear out the unused parts of Vprint_number_table.
24001         (syms_of_print): Doc fix for `print-number-table'.
24003         * unexelf.c (unexec): Undo previous change.
24005 2002-09-17  Andreas Schwab  <schwab@suse.de>
24007         * m/alpha.h [LINUX]: Don't define DATA_START.
24009 2002-09-16  Dave Love  <fx@gnu.org>
24011         * unexelf.c (unexec): Deal with .got, reinstating change from
24012         25-08-1999.
24014 2002-09-13  Richard M. Stallman  <rms@gnu.org>
24016         * s/sol2-6.h (UNEXEC): Comment out definition.
24018         * unexsol.c (unexec): Don't downcase first letter of error msg.
24020         * xfaces.c (Fcolor_supported_p): Just one arg is required.
24022 2002-09-12  Markus Rost  <rost@math.ohio-state.edu>
24024         * unexsol.c: Include buffer.h, charset.h, coding.h.
24026 2002-09-11  Richard M. Stallman  <rms@gnu.org>
24028         * unexsol.c: Don't use report_file_error; do it by hand
24029         using dlerror.
24031         * process.c (wait_reading_process_input, both versions):
24032         Before calling turn_on_atimers, call stop_polling.
24034         * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
24036         * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
24037         we go to too_near_end, call clear_glyph_matrix.
24038         (redisplay_window): After make_cursor_line_fully_visible,
24039         call clear_glyph_matrix and bypass `goto done'.
24041         * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
24042         and we have non-toolkit scroll bars, return nil for scroll-bar-width.
24044 2002-09-10  Richard M. Stallman  <rms@gnu.org>
24046         * fileio.c (Fdo_auto_save): Catch error making directory.
24047         Only call push_message if we need to.
24048         At the same time, make an unwind-protect to pop it.
24049         Rename local message_p to old_message_p.
24050         (do_auto_save_make_dir, do_auto_save_eh): New functions.
24051         (do_auto_save_unwind): Don't call pop_message.
24053         * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
24055         * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
24057         * alloc.c (Fgarbage_collect): Use pop_message_unwind.
24059         * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
24061 2002-09-10  Stefan Monnier  <monnier@cs.yale.edu>
24063         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
24064         (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
24065         (re_match_2_internal): Be more careful with infinite loops.
24067 2002-09-10  Kim F. Storm  <storm@cua.dk>
24069         * macros.c (end_kbd_macro): New function.
24070         (Fend_kbd_macro): Use it.
24072         * macros.h (end_kbd_macro): Declare extern.
24074         * keyboard.c (Fdiscard_input): If defining keyboard macro,
24075         end and save it instead of discarding it.
24077 2002-09-09  Markus Rost  <rost@math.ohio-state.edu>
24079         * s/sol2-6.h: Fix typo.  Add comment.
24081 2002-09-09  Richard M. Stallman  <rms@gnu.org>
24083         * regex.c (regnum_t): Use signed int, not unsigned int.
24085         * s/sol2-6.h: New file.
24087         * s/sol2-5.h (UNEXEC): Definition deleted.
24089 2002-09-08  Kim F. Storm  <storm@cua.dk>
24091         * macros.c (executing_macro_index): Change type to EMACS_INT.
24092         (syms_of_macros): DEFVAR_INT it (needed by kmacro).
24094         * macros.h (executing_macro_index): Change type to EMACS_INT.
24096 2002-09-06  Richard M. Stallman  <rms@gnu.org>
24098         * casetab.c (set_case_table): Make canon table point to eqv table.
24100 2002-09-06  Juanma Barranquero  <lektu@terra.es>
24102         * coding.c (syms_of_coding): Fix spacing.
24104         * composite.c (Fcompose_region_internal)
24105         (Fcompose_string_internal): Likewise.
24107         * data.c (Flsh): Likewise.
24109         * fontset.c (Fset_fontset_font): Likewise.
24111         * macfns.c (Fx_server_max_request_size): Likewise.
24113         * w16select.c (syms_of_win16select): Likewise.
24115         * w32select.c (syms_of_w32select): Likewise.
24117         * xselect.c (syms_of_xselect): Likewise.
24119 2002-09-05  Richard M. Stallman  <rms@gnu.org>
24121         * regex.c (set_image_of_range_1): In no-TRANSLATE case,
24122         call EXTEND_RANGE_TABLE and return a proper value.
24123         (set_image_of_range): Don't call set_image_of_range_1
24124         if no TRANSLATE or if range includes all of Latin-1.
24125         Only call it for the Latin-1 part of the range.
24126         For other cases, make two separate ranges,
24127         one for the original specified characters and one for
24128         their case-conversions.
24130 2002-09-04  Richard M. Stallman  <rms@gnu.org>
24132         * s/sol2-5.h (UNEXEC): Use unexsol.o.
24134         * window.c (displayed_window_lines): Correct for one-off bug
24135         in HEIGHT on non-window displays.
24137         * regex.c (set_image_of_range_1): New function.
24138         (set_image_of_range): Use set_image_of_range_1 for Latin-1.
24139         Return a value to indicate running out of memory.
24140         (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
24141         (extend_range_table_work_area): New subroutine.
24142         (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
24143         Different calling conventions, and used from set_image_of_range{,_1}.
24144         (IMMEDIATE_QUIT_CHECK): Definitions moved.
24146 2002-09-04  Juanma Barranquero  <lektu@terra.es>
24148         * makefile.w32-in: All dependencies updated.
24150 2002-09-01  Richard M. Stallman  <rms@gnu.org>
24152         * unexsol.c: New file.
24154         * xfns.c (Qbox): Declare external, don't define.
24156         * xdisp.c (redisplay_window) <force-start case>:
24157         If point is on semi-visible last line, reposition
24158         it at previous line.
24160         * alloc.c (display_malloc_warning): Use display-warning.
24161         (malloc_warning_1): Function deleted.
24163         * alloc.c [ALLOC_DEBUG]: #undef INLINE.
24165         * lread.c (read1): Handle #! by skipping the line.
24167 2002-08-31  Richard M. Stallman  <rms@gnu.org>
24169         * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
24170         Don't include LDFLAGS.
24171         (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
24173 2002-08-31  Eli Zaretskii  <eliz@is.elta.co.il>
24175         * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
24176         member of x_display_info unless we compile for some window system.
24178 2002-08-31  Kim F. Storm  <storm@cua.dk>
24180         * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
24181         (get_window_cursor_type): Don't use them.
24182         (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
24184 2002-08-30  Kenichi Handa  <handa@etl.go.jp>
24186         * xdisp.c (get_next_display_element): Fix previous change.
24188 2002-08-30  Andrew Choi  <akochoi@shaw.ca>
24190         * macterm.c (expose_overlaps): New function (merge code from xterm.c).
24191         (expose_window): Use it to fix the display of overlapping
24192         rows (merge code from xterm.c).
24194         * macfns.c (Qbox): Add extern declaration.
24196 2002-08-30  Juanma Barranquero  <lektu@terra.es>
24198         * w32fns.c (Qbox): Make extern.
24199         (syms_of_w32fns): Remove initialization of Qbox.
24201 2002-08-30  Rune Kleveland  <runekl@viewpoint.no>  (tiny change)
24203         * xfns.c (Fx_open_connection): Fix error message.
24205 2002-08-30  Kim F. Storm  <storm@cua.dk>
24207         The following changes consolidates the handling of the cursor
24208         type in xdisp.c, moving duplicate code and functionality from
24209         xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
24211         * frame.h (enum text_cursor_kinds): Consolidated here.
24212         Added DEFAULT_CURSOR value.
24213         (struct frame) <desired_cursor, cursor_width>
24214         <blink_off_cursor, blink_off_cursor_width>: New fields.
24215         Consolidated from output_x, output_w32 and output_mac structs.
24216         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
24217         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
24219         * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
24220         Variables consolidated here.
24221         (Valternate_cursor_type, Qalternate_cursor_type): New variables.
24222         (Vcursor_in_non_selected_windows): Renamed from
24223         cursor_in_non_selected_windows and changed to Lisp_Object.
24224         (syms_of_xdisp): Define and staticpro new and moved variables.
24225         (get_specified_cursor_type): Renamed from x_specified_cursor_type;
24226         consolidated here.  Recognize Qhollow setting.
24227         (set_frame_cursor_types): New function to set frame cursor types
24228         based on the frame parameters.
24229         (get_window_cursor_type): New function to calculate new cursor
24230         type and width for the specified window.  Based on duplicated
24231         code consolidated here.
24232         Enhancements: cursor-in-non-selected-windows may be a cursor type,
24233         check buffer-local alternate-cursor-type and blink-cursor-alist
24234         before using built-in blink off methods.
24236         * dispextern.h (cursor_in_non_selected_windows): Extern removed.
24238         * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
24239         (get_specified_cursor_type, get_window_cursor_type)
24240         (set_frame_cursor_types): Added prototypes.
24242         * macfns.c (x_specified_cursor_type): Removed.
24243         (x_set_cursor_type): Use set_frame_cursor_types.
24244         (Qbar, Qbox): Removed.
24245         (syms_of_macfns): Don't intern or staticpro them.
24247         * macterm.c (x_specified_cursor_type): Remove prototype.
24248         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
24249         (x_display_and_set_cursor): Use get_window_cursor_type.
24250         Remove unused local variables cursor_non_selected, active_cursor.
24251         Redraw cursor if hbar cursor width changes.
24252         (make_mac_frame): Set FRAME_DESIRED_CURSOR.
24254         * macterm.h (enum text_cursor_kinds): Removed.
24255         (struct output_mac) <current_cursor, desired_cursor, cursor_width>
24256         <blink_off_cursor, blink_off_cursor_width>: Members removed.
24257         (FRAME_DESIRED_CURSOR): Macro removed.
24259         * w32fns.c (Vblink_cursor_alist): Removed.
24260         (Qbar, Qhbar, Qbox, Qhollow): Removed.
24261         (syms_of_w32fns): Don't intern, staticpro, or define them.
24262         (x_specified_cursor_type): Removed.
24263         (x_set_cursor_type): Use set_frame_cursor_types.
24265         * w32term.c (x_specified_cursor_type): Remove prototype.
24266         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
24267         (x_display_and_set_cursor): Use get_window_cursor_type.
24268         Remove unused local variables cursor_off_state.
24269         Redraw cursor if hbar cursor width changes.
24270         Changed all occurrences of w32_highlight_frame to x_highlight_frame.
24272         * w32term.h (enum text_cursor_kinds): Removed.
24273         (struct output_w32) <current_cursor, desired_cursor, cursor_width>
24274         <blink_off_cursor, blink_off_cursor_width>: Members removed.
24275         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
24276         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
24277         (struct w32_display_info) <x_highlight_frame>: Renamed member from
24278         w32_highlight_frame.
24280         * xfns.c (Vblink_cursor_alist): Removed.
24281         (Qbar, Qhbar, Qbox, Qhollow): Removed.
24282         (syms_of_xfns): Don't intern, staticpro, or define them.
24283         (x_specified_cursor_type): Removed.
24284         (x_set_cursor_type): Use set_frame_cursor_types.
24286         * xterm.c (x_specified_cursor_type): Remove prototype.
24287         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
24288         (x_display_and_set_cursor): Use get_window_cursor_type.
24289         Remove unused local variables cursor_off_state.
24290         Redraw cursor if hbar cursor width changes.
24292         * xterm.h (enum text_cursor_kinds): Removed.
24293         (struct output_x) <current_cursor, desired_cursor, cursor_width>
24294         <blink_off_cursor, blink_off_cursor_width>: Members removed.
24295         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
24296         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
24297         (x_specified_cursor_type): Remove prototype.
24299 2002-08-28  Richard M. Stallman  <rms@gnu.org>
24301         * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
24302         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
24303         (Vblink_cursor_alist): New variable.
24304         (syms_of_w32fns): Initialize and defvar it.
24305         (x_specified_cursor_type): Recognize Qbox for filled box.
24306         Exceptions are hollow boxes.
24307         (Qbox, Qhollow): New variables.
24308         (syms_of_w32fns): Initialize and staticpro them.
24310         * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
24311         New macros.
24312         (struct w32_output): New fields blink_off_cursor,
24313         blink_off_cursor_width.
24314         (FRAME_CURSOR_WIDTH): New macro.
24316         * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
24317         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
24319         * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
24320         for bar cursor.
24322         * w32term.c (expose_overlaps): New function.
24323         (expose_window): Use it to fix the display of overlapping rows.
24325 2002-08-28  Simon Josefsson  <jas@extundo.com>
24327         * xfns.c (Fx_open_connection): Improve help when X connection
24328         fails, xhost is insecure and xauth is better.
24330 2002-08-28  Juanma Barranquero  <lektu@terra.es>
24332         * makefile.w32-in: Add missing dependencies on w32term.h and
24333         composite.h.
24335         * emacs.c (USAGE1): Add missing newline.
24337 2002-08-27  Andrew Choi  <akochoi@shaw.ca>
24339         * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
24341 2002-08-27  Richard M. Stallman  <rms@gnu.org>
24343         * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
24344         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
24345         (Vblink_cursor_alist): New variable.
24346         (syms_of_xfns): Initialize and defvar it.
24347         (x_specified_cursor_type): Recognize Qbox for filled box.
24348         Exceptions are hollow boxes.
24349         (Qbox, Qhollow): New variables.
24350         (syms_of_xfns): Initialize and staticpro them.
24352         * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
24353         New macros.
24354         (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
24356         * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
24357         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
24359         * emacs.c (main): Handle --script.
24360         (USAGE1): Mention --script.
24361         (standard_args): Define sort order for --script.
24363 2002-08-27  Gerd Moellmann  <gerd.moellmann@t-online.de>
24365         * xdisp.c (redisplay_updating_p): Variable removed.
24366         (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
24367         New variables.
24368         (init_iterator): Don't free realized faces if
24369         inhibit_free_realized_faces is set.
24370         (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
24371         (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
24372         initialize Qinhibit_free_realized_faces.
24374         * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
24375         when iterator is adding glyphs to a glyph matrix.
24377 2002-08-27  Kenichi Handa  <handa@etl.go.jp>
24379         * xdisp.c (get_next_display_element): In unibyte case, don't use
24380         octal form for such eight-bit characters that can be converted to
24381         multibyte char.
24383 2002-08-26  Kim F. Storm  <storm@cua.dk>
24385         * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
24386         foreground and background colors.  From Joe Buehler.
24388 2002-08-26  Miles Bader  <miles@gnu.org>
24390         * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
24392 2002-08-25  Andrew Choi  <akochoi@shaw.ca>
24394         * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
24395         defined instead of MAC_OSX.
24397         * s/darwin.h (select): Define select to sys_select only if
24398         HAVE_CARBON is defined.
24399         (HAVE_WORKING_VFORK): #undef it.  Define vfork to fork.
24400         (DONT_REOPEN_PTY): #def it.
24402         * macterm.c (XTread_socket): Remove code to call
24403         SendEventToEventTarget for keys with command modifiers when
24404         mac_command_key_is_meta is nil.
24406 2002-08-24  Andreas Schwab  <schwab@suse.de>
24408         * eval.c (Fdefvar): Fix last change.
24410 2002-08-23  Richard M. Stallman  <rms@gnu.org>
24412         * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
24413         Record variables in load history as (defvar . VAR).
24414         (Fdefvar): Don't record in load history if no initial value.
24415         (Qdefvar): New variable.
24416         (syms_of_eval): Init and staticpro it.
24418         * lread.c (syms_of_lread): Doc fix.
24419         (build_load_history): Use Fmember to see if a definition
24420         is already in the Vload_history element.
24422         * process.c (Fstart_process): Remove /: from program name.
24424         * emacs.c (decode_env_path): Don't add /: if file name handler
24425         has a `safe-magic' property.
24427         * callproc.c (Fcall_process): Remove /: from program name.
24429 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
24431         * regex.c (PATFETCH): Remove the translating fetch.
24432         (PATFETCH_RAW): Rename to PATFETCH.
24433         (set_image_of_range): New fun.
24434         (SET_RANGE_TABLE_WORK_AREA): Use it.
24435         (regex_compile): Don't translate the pattern chars so eagerly.
24436         Only do it when inserting an `exactn' bytecode or when handling
24437         a char-range.
24438         (mutually_exclusive_p): Avoid empty statement.
24440 2002-08-22  Kim F. Storm  <storm@cua.dk>
24442         * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
24443         end up on a partially visible line; this reverts a specific part
24444         of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
24445         display error which has been reported several times now.
24446         However it introduces the problem that changes was supposed to fix.
24447         See my comments in the source if you want to debug this further.
24449 2002-08-20  Kenichi Handa  <handa@etl.go.jp>
24451         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
24453 2002-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
24455         * msdos.c (croak): Add `void' to definition.
24457         * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
24458         Don't define them, they are defined in msdos.c.
24460         * mem-limits.h [MSDOS]: Declare etext.
24462         * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
24463         `const' since CORRECT_DIR_SEPS modifies its target.
24465 2002-08-19  Kim F. Storm  <storm@cua.dk>
24467         * keyboard.c (Fclear_this_command_keys): Add optional arg
24468         KEEP-RECORD to avoid clearing lossage when we just want to clear
24469         the current key sequence (kmacro needs this).
24471 2002-08-19  Kenichi Handa  <handa@localhost>
24473         * composite.c (run_composition_function): Call FUNC if it is fboundp.
24475         * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
24476         cons, return Qnil.
24478 2002-08-17  Richard M. Stallman  <rms@gnu.org>
24480         * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
24482         * sysdep.c [!VMS]: Include sys/files.h.
24484         * editfns.c (save_restriction_restore): Defend from unchained marker.
24486         * buffer.c (overlays_at): Handle extending vec uniformly.
24487         (overlays_in): Handle extending vec from length 0 as in overlays_at.
24489 2002-08-15  Andrew Choi  <akochoi@shaw.ca>
24491         * mac.c (init_mac_osx_environment): New function.
24493         * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
24495 2002-08-14  Kim F. Storm  <storm@cua.dk>
24497         * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
24498         executing macro before appending to it (when used from Lisp).
24499         (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
24500         which is called prior to each iteration of macro (for kmacro.el).
24501         (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
24503         * lisp.h (Fexecute_kbd_macro): Update prototype.
24505         * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
24507 2002-08-14  Kenichi Handa  <handa@etl.go.jp>
24509         * xselect.c (QUTF8_STRING): New variable.
24510         (symbol_to_x_atom): Pay attention to QUTF8_STRING.
24511         (x_atom_to_symbol): Likewise.
24512         (x_get_local_selection): New argument local_request.  If it is
24513         nonzero, call handler_fn with the second arg nil.
24514         (x_handle_selection_request): Call x_get_local_selection with
24515         local_request 0.
24516         (lisp_data_to_selection_data): Don't encode the string here.
24517         (Fx_get_selection_internal): Call x_get_local_selection with
24518         local_request 1.
24519         (syms_of_xselect): Intern and staticpro QUTF8_STRING.
24521         * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
24523         * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
24525 2002-08-13  Richard M. Stallman  <rms@gnu.org>
24527         * minibuf.c (Fminibufferp): New function.
24528         (syms_of_minibuf): Defsubr it.
24529         (Fminibuffer_prompt_end): Handle non-minibuffers specially.
24531 2002-08-13  Gerd Moellmann  <gerd.moellmann@t-online.de>
24533         * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
24535 2002-08-12  Richard M. Stallman  <rms@gnu.org>
24537         * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
24538         [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
24539         (WSTOPSIG, WTERMSIG): Define each one independently if not defined
24540         already.
24542         * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
24544 2002-08-11  Andrew Choi  <akochoi@shaw.ca>
24546         * macterm.c (XTmouse_position): Check wp with is_emacs_window.
24547         (Vmac_pass_command_to_system): New variable.
24548         (Vmac_pass_control_to_system): New variable.
24549         (do_mouse_moved): Check wp with is_emacs_window.
24550         (XTread_socket): Check window_ptr with is_emacs_window.
24551         Call FrontNonFloatingWindow instead of FrontWindow.  Send keydown
24552         events back to Mac Toolbox for processing, depending on values of
24553         Vmac_pass_command_to_system and Vmac_pass_control_to_system.
24554         (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
24555         Vmac_pass_control_to_system.
24557 2002-08-10  Kenichi Handa  <handa@etl.go.jp>
24559         * coding.c (unencodable_char_position): New function.
24560         (Funencodable_char_position): New function.
24561         (syms_of_coding): Defsubr Funencodable_char_position.
24563 2002-08-10  Andrew Choi  <akochoi@shaw.ca>
24565         * mac.c (sys_select) [MAC_OSX]: New function.
24567         * macterm.c (MakeMeTheFrontProcess): New function.
24568         (mac_initialize): Call MakeMeTheFrontProcess.
24570         * s/darwin.h: Define select to sys_select.
24572 2002-08-09  Richard M. Stallman  <rms@gnu.org>
24574         * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
24576 2002-08-09  Gerd Moellmann  <gerd.moellmann@t-online.de>
24578         * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
24579         end of the buffer.
24581 2002-08-08  Ken Raeburn  <raeburn@gnu.org>
24583         * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
24585         * puresize.h (BASE_PURESIZE): Increase to 910000.
24587 2002-08-08  Kenichi Handa  <handa@etl.go.jp>
24589         * coding.c (Ffind_operation_coding_system): For write-region, if
24590         VISIT is a filename, make it the target.
24592 2002-08-07  Richard M. Stallman  <rms@gnu.org>
24594         * alloc.c (mark_object): Detect long lists for debugging.
24595         (mark_object_loop_halt): New variable.
24597         * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
24599         * data.c (Fmake_variable_frame_local): Doc fix.
24601 2002-08-01  David Ponce  <david@dponce.com>
24603         * w32menu.c (local_heap, local_alloc, local_free): New macros.
24604         (malloc_widget_value, free_widget_value)
24605         (w32_free_submenu_strings): Use them.
24607         (push_submenu_start, push_submenu_end, push_left_right_boundary)
24608         (push_menu_pane, push_menu_item, single_keymap_panes)
24609         (single_menu_item, Fx_popup_menu, menubar_selection_callback)
24610         (single_submenu, set_frame_menubar)
24611         (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
24613         (Fx_popup_menu): Don't show pop up menu until preceding one is
24614         actually cleaned up.  Moved UNGCPRO outside #ifdef HAVE_MENUS block.
24616         * w32menu.c: Changes adapted from xmenu.c
24617         (set_frame_menubar): First parse all submenus,
24618         then make widget_value trees from them.
24619         Don't allocate any widget_value objects
24620         until we are done with the parsing.
24621         (parse_single_submenu): New function.
24622         (digest_single_submenu): New function.
24623         (single_submenu): Function deleted, replaced by those two.
24625 2002-08-04  Andrew Choi  <akochoi@shaw.ca>
24627         * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
24628         returns a valid window pointer before proceeding for keyDown and
24629         autoKey events.
24631 2002-08-03  Andrew Choi  <akochoi@shaw.ca>
24633         * macterm.c (USE_CARBON_EVENTS): New macro.
24634         (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
24635         (x_iconify_frame): Call CollapseWindow.
24636         (Vmac_reverse_ctrl_meta): New variable.
24637         (Vmac_wheel_button_is_mouse_2): New variable.
24638         (init_mac_drag_n_drop): New function.
24639         (mac_do_receive_drag): New function.
24640         (mac_handle_service_event): New function.
24641         (init_service_handler): New function.
24642         (mac_to_emacs_modifiers): New function.
24643         (mac_event_to_emacs_modifiers): New function.
24644         (mac_get_mouse_btn): New function.
24645         (mac_convert_event_ref): New function.
24646         (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
24647         SendEventToEventTarget, mac_event_to_emacs_modifiers, and
24648         mac_get_mouse_btn.
24649         (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
24651         * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
24652         lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
24653         (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
24654         TOOL_BAR_EVENT for MAC_OS as well.
24655         (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
24656         as for WINDOWS_NT.
24657         (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
24659         * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
24661 2002-08-03  Gerd Moellmann  <gerd.moellmann@t-online.de>
24663         * xdisp.c (forward_to_next_line_start): Fix a condition that
24664         lead to a newline being skipped.
24666 2002-08-02  Andrew Choi  <akochoi@shaw.ca>
24668         * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
24670 2002-08-01  Richard M. Stallman  <rms@gnu.org>
24672         * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
24674 2002-07-31  Andrew Choi  <akochoi@shaw.ca>
24676         * macfns.c: #undef init_process before #define-ing it.
24678         * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
24679         HAVE_CARBON is defined.
24681 2002-07-31  Richard M. Stallman  <rms@gnu.org>
24683         * xmenu.c (set_frame_menubar): First parse all submenus,
24684         then make widget_value trees from them.
24685         Don't allocate any widget_value objects
24686         until we are done with the parsing.
24687         (parse_single_submenu): New function.
24688         (digest_single_submenu): New function.
24689         (single_submenu): Function deleted, replaced by those two.
24691 2002-07-30  Juanma Barranquero  <lektu@terra.es>
24693         * w32proc.c (syms_of_ntproc): Fix docstring of
24694         `w32-get-true-file-attributes'.
24696 2002-07-28  Richard M. Stallman  <rms@gnu.org>
24698         * s/hpux8.h (HPUX8): Define this before including hpux.h.
24699         (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
24701         * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
24703         * keyboard.c (make_lispy_event):
24704         Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
24705         Explicitly clear up_modifier in event->modifiers.
24707 2002-07-27  Richard M. Stallman  <rms@gnu.org>
24709         * xterm.h (FRAME_CURSOR_WIDTH): New macro.
24711         * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
24712         for bar cursor.
24714 2002-07-26  Kenichi Handa  <handa@etl.go.jp>
24716         * coding.c (detect_coding_iso2022): While checking a byte sequence
24717         for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
24718         it in the normal loop.
24720 2002-07-24  Gerd Moellmann  <gerd.moellmann@t-online.de>
24722         * xterm.c (expose_overlaps): New function.
24723         (expose_window): Use it to fix the display of overlapping rows.
24725         * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
24727 2002-07-23  Ken Raeburn  <raeburn@gnu.org>
24729         * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
24730         since it only depends on XUINT.
24732         * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
24733         EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
24734         PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
24735         Macros deleted.
24737         * mem-limits.h (start_of_data): If DATA_START is defined, prefer
24738         its value over other approaches.
24739         * sysdep.c (start_of_data): Don't define the function if a macro
24740         form has been defined.
24742 2002-07-23  Gerd Moellmann  <gerd.moellmann@t-online.de>
24744         * xdisp.c (redisplay_updating_p): New variable.
24745         (init_iterator): Don't free realized faces when
24746         redisplay_updating_p is set.
24747         (redisplay_internal): Set redisplay_updating_p while updating
24748         the display.
24750 2002-07-23  Richard M. Stallman  <rms@gnu.org>
24752         * editfns.c (Fmessage): Treat "" like nil.
24754 2002-07-23  Kenichi Handa  <handa@etl.go.jp>
24756         * xdisp.c (face_before_or_after_it_pos):
24757         Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
24759 2002-07-22  Juanma Barranquero  <lektu@terra.es>
24761         * callproc.c (init_callproc) [DOS_NT]:
24762         Initialize Vshared_game_score_directory to nil.
24763         (syms_of_callproc) [DOS_NT]: Likewise.
24765 2002-07-22  Gerd Moellmann  <gerd.moellmann@t-online.de>
24767         * xdisp.c (display_line): Replace an abort with xassert.
24769 2002-07-21  Richard M. Stallman  <rms@gnu.org>
24771         * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
24772         and END_UNCHANGED when setting buffer_unchanged_p.
24773         Use current_matrix_up_to_date_p to decide whether to use
24774         try_cursor_movement.
24776         * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
24778         * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
24780         * callproc.c (init_callproc): Set up Vshared_game_score_directory.
24781         Set to nil if dir does not exist.
24782         (syms_of_callproc): Init unconditionally and simply.
24784         * buffer.c (Fbuffer_list): Doc fix.
24786 2002-07-21  Ken Raeburn  <raeburn@gnu.org>
24788         * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
24790         * buffer.c (mmap_realloc): When shrinking, make sure number of
24791         pages to unmap is rounded towards zero.
24793         * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
24794         (XSETINT): Deleted.
24796         * m/att3b.h (XINT): Don't define.
24797         (VALBITS, VALMASK, XTYPE): Deleted.
24798         (DATA_SEG_BITS): Define.
24799         * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
24800         ARRAY_MARK_FLAG): Deleted.
24801         (DATA_SEG_BITS): Define.
24802         * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
24803         (DATA_SEG_BITS): Define.
24805 2002-07-20  Richard M. Stallman  <rms@gnu.org>
24807         * print.c (print_error_message): New args CONTEXT and CALLER.
24808         Calls changed.
24810         * lisp.h (print_error_message): Declare new args.
24812         * keyboard.c (cmd_error_internal): Pass Vsignaling_function
24813         and CONTEXT to print_error_message, don't print them here.
24814         For a Quit, don't use Vsignaling_function.
24815         Call message_log_maybe_newline.
24817         * Makefile.in (xsmfns.o): Don't depend on lisp.h.
24819 2002-07-20  Kim F. Storm  <storm@cua.dk>
24821         * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
24823 2002-07-19  Ken Raeburn  <raeburn@gnu.org>
24825         * bytecode.c (struct byte_stack): Pointers into byte string now
24826         point to const.
24827         * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
24828         const.
24829         * charset.h (BCOPY_SHORT): Source pointer now points to const.
24830         * coding.c (encode_eol, detect_coding, detect_eol):
24831         (decode_coding, encode_coding, detect_coding_system):
24832         Source strings now treated as const.
24833         (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
24834         modify Lisp string contents.
24835         * coding.h (decode_coding, encode_coding, detect_coding,
24836         detect_eol): Declarations updated.
24837         * composite.c (compose_chars_in_text): Treat Lisp string contents
24838         as const.
24839         * dispnew.c (safe_bcopy): Source pointer now points to const.
24840         * lisp.h (STRING_COPYIN): New macro.
24841         (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
24842         (internal_with_output_to_temp_buffer): Declarations updated.
24843         * print.c (temp_output_buffer_setup):
24844         (internal_with_output_to_temp_buffer): Buffer name argument is now
24845         pointer to const.
24846         * sound.c (struct sound_device): Function pointer field "write"
24847         buffer argument now points to const.
24848         (vox_write): Buffer argument points to const.
24849         * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
24850         contents as const.
24851         * sysdep.c (emacs_write): Buffer pointer now const.
24852         * term.c (encode_terminal_code): Buffer pointer now const.
24853         * xfaces.c (may_use_scalable_font_p): Argument now points to const.
24854         (x_face_list_fonts, x_update_menu_appearance):
24855         (hash_string_case_insensitive): Treat Lisp string contents as const.
24857 2002-07-19  Juanma Barranquero  <lektu@terra.es>
24859         * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
24861         * fileio.c (syms_of_fileio): Likewise.
24862         (Ffile_name_as_directory): Fix argument name in docstring.
24863         (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
24865 2002-07-18  Richard M. Stallman  <rms@gnu.org>
24867         * data.c (Fdefalias): Doc fix.
24869 2002-07-17  Dave Love  <fx@gnu.org>
24871         * intervals.h (text_property_stickiness): Use P_.
24873         * ccl.c: Remove `emacs' conditionals.
24874         (ccl_backtrace_table): Fix size spec.
24875         (ccl_driver): Fix type errors.
24877 2002-07-16  Ken Raeburn  <raeburn@gnu.org>
24879         * alloc.c (xstrdup, make_string, make_unibyte_string)
24880         (make_multibyte_string, build_string): String pointer args now
24881         point to const.
24882         * charset.c (find_charset_in_text, c_string_width):
24883         (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
24884         * fileio.c (report_file_error):
24885         * insdel.c (copy_text, count_size_as_multibyte, insert_1):
24886         (count_combining_before, count_combining_after, insert_1_both):
24887         (insert, insert_and_inherit, insert_string):
24888         (insert_before_markers, insert_before_markers_and_inherit):
24889         * lread.c (intern, oblookup, hash_string):
24890         * minibuf.c (temp_echo_area_glyphs):
24891         * search.c (fast_c_string_match_ignore_case):
24892         * sysdep.c (emacs_open, set_file_times):
24893         * xfaces.c (xstricmp):
24894         * xdisp.c (store_frame_title, string_char_and_length):
24895         (message_dolog, message2, message2_nolog, set_message): Likewise.
24896         (set_message_1): Cast message string argument to const pointer.
24897         * editfns.c (general_insert_function): Insertion function now
24898         takes pointer to const for input data.
24899         * charset.h (find_charset_in_text, c_string_width):
24900         (parse_str_as_multibyte): Declarations updated.
24901         * dispextern.h (xstricmp): Declaration updated.
24902         * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
24903         (count_size_as_multibyte, count_combining_before):
24904         (count_combining_after, insert_1, insert_1_both, message_dolog):
24905         (insert, insert_and_inherit, insert_before_markers)
24906         (insert_before_markers_and_inherit, set_message, message2):
24907         (message2_dolog, build_string, make_string, make_unibyte_string):
24908         (make_multibyte_string, intern, oblookup, report_file_error):
24909         (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
24910         (emacs_open, xstrdup): Declarations updated.
24911         * systime.h (set_file_times): Declaration updated.
24913         * charset.c (find_charset_in_text, lisp_string_width): Use const
24914         for pointer to lisp string data.
24915         * charset.h (FETCH_STRING_CHAR_ADVANCE):
24916         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
24917         * coding.c (Ffind_coding_systems_region_interval):
24918         * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
24919         (Fmake_directory_internal, Fdelete_directory):
24920         (Ffile_name_absolute_p, Fwrite_region, double_dollars):
24921         * fontset.c (font_family_registry, fs_query_fontset):
24922         (list_fontsets):
24923         * frame.c (Fframe_parameter):
24924         * keyboard.c (cmd_error_internal):
24925         * keymap.c (Fdescribe_buffer_bindings):
24926         * lread.c (complete_filename_p, openp):
24927         * minibuf.c (Fminibuffer_complete_word):
24928         * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
24929         (face_before_or_after_it_pos, next_element_from_string):
24930         (get_overlay_arrow_glyph_row, display_mode_element):
24931         (decode_mode_spec_coding):
24932         * xterm.c (same_x_server): Likewise.
24934         * buffer.c (reset_buffer_local_variables): Delete "#if 0"
24935         settings of non-existent fields.
24937         * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
24938         copy a lisp value.
24940         * lread.c (Fintern_soft): Use string macros instead of
24941         Lisp_String fields.
24942         * keyboard.c (echo_char, parse_modifiers_uncached):
24943         (parse_solitary_modifier, Fexecute_extended_command): Likewise.
24944         * textprop.c (validate_interval_range, interval_of): Likewise.
24946         * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
24948         * charset.h (FETCH_STRING_CHAR_ADVANCE)
24949         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
24950         XSTRING()->size_byte.
24952         * lisp.h (SDATA, SREF): Produce rvalue.
24953         (SSET): New macro.
24954         * alloc.c (make_event_array): Use SSET for storing into a string.
24955         * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
24956         a string.
24957         * casefiddle.c (casify_object): Use SSET.
24958         * charset.h (FETCH_STRING_CHAR_ADVANCE)
24959         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
24960         address of string contents.
24961         * data.c (Faref): Use SDATA.
24962         (Faset): Use SDATA, SSET.
24963         * dired.c (directory_files_internal): Use SSET.
24964         * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
24965         (Fread_file_name): Use SREF, SSET.
24966         * fns.c (concat): Use SSET.
24967         (concat, Fdelete): Use SDATA.
24968         * insdel.c (insert_from_string_1): Use SDATA.
24969         * keyboard.c (Fevent_convert_list): Use SREF.
24970         * lread.c (Fload): Use SDATA, SSET.
24971         * macfns.c (validate_x_resource_name): Use SSET.
24972         * process.c (status_message): Use SSET.
24973         * search.c (wordify): Use SDATA.
24974         (Freplace_match): Use SREF.
24975         * w32fns.c (validate_x_resource_name): Use SSET.
24976         * xfns.c (validate_x_resource_name): Use SSET.
24977         * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
24979 2002-07-16  Richard M. Stallman  <rms@gnu.org>
24981         * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
24983         * xdisp.c (reconsider_clip_changes):
24984         Don't test prevent_redisplay_optimizations_p.
24985         (redisplay_internal): Test prevent_redisplay_optimizations_p
24986         along with clip_changed in some cases.
24987         (try_window_id): Likewise.
24988         (redisplay_window): New local var buffer_unchanged_p.
24990         * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
24992         * process.c (create_process): Test USG_SUBTTY_WORKS.
24993         (process_send_signal): Clean up handling of GID.
24994         Detect errors in ioctls meant to set GID.
24996         * window.c (temp_output_buffer_show):
24997         Don't set prevent_redisplay_optimizations_p.
24999 2002-07-15  Juanma Barranquero  <lektu@terra.es>
25001         * eval.c (Fdefvaralias): Add docstring argument.
25003 2002-07-15  Ken Raeburn  <raeburn@gnu.org>
25005         * lisp.h (STRING_INTERVALS): Produce rvalue.
25006         (STRING_SET_INTERVALS): New macro.
25007         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
25008         * fns.c (Fstring_as_multibyte): Likewise.
25009         * intervals.c (balance_possible_root_interval, delete_interval)
25010         (create_root_interval, copy_intervals_to_string): Likewise.
25011         * textprop.c (set_text_properties): Likewise.  Use NULL_INTERVAL
25012         instead of 0.
25014 2002-07-14  Ken Raeburn  <raeburn@gnu.org>
25016         * lisp.h (STRING_SET_CHARS): New macro.
25017         (SCHARS, SBYTES): Produce rvalues.
25018         * dired.c (directory_files_internal): Use STRING_SET_CHARS.
25019         * fns.c (concat): Likewise.
25020         * lread.c (read_vector): Likewise.
25022         * lisp.h (SMBP): Delete.  All uses changed to STRING_MULTIBYTE.
25023         (STRING_SET_UNIBYTE): New macro.
25024         (SET_STRING_BYTES): Delete.  Callers (all of which supplied a
25025         length of -1) changed to use STRING_SET_UNIBYTE.
25026         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
25027         casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
25028         composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
25029         dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
25030         fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
25031         keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
25032         minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
25033         sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
25034         w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
25035         w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
25036         xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
25037         STRING_BYTES or indirection changed to SCHARS, SBYTES,
25038         STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
25039         unchanged for now.
25041 2002-07-13  Kim F. Storm  <storm@cua.dk>
25043         * keyboard.c (command_loop_1): Invert check on Vmemory_full.
25045 2002-07-12  Richard M. Stallman  <rms@gnu.org>
25047         * fileio.c (Fwrite_region): Doc fix.
25049         * print.c (print_error_message): Don't handle Vsignaling_function here.
25051         * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
25052         (command_loop_1): Avoid certain actions after memory-full error.
25054         * eval.c (Fsignal): Don't call cancel_hourglass.
25055         For a memory-full error, don't call Vsignal_hook_function
25056         and don't set Vsignaling_function.
25058         * process.c (process_send_signal): Add abort call.
25060 2002-07-11  Markus Rost  <rost@math.ohio-state.edu>
25062         * keymap.c (Fkey_binding): Fix typo.
25064 2002-07-11  Richard M. Stallman  <rms@gnu.org>
25066         * alloc.c (Vmemory_full): New variable.
25067         (Vmemory_signal_data): Rename from memory_signal_data.
25068         Uses changed.
25069         (syms_of_alloc): Defvar them.
25070         (memory_full, buffer_memory_full): Set Vmemory_full.
25072         * lisp.h (Vmemory_full): Add declaration.
25073         (current_column, indented_beyond_p): Change declaration.
25075         * indent.c (last_known_column): Declare as double, not float.
25076         (current_column, current_column_1, string_display_width)
25077         (position_indentation): Return `double'.
25078         (indented_beyond_p): Arg `column' is `double'.  Callers changed.
25080         * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
25081         (back_to_previous_visible_line_start)
25082         (reseat_at_next_visible_line_start, next_element_from_buffer):
25083         Use `double', not `float', when calling indented_beyond_p.
25085         * s/hpux11.h (BROKEN_SA_RESTART): Define.
25087         * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
25089 2002-07-11  Juanma Barranquero  <lektu@terra.es>
25091         * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
25092         * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
25093         * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
25094         * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
25095         * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
25096         * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
25098 2002-07-10  Juanma Barranquero  <lektu@terra.es>
25100         * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
25101         All callers changed.
25103 2002-07-09  Stefan Monnier  <monnier@cs.yale.edu>
25105         * data.c (Fdefalias): Add an optional `docstring' argument.
25106         (set_internal, Fsetq_default): Use XCAR/XCDR.
25108         * composite.c (HASH_VALUE, HASH_KEY):
25109         * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
25111 2002-07-09  Kenichi Handa  <handa@etl.go.jp>
25113         * callproc.c (Fcall_process): Fix previous change.
25115 2002-07-07  Stefan Monnier  <monnier@cs.yale.edu>
25117         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
25118         Add support for hash-tables.
25119         (Ftry_completion): Return t even if the string appears multiple times.
25121         * fns.c (Fnconc): Use XCDR.
25122         (Fprovide): Use CONSP and XCDR.
25123         (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
25124         (HASH_TABLE_SIZE): Delete: moved to lisp.h.
25125         (Fmake_hash_table): Accept `:size nil'.
25126         (Fmakehash): Delete: moved to subr.el.
25127         (syms_of_fns): Don't defsubr makehash.
25129         * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
25130         (HASH_TABLE_SIZE): Move from fns.c.
25132 2002-07-07  Richard M. Stallman  <rms@gnu.org>
25134         * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
25135         Instead just return 0 when there is something to be done.
25136         (try_scrolling): If make_cursor_line_fully_visible returns 0,
25137         retry scrolling as if cursor were off the bottom.
25138         (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
25139         return CURSOR_MOVEMENT_MUST_SCROLL.
25140         (redisplay_window): If make_cursor_line_fully_visible returns 0,
25141         go to try_to_scroll.
25143         * buffer.c (Fbuffer_local_value): Store current value into its binding
25144         so we get the up-to-date value for the binding that is loaded.
25146         * eval.c (Fdefmacro): Doc fix.
25148 2002-07-05  Dave Love  <fx@gnu.org>
25150         * keyboard.c (read_key_sequence): Set initial_idleness_start_time
25151         correctly.
25153         * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
25154         (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
25155         (ccl_driver): Add cases for CCL_LookupIntConstTbl,
25156         CCL_LookupCharConstTbl.
25157         (syms_of_ccl): Defvar translation-hash-table-vector.
25159 2002-07-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25161         * xdisp.c: Remove unused variable `face'.
25163 2002-07-04  Juanma Barranquero  <lektu@terra.es>
25165         * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
25166         obsolescence information.
25168 2002-07-03  Andrew Choi  <akochoi@shaw.ca>
25170         * macterm.c (x_list_fonts): Fix comment.  Cache fonts matching
25171         pattern.  Search cache first.
25172         (init_font_name_table): Also add entry for jisx0201.1976-0 coding
25173         for Japanese font.
25174         (XLoadQueryFont): Use it.
25176 2002-07-02  Richard M. Stallman  <rms@gnu.org>
25178         * keymap.c (Fdefine_key): Doc fix.
25180         * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
25182 2002-07-02  Juanma Barranquero  <lektu@terra.es>
25184         * keymap.c (syms_of_keymap): Fix typo.
25186 2002-07-01  Andrew Choi  <akochoi@shaw.ca>
25188         * s/darwin.h: Define POSIX_SIGNALS.
25190         * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
25191         and FSRefMakePath to convert FSSpec returned with Apple Event to
25192         Posix pathname.
25193         (mac_initialize) [TARGET_API_MAC_CARBON]:
25194         Call init_required_apple_events and disable the `Quit' menu item
25195         provided automatically by the Carbon Toolbox.
25197 2002-07-01  Dave Love  <fx@gnu.org>
25199         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
25200         for K&R.
25202         * xterm.c: Fix prototype for K&R.
25204         * term.c (costs_set): Declare static, non-initialized for pcc.
25206 2002-07-01  Richard M. Stallman  <rms@gnu.org>
25208         * keyboard.c (timer_last_idleness_start_time): New variable.
25209         (timer_start_idle): Set that.
25210         (read_key_sequence): Use that to reset timer_idleness_start_time
25211         to previous value.
25213         * window.c (Frecenter): With arg, set optional_new_start.
25215         * xdisp.c (redisplay_internal): Make optional_new_start really work.
25217         * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
25218         buffer for completion.
25220 2002-06-29  Ken Raeburn  <raeburn@gnu.org>
25222         * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
25224 2002-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
25226         * keyboard.c (readable_filtered_events): New function that filters
25227         FOCUS_IN_EVENT depending on parameter.
25228         (readable_events): Calls readable_filtered_events, not filtering
25229         FOCUS_IN_EVENT.
25230         (get_filtered_input_pending): New function, filtering parameter passed
25231         to readable_filtered_events.
25232         (get_input_pending): Calls get_filtered_input_pending, not filtering
25233         FOCUS_IN_EVENT.
25234         (Finput_pending_p): Calls get_filtered_input_pending, DO filter
25235         FOCUS_IN_EVENT.
25237         * xterm.h (struct x_output): Add focus_state.
25239         * xterm.c (x_focus_changed): New function.
25240         (x_detect_focus_change): New function.
25241         (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
25242         EnterNotify and LeaveNotify to track X focus changes.
25244 2002-06-28  Andreas Schwab  <schwab@suse.de>
25246         * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
25248 2002-06-27  Kim F. Storm  <storm@cua.dk>
25250         * xdisp.c (mode_line_string_list, mode_line_string_face)
25251         (mode_line_string_face_prop): New variables.
25252         (store_mode_line_string): New function.
25253         (display_mode_element): Use store_mode_line_string to
25254         add mode-line string elements to mode_line_string_list
25255         when mode_line_string_list is non-nil.
25256         (Fformat_mode_line): Now returns propertized string by
25257         default.  New arg NO-PROPS to ignore properties.
25258         (decode_mode_spec): Only add two dashes for %- in propertized
25259         mode-line string.
25260         (syms_of_xdisp): Init and staticpro mode_line_string_list.
25262 2002-06-27  Stefan Monnier  <monnier@cs.yale.edu>
25264         * minibuf.c (minibuffer_completion_contents): Add return type.
25266 2002-06-27  Juanma Barranquero  <lektu@terra.es>
25268         * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
25270 2002-06-26  Juanma Barranquero  <lektu@terra.es>
25272         * fileio.c (read_file_name_cleanup): Add missing return.
25274 2002-06-26  Richard M. Stallman  <rms@gnu.org>
25276         * window.c (Frecenter): Don't set force_start flag.
25278         * minibuf.c (do_completion, Fminibuffer_complete_word)
25279         (Fminibuffer_completion_help): Complete just the text before point.
25280         (minibuffer_completion_contents): New function.
25282         * buffer.c (Fbury_buffer): Use frames_discard_buffer.
25284         * frame.c (frames_bury_buffer): Function deleted.
25286 2002-06-25  Miles Bader  <miles@gnu.org>
25288         * callint.c (Fcall_interactively): When checking to see if doprnt hit
25289         the end of callint_message, allow for a terminating '\0'.
25291 2002-06-24  Juanma Barranquero  <lektu@terra.es>
25293         * w32select.c: Include composite.h.
25295         * w16select.c: Likewise.
25297 2002-06-24  Kenichi Handa  <handa@etl.go.jp>
25299         * callproc.c (Fcall_process): If code detection is necessary,
25300         call detect_coding directly here.
25302         * coding.c (detect_eol): Preserve coding->cmp_data.
25304         * w16select.c (Fw16_get_clipboard_data):
25305         * w32fns.c (w32_to_x_font):
25306         * w32select.c (Fw32_get_clipboard_data):
25307         * xselect.c (selection_data_to_lisp_data):
25308         * xterm.c (XTread_socket): Disable composition handling.
25310 2002-06-24  Stefan Monnier  <monnier@cs.yale.edu>
25312         * print.c (temp_output_buffer_setup): Kill all local variables.
25314 2002-06-22  Stefan Monnier  <monnier@cs.yale.edu>
25316         * lread.c (Fread): Remove redundant and imprecise declaration.
25318         * xfns.c (check_x_display_info): Use check_x_frame.
25320         * .gdbinit (xprintsym): Use the new `xname' field.
25321         (xsymbol): Use it.
25323 2002-06-22  Jason Rumney  <jasonr@gnu.org>
25325         * w32fns.c (file_dialog_callback): New function.
25326         (Fx_file_dialog): Allow selecting directories as well as files.
25328 2002-06-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25330         * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
25331         OpenBSD.  Add support for mipseb-*-netbsd* machines.
25333 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
25335         * macterm.c (mac_scroll_area): Set foreground and backcolor to
25336         black and white before scrolling.  Restore frame background and
25337         foreground color after scrolling.
25338         (do_window_update): Call XClearWindow before calling expose_frame.
25339         (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
25340         FRAME_FOREGROUND_PIXEL of frame.
25342         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
25343         test Mac command key as <ALT> key.
25345 2002-06-17  Stefan Monnier  <monnier@cs.yale.edu>
25347         * window.c (Fset_window_configuration): Lisp_Object/int mixup.
25349         * keyboard.c (read_key_sequence): Be more careful with first_unbound.
25350         Lookup keys in function-key-map immediately so that key-translation-map
25351         can be applied earlier.
25352         Remove function_key_possible and key_translation_possible, replaced
25353         by checking `keytran_start < t'.
25355         * .gdbinit (xsymbol): Use the new `xname' field.
25357 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
25359         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
25360         test Mac command key as <ALT> key.
25362         * mac.c (do_applescript): Call initialize_applescript if necessary
25363         when first called.  Dispose of result_desc only when there is no error.
25364         (Fdo_applescript): Use %d format specifier instead of %ld.
25366 2002-06-16  Andrew Choi  <akochoi@shaw.ca>
25368         * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
25369         of FrontWindow for cases keyDown and autoKey.
25371         * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
25372         Vdefault_fontset to Monaco with mac-roman coding.
25374         * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
25375         init_process before and after inclusion of Carbon/Carbon.h, resp.
25377         * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
25378         cursor_gc.
25379         (add_font_name_table_entry): New function.
25380         (init_font_name_table): Use add_font_name_table_entry; add italic,
25381         bold, and bold-italic entries for truetype fonts.
25383         * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
25384         for Mac too.
25385         (try_font_list) [MAC_OS]: If no font matches given registry, try
25386         fonts with any registry matching face_family.
25387         (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
25389         * s/darwin.h: If autoconf detects the Ncurses library, define
25390         LIBS_TERMCAP to -lncurses to use it.
25392 2002-06-16  Eli Zaretskii  <eliz@is.elta.co.il>
25394         * strftime.c [__hpux]: Include sys/_mbstate_t.h.
25396 2002-06-15  Richard M. Stallman  <rms@gnu.org>
25398         * window.c (Fset_window_configuration): Explicitly preserve
25399         the point value that new_current_buffer had at the start.
25401 2002-06-14  Juanma Barranquero  <lektu@terra.es>
25403         * composite.c (Fcompose_region_internal, Fcompose_string_internal):
25404         Fix typos.
25406 2002-06-14  Kim F. Storm  <storm@cua.dk>
25408         * insdel.c (insert_1_both, insert_from_string_1)
25409         (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
25410         insert happened in the end_unchanged region.  Otherwise, the
25411         redisplay may be confused and duplicate the last line in the
25412         buffer [seen after save-buffer when require-final-newline==t].
25414 2002-06-13  Jason Rumney  <jasonr@gnu.org>
25416         * w32.c (init_environment): Remove EMACSLOCKDIR.
25417         (stat): Swap _S_IFDIR and _S_IFREG.
25419 2002-06-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25421         * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
25422         * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
25423         * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
25424         ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
25425         to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
25426         NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
25427         to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
25428         language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
25429         to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
25430         W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
25431         SELECTION_REQUEST_EVENT, selection_clear_event to
25432         SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
25433         delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
25434         ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
25435         menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
25436         DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
25437         no_event to NO_EVENT.
25439 2002-06-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25441         * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
25443 2002-06-12  Stefan Monnier  <monnier@cs.yale.edu>
25445         * intervals.c (textget): Don't forget to `return'.
25446         (lookup_char_property): Use XCAR/XCDR.
25448 2002-06-12  Juanma Barranquero  <lektu@terra.es>
25450         * xdisp.c (Fformat_mode_line): Fix typo.
25452 2002-06-12  Kim F. Storm  <storm@cua.dk>
25454         * xdisp.c (Fformat_mode_line): New function.
25455         (frame_title_buf, frame_title_buf_end, frame_title_ptr)
25456         (store_frame_title_char, store_frame_title): Use unconditionally.
25457         (init_xdisp): Defsubr Fformat_mode_line.
25458         Initialize frame_title_buf etc. unconditionally.
25460 2002-06-11  Stefan Monnier  <monnier@cs.yale.edu>
25462         * keyboard.c (read_key_sequence):
25463         Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
25464         things through those maps after downcasing events.
25465         Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
25466         applies after function-key-map.
25467         Make sure that keytran can be done in the middle in the sequence.
25468         Be careful not to throw away events past the one we downcase.
25470         * lread.c (read_integer): Remove unused var `tem'.
25471         (read1): Fix int/Lisp_Object mixup.
25473         * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
25475 2002-06-11  Richard M. Stallman  <rms@gnu.org>
25477         * keyboard.c (readable_events): Ignore any number of
25478         FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
25480 2002-06-09  Miles Bader  <miles@gnu.org>
25482         * xfaces.c (Ftty_supports_face_attributes_p): New function.
25483         (parse_rgb_list, tty_lookup_color): New functions.
25484         (tty_defined_color): Use `tty_lookup_color' to do all the work.
25485         (color_distance, Fcolor_distance): New functions.
25486         (TTY_SAME_COLOR_THRESHOLD): New macro.
25487         (Qtty_color_standard_values): New variable.
25488         (syms_of_xfaces): Initialize new vars & functions.
25490 2002-06-08  Colin Walters  <walters@verbum.org>
25492         * textprop.c (Vchar_property_alias_alist): New variable.
25493         (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
25495         * intervals.c (lookup_char_property): New function for looking up
25496         overlay and text properties, created from textget.
25497         (textget): Use it.
25499         * intervals.h (lookup_char_property): Declare.
25500         (Vchar_property_alias_alist): Declare.
25502         * buffer.c (Foverlay_get): Use lookup_char_property.
25504 2002-06-07  Sam Steingold  <sds@gnu.org>
25506         * xselect.c (lisp_data_to_selection_data): Fix last change:
25507         *data_ret is not a Lisp string, while unibyte_string is.
25509 2002-06-07  Eli Zaretskii  <eliz@is.elta.co.il>
25511         * xselect.c (lisp_data_to_selection_data): Fix last change:
25512         set size_ret.
25514 2002-06-07  Andreas Schwab  <schwab@suse.de>
25516         * m/amdx86-64.h: New file.
25518 2002-06-05  Eli Zaretskii  <eliz@is.elta.co.il>
25520         * fns.c (Fstring_make_unibyte): Doc fix.
25522         * xselect.c (lisp_data_to_selection_data): If the requested type
25523          is STRING, call string_make_unibyte to encode the selected text
25524          as a string.
25526         * window.c (Fset_window_hscroll): Doc fix.
25528 2002-06-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25530         * fileio.c (choose_write_coding_system):
25531         Call select-safe-coding-system properly.
25533 2002-06-03  Richard M. Stallman  <rms@gnu.org>
25535         * xdisp.c (message_with_string): Error if STRING is not a string.
25537         * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
25539         * fileio.c (choose_write_coding_system): Pass FILE arg to
25540         Vselect_safe_coding_system_function.
25542 2002-06-03  Ken Raeburn  <raeburn@gnu.org>
25544         * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
25546 2002-06-02  Thien-Thi Nguyen  <ttn@gnu.org>
25548         * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
25549         * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
25550         * keymap.c (describe_command): Likewise.
25551         * minibuf.c (read_minibuf): Likewise.
25553         * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
25554         Cast `current_column' return value to int.
25555         (back_to_previous_visible_line_start)
25556         (reseat_at_next_visible_line_start, next_element_from_buffer):
25557         Cast `indented_beyond_p' 3rd arg to float.
25559         * indent.c (last_known_column): Now a float.
25560         (current_column_1, position_indentation, current_column)
25561         (string_display_width): Return float.
25562         (Fcurrent_column): Cast `current_column' return value to int.
25563         (Fcurrent_indentation): Cast `position_indentation' retval to int.
25564         (indented_beyond_p): Third arg now a float.
25565         (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
25567         * lisp.h (current_column): Now returns float.
25568         (indented_beyond_p): 3rd arg now a float.
25570 2002-05-31  Eli Zaretskii  <eliz@is.elta.co.il>
25572         * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
25573         is Qcompound_text_with_extensions.
25575         * xselect.c (lisp_data_to_selection_data): Always set selection
25576         type as string if x_encode_text returns streingp non-NULL.
25578         * s/netbsd.h: Include /usr/pkg in the run time shared library path.
25580 2002-05-30  Richard M. Stallman  <rms@gnu.org>
25582         * window.c (Fset_window_configuration): Correct the handling
25583         of point in current buffer, to work with multiple windows.
25585 2002-05-29  Colin Walters  <walters@verbum.org>
25587         * lread.c (Fread_from_string): Don't depend on order of evaluation
25588         for C function parameters.
25590 2002-05-28  Richard M. Stallman  <rms@gnu.org>
25592         * xterm.c (x_display_and_set_cursor): Change the cursor in the same
25593         way for blinked-off state and for a nonselected window.
25595         * window.c (window_scroll_pixel_based): Don't call Fbolp;
25596         instead, see if the new start pos is at beginning of line.
25598         * fileio.c (Fwrite_region): If START is a string, don't
25599         make any annotations.
25601         * eval.c (syms_of_eval): Doc fix.
25603 2002-05-28  Colin Walters  <walters@debian.org>
25605         * emacs.c (USAGE1): Add --no-splash.
25606         (standard_args): Ditto.
25608 2002-05-28  Colin Walters  <walters@gnu.org>
25610         * lread.c (readchar_count): New variable.
25611         (readchar): Increment it.
25612         (unreadchar): Decrement it.
25613         (read_multibyte): Decrement it.
25614         (Vread_with_symbol_positions): New variable.
25615         (Vread_symbol_positions_list): New variable.
25616         (read_internal_start): New function, created from Fread and
25617         Fread_from_string.  Handle Vread_symbol_positions_list and
25618         Vread_with_symbol_positions.
25619         (readevalloop, Fread, Fread_from_string): Use it.
25620         (read1): Use readchar_count to add symbol positions to
25621         Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
25622         (syms_of_lread): DEFVAR_LISP and initialize them.
25624         * lread.c (read0, read1, read_list, read_vector, read_multibyte)
25625         (substitute_object_recurse, substitute_object_in_subtree)
25626         (substitute_in_interval): Prototype.
25627         (read_multibyte): Return c if it's less than zero.
25629 2002-05-28  Kim F. Storm  <storm@cua.dk>
25631         * fileio.c (Fread_file_name_internal): Added brute-force
25632         speed up for using predicate file-directory-p.
25634 2002-05-28  Kim F. Storm  <storm@cua.dk>
25636         * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
25637         New variables.
25638         (syms_of_fileio): DEFVAR_LISP them.
25639         (read_file_name_cleanup): New unwind function.
25640         (Fread_file_name_internal): Only return completions satifying
25641         Vread_file_name_predicate.  Temporarily unwind protect and rebind
25642         default-directory while checking completions against the predicate.
25643         (Fread_file_name): Added PREDICATE argument.  Specbind it to
25644         Vread_file_name_predicate during completion.
25645         Call Vread_file_name_function to read the file name if non-nil.
25647         * lisp.h (Fread_file_name): Now has 6 args.
25649         * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
25650         predicate for Fread_file_name when reading directory name.
25651         Supply Qnil for predicate in other calls to Fread_file_name.
25653 2002-05-26  Miles Bader  <miles@gnu.org>
25655         * term.c (tty_capable_p): New function.
25656         * dispextern.h (tty_capable_p): New function declaration.
25657         (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
25658         (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
25660 2002-05-23  Stefan Monnier  <monnier@cs.yale.edu>
25662         * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
25663         (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
25664         (Vwrite_region_annotate_functions): Docstring fix.
25666 2002-05-23  Kim F. Storm  <storm@cua.dk>
25668         * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
25669         phys_cursor's hpos is overwritten.  This is still not completely
25670         correct, as it doesn't really make sense to use hpos at all to
25671         get the cursor glyph (as that is relative to the width of the
25672         characters on the line, which may have changed during the update).
25674 2002-05-22  Jason Rumney  <jasonr@gnu.org>
25676         * w32fns.c (enumfont_t): Remove tail, make pattern a normal
25677         Lisp_Object.
25678         (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
25679         Use modified enumfont_t struct.
25681         * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
25683         * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
25684         Handle the `hbar' cursor type.
25685         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
25687         * w32fns.c (Qhbar): New variable.
25688         (x_specified_cursor_type): Use it.
25690 2002-05-21  Ken Raeburn  <raeburn@gnu.org>
25692         * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
25693         now, when the address is needed.
25695 2002-05-21  Colin Walters  <walters@gnu.org>
25697         * Makefile.in (shortlisp): Add font-core.el.
25699 2002-05-20  Richard M. Stallman  <rms@gnu.org>
25701         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
25703         * keyboard.c (read_char_minibuf_menu_prompt): Don't list
25704         equivalent key bindings here.
25706 2002-05-20  Ken Raeburn  <raeburn@gnu.org>
25708         Change symbol structure to contain a lisp object for the symbol
25709         name:
25710         * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
25711         object field named "xname".
25712         (SYMBOL_NAME): New macro.
25713         * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
25714         name field.
25715         * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
25716         (mark_object, gc_sweep): Use symbol xname field and XSTRING
25717         instead of name field.
25718         * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
25719         SYMBOL_NAME instead of XSYMBOL and name field.
25720         * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
25721         instead of XSYMBOL and name field.
25722         * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
25723         and SYMBOL_NAME instead of XSYMBOL and name field.
25724         * coding.c (Fread_coding_system, code_convert_region1)
25725         (code_convert_string1, code_convert_string_norecord)
25726         (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
25727         XSYMBOL and name field.
25728         * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
25729         (Fmake_variable_buffer_local, Fmake_local_variable)
25730         (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
25731         of XSYMBOL and name field.
25732         * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
25733         XSYMBOL and name field.
25734         * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
25735         instead of XSYMBOL and name field.
25736         * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
25737         XSYMBOL and name field.
25738         * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
25739         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
25740         * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
25741         instead of XSYMBOL and name field.
25742         * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
25743         (parse_modifiers, apply_modifiers, Fevent_convert_list)
25744         (parse_solitary_modifier, Fexecute_extended_command):
25745         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
25746         * keymap.c (silly_event_symbol_error, Fsingle_key_description)
25747         (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
25748         of XSYMBOL and name field.
25749         (describe_command, describe_translation): Use SYMBOL_NAME and
25750         assignment instead of XSYMBOL and name field and XSETSTRING.
25751         * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
25752         instead of XSYMBOL and name field.
25753         (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
25754         name field and XSETSTRING.
25755         * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
25756         of XSYMBOL and name field.
25757         * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
25758         assignment instead of XSYMBOL and name field and XSETSTRING.
25759         * print.c (print_error_message, print_object): Use SYMBOL_NAME and
25760         XSTRING instead of XSYMBOL and name field.
25761         * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
25762         and XSTRING instead of XSYMBOL and name field.
25763         * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
25764         and XSTRING instead of XSYMBOL and name field.
25765         * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
25766         XSTRING instead of XSYMBOL and name field.
25767         * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
25768         of XSYMBOL and name field.
25769         * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
25770         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
25772 2002-05-19  Ken Raeburn  <raeburn@gnu.org>
25774         * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
25775         and XCDR real rvalues in most configurations.
25777         * buffer.c (fix_overlays_in_range, fix_overlays_before):
25778         Don't take the address of the cdr part of a cons cell; instead, track
25779         the parent cell and call XSETCDR, or set the variable for the head
25780         of the list if we haven't started down the list yet.
25782 2002-05-19  Richard M. Stallman  <rms@gnu.org>
25784         * doc.c (reread_doc_file): Don't ask for confirmation.
25786 2002-05-18  Jason Rumney  <jasonr@gnu.org>
25788         * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
25789         (xbm_load_image): Use it.
25790         (xbm_load): Ditto.
25791         (xbm_read_bitmap_data): Reverted to xfns.c version.
25792         From David Ponce <david@dponce.com>.
25794 2002-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
25796         * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
25797         2.02 and later.
25799 2002-05-16  Juanma Barranquero  <lektu@terra.es>
25801         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
25803 2002-05-15  Stefan Monnier  <monnier@cs.yale.edu>
25805         * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
25806         meaningful test.
25807         (read_char_minibuf_menu_prompt): Fix typo.
25809 2002-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
25811         * eval.c (Fcommandp): Doc fix.
25813 2002-05-13  Stefan Monnier  <monnier@cs.yale.edu>
25815         * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
25816         (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
25817         (Fset_keymap_parent): Gcpro a bit more.
25818         (access_keymap): Gcpro around meta_map call and around the main loop.
25819         (get_keyelt): Gcpro when following indirect references.
25820         (copy_keymap_item): New fun, extracted from Fcopy_keymap.
25821         (copy_keymap_1, Fcopy_keymap): Use it.  Don't copy the parent map.
25822         (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
25823         Remove useless ad-hoc remap code.
25825 2002-05-13  Richard M. Stallman  <rms@gnu.org>
25827         * search.c (search_buffer): Give up boyer moore search if inverse
25828         translation change charset_base.
25830 2002-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
25832         * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
25833         characters is carried over from the previous block of text, adjust
25834         coding->produced to account for the extra character.
25836 2002-05-11  Andreas Schwab  <schwab@suse.de>
25838         * coding.c (intersection): Keep the elements of the returned list
25839         in the same order as in the first list.
25841 2002-05-11  Kim F. Storm  <storm@cua.dk>
25843         * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
25844         only update cmm_size if realloc actually succeeds.
25845         Testing with initial size of 2 elements revealed that using
25846         realloc on GNU/Linux would cause a random trap in xmalloc
25847         later on, so I rewrote the code to use malloc/bcopy/free instead
25848         of realloc.
25850 2002-05-10  Jason Rumney  <jasonr@gnu.org>
25852         * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
25854 2002-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
25856         * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
25857         parens, to ensure correct evaluation order.
25859 2002-05-10  Kim F. Storm  <storm@cua.dk>
25861         * keymap.c (Vemulation_mode_map_alists): New variable.
25862         (syms_of_keymap): DEFVAR_LISP it.
25863         (current_minor_maps): Process keymap alists in that list before
25864         minor-mode-overriding-map-alist and minor-mode-map-alist.
25866 2002-05-09  Richard M. Stallman  <rms@gnu.org>
25868         * search.c (Freplace_match): Doc fix.
25870 2002-05-09  Kim F. Storm  <storm@cua.dk>
25872         * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
25873         Enlarge cursor rectangle drawn around image with non-zero relief.
25875         * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
25876         Enlarge cursor rectangle drawn around image with non-zero relief.
25878         * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
25879         Enlarge cursor rectangle drawn around image with non-zero relief.
25881 2002-05-07  Eli Zaretskii  <eliz@is.elta.co.il>
25883         * xselect.c (lisp_data_to_selection_data): Don't set selection
25884         type if comes from the Lisp object's car.  If the selection
25885         contains a pure ASCII text, always return QSTRING as its type.
25887 2002-05-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25889         * mac.c (mac-cut-function): Doc fix.
25891 2002-05-05  Richard M. Stallman  <rms@gnu.org>
25893         * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
25895 2002-05-04  Jason Rumney  <jasonr@gnu.org>
25897         * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
25898         for event-click-count.
25900         * process.c (init_process): Only add server subfeature if we can
25901         use non-blocking I/O.
25903 2002-05-04  Andrew Choi  <akochoi@shaw.ca>
25905         * macterm.c (XTread_socket): Call WaitNextEvent once instead of
25906         repeatedly.
25908 2002-05-03  Jason Rumney  <jasonr@gnu.org>
25910         * process.c (Fmake_network_process): Only support server sockets
25911         when we can make them non-blocking.
25913         * s/ms-w32.h (HAVE_SELECT): Define.
25915         * w32.h (FILE_NDELAY): New flag.
25917         * w32.c (sys_getpeername, fcntl): New functions.
25918         (_sys_read_ahead): Temporarily block on non-blocking sockets.
25920         * w32proc.c: Include sys/file.h.
25922 2002-05-03  Colin Walters  <walters@verbum.org>
25924         * callproc.c (Vgame_score_directory): Renamed to
25925         Vshared_game_score_directory.
25927 2002-04-30  Richard M. Stallman  <rms@gnu.org>
25929         * s/gnu.h [emacs]: Include stdio.h.
25930         (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
25932         * eval.c (do_autoload): Error if called while preparing to dump.
25934         * fns.c (Frequire): Error if need to load while preparing to dump.
25936 2002-04-28  Colin Walters  <walters@verbum.org>
25938         * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
25939         Default to "~/.emacs.d/games".
25941 2002-04-29  Stefan Monnier  <monnier@cs.yale.edu>
25943         * lread.c (openp): Change arg exec_only to predicate.
25944         (build_load_history): Use XCAR/XCDR.
25945         (Flocate_file_internal): New fun.
25946         (syms_of_lread): Defsubr it.
25947         (Fload): Update call to openp.
25949         * lisp.h (openp): Update prototype.
25951         * xfns.c (x_create_bitmap_from_file, x_find_image_file):
25952         * w32proc.c (sys_spawnve):
25953         * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
25954         * w32.c (check_windows_init_file):
25955         * sound.c (Fplay_sound_internal):
25956         * process.c (Fstart_process):
25957         * macfns.c (x_create_bitmap_from_file, x_find_image_file):
25958         * mac.c (run_mac_command):
25959         * emacs.c (init_cmdargs):
25960         * callproc.c (Fcall_process): Update call to openp.
25962         * textprop.c (remove_properties): Don't use XCAR without CONSP.
25964         * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
25966 2002-04-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25968         * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
25969         (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
25971 2002-04-28  Richard M. Stallman  <rms@gnu.org>
25973         * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
25975         * eval.c (Fcommandp): New arg for_call_interactively.
25976         * lisp.h (Fcommandp): Declare new arg.
25978 2002-04-28  Jason Rumney  <jasonr@gnu.org>
25980         * w32proc.c (syms_of_w32proc): Get true file attributes by default.
25982         * w32.c (stat, fstat): Use file index information to generate
25983         inodes for directories where available.
25985 2002-04-26  Andrew Choi  <akochoi@shaw.ca>
25987         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
25988         [HAVE_CARBON]: Include Mac object files.
25990         * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
25991         fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
25992         termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
25993         MAC_OSX, and MAC_OS instead of macintosh.
25995         * editfns.c [MAC_OS8]: Include stdio.h.
25997         * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
25999         * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
26000         Apple Monaco.
26002         * process.c (QCfamily, QCfilte): Declare extern.
26003         (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
26004         calling select.
26006         * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
26008         * tparam.c [MAC_OSX]: Don't define BC and UP.
26010         * config.in [HAVE_CARBON]: Add.
26012         * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
26013         Move here from mac/src and mac/inc.
26015         * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
26017 2002-04-26  Gerd Moellmann  <gerd@gnu.org>
26019         * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
26020         Compute phys_cursor_width from the x position returned
26021         by x_draw_glyhs, which is cheaper.
26022         (x_display_and_set_cursor): Compute the buffer-local value
26023         of `cursor-in-non-selected-windows' only when needed.
26025 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
26027         * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
26028         cursor on a stretch glyph has a width that depends on
26029         x_stretch_cursor_p.
26031 2002-04-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26033         * abbrev.c (abbrev-start-location): Doc fix.
26035         * indent.c (Fvertical_motion): Fix last change.
26037 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
26039         * indent.c (Fvertical_motion): Move to the start of the line
26040         containing PT before moving up or down.
26042 2002-04-24  Gerd Moellmann  <gerd@gnu.org>
26044         * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
26045         case of writing a whole row, more or less analogous to the case of
26046         writing only parts of a row.
26048         * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
26049         0 for NO_CURSOR.
26051         * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
26053 2002-04-23  Colin Walters  <walters@verbum.org>
26055         * buffer.c (syms_of_buffer): Doc fix.
26057 2002-04-23  Gerd Moellmann  <gerd@gnu.org>
26059         * xterm.c (notice_overwritten_cursor): Handle the special case
26060         of the cursor being in the first blank non-text line at the
26061         end of a window.
26063         * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
26064         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
26065         (x_display_and_set_cursor): Don't set phys_cursor_width here, for
26066         bar cursors only, to make phys_cursor_width contain what its name
26067         suggests.
26068         (notice_overwritten_cursor): Consider the cursor image erased if
26069         the output area intersects the cursor image in y-direction.
26071 2002-04-23  Simon Marshall  <simon@gnu.org>
26073         * xfns.c (x_set_mouse_color): Change default for cross_cursor
26074         to XC_hand2.
26076 2002-04-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26078         * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
26080 2002-04-22  Kim F. Storm  <storm@cua.dk>
26082         * textprop.c (remove_properties): Fixed trap for malformed plist.
26084 2002-04-22  Richard M. Stallman  <rms@gnu.org>
26086         * cmds.c (Fend_of_line): Handle intangible text in mid line.
26088         * window.c (make_window): Initialize height_fixed_p,
26089         last_cursor_off_p, and p->cursor_off_p slots.
26091 2002-04-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26093         * fns.c (use-dialog-box): Doc fix.
26095 2002-04-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26097         * xterm.c (note_mode_line_or_margin_highlight): Remove unused
26098         variables `row', `i' and `area'.
26099         (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
26100         toolkit library.
26102 2002-04-19  Stefan Monnier  <monnier@cs.yale.edu>
26104         * xfaces.c (clear_font_table): Don't free the default font of
26105         a frame even if it's on another display.
26106         (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
26107         that could be Qt.
26109 2002-04-19  Juanma Barranquero  <lektu@terra.es>
26111         * indent.c (Fmove_to_column): Remove unused local variable
26112         `next_boundary_byte'.
26113         (current_column_1): Likewise.
26115 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
26117         * msdos.c (Qhbar): New variable.
26118         (syms_of_msdos): Intern and staticpro it.
26119         (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
26120         cursor type.
26122 2002-04-19  Dave Lambert  <dlambert@acm.org>
26124         Theses change implement an underscore-like (`hbar') cursor.
26126         * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
26128         * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
26129         Handle the `hbar' cursor type.
26130         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
26132         * xfns.c (Qhbar): New variable.
26133         (syms_of_xfns): Intern and staticpro it.
26134         (x_specified_cursor_type): Handle `hbar' cursor.
26136         * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
26137         not defined.
26139 2002-04-18  Richard M. Stallman  <rms@gnu.org>
26141         * textprop.c (remove_properties): New arg LIST allows scanning
26142         either a list or a plist.
26143         (interval_has_some_properties_list): New function, like
26144         interval_has_some_properties using list instead of plist.
26145         All callers changed.
26146         (Fremove_list_of_text_properties): New function.
26147         (syms_of_textprop): Defsubr it.
26149 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
26151         * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
26153 2002-04-17  Juanma Barranquero  <lektu@terra.es>
26155         * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
26157 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
26159         * window.c (coordinates_in_window): Don't report on margin area
26160         if its width is zero.
26162 2002-04-16  Jason Rumney  <jasonr@gnu.org>
26164         * w32fns.c (Fx_file_dialog): Decode file name before using.
26166         * w32term.c (construct_drag_n_drop): Likewise.
26168 2002-04-16  Eli Zaretskii  <eliz@is.elta.co.il>
26170         * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
26171         store load-history in pure space.
26173         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
26175 2002-04-16  Stefan Monnier  <monnier@cs.yale.edu>
26177         * xterm.c (Qlatin_1, Qutf_8): New vars.
26178         (syms_of_xterm): Initialize them.
26179         (XTread_socket): Eliminate incorrect optimization that tried to avoid
26180         decoding the output of X*LookupString.
26181         Always use latin-1 to decode the output of XLookupString.
26182         Try Xutf8LookupString if XmbLookupString failed.
26184         * region-cache.c (new_region_cache): Use BEG.
26186 2002-04-16  Gerd Moellmann  <gerd@gnu.org>
26188         * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
26189         configuration files.
26190         (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
26191         returns 0.
26193 2002-04-15  Andreas Schwab  <schwab@suse.de>
26195         * config.in: Regenerated using autoheader.
26197         * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
26198         m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
26199         m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
26200         m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
26201         m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
26202         m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
26203         m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
26204         m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
26205         m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
26206         m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
26207         m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
26208         m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
26209         m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
26210         m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
26211         m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
26212         s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
26213         STACK_DIRECTION, now set by autoconf.
26215 2002-04-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26217         * dispnew.c (marginal_area_string): Sort arguments.
26219         * dispextern.h (marginal_area_string): Add prototype.
26221 2002-04-13  Richard M. Stallman  <rms@gnu.org>
26223         * fileio.c (Finsert_file_contents):
26224         Don't call temp_output_buffer_setup--do just part, by hand.
26226         * coding.c (run_pre_post_conversion_on_str):
26227         Don't call temp_output_buffer_setup--do just part, by hand.
26229         * keyboard.c (command_loop_1): Don't call start_hourglass
26230         or cancel_hourglass when executing a macro.
26232         * marker.c (count_markers): New function.
26234         * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
26235         grow without limit.  Move recently used elements to the front.
26237 2002-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
26239         * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
26241 2002-04-12  Gerd Moellmann  <gerd@gnu.org>
26243         * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
26244         rows marginal areas.
26245         (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
26246         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
26248         * dispnew.c (marginal_area_string): Check that glyph row is enabled.
26250 2002-04-12  Dave Love  <fx@gnu.org>
26252         * dispnew.c (marginal_area_string): New.
26254         * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
26255         (Qleft_margin, Qright_margin): Declare.
26256         (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
26258         * xterm.c (note_mode_line_or_margin_highlight): Renamed from
26259         note_mode_line_highlight and extended.
26261         * keyboard.c (Qleft_margin, Qright_margin): Declare.
26262         (make_lispy_event): Deal with mouse events in margins.
26264 2002-04-12  Stefan Monnier  <monnier@cs.yale.edu>
26266         * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
26268         * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
26269         than deactivating the mark if tmm is set to `lambda'.
26270         (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
26271         Use a single event for HELP_EVENT.
26272         (Fexecute_extended_command): Save last_point_position.
26274 2002-04-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26276         * lisp.h (Fpropertize): Add prototype.
26278         * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
26280 2002-04-10  Colin Walters  <walters@verbum.org>
26282         * config.in: Add HAVE_SHARED_GAME_DIR.
26284         * callproc.c (Vgame_score_directory): New variable.
26285         (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
26287 2002-04-10  Richard M. Stallman  <rms@gnu.org>
26289         * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
26291 2002-04-09  Stefan Monnier  <monnier@cs.yale.edu>
26293         * minibuf.c (read_minibuf): Use empty_string.
26294         (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
26295         Short-circuit the search as soon as it "failed".
26296         (Fall_completions): Allow lambda forms and lists of strings for alist.
26297         (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
26298         when require_match is nil.
26299         (Ftest_completion): Rename from `test_completion' and export to elisp.
26300         Call the predicate also when alist is a list.
26301         Obey Vcompletion_regexp_list.
26302         (do_completion, Fminibuffer_complete_and_exit): Use it.
26303         (Fassoc_string): Rename from `assoc_for_completion'.
26304         Allow list of strings as well and export to elisp.
26306 2002-04-08  Stefan Monnier  <monnier@cs.yale.edu>
26308         * puresize.h (BASE_PURESIZE): Increase to 900KB.
26310 2002-04-08  Juanma Barranquero  <lektu@terra.es>
26312         * w32.c (sys_accept): Don't hide variable `s'.
26314 2002-04-05  Gerd Moellmann  <gerd@gnu.org>
26316         * callint.c (Fcall_interactively): Use INTEGERP instead of
26317         NUMBERP for checking Vhistory_length.
26319 2002-04-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26321         * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
26322         Doc fix to reflect it.
26324 2002-04-04  Richard M. Stallman  <rms@gnu.org>
26326         * xdisp.c (display_mode_element): New arg RISKY.
26327         Disregard text props found or specified within a variable
26328         that isn't marked risky-local-variable.
26329         (Qrisky_local_variable): New variable.
26330         (syms_of_xdisp): Init and staticpro it.
26332 2002-04-04  Stefan Monnier  <monnier@cs.yale.edu>
26334         * undo.c (record_point): New fun.
26335         (record_delete, record_insert): Use it.
26337 2002-04-03  Juanma Barranquero  <lektu@terra.es>
26339         * doc.c (Fdocumentation): Add missing parentheses.
26340         (Fdocumentation_property): Likewise.
26342 2002-04-03  Stefan Monnier  <monnier@cs.yale.edu>
26344         * doc.c (Fdocumentation, Fdocumentation_property): When the doc
26345         data is 0, just return nil.
26347 2002-04-03  Eli Zaretskii  <eliz@is.elta.co.il>
26349         * msdos.c (syms_of_msdos): Fix last change with
26350         mouse_autoselect_window.
26352 2002-04-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26354         * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
26355         mouse_autoselect_window.
26357 2002-04-02  Stefan Monnier  <monnier@cs.yale.edu>
26359         * keyboard.c (make_lispy_event): Handle unknown keysyms together
26360         with system-specific keysyms.  Use it also for unknown function keys.
26362         * doc.c (reread_doc_file): Return whether reload was attempted.
26363         (Fdocumentation, Fdocumentation_property): Don't try to reload
26364         if the doc is 0 and only ask once.
26366         * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
26368 2002-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
26370         * keyboard.c (read_char): If the event was Qselect_window,
26371         restore timer_idleness_start_time to its previous value.
26373         * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
26375 2002-04-01  Stefan Monnier  <monnier@cs.yale.edu>
26377         * region-cache.c (new_region_cache): Use BEG.
26379         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
26380         Use BEG and BEG_BYTE.
26382         * doc.c (get_doc_string): Return nil if the location is wrong.
26383         (reread_doc_file): New fun.
26384         (Fdocumentation, Fdocumentation_property):
26385         Call it if get_doc_string fails.
26386         (Fsnarf_documentation): Make it work for a dumped Emacs.
26388         * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
26389         Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
26391         * charset.c (Fstring): Allow 0 arguments.
26393         * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
26395         * process.c (DATAGRAM_CONN_P, list_processes_1)
26396         (Fprocess_datagram_address, Fset_process_datagram_address)
26397         (Fset_network_process_options, server_accept_connection):
26398         Fix some int/Lisp_Object confusions (thank you union types).
26400 2002-04-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26402         * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
26404         * w32term.c: Likewise.
26405         (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
26407         * keyboard.c (Qselect_window): New symbol.
26408         (head_table): Use it.
26409         (keys_of_keyboard): Bound select-window event to handle-select-window.
26410         (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
26412         * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
26413         (last_window): New variable.
26414         (XTread_socket): Generate SELECT_WINDOW_EVENTs.
26415         (note_mouse_movement): Remove reimplemented code in #if 0.
26416         (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
26417         Emacs windows.
26419         * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
26421 2002-03-31  Gerd Moellmann  <gerd@gnu.org>
26423         * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
26424         Callers changed.
26426 2002-03-30  Richard M. Stallman  <rms@gnu.org>
26428         * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
26429         loop whenever it stops making progress.
26431         * widget.c (set_frame_size): Don't call change_frame_size.
26433 2002-03-30  Gerd Moellmann  <gerd@gnu.org>
26435         * dispnew.c (direct_output_for_insert):
26436         Call mark_window_display_accurate.
26438 2002-03-29  Jason Rumney  <jasonr@gnu.org>
26440         * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
26442 2002-03-29  Eli Zaretskii  <eliz@is.elta.co.il>
26444         * Makefile.in (lread.o): Depend on coding.h.
26446         * lread.c (openp, Fload): Encode the file name before passing it
26447         to `stat', `access', and `emacs_open'.
26448         (openp): GCPRO the encoded file name.  Don't recompute Lisp
26449         strings unnecessarily.
26451 2002-03-29  Kim F. Storm  <storm@cua.dk>
26453         * fns.c (Flax_plist_put): Doc fix.
26455 2002-03-28  Miles Bader  <miles@gnu.org>
26457         * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
26459 2002-03-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26461         * process.c (set-network-process-options): Add usage.
26462         (make-network-process): Doc fix.
26464 2002-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
26466         * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
26468 2002-03-26  Richard M. Stallman  <rms@gnu.org>
26470         * fns.c (Fsubstring_no_properties): New function.
26471         (Flax_plist_get, Flax_plist_put): New functions.
26472         (syms_of_fns): defsubr them.
26474         * xdisp.c (update_menu_bar): Test only update_mode_lines;
26475         don't test or alter w->update_mode_line.
26477         * window.c (Fdisplay_buffer): Doc fix.
26479 2002-03-24  Richard M. Stallman  <rms@gnu.org>
26481         * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
26483 2002-03-24  Gerd Moellmann  <gerd@gnu.org>
26485         * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
26486         (Fdefmacro): Handle `(declare ...)'.
26487         (syms_of_eval) <Qdeclare>: Initialize and staticpro.
26488         (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
26490 2002-03-24  Jason Rumney  <jasonr@gnu.org>
26492         * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
26493         (xbm_file_p): Add prototypes.
26494         (xbm_format, xbm_image_p): Sync with xfns.c.
26495         (reflect_byte): New function.
26496         (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
26497         (xbm_load_image): Create bitmaps with a depth of 1.
26498         (init_xfns): Enable XBM images.
26500 2002-03-23  Jason Rumney  <jasonr@gnu.org>
26502         * w32term.c (w32_handle_tool_bar_click): Detect up and down events
26503         correctly.  Do not pass up_modifier to keyboard buffer.
26505         * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
26507 2002-03-22  Stefan Monnier  <monnier@cs.yale.edu>
26509         * Makefile.in (bootstrapclean): New target.
26510         (bootstrap-temacs, bootstrap-doc): Remove.
26511         (bootstrap-emacs): Use a bog-standard `temacs'.
26512         Don't bother to build a DOC file.
26514         * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
26516         * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
26517         in temacs even if !CANNOT_DUMP.
26518         (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
26520         * alloc.c (check_pure_size): Only output a warning.
26522 2002-03-22  Jason Rumney  <jasonr@gnu.org>
26524         * w32fns.c (Fx_create_frame): Enable tool-bar when images are
26525         supported.
26527         * w32term.c (zv_bits): Declare as short, for word alignment.
26528         (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
26529         (syms_of_w32term): Define x-use-underline-position-properties.
26531         * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
26532         (clear_image_cache): Block input, fix logic, clear matrices in
26533         all frames that share this cache.
26535 2002-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
26537         * emacs.c (main): Update the Copyright year in the blurb printed
26538         by "emacs --version".
26540         * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
26542         * xterm.c (XTread_socket): If XK_ISO_Lock and
26543         XK_ISO_Last_Group_Lock are defined, handle keysyms between
26544         XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
26546 2002-03-21  Kim F. Storm  <storm@cua.dk>
26548         * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
26549         menu-bar bindings in keymap and local-map properties _are_ used.
26550         But try keymap property first in accordance with 2002-01-03 patch.
26551         Added comment describing why this is not always reliable.
26552         (tool_bar_items): Ditto for tool-bar.
26554 2002-03-21  Jason Rumney  <jasonr@gnu.org>
26556         * w32fns.c (x_clear_image_1): Disable color table code.
26558 2002-03-21  Kim F. Storm  <storm@cua.dk>
26560         * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
26561         removed the wrong version of the DEFUN macro; fixed it.
26563         * fns.c (Ffeaturep): Allow subfeature to be a list (test using
26564         Fmember rather than Fmemq).
26565         (Fprovide): Check that subfeatures is a list.
26567         * process.c (QCfeature, QCdatagram): Removed variables.
26568         (QCtype, Qdatagram): New variables.
26569         (network_process_featurep): Removed function.
26570         (Fmake_network_process): Removed :feature check.
26571         Use :type 'datagram instead of :datagram t to create a datagram
26572         socket.  This allows us to add other connection types (e.g. raw
26573         sockets) later in a consistent manner.
26574         (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
26575         supported subfeatures for feature make-network-process.
26576         (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
26577         Intern and staticpro QCtype and Qdatagram.
26578         (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
26580         * xfns.c (QCtype): Remove duplicate declaration and
26581         initialization (is now declared in process.c).
26583         * w32fns.c (QCtype): Remove duplicate declaration and
26584         initialization (is now declared in process.c).
26586 2002-03-21  Richard M. Stallman  <rms@gnu.org>
26588         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
26589         (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
26590         when jumping to `fail' to avoid undoing reg changes in the
26591         last iteration of the loop.
26592         (GET_UNSIGNED_NUMBER): Skip spaces around the number.
26594         * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
26595         Depend on process.h.
26597 2002-03-20  Jason Rumney  <jasonr@gnu.org>
26599         Most of the following changes are still conditional on HAVE_IMAGES
26600         which is not set by default on Windows.
26602         * emacs.c (main) [WINDOWSNT]: Call init_xfns.
26604         * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
26605         (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
26606         (four_corners_best, x_clear_image_1, x_clear_image)
26607         (x_alloc_image_color, postprocess_image)
26608         (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
26609         (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
26610         (init_xfns, syms_of_w32fns): Initialize image functions and constants.
26612         * w32gui.h (struct XImage): Define.
26614         * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
26615         extract mouse co-ordinates.
26617 2002-03-20  Jason Rumney  <jasonr@gnu.org>
26619         * w32.c (init_winsock): Dynamically load new server and UDP
26620         socket functions.
26621         (socket_to_fd): New function.
26622         (sys_socket): Use it.
26623         (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
26624         (sys_recvfrom, sys_sendto): New wrapper functions.
26626         * process.c (QCfamily, QCfilter): Remove duplicate declaration
26627         and initialization.
26629         * makefile.w32-in (LIBS): Remove $(WSOCK32).
26631 2002-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
26633         * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
26634         Don't use "sun" as a variable, it's a predefined constant on Sun
26635         machines.
26637 2002-03-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26639         * bytecode.c (Fbyte_code): Revert last change.
26641 2002-03-19  Kim F. Storm  <storm@cua.dk>
26643         * makefile.w32-in (LIBS): Add $(WSOCK32).
26644         From David Ponce <dponce@voila.fr>.
26646 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26648         * process.c (wait_reading_process_input): Move variables `pname'
26649         and `pnamelen' down where they are used.
26651         * bytecode.c (Fbyte_code): Discard unused computed value to
26652         prevent gcc warning.
26654         * lisp.h (Fplist_member): Add prototype.
26656 2002-03-18  Kim F. Storm  <storm@cua.dk>
26658         * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
26659         HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
26661         * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
26662         Remove explicit GNU_LINUX settings for datagram support.
26664 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26666         * process.c (Fmake_network_process): Remove unused variable `sa'.
26667         Doc fix.  Add usage:.
26668         (set_socket_options): Remove unused variables `optnum' and `opttype'.
26670 2002-03-17  Richard M. Stallman  <rms@gnu.org>
26672         * xdisp.c (cursor_type_changed): New variable.
26673         (redisplay_internal): Redisplay all windows if cursor_type_changed.
26674         Clear it when clearing windows_or_buffers_changed.
26675         (try_cursor_movement, redisplay_window, try_window_id)
26676         (try_window_reusing_current_matrix): Test cursor_type_changed
26677         along with windows_or_buffers_changed.
26679         * window.h (cursor_type_changed): New variable.
26681         * xfns.c (x_set_cursor_type): Set cursor_type_changed,
26682         not update_mode_lines, and always set it to 1.
26684         * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
26685         if no frames needed redrawing.
26687 2002-03-17  Kim F. Storm  <storm@cua.dk>
26689         The following changes add support for network server processes,
26690         datagram connections, and local (unix) sockets.
26692         * process.h (struct Lisp_Process): New member log.
26693         Doc fix: Member command used to indicate stopped network process.
26694         Doc fix: Member childp contains plist for network process.
26695         Doc fix: Member kill_without_query is inverse of query-on-exit flag.
26697         * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
26698         (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
26699         (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
26700         variables.
26701         (NETCONN1_P): New macro.
26702         (DATAGRAM_SOCKETS): New conditional symbol.
26703         (datagram_address): New array.
26704         (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
26705         (status_message): Use concat3.
26706         (Fprocess_status): Add `listen' status to doc string.  Return
26707         `stop' for a stopped network process.
26708         (Fset_process_buffer): Update contact plist for network process.
26709         (Fset_process_filter): Ditto.  Don't enable input for stopped
26710         network processes.  Server must listen, even if filter is t.
26711         (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
26712         New functions.
26713         (Fprocess_kill_without_query): Removed.  Now defined in simple.el.
26714         (Fprocess_contact): Added KEY argument.  Handle datagrams.
26715         (list_processes_1): Optionally show only processes with the query
26716         on exit flag set.  Dynamically adjust column widths.  Omit tty
26717         column if not needed.  Report stopped network processes.  Identify
26718         server and datagram network processes.
26719         (Flist_processes): New optional arg `query-only'.
26720         (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
26721         (conv_lisp_to_sockaddr, set_socket_options)
26722         (network_process_featurep, unwind_request_sigio): New helper
26723         functions.
26724         (Fprocess_datagram_address, Fset_process_datagram_address):
26725         (Fset_network_process_options): New lisp functions.
26726         (Fopen_network_stream): Removed.  Now defined in simple.el.
26727         (Fmake_network_process): New lisp function.  Code is based on
26728         previous Fopen_network_stream, but heavily reworked with new
26729         property list based argument list, support for datagrams, server
26730         processes, and local sockets in addition to old client-only
26731         functionality.
26732         (server_accept_connection): New function.
26733         (wait_reading_process_input): Use it to handle incoming connects.
26734         Do not enable input on a new connection if process is stopped.
26735         (read_process_output): Handle datagram sockets.  Use 2k buffer for
26736         them.
26737         (send_process): Handle datagram sockets.
26738         (Fstop_process, Fcontinue_process): Apply to network processes.  A
26739         stopped network process is indicated by setting command field to t.
26740         (Fprocess_send_eof): No-op if datagram connection.
26741         (Fstatus_notify): Don't read input for a stream server socket or a
26742         stopped network process.
26743         (init_process): Initialize datagram_address array.
26744         (syms_of_process): Intern and staticpro new variables, defsubr new
26745         functions.
26747 2002-03-16  Jason Rumney  <jasonr@gnu.org>
26749         * w32fns.c (w32_to_all_x_charsets): Return correct type in
26750         startup case.
26752 2002-03-16  Richard M. Stallman  <rms@gnu.org>
26754         * xdisp.c (redisplay_internal, redisplay_windows):
26755         Use list_of_error to call internal_condition_case_1.
26756         (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
26757         so as to catch all errors with no possibility of debugger redisplay.
26758         (list_of_error): New variable.
26759         (syms_of_xdisp): Init and staticpro it.
26761         * print.c (print_object): Delete `\ ' from printed rep of frame.
26763 2002-03-15  Eli Zaretskii  <eliz@is.elta.co.il>
26765         * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
26766         until its implementation is fixed.
26768 2002-03-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26770         * xfns.c (png_load): Remove unused variable `gamma_str'.
26772 2002-03-14  Richard M. Stallman  <rms@gnu.org>
26774         * xfns.c (x_real_positions): Handle failure in XQueryTree.
26776 2002-03-14  Miles Bader  <miles@gnu.org>
26778         * intervals.c (adjust_for_invis_intang): New function.
26779         (set_point_both): Use `adjust_for_invis_intang' to do most of the
26780         work for dealing with invisible+intangible regions.  Do so before
26781         and after both forward and backward movements, to handle both
26782         front-sticky and rear-sticky cases.
26783         * textprop.c (text_property_stickiness): Function moved here from
26784         `editfns.c'.
26785         * intervals.h (text_property_stickiness): New declaration.
26786         * editfns.c (char_property_eq): Function removed.
26787         (text_property_stickiness): Function moved to `textprop.c'.
26789 2002-03-13  Jason Rumney  <jasonr@gnu.org>
26791         * config.in: Add STRFTIME_NO_POSIX2.
26793         * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
26794         and %OX when underlying strftime does not.
26796 2002-03-13  Stefan Monnier  <monnier@cs.yale.edu>
26798         * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
26799         Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
26800         line) to avoid annoying flicker.
26801         (xm_scroll_callback): Get rid of the now unnecessary kludge.
26802         (XTread_socket): Mark it static.
26804         * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
26806 2002-03-13  Kim F. Storm  <storm@cua.dk>
26808         * puresize.h (BASE_PURESIZE): Increase to 775000.
26810 2002-03-12  Juanma Barranquero  <lektu@terra.es>
26812         * editfns.c (syms_of_editfns): Fix typo.
26814 2002-03-12  Gerd Moellmann  <gerd@gnu.org>
26816         * xsmfns.c: Include stdio.h because termhooks.h needs it.
26817         Include termopt.h for interrupt_input.
26819 2002-03-11  Andreas Schwab  <schwab@suse.de>
26821         * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
26823 2002-03-11  Gerd Moellmann  <gerd@gnu.org>
26825         * xterm.c (note_mouse_movement): Put code for
26826         x_autoselect_window_p in #if 0.
26828         * lread.c (Fload): Don't assume that message_with_string uses the
26829         string it is given like a C string.
26831 2002-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
26833         * xterm.h (x_session_check_input, x_session_initialize): Declare.
26835         * xterm.c (XTread_socket): Add call to x_session_check_input and
26836         x_session_have_connection.
26837         (x_initialize): Add call to x_session_initialize.
26839         * termhooks.h (enum event_kind): Add save_session_event.
26841         * keyboard.c: Add Emacs event save_session_event.
26843         * emacs.c (main): Add call to syms_of_xsmfns.
26845         * lisp.h (syms_of_xsmfns): Declare extern.
26847         * config.in: Add HAVE_X_SM.
26849         * Makefile.in (LIBXT): Add -lSM -lICE
26850         if HAVE_X_SM and not USE_X_TOOLKIT.
26851         (XOBJ): New file xsmfns.c added.
26853         * xsmfns.c: New file for X session management.
26855 2002-03-09  Jason Rumney  <jasonr@gnu.org>
26857         * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
26858         read-only when setting modified time.
26860 2002-03-08  Gerd Moellmann  <gerd@gnu.org>
26862         * xdisp.c (move_it_vertically_backward): At the end of the function,
26863         when moving forward by lines, treat terminal frames specially.
26865         * keyboard.c (echo_char): Make sure to add a separator between
26866         keys even if echo_dash hasn't been called.
26868         * xdisp.c: Use new string macros.
26869         (update_echo_area): Pass number of bytes to message3 instead of
26870         number of chars.
26871         (set_message_1): Don't access a string's size_byte directly.
26872         (decode_mode_spec_coding): Use number of bytes of eoltype string
26873         instead number of chars.
26875         * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
26877 2002-03-08  Juanma Barranquero  <lektu@terra.es>
26879         * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
26880         24-bit.
26882 2002-03-06  Jason Rumney  <jasonr@gnu.org>
26884         * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
26886 2002-03-06  Gerd Moellmann  <gerd@gnu.org>
26888         * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
26889         (cancel_echoing, echo_length, echo_truncate): Changed to
26890         work with new kboard definition.
26891         (echo_now): Use message3_nolog instead of message2_nolog.
26893         * alloc.c (mark_kboards): Mark echo_string.
26895         * keyboard.h (ECHOBUFSIZE): Removed.
26896         (struct kboard): Member echoptr removed, member echobuf renamed
26897         to echo_string.
26899         * xdisp.c (message_with_string): Use Fformat instead of doprnt and
26900         message3 instead of message2 to display the message using STRING's
26901         text properties.
26903 2002-03-05  Andreas Schwab  <schwab@suse.de>
26905         * xdisp.c (hscroll_margin): Change to EMACS_INT.
26907 2002-03-05  Per Abrahamsen  <abraham@dina.kvl.dk>
26909         * frame.c (default-frame-alist): Explain that setting it doesn't
26910         affect existing frames.
26912 2002-03-05  Stefan Monnier  <monnier@cs.yale.edu>
26914         * indent.c (skip_invisible): Fix my brain fart.
26916         * dispnew.c (sit_for): Don't wait if executing a kbd macro.
26918 2002-03-04  Stefan Monnier  <monnier@cs.yale.edu>
26920         * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
26921         * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
26922         * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
26923         * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
26924         and variables to use EMACS_INT instead of just int.
26926         * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
26928 2002-03-04  Eli Zaretskii  <eliz@is.elta.co.il>
26930         * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
26931         environment, pass it down with corrected value.
26933 2002-03-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26935         * lread.c (read_filtered_event): Do not call start_hourglass
26936         before returning.
26938 2002-03-04  Juanma Barranquero  <lektu@terra.es>
26940         * w32term.c (x_display_and_set_cursor): Fix typo.
26942 2002-03-03  Richard M. Stallman  <rms@gnu.org>
26944         * fileio.c (Fmake_temp_name): Doc fix.
26946 2002-03-03  Gary Wong  <gtw@gnu.org>
26948         * termcap.c [!emacs]: Replace ospeed for building standalone
26949         libtermcap, for binary compatibility.
26951         * tparam.c [!emacs]: Move #define of bcopy to after string.h.
26953 2002-03-03  Richard M. Stallman  <rms@gnu.org>
26955         * xrdb.c (file_p): Rename arg `path' to `filename'.
26957         * abbrev.c (Fexpand_abbrev): Increment plist as use count
26958         only if it is an integer.
26960         * xfns.c (png_load): Set screen_gamma based on f->gamma.
26961         If png_get_sRGB gives an answer, call png_set_gamma
26962         using the default image gamma value.
26964         * lread.c (read1): When reading from a file, default string to
26965         multibyte only if it has some multibyte characters.
26967         * print.c (print_object): Output multibyte chars 128...255
26968         using \x even if ! print_escape_multibyte.
26970         * xdisp.c (display_mode_element): Move the places where
26971         bytepos, charpos, this, and lisp_string are set.
26972         Use lisp_string to set bytepos.
26974         * xdisp.c (redisplay_internal):
26975         Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
26977         * xdisp.c (display_mode_element): Merge properties specified with
26978         :propertize onto those that come with the string.
26980 2002-03-03  Eli Zaretskii  <eliz@is.elta.co.il>
26982         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
26983         automatic-hscrolling.  Users changed.
26984         <hscroll-margin>: Renamed from automatic-hscroll-margin.
26985         Users changed.
26986         <hscroll-step>: Renamed from automatic-hscroll-step.  Users changed.
26988 2002-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
26990         * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
26992 2002-03-02  Kim F. Storm  <storm@cua.dk>
26994         * window.c (Fminibuffer_selected_window): New function.
26995         (syms_of_window): Defsubr it.
26997 2002-03-01  Kim F. Storm  <storm@cua.dk>
26999         * window.h (struct window): New member phys_cursor_width.
27001         * window.c (make_window, replace_window): Init phys_cursor_width.
27003         * xterm.c (x_display_and_set_cursor): Blink box cursor using
27004         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
27006         * w32term.c (x_display_and_set_cursor): Blink box cursor using
27007         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
27009         * lisp.h (GCPRO6): New macro.
27011         * process.c (Fopen_network_stream): Use GCPRO6.
27013 2002-03-01  Kim F. Storm  <storm@cua.dk>
27015         * process.c (Qconnect, Qfailed): New variables.
27016         (syms_of_process): Intern and staticpro them.
27017         (Fprocess_status): Document connect and failed return values.
27018         [NON_BLOCKING_CONNECT]: New conditional.
27019         (connect_wait_mask, num_pending_connects): New variables.
27020         (status_message): Convert Qfailed status.
27021         (Fopen_network_stream): Added support for non-blocking connect.
27022         New optional args: filter, sentinel, non_blocking.  Doc updated.
27023         [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
27024         (deactivate_process): Handle pending non-blocking connect.
27025         (wait_reading_process_input): Poll for status of non-blocking
27026         connects.  Exec sentinel directly when connect succeeds.
27027         (status_notify): Don't read process output if not yet connected.
27029 2002-02-28  Kim F. Storm  <storm@cua.dk>
27031         * window.c (minibuf_selected_window): Renamed from
27032         Vminibuf_selected_window.  Users changed.
27033         (syms_of_window): Staticpro it.
27035 2002-02-26  Kim F. Storm  <storm@cua.dk>
27037         The following changes add a new Vminibuf_selected_window variable
27038         which is similar to Vminibuf_scroll_window, but which is only set
27039         on entry to the minibuffer (from a non-minibuffer window):
27041         * window.c (Vminibuf_selected_window): New variable.
27042         (struct save_window_data): New member minibuf_selected_window.
27043         (Fset_window_configuration): Restore Vminibuf_selected_window.
27044         (Fcurrent_window_configuration): Save Vminibuf_selected_window.
27045         Set minibuf_scroll_window member to nil if minibuf_level is 0.
27046         (compare_window_configurations): Compare minibuf_selected_window.
27048         * window.h (Vminibuf_selected_window): Declare extern.
27050         * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
27051         entry to minibuffer or on entry from a non-minibuffer window.
27053         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
27054         Vminibuf_selected_window instead of Vminibuf_scroll_window.
27056         * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
27057         instead of Vminibuf_scroll_window when deciding in which window
27058         the region should be highlighted.  Consequently, the region remains
27059         highlighteded even when a completion buffer is also displayed.
27061 2002-02-26  Eli Zaretskii  <eliz@is.elta.co.il>
27063         * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
27065         * xselect.c (Qcompound_text_with_extensions): Renamed from
27066         Qcompound_text_no_extensions.
27067         (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
27069 2002-02-26  Juanma Barranquero  <lektu@terra.es>
27071         * w32proc.c (syms_of_ntproc): Doc fix.
27073 2002-02-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27075         * intervals.h: Include "dispextern.h" unconditionally.
27077 2002-02-24  Jason Rumney  <jasonr@gnu.org>
27079         * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
27080         and disp-table.elc.
27081         (lisp): Add emacs-lisp/backquote.elc.
27083 2002-02-24  Kim F. Storm  <storm@cua.dk>
27085         * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
27086         The validation of the event type was too strict as it didn't
27087         allow string events; buffer names are used in bindings for
27088         menu-bar-select-buffer (see `menu-bar-update-buffers').
27090 2002-02-23  Kim F. Storm  <storm@cua.dk>
27092         The following changes rework my patch of 2002-02-06 which
27093         added command remapping by entering the commands directly into
27094         the keymaps.  Now, command remapping uses an explicit `remap'
27095         prefix in the keymaps, i.e. [remap COMMAND].
27097         * keymap.c (Qremap, remap_command_vector): New variables.
27098         (is_command_symbol): Remove function.
27099         (Fdefine_key): No longer accept a symbol for KEY.
27100         Added validation of [remap COMMAND] argument for KEY.
27101         The DEF is no longer required to be a symbol when remapping a command.
27102         (Fremap_command): New function to remap command through keymaps.
27103         (Flookup_key): Perform command remapping initiated by
27104         Fremap_command directly for speed.
27105         (Fkey_binding): Use Fremap_command for command remapping.
27106         (where_is_internal): Handle new command remapping representation.
27107         (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
27108         staticpro them.  Defsubr Fremap_command.
27110         * keymap.h (Fremap_command): Declare extern.
27111         (is_command_symbol): Remove extern.
27113         * keyboard.c (command_loop_1): Use Fremap_command for command
27114         remapping; now try command remapping for all symbols.
27116 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
27118         * coding.h (run_pre_post_conversion_on_str): Add prototype.
27120 2002-02-23  Jason Rumney  <jasonr@gnu.org>
27122         * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
27123         on the string before encoding it.
27124         (Fw32_get_clipboard_data): Run post-read-conversion on the string
27125         after decoding it.
27127         * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
27129 2002-02-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27131         * w32term.c (enter_timestamp): Remove unused static variable to
27132         prevent warning.
27134         * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
27136 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
27138         * w16select.c (Fw16_get_clipboard_data): Fix last change.
27140         * xselect.c (selection_data_to_lisp_data): Fix last change.
27142 2002-02-22  Jason Rumney  <jasonr@gnu.org>
27144         * w32term.h (struct w32_output): New member menu_command_in_progress.
27146         * w32menu.c (menubar_selection_callback): Free the menu and
27147         clear the menu_command_in_progress flag.
27149         * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
27150         (menu_free_timer): New variable.
27151         (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
27152         (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
27153         <WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
27154         menu command is in progress.
27155         <WM_COMMAND>: Set the menu_command_in_progress flag.
27156         Kill any menu_free_timer that is running.
27158         * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
27159         Call ExtTextOutA rather than ExtTextOut.
27161 2002-02-22  Eli Zaretskii  <eliz@gnu.org>
27163         * puresize.h (BASE_PURESIZE): Increase to 755000.
27165 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
27167         * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
27168         on the string before encoding it.
27169         (Fw16_get_clipboard_data): Run post-read-conversion on the string
27170         after decoding it.
27172 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
27174         Support for ICCCM Extended Segments in X selections:
27176         * xselect.c <Qcompound_text_no_extensions>: New variable.
27177         (syms_of_xselect): Intern and staticpro it.
27178         (selection_data_to_lisp_data): Run post-read-conversion on decoded
27179         selection text.
27180         (lisp_data_to_selection_data): If next-selection-coding-system is
27181         compound-text-no-extensions, set the type of selection to be
27182         compound-text.
27184         * xterm.h (x_encode_text): Update prototype.
27186         * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
27187         callers changed.  If SELECTIONP is non-zero, run the
27188         pre-write-conversion function before encoding the selection text.
27190 2002-02-21  Kim F. Storm  <storm@cua.dk>
27192         * frame.c (syms_of_frame): Change mouse-highlight default to t.
27194         * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
27195         Correct composing of language-change event.
27197 2002-02-20  Kim F. Storm  <storm@cua.dk>
27199         * keyboard.c (menu_bar_items): Don't include keymap or local-map
27200         bindings at PT when building menu (the menu is not updated often
27201         enough for this to work reliable).
27202         (tool_bar_items): Likewise.
27203         (current_active_maps): Removed unused (and buggy) function.
27205 2002-02-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27207         * xfns.c (gif_load): Use correct width and height for GIF images.
27209 2002-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
27211         * floatfns.c (Fatan): Accept an optional second arg and call
27212         atan2 if passed 2 args.
27214 2002-02-18  Jason Rumney  <jasonr@gnu.org>
27216         * w32term.c (glyph_rect): Determine the row and glyph more precisely.
27218 2002-02-17  Jason Rumney  <jasonr@gnu.org>
27220         * w32term.c (x_autoselect_window_p): New variable.
27221         (syms_of_w32term): DEFVAR_BOOL and initialize it.
27222         (note_mouse_movement): Use it.
27224         * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
27226         * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
27228         * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
27229         New variables.
27230         (syms_of_w32fns): Intern and staticpro them.
27231         (x_frame_parms) <"fullscreen">: New parameter.
27232         (x_fullscreen_move, x_set_fullscreen): New functions.
27233         (x_set_frame_parameters): Support Qfullscreen.
27234         (x_real_positions): Save x/y_pixels_diff frame params.
27235         (x_figure_window_size): Support full-screen frames.
27236         (Fx_create_frame): Default the fullscreen parameter.
27238         * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
27239         (x_fullscreen_adjust): New functions.
27240         (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
27241         fullscreen.  Call x_check_fullscreen_move, and set the
27242         want_fullscreen member of output_data.w32
27243         <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
27245         * w32term.h: New enum for FULLSCREEN_* constants.
27246         (struct w32_output): New members want_fullscreen, x_pixels_diff,
27247         y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
27248         (x-fullscreen-adjust): New prototype.
27250 2002-02-17  Kim F. Storm  <storm@cua.dk>
27252         * frame.c (Vmouse_highlight): New variable.
27253         (syms_of_frame): DEFVAR_LISP it.
27255         * frame.h (Vmouse_highlight): Declare extern.
27257         * xterm.h (struct x_display_info): Add mouse_face_hidden.
27259         * xterm.c (disable_mouse_highlight): Removed variable.
27260         (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
27261         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
27262         (XTread_socket): Turn mouse_face_hidden off after mouse movement,
27263         and on after keyboard input.
27264         (x_term_init): Initialize mouse_face_hidden.
27266         * msdos.h (struct display_info): Add mouse_face_hidden.
27268         * msdos.c (disable_mouse_highlight): Removed variable.
27269         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
27270         (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
27271         (internal_terminal_init): Initialize mouse_face_hidden.
27272         (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
27273         and on after keyboard input.
27275         * w32term.h (struct w32_display_info): Add mouse_face_hidden.
27277         * w32term.c (disable_mouse_highlight): Removed variable.
27278         (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
27279         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
27280         (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
27281         and on after keyboard input.
27282         (w32_initialize_display_info): Initialize mouse_face_hidden.
27284 2002-02-16  Eli Zaretskii  <eliz@is.elta.co.il>
27286         * msdos.c (last_mouse_window): New variable.
27287         (dos_rawgetc): Fix last change--if the mouse is in the same window
27288         as recorded in last_mouse_window, don't select this window.
27290         * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
27292         * msdos.c (x_autoselect_window_p): New variable.
27293         (syms_of_msdos): Defvar it.
27294         (dos_rawgetc): If x_autoselect_window_p is set, select the window in
27295         which the last mouse movement occured, unless it is already selected.
27297         * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
27298         New variables.
27299         (syms_of_xdisp): DEVFAR them.
27300         (hscroll_window_tree): Use automatic_hscroll_margin and
27301         Vautomatic_hscroll_step to compute the amount of window scrolling.
27303 2002-02-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27305         * xterm.c (x-autoselect-window): New variable.
27306         (note_mouse_movement): Use it.
27308         * keyboard.c: Do not include "systime.h" twice.
27310 2002-02-15  Andreas Schwab  <schwab@suse.de>
27312         * puresize.h (PURESIZE_RATIO): Increase to 9/5.
27314         * alloc.c (NSTATICS): Increase to 1280.
27316 2002-02-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
27318         * alloc.c (NSTATICS): Bump to 1026.
27320         * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
27321         (Vx_super_keysym): New variables.
27322         (syms_of_xterm): DEFVAR_LISP them.
27323         (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
27324         variables to determine which keys to use for the various modifiers.
27326 2002-02-13  Kim F. Storm  <storm@cua.dk>
27328         * window.c (Vmode_line_in_non_selected_windows): Removed.
27329         (mode_line_in_non_selected_windows): New variable.
27330         (syms_of_window): DEFVAR_BOOL it.
27332         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
27333         Use mode_line_in_non_selected_windows.
27334         (mode_line_in_non_selected_windows): Declare extern.
27335         (Vmode_line_in_non_selected_windows): Removed extern.
27337 2002-02-13  Richard M. Stallman  <rms@gnu.org>
27339         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
27340         (Fthis_single_command_keys, Fthis_single_command_raw_keys)
27341         (Fclear_this_command_keys): Doc fixes.
27343         * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
27344         (update_face_from_frame_parameter): Increment face_change_count
27345         and windows_or_buffers_changed to force redisplay using changed faces.
27347         * xdisp.c (QCpropertize): New variable.
27348         (mode_line_proptrans_alist): New variable.
27349         (display_mode_element): New arg PROPS; all calls changed.
27350         Implement this, for strings.
27351         Handle literal output of strings by sharing the
27352         main-line code for strings, using local var `literal'.
27353         Handle :propertize feature.
27354         (syms_of_xdisp): Initialze and staticpro QCpropertize and
27355         mode_line_proptrans_alist.
27357 2002-02-11  Kim F. Storm  <storm@cua.dk>
27359         * window.c (Vmode_line_in_non_selected_windows): New variable.
27360         (syms_of_window): DEFVAR_LISP it.
27362         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
27363         (CURRENT_MODE_LINE_FACE_ID): Use it.
27364         (Vmode_line_in_non_selected_windows): Declare extern.
27366         * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
27367         to get mode line face.
27369 2002-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
27371         * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
27372         variables; cus-start.el doesn't need them anymore.
27374 2002-02-09  Kim F. Storm  <storm@cua.dk>
27376         * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
27377         reduction.  This fixes a display problem where stray newlines were
27378         inserted in the window (corrected by C-l).  Clarified code (IMHO).
27380 2002-02-09  Eli Zaretskii  <eliz@is.elta.co.il>
27382         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
27384         * xdisp.c (display_mode_lines): Fix last change.
27386 2002-02-09  Jason Rumney  <jasonr@gnu.org>
27388         * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
27389         match each other.
27390         (w32_load_system_font): Prevent Cleartype fonts from loading.
27391         (Fx_show_tip): Ensure tip frames are above other topmost windows.
27393 2002-02-09  Kim F. Storm  <storm@cua.dk>
27395         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
27396         (CURRENT_MODE_LINE_HEIGHT): Use it.
27397         (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
27399         * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
27400         (pos_visible_p, handle_face_prop): Likewise.
27401         (display_mode_lines): Likewise, but for the real selected window.
27402         (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
27404         * xfaces.c (Qmode_line_inactive): New face variable for mode-line
27405         in non-selected windows.
27406         (realize_basic_faces): Realize it.
27407         (syms_of_term): Intern and staticpro it.
27409 2002-02-08  Kim F. Storm  <storm@cua.dk>
27411         * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
27412         Changed mail addresses to emacs-devel@gnu.org.
27414 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
27416         * fileio.c (Fsubstitute_in_file_name): If the file name includes
27417         ~user, and there's no such user, don't discard everything before ~user.
27419         * floatfns.c (Fround): Doc fix.
27421 2002-02-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27423         * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
27425 2002-02-07  Stefan Monnier  <monnier@cs.yale.edu>
27427         * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
27429 2002-02-07  Kim F. Storm  <storm@cua.dk>
27431         * keymap.c (where_is_internal): Only check whether definition is
27432         remapped if it fulfills is_command_symbol.
27434 2002-02-07  Andreas Schwab  <schwab@suse.de>
27436         * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
27438         * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
27440 2002-02-06  Kim F. Storm  <storm@cua.dk>
27442         * keymap.c (Fdefine_key): Allow symbol as KEY argument for
27443         defining command remapping.  Doc updated.
27444         (Flookup_key): Remap command through keymap if KEY is a symbol.
27445         (is_command_symbol): New function.
27446         (Fkey_binding): Use it.  New optional argument NO-REMAP.
27447         Doc updated.  Callers changed.  Perform command remapping via
27448         recursive call unless that arg is non-nil.
27449         (where_is_internal): New argument no_remap.  Callers changed.
27450         Call recursively to find original key bindings for a remapped
27451         comand unless that arg is non-nil.
27452         (Fwhere_is_internal): New optional argument NO-REMAP.
27453         Doc updated.  Callers changed.  Pass arg to where_is_internal.
27455         * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
27456         (is_command_symbol): Add prototype.
27458         * keyboard.c (Vthis_original_command): New variable.
27459         (syms_of_keyboard): DEFVAR_LISP it.
27460         (command_loop_1): Set it, and perform command remapping.
27462 2002-02-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27464         * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
27466 2002-02-06  Jason Rumney  <jasonr@gnu.org>
27468         * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
27470 2002-02-06  Eli Zaretskii  <eliz@is.elta.co.il>
27472         * charset.c (get_charset_id): Use if-else instead of ?:.
27474 2002-02-06  Richard M. Stallman  <rms@gnu.org>
27476         * filelock.c (S_ISLNK): Define if not defined.
27478 2002-02-03  Richard M. Stallman  <rms@gnu.org>
27480         * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
27482         * lread.c (read1): Redesign strategy for force_multibyte and
27483         force_singlebyte.  Now is_multibyte records whether read_buffer
27484         is multibyte.  Encountering any multibyte character makes it so.
27486 2002-02-02  Stefan Monnier  <monnier@cs.yale.edu>
27488         * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
27489         with the same sequence, map that sequence to f10 rather than f0.
27491 2002-02-03  Andreas Schwab  <schwab@suse.de>
27493         * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
27494         latter never being defined on GNU/Linux.
27496 2002-02-02  Eli Zaretskii  <eliz@is.elta.co.il>
27498         * xfaces.c (realize_default_face): Don't set the weight and slant of
27499         the default face to Qnormal, unless these attributes are unspecified.
27501 2002-02-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27503         * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
27504         Call cancel_hourglass unconditionally.
27506         * eval.c (Fsignal): Remove duplicated declaration of
27507         the variable `display_hourglass_p'.
27509 2002-01-31  Richard M. Stallman  <rms@gnu.org>
27511         * editfns.c (region_limit): Nicer error message.
27513         * coding.c (decode_composition_emacs_mule):
27514         Give up if NCOMPONENT gets too large to index `component'.
27516         * callint.c (check_mark): New arg to specify clearer error message.
27517         Callers changed.
27519 2002-01-27  Richard M. Stallman  <rms@gnu.org>
27521         * minibuf.c (Fcompleting_read): Doc fix.
27523 2002-01-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27525         * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
27526         (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
27527         Fix doc-strings.
27529 2002-01-26  Richard M. Stallman  <rms@gnu.org>
27531         * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
27533         * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
27534         and scroll_up_aggressively.
27536 2002-01-26  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27538         * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
27540 2002-01-25  Stefan Monnier  <monnier@cs.yale.edu>
27542         * textprop.c (Fnext_property_change, Fnext_single_property_change)
27543         (Fprevious_property_change, Fprevious_single_property_change):
27544         Stay within the narrowed-buffer boundaries.
27546 2002-01-25  Eli Zaretskii  <eliz@is.elta.co.il>
27548         * term.c (Ftty_display_color_cells): New function.
27549         (syms_of_term): Defsubr it.
27550         (Ftty_display_color_cells, Ftty_display_color_p): Change the
27551         argument name to DISPLAY.  Doc fix.
27553         * dispextern.h: Add prototype for set_tty_color_mode and
27554         tty_setup_colors.
27556 2002-01-24  Jason Rumney  <jasonr@gnu.org>
27558         * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
27559         If region left to draw is not what was expected, mark the frame as
27560         garbaged.
27562         * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
27563         Combine the regions returned by BeginPaint and GetUpdateRect.
27565 2002-01-23  Jason Rumney  <jasonr@gnu.org>
27567         * w32term.c (x_update_window_begin): Only hide caret if
27568         w32_use_visible_system_caret is set.
27569         (x_update_window_end): Only show caret if
27570         w32_use_visible_system_caret is set.
27571         (syms_of_w32term): Handle SystemParametersInfo call failing.
27573         * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
27575 2002-01-22  Richard M. Stallman  <rms@gnu.org>
27577         * unexelf.c (unexec): Define n so as to cause compilation error
27578         for the code where people have often written n instead of nn.
27580         * .gdbinit (hookpost-run): Defined.
27582 2002-01-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
27584         * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
27586 2002-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
27588         * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
27589         if fullscreen is being set.
27591 2002-01-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27593         * minibuf.c (Fminibuffer_contents)
27594         (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
27595         (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
27597 2002-01-21  Richard M. Stallman  <rms@gnu.org>
27599         * window.c (check_frame_size): Fix minimum height calculation.
27601 2002-01-20  Ken Raeburn  <raeburn@gnu.org>
27603         * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
27604         height before comparison.
27605         (WINDOW_WANTS_HEADER_LINE_P): Likewise.
27607 2002-01-20  Jason Rumney  <jasonr@gnu.org>
27609         * w32term.c (w32_system_caret_width): Remove.
27610         (w32_use_visible_system_caret): New user flag.
27611         (syms_of_w32term): DEFVAR_BOOL it.  Initialize based on whether
27612         Windows reports a screen reader running.
27613         (x_update_window_begin): Hide the system caret.
27614         (x_update_window_end): Show the system caret.
27615         (x_display_and_set_cursor): Don't draw a cursor when
27616         w32_use_visible_system_caret is set.  Do not adjust width.
27618         * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
27619         (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
27620         <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
27621         the user requests it.  Use system default width when creating.
27622         <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
27624         * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
27625         New window messages.
27627 2002-01-20  Richard M. Stallman  <rms@gnu.org>
27629         * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
27631 2002-01-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27633         * doprnt.c (doprnt1): Fix typos in error call.
27635 2002-01-20  Eli Zaretskii  <eliz@is.elta.co.il>
27637         * unexelf.c (unexec) [__sgi]: Support the .got sections.
27639 2002-01-20  Jason Rumney  <jasonr@gnu.org>
27641         * w32term.c (w32_native_per_char_metric): Don't trust the metrics
27642         that Windows returns.  If a double check fails, try to guess how
27643         ExtTextOut is going to act.
27645         * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
27646         in place of stricmp.
27647         (w32_list_synthesized_fonts): Removed.
27648         (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
27649         (struct enumfont_t): New element; list.
27650         (enum_font_cb2): List all style and charset variations of a font.
27651         (Fw32_select_font): New optional argument; include_proportional.
27652         Exclude vertical fonts.  Exclude proportional fonts unless
27653         include_proportional is non-nil.
27654         (w32_enable_synthesized_fonts): Change to a boolean.
27655         (Fw32_send_sys_command): Doc fix.
27657 2002-01-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27659         * dispnew.c (update_frame): Move the variable `tem' to the block
27660         where it is used.
27662 2002-01-19  Jason Rumney  <jasonr@gnu.org>
27664         * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
27665         call to face-set-after-frame-default.
27667 2002-01-18  Richard M. Stallman  <rms@gnu.org>
27669         * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
27670         (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
27672 2002-01-17  Richard M. Stallman  <rms@gnu.org>
27674         * window.c (enlarge_window): When exceeding size of parent,
27675         directly delete all the siblings instead of trying to resize it.
27677 2002-01-17  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27679         * term.c (set_tty_color_mode): Remove unused variable `tem'.
27681 2002-01-16  Henrik Enberg  <henrik@enberg.org>
27683         * lread.c (init_lread): Move the installed-lisp dirs later in the path.
27685 2002-01-16  Kim F. Storm  <storm@cua.dk>
27687         * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
27688         is invisible.  This can happen if cursor is on top line of a
27689         window, and we switch to a buffer with a header line.
27691         * w32term.c (x_erase_phys_cursor): Ditto.
27693 2002-01-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27695         * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
27696         `dont_resize' only when used.
27698         * xdisp.c: Remove forgotten extern declaration of `Qimage'.
27700 2002-01-15  Eli Zaretskii  <eliz@is.elta.co.il>
27702         * xdisp.c (display_mode_element): When computing charpos, depend
27703         on multibyteness of elt, not the text in field.
27705 2002-01-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27707         * buffer.c (Fkill_all_local_variables):
27708         Increment `update_mode_lines' only once.
27710 2002-01-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27712         * lisp.h (adjust_after_replace_noundo)
27713         (Fupdate_coding_systems_internal): Add prototypes.
27715         * sound.c (Fplay_sound): Initialize header_size also for :data case.
27717 2002-01-14  Eli Zaretskii  <eliz@is.elta.co.il>
27719         Support for the --color command-line argument and tty-color-mode
27720         frame parameter:
27722         * term.c (tty_default_color_capabilities, tty_setup_colors)
27723         (set_tty_color_mode): New functions.
27724         (term_init): Call tty_default_color_capabilities.
27725         (Qtty_color_mode_alist): New variable.
27726         (syms_of_term): Intern and staticpro it.
27728         * frame.c (store_frame_param): Call set_tty_color_mode for termcap
27729         frames.
27730         (do_switch_frame): For termcap frames, switch the tty
27731         color mode as specified by the frame's parameters.
27732         (Qtty_color_mode): New variable.
27733         (syms_of_frame): Intern and staticpro it.
27735         * emacs.c (USAGE2): Add the --color option.
27736         (standard_args): Ditto.
27738 2002-01-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
27740         * xterm.h (struct x_output): New members want_fullscreen,
27741         x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
27742         y_pixels_outer_diff.
27743         New enum for FULLSCREEN_* constants.
27744         (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
27745         is NULL.
27746         (x_fullscreen_adjust): Add prototype.
27748         * emacs.c (USAGE2): Add the new full-screen arguments.
27749         (standard_args): Ditto.
27751         * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
27752         New variables.
27753         (syms_of_xfns): Intern and staticpro them.
27754         (x_frame_parms) <"fullscreen">: New parameter.
27755         (x_fullscreen_move, x_set_fullscreen): New functions.
27756         (x_set_frame_parameters): Support for Qfullscreen.
27757         (x_real_positions): More accurate computation of the frame position.
27758         (x_figure_window_size): Support full-screen frames.
27759         (Fx_create_frame): Default the fullscreen parameter.
27761         * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
27762         (XTread_socket) <Expose>: Call x_check_fullscreen.
27763         <ConfigureNotify>: Don't resize to fullscreen.
27764         Call x_check_fullscreen_move, and set the want_fullscreen member of
27765         output_data.x.
27767 2002-01-13  Jason Rumney  <jasonr@gnu.org>
27769         * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
27770         for mice with more than 3 buttons.
27772         * w32term.c (parse_button): New parameter xbutton.  Callers changed.
27773         (w32_read_socket): Handle new "XBUTTON" messages.
27775         * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
27776         (syms_of_w32fns): DEFVAR_BOOL it.
27777         (w32_wnd_proc): Handle new "XBUTTON" messages.
27779 2002-01-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27781         * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
27783 2002-01-13  Andreas Schwab  <schwab@suse.de>
27785         * xterm.c (x_load_font): Never set fonts_changed_p to zero.
27787 2002-01-12  Andreas Schwab  <schwab@suse.de>
27789         * .gdbinit (xbuffer): Remove address operator since data is now a
27790         pointer.
27792 2002-01-11  Richard M. Stallman  <rms@gnu.org>
27794         * insdel.c (adjust_after_replace_noundo): New function.
27796         * coding.c (code_convert_region): Don't copy old text if undo disabled.
27798 2002-01-09  Jason Rumney  <jasonr@gnu.org>
27800         * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
27801         when checking for multiple frames.
27803 2002-01-08  Richard M. Stallman  <rms@gnu.org>
27805         * window.c (delete_window): Rewrite the code for changing the
27806         selected window to handle the case where WINDOW is not a leaf.
27808 2002-01-07  Eli Zaretskii  <eliz@is.elta.co.il>
27810         * process.c (send_process): Set src_multibyte to 1 after the call
27811         top setup_coding_system, not before the call.
27813 2002-01-07  Jason Rumney  <jasonr@gnu.org>
27815         * xmenu.c (set_frame_menubar, xmenu_show):
27816         (xdialog_show): Initialize wv->help to Qnil.
27818         * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
27819         (w32_dialog_show): Initialize wv->help to Qnil.
27821 2002-01-06  Jason Rumney  <jasonr@gnu.org>
27823         * xmenu.c (single_submenu): Initialize wv->help to Qnil.
27825         * w32menu.c (w32_menu_display_help): Revert last change.
27827         * xmenu.c (menu_highlight_callback): Revert last change.
27829 2002-01-06  Andreas Schwab  <schwab@suse.de>
27831         * insdel.c (make_gap_larger): Make sure buffer size does not
27832         overflow range of int.
27834 2002-01-05  Jason Rumney  <jasonr@gnu.org>
27836         * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
27837         OVERLAPS_P.
27839         * w32menu.c (w32_menu_display_help): Hide any tooltip window.
27841         * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
27842         to the left or to the right of the pointer, put it against
27843         the left screen edge.
27844         (x_frame_parms): Add missing braces around initializer.
27846         * w32term.c (x_setup_relief_colors): Don't compute an image's
27847         background color if it doesn't have a Pixmap.
27848         (notice_overwritten_cursor): Don't depend on
27849         output_cursor and updated_area.  Compare pixel coordinates with
27850         window's cursor pixel coordinates.
27851         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
27852         Call notice_overwritten_cursor with new arg list.
27853         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
27854         unconditionally.
27855         (x_draw_image_relief): Use predefined macro instead of
27856         constant when the value of `tool_bar_button_relief' is negative.
27858         * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
27860 2002-01-04  Richard M. Stallman  <rms@gnu.org>
27862         * xmenu.c (menu_highlight_callback): Hide any tooltip window.
27864 2002-01-03  Richard M. Stallman  <rms@gnu.org>
27866         * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
27867         (Fkey_binding): Try the `keymap' property map first.
27868         (Fdescribe_buffer_bindings): Show `keymap' property bindings before
27869         minor mode bindings.
27871 2002-01-03  Kim F. Storm  <storm@cua.dk>
27873         * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
27875 2002-01-02  Richard M. Stallman  <rms@gnu.org>
27877         * keyboard.c (read_key_sequence): Handle the keymap property
27878         before minor mode maps.
27880         * editfns.c (Fformat): Update thissize from field_width
27881         based on the actual width, in the string case.
27883 2002-01-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27885         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
27886         when used as truth value to prevent gcc warnings.
27888         * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
27889         * w32proc.c: Include <config.h>.
27891 2002-01-01  Andreas Schwab  <schwab@suse.de>
27893         * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
27894         not EMACS_INT, to make them compatible with DEFVAR_INT.
27895         * lisp.h (max_specpdl_size): Adjust declaration.
27897 2002-01-01  Richard M. Stallman  <rms@gnu.org>
27899         * print.c (print_object): Test print_escape_nonascii only for
27900         unibyte strings.
27901         (PRINTPREPARE): Once again bind Qprint_escape_nonascii
27902         when outputting to a multibyte buffer.
27904 2001-12-29  Richard M. Stallman  <rms@gnu.org>
27906         * print.c (print_object): In multibyte string, use hex escapes.
27907         Use octal only for unibyte strings.
27908         (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
27910         * lread.c (read_escape): New arg BYTEREP for reporting whether
27911         escape forces unibyte or multibyte.
27912         (read1): When reading a string, take note of that info.
27914 2001-12-29  Ken Raeburn  <raeburn@gnu.org>
27916         * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
27917         comparison to test lisp value returned by Fget.
27919 2001-12-29  Richard M. Stallman  <rms@gnu.org>
27921         * lisp.h (max_specpdl_size): Add declaration.
27923         * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
27925         * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
27926         Handle modifier bits.  Correct typo in error message.
27928 2001-12-28  Richard M. Stallman  <rms@gnu.org>
27930         * abbrev.c: Use the plist of an abbrev for multiple params if nec.
27931         (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
27932         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27933         Update calls to Fdefine_abbrev.
27934         (write_abbrev): Update for changed data format.
27935         Don't list "system" abbrevs.
27936         (Fexpand_abbrev): Update use count with new data format.
27937         (describe_abbrev): Update for changed data format.
27938         (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
27940         * config.in (HAVE_MBSINIT): Add #undef.
27942         * strftime.c (mbsinit): Define as no-op if not available.
27944         * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
27945         (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
27947         * keymap.c (Flookup_key): Error message if key has wrong data type.
27948         (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
27949         (exclude_key): New variable.
27951 2001-12-28  Gerd Moellmann  <gerd@gnu.org>
27953         * xterm.c (x_setup_relief_colors): Don't compute an image's
27954         background color if it doesn't have a Pixmap.
27956         * xterm.c (notice_overwritten_cursor): Don't depend on
27957         output_cursor and updated_area.  Compare pixel coordinates with
27958         window's cursor pixel coordinates.
27959         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
27960         Call notice_overwritten_cursor with new arg list.
27961         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
27962         unconditionally.
27964         * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
27965         height of the cursor line to the amount to scroll.
27967 2001-12-27  Richard M. Stallman  <rms@gnu.org>
27969         * intervals.c (set_point_both): The position after an invisible,
27970         intangible character is not an acceptable stopping point.
27972 2001-12-27  Ken Raeburn  <raeburn@gnu.org>
27974         * window.c (enlarge_window): In new preserve_before code, convert
27975         CURBEG from lisp object to integer before doing arithmetic.
27977 2001-12-27  Richard M. Stallman  <rms@gnu.org>
27979         * bytecode.c (Fbyte_code): Undo previous change.
27981 2001-12-26  Kim F. Storm  <storm@cua.dk>
27983         * keyboard.c (record_char): Ignore duplicate help-echo events only
27984         separated by mouse-movement.  When tracking mouse, only record
27985         first and last mouse-movement event in same window.
27986         Don't record mouse-movement events in keyboard macros.
27988 2001-12-25  Richard M. Stallman  <rms@gnu.org>
27990         * window.c (enlarge_window): New arg PRESERVE_BEFORE.  Callers changed.
27991         (Fenlarge_window): New arg PRESERVE_BEFORE.
27993         * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
27994         instead of Fstring_as_unibyte.
27996 2001-12-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27998         The following changes remove mocklisp support:
28000         * mocklisp.h, mocklisp.c: Files removed.
28002         * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
28003         `Qmocklisp' and `Qmocklisp_arguments'.
28004         Remove prototype of syms_of_mocklisp.
28006         * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
28008         * callint.c: Do not include mocklisp.h.
28009         (Fcall_interactively): Do not test for mocklisp case.
28011         * eval.c: Remove variables `Qmocklisp_arguments',
28012         `Vmocklisp_arguments' and `Qmocklisp'.  Remove prototype of ml_apply.
28013         (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
28014         Do not test for mocklisp case.
28015         (Fwhile): Remove unused variable `tem'.
28016         (syms_of_eval): Remove variable `moclisp-arguments'.
28018         * data.c (wrong_type_argument): Remove mocklisp case.
28020         * doc.c (Fdocumentation): Remove mocklisp case.
28022         * emacs.c (main): Do not call syms_of_mocklisp.
28024 2001-12-21  Richard M. Stallman  <rms@gnu.org>
28026         * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
28027         to the left or to the right of the pointer, put it against
28028         the left screen edge.
28030 2001-12-21  Eli Zaretskii  <eliz@is.elta.co.il>
28032         * Makefile.in (distclean): Remove .gdbinit if we are building
28033         outside the source tree.
28035 2001-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
28037         * w32.c (emacs_root_dir): New function.
28039         * msdos.c (emacs_root_dir): New function.
28041         * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
28042         of the current drive as the fallback for default_directory.
28044         * dired.c (file_name_completion): Run the elements of
28045         completion-ignored-extensions through ENCODE_FILE.
28047         * lisp.h (scmp): Remove prototype, since it's now a static
28048         function private to dired.c.
28050 2001-12-18  Richard M. Stallman  <rms@gnu.org>
28052         * dired.c (scmp): Function moved from minibuf.c.
28053         Delete multibyte handling--used only on encoded strings.
28055         * minibuf.c (scmp): Function moved to dired.c.
28057         * fns.c (merge): Add QUIT call.
28059 2001-12-18  Dave Love  <fx@gnu.org>
28061         * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
28062         language/georgian.el.
28064 2001-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
28066         * Makefile.in (lisp, shortlisp): Synchronize with changes to
28067         lisp/Makefile.in:DONTCOMPILE.
28069 2001-12-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28071         * xdisp.c (window_box_height): Do not return negative values.
28072         From Gerd Moellmann <gerd@gnu.org>.
28074         * keyboard.c (head_table): Add missing braces around initializer.
28076         * term.c (keys): Likewise.
28078         * xfns.c (x_frame_parms, visual_classes): Likewise.
28080 2001-12-17  Sam Steingold  <sds@gnu.org>
28082         * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
28083         patch (COMPOSING_P, not COMPOSING).
28085 2001-12-17  Richard M. Stallman  <rms@gnu.org>
28087         * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
28089         * coding.c (code_convert_region): Update coding->cmp_data->char_offset
28090         before calling decode_coding.
28092         * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
28094         * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
28095         instead of only for COMPOSITION_DISABLED.
28097 2001-12-16  Richard M. Stallman  <rms@gnu.org>
28099         * alloc.c (pure_alloc): After overflow, allocate just a small block.
28101         * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
28103         * buffer.h (struct buffer): New field `display_error_modiff'.
28104         * buffer.c (reset_buffer): Initialize `display_error_modiff'.
28106         * window.c (Frecenter): Clear display_error_modiff field.
28108         * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
28109         Call redisplay_window, but not if display_error_modiff field says no.
28110         (redisplay_window_error): New function.
28111         (displayed_buffer): New variable.
28112         (redisplay_internal, redisplay_windows): Call the new functions
28113         instead of redisplay_window directly.
28115 2001-12-15  Richard M. Stallman  <rms@gnu.org>
28117         * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
28119 2001-12-14  Andrew Innes  <andrewi@gnu.org>
28121         * makefile.w32-in (EMACSLOADPATH): Define.
28122         ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
28123         (bootstrap-temacs): Remove dependency on bootstrap-clean.
28125 2001-12-13  Eli Zaretskii  <eliz@is.elta.co.il>
28127         * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
28128         parameter have a numeric value all the time.
28130         * w32fns.c (x_report_frame_params): Likewise.
28132 2001-12-12  Richard M. Stallman  <rms@gnu.org>
28134         * fileio.c (Fwrite_region): Doc fix.
28136         * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
28137         (redisplay_internal): Call clear_image_cache only for window terminals.
28139 2001-12-12  Gerd Moellmann  <gerd@gnu.org>
28141         * xdisp.c (move_it_vertically_backward): Change heuristic
28142         for the case that we didn't move far enough initially.
28144         * window.c (Frecenter): Simplify computation in the case of window
28145         system frames and ARG < 0; use window_box_height.
28147 2001-12-11  Richard M. Stallman  <rms@gnu.org>
28149         * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
28150         * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
28152 2001-12-11  Andrew Innes  <andrewi@gnu.org>
28154         * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
28155         arg is negative.
28157 2001-12-11  Richard M. Stallman  <rms@gnu.org>
28159         * m/hp800.h: Split the __hpux conditional into the parts
28160         that are right for GNU/Linux too and the parts that are not.
28161         Use the former if GNU_LINUX.
28162         (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
28164         * s/gnu-linux.h (GNU_LINUX): Defined.
28166 2001-12-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28168         * macros.c, msdos.c, w16select.c: Change doc-string comments to
28169         `new style' [w/`doc:' keyword].
28171 2001-12-10  Jason Rumney  <jasonr@gnu.org>
28173         * w32menu.c (w32_free_submenu_strings): Clear menu item struct
28174         before using.
28176 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28178         * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
28179         keyword].
28181 2001-12-09  Eli Zaretskii  <eliz@is.elta.co.il>
28183         * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
28185         * s/hpux10.h (srand48): Don't undefine.
28187 2001-12-09  Jason Rumney  <jasonr@gnu.org>
28189         * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
28190         Add comment to explain where the struct came from.
28191         (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
28192         (add_menu_item): Process pop-up menus first to avoid memory leak.
28193         (add_menu_item, w32_menu_display_help): Use `help' field as
28194         Lisp_Object.
28195         (w32_free_submenu_strings): Only free owner-drawn strings.
28197 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28199         * COPYING: Moved back.
28201         * charset.c (char_to_string_1, translate_char, Fdefine_charset):
28202         Add parentheses around && within ||.
28204         * indent.c (compute_motion): Likewise.
28206         * intervals.c (merge_properties_sticky): Likewise.
28208         * coding.c (setup_coding_system, shrink_encoding_region)
28209         (Fdecode_sjis_char): Likewise.
28211 2001-12-07  Andreas Schwab  <schwab@suse.de>
28213         * xdisp.c (display_mode_element): Don't read past end of string if
28214         it ends with '%'.
28216         * alloc.c (inhibit_garbage_collection): Don't exceed value an int
28217         can hold.
28219         * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
28220         Rename from most_positive_fixnum and most_negative_fixnum, resp., and
28221         type changed to Lisp_Object.
28222         (syms_of_data): DEFVAR_LISP them.
28224 2001-12-07  Richard M. Stallman  <rms@gnu.org>
28226         * callproc.c (init_callproc): Set Vdata_directory based on the source
28227         location whenever Emacs was run uninstalled.
28229 2001-12-06  Paul Eggert  <eggert@twinsun.com>
28231         * config.in (HAVE_WORKING_VFORK): New #undefs.
28232         * process.c (create_process):
28233         Use HAVE_WORKING_VFORK, not HAVE_VFORK.
28234         * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
28235         * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
28236         * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
28237         * m/intel386.h (HAVE_VFORK): Likewise.
28238         * m/mips-siemens.h (HAVE_VFORK): Likewise.
28239         * m/mips.h (HAVE_VFORK): Likewise.
28240         * s/freebsd.h (vfork): Remove #define.
28241         * s/lynxos.h (HAVE_VFORK): Remove #undef.
28242         * s/usg5-4-2.h: Fix comment about vfork.
28244 2001-12-06  Richard M. Stallman  <rms@gnu.org>
28246         * s/hpux10.h (random): Add undef.
28247         (HAVE_RANDOM): Define it just once.
28249 2001-12-06  Stefan Monnier  <monnier@cs.yale.edu>
28251         * eval.c: Undo last change: the standard syntax is not wanted.
28253 2001-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
28255         * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
28256         scroll bars of the frame before deleting the frame itself.  If the
28257         frame has a widget, delete the frame with XtDestroyWidget, and do
28258         not call XDestroyWindow before that.
28260 2001-12-06  Kim F. Storm  <storm@cua.dk>
28262         * xfns.c (x_report_frame_params): Return actual fringe widths.
28264         * w32fns.c (x_report_frame_params): Return actual fringe widths.
28266 2001-12-05  Andrew Innes  <andrewi@gnu.org>
28268         * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
28269         excessively large.
28271         * insdel.c (make_gap_larger): New function.
28272         (make_gap_smaller): New function.
28273         (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
28274         Call make_gap_smaller if arg is negative.
28276 2001-12-04  Stefan Monnier  <monnier@cs.yale.edu>
28278         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
28279         Pass a dummy argument when calling interrupt_signal.
28280         (parse_menu_item): Mark disabled items before checking for empty def.
28281         (read_char_minibuf_menu_prompt): Make safety more visible.
28282         (read_key_sequence): Add a `first_unbound' variable.
28283         Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
28284         unbound prefix as soon as we can detect it.
28286         * doc.c (Fsnarf_documentation): Add prototype.
28287         (get_doc_string): Handle negative arguments.
28288         (Fdocumentation): Use AREF and ASIZE.
28289         Move the calls to get_doc_string to a single place.
28290         Don't confuse an interactive-spec for a docstring reference.
28291         (Fdocumentation_property): Take advantage of the fact that
28292         get_doc_string now ignores the sign of the docstring position.
28294         * eval.c: Use standard syntax for usage in docstrings.
28296 2001-12-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28298         * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
28300 2001-12-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28302         * xterm.c (x_draw_image_relief): Use predefined macro instead of
28303         constant when the value of `tool_bar_button_relief' is negative.
28305 2001-12-02  Richard M. Stallman  <rms@gnu.org>
28307         * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
28308         (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
28310         * fileio.c (read_non_regular): Delete Fsignal call.
28312 2001-12-01  Stefan Monnier  <monnier@cs.yale.edu>
28314         * lisp.h (run_hook_list_with_args): Undo last change.
28316 2001-12-01  Gerd Moellmann  <gerd@gnu.org>
28318         * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
28320 2001-12-01  Jason Rumney  <jasonr@gnu.org>
28322         * window.c (Qleft_fringe, Qright_fringe): Remove.  Now in frame.c.
28324         * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
28325         [!WM_MOUSELEAVE]: Define.
28327         * w32menu.c (current_popup_menu, get_menu_item_info):
28328         (set_menu_item_info): New vars.
28329         (set_frame_menubar): Doc fix clarifying GC interaction with menus.
28330         (w32_menu_show): Set current_popup_menu.
28331         (add_menu_item): Allocate new strings for owner-drawn menu items
28332         and help strings.
28333         Use owner-draw for disabled menu items again.
28334         (w32_menu_display_help): Ignore owner-drawn items and popup menus.
28335         (w32_free_submenu_strings, w32_free_menu_strings): New functions.
28337         * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
28338         (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
28339         <WM_EXITMENULOOP>: Free menu strings.
28340         <WM_MOUSELEAVE>: Stop tracking mouse.
28341         (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
28343         * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
28344         and mouse face.
28346 2001-12-01  Kim F. Storm  <storm@cua.dk>
28348         The following changes add left-fringe and right-fringe
28349         frame parameters to adjust fringe widths, or remove one or
28350         both fringes.
28352         * frame.h (struct frame): Remove trunc_area_pixel_width and
28353         trunc_area_cols fields.
28354         (Qleft_fringe, Qright_fringe): Declare.
28355         (FRAME_RIGHT_FRINGE_WIDTH): New macro.
28357         * frame.c (Qleft_fringe, Qright_fringe): New vars.
28358         (syms_of_frame): Initialize them.
28360         * window.c (coordinates_in_window): Handle separate left and right
28361         fringe widths.
28363         * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
28364         and fringe_cols fields.
28365         (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
28366         (FRAME_X_FRINGE_COLS): Use fringe_cols field.
28367         (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
28368         (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
28369         (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
28370         (x_compute_fringe_widths): Add prototype.
28372         * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
28373         fill fringe evenly with small dashes.
28374         (x_draw_fringe_bitmap): Clear background if necessary.  Align and
28375         clip the new ZV bitmap to avoid jitter between rows.
28376         (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
28377         background.  Don't draw fringe bitmaps if fringe width is zero.
28378         (x_compute_fringe_widths): New function.
28379         (x_new_font, x_set_window_size_1): Use it.
28381         * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
28382         (x_set_frame_parameters): Process `font' parameter before other
28383         parameters as fringe widths depend on it.
28384         (x_set_fringe_width): New function.
28385         (x_figure_window_size): Use x_compute_fringe_widths.
28386         (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
28387         parameters.
28389         * widget.c (set_frame_size): Use x_compute_fringe_widths.
28390         (EmacsFrameSetCharSize): Ditto.
28392         * w32term.h: Merged changes from xterm.h.
28393         * w32term.c: Merged changes from xterm.c.
28394         * w32fns.c: Merged changes from xfns.c.
28396 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28398         * COPYING: Removed.
28400 2001-11-29  Dave Love  <fx@gnu.org>
28402         * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
28403         extra extra slot.
28404         (detect_coding_mask): Fix call of detect_coding_iso2022.
28406 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28408         * fileio.c (file-name-coding-system)
28409         (default-file-name-coding-system): Doc fix (links to referenced
28410         variables added).
28412 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
28414         * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
28415         Add dummy uses of gcproN variables.
28417         * category.c (describe_category, describe_category_1)
28418         (Fdescribe_categories): Remove.  (Moved to lisp/help-fns.el.)
28419         (syms_of_category): Don't defsubr Sdescribe_categories.
28421 2001-11-28  Richard M. Stallman  <rms@gnu.org>
28423         * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
28425         * Makefile.in (lispdir): New variable, referring to build dir.
28426         (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
28428 2001-11-28  Andrew Innes  <andrewi@gnu.org>
28430         * w32menu.c (w32_menu_display_help): Actually add the new argument
28431         OWNER.
28433 2001-11-28  Jason Rumney  <jasonr@gnu.org>
28435         * w32menu.c (add_menu_item): Do not use owner-draw for disabled
28436         menu items.  From David Ponce <dponce@wanadoo.fr>.
28437         (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
28438         conditionally.
28439         (w32_menu_display_help): New argument OWNER.  Rewritten to store a
28440         help event in the owner frame's keyboard buffer.
28442         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
28443         (Fx_show_tip): Don't subtract last width from row width.
28445         * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
28446         (w32_read_socket): Use EQ to compare frames.
28448 2001-11-28  Gerd Moellmann  <gerd@gnu.org>
28450         * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
28451         OVERLAPS_P.
28453 2001-11-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28455         * xdisp.c (message_dolog): Remove unused variables `gcpro2',
28456         `gcpro3' and `gcpro4'.
28458         * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
28460 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
28462         * ccl.c: Use AREF and ASIZE.
28464 2001-11-27  Stefan Monnier  <monnier@cs.yale.edu>
28466         * lisp.h (run_hook_list_with_args): Remove.
28467         (LIST_END_P): Fix call to wrong_type_argument.
28468         (make_fixnum_or_float): Use EMACS_INT rather than int.
28470 2001-11-26  Stefan Monnier  <monnier@cs.yale.edu>
28472         * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
28473         (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
28475         * eval.c: Use AREF and ASIZE.
28476         (Ffetch_bytecode): Add the file name to the error message.
28478         * fileio.c (Ffind_file_name_handler): Give precedence to handlers
28479         which match the end of the file-name.
28480         (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
28481         is not a valid env var, but leave it as is instead.
28483         * keymap.c (access_keymap): Handle t bindings like nil bindings.
28484         Make nil bindings in char-tables transparent.
28485         (store_in_keymap): Turn a nil binding into a t binding for char-tables.
28487 2001-11-26  Richard M. Stallman  <rms@gnu.org>
28489         * textprop.c (set_text_properties_1): Allow START, END in either order.
28490         Do nothing if range is empty.
28492         * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
28494         * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
28495         (clean): Not here.
28497 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
28499         * textprop.c (set_text_properties_1): Clearly mark that the
28500         interval should not be empty.
28502         * intervals.c (graft_intervals_into_buffer):
28503         Don't call set_text_properties_1 on an empty interval.
28505 2001-11-25  Richard M. Stallman  <rms@gnu.org>
28507         * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
28509         * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
28510         don't lose the data in it.
28512 2001-11-25  Juanma Barranquero  <lektu@terra.es>
28514         * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
28516         * buffer.c (Fkill_buffer): Likewise.
28518         * print.c (temp_output_buffer_setup): Likewise.
28520 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
28522         * xfaces.c (merge_face_heights): Coerce back to int explicitly.
28524 2001-11-25  Eli Zaretskii  <eliz@is.elta.co.il>
28526         * window.c (Fset_window_vscroll): Doc fix.  From Kalle Olavi
28527         Niemitalo <kon@iki.fi>.
28529 2001-11-25  Jason Rumney  <jasonr@gnu.org>
28531         * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
28533         * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
28534         (Fx_show_tip): Block input during frame creation.
28535         (Fx_show_tip, Fx_hide_tip): Enable.
28537 2001-11-24  Richard M. Stallman  <rms@gnu.org>
28539         * lread.c (Fload): Detect recursive load error for more than 3
28540         nestings of the same file.
28541         (Vrecursive_load_depth_limit): Variable deleted.
28542         (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
28544 2001-11-24  Jason Rumney  <jasonr@gnu.org>
28546         * xfns.c (compute_tip_xy): Initialize root_x and root_y from
28547         mouse position if either left or top is not specified.
28549         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
28550         <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
28551         (my_create_tip_window, Fx_show_tip): Adjust size for external border.
28552         (my_create_tip_window): Assign tip_window.
28553         (x_create_tip_frame): Use same defaults as X.
28554         (compute_tip_xy): Remove unused variable.  Use full screen width.
28555         (Fx_show_tip): Do not double height.  Call ShowWindow directly.
28557         * w32term.c (x_after_update_window_line): Doc fix.
28558         (w32_read_socket): Doc fix.  Avoid SET_FRAME_GARBAGED for tip
28559         frames.
28560         <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
28562         * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
28563         for all Windowed systems.
28565 2001-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
28567         * msdos.c (IT_clear_screen): If the frame's faces are not yet
28568         realized, use the initial screen colors to clear the screen.
28570 2001-11-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28572         * textprop.c (Fset_text_properties): Remove unused variables
28573         `unchanged', `prev_changed', `s' and `len'.
28575         * search.c (Freplace_match): Remove unused variable `inslen'.
28577         * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
28579 2001-11-22  Jason Rumney  <jasonr@gnu.org>
28581         * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
28582         (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
28583         (my_create_tip_window): New function.
28584         (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
28585         (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
28587 2001-11-20  Jason Rumney  <jasonr@gnu.org>
28589         * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
28590         (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
28592         * w32fns.c (Vw32_system_coding_system): Remove.
28593         (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
28595 2001-11-19  Stefan Monnier  <monnier@cs.yale.edu>
28597         * fileio.c (Fwrite_region): Move choose_write_coding_system to
28598         after build_annotations.
28600         * syntax.c (describe_syntax): Add dummy arg.
28601         (describe_syntax_1): Update call to describe_vector.
28603         * category.c (describe_category): Add dummy arg.
28604         (describe_category_1): Update call to describe_vector.
28606         * keymap.c (Fdescribe_vector): Add `describer' parameter.
28607         (describe_command, describe_translation): Add dummy second param.
28608         (describe_map): Call elt_describer with two arguments.
28609         (describe_vector_princ): Add `fun' parameter.
28610         Call it instead of the hardcoded `princ'.
28611         (describe_vector): Add arg `args'.
28612         Pass it as a new second argument to elt_describer.
28614         * keymap.h (describe_vector): Update prototype.
28616         * frame.c: Don't include keymap.h any more.
28617         (keys_of_frame): Remove.
28619         * lisp.h (keys_of_frame): Remove declaration.
28621         * emacs.c (main): Don't call `keys_of_frame' any more.
28623 2001-11-14  Andreas Schwab  <schwab@suse.de>
28625         * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
28626         if defined, 0 otherwise.
28627         (MAP_FAILED): Define if not defined and use it to test mmap failure.
28628         (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
28630 2001-11-19  Richard M. Stallman  <rms@gnu.org>
28632         * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
28634 2001-11-18  Jason Rumney  <jasonr@gnu.org>
28636         * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
28637         (x_draw_bar_cursor): If the background color of the glyph under
28638         the cursor equals the frame's cursor color, use the glyph's
28639         foreground color for drawing the bar cursor.
28640         (x_after_update_window_line): Clear internal border in different
28641         circumstances.
28642         (w32_set_vertical_scroll_bar): Check for width and height > 0.
28643         (w32_draw_relief_rect): Correct relief by 1 pixel.
28644         (x_set_glyph_string_background_width):
28645         Set extends_to_end_of_line_p if the row's fill_line_p is set and
28646         drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
28647         (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
28648         if cursor_in_non_selected_windows is false.
28649         (show_mouse_face): Clean up.  Recognize overwritten cursor differently.
28650         (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
28651         Notice if cursor gets overwritten.
28652         (notice_overwritten_cursor): Renamed from
28653         note_overwritten_text_cursor.  Rewritten to take glyph widths
28654         into account, and to take X positions as parameters.
28655         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
28656         around call to x_draw_glyphs.
28657         (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
28658         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
28659         color to use for image glyph reliefs.
28660         (x_draw_image_relief): Accept zero tool_bar_button_relief.
28661         (glyph_rect): Remove unused variable `area'.
28663         * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
28664         some items.
28665         (x_set_internal_border_width): Set frame garbaged when window
28666         doesn't exist yet.
28667         (Fx_create_frame): Accept zero tool_bar_button_relief.
28668         (x_clear_image_1, four_corners_best, image_background)
28669         (image_background_transparent): New functions.
28670         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
28671         (gs_format): Add `:background' entry.
28672         (lookup_image): Set IMG's background color if specified.
28673         (pbm_load, xbm_load_image, png_load): Set IMG's background field
28674         when appropriate.
28675         (x_clear_image_1): Reset `background_valid' and
28676         `background_transparent_valid' fields.
28677         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
28678         calculating it here.  Set IMG's background_transparent field.
28679         (enum xpm_keyword_index): Add XPM_BACKGROUND.
28680         (enum png_keyword_index): Add PNG_BACKGROUND.
28681         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
28682         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
28683         (enum gif_keyword_index): Add GIF_BACKGROUND.
28684         (enum gs_keyword_index): Add GS_BACKGROUND.
28685         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
28686         Pre-calculate image background color where necessary.
28687         (x_create_x_image_and_pixmap, xbm_load, gs_load):
28688         Use display info's n_cbits entry for screen depth.
28689         (Fx_show_tip): Remove unused variables `buffer', `top',
28690         `left', `max_width' and `max_height'.
28692         * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
28694 2001-11-18  Gerd Moellmann  <gerd@gnu.org>
28696         * puresize.h (BASE_PURESIZE): Increase to 750000.
28698 2001-11-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28700         * frame.c (Fframe_live_p): Doc fix.
28702 2001-11-18  Richard M. Stallman  <rms@gnu.org>
28704         * xdisp.c (message_dolog_marker1, message_dolog_marker2)
28705         (message_dolog_marker3): New static variables hold three markers.
28706         (syms_of_xdisp): Initialize and staticpro them.
28707         (message_dolog): Use message_dolog_marker1..3 instead of
28708         allocating markers each time.  Unchain them when done.
28710 2001-11-17  Richard M. Stallman  <rms@gnu.org>
28712         * doc.c (Fsnarf_documentation): Doc fix.
28714 2001-11-17  Andreas Schwab  <schwab@suse.de>
28716         * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
28718 2001-11-17  Richard M. Stallman  <rms@gnu.org>
28720         * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
28722 2001-11-17  Jason Rumney  <jasonr@gnu.org>
28724         * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
28726 2001-11-17  Gerd Moellmann  <gerd@gnu.org>
28728         * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
28729         with invalid position.
28731 2001-11-16  Richard M. Stallman  <rms@gnu.org>
28733         * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
28735         * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
28736         * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
28737         * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
28739         * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
28741 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
28743         * fileio.c (build_annotations): Split off the tail.
28744         (build_annotations_2): New fun.  Extracted from build_annotations.
28745         (Fwrite_region): Split the call to build_annotations into two
28746         calls to build_annotations and build_annotations_2.
28748 2001-11-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28750         * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
28751         clear_waiting_for_input with argument.
28753         * xterm.h (x_update_cursor): Remove duplicated prototype.
28755         * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
28757         * xterm.c (waiting_for_input): Remove unnecessary declaration.
28759         * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
28761 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
28763         * fileio.c (choose_write_coding_system): New fun, extracted
28764         from Fwrite_region.
28765         (Fwrite_region): Use it.
28767         * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
28768         (funcall_lambda, run_hook_with_args): Make static and add prototype.
28769         (ml_apply, find_handler_clause): Add prototype.
28771 2001-11-16  Eli Zaretskii  <eliz@gnu.org>
28773         * config.in: Add #undef HAVE_COFF_H.
28775         * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
28776         Required for ISC 4.1.
28778 2001-11-16  Eli Zaretskii  <eliz@is.elta.co.il>
28780         * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
28781         Andrew Wiseman <a.wiseman@btclick.com>.
28783 2001-11-16  Kim F. Storm  <storm@cua.dk>
28785         The following changes are made to clean up the various internal
28786         references to the fringes to actually use the term `fringe' for
28787         them.  Previously, they were called `flags areas', `bitmap areas',
28788         `left/right side of windows', or implicitly as `flags' or
28789         `bitmaps':
28791         * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
28792         Comments fixed.  Use renamed symbols.
28794         * dispnew.c: Comment fix.  Use renamed symbols.
28796         * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
28797         (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
28798         (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
28800         * msdos.c: Comment fix.
28802         * w32fns.c: Use renamed symbols.
28804         * w32term.c: Comment fixes.  Use renamed symbols.
28805         (fringe_bitmap_type): Renamed from bitmap_type.
28806         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
28807         (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
28808         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
28810         * w32term.h: Comment fixes.  Use renamed symbols.
28811         (fringes_extra): Renamed from flags_areas_extra.
28812         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
28813         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
28814         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
28815         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
28816         (FRAME_X_LEFT_FRINGE_WIDTH):
28817         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
28818         (FRAME_X_RIGHT_FRINGE_WIDTH):
28819         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
28821         * widget.c: Use renamed symbols.
28823         * window.c: Comment fixes.  Use renamed symbols.
28824         (coordinates-in-window-p): Doc fix.
28826         * xdisp.c: Comment fixes.  Use renamed symbols.
28828         * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
28830         * xfns.c: Use renamed symbols.
28832         * xterm.c: Comment fixes.  Use renamed symbols.
28833         (fringe_bitmap_type): Renamed from bitmap_type.
28834         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
28835         (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
28836         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
28838         * xterm.h: Comment fixes.  Use renamed symbols.
28839         (fringes_extra): Renamed from flags_areas_extra.
28840         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
28841         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
28842         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
28843         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
28844         (FRAME_X_LEFT_FRINGE_WIDTH):
28845         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
28846         (FRAME_X_RIGHT_FRINGE_WIDTH):
28847         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
28849 2001-11-15  Jason Rumney  <jasonr@gnu.org>
28851         * w32menu.c (add-menu-item): Make help_echo and radio buttons
28852         work for most menu items.  From David Ponce
28853         <david.ponce@wanadoo.fr>.
28855 2001-11-15  Gerd Moellmann  <gerd@gnu.org>
28857         * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
28858         Some x_set_* function expect to be called even if old and new
28859         value are equal.
28861         * xdisp.c (build_desired_tool_bar_string): Accept zero
28862         tool_bar_button_relief.
28864         * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
28866         * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
28868         * xterm.c (x_draw_bar_cursor): If the background color of the
28869         glyph under the cursor equals the frame's cursor color, use
28870         the glyph's foreground color for drawing the bar cursor.
28872         * dispnew.c (direct_output_forward_char): Fix character/byte
28873         position comparison.
28875 2001-11-15  Miles Bader  <miles@gnu.org>
28877         * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
28878         (Fdelete_field, Ffield_string, Ffield_string_no_properties):
28879         Update arguments to find_field.
28880         (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
28881         (Fconstrain_to_field): Use LIMIT arg to shorten search time.
28882         * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
28883         * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
28885 2001-11-14  Richard M. Stallman  <rms@gnu.org>
28887         * editfns.c (Fpropertize): Allow call with 1 arg.
28889         * dispextern.h (image_background, image_background_transparent):
28890         Conditionalize on HAVE_X_WINDOWS.
28892 2001-11-13  Richard M. Stallman  <rms@gnu.org>
28894         * print.c (Fprin1_to_string): Doc fix.
28896         * sunfns.c (Fsun_change_cursor_icon): Doc fix.
28898         * floatfns.c (Fceiling, Ffloor): Doc fixes.
28900         * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
28902         * fileio.c (Ffile_accessible_directory_p): Doc fix.
28904         * eval.c (syms_of_eval): Doc fix.
28906         * coding.c (syms_of_coding): Doc fix.
28908         * doc.c (Fsnarf_documentation): Doc fix.
28910         * dispnew.c (syms_of_display): Doc fix.
28912         * category.c (Fget_unused_category): Doc fix.
28914         * buffer.c (syms_of_buffer): Doc fixes.
28916 2001-11-14  Eli Zaretskii  <eliz@is.elta.co.il>
28918         * print.c (prin1, print): Doc fix.
28920 2001-11-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28922         * fontset.h: Remove declarations of variables
28923         `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
28925         * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
28926         `Vclip_large_size_font'.
28928 2001-11-13  Jason Rumney  <jasonr@gnu.org>
28930         * w32fns.c: Doc fix.
28932 2001-11-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28934         * xfaces.c (Fface_attributes_as_vector): Doc fix.
28936         * fns.c: Doc fix.
28938         * emacs.c: Doc fix.
28940         * coding.c: Doc fix.
28942         * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
28943         * fontset.c, insdel.c, keymap.c: Change doc-string comments to
28944         `new style' [w/`doc:' keyword].
28946 2001-11-12  Richard M. Stallman  <rms@gnu.org>
28948         * xterm.c (XTread_socket): Don't update focus for EnterNotify or
28949         LeaveNotify events.  Only FocusIn and FocusOut do that now.
28950         (x_display_and_set_cursor): Do display hollow cursors in active
28951         minibuffer windows when they are not selected.
28953 2001-11-12  Jason Rumney  <jasonr@gnu.org>
28955         * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
28956         * w32term.c: Change doc-string comments to `new style'
28957         [w/`doc:' keyword].  Doc fixes.
28959         * w32fns.c: Don't define max.
28960         (Fx_open_connection): Only execute once.
28962 2001-11-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28964         * ccl.c: Change macros to use do-while block instead of if-else.
28965         Use braces to follow GNU Coding Standards.
28967 2001-11-11  Richard M. Stallman  <rms@gnu.org>
28969         * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
28971         * lread.c (read_escape): Use end_of_file_error for reporting eof.
28973         * insdel.c (replace_range): Use adjust_markers_for_replace
28974         instead of adjust_markers_for_delete and adjust_markers_for_insert.
28976         * intervals.h (set_text_properties, set_text_properties_1): Declare.
28978         * textprop.c (set_text_properties_1): New subroutine
28979         broken out of set_text_properties.
28980         (set_text_properties): Use set_text_properties_1.
28982         * intervals.c (graft_intervals_into_buffer):
28983         Use set_text_properties_1 to clear out properties.
28985         * search.c (Freplace_match): Use replace_range to insert
28986         and delete.  Don't request property inheritance from
28987         surrounding text.
28989 2001-11-10  Jason Rumney  <jasonr@gnu.org>
28991         * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
28992         vertical fonts.  Allow them if face name is explicitly specified.
28993         Do not give up if we find a font that cannot be converted to an xlfd.
28995 2001-11-10  Gerd Moellmann  <gerd@gnu.org>
28997         * unexelf.c (unexec): Use mmap/munmap to allocate buffers
28998         instead of malloc/free.
29000 2001-11-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29002         * xfaces.c (merge_face_vectors): Use braces to follow GNU
29003         Coding Standards.
29004         (Finternal_set_lisp_face_attribute): Likewise.
29006         * buffer.c (Fbury_buffer): Likewise.
29008         * indent.c (current_column_1): Remove unused variable `prev_col'.
29010         * coding.c (encode_coding): Use precomputed value of `src'.
29011         (encode_coding): Remove unused variable `src_end'.
29012         (code_convert_region): Remove unused variables `count'.
29014 2001-11-07  Jason Rumney  <jasonr@gnu.org>
29016         * w32term.c (x_display_and_set_cursor): Do not move system caret
29017         if cursor_glyph is NULL.
29019 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29021         * keymap.c (access_keymap): Fix compilation error.
29023 2001-11-07  Miles Bader  <miles@gnu.org>
29025         * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
29027 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29029         * intervals.c (graft_intervals_into_buffer):
29030         Remove #ifdef'd-out code.
29031         (graft_intervals_into_buffer): Remove unused variable `middle'.
29033         * lread.c (Feval_region): Remove obsolete #ifdef'd-out
29034         code (eval-current-buffer).
29035         Change doc-string comments to `new style' [w/`doc:' keyword].
29037 2001-11-06  Richard M. Stallman  <rms@gnu.org>
29039         * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
29041 2001-11-06  Stefan Monnier  <monnier@cs.yale.edu>
29043         * lread.c (read1): Fix behavior with nested backquoting.
29045         * keyboard.c (make_lispy_event): Check integerness and fix
29046         Lisp_Object/int mixup.
29048 2001-11-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29050         * fns.c (copy_hash_table): Remove unused variable `v'.
29052         * fontset.c (fontset_font_pattern): Remove unused variable
29053         `family_registry'.
29055         * indent.c (current_column_1): Remove unused variable `prev_col'.
29057 2001-11-05  Richard M. Stallman  <rms@gnu.org>
29059         * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
29061         * buffer.c (Fkill_buffer): Don't delete auto save file
29062         if buffer is modified.
29064 2001-11-05  Andrew Innes  <andrewi@gnu.org>
29066         * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
29067         CHECK_NUMBER_CDR.
29069 2001-11-05  Richard M. Stallman  <rms@gnu.org>
29071         * unexelf.c (unexec): Minor changes; clean up comments.
29073 2001-11-05  Sam Steingold  <sds@gnu.org>
29075         * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
29077 2001-11-05  Andreas Schwab  <schwab@suse.de>
29079         * sound.c (sound_perror): Save errno from being clobbered.
29081 2001-11-05  Dale Hagglund  <rdh@yottayotta.com>
29083         * unexelf.c (unexec): Don't use `mmap'.  Instead, read and write
29084         the program image directly.
29086 2001-11-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29088         * buffer.h (Fbuffer_local_value): Add prototype.
29090 2001-11-04  Richard M. Stallman  <rms@gnu.org>
29092         * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
29093         and CHECK_BUFFER.
29095         * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
29096         (record_char): Likewise.
29098         * keyboard.c (make_lispy_event): Don't insist a drag event must
29099         move to a different buffer position.  Instead, check for moving at
29100         least double_click_fuzz.
29102         * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
29104         * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
29106         * indent.c (current_column_1, Fmove_to_column): Separate the code
29107         for display-table glyphs from the code for buffer text, to fix
29108         bugs in the former.
29110 2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>
29112         * buffer.c (Fbuffer_local_value): New function.
29113         (syms_of_buffer): Defsubr it.
29115         * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
29116         value of `cursor-in-non-selected-windows'.
29118         * lisp.h (Qcursor_in_non_selected_windows): New declaration.
29119         * xdisp.c (Qcursor_in_non_selected_windows): New variable.
29120         (syms_of_xdisp): Initialize it.
29122 2001-11-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29124         * xfns.c (Fx_create_frame): Doc fix.
29126         * coding.c: Change doc-string comments to `new style' [w/`doc:'
29127         keyword].
29129         * eval.c (top_level_value, top_level_set): Remove commented and
29130         #ifdef'd-out code.
29131         (Fdefvar): Fix usage in doc-string.
29133 2001-11-03  Richard M. Stallman  <rms@gnu.org>
29135         * xfns.c: Include unistd.h, if it exists.
29137         * editfns.c: Move the include of ctype.h after unistd.h.
29139         * gmalloc.c: Test BROKEN_PROTOTYPES.
29141 2001-11-03  Ken Raeburn  <raeburn@gnu.org>
29143         * lisp.h (CHECK_STRING_CAR): New macro.
29144         * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
29145         treating XCAR and XCDR as lvalues.
29146         (openp): Use CHECK_STRING_CAR.
29147         (read_list): Use XSETCDR instead of treating XCDR as lvalue.
29149 2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>
29151         * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
29152         (SIGMASKTYPE): Define.
29154         * syssignal.h (sigunblock): Don't define if already defined.
29156 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29158         * eval.c (debugger_may_continue, Vdebug_ignored_errors)
29159         (call_debugger, Fcondition_case, skip_debugger, unbind_to):
29160         Fix typos in comments.
29162         * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
29163         and #ifdef'd-out code.
29164         Fix and reindent comments.
29166         * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
29168         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
29169         argument `i' in macros.
29171         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
29172         `i' in macros.
29174         * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
29175         (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
29176         (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
29177         (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
29178         (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
29179         (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
29180         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
29181         (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
29182         in macros.
29184         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
29185         * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
29186         * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
29187         * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
29188         * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
29189         * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
29190         * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
29191         * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
29192         * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
29193         (remove unused second argument).
29195 2001-11-02  Stefan Monnier  <monnier@cs.yale.edu>
29197         * syntax.c (describe_syntax): New wrapper.
29198         (Finternal_describe_syntax_value): Rename from describe_syntax.
29199         Don't insert space at front and \n at the end.
29200         (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
29202         * regex.c (re_wctype): Try to fix some warnings.
29203         (regcomp, regexec): Don't forget the __restrict.
29205 2001-11-02  Richard M. Stallman  <rms@gnu.org>
29207         * textprop.c (Fget_char_property): Doc fix.
29209 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29211         * process.c (Fstart_process): Add usage to doc-string.
29213         * data.c (Fsetq_default): Ditto.
29215         * callint.c (Finteractive): Ditto.
29217 2001-11-01  Stefan Monnier  <monnier@cs.yale.edu>
29219         * macros.c: Don't include keymap.h any more.
29221 2001-11-01  Richard M. Stallman  <rms@gnu.org>
29223         * data.c (Fmake_local_variable): Doc fix.
29225         * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
29226         (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
29228         * keymap.c (Fdescribe_buffer_bindings): Print character property
29229         bindings along with or instead of the buffer local map.
29230         Make the overriding maps override what they should.
29232 2001-11-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29234         * window.c (grow_mini_window): Fix typo in comment.
29236 2001-11-01  Gerd Moellmann  <gerd@gnu.org>
29238         * xterm.c (x_scroll_bar_create): Check for width and height > 0.
29239         (XTset_vertical_scroll_bar): Likewise.
29241         * xfns.c (x_build_heuristic_mask): Use four_corners_best
29242         instead of IMAGE_BACKGROUND.
29244         * xfns.c (four_corners_best): Reindent.
29246         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
29247         Handle :box so that it is possible to specify sexprs.
29249 2001-10-31  Eli Zaretskii  <eliz@is.elta.co.il>
29251         * s/hpux11.h: New file.
29253 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29255         * emacs.c (USAGE1): Show command line option --no-window-system
29256         instead of --no-windows in usage.
29257         (standard_args): Rename --no-windows to --no-window-system.
29258         (bug_reporting_address): Follow Emacs coding conventions.
29260         * eval.c (Fcommandp): Doc fix.
29261         Change doc-string comments to `new style' [w/`doc:' keyword].
29263         * frame.c (Fframe_live_p): Doc fix.
29265         * buffer.c (selective-display-ellipses): Doc fix.
29267 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
29269         * lread.c (to_multibyte): Fix computation of new read_buffer_size.
29271         * xfaces.c (realize_x_face): If C is not a single-byte character,
29272         set the face's colors_copied_bitwise_p instead of the defaulted_p
29273         members which have a different meaning.
29274         (free_face_colors): Do nothing for a face whose colors have been
29275         copied bitwise.
29277         * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
29279 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29281         * marker.c, mocklisp.c: Change doc-string comments to `new style'
29282         [w/`doc:' keyword].
29284 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
29286         * fns.c (require_unwind): Return Lisp_Object.
29288 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29290         * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
29291         (last-input-char): Revert doc-string to be the same as the
29292         doc-string of `last-input-event'.
29294         * xdisp.c: Fix typos in comments.
29296 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
29298         * window.c (grow_mini_window): Handle case that the root
29299         window is already smaller than the nominal mininum height.
29301 2001-10-30  Stefan Monnier  <monnier@cs.yale.edu>
29303         * emacs.c (main): Don't call keys_of_macros any more.
29305         * lisp.h (keys_of_macros): Remove.
29307         * macros.c (keys_of_macros): Remove.
29309         * xfaces.c (Fface_attribute_relative_p): Declare args.
29311 2001-10-30  Jason Rumney  <jasonr@gnu.org>
29313         * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
29314         (enum_font_cb2): Ignore fonts with vertical orientation.
29316 2001-10-30  Richard M. Stallman  <rms@gnu.org>
29318         * keyboard.c (Finput_pending_p): Doc fix.
29320 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
29322         * xterm.c (x_after_update_window_line): Don't run the code
29323         clearing in borders for rows whose visible height is 0.
29325         * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
29326         resized_p flag is set.  If not set, use the much less flickering
29327         method previously used.
29329         * dispnew.c (change_frame_size_1): Set frame's resized_p.
29331         * frame.h (struct frame) <resized_p>: New member.
29333         * lread.c (to_multibyte): Ensure read_buffer is at least twice
29334         as large as the number of bytes to convert.
29336         * lread.c (to_multibyte): New function.
29337         (read1): Use it.
29339 2001-10-30  Eli Zaretskii  <eliz@is.elta.co.il>
29341         * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
29343 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
29345         * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
29346         (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
29347         if the row's fill_line_p is set and drawing the last glyph with
29348         DRAW_IMAGE_{RAISED,SUNKEN}.
29350         * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
29352 2001-10-29  Stefan Monnier  <monnier@cs.yale.edu>
29354         * xmenu.c: Include coding.h and charset.h.
29355         (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
29356         (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
29357         (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
29358         Explicitly set wv->help.  Use `TRUE' rather than `True'.
29359         (menu_help_callback): Use empty_string.
29361         * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
29362         (Fx_popup_dialog): Explicitly init f.
29363         (w32_menu_display_help): Use empty_string.
29365 2001-10-29  Richard M. Stallman  <rms@gnu.org>
29367         * fns.c (Frequire): Detect recursive try to require the same
29368         feature 3 or more levels deep, and get error.
29369         (require_unwind): New subroutine.
29370         (require_nesting_list): New variable.
29371         (syms_of_fns): Init and staticpro it.
29373         * print.c (print_object): Clarify indication of insertion type.
29375 2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>
29377         * coding.c (syms_of_coding): Document that locale-coding-system is
29378         used for decoding input on X.
29380         * window.c (Fscroll_left, Fscroll_right): Doc fix.
29382 2001-10-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29384         * keyboard.c (Finput_pending_p): Fix typo in doc-string.
29385         (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
29387 2001-10-29  Gerd Moellmann  <gerd@gnu.org>
29389         * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
29390         use NO_CURSOR if cursor_in_non_selected_windows is false.
29392         * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
29393         the slant attribute if FRAME is t.
29395         * xfns.c (x_set_internal_border_width): Set frame garbaged
29396         when X window doesn't exist yet.
29398         * xterm.c (x_after_update_window_line): Clear internal border
29399         in different circumstances.
29401         * xterm.c (XTread_socket) <KeyPress>: Don't use
29402         STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
29403         <handa@etl.go.jp>.
29405 2001-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
29407         * m/ibms390.h: New file.  From Adam Thornton
29408         <athornton@sinenomine.net>.
29410 2001-10-28  Gerd Moellmann  <gerd@gnu.org>
29412         * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
29414         * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
29415         a loop counter.
29417 2001-10-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29419         * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
29421         * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
29422         keyword].
29423         Fix typos in comments.
29425         * emacs.c (bug_reporting_address): New function.
29426         Use it when displaying usage message.
29428         * minibuf.c (read_minibuf): Remove unused external declaration of
29429         variable `Qread_only'.
29431         * keymap.c (access_keymap): Remove unused variable `charset'.
29433 2001-10-28  Miles Bader  <miles@gnu.org>
29435         * xfaces.c (merge_face_heights): Handle TO being relative as well.
29436         Remove #ifdef'd-out code.
29437         (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
29438         (syms_of_xfaces): Initialize them.
29440 2001-10-27  Jason Rumney  <jasonr@gnu.org>
29442         * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
29443         <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
29444         position using the system caret.
29446         * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
29447         (w32_system_caret_height, w32_system_caret_x)
29448         (w32_system_caret_y): New variables for tracking system caret.
29449         (w32_initialize): Initialize them.
29450         (x_display_and_set_cursor): Make system caret follow the active cursor.
29452         * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
29453         New messages types.
29455         * w32term.c (note_mouse_highlight): Clear old help_echo.
29457 2001-10-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29459         * xterm.c: Fix typo in a comment.
29461         * emacs.c: Fix typos in comments.
29462         Remove unnecessary spaces.
29463         Change doc-string comments to `new style' [w/`doc:' keyword].
29464         (USAGE2): Fix typos in usage string.
29466         * xterm.c: Fix typo in a comment.
29468         * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
29469         emacs.c.
29471 2001-10-27  Gerd Moellmann  <gerd@gnu.org>
29473         * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
29474         instead of 1/2 line_height in the heuristic for skipping
29475         farther backward when target_y was not reached.
29477         * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
29478         Display errno only if non-zero.
29479         (sound_warning): New function.
29480         (vox_configure): Don't treat failing to set sample rate as error.
29481         (various places): Improve error messages.
29483 2001-10-26  Eli Zaretskii  <eliz@is.elta.co.il>
29485         * fileio.c (Faccess_file): Run the argument filename through
29486         Fexpand_file_name, before using it.
29488         * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
29489         ring-bell-function.  Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
29491 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
29493         * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
29495         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
29496         Fix clearing in the case of scroll bars on the right.
29498 2001-10-26  Juanma Barranquero  <lektu@terra.es>
29500         * w32gui.h (XImage): Add a dummy typedef.
29502 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
29504         * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
29506 2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>
29508         * frame.c (Fframe_parameter): Fix last change.
29510         * fileio.c: Revert last change (which removed old commented-out
29511         version of expand-file-name).  Add a comment that explains why
29512         this old version should not be removed.
29514 2001-10-25  Gerd Moellmann  <gerd@gnu.org>
29516         * frame.c (Fframe_parameter): Fix a bug whereby some
29517         ``artificial'' frame parameters, like `minibuffer' were not
29518         obtained by calling Fframe_parameters.
29520         * xterm.c (show_mouse_face): Clean up.  Recognize overwritten
29521         cursor differently.
29523         * xdisp.c (move_it_vertically_backward): Compute line height
29524         differently.  Add heuristic to try to be more compatible to 20.x.
29526 2001-10-25  Stefan Monnier  <monnier@cs.yale.edu>
29528         * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
29530         * editfns.c (text_property_stickiness): Fix Lisp_Object used as
29531         boolean.
29533 2001-10-25  Miles Bader  <miles@gnu.org>
29535         * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
29536         BG is a pointer to a structure, not a structure.
29537         (gif_format, png_format): Add missing commas.
29539 2001-10-24  Richard M. Stallman  <rms@gnu.org>
29541         * xfaces.c (Fface_attributes_as_vector): New function.
29542         (syms_of_xfaces): Defsubr it.
29544 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29546         * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
29547         variable `area'.
29549 2001-10-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29551         * search.c (scan_newline): Remove unused variable `selective_display'.
29553 2001-10-25  Miles Bader  <miles@gnu.org>
29555         * dispextern.h (struct image): Add `background',
29556         `background_valid', and `background_transparent' fields.
29557         (image_background, image_background_transparent): New declarations.
29558         (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
29559         * xfns.c (image_background, image_background_transparent)
29560         (four_corners_best): New functions.
29561         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
29562         (gs_format): Add `:background' entry.
29563         (lookup_image): Set IMG's background color if specified.
29564         (pbm_load, xbm_load_image, png_load): Set IMG's background field
29565         when appropriate.
29566         (x_clear_image_1): Reset `background_valid' and
29567         `background_transparent_valid' fields.
29568         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
29569         calculating it here.  Set IMG's background_transparent field.
29570         (enum xpm_keyword_index): Add XPM_BACKGROUND.
29571         (enum png_keyword_index): Add PNG_BACKGROUND.
29572         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
29573         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
29574         (enum gif_keyword_index): Add GIF_BACKGROUND.
29575         (enum gs_keyword_index): Add GS_BACKGROUND.
29576         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
29577         Pre-calculate image background color where necessary.
29578         * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
29579         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
29580         color to use for image glyph reliefs.
29582 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
29584         * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
29585         in full-width rows.
29587         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
29588         Fix clearing of area not covered by scroll bar.
29590 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29592         * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
29593         and `real_start'.
29594         (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
29595         (glyph_rect): Remove unused variable `area'.
29597 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
29599         * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
29601         * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
29602         (row_containing_pos): Take additional argument DY.
29603         Treat rows ending in middle of char differently.
29604         (display_line): Handle tabs on window systems differently.
29606         * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
29607         with additional argument.
29609         * dispextern.h (row_containing_pos): Adjust prototype.
29611         * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
29612         (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
29613         (try_window_id, try_window_reusing_current_matrix)
29614         (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
29615         (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
29617 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29619         * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
29620         gnuemacs).
29621         (HAVE_BOXES): Fix typo in comment.
29622         (push_menu_pane): Fix typo in comment.
29624         * xdisp.c (display_prop_string_p): Remove unused local declaration
29625         of `Qwhen'.
29626         (single_display_prop_string_p): Remove unused local declarations
29627         of `Qwhen' and `Qmargin'.
29628         (string_buffer_position): Remove unused variable `around'.
29629         (store_frame_title): Remove unused variable `width'.
29631         * window.c: Don't define max.
29632         (coordinates_in_window): Remove unused variable `uy'.
29634         * widget.c: Don't define max.
29636         * process.c: Don't define max.
29637         (create_process): Remove unused variable `buffer'.
29639 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
29641         * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
29643 2001-10-23  Eli Zaretskii  <eliz@is.elta.co.il>
29645         * xfaces.c (Finternal_set_lisp_face_attribute)
29646         [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
29647         frame is on a windowed display.
29649 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
29651         * dispnew.c (sync_window_with_frame_matrix_rows):
29652         Fix handling of windows which aren't full-width, fix handling
29653         of marginal areas.
29655         * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
29657 2001-10-23  Andreas Schwab  <schwab@suse.de>
29659         * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
29660         LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
29662 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
29664         * xterm.c (x_draw_glyphs): Remove parameters READ_START and
29665         REAL_END.  Notice if cursor gets overwritten.
29666         (notice_overwritten_cursor): Take X positions as parameters.
29667         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
29668         around call to x_draw_glyphs.
29670 2001-10-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29672         * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
29673         instead of C) and usage.
29675         * editfns.c (char-to-string): Fix argument names (use CHAR instead
29676         of C) and usage.
29678         * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
29679         `left', `max_width' and `max_height'.
29681 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
29683         * xdisp.c (display_line): For a tab continued to the next line,
29684         set row's ends_in_middle_of_char_p.
29686 2001-10-22  Gerd Moellmann  <gerd@gnu.org>
29688         * xdisp.c (display_line): Fix computation of continuation lines
29689         width for TABs.
29691 2001-10-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29693         * xdisp.c (build_desired_tool_bar_string): Remove unused variable
29694         `Qlaplace'.
29696         * fileio.c: Remove unused code.
29698 2001-10-22  Miles Bader  <miles@gnu.org>
29700         * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
29701         (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
29702         Remove `DOC_STRINGS_IN_COMMENTS' cases.
29704 2001-10-21  Jason Rumney  <jasonr@gnu.org>
29706         * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
29708 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
29710         * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
29711         (Finsert_string): Avoid the multi-line string literals warning.
29713 2001-10-22  Miles Bader  <miles@gnu.org>
29715         * doc.c (Vhelp_manyarg_func_alist): Variable removed.
29716         (Fdocumentation): Don't use it.
29717         (syms_of_doc): Don't initialize it.
29719         * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
29720         * print.c (Fwith_output_to_temp_buffer): Likewise.
29721         * window.c (Fsave_window_excursion): Likewise.
29722         * editfns.c (Fsave_excursion, Fsave_current_buffer)
29723         (Fsave_restriction): Likewise.
29724         * eval.c (Frun_hooks, Frun_hook_with_args)
29725         (Frun_hook_with_args_until_failure)
29726         (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
29727         (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
29728         (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
29729         (Funwind_protect, Fcondition_case): Likewise.
29730         * coding.c (Ffind_operation_coding_system): Likewise.
29731         * keyboard.c (Ftrack_mouse): Likewise.
29733 2001-10-21  Miles Bader  <miles@gnu.org>
29735         * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
29736         (Fmake_hash_table): Add usage: string to doc string.
29737         * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
29738         (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
29739         (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
29740         * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
29741         (Fml_prefix_argument_loop): Likewise.
29743 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29745         * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
29747         * sysdep.c (init_sys_modes): Change doc-string comments to `new
29748         style' [w/`doc:' keyword].
29750         * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
29751         * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
29752         comments to `new style' [w/`doc:' keyword].
29754 2001-10-21  Jason Rumney  <jasonr@gnu.org>
29756         * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
29758         * w32term.c (remember_mouse_glyph): New function.
29759         (w32_mouse_position): Use it.
29760         (note_mouse_movement): If the mouse moved off the glyph, remember
29761         its new position.
29763         * w32term.h (struct w32_output): Correct spelling of x_compatible.
29764         (w32_display_info): Add mouse_face_overlay.
29766         * w32term.c (notice_overwritten_cursor): Renamed from
29767         note_overwritten_text_cursor.  Rewritten to take glyph widths into
29768         account.
29769         (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
29770         (fast_find_string_pos): New function.
29771         (fast_find_position): Return the correct vpos.  Add parameter
29772         STOP.  In the final row, stop before glyphs having STOP as object.
29773         Don't consider glyphs that are not from a buffer.
29774         (fast_find_position) [0]: Add a presumably more correct version
29775         for after 21.1.
29776         (expose_window_tree, expose_frame): Don't compute intersections here.
29777         (expose_window): Do it here instead.
29778         (expose_window_tree, expose_window, expose_line): Return 1 when
29779         overwriting mouse-face.
29780         (expose_window): If W is the window currently being updated, mark
29781         the frame garbaged.
29782         (expose_frame): If mouse-face was overwritten, redo it.
29783         (x_use_underline_position_properties): New variable.
29784         (syms_of_xterm): DEFVAR_BOOL it.
29785         (x_draw_glyph_string): Add comment to use it in future.
29786         (x_draw_glyph_string): Restore clipping after drawing box.
29787         Fix a computation of the underline position.
29788         (w32_get_glyph_string_clip_rect): Minor cleanup.
29789         (x_fill_stretch_glyph_string): Remove an assertion.
29790         (x_produce_glyphs): Don't convert multibyte characters
29791         to unibyte characters in unibyte buffers.
29792         (cursor_in_mouse_face_p): New function.
29793         (x_draw_stretch_glyph_string): Use it to choose a different GC
29794         when drawing a cursor within highlighted text.  Don't draw
29795         background again if it has already been drawn.
29796         (x_draw_glyph_string_box): Don't draw a full-width
29797         box just because the glyph row's full_width_p flag is set.
29798         (x_draw_glyphs): Fix computation of rightmost x for
29799         full-width rows.
29800         (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
29801         (w32_draw_relief_rect): Extend left shadow to the bottom and left;
29802         change bottom shadow accordingly.  Some cleanup.
29803         (x_update_window_end): Handle overwritten mouse face
29804         also for tool bar windows.
29805         (show_mouse_face): Set the glyph row's mouse_face_p flag also when
29806         DRAW is DRAW_IMAGE_RAISED.
29807         (clear_mouse_face): Return 1 if text with mouse face was
29808         actually redrawn.  Make the function static.
29809         Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
29810         optimize away highlighting if we pass over that same overlay again.
29811         (note_mouse_highlight): Call mouse_face_overlay_overlaps
29812         to detect a case where we have to highlight a different region
29813         despite not having left the currently highlighted region.
29814         Set mouse_face_overlay in the x_display_info.  Avoid changing the
29815         mouse pointer shape when show_mouse_face has already done it, or
29816         there is no need.  Handle mouse-face and help-echo in strings.
29817         (glyph_rect): New function.
29818         (w32_mouse_position): Use it to raise the threshold for mouse
29819         movement event generation.
29820         (w32_initialize_display_info): Initialize the x_display_info's
29821         mouse_face_overlay.
29822         (w32_set_vertical_scroll_bar): Don't clear a zero height
29823         or width area.
29824         (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
29825         a widget to zero height.
29827         * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
29828         Protect unibyte strings created by replacing their multibyte
29829         equivalents in menu_items.
29830         (w32_menu_show): Don't overwrite an item's name with its key
29831         description in case the description is a multibyte string.
29832         (single_submenu): Some cleanup.
29834         * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
29835         (postprocess_image): New function.
29836         (lookup_image): Call it for all image types except PostScript.
29837         (x_kill_gs_process): Call postprocess_image.
29838         (tiff_error_handler, tiff_warning_handler): New functions.
29839         (tiff_load): Install them as handlers.
29840         (x_kill_gs_process): Recognize if someone has cleared the image
29841         cache under us.
29842         (valid_image_p): Protect better against invalid image
29843         specifications.  Previous code could signal an error.
29844         (Fx_hide_tip, Fshow_tip): Doc fix.
29845         (Fv_max_tooltip_size): New variable.
29846         (syns_of_xfns): DEFVAR_LISP it.
29847         (Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
29848         window buffer to *tip* right after creating the frame.  Set frame's
29849         window_width.  Use a maximum tooltip size specified by
29850         Vx_max_tooltip_size, if that has valid contents.
29851         (compute_tip_xy): Add parameters WIDTH and HEIGHT.
29852         Make sure the tooltip is completely visible.
29853         (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
29854         (Fx_create_frame): Adjust the frame's height for presence
29855         of the tool bar before calling x_figure_window_size.
29856         (x_set_tool_bar_lines): Clear the tool bar window's current matrix
29857         when the window gets smaller.
29858         (x_set_foreground_color): Set frame's cursor_pixel.
29859         (x_set_foreground_color, x_set_background_color): Cleaned up.
29860         (x_set_font): Handle case of x_new_fontset returning the same name
29861         as before, although there was a change in fontsets.
29863 2001-10-21  Miles Bader  <miles@gnu.org>
29865         * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
29866         (Flogxor): Add usage: string to doc string.
29867         * charset.c (Fstring): Likewise.
29868         * callproc.c (Fcall_process_region, Fcall_process): Likewise.
29869         * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
29871 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
29873         * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
29875         * alloc.c: Reindent DEFUNs with doc: keywords.
29877         * abbrev.c (Finsert_abbrev_table_description): Reindent.
29879         * frame.c: Change doc-string comments to `new style' [w/`doc:'
29880         keyword].
29882 See ChangeLog.9 for earlier changes.
29884 ;; Local Variables:
29885 ;; coding: iso-2022-7bit
29886 ;; add-log-time-zone-rule: t
29887 ;; End:
29889     Copyright (C) 2001, 2002, 2003, 2004, 2005,
29890         2006, 2007, 2008 Free Software Foundation, Inc.
29892   This file is part of GNU Emacs.
29894   GNU Emacs is free software; you can redistribute it and/or modify
29895   it under the terms of the GNU General Public License as published by
29896   the Free Software Foundation; either version 3, or (at your option)
29897   any later version.
29899   GNU Emacs is distributed in the hope that it will be useful,
29900   but WITHOUT ANY WARRANTY; without even the implied warranty of
29901   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29902   GNU General Public License for more details.
29904   You should have received a copy of the GNU General Public License
29905   along with GNU Emacs; see the file COPYING.  If not, write to the
29906   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
29907   Boston, MA 02110-1301, USA.
29909 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4