comparison src/window.c @ 33463:968cd8a9cdfe

(Fpos_visible_in_window_p): Call pos_visible with extra argument.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 14 Nov 2000 05:43:37 +0000
parents 8239087d52c5
children d0482eab29e1
comparison
equal deleted inserted replaced
33462:d8cd8e1bc659 33463:968cd8a9cdfe
335 that info. This doesn't work for POSINT == end pos, because 335 that info. This doesn't work for POSINT == end pos, because
336 the window end pos is actually the position _after_ the last 336 the window end pos is actually the position _after_ the last
337 char in the window. */ 337 char in the window. */
338 if (!NILP (fully)) 338 if (!NILP (fully))
339 { 339 {
340 pos_visible_p (w, posint, &fully_p); 340 pos_visible_p (w, posint, &fully_p, !NILP (fully));
341 in_window = fully_p ? Qt : Qnil; 341 in_window = fully_p ? Qt : Qnil;
342 } 342 }
343 else 343 else
344 in_window = Qt; 344 in_window = Qt;
345 } 345 }
348 else if (CHARPOS (top) < BUF_BEGV (buf) || CHARPOS (top) > BUF_ZV (buf)) 348 else if (CHARPOS (top) < BUF_BEGV (buf) || CHARPOS (top) > BUF_ZV (buf))
349 /* If window start is out of range, do something reasonable. */ 349 /* If window start is out of range, do something reasonable. */
350 in_window = Qnil; 350 in_window = Qnil;
351 else 351 else
352 { 352 {
353 if (pos_visible_p (w, posint, &fully_p)) 353 if (pos_visible_p (w, posint, &fully_p, !NILP (fully)))
354 in_window = NILP (fully) || fully_p ? Qt : Qnil; 354 in_window = NILP (fully) || fully_p ? Qt : Qnil;
355 else 355 else
356 in_window = Qnil; 356 in_window = Qnil;
357 } 357 }
358 358