aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-12 17:10:13 +0000
committerRichard M. Stallman1993-06-12 17:10:13 +0000
commitb2a7698263036b1986825065baa36c8ae5aabcbd (patch)
tree7c202708e7da7fac950788fb6c8e984fbfa76ff7 /src
parentae3050b389a4ef5e1dd103976208e2879bbe00a0 (diff)
downloademacs-b2a7698263036b1986825065baa36c8ae5aabcbd.tar.gz
emacs-b2a7698263036b1986825065baa36c8ae5aabcbd.zip
(echo_area_display): Use XFASTINT on ->height.
(copy_rope, copy_part_of_rope): Access *f as Lisp_Object.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 3acdaed0740..62a029c818d 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -332,7 +332,8 @@ echo_area_display ()
332 { 332 {
333 int i; 333 int i;
334 334
335 for (i = vpos + 1; i < vpos + XWINDOW (minibuf_window)->height; i++) 335 for (i = vpos + 1;
336 i < vpos + XFASTINT (XWINDOW (minibuf_window)->height); i++)
336 { 337 {
337 get_display_line (f, i, 0); 338 get_display_line (f, i, 0);
338 display_string (XWINDOW (minibuf_window), vpos, 339 display_string (XWINDOW (minibuf_window), vpos,
@@ -1599,9 +1600,11 @@ copy_rope (t, s, from, face)
1599 1600
1600 while (n--) 1601 while (n--)
1601 { 1602 {
1602 if (t >= s) *t = MAKE_GLYPH (GLYPH_CHAR (*f), 1603 int glyph = XFASTINT (*f);
1603 (GLYPH_FACE (*f) 1604
1604 ? GLYPH_FACE (*f) 1605 if (t >= s) *t = MAKE_GLYPH (GLYPH_CHAR (glyph),
1606 (GLYPH_FACE (glyph)
1607 ? GLYPH_FACE (glyph)
1605 : face)); 1608 : face));
1606 ++t; 1609 ++t;
1607 ++f; 1610 ++f;
@@ -1625,9 +1628,11 @@ copy_part_of_rope (t, s, from, len, face)
1625 1628
1626 while (n--) 1629 while (n--)
1627 { 1630 {
1628 if (t >= s) *t = MAKE_GLYPH (GLYPH_CHAR (*f), 1631 int glyph = XFASTINT (*f);
1629 (GLYPH_FACE (*f) 1632
1630 ? GLYPH_FACE (*f) 1633 if (t >= s) *t = MAKE_GLYPH (GLYPH_CHAR (glyph),
1634 (GLYPH_FACE (glyph)
1635 ? GLYPH_FACE (glyph)
1631 : face)); 1636 : face));
1632 ++t; 1637 ++t;
1633 ++f; 1638 ++f;