emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xdisp.c


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/src/xdisp.c
Date: Sun, 27 Feb 2005 05:53:10 -0500

Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.985 emacs/src/xdisp.c:1.986
*** emacs/src/xdisp.c:1.985     Fri Feb 25 21:50:21 2005
--- emacs/src/xdisp.c   Sun Feb 27 10:53:09 2005
***************
*** 5848,5856 ****
    ((op & MOVE_TO_POS) != 0                                    \
     && BUFFERP (it->object)                                    \
     && IT_CHARPOS (*it) >= to_charpos                          \
!    && (it->method == GET_FROM_BUFFER ||                               \
!        (it->method == GET_FROM_DISPLAY_VECTOR &&              \
!       it->dpvec + it->current.dpvec_index + 1 >= it->dpend)))
  
  
    while (1)
--- 5848,5856 ----
    ((op & MOVE_TO_POS) != 0                                    \
     && BUFFERP (it->object)                                    \
     && IT_CHARPOS (*it) >= to_charpos                          \
!    && (it->method == GET_FROM_BUFFER                          \
!        || (it->method == GET_FROM_DISPLAY_VECTOR              \
!          && it->dpvec + it->current.dpvec_index + 1 >= it->dpend)))
  
  
    while (1)
***************
*** 20774,20781 ****
  
    /* If whole rows or last part of a row came from a display overlay,
       row_containing_pos will skip over such rows because their end pos
!      equals the start pos of the overlay or interval.  Backtrack if we
!      have a STOP object and previous row's end glyph came from STOP.  */
    if (!NILP (stop))
      {
        struct glyph_row *prev;
--- 20774,20783 ----
  
    /* If whole rows or last part of a row came from a display overlay,
       row_containing_pos will skip over such rows because their end pos
!      equals the start pos of the overlay or interval.
! 
!      Move back if we have a STOP object and previous row's
!      end glyph came from STOP.  */
    if (!NILP (stop))
      {
        struct glyph_row *prev;
***************
*** 20783,20793 ****
             && MATRIX_ROW_END_CHARPOS (prev) == charpos
             && prev->used[TEXT_AREA] > 0)
        {
!         end = prev->glyphs[TEXT_AREA];
!         glyph = end + prev->used[TEXT_AREA];
!         while (--glyph >= end
                 && INTEGERP (glyph->object));
!         if (glyph < end
              || !EQ (stop, glyph->object))
            break;
          row = prev;
--- 20785,20795 ----
             && MATRIX_ROW_END_CHARPOS (prev) == charpos
             && prev->used[TEXT_AREA] > 0)
        {
!         struct glyph *beg = prev->glyphs[TEXT_AREA];
!         glyph = beg + prev->used[TEXT_AREA];
!         while (--glyph >= beg
                 && INTEGERP (glyph->object));
!         if (glyph < beg
              || !EQ (stop, glyph->object))
            break;
          row = prev;
***************
*** 22815,22822 ****
    message_truncate_lines = 0;
  
    DEFVAR_LISP ("menu-bar-update-hook",  &Vmenu_bar_update_hook,
!     doc: /* Normal hook run for clicks on menu bar, before displaying a 
submenu.
! Can be used to update submenus whose contents should vary.  */);
    Vmenu_bar_update_hook = Qnil;
  
    DEFVAR_BOOL ("inhibit-menubar-update", &inhibit_menubar_update,
--- 22817,22826 ----
    message_truncate_lines = 0;
  
    DEFVAR_LISP ("menu-bar-update-hook",  &Vmenu_bar_update_hook,
!     doc: /* Normal hook run to update the menu bar definitions.
! Redisplay runs this hook before it redisplays the menu bar.
! This is used to update submenus such as Buffers,
! whose contents depend on various data.  */);
    Vmenu_bar_update_hook = Qnil;
  
    DEFVAR_BOOL ("inhibit-menubar-update", &inhibit_menubar_update,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]