(try_font_list): New arg PREFER_FACE_FAMILY. If it is
[bpt/emacs.git] / src / ChangeLog
index 58d1770..2396c95 100644 (file)
@@ -1,3 +1,708 @@
+2002-09-26  Kenichi Handa  <handa@etl.go.jp>
+
+       * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY.  If it is
+       nonzero, try face's family at first.  Otherwise try FAMILY at
+       first.
+       (choose_face_font): If C is a single byte char or latin-1, call
+       try_font_list with PREFER_FACE_FAMILY 1.
+
+2002-09-21  Richard M. Stallman  <rms@gnu.org>
+
+       * window.c (select_window_1): Don't select frame.
+       Set frame's selected window only when frame itself is selected.
+       (Fselect_window): Doc fix.
+
+2002-09-18  Kim F. Storm  <storm@cua.dk>
+
+       * process.c (make-network-process): Doc fix (there is no
+       network-server-log-function hook).
+
+2002-09-18  Richard M. Stallman  <rms@gnu.org>
+
+       * print.c (print): Clear out the unused parts of Vprint_number_table.
+       (syms_of_print): Doc fix for `print-number-table'.
+
+       * unexelf.c (unexec): Undo previous change.
+
+2002-09-17  Andreas Schwab  <schwab@suse.de>
+
+       * m/alpha.h [LINUX]: Don't define DATA_START.
+
+2002-09-16  Dave Love  <fx@gnu.org>
+
+       * unexelf.c (unexec): Deal with .got, reinstating change from
+       25-08-1999.
+
+2002-09-13  Richard M. Stallman  <rms@gnu.org>
+
+       * s/sol2-6.h (UNEXEC): Comment out definition.
+
+       * unexsol.c (unexec): Don't downcase first letter of error msg.
+
+       * xfaces.c (Fcolor_supported_p): Just one arg is required.
+
+2002-09-12  Markus Rost  <rost@math.ohio-state.edu>
+
+       * unexsol.c: Include buffer.h, charset.h, coding.h.
+
+2002-09-11  Richard M. Stallman  <rms@gnu.org>
+
+       * unexsol.c: Don't use report_file_error; do it by hand
+       using dlerror.
+
+       * process.c (wait_reading_process_input, both versions):
+       Before calling turn_on_atimers, call stop_polling.
+
+       * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
+
+       * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
+       we go to too_near_end, call clear_glyph_matrix.
+       (redisplay_window): After make_cursor_line_fully_visible,
+       call clear_glyph_matrix and bypass `goto done'.
+
+       * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
+       and we have non-toolkit scroll bars, return nil for scroll-bar-width.
+
+2002-09-10  Richard M. Stallman  <rms@gnu.org>
+
+       * fileio.c (Fdo_auto_save): Catch error making directory.
+       Only call push_message if we need to.
+       At the same time, make an unwind-protect to pop it.
+       Rename local message_p to old_message_p.
+       (do_auto_save_make_dir, do_auto_save_eh): New functions.
+       (do_auto_save_unwind): Don't call pop_message.
+
+       * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
+
+       * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
+
+       * alloc.c (Fgarbage_collect): Use pop_message_unwind.
+
+       * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
+
+2002-09-10  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
+       (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
+       (re_match_2_internal): Be more careful with infinite loops.
+
+2002-09-10  Kim F. Storm  <storm@cua.dk>
+
+       * macros.c (end_kbd_macro): New function.
+       (Fend_kbd_macro): Use it.
+
+       * macros.h (end_kbd_macro): Declare extern.
+
+       * keyboard.c (Fdiscard_input): If defining keyboard macro,
+       end and save it instead of discarding it.
+
+2002-09-09  Markus Rost  <rost@math.ohio-state.edu>
+
+       * s/sol2-6.h: Fix typo.  Add comment.
+
+2002-09-09  Richard M. Stallman  <rms@gnu.org>
+
+       * regex.c (regnum_t): Use signed int, not unsigned int.
+
+       * s/sol2-6.h: New file.
+
+       * s/sol2-5.h (UNEXEC): Definition deleted.
+
+2002-09-08  Kim F. Storm  <storm@cua.dk>
+
+       * macros.c (executing_macro_index): Change type to EMACS_INT.
+       (syms_of_macros): DEFVAR_INT it  (needed by kmacro).
+
+       * macros.h (executing_macro_index): Change type to EMACS_INT.
+
+2002-09-06  Richard M. Stallman  <rms@gnu.org>
+
+       * casetab.c (set_case_table): Make canon table point to eqv table.
+
+2002-09-06  Juanma Barranquero  <lektu@terra.es>
+
+       * coding.c (syms_of_coding): Fix spacing.
+
+       * composite.c (Fcompose_region_internal)
+       (Fcompose_string_internal): Likewise.
+
+       * data.c (Flsh): Likewise.
+
+       * fontset.c (Fset_fontset_font): Likewise.
+
+       * macfns.c (Fx_server_max_request_size): Likewise.
+
+       * w16select.c (syms_of_win16select): Likewise.
+
+       * w32select.c (syms_of_w32select): Likewise.
+
+       * xselect.c (syms_of_xselect): Likewise.
+
+2002-09-05  Richard M. Stallman  <rms@gnu.org>
+
+       * regex.c (set_image_of_range_1): In no-TRANSLATE case,
+       call EXTEND_RANGE_TABLE and return a proper value.
+       (set_image_of_range): Don't call set_image_of_range_1
+       if no TRANSLATE or if range includes all of Latin-1.
+       Only call it for the Latin-1 part of the range.
+       For other cases, make two separate ranges,
+       one for the original specified characters and one for
+       their case-conversions.
+
+2002-09-04  Richard M. Stallman  <rms@gnu.org>
+
+       * s/sol2-5.h (UNEXEC): Use unexsol.o.
+
+       * window.c (displayed_window_lines): Correct for one-off bug
+       in HEIGHT on non-window displays.
+
+       * regex.c (set_image_of_range_1): New function.
+       (set_image_of_range): Use set_image_of_range_1 for Latin-1.
+       Return a value to indicate running out of memory.
+       (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
+       (extend_range_table_work_area): New subroutine.
+       (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
+       Different calling conventions, and used from set_image_of_range{,_1}.
+       (IMMEDIATE_QUIT_CHECK): Definitions moved.
+
+2002-09-04  Juanma Barranquero  <lektu@terra.es>
+
+       * makefile.w32-in: All dependencies updated.
+
+2002-09-01  Richard M. Stallman  <rms@gnu.org>
+
+       * unexsol.c: New file.
+
+       * xfns.c (Qbox): Declare external, don't define.
+
+       * xdisp.c (redisplay_window) <force-start case>:
+       If point is on semi-visible last line, reposition
+       it at previous line.
+
+       * alloc.c (display_malloc_warning): Use display-warning.
+       (malloc_warning_1): Function deleted.
+
+       * alloc.c [ALLOC_DEBUG]: #undef INLINE.
+
+       * lread.c (read1): Handle #! by skipping the line.
+
+2002-08-31  Richard M. Stallman  <rms@gnu.org>
+
+       * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
+       Don't include LDFLAGS.
+       (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
+
+2002-08-31  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
+       member of x_display_info unless we compile for some window system.
+
+2002-08-31  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
+       (get_window_cursor_type): Don't use them.
+       (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
+
+2002-08-30  Kenichi Handa  <handa@etl.go.jp>
+
+       * xdisp.c (get_next_display_element): Fix previous change.
+
+2002-08-30  Andrew Choi  <akochoi@shaw.ca>
+
+       * 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).
+
+       * macfns.c (Qbox): Add extern declaration.
+
+2002-08-30  Juanma Barranquero  <lektu@terra.es>
+
+       * w32fns.c (Qbox): Make extern.
+       (syms_of_w32fns): Remove initialization of Qbox.
+
+       * xfns.c (Fx_open_connection): Fix error message. Patch from Rune
+       Kleveland <runekl@viewpoint.no>.
+
+2002-08-30  Kim F. Storm  <storm@cua.dk>
+
+       The following changes consolidates the handling of the cursor
+       type in xdisp.c, moving duplicate code and functionality from
+       xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
+
+       * frame.h (enum text_cursor_kinds): Consolidated here.
+       Added DEFAULT_CURSOR value.
+       (struct frame) <desired_cursor, cursor_width>
+       <blink_off_cursor, blink_off_cursor_width>: New fields.
+       Consolidated from output_x, output_w32 and output_mac structs.
+       (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
+       (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
+
+       * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
+       Variables consolidated here.
+       (Valternate_cursor_type, Qalternate_cursor_type): New variables.
+       (Vcursor_in_non_selected_windows): Renamed from
+       cursor_in_non_selected_windows and changed to Lisp_Object.
+       (syms_of_xdisp): Define and staticpro new and moved variables.
+       (get_specified_cursor_type): Renamed from x_specified_cursor_type;
+       consolidated here.  Recognize Qhollow setting.
+       (set_frame_cursor_types): New function to set frame cursor types
+       based on the frame parameters.
+       (get_window_cursor_type): New function to calculate new cursor
+       type and width for the specified window.  Based on duplicated
+       code consolidated here.
+       Enhancements: cursor-in-non-selected-windows may be a cursor type,
+       check buffer-local alternate-cursor-type and blink-cursor-alist
+       before using built-in blink off methods.
+
+       * dispextern.h (cursor_in_non_selected_windows): Extern removed.
+
+       * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
+       (get_specified_cursor_type, get_window_cursor_type)
+       (set_frame_cursor_types): Added prototypes.
+
+       * macfns.c (x_specified_cursor_type): Removed.
+       (x_set_cursor_type): Use set_frame_cursor_types.
+       (Qbar, Qbox): Removed.
+       (syms_of_macfns): Don't intern or staticpro them.
+
+       * macterm.c (x_specified_cursor_type): Remove prototype.
+       (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
+       (x_display_and_set_cursor): Use get_window_cursor_type.
+       Remove unused local variables cursor_non_selected, active_cursor.
+       Redraw cursor if hbar cursor width changes.
+       (make_mac_frame): Set FRAME_DESIRED_CURSOR.
+
+       * macterm.h (enum text_cursor_kinds): Removed.
+       (struct output_mac) <current_cursor, desired_cursor, cursor_width>
+       <blink_off_cursor, blink_off_cursor_width>: Members removed.
+       (FRAME_DESIRED_CURSOR): Macro removed.
+
+       * w32fns.c (Vblink_cursor_alist): Removed.
+       (Qbar, Qhbar, Qbox, Qhollow): Removed.
+       (syms_of_w32fns): Don't intern, staticpro, or define them.
+       (x_specified_cursor_type): Removed.
+       (x_set_cursor_type): Use set_frame_cursor_types.
+
+       * w32term.c (x_specified_cursor_type): Remove prototype.
+       (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
+       (x_display_and_set_cursor): Use get_window_cursor_type.
+       Remove unused local variables cursor_off_state.
+       Redraw cursor if hbar cursor width changes.
+       Changed all occurrences of w32_highlight_frame to x_highlight_frame.
+
+       * w32term.h (enum text_cursor_kinds): Removed.
+       (struct output_w32) <current_cursor, desired_cursor, cursor_width>
+       <blink_off_cursor, blink_off_cursor_width>: Members removed.
+       (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
+       (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
+       (struct w32_display_info) <x_highlight_frame>: Renamed member from
+       w32_highlight_frame.
+
+       * xfns.c (Vblink_cursor_alist): Removed.
+       (Qbar, Qhbar, Qbox, Qhollow): Removed.
+       (syms_of_xfns): Don't intern, staticpro, or define them.
+       (x_specified_cursor_type): Removed.
+       (x_set_cursor_type): Use set_frame_cursor_types.
+
+       * xterm.c (x_specified_cursor_type): Remove prototype.
+       (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
+       (x_display_and_set_cursor): Use get_window_cursor_type.
+       Remove unused local variables cursor_off_state.
+       Redraw cursor if hbar cursor width changes.
+
+       * xterm.h (enum text_cursor_kinds): Removed.
+       (struct output_x) <current_cursor, desired_cursor, cursor_width>
+       <blink_off_cursor, blink_off_cursor_width>: Members removed.
+       (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
+       (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
+       (x_specified_cursor_type): Remove prototype.
+
+2002-08-28  Richard M. Stallman  <rms@gnu.org>
+
+       * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
+       FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
+       (Vblink_cursor_alist): New variable.
+       (syms_of_w32fns): Initialize and defvar it.
+       (x_specified_cursor_type): Recognize Qbox for filled box.
+       Exceptions are hollow boxes.
+       (Qbox, Qhollow): New variables.
+       (syms_of_w32fns): Initialize and staticpro them.
+
+       * 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.
+       (FRAME_CURSOR_WIDTH): New macro.
+
+       * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
+       and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
+
+       * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
+       for bar cursor.
+
+       * w32term.c (expose_overlaps): New function.
+       (expose_window): Use it to fix the display of overlapping rows.
+
+2002-08-28  Simon Josefsson  <jas@extundo.com>
+
+       * xfns.c (Fx_open_connection): Improve help when X connection
+       fails, xhost is insecure and xauth is better.
+
+2002-08-28  Juanma Barranquero  <lektu@terra.es>
+
+       * makefile.w32-in: Add missing dependencies on w32term.h and
+       composite.h.
+
+       * emacs.c (USAGE1): Add missing newline.
+
+2002-08-27  Andrew Choi  <akochoi@shaw.ca>
+
+       * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
+
+2002-08-27  Richard M. Stallman  <rms@gnu.org>
+
+       * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
+       FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
+       (Vblink_cursor_alist): New variable.
+       (syms_of_xfns): Initialize and defvar it.
+       (x_specified_cursor_type): Recognize Qbox for filled box.
+       Exceptions are hollow boxes.
+       (Qbox, Qhollow): New variables.
+       (syms_of_xfns): Initialize and staticpro them.
+
+       * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
+       New macros.
+       (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
+
+       * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
+       and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
+
+       * emacs.c (main): Handle --script.
+       (USAGE1): Mention --script.
+       (standard_args): Define sort order for --script.
+
+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.
+       (init_iterator): Don't free realized faces if
+       inhibit_free_realized_faces is set.
+       (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
+       (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
+       initialize Qinhibit_free_realized_faces.
+
+       * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
+       when iterator is adding glyphs to a glyph matrix.
+
+2002-08-27  Kenichi Handa  <handa@etl.go.jp>
+
+       * xdisp.c (get_next_display_element): In unibyte case, don't use
+       octal form for such eight-bit characters that can be converted to
+       multibyte char.
+
+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).
+
+2002-08-26  Miles Bader  <miles@gnu.org>
+
+       * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
+
+2002-08-25  Andrew Choi  <akochoi@shaw.ca>
+
+       * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
+       defined instead of MAC_OSX.
+
+       * s/darwin.h (select): Define select to sys_select only if
+       HAVE_CARBON is defined.
+       (HAVE_WORKING_VFORK): #undef it.  Define vfork to fork.
+       (DONT_REOPEN_PTY): #def it.
+
+       * macterm.c (XTread_socket): Remove code to call
+       SendEventToEventTarget for keys with command modifiers when
+       mac_command_key_is_meta is nil.
+
+2002-08-24  Andreas Schwab  <schwab@suse.de>
+
+       * eval.c (Fdefvar): Fix last change.
+
+2002-08-23  Richard M. Stallman  <rms@gnu.org>
+
+       * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
+       Record variables in load history as (defvar . VAR).
+       (Fdefvar): Don't record in load history if no initial value.
+       (Qdefvar): New variable.
+       (syms_of_eval): Init and staticpro it.
+
+       * lread.c (syms_of_lread): Doc fix.
+       (build_load_history): Use Fmember to see if a definition
+       is already in the Vload_history element.
+
+       * process.c (Fstart_process): Remove /: from program name.
+
+       * emacs.c (decode_env_path): Don't add /: if file name handler
+       has a `safe-magic' property.
+
+       * callproc.c (Fcall_process): Remove /: from program name.
+
+2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * regex.c (PATFETCH): Remove the translating fetch.
+       (PATFETCH_RAW): Rename to PATFETCH.
+       (set_image_of_range): New fun.
+       (SET_RANGE_TABLE_WORK_AREA): Use it.
+       (regex_compile): Don't translate the pattern chars so eagerly.
+       Only do it when inserting an `exactn' bytecode or when handling
+       a char-range.
+       (mutually_exclusive_p): Avoid empty statement.
+
+2002-08-22  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
+       end up on a partially visible line; this reverts a specific part
+       of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
+       display error which has been reported several times now.
+       However it introduces the problem that changes was supposed to fix.
+       See my comments in the source if you want to debug this further.
+
+2002-08-20  Kenichi Handa  <handa@etl.go.jp>
+
+       * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
+
+2002-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * msdos.c (croak): Add `void' to definition.
+
+       * sysdep.c [MSDOS]: Don't define request_sigio and
+       unrequest_sigio, they are defined on msdos.c.
+
+       * mem-limits.h [MSDOS]: Declare etext.
+
+       * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
+       `const' since CORRECT_DIR_SEPS modifies its target.
+
+2002-08-19  Kim F. Storm  <storm@cua.dk>
+
+       * keyboard.c (Fclear_this_command_keys): Added optional arg
+       KEEP-RECORD to avoid clearing lossage when we just want to clear
+       the current key sequence (kmacro needs this).
+
+2002-08-19  Kenichi Handa  <handa@localhost>
+
+       * composite.c (run_composition_function): Call FUNC if it is
+       fboundp.
+
+       * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
+       cons, return Qnil.
+
+2002-08-17  Richard M. Stallman  <rms@gnu.org>
+
+       * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
+
+       * sysdep.c [!VMS]: Include sys/files.h.
+
+       * editfns.c (save_restriction_restore): Defend from unchained marker.
+
+       * buffer.c (overlays_at): Handle extending vec uniformly.
+       (overlays_in): Handle extending vec from length 0 as in overlays_at.
+
+2002-08-15  Andrew Choi  <akochoi@shaw.ca>
+
+       * mac.c (init_mac_osx_environment): New function.
+
+       * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
+
+2002-08-14  Kim F. Storm  <storm@cua.dk>
+
+       * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
+       executing macro before appending to it (when used from Lisp).
+       (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
+       which is called prior to each iteration of macro (for kmacro.el).
+       (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
+
+       * lisp.h (Fexecute_kbd_macro): Update prototype.
+
+       * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
+
+2002-08-14  Kenichi Handa  <handa@etl.go.jp>
+
+       * xselect.c (QUTF8_STRING): New variable.
+       (symbol_to_x_atom): Pay attention to QUTF8_STRING.
+       (x_atom_to_symbol): Likewise.
+       (x_get_local_selection): New argument local_request.  If it is
+       nonzero, call handler_fn with the second arg nil.
+       (x_handle_selection_request): Call x_get_local_selection with
+       local_request 0.
+       (lisp_data_to_selection_data): Don't encode the string here.
+       (Fx_get_selection_internal): Call x_get_local_selection with
+       local_request 1.
+       (syms_of_xselect): Intern and staticpro QUTF8_STRING.
+
+       * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
+
+       * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
+
+2002-08-13  Richard M. Stallman  <rms@gnu.org>
+
+       * minibuf.c (Fminibufferp): New function.
+       (syms_of_minibuf): Defsubr it.
+       (Fminibuffer_prompt_end): Handle non-minibuffers specially.
+
+2002-08-13  Gerd Moellmann  <gerd.moellmann@t-online.de>
+
+       * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
+
+2002-08-12  Richard M. Stallman  <rms@gnu.org>
+
+       * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
+       [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
+       (WSTOPSIG, WTERMSIG): Define each one independently if not defined
+       already.
+
+       * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
+
+2002-08-11  Andrew Choi  <akochoi@shaw.ca>
+
+       * macterm.c (XTmouse_position): Check wp with is_emacs_window.
+       (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
+       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
+       Vmac_pass_control_to_system.
+
+2002-08-10  Kenichi Handa  <handa@etl.go.jp>
+
+       * coding.c (unencodable_char_position): New function.
+       (Funencodable_char_position): New function.
+       (syms_of_coding): Defsubr Funencodable_char_position.
+
+2002-08-10  Andrew Choi  <akochoi@shaw.ca>
+
+       * mac.c (sys_select) [MAC_OSX]: New function.
+
+       * macterm.c (MakeMeTheFrontProcess): New function.
+       (mac_initialize): Call MakeMeTheFrontProcess.
+
+       * s/darwin.h: Define select to sys_select.
+
+2002-08-09  Richard M. Stallman  <rms@gnu.org>
+
+       * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
+
+2002-08-09  Gerd Moellmann  <gerd.moellmann@t-online.de>
+
+       * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
+       end of the buffer.
+
+2002-08-08  Ken Raeburn  <raeburn@mit.edu>
+
+       * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int
+       mixup.
+
+       * puresize.h (BASE_PURESIZE): Increase to 910000.
+
+2002-08-08  Kenichi Handa  <handa@etl.go.jp>
+
+       * coding.c (Ffind_operation_coding_system): For write-region, if
+       VISIT is a filename, make it the target.
+
+2002-08-07  Richard M. Stallman  <rms@gnu.org>
+
+       * alloc.c (mark_object): Detect long lists for debugging.
+       (mark_object_loop_halt): New variable.
+
+       * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
+
+       * data.c (Fmake_variable_frame_local): Doc fix.
+
+2002-08-01  David Ponce  <david@dponce.com>
+
+       * w32menu.c (local_heap, local_alloc, local_free): New macros.
+       (malloc_widget_value, free_widget_value)
+       (w32_free_submenu_strings): Use them.
+
+       (push_submenu_start, push_submenu_end, push_left_right_boundary)
+       (push_menu_pane, push_menu_item, single_keymap_panes)
+       (single_menu_item, Fx_popup_menu, menubar_selection_callback)
+       (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
+       actually cleaned up.  Moved UNGCPRO outside #ifdef HAVE_MENUS block.
+
+       * w32menu.c: Changes adapted from xmenu.c
+       (set_frame_menubar): First parse all submenus,
+       then make widget_value trees from them.
+       Don't allocate any widget_value objects
+       until we are done with the parsing.
+       (parse_single_submenu): New function.
+       (digest_single_submenu): New function.
+       (single_submenu): Function deleted, replaced by those two.
+
+2002-08-04  Andrew Choi  <akochoi@shaw.ca>
+
+       * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
+       returns a valid window pointer before proceeding for keyDown and
+       autoKey events.
+
+2002-08-03  Andrew Choi  <akochoi@shaw.ca>
+
+       * macterm.c (USE_CARBON_EVENTS): New macro.
+       (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
+       (x_iconify_frame): Call CollapseWindow.
+       (Vmac_reverse_ctrl_meta): New variable.
+       (Vmac_wheel_button_is_mouse_2): New variable.
+       (init_mac_drag_n_drop): New function.
+       (mac_do_receive_drag): New function.
+       (mac_handle_service_event): New function.
+       (init_service_handler): New function.
+       (mac_to_emacs_modifiers): New function.
+       (mac_event_to_emacs_modifiers): New function.
+       (mac_get_mouse_btn): New function.
+       (mac_convert_event_ref): New function.
+       (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.
+
+       * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
+       lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
+       (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
+       TOOL_BAR_EVENT for MAC_OS as well.
+       (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
+       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.
+
+2002-08-03  Gerd Moellmann  <gerd.moellmann@t-online.de>
+
+       * xdisp.c (forward_to_next_line_start): Fix a condition that
+       lead to a newline being skipped.
+
+2002-08-02  Andrew Choi  <akochoi@shaw.ca>
+
+       * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
+
+2002-08-01  Richard M. Stallman  <rms@gnu.org>
+
+       * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
+
+2002-07-31  Andrew Choi  <akochoi@shaw.ca>
+
+       * macfns.c: #undef init_process before #define-ing it.
+
+       * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
+       HAVE_CARBON is defined.
+
 2002-07-31  Richard M. Stallman  <rms@gnu.org>
 
        * xmenu.c (set_frame_menubar): First parse all submenus,
        (parse_solitary_modifier, Fexecute_extended_command): Likewise.
        * textprop.c (validate_interval_range, interval_of): Likewise.
 
-       * fontset.c (Fset_fontset_font): Use SDATA instead of
-       XSTRING()->data.
+       * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
 
-       * charset.h (FETCH_STRING_CHAR_ADVANCE,
-       FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
+       * charset.h (FETCH_STRING_CHAR_ADVANCE)
+       (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
        XSTRING()->size_byte.
 
        * lisp.h (SDATA, SREF): Produce rvalue.
        * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
        a string.
        * casefiddle.c (casify_object): Use SSET.
-       * charset.h (FETCH_STRING_CHAR_ADVANCE,
-       FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
+       * charset.h (FETCH_STRING_CHAR_ADVANCE)
+       (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
        address of string contents.
        * data.c (Faref): Use SDATA.
        (Faset): Use SDATA, SSET.
        * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
 
        * indent.c (current_column_1, Fmove_to_column): Separate the code
-       for display-table glyphs from the code buffer text, to fix
+       for display-table glyphs from the code for buffer text, to fix
        bugs in the former.
 
 2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>