aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2003-03-21 13:49:31 +0000
committerKim F. Storm2003-03-21 13:49:31 +0000
commit641bdbf3685a69e511d5dffdd72a46e5f83b4380 (patch)
tree9fbf9f9ccd6b03d26b790db1e46b706856891e54 /src
parentd74b2553d9423c3e1fc3d070a5e88299cb39fef5 (diff)
downloademacs-641bdbf3685a69e511d5dffdd72a46e5f83b4380.tar.gz
emacs-641bdbf3685a69e511d5dffdd72a46e5f83b4380.zip
(mode_line_string, marginal_area_string): Use enum
window_part instead of int in arg list. Users changed.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 1318bcb851f..f8c781b293a 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -4049,7 +4049,6 @@ update_window (w, force_p)
4049 extern Lisp_Object do_mouse_tracking; 4049 extern Lisp_Object do_mouse_tracking;
4050#if GLYPH_DEBUG 4050#if GLYPH_DEBUG
4051 struct frame *f = XFRAME (WINDOW_FRAME (w)); 4051 struct frame *f = XFRAME (WINDOW_FRAME (w));
4052 extern struct frame *updating_frame;
4053#endif 4052#endif
4054 4053
4055 /* Check that W's frame doesn't have glyph matrices. */ 4054 /* Check that W's frame doesn't have glyph matrices. */
@@ -4339,7 +4338,7 @@ update_text_area (w, vpos)
4339 first `p' in the current row. If we would start 4338 first `p' in the current row. If we would start
4340 writing glyphs there, we wouldn't erase the lbearing 4339 writing glyphs there, we wouldn't erase the lbearing
4341 of the `p'. The rest of the lbearing problem is then 4340 of the `p'. The rest of the lbearing problem is then
4342 taken care of by x_draw_glyphs. */ 4341 taken care of by draw_glyphs. */
4343 if (overlapping_glyphs_p 4342 if (overlapping_glyphs_p
4344 && i > 0 4343 && i > 0
4345 && i < current_row->used[TEXT_AREA] 4344 && i < current_row->used[TEXT_AREA]
@@ -5725,9 +5724,10 @@ buffer_posn_from_coords (w, x, y, object, pos)
5725 the string returned. */ 5724 the string returned. */
5726 5725
5727Lisp_Object 5726Lisp_Object
5728mode_line_string (w, x, y, mode_line_p, charpos) 5727mode_line_string (w, x, y, part, charpos)
5729 struct window *w; 5728 struct window *w;
5730 int x, y, mode_line_p; 5729 int x, y;
5730 enum window_part part;
5731 int *charpos; 5731 int *charpos;
5732{ 5732{
5733 struct glyph_row *row; 5733 struct glyph_row *row;
@@ -5736,7 +5736,7 @@ mode_line_string (w, x, y, mode_line_p, charpos)
5736 int x0; 5736 int x0;
5737 Lisp_Object string = Qnil; 5737 Lisp_Object string = Qnil;
5738 5738
5739 if (mode_line_p) 5739 if (part == ON_MODE_LINE)
5740 row = MATRIX_MODE_LINE_ROW (w->current_matrix); 5740 row = MATRIX_MODE_LINE_ROW (w->current_matrix);
5741 else 5741 else
5742 row = MATRIX_HEADER_LINE_ROW (w->current_matrix); 5742 row = MATRIX_HEADER_LINE_ROW (w->current_matrix);
@@ -5772,20 +5772,21 @@ mode_line_string (w, x, y, mode_line_p, charpos)
5772 the string returned. */ 5772 the string returned. */
5773 5773
5774Lisp_Object 5774Lisp_Object
5775marginal_area_string (w, x, y, area, charpos) 5775marginal_area_string (w, x, y, part, charpos)
5776 struct window *w; 5776 struct window *w;
5777 int x, y; 5777 int x, y;
5778 int area; 5778 enum window_part part;
5779 int *charpos; 5779 int *charpos;
5780{ 5780{
5781 struct glyph_row *row = w->current_matrix->rows; 5781 struct glyph_row *row = w->current_matrix->rows;
5782 struct glyph *glyph, *end; 5782 struct glyph *glyph, *end;
5783 int x0, i, wy = y; 5783 int x0, i, wy = y;
5784 int area;
5784 Lisp_Object string = Qnil; 5785 Lisp_Object string = Qnil;
5785 5786
5786 if (area == 6) 5787 if (part == ON_LEFT_MARGIN)
5787 area = LEFT_MARGIN_AREA; 5788 area = LEFT_MARGIN_AREA;
5788 else if (area == 7) 5789 else if (part == ON_RIGHT_MARGIN)
5789 area = RIGHT_MARGIN_AREA; 5790 area = RIGHT_MARGIN_AREA;
5790 else 5791 else
5791 abort (); 5792 abort ();