diff options
| author | Joakim Verona | 2013-08-26 16:17:54 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-26 16:17:54 +0200 |
| commit | a896e4c89e06e92a53317c72b2863b84bb585d4d (patch) | |
| tree | fcd5150203a9ccd5ac63bb12a0bfe3e2ea27f4d7 | |
| parent | 93797975c60e1f1503f998be728ccbdbe1e86ab3 (diff) | |
| parent | e1d0341e25d588120cc58ec9114539afaf74e572 (diff) | |
| download | emacs-a896e4c89e06e92a53317c72b2863b84bb585d4d.tar.gz emacs-a896e4c89e06e92a53317c72b2863b84bb585d4d.zip | |
merge from trunk
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/lisp.h | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 11 |
3 files changed, 11 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a017eaa62f0..a065a91d32b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-08-26 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * lisp.h (Mouse_HLInfo): Drop set-but-unused members | ||
| 4 | mouse_face_beg_y and mouse_face_end_y. | ||
| 5 | * xdisp.c (note_tool_bar_highlight, mouse_face_from_buffer_pos) | ||
| 6 | (mouse_face_from_string_pos, note_mode_line_or_margin_highlight): | ||
| 7 | Adjust users and update comment where appropriate. | ||
| 8 | |||
| 1 | 2013-08-26 Martin Rudalics <rudalics@gmx.at> | 9 | 2013-08-26 Martin Rudalics <rudalics@gmx.at> |
| 2 | 10 | ||
| 3 | * frame.c (check_minibuf_window): New function. | 11 | * frame.c (check_minibuf_window): New function. |
diff --git a/src/lisp.h b/src/lisp.h index 34c70f9d1f5..6513e807223 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2177,10 +2177,8 @@ typedef struct { | |||
| 2177 | the mouse stays within this range, we need not redraw anything on | 2177 | the mouse stays within this range, we need not redraw anything on |
| 2178 | its account. Rows and columns are glyph matrix positions in | 2178 | its account. Rows and columns are glyph matrix positions in |
| 2179 | MOUSE_FACE_WINDOW. */ | 2179 | MOUSE_FACE_WINDOW. */ |
| 2180 | int mouse_face_beg_row, mouse_face_beg_col; | 2180 | int mouse_face_beg_row, mouse_face_beg_col, mouse_face_beg_x; |
| 2181 | int mouse_face_beg_x, mouse_face_beg_y; | 2181 | int mouse_face_end_row, mouse_face_end_col, mouse_face_end_x; |
| 2182 | int mouse_face_end_row, mouse_face_end_col; | ||
| 2183 | int mouse_face_end_x, mouse_face_end_y; | ||
| 2184 | Lisp_Object mouse_face_window; | 2182 | Lisp_Object mouse_face_window; |
| 2185 | int mouse_face_face_id; | 2183 | int mouse_face_face_id; |
| 2186 | Lisp_Object mouse_face_overlay; | 2184 | Lisp_Object mouse_face_overlay; |
diff --git a/src/xdisp.c b/src/xdisp.c index e842a95fb62..024b590a87c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -12440,13 +12440,11 @@ note_tool_bar_highlight (struct frame *f, int x, int y) | |||
| 12440 | hlinfo->mouse_face_beg_col = hpos; | 12440 | hlinfo->mouse_face_beg_col = hpos; |
| 12441 | hlinfo->mouse_face_beg_row = vpos; | 12441 | hlinfo->mouse_face_beg_row = vpos; |
| 12442 | hlinfo->mouse_face_beg_x = x; | 12442 | hlinfo->mouse_face_beg_x = x; |
| 12443 | hlinfo->mouse_face_beg_y = row->y; | ||
| 12444 | hlinfo->mouse_face_past_end = 0; | 12443 | hlinfo->mouse_face_past_end = 0; |
| 12445 | 12444 | ||
| 12446 | hlinfo->mouse_face_end_col = hpos + 1; | 12445 | hlinfo->mouse_face_end_col = hpos + 1; |
| 12447 | hlinfo->mouse_face_end_row = vpos; | 12446 | hlinfo->mouse_face_end_row = vpos; |
| 12448 | hlinfo->mouse_face_end_x = x + glyph->pixel_width; | 12447 | hlinfo->mouse_face_end_x = x + glyph->pixel_width; |
| 12449 | hlinfo->mouse_face_end_y = row->y; | ||
| 12450 | hlinfo->mouse_face_window = window; | 12448 | hlinfo->mouse_face_window = window; |
| 12451 | hlinfo->mouse_face_face_id = TOOL_BAR_FACE_ID; | 12449 | hlinfo->mouse_face_face_id = TOOL_BAR_FACE_ID; |
| 12452 | 12450 | ||
| @@ -27367,9 +27365,7 @@ mouse_face_from_buffer_pos (Lisp_Object window, | |||
| 27367 | r1 = tem; | 27365 | r1 = tem; |
| 27368 | } | 27366 | } |
| 27369 | 27367 | ||
| 27370 | hlinfo->mouse_face_beg_y = r1->y; | ||
| 27371 | hlinfo->mouse_face_beg_row = MATRIX_ROW_VPOS (r1, w->current_matrix); | 27368 | hlinfo->mouse_face_beg_row = MATRIX_ROW_VPOS (r1, w->current_matrix); |
| 27372 | hlinfo->mouse_face_end_y = r2->y; | ||
| 27373 | hlinfo->mouse_face_end_row = MATRIX_ROW_VPOS (r2, w->current_matrix); | 27369 | hlinfo->mouse_face_end_row = MATRIX_ROW_VPOS (r2, w->current_matrix); |
| 27374 | 27370 | ||
| 27375 | /* For a bidi-reordered row, the positions of BEFORE_STRING, | 27371 | /* For a bidi-reordered row, the positions of BEFORE_STRING, |
| @@ -27733,7 +27729,6 @@ mouse_face_from_string_pos (struct window *w, Mouse_HLInfo *hlinfo, | |||
| 27733 | { | 27729 | { |
| 27734 | hlinfo->mouse_face_beg_row | 27730 | hlinfo->mouse_face_beg_row |
| 27735 | = MATRIX_ROW_VPOS (r, w->current_matrix); | 27731 | = MATRIX_ROW_VPOS (r, w->current_matrix); |
| 27736 | hlinfo->mouse_face_beg_y = r->y; | ||
| 27737 | hlinfo->mouse_face_beg_col = g - r->glyphs[TEXT_AREA]; | 27732 | hlinfo->mouse_face_beg_col = g - r->glyphs[TEXT_AREA]; |
| 27738 | hlinfo->mouse_face_beg_x = gx; | 27733 | hlinfo->mouse_face_beg_x = gx; |
| 27739 | found = 1; | 27734 | found = 1; |
| @@ -27752,7 +27747,6 @@ mouse_face_from_string_pos (struct window *w, Mouse_HLInfo *hlinfo, | |||
| 27752 | { | 27747 | { |
| 27753 | hlinfo->mouse_face_beg_row | 27748 | hlinfo->mouse_face_beg_row |
| 27754 | = MATRIX_ROW_VPOS (r, w->current_matrix); | 27749 | = MATRIX_ROW_VPOS (r, w->current_matrix); |
| 27755 | hlinfo->mouse_face_beg_y = r->y; | ||
| 27756 | hlinfo->mouse_face_beg_col = g - r->glyphs[TEXT_AREA]; | 27750 | hlinfo->mouse_face_beg_col = g - r->glyphs[TEXT_AREA]; |
| 27757 | for (gx = r->x, g1 = r->glyphs[TEXT_AREA]; g1 < g; ++g1) | 27751 | for (gx = r->x, g1 = r->glyphs[TEXT_AREA]; g1 < g; ++g1) |
| 27758 | gx += g1->pixel_width; | 27752 | gx += g1->pixel_width; |
| @@ -27789,9 +27783,8 @@ mouse_face_from_string_pos (struct window *w, Mouse_HLInfo *hlinfo, | |||
| 27789 | /* The highlighted region ends on the previous row. */ | 27783 | /* The highlighted region ends on the previous row. */ |
| 27790 | r--; | 27784 | r--; |
| 27791 | 27785 | ||
| 27792 | /* Set the end row and its vertical pixel coordinate. */ | 27786 | /* Set the end row. */ |
| 27793 | hlinfo->mouse_face_end_row = MATRIX_ROW_VPOS (r, w->current_matrix); | 27787 | hlinfo->mouse_face_end_row = MATRIX_ROW_VPOS (r, w->current_matrix); |
| 27794 | hlinfo->mouse_face_end_y = r->y; | ||
| 27795 | 27788 | ||
| 27796 | /* Compute and set the end column and the end column's horizontal | 27789 | /* Compute and set the end column and the end column's horizontal |
| 27797 | pixel coordinate. */ | 27790 | pixel coordinate. */ |
| @@ -28289,8 +28282,6 @@ note_mode_line_or_margin_highlight (Lisp_Object window, int x, int y, | |||
| 28289 | 28282 | ||
| 28290 | hlinfo->mouse_face_beg_row = vpos; | 28283 | hlinfo->mouse_face_beg_row = vpos; |
| 28291 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_beg_row; | 28284 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_beg_row; |
| 28292 | hlinfo->mouse_face_beg_y = 0; | ||
| 28293 | hlinfo->mouse_face_end_y = 0; | ||
| 28294 | hlinfo->mouse_face_past_end = 0; | 28285 | hlinfo->mouse_face_past_end = 0; |
| 28295 | hlinfo->mouse_face_window = window; | 28286 | hlinfo->mouse_face_window = window; |
| 28296 | 28287 | ||