Mercurial > emacs
changeset 59693:95fe2047f466
(pos_visible_p): Return 0 if non-interactive.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sat, 22 Jan 2005 23:55:00 +0000 |
parents | 28659e58b77d |
children | 18054edb344f |
files | src/xdisp.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sat Jan 22 23:54:43 2005 +0000 +++ b/src/xdisp.c Sat Jan 22 23:55:00 2005 +0000 @@ -1256,16 +1256,18 @@ { struct it it; struct text_pos top; - int visible_p; + int visible_p = 0; struct buffer *old_buffer = NULL; + if (noninteractive) + return visible_p; + if (XBUFFER (w->buffer) != current_buffer) { old_buffer = current_buffer; set_buffer_internal_1 (XBUFFER (w->buffer)); } - visible_p = 0; SET_TEXT_POS_FROM_MARKER (top, w->start); /* Compute exact mode line heights, if requested. */