Mercurial > hg > xemacs-beta
diff src/redisplay.c @ 1708:a19b0eb5dfc1
[xemacs-hg @ 2003-09-22 04:21:42 by james]
Add new pos-visible-in-window-p parameter for Emacs compatibility.
author | james |
---|---|
date | Mon, 22 Sep 2003 04:21:43 +0000 |
parents | 4f58e6e65139 |
children | a8d8f419b459 |
line wrap: on
line diff
--- a/src/redisplay.c Mon Sep 22 03:22:16 2003 +0000 +++ b/src/redisplay.c Mon Sep 22 04:21:43 2003 +0000 @@ -8083,10 +8083,13 @@ } /* Return a boolean indicating if POINT would be visible in window W - if display of the window was to begin at STARTP. */ - + if display of the window was to begin at STARTP. If PARTIALLY is + zero, then if POINT has fewer visible pixels than the window clip, + 0 is returned; otherwise, 1 is returned if POINT has any visible + pixels. */ int -point_would_be_visible (struct window *w, Charbpos startp, Charbpos point) +point_would_be_visible (struct window *w, Charbpos startp, Charbpos point, + int partially) { struct buffer *b = XBUFFER (w->buffer); int pixpos = -WINDOW_TEXT_TOP_CLIP(w); @@ -8145,7 +8148,7 @@ if (pixpos + height > bottom) { - if (bottom - pixpos < VERTICAL_CLIP (w, 0)) + if (bottom - pixpos < (partially ? 0 : VERTICAL_CLIP (w, 0))) { w->line_cache_validation_override--; return 0;