+2003-01-19 Jan D. <jan.h.d@swipnet.se>
+
+ * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
+ (gtkutil.o): New file.
+ (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
+ (LIBW): Set to @GTK_LIBS@ if USE_GTK.
+
+ * gtkutil.c: New file for GTK version.
+
+ * gtkutil.h: New file for GTK version.
+
+ * xterm.h: Add xt_or_gtk_widget.
+ Include gtk files for USE_GTK.
+ (struct x_output): Add toolbar_height.
+ (struct x_output): Add GTK widgets and Gdk size_hints.
+ (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
+ (FRAME_OUTER_WINDOW): New macros for USE_GTK.
+ (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
+
+ * xterm.c: Include gtkutil.h for USE_GTK.
+ Declare extern void free_frame_menubar for USE_GTK.
+ (note_mouse_highlight): Check popup_activated for USE_GTK.
+ (xt_action_hook): Don't compile if USE_GTK.
+ (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
+ (xg_scroll_callback): New function.
+ (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
+ (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
+ for USE_GTK.
+ (x_scroll_bar_create): Call xg_update_scrollbar_pos and
+ xg_show_scroll_bar for USE_GTK.
+ (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
+ (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
+ (event_handler_gdk): New function for USE_GTK.
+ (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
+ (handle_one_xevent): Make sure widget is mapped before
+ calling x_real_positions for USE_GTK.
+ (XTread_socket): Add GTK event loop for USE_GTK.
+ (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
+ (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
+ (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
+ (x_iconify_frame): Add code for USE_GTK.
+ (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
+ (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
+ is in gtkutil.c.
+ (x_term_init): Add initialization for GTK.
+ (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
+
+ * xmenu.c: Include gtkutil.h for USE_GTK.
+ (Fx_popup_menu): Use current position if x and y is NIL.
+ (single_menu_item, single_menu_item, Fx_popup_dialog): Check
+ for USE_GTK.
+ (popup_widget_loop): New function for USE_GTK.
+ (x_activate_menubar): Add code for USE_GTK.
+ (popup_activate_callback, popup_deactivate_callback)
+ (menu_highlight_callback, menubar_selection_callback): USE_GTK versions
+ added.
+ (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
+ (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
+ (free_frame_menubar): Only compile if not USE_GTK. GTK version
+ is in gtkutil.c.
+ (popup_selection_callback): New version for USE_GTK.
+ (create_and_show_popup_menu): New fuction, one USE_GTK version and
+ one USE_X_TOOLKIT version.
+ (xmenu_show): Call create_and_show_popup_menu.
+ (dialog_selection_callback): New version for USE_GTK.
+ (create_and_show_dialog): New fuction, one USE_GTK version and
+ one USE_X_TOOLKIT version.
+ (xdialog_show): Call create_and_show_dialog.
+
+ * xfns.c: Include gtkutil for USE_GTK.
+ (x_window_to_frame, x_any_window_to_frame)
+ (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
+ (x_top_window_to_frame): Add code for USE_GTK.
+ (x_set_background_color): Call xg_set_background_color for GTK.
+ (x_set_menu_bar_lines): Check for USE_GTK.
+ (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
+ (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
+ (x_window): Call xg_create_frame_widgets for USE_GTK.
+ (Fx_create_frame): Check for USE_GTK
+ (Fx_file_dialog): New implementation for USE_GTK.
+
+
+ * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
+ (update_menu_bar): Add check for USE_GTK.
+ (update_tool_bar): Add check for USE_GTK and external tool bar.
+ (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
+ (redisplay_internal): Add check for USE_GTK and popup_activated.
+ (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
+ (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
+ (display_menu_bar): Add check for USE_GTK
+
+ * lisp.h: Declare Vx_resource_name extern.
+
+ * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
+ for USE_GTK.
+ (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
+
+ * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
+ (FRAME_EXTERNAL_TOOL_BAR): New macro.
+ (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
+
+ * fileio.c (Fread_file_name): Add check for USE_GTK.
+
+ * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
+ check for USE_GTK.
+
+ * config.in: Added HAVE_GTK
+
+ * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
+
+2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
+
+ * charset.h (Funibyte_char_to_multibyte): Export.
+
+2003-01-18 Jan D. <jan.h.d@swipnet.se>
+
+ * xmenu.c (mouse_position_for_popup): New function.
+ (Fx_popup_menu): Call mouse_position_for_popup for X and
+ mouse_position_hook for others.
+
+2003-01-17 Kim F. Storm <storm@cua.dk>
+
+ * editfns.c (Finsert): Mention `string-make-multibyte' and
+ `string-as-multibyte' in doc string.
+
+2003-01-17 Kenichi Handa <handa@m17n.org>
+
+ * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
+
+ * editfns.c (Fformat): Convert an unibyte char argument that is
+ formatted by "%c" to multibyte if the total result must be a
+ multibyte string.
+
+2003-01-16 Kim F. Storm <storm@cua.dk>
+
+ * process.c (set-process-filter): Document unibyte/multibyte-ness
+ of string argument.
+
+2003-01-16 Kenichi Handa <handa@m17n.org>
+
+ * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
+
+ * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
+ (re_search_2): Likewise.
+
+2003-01-15 Kenichi Handa <handa@m17n.org>
+
+ * xdisp.c (message_dolog): Fix bug of the case that *Message*
+ buffer is unibyte.
+
+2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
+
+ * fns.c (Fsubstring): Clarify doc string.
+
+ * textprop.c (Ftext_properties_at, Fnext_char_property_change)
+ (Fprevious_char_property_change)
+ (Fnext_single_char_property_change)
+ (Fprevious_single_char_property_change, Fnext_property_change)
+ (Fnext_single_property_change, Fprevious_property_change)
+ (Fprevious_single_property_change, Fadd_text_properties)
+ (Fput_text_property, Fset_text_properties)
+ (Fremove_text_properties, Fremove_list_of_text_properties)
+ (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
+
+2003-01-14 Kim F. Storm <storm@cua.dk>
+
+ * process.h (struct Lisp_Process): New member plist replaces old
+ member private_vars. All uses changed.
+
+ * process.c: Reworked 2003-01-12 change -- call a plist a plist!
+ (QCplist): Renamed from QCvars. All uses changed.
+ (Fprocess_plist): Replaces Fprocess_variable. Simplified.
+ (Fset_process_plist): Replaces Fset_process_variable. Simplified.
+ (syms_of_process): Intern, staticpro, defsubr these.
+ (Fmake_network_process): Describe :plist arg. Removed :vars arg.
+
+2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
+
+ * m/delta.h: Removed (obsolete).
+
+2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
+
+ * fileio.c (Fdelete_directory, Fdelete_file): Document the
+ behaviour in front of symlinks.
+ (Fdelete_file): Raise an error on directories.
+
+2003-01-13 Dave Love <fx@gnu.org>
+
+ * fns.c (Freverse): Use QUIT.
+
+2003-01-13 Richard M. Stallman <rms@gnu.org>
+
+ * minibuf.c (minibuffer_completion_contents):
+ Error if point is inside prompt.
+
+ * keyboard.c (command_loop_1): Don't redisplay directly
+ if there's a post-command-hook.
+
+ * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
+ (Fdo_auto_save): Add gcpros around Ffile_name_directory.
+
+2003-01-12 Kim F. Storm <storm@cua.dk>
+
+ * process.h (struct Lisp_Process): New member private_vars.
+
+ * process.c (QCvars): New variable.
+ (syms_of_process): Intern and staticpro it.
+ (Fset_process_contact): Removed function.
+ (Fprocess_variable, Fset_process_variable): New functions.
+ (syms_of_process): Defsubr them.
+ (Fstart_process): Initialize private_vars plist to nil.
+ (Fmake_network_process): New arg :vars to setup the private
+ variables for new network process.
+ (server_accept_connection): Copy server's private variables to
+ client process.
+
+ * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
+ crashes). Code rewritten and simplified. Now directly aligns the
+ pointer and recalculates pure_bytes_used, rather than aligning the
+ size and adjusting the pointer.
+
+2003-01-11 Kim F. Storm <storm@cua.dk>
+
+ * process.c (Fset_process_contact): New function.
+ (syms_of_process): defsubr it.
+ (make-network-process): Update doc.
+
+2003-01-10 Andreas Schwab <schwab@suse.de>
+
+ * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
+ Reported by Berthold Gunreben <b.gunreben@web.de>.
+
+2003-01-10 Dave Love <fx@gnu.org>
+
+ * composite.c (syms_of_composite): Make composition_hash_table weak.
+
+2003-01-09 Kim F. Storm <storm@cua.dk>
+
+ * process.c (Fmake_network_process): Convert new port number
+ to host byte order for `:service t' case. From Mario Lang.
+
+2003-01-08 Jan D. <jan.h.d@swipnet.se>
+
+ * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
+ instead of XtAppProcessEvent.
+
+ * xterm.c (handle_one_xevent): New function.
+ (x_dispatch_event): New function.
+ (XTread_socket): Call handle_one_xevent.
+
+ * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
+
+ * xmenu.c (Fx_popup_menu): If popping up at mouse position,
+ call XQueryPointer to get coordinates.
+ (popup_get_selection): Do not set popup_activated_flag to zero,
+ let popup_deactivate_callback do that. Needed for Motif.
+ Call x_dispatch_event instead of XtDispatchEvent.
+ (xmenu_show): Calculate root coordinate from frame top/left position.
+
+2003-01-08 Kim F. Storm <storm@cua.dk>
+
+ * process.c (server_accept_connection): Fixed recording of new
+ connection's local address in :local property of contact info.
+ (Fmake_network_process): Record local network address for new
+ client processes in :local property of contact info.
+ (format-network-address): Added arg OMIT-PORT. Callers changed.
+
+2003-01-07 Dave Love <fx@gnu.org>
+
+ * Makefile.in (fns.o): Depend on coding.h.
+
+2003-01-07 Markus Rost <rost@math.ohio-state.edu>
+
+ * minibuf.c (Fread_variable): Doc fix.
+
+ * eval.c (Fuser_variable_p): Doc change. For custom variables,
+ use the same test as for custom-variable-p.
+
+2003-01-05 Richard M. Stallman <rms@gnu.org>
+
+ * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
+ Count LAST_LINE_MISFIT in scroll margin for end of window.
+ Move label too_near_end before setting SCROLL_MARGIN_POS.
+ Set LAST_LINE_MISFIT before jumping there.
+
+ * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
+ scroll_conservatively case. If scrolling that much doesn't change
+ STARTP, move it down one line.
+
+ * xdisp.c (redisplay_window): Pass last_line_misfit arg to
+ try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
+
+ * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
+ selected frame.
+
+ * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
+ (syms_of_keymap): staticpro them.
+ (Fapropos_internal): Initialize them and clear them out.
+ Don't GCPRO them.
+
+ * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
+ Doc fixes.
+
+ * lisp.h: New misc type Lisp_Save_Value.
+ (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
+ (XSAVE_VALUE): New macro.
+ (struct Lisp_Save_Value): New data type.
+ (union Lisp_Misc): Add u_save_value alternative.
+ (make_save_value): Declared.
+
+ * alloc.c (make_save_value): New function.
+
+ * xterm.c (x_catch_errors): Save dpy using make_save_value.
+ (x_catch_errors_unwind): Call XSync.
+
+2003-01-01 Richard M. Stallman <rms@gnu.org>
+
+ * window.c (window_scroll_pixel_based): Partially undo last change.
+
+ * keyboard.c (command_loop_1): Call adjust_point_for_property
+ in direct action cases for Qforward_char and Qbackward_char.
+ Set already_adjusted so it won't be done twice.
+
+2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
+
+ * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
+ type definition of size_t.
+
+2003-01-02 Steven Tamm <steventamm@mac.com>
+
+ * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
+ distinguish Carbon GUI builds from X11 builds on darwin.
+
+2002-12-30 Steven Tamm <steventamm@mac.com>
+
+ * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
+ to default to t.
+
+2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
+
+ * data.c (Fstring_to_number, Fminus): Better English in doc strings.
+
+2002-12-28 Steven Tamm <steventamm@mac.com>
+
+ * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
+ allow building in a different directory than source. Uses some
+ GNU Make extensions, but there is no other make on Mac OS X.
+
+2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
+
+ * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
+ (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
+ (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
+ (Fstring_to_number): Mention the returned value in the doc strings.
+
+2002-12-23 Richard M. Stallman <rms@gnu.org>
+
+ * buffer.c (syms_of_buffer) <scroll-up-aggressively>
+ <scroll-down-aggressively>: Doc fix.
+
+ * xmenu.c (parse_single_submenu): Use individual keymap's prompt
+ string as pane name, if there is one.
+ (set_frame_menubar): Save menu_items_n_panes from each call to
+ parse_single_submenu and use it when calling digest_single_submenu.
+
+ * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
+ Don't try to make last line fully visible if it is past end of window.
+
+2002-12-22 Steven Tamm <steventamm@mac.com>
+
+ * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
+ (mac_menu_show): Add support for hierarchical popup menus.
+ (add_menu_item): Remove indentation support.
+ (fill_submenu, fill_menu): Create hierarchical menus
+ instead of using indentation.
+
+2002-12-22 Richard M. Stallman <rms@gnu.org>
+
+ * xdisp.c (try_cursor_movement): Don't call try_window here.
+ (redisplay_window): Never redisplay minibuffer when inactive.
+
+ * window.c (select_window_1): Undo 9/21 change.
+
+2002-12-22 Steven Tamm <steventamm@mac.com>
+
+ * macterm.c (XTread_socket): Call KeyTranslate for control and
+ meta to deal correctly shifted non-alpha characters, like C-S-5
+ being treated like C-%. Does not look for shift key to deal
+ with masking off control-key with mac-reverse-ctrl-meta.
+
+2002-12-21 Richard M. Stallman <rms@gnu.org>
+
+ * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
+ If it is non-nil, run timers. Use an unwind-protect to requeue
+ the events that were read ahead.
+ (popup_get_selection_unwind): New subroutine.
+ (popup_get_selection_queue): File-scope variable now holds that queue.
+ (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
+ (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
+ Use an unwind-protect to pop down the dialog box.
+ (xdialog_show_unwind): New subroutine implements that.
+
+ * xdisp.c (row_containing_pos): Change exit test using last_y.
+ (try_window_id): Abort if row_containing_pos returns null.
+
+ * lread.c (load_error_handler): New function.
+ (Fload): Handle errors in Fsubstitute_in_file_name.
+ Don't expect Fsignal to return.
+
+ * Errors and throws work right with interrupt blocking.
+ * eval.c (struct catchtag): New elt interrupt_input_blocked.
+ (unwind_to_catch): Restore interrupt_input_blocked from saved value.
+ (internal_catch, Fcondition_case, internal_condition_case)
+ (internal_condition_case_1, internal_condition_case_2): Save it.
+ (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
+
+ * editfns.c (Fformat): Add parens.
+
+ * dired.c (file_name_completion): Fix that change.
+ Delete special quit-handling code; just use QUIT.
+
+2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
+
+ * dired.c (file_name_completion): Close directory on error
+ just as in directory_files_internal.
+
+2002-12-19 David Kastrup <David.Kastrup@t-online.de>
+
+ * window.c (Fset_window_configuration): Set old_point to correct
+ value when new_current_buffer == current_buffer.
+
+2002-12-17 Ben Key <bkey1@tampabay.rr.com>
+
+ * Revisited my earlier fix for the following entry in
+ etc/PROBLEMS:
+ "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
+ or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
+
+ These changes were in part based upon suggestions made by Peter
+ 'Luna' Runestig [peter@runestig.com].
+
+ * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
+ g_b_init_get_token_information, g_b_init_lookup_account_sid,
+ g_b_init_get_sid_identifier_authority ): Added several static
+ global variables.
+
+ * w32.c (globals_of_w32): New function. Used to initialize those
+ global variables that must always be initialized on startup even
+ when the global variable initialized is non zero. Its primary
+ purpose at this time is to set the global variables
+ g_b_init_is_windows_9x, g_b_init_open_process_token,
+ g_b_init_get_token_information, g_b_init_lookup_account_sid, and
+ g_b_init_get_sid_identifier_authority to 0 on startup.
+ Called from main.
+
+ * w32.c (is_windows_9x): Perform initialization only if
+ g_b_init_is_windows_9x is equal to 0. On initialization set
+ g_b_init_is_windows_9x equal to 1.
+
+ * w32.c (open_process_token): Perform initialization only if
+ g_b_init_open_process_token is equal to 0. On initialization set
+ g_b_init_open_process_token equal to 1.
+
+ * w32.c (get_token_information): Perform initialization only if
+ g_b_init_get_token_information is equal to 0. On initialization
+ set g_b_init_get_token_information equal to 1.
+
+ * w32.c (lookup_account_sid): Perform initialization only if
+ g_b_init_lookup_account_sid is equal to 0. On initialization
+ set g_b_init_lookup_account_sid equal to 1.
+
+ * w32.c (get_sid_identifier_authority): Perform initialization
+ only if g_b_init_get_sid_identifier_authority is equal to 0.
+ On initialization set g_b_init_get_sid_identifier_authority equal to 1.
+
+ * w32fns.c (globals_of_w32fns): New function. Used to initialize
+ those global variables that must always be initialized on startup
+ even when the global variable initialized is non zero.
+ Its primary purpose at this time is to initialize the global variable
+ track_mouse_event_fn.
+
+ * w32fns.c (w32_wnd_proc): Remove initialization of
+ track_mouse_event_fn from the handler for the WM_SETFOCUS message.
+
+ * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
+
+ * w32menu.c (globals_of_w32menu): New function. Used to
+ initialize those global variables that must always be initialized
+ on startup even when the global variable initialized is non zero.
+ Its primary purpose at this time is to initialize the global
+ variables get_menu_item_info and set_menu_item_info.
+
+ * w32menu.c (initialize_frame_menubar): Remove initialization of
+ get_menu_item_info and set_menu_item_info.
+
+ * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
+
+ * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
+ Declare them.
+
+ * emacs.c (main): Call globals_of_w32 prior to calling
+ init_environment if WINDOWSNT is defined. Call globals_of_w32fns
+ and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
+ is defined.
+
+ * w32term.c (x_update_window_begin): Fix Windows API error
+ detected by BoundsChecker. Test to determine if
+ w32_system_caret_hwnd is NULL prior to attempting to use
+ SendMessage to send the WM_EMACS_HIDE_CARET message to it.
+
+ * w32term.c (x_update_window_end): Fix Windows API error
+ detected by BoundsChecker. Test to determine if
+ w32_system_caret_hwnd is NULL prior to attempting to use
+ SendMessage to send the WM_EMACS_SHOW_CARET message to it.
+
+2002-12-17 Kenichi Handa <handa@m17n.org>
+
+ * coding.c (coding_system_require_warning): New variable.
+ (syms_of_coding): DEFVAR it.
+
+ * coding.h (coding_system_require_warning): Extern it.
+
+ * fileio.c (choose_write_coding_system): Even if
+ Vcoding_system_for_write is non-nil, if
+ coding_system_require_warning is nonzero, call
+ Vselect_safe_coding_system_function.
+
+2002-12-17 Markus Rost <rost@math.ohio-state.edu>
+
+ * Makefile.in (lisp, shortlisp): Add cus-face and timer.
+ (lisp): Add font-core.
+
+2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
+
+ * textprop.c (text_read_only): New arg `propval'.
+ (get_char_property_and_overlay): Remove unused var `next_overlay'.
+ (verify_interval_modification): Use text_read_only's new arg.
+
+2002-12-13 Kenichi Handa <handa@m17n.org>
+
+ * coding.c (Funencodable_char_position): Set pend correctly.
+
+2002-12-12 Jason Rumney <jasonr@gnu.org>
+
+ * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
+ (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
+ Be more careful about when help_events are generated.
+
+2002-12-12 Steven Tamm <steventamm@mac.com>
+
+ * macterm.c (mac_check_for_quit_char): Correctly set the
+ modifiers of the event to 0.
+ * mac.c (sys_select): Duplicate rfds before calling select to
+ ensure that rfds survive the while loop.
+
+2002-12-11 Kim F. Storm <storm@cua.dk>
+
+ * xdisp.c (try_window_id): Don't call set_cursor_from_row if
+ row_containing_pos returned NULL.
+
+2002-12-10 Steven Tamm <steventamm@mac.com>
+
+ * mac.c (sys_read): Fixed sys_read to not call select if IO is
+ non-blocking.
+ (sys_select): Fixed sys_select to not use a timeout larger than
+ the one given.
+
+2002-12-10 Juanma Barranquero <lektu@terra.es>
+
+ * editfns.c (Fformat): Use alloca, not _alloca.
+
+2002-12-09 Richard M. Stallman <rms@gnu.org>
+
+ * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
+ as the last thing.
+
+2002-12-09 Dave Love <fx@gnu.org>
+
+ * s/sol2-8: Removed. (Not necessary.)
+
+2002-12-09 Matthew Swift <swift@alum.mit.edu>
+
+ * editfns.c (Fformat): Handle precision in string conversion
+ specifiers like libc functions do (ie, print at most that many
+ characters).
+
+2002-12-08 Richard M. Stallman <rms@gnu.org>
+
+ * xdisp.c (row_containing_pos): Check more carefully
+ whether charpos is really in the row before returning it.
+
+2002-12-07 Steven Tamm <steventamm@mac.com>
+
+ * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
+
+ * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
+ each stack frame. This may change as it could be time consuming.
+
+ * macterm.c (mac_check_for_quit_char, quit_char_comp)
+ (init_quit_char_handler, mac_determine_quit_char_modifiers)
+ (mac_initialize): Added code to check for pressing of quit_char
+ in the OS event queue.
+
+ * mac.c (sys_select): Call mac_check_for_quit_char every second
+ while blocking on select.
+
+ * mac.c (sys_read): Use sys_select to test for input first
+ before calling read, to allow C-g to break.
+
+2002-12-07 Richard M. Stallman <rms@gnu.org>
+
+ * minibuf.c (Fcompleting_read): Doc fix.
+
+ * lread.c (syms_of_lread) <load-history>: Doc fix.
+
+ * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
+
+ * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
+ autoload.
+
+ * data.c (Fdefalias): Record in load-history redefining an autoload.
+
+ * alloca.c: Undo ifdef change accidentally made on 12-04.
+
+2002-12-06 Francesco Potorti` <pot@gnu.org>
+
+ * xfns.c (png_load): Avoid double gamma correction for PNG images.
+
+2002-12-04 Richard M. Stallman <rms@gnu.org>
+
+ * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
+
+ * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
+
+ * alloca.c: Don't use #error.
+
+2002-12-03 Dave Love <fx@gnu.org>
+
+ * buffer.c (Qucs_set_table_for_input): New.
+ (Fget_buffer_create): Use it.
+ (Qset_buffer_major_mode_hook): Deleted.
+ (Fset_buffer_major_mode): Revert previous change.
+ (init_buffer_once): Intern ucs-set-table-for-input.
+ (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
+ Add &Qucs_set_table_for_input.
+
+2002-12-03 Andreas Schwab <schwab@suse.de>
+
+ * callint.c (Fcall_interactively): Use next_event only if less
+ than key_count.
+
+2002-12-02 Andrew Choi <akochoi@shaw.ca>
+
+ * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
+ names to 255 characters.
+
+ * macterm.c (XTread_socket): If all frames have been collapsed,
+ expand the first one before handling drag-and-drop events.
+
+ * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
+ which is detected by autoconf.
+
+2002-12-01 Steven Tamm <steventamm@mac.com>
+
+ * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
+ offset in two hints table to allow prebinding to be redone and
+ allow the executable to be stripped.
+
+2002-11-29 Dave Love <fx@gnu.org>
+
+ * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
+ already provided.
+
+2002-11-29 Richard M. Stallman <rms@gnu.org>
+
+ * xdisp.c (start_display): Check more intelligently for
+ whether the line is continued.
+ (move_it_vertically_backward): Clear it->continuation_lines_width.
+
+2002-11-28 Dave Love <fx@gnu.org>
+
+ * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
+ * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
+
+2002-11-27 Steven Tamm <steventamm@mac.com>
+
+ * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
+ more descriptive error output from lread.c:Fload upon most require
+ cycles during boostrapping.
+
+2002-11-27 Jason Rumney <jasonr@gnu.org>
+
+ * fileio.c (Finsert_file_contents): Give a more appropriate error
+ for files bigger than 2Gb when off_t is 32 bit.
+
+ * dired.c (Ffile_attributes): Don't return negative file sizes for
+ files bigger than 2Gb when off_t is 32 bit.
+
2002-11-27 Dave Love <fx@gnu.org>
+ * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
+
+ * systty.h: Don't conditionally define GETPGRP_NO_ARG.
+ Test GETPGRP_VOID instead.
+ [BSD_TERMIOS]: Remove definitions (never used).
+
+ * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
+ Don't define.
+ (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
+
* m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
2002-11-25 Jason Rumney <jasonr@gnu.org>
* keyboard.c (interrupt_signal): Provide forward declaration.
(kbd_buffer_store_event): Don't declare interrupt_signal.
- * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C
- arglist.
+ * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
2002-11-21 Richard M. Stallman <rms@gnu.org>
* fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
-2002-11-18 Markus Rost <rost@math.ohio-state.edu>
+2002-11-18 Markus Rost <rost@math.ohio-state.edu>
* s/sol2-8.h: Include sol2-6.h.
function pointer track_mouse_event_fn in the handler for the
WM_SETFOCUS message.
- * w32menu.c (initialize_frame_menubar): Added code to
+ * w32menu.c (initialize_frame_menubar): Added code to
reinitialize the function pointers set_menu_item_info and
get_menu_item_info.
2002-11-01 Andreas Schwab <schwab@suse.de>
- * editfns.c (Fmessage): Revert last change to properly handle %%
- format.
+ * editfns.c (Fmessage): Revert last change to properly handle %%.
2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
2002-08-30 Andrew Choi <akochoi@shaw.ca>
- * macterm.c (expose_overlaps): New function (merge code from
- xterm.c).
+ * macterm.c (expose_overlaps): New function (merge code from xterm.c).
(expose_window): Use it to fix the display of overlapping
rows (merge code from xterm.c).
* w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
New macros.
- (struct w32_output): New fields blink_off_cursor, blink_off_cursor_width.
+ (struct w32_output): New fields blink_off_cursor,
+ blink_off_cursor_width.
(FRAME_CURSOR_WIDTH): New macro.
* w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
* xdisp.c (redisplay_updating_p): Variable removed.
- (inhibit_free_realized_faces, Qinhibit_free_realized_faces): New
- variables.
+ (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
+ New variables.
(init_iterator): Don't free realized faces if
inhibit_free_realized_faces is set.
(redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
2002-08-26 Kim F. Storm <storm@cua.dk>
- * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
- foreground and background colors. From Joe Buehler (tiny change).
+ * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
+ and background colors. From Joe Buehler (tiny change).
2002-08-26 Miles Bader <miles@gnu.org>
2002-08-19 Kenichi Handa <handa@localhost>
- * composite.c (run_composition_function): Call FUNC if it is
- fboundp.
+ * composite.c (run_composition_function): Call FUNC if it is fboundp.
* composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
cons, return Qnil.
(Vmac_pass_command_to_system): New variable.
(Vmac_pass_control_to_system): New variable.
(do_mouse_moved): Check wp with is_emacs_window.
- (XTread_socket): Check window_ptr with is_emacs_window. Call
- FrontNonFloatingWindow instead of FrontWindow. Send keydown
+ (XTread_socket): Check window_ptr with is_emacs_window.
+ Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
events back to Mac Toolbox for processing, depending on values of
Vmac_pass_command_to_system and Vmac_pass_control_to_system.
(syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
2002-08-08 Ken Raeburn <raeburn@mit.edu>
- * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int
- mixup.
+ * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
* puresize.h (BASE_PURESIZE): Increase to 910000.
(single_submenu, set_frame_menubar)
(w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
- (Fx_popup_menu): Don't show pop up menu until preceding one is
+ (Fx_popup_menu): Don't show pop up menu until preceding one is
actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
* w32menu.c: Changes adapted from xmenu.c
(XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
SendEventToEventTarget, mac_event_to_emacs_modifiers, and
mac_get_mouse_btn.
- (mac_initialize): Call init_mac_drag_n_drop and
- init_service_handler.
+ (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
* keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
as for WINDOWS_NT.
(syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
- * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for
- MAC_OSX.
+ * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
2002-07-23 Kenichi Handa <handa@etl.go.jp>
- * xdisp.c (face_before_or_after_it_pos): Call
- FETCH_MULTIBYTE_CHAR with byte postion, not char position.
+ * xdisp.c (face_before_or_after_it_pos):
+ Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
2002-07-22 Juanma Barranquero <lektu@terra.es>
- * callproc.c (init_callproc) [DOS_NT]: Initialize
- Vshared_game_score_directory to nil.
+ * callproc.c (init_callproc) [DOS_NT]:
+ Initialize Vshared_game_score_directory to nil.
(syms_of_callproc) [DOS_NT]: Likewise.
2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
const.
* charset.h (BCOPY_SHORT): Source pointer now points to const.
* coding.c (encode_eol, detect_coding, detect_eol):
- (decode_coding, encode_coding, detect_coding_system): Source
- strings now treated as const.
+ (decode_coding, encode_coding, detect_coding_system):
+ Source strings now treated as const.
(decode_coding_string, encode_coding_string): Use STRING_COPYIN to
modify Lisp string contents.
* coding.h (decode_coding, encode_coding, detect_coding,
contents as const.
* sysdep.c (emacs_write): Buffer pointer now const.
* term.c (encode_terminal_code): Buffer pointer now const.
- * xfaces.c (may_use_scalable_font_p): Argument now points to
- const.
+ * xfaces.c (may_use_scalable_font_p): Argument now points to const.
(x_face_list_fonts, x_update_menu_appearance):
- (hash_string_case_insensitive): Treat Lisp string contents as
- const.
+ (hash_string_case_insensitive): Treat Lisp string contents as const.
2002-07-19 Juanma Barranquero <lektu@terra.es>
2002-06-28 Andreas Schwab <schwab@suse.de>
- * lisp.h: Remove duplicate declaration of
- code_convert_string_norecord.
+ * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
2002-06-27 Kim F. Storm <storm@cua.dk>
* coding.c (detect_eol): Preserve coding->cmp_data.
- * w16select.c (Fw16_get_clipboard_data): Disable composition handling.
-
- * w32fns.c (w32_to_x_font): Disable composition handling.
-
- * w32select.c (Fw32_get_clipboard_data): Disable composition handling.
-
- * xselect.c (selection_data_to_lisp_data): Disable composition
- handling.
-
+ * w16select.c (Fw16_get_clipboard_data):
+ * w32fns.c (w32_to_x_font):
+ * w32select.c (Fw32_get_clipboard_data):
+ * xselect.c (selection_data_to_lisp_data):
* xterm.c (XTread_socket): Disable composition handling.
2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
- * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
- use "sun" as a variable, it's a predefined constant on Sun
+ * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
+ Don't use "sun" as a variable, it's a predefined constant on Sun
machines.
2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2002-03-18 Kim F. Storm <storm@cua.dk>
* config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
- HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and
- HAVE_SYS_UN_H.
+ HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
* process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
Remove explicit GNU_LINUX settings for datagram support.
* process.c (Fmake_network_process): Remove unused variable `sa'.
Doc fix. Add usage:.
- (set_socket_options): Remove unused variables `optnum' and
- `opttype'.
+ (set_socket_options): Remove unused variables `optnum' and `opttype'.
2002-03-17 Richard M. Stallman <rms@gnu.org>
2002-03-08 Gerd Moellmann <gerd@gnu.org>
- * xdisp.c (move_it_vertically_backward): At the end of the
- function, when moving forward by lines, treat terminal frames
- specially.
+ * xdisp.c (move_it_vertically_backward): At the end of the function,
+ when moving forward by lines, treat terminal frames specially.
* keyboard.c (echo_char): Make sure to add a separator between
keys even if echo_dash hasn't been called.
(status_message): Convert Qfailed status.
(Fopen_network_stream): Added support for non-blocking connect.
New optional args: filter, sentinel, non_blocking. Doc updated.
- [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
+ [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
(deactivate_process): Handle pending non-blocking connect.
(wait_reading_process_input): Poll for status of non-blocking
connects. Exec sentinel directly when connect succeeds.
2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
- * fileio.c (Fsubstitute_in_file_name): Fix the change from
- 2002-02-08.
+ * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
* xselect.c (Qcompound_text_with_extensions): Renamed from
Qcompound_text_no_extensions.
* w32term.c (x_check_fullscreen, x_check_fullscreen_move)
(x_fullscreen_adjust): New functions.
- (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
+ (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
fullscreen. Call x_check_fullscreen_move, and set the
want_fullscreen member of output_data.w32
<WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
* msdos.c (x_autoselect_window_p): New variable.
(syms_of_msdos): Defvar it.
- (dos_rawgetc): If x_autoselect_window_p is set, select the window
- in which the last mouse movement occured, unless it is already
- selected.
+ (dos_rawgetc): If x_autoselect_window_p is set, select the window in
+ which the last mouse movement occured, unless it is already selected.
* xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
New variables.
2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
- * xfaces.c (realize_default_face): Don't set the weight and slant
- of the default face to Qnormal, unless these attributes are
- unspecified.
+ * xfaces.c (realize_default_face): Don't set the weight and slant of
+ the default face to Qnormal, unless these attributes are unspecified.
2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
* alloc.c (inhibit_garbage_collection): Don't exceed value an int
can hold.
- * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
- from most_positive_fixnum and most_negative_fixnum, resp., and
+ * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
+ Rename from most_positive_fixnum and most_negative_fixnum, resp., and
type changed to Lisp_Object.
(syms_of_data): DEFVAR_LISP them.
* insdel.c (make_gap_larger): New function.
(make_gap_smaller): New function.
- (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
- make_gap_smaller if arg is negative.
+ (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
+ Call make_gap_smaller if arg is negative.
2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
(last-input-char): Revert doc-string to be the same as the
doc-string of `last-input-event'.
- * xdisp.c: Fix typos in comments.
+ * xdisp.c: Fix typos in comments.
2001-10-31 Gerd Moellmann <gerd@gnu.org>
(inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
(try_window_id, try_window_reusing_current_matrix)
(try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
- (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
+ (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
(show_mouse_face): Set the glyph row's mouse_face_p flag also when
DRAW is DRAW_IMAGE_RAISED.
(clear_mouse_face): Return 1 if text with mouse face was
- actually redrawn. Make the function static. Reset
- dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
+ actually redrawn. Make the function static.
+ Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
optimize away highlighting if we pass over that same overlay again.
(note_mouse_highlight): Call mouse_face_overlay_overlaps
to detect a case where we have to highlight a different region