Mercurial > emacs
comparison src/xfns.c @ 108450:de8a1b891175
Merge from mainline.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Sun, 11 Apr 2010 10:53:01 +0000 |
parents | 834292200403 |
children | 117dfaee55b8 |
comparison
equal
deleted
inserted
replaced
108449:0346e41d1e53 | 108450:de8a1b891175 |
---|---|
5226 set_buffer_internal_1 (XBUFFER (XWINDOW (FRAME_ROOT_WINDOW (f))->buffer)); | 5226 set_buffer_internal_1 (XBUFFER (XWINDOW (FRAME_ROOT_WINDOW (f))->buffer)); |
5227 current_buffer->truncate_lines = Qnil; | 5227 current_buffer->truncate_lines = Qnil; |
5228 clear_glyph_matrix (w->desired_matrix); | 5228 clear_glyph_matrix (w->desired_matrix); |
5229 clear_glyph_matrix (w->current_matrix); | 5229 clear_glyph_matrix (w->current_matrix); |
5230 SET_TEXT_POS (pos, BEGV, BEGV_BYTE); | 5230 SET_TEXT_POS (pos, BEGV, BEGV_BYTE); |
5231 try_window (FRAME_ROOT_WINDOW (f), pos, 0); | 5231 try_window (FRAME_ROOT_WINDOW (f), pos, TRY_WINDOW_IGNORE_FONTS_CHANGE); |
5232 | 5232 |
5233 /* Compute width and height of the tooltip. */ | 5233 /* Compute width and height of the tooltip. */ |
5234 width = height = 0; | 5234 width = height = 0; |
5235 for (i = 0; i < w->desired_matrix->nrows; ++i) | 5235 for (i = 0; i < w->desired_matrix->nrows; ++i) |
5236 { | 5236 { |
5243 break; | 5243 break; |
5244 | 5244 |
5245 /* Let the row go over the full width of the frame. */ | 5245 /* Let the row go over the full width of the frame. */ |
5246 row->full_width_p = 1; | 5246 row->full_width_p = 1; |
5247 | 5247 |
5248 row_width = row->pixel_width; | |
5248 /* There's a glyph at the end of rows that is used to place | 5249 /* There's a glyph at the end of rows that is used to place |
5249 the cursor there. Don't include the width of this glyph. */ | 5250 the cursor there. Don't include the width of this glyph. */ |
5250 if (row->used[TEXT_AREA]) | 5251 if (row->used[TEXT_AREA]) |
5251 { | 5252 { |
5252 last = &row->glyphs[TEXT_AREA][row->used[TEXT_AREA] - 1]; | 5253 last = &row->glyphs[TEXT_AREA][row->used[TEXT_AREA] - 1]; |
5253 row_width = row->pixel_width - last->pixel_width; | 5254 if (INTEGERP (last->object)) |
5255 row_width -= last->pixel_width; | |
5254 } | 5256 } |
5255 else | |
5256 row_width = row->pixel_width; | |
5257 | 5257 |
5258 height += row->height; | 5258 height += row->height; |
5259 width = max (width, row_width); | 5259 width = max (width, row_width); |
5260 } | 5260 } |
5261 | 5261 |