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: Kim F . Storm
Subject: [Emacs-diffs] Changes to emacs/src/xdisp.c
Date: Sun, 01 May 2005 17:42:34 -0400

Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.1004 emacs/src/xdisp.c:1.1005
*** emacs/src/xdisp.c:1.1004    Sat Apr 30 20:08:12 2005
--- emacs/src/xdisp.c   Sun May  1 21:42:34 2005
***************
*** 5877,5882 ****
--- 5877,5891 ----
      {
        int x, i, ascent = 0, descent = 0;
  
+       /* Stop if we move beyond TO_CHARPOS (after an image or stretch glyph). 
 */
+       if ((op & MOVE_TO_POS) != 0
+         && BUFFERP (it->object)
+         && IT_CHARPOS (*it) > to_charpos)
+       {
+         result = MOVE_POS_MATCH_OR_ZV;
+         break;
+       }
+ 
        /* Stop when ZV reached.
           We used to stop here when TO_CHARPOS reached as well, but that is
           too soon if this glyph does not fit on this line.  So we handle it




reply via email to

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