summaryrefslogtreecommitdiff
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2004-10-12 14:14:35 +0000
committerKim F. Storm <storm@cua.dk>2004-10-12 14:14:35 +0000
commit16fe48b4248cd1e38a545ef35c5e9ffe9a49adb4 (patch)
tree27f6cd768a616af589476f5a3886fc80a4e216fe /src/xdisp.c
parent61087d3fd64d11574f98e94c9413ef56b69c9919 (diff)
downloademacs-16fe48b4248cd1e38a545ef35c5e9ffe9a49adb4.tar.gz
(redisplay_preserve_echo_area): Flush display in case
caller, such as call-process, is not going to poll for input. (calc_line_height_property): Handle case where it->object is nil.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 1c479aee4e8..fa4ddc3eb4d 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -10407,6 +10407,9 @@ redisplay_preserve_echo_area (from_where)
}
else
redisplay_internal (1);
+
+ if (rif->flush_display_optional)
+ rif->flush_display_optional (NULL);
}
@@ -18696,8 +18699,10 @@ calc_line_height_property (it, prop, font, boff, total)
if (STRINGP (it->object))
position = make_number (IT_STRING_CHARPOS (*it));
- else
+ else if (BUFFERP (it->object))
position = make_number (IT_CHARPOS (*it));
+ else
+ return Qnil;
val = Fget_char_property (position, prop, it->object);