aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-12 14:09:24 +0000
committerGerd Moellmann2001-01-12 14:09:24 +0000
commitb94c0d9c633e749dc1c98224fe797695c25a658a (patch)
tree2314c5fffc50ce8726983461b17de3c4906d46ed /src
parent1751c874dcd90f07af8b836b884e120983fa00d2 (diff)
downloademacs-b94c0d9c633e749dc1c98224fe797695c25a658a.tar.gz
emacs-b94c0d9c633e749dc1c98224fe797695c25a658a.zip
(Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
and GLYPHS. (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW and GLYPHS.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index b3684024b80..ebb80afd11a 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -7163,8 +7163,10 @@ build_desired_tool_bar_string (f)
7163 ? XSTRING (f->desired_tool_bar_string)->size 7163 ? XSTRING (f->desired_tool_bar_string)->size
7164 : 0); 7164 : 0);
7165 7165
7166 /* Reuse f->desired_tool_bar_string, if possible. */ 7166 /* We need one space in the string for each image. */
7167 size_needed = f->n_tool_bar_items; 7167 size_needed = f->n_tool_bar_items;
7168
7169 /* Reuse f->desired_tool_bar_string, if possible. */
7168 if (size < size_needed) 7170 if (size < size_needed)
7169 f->desired_tool_bar_string = Fmake_string (make_number (size_needed), 7171 f->desired_tool_bar_string = Fmake_string (make_number (size_needed),
7170 make_number (' ')); 7172 make_number (' '));
@@ -11346,11 +11348,11 @@ dump_glyph_row (matrix, vpos, glyphs)
11346 11348
11347 if (glyphs != 1) 11349 if (glyphs != 1)
11348 { 11350 {
11349 fprintf (stderr, "Row Start End Used oEI><O\\CTZFes X Y W H V A P\n"); 11351 fprintf (stderr, "Row Start End Used oEI><O\\CTZFesm X Y W H V A P\n");
11350 fprintf (stderr, "=======================================================================\n"); 11352 fprintf (stderr, "=======================================================================\n");
11351 11353
11352 fprintf (stderr, "%3d %5d %5d %4d %1.1d%1.1d%1.1d%1.1d%1.1d%1.1d\ 11354 fprintf (stderr, "%3d %5d %5d %4d %1.1d%1.1d%1.1d%1.1d%1.1d%1.1d\
11353%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d %4d %4d %4d %4d %4d %4d %4d\n", 11355%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d %4d %4d %4d %4d %4d %4d %4d\n",
11354 row - matrix->rows, 11356 row - matrix->rows,
11355 MATRIX_ROW_START_CHARPOS (row), 11357 MATRIX_ROW_START_CHARPOS (row),
11356 MATRIX_ROW_END_CHARPOS (row), 11358 MATRIX_ROW_END_CHARPOS (row),
@@ -11368,6 +11370,7 @@ dump_glyph_row (matrix, vpos, glyphs)
11368 row->fill_line_p, 11370 row->fill_line_p,
11369 row->ends_in_middle_of_char_p, 11371 row->ends_in_middle_of_char_p,
11370 row->starts_in_middle_of_char_p, 11372 row->starts_in_middle_of_char_p,
11373 row->mouse_face_p,
11371 row->x, 11374 row->x,
11372 row->y, 11375 row->y,
11373 row->pixel_width, 11376 row->pixel_width,
@@ -11529,14 +11532,17 @@ GLYPH > 1 or omitted means dump glyphs in long form.")
11529} 11532}
11530 11533
11531 11534
11532DEFUN ("dump-tool-bar-row", Fdump_tool_bar_row, Sdump_tool_bar_row, 11535DEFUN ("dump-tool-bar-row", Fdump_tool_bar_row, Sdump_tool_bar_row, 1, 2, "",
11533 0, 0, "", "") 11536 "Dump glyph row ROW of the tool-bar of the current frame to stderr.\n\
11534 () 11537GLYPH 0 means don't dump glyphs.\n\
11538GLYPH 1 means dump glyphs in short form.\n\
11539GLYPH > 1 or omitted means dump glyphs in long form.")
11540 (row, glyphs)
11541 Lisp_Object row, glyphs;
11535{ 11542{
11536 struct frame *sf = SELECTED_FRAME (); 11543 struct frame *sf = SELECTED_FRAME ();
11537 struct glyph_matrix *m = (XWINDOW (sf->tool_bar_window) 11544 struct glyph_matrix *m = (XWINDOW (sf->tool_bar_window)->current_matrix);
11538 ->current_matrix); 11545 dump_glyph_row (m, XINT (row), INTEGERP (glyphs) ? XINT (glyphs) : 2);
11539 dump_glyph_row (m, 0, 1);
11540 return Qnil; 11546 return Qnil;
11541} 11547}
11542 11548