New functions that return window edges with absolute coords (bug#5721).
[bpt/emacs.git] / src / ChangeLog
index 489505f..ce75b28 100644 (file)
@@ -1,3 +1,567 @@
+2010-07-01  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
+       (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
+
+       * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
+       parameters, they are already absolute.
+
+       * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
+       FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
+
+       * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
+
+       * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
+       FRAME_TOOLBAR_HEIGHT.
+
+       * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
+       BLOCK/UNBLOCK_INPUT so asserts don't trigger.
+
+2010-06-30  Chong Yidong  <cyd@stupidchicken.com>
+
+       * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
+       check default-frame-alist.
+
+2010-06-30  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * process.c (create_process): Avoid using invalid file descriptors.
+
+       * callproc.c (child_setup): Avoid closing a file descriptor twice.
+
+2010-06-30  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
+       Improve documentation.  Return font regardless of use_system_font.
+       (syms_of_xsettings): Improve documentation for font-use-system-font.
+
+2009-06-17  Naohiro Aota  <naota@elisp.net>  (tiny change)
+
+       * xftfont.c (xftfont_open): Check font width one by one also when
+       spacing is dual.
+
+       * ftfont.c (ftfont_open): Ditto.
+
+2010-06-30  Glenn Morris  <rgm@gnu.org>
+
+       * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
+
+       * Makefile.in (CANNOT_DUMP): Update for configure name change.
+
+       * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
+       * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
+       * s/darwin.h (SYSTEM_MALLOC):
+       * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
+
+2010-06-29  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
+       (ns_get_screen): Don't assign integer to f.
+       (Fx_display_color_cells): Declarations before statements.
+
+2010-06-28  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfns.c (x_default_font_parameter): Remove got_from_system
+       (Bug#6526).
+
+       * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
+       (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
+       defines based on what configure finds.
+
+       * xterm.c (XTflash): Use gtk_widget_get_window.
+       (xg_scroll_callback): Use gtk_adjustment_get_upper and
+       gtk_adjustment_get_page_size.
+       (handle_one_xevent): Use gtk_widget_get_mapped.
+       (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
+       messages.
+
+       * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
+
+       * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
+       HAVE_GTK_FILE_SELECTION_NEW.
+
+       * gtkutil.c (xg_display_open, xg_display_close): Remove
+       HAVE_GTK_MULTIDISPLAY, it is always defined.
+       (xg_display_open): Return type is void.
+       (gtk_widget_set_has_window)
+       (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
+       (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
+       (gtk_adjustment_set_page_increment)
+       (gtk_adjustment_get_step_increment): #define these if not found
+       by configure.
+       (remove_submenu): New define based on Gtk+ version.
+       (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
+       gtk_widget_get_window.
+       (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
+       (xg_create_frame_widgets): Use gtk_widget_set_has_window.
+       (create_dialog): Use gtk_dialog_get_action_area and
+       gtk_dialog_get_content_area.
+       (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
+       and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW.  File chooser is always
+       available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
+       (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
+       g_object_ref and g_object_unref.
+       (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
+       gtk_widget_get_sensitive.
+       (xg_update_submenu): Use remove_submenu.
+       (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
+       properties instead to get old x and y position.
+       (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
+       gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
+       gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
+       (xg_get_tool_bar_widgets): New function.
+       (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
+       (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
+       (toolbar_set_orientation): New #define based on if configure
+       finds gtk_orientable_set_orientation.
+       (xg_create_tool_bar): Call toolbar_set_orientation.
+       (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
+       instead of gtk_box_pack_start_defaults.
+
+2010-06-28  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cmds.c (Fdelete_backward_char): Move into Lisp.
+
+2010-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * s/freebsd.h (BSD4_2): Remove redundant definition.
+       bsd-common.h defines it already.
+
+2010-06-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfns.c (Fx_create_frame): Don't consult X resouces when setting
+       menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
+       tool-bar-mode, which are now set using these X resources at
+       startup, to determine the defaults (Bug#2249).
+
+       * w32fns.c (Fx_create_frame):
+       * nsfns.m (Fx_create_frame): Likewise.
+
+       * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
+
+2010-06-24  Juanma Barranquero  <lekktu@gmail.com>
+
+       * gtkutil.c (xg_update_scrollbar_pos):
+       Avoid C99 mid-block variable declaration.
+
+2010-06-22  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
+
+       * gtkutil.h (xg_show_scroll_bar): Remove.
+
+       * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
+       if height is less than scroll bar min size.
+       (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
+
+       * xfns.c (x_default_font_parameter): Try to open font from system
+       before using it (bug#6478).  Rename got_from_gconf to got_from_system.
+
+2010-06-22  Keith Packard <keithp@keithp.com> (tiny change)
+
+       * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
+
+2010-06-20  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (try_scrolling): When scroll-conservatively is set to
+       most-positive-fixnum, be extra accurate when scrolling window
+       start, to avoid missing the cursor line.
+
+2010-06-19  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (try_scrolling): Compute the limit for searching point
+       in forward scroll from scroll_max, instead of an arbitrary limit
+       of 10 screen lines.  See
+       http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
+       and
+       http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
+       for details.
+
+2010-06-16  Glenn Morris  <rgm@gnu.org>
+
+       * editfns.c (Fbyte_to_string): Pacify compiler.
+
+2010-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * lread.c (read1): Phase out old-style backquotes a bit more.
+
+2010-06-12  Eli Zaretskii  <eliz@gnu.org>
+
+       * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
+       bidimirror.h.
+
+       * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
+
+       * bidi.c (bidi_initialize): Remove explicit initialization of
+       bidi_type_table; include biditype.h instead.  Don't support
+       entries whose second codepoint is zero.  Initialize bidi_mirror_table.
+       (bidi_mirror_char): Use bidi_mirror_table.
+
+       * biditype.h: New file.
+
+       * bidimirror.h: New file.
+
+       * window.c (syms_of_window): Doc fix (bug#6409).
+
+2010-06-12  Romain Francoise  <romain@orebokech.com>
+
+       * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
+       ediff-hook.
+
+2010-06-10  Glenn Morris  <rgm@gnu.org>
+
+       * editfns.c (Fbyte_to_string): Pacify compiler.
+
+       * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
+
+2010-06-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
+       Check `object's type before accessing its guts.
+
+2010-06-09  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * s/usg5-4.h: Fix previous change.
+       Suggested by Lawrence Mitchell <wence@gmx.li>
+
+2010-06-08  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * minibuf.c (Fall_completions): Add more checks.
+
+2010-06-08  Juanma Barranquero  <lekktu@gmail.com>
+
+       * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
+
+2010-06-08  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * lread.c (X_OK): Remove, unused.
+
+       * dispnew.c: Remove obsolete comment.
+
+       Remove INCLUDED_FCNTL.
+       * xterm.c (INCLUDED_FCNTL):
+       * callproc.c (INCLUDED_FCNTL):
+       * alloc.c (INCLUDED_FCNTL):
+       * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
+       (emacs_get_tty, emacs_set_tty): Declare unconditionally.
+
+2010-06-07  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (Fselect_window): Move `record_buffer' up to the
+       beginning of this function, so the buffer gets recorded
+       even if the selected window does not change.
+       http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
+
+2010-06-07  Juanma Barranquero  <lekktu@gmail.com>
+
+       * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
+       (Fforward_line, Fbeginning_of_line): Reflow docstrings.
+
+2010-06-06  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Remove BSTRING related code, all platforms define it.
+       * s/usg5-4.h (BSTRING): Remove definition.
+       * s/template.h (BSTRING):
+       * s/msdos.h (BSTRING):
+       * s/ms-w32.h (BSTRING):
+       * s/hpux10-20.h (BSTRING):
+       * s/gnu-linux.h (BSTRING):
+       * s/darwin.h (BSTRING):
+       * s/cygwin.h (BSTRING):
+       * s/bsd-common.h (BSTRING):
+       * s/aix4-2.h (BSTRING): Likewise.
+       * sysdep.c: Remove code depending on BSTRING not being defined.
+
+2010-06-05  Juanma Barranquero  <lekktu@gmail.com>
+
+       Remove obsolete macro BASE_LEADING_CODE_P.
+       * character.h (BASE_LEADING_CODE_P): Remove.
+       * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
+       * buffer.c (Fset_buffer_multibyte):
+       * indent.c (scan_for_column, compute_motion):
+       * insdel.c (count_combining_before, count_combining_after):
+       Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
+
+2010-06-04  Juanma Barranquero  <lekktu@gmail.com>
+
+       Turn `directory-sep-char' into a noop.
+
+       * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
+       (DIRECTORY_SEP): Define unconditionally.
+
+       * s/ms-w32.h (DIRECTORY_SEP): Remove.
+
+       * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
+       call dostounix_filename directly.
+
+       * fileio.c (CORRECT_DIR_SEPS): Remove.
+       (Ffile_name_directory, directory_file_name, Fexpand_file_name)
+       (Fsubstitute_in_file_name): Use dostounix_filename instead.
+       (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
+       (syms_of_fileio) <directory-sep-char>: Move to subr.el.
+
+       * w32proc.c (CORRECT_DIR_SEPS): Remove.
+       (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
+
+2010-06-03  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
+       address.  (Bug#6346)
+
+2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
+
+       * ccl.c (Fccl_program_p): Fix typo in docstring.
+
+2010-06-03  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Move UNEXEC definition to autoconf.
+       * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
+       * s/sol2-10.h (UNEXEC):
+       * s/irix6-5.h (UNEXEC):
+       * s/hpux10-20.h (UNEXEC):
+       * s/gnu-linux.h (UNEXEC):
+       * s/darwin.h (UNEXEC):
+       * s/cygwin.h (UNEXEC):
+       * s/bsd-common.h (UNEXEC):
+       * s/aix4-2.h (UNEXEC):
+       * m/alpha.h (UNEXEC): Likewise.
+       * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
+
+2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
+
+       Remove obsolete pre-unicode2 macros.
+       * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
+       * composite.c (composition_reseat_it):
+       * data.c (Faset):
+       * fns.c (Ffillarray):
+       * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
+       [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
+
+2010-06-03  Juri Linkov  <juri@jurta.org>
+
+       * buffer.c (Fother_buffer): Add CHECK_FRAME.
+       (Fswitch_to_buffer): Remove unused variable `err'.
+
+2010-06-03  Glenn Morris  <rgm@gnu.org>
+
+       * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
+
+       * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
+       now that AH_BOTTOM does it.
+
+       * m/hp800.h (HAVE_ALLOCA):
+       * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
+
+       * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
+       Remove NOT_C_CODE tests, it is always true now.
+
+2010-06-02  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Fix config.h includes.
+       * xsettings.c:
+       * xgselect.c:
+       * nsterm.m:
+       * nsselect.m:
+       * nsimage.m:
+       * nsfont.m:
+       * nsfns.m:
+       * dbusbind.c: Use #include <config.h> instead of "config.h" as all
+       other files do.
+
+       * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
+
+       * s/sol2-6.h: Remove obsolete comments.
+
+       Remove unnecessary alloca.h includes.
+       * keymap.c: Do not include alloca.h, config.h does that.
+       * sysdep.c: Likewise.  Do not define fwrite, not used.
+
+2010-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * sysdep.c (child_setup_tty): Move the non-canonical initialization to
+       the HAVE_TERMIO where it belongs (bug#6149).
+
+2010-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
+       of bug#6305).
+
+2010-05-30  Eli Zaretskii  <eliz@gnu.org>
+
+       * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
+       state is always cached (bug#6306).
+
+2010-05-29  Eli Zaretskii  <eliz@gnu.org>
+
+       Fix cursor motion in bidi-reordered continued lines.
+       * xdisp.c (try_cursor_movement): Backup to non-continuation line
+       only after finding point's row.  Fix the logic.  Rewrite the loop
+       over continuation lines in bidi-reordered buffers.  Return
+       CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
+       rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
+
+2010-05-28  Michael Albinus  <michael.albinus@gmx.de>
+
+       * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
+
+2010-05-28  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
+       Don't sheck SPEC if it is nil.
+       (font_list_entities): Call font_delete_unmatched if
+       Vface_ignored_fonts is non-nil.  (Bug#6287)
+
+2010-05-28  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
+
+2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * fileio.c (Fdelete_file): Change meaning of optional arg to mean
+       whether to trash.
+       (internal_delete_file, Frename_file): Callers changed.
+       (delete_by_moving_to_trash): Doc fix.
+       (Fdelete_directory_internal): Don't move to trash.
+
+       * callproc.c (delete_temp_file):
+       * buffer.c (Fkill_buffer): Callers changed.
+
+       * lisp.h: Update prototype.
+
+2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (redisplay_window): After redisplay, check if point is
+       still valid before setting it (Bug#6177).
+
+2010-05-27  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in, autodeps.mk, deps.mk, ns.mk:
+       Convert comments to Makefile format.
+
+       * Makefile.in (bootstrap-clean): No more Makefile.c.
+
+2010-05-26  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (YMF_PASS_LDFLAGS): Remove.
+       (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
+
+       * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
+       Remove.
+       (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
+
+2010-05-26  Kenichi Handa  <handa@m17n.org>
+
+       * composite.c (composition_compute_stop_pos): Fix condition for
+       backward scanning.
+
+2010-05-25  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
+       Move before TEMACS_LDFLAGS.
+       (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
+       (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
+
+       * Makefile.in (NOT_C_CODE): No longer define.
+       (config.h): No longer include.
+
+       * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
+       variables it may reference.
+
+       * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
+       (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
+
+2010-05-25  Kenichi Handa  <handa@m17n.org>
+
+       * dispextern.h (struct composition_it): New members rule_idx and
+       charpos.
+
+       * xdisp.c (set_iterator_to_next): While scanning backward, assume
+       that the character positions of IT point the last character of the
+       current grapheme cluster.
+       (next_element_from_composition): Don't change character positions
+       of IT.
+       (append_composite_glyph): Set glyph->charpos to
+       it->cmp_it.charpos.
+
+       * composite.c (autocmp_chars): Change the first argument to RULE,
+       and try composition with RULE only.
+       (composition_compute_stop_pos): Record the index number of the
+       composition rule in CMP_IT->rule_idx.
+       (composition_reseat_it): Call autocmp_chars repeatedly until the
+       correct rule of the composition is found.
+       (composition_update_it): Set CMP_IT->charpos.  Assume the CHARPOS
+       is at the last character of the current grapheme cluster when
+       CMP_IT->reversed_p is nonzero.
+
+2010-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * editfns.c (Fbyte_to_string): New function.
+
+2010-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * process.c (Fmake_network_process): Set :host to nil if it's not used.
+       Suggested by Masatake YAMATO <yamato@redhat.com>.
+
+2010-05-23  Eli Zaretskii  <eliz@gnu.org>
+
+       * dispextern.h (init_iterator): Sync prototype with changed definition.
+
+2010-05-20  enami tsugutomo  <tsugutomo.enami@jp.sony.com>
+
+       * s/netbsd.h: If terminfo is found, use it in preference to
+       termcap.  (Bug#6190)  [Backport from trunk]
+
+2010-05-19  Eli Zaretskii  <eliz@gnu.org>
+
+       Redesign and reimplement bidi-aware edge positions of glyph rows.
+
+       * dispextern.h (struct glyph_row): New members minpos and maxpos.
+       (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
+       (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
+       and maxpos members instead of start.pos and end.pos, respectively.
+
+       * xdisp.c (display_line): Compare IT_CHARPOS with the position in
+       row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
+       (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
+       (try_window_reusing_current_matrix, try_window_id):
+       Use ROW->minpos rather than ROW->start.pos.
+       (init_from_display_pos, init_iterator): Use EMACS_INT for
+       character and byte positions.
+       (find_row_edges): Rename from find_row_end.  Accept additional
+       arguments for minimum and maximum buffer positions seen by
+       display_line for this row.  Don't use iterator to find the
+       position following the maximum one; instead, increment the
+       position found by display_line directly.  Fix logic; eol_pos
+       should be tested before the rest.  Handle the case of characters
+       delivered from display vector (bug#6036).  Fix tests related to
+       it->method.  Handle the truncated_on_right_p rows.
+       (RECORD_MAX_MIN_POS): New macro.
+       (display_line): Use it to record the minimum and maximum buffer
+       positions for glyphs in the row being assembled.  Record the
+       position of the newline that terminates the line.  If word wrap is
+       in effect, restore minimum and maximum positions seen up to the
+       wrap point, when iterator returns to it.
+       (try_window_reusing_current_matrix): Give up if in bidi-reordered
+       row and cursor not already at point.  Restore original pre-bidi
+       code for unidirectional buffers.
+
+       * dispnew.c (increment_row_positions, check_matrix_invariants):
+       Increment and check row->start.pos and row->end.pos, in addition
+       to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
+
+       * .gdbinit (prowlims): Display row->minpos and row->maxpos.
+       Display truncated_on_left_p and truncated_on_right_p flags.
+       Formatting fixes.
+       (pmtxrows): Display the ordinal number of each row.  Don't display
+       rows beyond the last one.
+
+       * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
+       it is not copied by bidi_copy_it.
+
+2010-05-22  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32.c (sys_write): Break writes into chunks smaller than 32MB.
+       (Bug#6237)
+
 2010-05-22  Chong Yidong  <cyd@stupidchicken.com>
 
        * image.c (Fimage_flush): Rename from image-refresh.
        Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
        * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
 
-2010-05-19  Eli Zaretskii  <eliz@gnu.org>
-
        * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
        reallocation of the cache.  (Bug#6210)
 
        * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
        (syms_of_xdisp): Defsubr it.
 
+       * cmds.c (Fforward_char, Fbackward_char): Doc fix.
+
        * Makefile.in: Fix MSDOS-related comments.
 
 2010-05-15  Glenn Morris  <rgm@gnu.org>
        (gif_load): Put GIF extension data to the property
        `Qextension_data'.
 
-2010-04-05  Chong Yidong  <cyd@stupidchicken.com>
-
-       * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
-       terminal frames (Bug#5837).
-
 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
 
        * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
        case that the output buffer is fullfilled.
        (encode_coding): Setup ccl program here.
 
-2010-03-24  Andreas Politz  <politza@fh-trier.de>  (tiny change)
-
-       * editfns.c (Fformat): Account for string precision when computing
-       field width (Bug#5710).
-
 2010-03-23  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
        (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
        (xg_create_tool_bar): Remove unused variables.
        (x_wm_set_size_hint): Move declarations before statements.
-       (xg_create_frame_widgets): Remove variable grav,
+       (xg_create_frame_widgets): Remove variable grav.
 
 2010-02-21  Chong Yidong  <cyd@stupidchicken.com>
 
 
        * xfns.c (Fx_create_frame): Remove window size matching code from
        2010-01-15.
-       (x_get_current_desktop, x_get_desktop_workarea): Remove
+       (x_get_current_desktop, x_get_desktop_workarea): Remove.
 
 2010-01-27  Jason Rumney  <jasonr@gnu.org>
 
        fontconfig settings like hinting.
        (font_load_for_lface): If spec had a name in it, store it in entity.
 
-       * emacs.c (main): Call syms_of_xsettings
+       * emacs.c (main): Call syms_of_xsettings.
 
        * config.in: HAVE_GCONF is new.
 
        (composition_adjust_point, Fcomposition_get_gstring): New functions.
        (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
        and gstring_work_headers.  DEFVAR_LISP composition-function-table.
-       Defsubr compostion_get_gstring.
+       Defsubr composition_get_gstring.
 
        * dispextern.h (struct glyph): New union u.cmp.  Delete the member
        cmp_id.
        Report an error when image size is invalid.
        Read two bytes at a time when raw images have max_color_idx above 255.
 
-2008-04-05  Eli Zaretskii  <eliz@gnu.org>
-
-       * w32.c (readdir): If FindFirstFile/FindNextFile return in
-       cFileName a file name that includes `?' characters, use the 8+3
-       alias in cAlternateFileName instead.
-
 2008-04-05  Kenichi Handa  <handa@ni.aist.go.jp>
 
        * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't