diff options
| author | Dmitry Antipov | 2013-08-26 18:00:55 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-26 18:00:55 +0400 |
| commit | e1d0341e25d588120cc58ec9114539afaf74e572 (patch) | |
| tree | 9dfffc7447fa0e73aa8d3ac17fed457c1c7178a8 /src | |
| parent | 78fc2530af6b5b36351542b5662ba5d9d5813d04 (diff) | |
| download | emacs-e1d0341e25d588120cc58ec9114539afaf74e572.tar.gz emacs-e1d0341e25d588120cc58ec9114539afaf74e572.zip | |
* lisp.h (Mouse_HLInfo): Drop set-but-unused members
mouse_face_beg_y and mouse_face_end_y.
* xdisp.c (note_tool_bar_highlight, mouse_face_from_buffer_pos)
(mouse_face_from_string_pos, note_mode_line_or_margin_highlight):
Adjust users and update comment where appropriate.
Diffstat (limited to 'src')
| -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 ea8b7e3474e..f609727fe27 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2172,10 +2172,8 @@ typedef struct { | |||
| 2172 | the mouse stays within this range, we need not redraw anything on | 2172 | the mouse stays within this range, we need not redraw anything on |
| 2173 | its account. Rows and columns are glyph matrix positions in | 2173 | its account. Rows and columns are glyph matrix positions in |
| 2174 | MOUSE_FACE_WINDOW. */ | 2174 | MOUSE_FACE_WINDOW. */ |
| 2175 | int mouse_face_beg_row, mouse_face_beg_col; | 2175 | int mouse_face_beg_row, mouse_face_beg_col, mouse_face_beg_x; |
| 2176 | int mouse_face_beg_x, mouse_face_beg_y; | 2176 | int mouse_face_end_row, mouse_face_end_col, mouse_face_end_x; |
| 2177 | int mouse_face_end_row, mouse_face_end_col; | ||
| 2178 | int mouse_face_end_x, mouse_face_end_y; | ||
| 2179 | Lisp_Object mouse_face_window; | 2177 | Lisp_Object mouse_face_window; |
| 2180 | int mouse_face_face_id; | 2178 | int mouse_face_face_id; |
| 2181 | Lisp_Object mouse_face_overlay; | 2179 | Lisp_Object mouse_face_overlay; |
diff --git a/src/xdisp.c b/src/xdisp.c index cbb70a22bfb..0617a3e6430 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -12384,13 +12384,11 @@ note_tool_bar_highlight (struct frame *f, int x, int y) | |||
| 12384 | hlinfo->mouse_face_beg_col = hpos; | 12384 | hlinfo->mouse_face_beg_col = hpos; |
| 12385 | hlinfo->mouse_face_beg_row = vpos; | 12385 | hlinfo->mouse_face_beg_row = vpos; |
| 12386 | hlinfo->mouse_face_beg_x = x; | 12386 | hlinfo->mouse_face_beg_x = x; |
| 12387 | hlinfo->mouse_face_beg_y = row->y; | ||
| 12388 | hlinfo->mouse_face_past_end = 0; | 12387 | hlinfo->mouse_face_past_end = 0; |
| 12389 | 12388 | ||
| 12390 | hlinfo->mouse_face_end_col = hpos + 1; | 12389 | hlinfo->mouse_face_end_col = hpos + 1; |
| 12391 | hlinfo->mouse_face_end_row = vpos; | 12390 | hlinfo->mouse_face_end_row = vpos; |
| 12392 | hlinfo->mouse_face_end_x = x + glyph->pixel_width; | 12391 | hlinfo->mouse_face_end_x = x + glyph->pixel_width; |
| 12393 | hlinfo->mouse_face_end_y = row->y; | ||
| 12394 | hlinfo->mouse_face_window = window; | 12392 | hlinfo->mouse_face_window = window; |
| 12395 | hlinfo->mouse_face_face_id = TOOL_BAR_FACE_ID; | 12393 | hlinfo->mouse_face_face_id = TOOL_BAR_FACE_ID; |
| 12396 | 12394 | ||
| @@ -27113,9 +27111,7 @@ mouse_face_from_buffer_pos (Lisp_Object window, | |||
| 27113 | r1 = tem; | 27111 | r1 = tem; |
| 27114 | } | 27112 | } |
| 27115 | 27113 | ||
| 27116 | hlinfo->mouse_face_beg_y = r1->y; | ||
| 27117 | hlinfo->mouse_face_beg_row = MATRIX_ROW_VPOS (r1, w->current_matrix); | 27114 | hlinfo->mouse_face_beg_row = MATRIX_ROW_VPOS (r1, w->current_matrix); |
| 27118 | hlinfo->mouse_face_end_y = r2->y; | ||
| 27119 | hlinfo->mouse_face_end_row = MATRIX_ROW_VPOS (r2, w->current_matrix); | 27115 | hlinfo->mouse_face_end_row = MATRIX_ROW_VPOS (r2, w->current_matrix); |
| 27120 | 27116 | ||
| 27121 | /* For a bidi-reordered row, the positions of BEFORE_STRING, | 27117 | /* For a bidi-reordered row, the positions of BEFORE_STRING, |
| @@ -27479,7 +27475,6 @@ mouse_face_from_string_pos (struct window *w, Mouse_HLInfo *hlinfo, | |||
| 27479 | { | 27475 | { |
| 27480 | hlinfo->mouse_face_beg_row | 27476 | hlinfo->mouse_face_beg_row |
| 27481 | = MATRIX_ROW_VPOS (r, w->current_matrix); | 27477 | = MATRIX_ROW_VPOS (r, w->current_matrix); |
| 27482 | hlinfo->mouse_face_beg_y = r->y; | ||
| 27483 | hlinfo->mouse_face_beg_col = g - r->glyphs[TEXT_AREA]; | 27478 | hlinfo->mouse_face_beg_col = g - r->glyphs[TEXT_AREA]; |
| 27484 | hlinfo->mouse_face_beg_x = gx; | 27479 | hlinfo->mouse_face_beg_x = gx; |
| 27485 | found = 1; | 27480 | found = 1; |
| @@ -27498,7 +27493,6 @@ mouse_face_from_string_pos (struct window *w, Mouse_HLInfo *hlinfo, | |||
| 27498 | { | 27493 | { |
| 27499 | hlinfo->mouse_face_beg_row | 27494 | hlinfo->mouse_face_beg_row |
| 27500 | = MATRIX_ROW_VPOS (r, w->current_matrix); | 27495 | = MATRIX_ROW_VPOS (r, w->current_matrix); |
| 27501 | hlinfo->mouse_face_beg_y = r->y; | ||
| 27502 | hlinfo->mouse_face_beg_col = g - r->glyphs[TEXT_AREA]; | 27496 | hlinfo->mouse_face_beg_col = g - r->glyphs[TEXT_AREA]; |
| 27503 | for (gx = r->x, g1 = r->glyphs[TEXT_AREA]; g1 < g; ++g1) | 27497 | for (gx = r->x, g1 = r->glyphs[TEXT_AREA]; g1 < g; ++g1) |
| 27504 | gx += g1->pixel_width; | 27498 | gx += g1->pixel_width; |
| @@ -27535,9 +27529,8 @@ mouse_face_from_string_pos (struct window *w, Mouse_HLInfo *hlinfo, | |||
| 27535 | /* The highlighted region ends on the previous row. */ | 27529 | /* The highlighted region ends on the previous row. */ |
| 27536 | r--; | 27530 | r--; |
| 27537 | 27531 | ||
| 27538 | /* Set the end row and its vertical pixel coordinate. */ | 27532 | /* Set the end row. */ |
| 27539 | hlinfo->mouse_face_end_row = MATRIX_ROW_VPOS (r, w->current_matrix); | 27533 | hlinfo->mouse_face_end_row = MATRIX_ROW_VPOS (r, w->current_matrix); |
| 27540 | hlinfo->mouse_face_end_y = r->y; | ||
| 27541 | 27534 | ||
| 27542 | /* Compute and set the end column and the end column's horizontal | 27535 | /* Compute and set the end column and the end column's horizontal |
| 27543 | pixel coordinate. */ | 27536 | pixel coordinate. */ |
| @@ -28035,8 +28028,6 @@ note_mode_line_or_margin_highlight (Lisp_Object window, int x, int y, | |||
| 28035 | 28028 | ||
| 28036 | hlinfo->mouse_face_beg_row = vpos; | 28029 | hlinfo->mouse_face_beg_row = vpos; |
| 28037 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_beg_row; | 28030 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_beg_row; |
| 28038 | hlinfo->mouse_face_beg_y = 0; | ||
| 28039 | hlinfo->mouse_face_end_y = 0; | ||
| 28040 | hlinfo->mouse_face_past_end = 0; | 28031 | hlinfo->mouse_face_past_end = 0; |
| 28041 | hlinfo->mouse_face_window = window; | 28032 | hlinfo->mouse_face_window = window; |
| 28042 | 28033 | ||