diff options
| author | Paul Eggert | 2011-03-29 00:01:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-29 00:01:11 -0700 |
| commit | 792c7b2ba5319f436b459ff2c0d21e20207db550 (patch) | |
| tree | 1c4c0d696eaa256cd45cfcada625aa090b6b9a78 /src | |
| parent | c499e55717190f3fcf46fd04cfead5bf31962ab2 (diff) | |
| download | emacs-792c7b2ba5319f436b459ff2c0d21e20207db550.tar.gz emacs-792c7b2ba5319f436b459ff2c0d21e20207db550.zip | |
* xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
(note_mode_line_or_margin_highlight, note_mouse_highlight):
Omit unused local vars.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 18 |
2 files changed, 8 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 938619aa08f..6ba04202854 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-03-29 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-29 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs): | ||
| 4 | (note_mode_line_or_margin_highlight, note_mouse_highlight): | ||
| 5 | Omit unused local vars. | ||
| 3 | * window.c (shrink_windows): Omit unused local var. | 6 | * window.c (shrink_windows): Omit unused local var. |
| 4 | * menu.c (digest_single_submenu): Omit unused local var. | 7 | * menu.c (digest_single_submenu): Omit unused local var. |
| 5 | * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]: | 8 | * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]: |
diff --git a/src/xdisp.c b/src/xdisp.c index 140c2155d15..f286000c966 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -14643,8 +14643,6 @@ try_window_reusing_current_matrix (struct window *w) | |||
| 14643 | 14643 | ||
| 14644 | if (CHARPOS (new_start) <= CHARPOS (start)) | 14644 | if (CHARPOS (new_start) <= CHARPOS (start)) |
| 14645 | { | 14645 | { |
| 14646 | int first_row_y; | ||
| 14647 | |||
| 14648 | /* Don't use this method if the display starts with an ellipsis | 14646 | /* Don't use this method if the display starts with an ellipsis |
| 14649 | displayed for invisible text. It's not easy to handle that case | 14647 | displayed for invisible text. It's not easy to handle that case |
| 14650 | below, and it's certainly not worth the effort since this is | 14648 | below, and it's certainly not worth the effort since this is |
| @@ -14659,7 +14657,6 @@ try_window_reusing_current_matrix (struct window *w) | |||
| 14659 | text. Note that it.vpos == 0 if or if not there is a | 14657 | text. Note that it.vpos == 0 if or if not there is a |
| 14660 | header-line; it's not the same as the MATRIX_ROW_VPOS! */ | 14658 | header-line; it's not the same as the MATRIX_ROW_VPOS! */ |
| 14661 | start_display (&it, w, new_start); | 14659 | start_display (&it, w, new_start); |
| 14662 | first_row_y = it.current_y; | ||
| 14663 | w->cursor.vpos = -1; | 14660 | w->cursor.vpos = -1; |
| 14664 | last_text_row = last_reused_text_row = NULL; | 14661 | last_text_row = last_reused_text_row = NULL; |
| 14665 | 14662 | ||
| @@ -22757,7 +22754,6 @@ x_produce_glyphs (struct it *it) | |||
| 22757 | int ch = COMPOSITION_GLYPH (cmp, i); | 22754 | int ch = COMPOSITION_GLYPH (cmp, i); |
| 22758 | int face_id; | 22755 | int face_id; |
| 22759 | struct face *this_face; | 22756 | struct face *this_face; |
| 22760 | int this_boff; | ||
| 22761 | 22757 | ||
| 22762 | if (ch == '\t') | 22758 | if (ch == '\t') |
| 22763 | ch = ' '; | 22759 | ch = ' '; |
| @@ -22769,9 +22765,6 @@ x_produce_glyphs (struct it *it) | |||
| 22769 | pcm = NULL; | 22765 | pcm = NULL; |
| 22770 | else | 22766 | else |
| 22771 | { | 22767 | { |
| 22772 | this_boff = font->baseline_offset; | ||
| 22773 | if (font->vertical_centering) | ||
| 22774 | this_boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff; | ||
| 22775 | get_char_face_and_encoding (it->f, ch, face_id, | 22768 | get_char_face_and_encoding (it->f, ch, face_id, |
| 22776 | &char2b, it->multibyte_p, 0); | 22769 | &char2b, it->multibyte_p, 0); |
| 22777 | pcm = get_per_char_metric (it->f, font, &char2b); | 22770 | pcm = get_per_char_metric (it->f, font, &char2b); |
| @@ -24974,10 +24967,9 @@ note_mode_line_or_margin_highlight (Lisp_Object window, int x, int y, | |||
| 24974 | CONSP (hotspot)) | 24967 | CONSP (hotspot)) |
| 24975 | && (hotspot = XCDR (hotspot), CONSP (hotspot))) | 24968 | && (hotspot = XCDR (hotspot), CONSP (hotspot))) |
| 24976 | { | 24969 | { |
| 24977 | Lisp_Object area_id, plist; | 24970 | Lisp_Object plist; |
| 24978 | 24971 | ||
| 24979 | area_id = XCAR (hotspot); | 24972 | /* Could check XCAR (hotspot) to see if we enter/leave this hot-spot. |
| 24980 | /* Could check AREA_ID to see if we enter/leave this hot-spot. | ||
| 24981 | If so, we could look for mouse-enter, mouse-leave | 24973 | If so, we could look for mouse-enter, mouse-leave |
| 24982 | properties in PLIST (and do something...). */ | 24974 | properties in PLIST (and do something...). */ |
| 24983 | hotspot = XCDR (hotspot); | 24975 | hotspot = XCDR (hotspot); |
| @@ -25312,10 +25304,10 @@ note_mouse_highlight (struct frame *f, int x, int y) | |||
| 25312 | CONSP (hotspot)) | 25304 | CONSP (hotspot)) |
| 25313 | && (hotspot = XCDR (hotspot), CONSP (hotspot))) | 25305 | && (hotspot = XCDR (hotspot), CONSP (hotspot))) |
| 25314 | { | 25306 | { |
| 25315 | Lisp_Object area_id, plist; | 25307 | Lisp_Object plist; |
| 25316 | 25308 | ||
| 25317 | area_id = XCAR (hotspot); | 25309 | /* Could check XCAR (hotspot) to see if we enter/leave |
| 25318 | /* Could check AREA_ID to see if we enter/leave this hot-spot. | 25310 | this hot-spot. |
| 25319 | If so, we could look for mouse-enter, mouse-leave | 25311 | If so, we could look for mouse-enter, mouse-leave |
| 25320 | properties in PLIST (and do something...). */ | 25312 | properties in PLIST (and do something...). */ |
| 25321 | hotspot = XCDR (hotspot); | 25313 | hotspot = XCDR (hotspot); |