aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2004-04-27 22:00:03 +0000
committerStefan Monnier2004-04-27 22:00:03 +0000
commitb1c2132c0c2bc822792bce336407f66e5fab5501 (patch)
tree98b3b9afff8e119f4f0f842768b6a7bc73157d14 /src
parentf24485f172efcd20394f6d5040305fe02c38e043 (diff)
downloademacs-b1c2132c0c2bc822792bce336407f66e5fab5501.tar.gz
emacs-b1c2132c0c2bc822792bce336407f66e5fab5501.zip
(x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
(on_hot_spot_p): Make sure we always return a value. (Flookup_image_map): Remove unused var ix and iy. (note_mode_line_or_margin_highlight): Remove unused var `image'.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 2ef3722c080..54efa19c5cc 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -18708,7 +18708,8 @@ x_produce_glyphs (it)
18708 it->pixel_width = 0; 18708 it->pixel_width = 0;
18709 it->nglyphs = 0; 18709 it->nglyphs = 0;
18710 18710
18711 lh = Fget_text_property (IT_CHARPOS (*it), Qline_height, it->object); 18711 lh = Fget_text_property (make_number (IT_CHARPOS (*it)),
18712 Qline_height, it->object);
18712 18713
18713 if (EQ (lh, Qt)) 18714 if (EQ (lh, Qt))
18714 { 18715 {
@@ -18754,17 +18755,20 @@ x_produce_glyphs (it)
18754 if (INTEGERP (lh)) 18755 if (INTEGERP (lh))
18755 explicit_height = XINT (lh); 18756 explicit_height = XINT (lh);
18756 else if (FLOATP (lh)) 18757 else if (FLOATP (lh))
18757 explicit_height = (it->phys_ascent + it->phys_descent) * XFLOAT_DATA (lh); 18758 explicit_height = (it->phys_ascent + it->phys_descent)
18759 * XFLOAT_DATA (lh);
18758 18760
18759 if (explicit_height > it->ascent + it->descent) 18761 if (explicit_height > it->ascent + it->descent)
18760 it->ascent = explicit_height - it->descent; 18762 it->ascent = explicit_height - it->descent;
18761 } 18763 }
18762 18764
18763 lsp = Fget_text_property (IT_CHARPOS (*it), Qline_spacing, it->object); 18765 lsp = Fget_text_property (make_number (IT_CHARPOS (*it)),
18766 Qline_spacing, it->object);
18764 if (INTEGERP (lsp)) 18767 if (INTEGERP (lsp))
18765 extra_line_spacing = XINT (lsp); 18768 extra_line_spacing = XINT (lsp);
18766 else if (FLOATP (lsp)) 18769 else if (FLOATP (lsp))
18767 extra_line_spacing = (it->phys_ascent + it->phys_descent) * XFLOAT_DATA (lsp); 18770 extra_line_spacing = (it->phys_ascent + it->phys_descent)
18771 * XFLOAT_DATA (lsp);
18768 } 18772 }
18769 else if (it->char_to_display == '\t') 18773 else if (it->char_to_display == '\t')
18770 { 18774 {
@@ -20437,8 +20441,8 @@ on_hot_spot_p (hot_spot, x, y)
20437 return inside; 20441 return inside;
20438 } 20442 }
20439 } 20443 }
20440 else 20444 /* If we don't understand the format, pretend we're not in the hot-spot. */
20441 return 0; 20445 return 0;
20442} 20446}
20443 20447
20444Lisp_Object 20448Lisp_Object
@@ -20473,7 +20477,6 @@ Returns the alist element for the first matching AREA in MAP. */)
20473 Lisp_Object map; 20477 Lisp_Object map;
20474 Lisp_Object x, y; 20478 Lisp_Object x, y;
20475{ 20479{
20476 int ix, iy;
20477 if (NILP (map)) 20480 if (NILP (map))
20478 return Qnil; 20481 return Qnil;
20479 20482
@@ -20539,7 +20542,7 @@ note_mode_line_or_margin_highlight (w, x, y, area)
20539 Lisp_Object pointer = Qnil; 20542 Lisp_Object pointer = Qnil;
20540 int charpos, dx, dy, width, height; 20543 int charpos, dx, dy, width, height;
20541 Lisp_Object string, object = Qnil; 20544 Lisp_Object string, object = Qnil;
20542 Lisp_Object pos, help, image; 20545 Lisp_Object pos, help;
20543 20546
20544 if (area == ON_MODE_LINE || area == ON_HEADER_LINE) 20547 if (area == ON_MODE_LINE || area == ON_HEADER_LINE)
20545 string = mode_line_string (w, area, &x, &y, &charpos, 20548 string = mode_line_string (w, area, &x, &y, &charpos,