aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2002-04-12 11:43:36 +0000
committerGerd Moellmann2002-04-12 11:43:36 +0000
commit7d4cc82846d8a6eace629f4dd9a47a2f43473d6e (patch)
treeb3ace12601659396ff64896ee0ad88a20872b13c
parentae496852a13bdd9bfd3b93b25af7033b840ba954 (diff)
downloademacs-7d4cc82846d8a6eace629f4dd9a47a2f43473d6e.tar.gz
emacs-7d4cc82846d8a6eace629f4dd9a47a2f43473d6e.zip
(sync_frame_with_window_matrix_rows): Don't give frame
rows marginal areas. (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function. (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c25
2 files changed, 25 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 235ebd2ee6a..d33e08bd6af 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12002-04-12 Gerd Moellmann <gerd@gnu.org> 12002-04-12 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
4 rows marginal areas.
5 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
6 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
7
3 * dispnew.c (marginal_area_string): Check that glyph row is enabled. 8 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
4 9
52002-04-12 Dave Love <fx@gnu.org> 102002-04-12 Dave Love <fx@gnu.org>
diff --git a/src/xdisp.c b/src/xdisp.c
index 9dd35bae58f..107218b928b 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -11343,16 +11343,20 @@ sync_frame_with_window_matrix_rows (w)
11343 11343
11344 /* If W is a full-width window, glyph pointers in W's current matrix 11344 /* If W is a full-width window, glyph pointers in W's current matrix
11345 have, by definition, to be the same as glyph pointers in the 11345 have, by definition, to be the same as glyph pointers in the
11346 corresponding frame matrix. */ 11346 corresponding frame matrix. Note that frame matrices have no
11347 marginal areas (see build_frame_matrix). */
11347 window_row = w->current_matrix->rows; 11348 window_row = w->current_matrix->rows;
11348 window_row_end = window_row + w->current_matrix->nrows; 11349 window_row_end = window_row + w->current_matrix->nrows;
11349 frame_row = f->current_matrix->rows + XFASTINT (w->top); 11350 frame_row = f->current_matrix->rows + XFASTINT (w->top);
11350 while (window_row < window_row_end) 11351 while (window_row < window_row_end)
11351 { 11352 {
11352 int area; 11353 struct glyph *start = window_row->glyphs[LEFT_MARGIN_AREA];
11353 11354 struct glyph *end = window_row->glyphs[LAST_AREA];
11354 for (area = LEFT_MARGIN_AREA; area <= LAST_AREA; ++area) 11355
11355 frame_row->glyphs[area] = window_row->glyphs[area]; 11356 frame_row->glyphs[LEFT_MARGIN_AREA] = start;
11357 frame_row->glyphs[TEXT_AREA] = start;
11358 frame_row->glyphs[RIGHT_MARGIN_AREA] = end;
11359 frame_row->glyphs[LAST_AREA] = end;
11356 11360
11357 /* Disable frame rows whose corresponding window rows have 11361 /* Disable frame rows whose corresponding window rows have
11358 been disabled in try_window_id. */ 11362 been disabled in try_window_id. */
@@ -12367,6 +12371,16 @@ glyphs in short form, otherwise show glyphs in long form. */)
12367} 12371}
12368 12372
12369 12373
12374DEFUN ("dump-frame-glyph-matrix", Fdump_frame_glyph_matrix,
12375 Sdump_frame_glyph_matrix, 0, 0, "", doc: /* */)
12376 ()
12377{
12378 struct frame *f = XFRAME (selected_frame);
12379 dump_glyph_matrix (f->current_matrix, 1);
12380 return Qnil;
12381}
12382
12383
12370DEFUN ("dump-glyph-row", Fdump_glyph_row, Sdump_glyph_row, 1, 2, "", 12384DEFUN ("dump-glyph-row", Fdump_glyph_row, Sdump_glyph_row, 1, 2, "",
12371 doc: /* Dump glyph row ROW to stderr. 12385 doc: /* Dump glyph row ROW to stderr.
12372GLYPH 0 means don't dump glyphs. 12386GLYPH 0 means don't dump glyphs.
@@ -14859,6 +14873,7 @@ syms_of_xdisp ()
14859 staticpro (&message_dolog_marker3); 14873 staticpro (&message_dolog_marker3);
14860 14874
14861#if GLYPH_DEBUG 14875#if GLYPH_DEBUG
14876 defsubr (&Sdump_frame_glyph_matrix);
14862 defsubr (&Sdump_glyph_matrix); 14877 defsubr (&Sdump_glyph_matrix);
14863 defsubr (&Sdump_glyph_row); 14878 defsubr (&Sdump_glyph_row);
14864 defsubr (&Sdump_tool_bar_row); 14879 defsubr (&Sdump_tool_bar_row);