diff options
| author | Dmitry Antipov | 2012-12-04 19:15:30 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-12-04 19:15:30 +0400 |
| commit | 350f51adaca06e0b52800faf88ec5341c723bef7 (patch) | |
| tree | c94346dfdf5e375f6cff076f14675ba29d7dd4a4 /src | |
| parent | 46a2cc4470732ec3d8ac152932704bbcf394ee67 (diff) | |
| download | emacs-350f51adaca06e0b52800faf88ec5341c723bef7.tar.gz emacs-350f51adaca06e0b52800faf88ec5341c723bef7.zip | |
* lisp.h (Mouse_HLInfo): Remove set-but-unused mouse_face_image_state
member. Adjust users. Convert mouse_face_past_end, mouse_face_defer
and mouse_face_hidden members to a bitfields.
* frame.h (struct frame): Remove set-but-not-used space_width member.
(FRAME_SPACE_WIDTH): Remove.
* nsterm.m, w32term.c, xterm.c: Adjust users.
* termchar.h (struct tty_display_info): Remove set-but-unused se_is_so
member. Adjust users. Convert term_initted, delete_in_insert_mode,
costs_set, insert_mode, standout_mode, cursor_hidden and flow_control
members to a bitfields.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 13 | ||||
| -rw-r--r-- | src/frame.h | 8 | ||||
| -rw-r--r-- | src/lisp.h | 11 | ||||
| -rw-r--r-- | src/nsterm.m | 1 | ||||
| -rw-r--r-- | src/term.c | 4 | ||||
| -rw-r--r-- | src/termchar.h | 20 | ||||
| -rw-r--r-- | src/w32term.c | 1 | ||||
| -rw-r--r-- | src/xdisp.c | 4 | ||||
| -rw-r--r-- | src/xterm.c | 1 |
9 files changed, 26 insertions, 37 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1a91eb0f1a3..37c8647d65f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2012-12-04 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * lisp.h (Mouse_HLInfo): Remove set-but-unused mouse_face_image_state | ||
| 4 | member. Adjust users. Convert mouse_face_past_end, mouse_face_defer | ||
| 5 | and mouse_face_hidden members to a bitfields. | ||
| 6 | * frame.h (struct frame): Remove set-but-not-used space_width member. | ||
| 7 | (FRAME_SPACE_WIDTH): Remove. | ||
| 8 | * nsterm.m, w32term.c, xterm.c: Adjust users. | ||
| 9 | * termchar.h (struct tty_display_info): Remove set-but-unused se_is_so | ||
| 10 | member. Adjust users. Convert term_initted, delete_in_insert_mode, | ||
| 11 | costs_set, insert_mode, standout_mode, cursor_hidden and flow_control | ||
| 12 | members to a bitfields. | ||
| 13 | |||
| 1 | 2012-12-03 Paul Eggert <eggert@cs.ucla.edu> | 14 | 2012-12-03 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 15 | ||
| 3 | Don't let call-process be a zombie factory (Bug#12980). | 16 | Don't let call-process be a zombie factory (Bug#12980). |
diff --git a/src/frame.h b/src/frame.h index 5ebfc2f7ec3..e8241fea88f 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -301,9 +301,6 @@ struct frame | |||
| 301 | /* Canonical X unit. Width of default font, in pixels. */ | 301 | /* Canonical X unit. Width of default font, in pixels. */ |
| 302 | int column_width; | 302 | int column_width; |
| 303 | 303 | ||
| 304 | /* Width of space glyph of default font, in pixels. */ | ||
| 305 | int space_width; | ||
| 306 | |||
| 307 | /* Canonical Y unit. Height of a line, in pixels. */ | 304 | /* Canonical Y unit. Height of a line, in pixels. */ |
| 308 | int line_height; | 305 | int line_height; |
| 309 | 306 | ||
| @@ -1000,11 +997,6 @@ extern Lisp_Object selected_frame; | |||
| 1000 | 997 | ||
| 1001 | #define FRAME_COLUMN_WIDTH(F) ((F)->column_width) | 998 | #define FRAME_COLUMN_WIDTH(F) ((F)->column_width) |
| 1002 | 999 | ||
| 1003 | /* Space glyph width of the default font of frame F. */ | ||
| 1004 | |||
| 1005 | #define FRAME_SPACE_WIDTH(F) ((F)->space_width) | ||
| 1006 | |||
| 1007 | |||
| 1008 | /* Pixel width of areas used to display truncation marks, continuation | 1000 | /* Pixel width of areas used to display truncation marks, continuation |
| 1009 | marks, overlay arrows. This is 0 for terminal frames. */ | 1001 | marks, overlay arrows. This is 0 for terminal frames. */ |
| 1010 | 1002 | ||
diff --git a/src/lisp.h b/src/lisp.h index 6bf54ed721b..172a32e92a9 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1644,7 +1644,6 @@ typedef struct { | |||
| 1644 | int mouse_face_beg_x, mouse_face_beg_y; | 1644 | int mouse_face_beg_x, mouse_face_beg_y; |
| 1645 | int mouse_face_end_row, mouse_face_end_col; | 1645 | int mouse_face_end_row, mouse_face_end_col; |
| 1646 | int mouse_face_end_x, mouse_face_end_y; | 1646 | int mouse_face_end_x, mouse_face_end_y; |
| 1647 | int mouse_face_past_end; | ||
| 1648 | Lisp_Object mouse_face_window; | 1647 | Lisp_Object mouse_face_window; |
| 1649 | int mouse_face_face_id; | 1648 | int mouse_face_face_id; |
| 1650 | Lisp_Object mouse_face_overlay; | 1649 | Lisp_Object mouse_face_overlay; |
| @@ -1654,13 +1653,15 @@ typedef struct { | |||
| 1654 | struct frame *mouse_face_mouse_frame; | 1653 | struct frame *mouse_face_mouse_frame; |
| 1655 | int mouse_face_mouse_x, mouse_face_mouse_y; | 1654 | int mouse_face_mouse_x, mouse_face_mouse_y; |
| 1656 | 1655 | ||
| 1656 | /* Nonzero if part of the text currently shown in | ||
| 1657 | its mouse-face is beyond the window end. */ | ||
| 1658 | unsigned mouse_face_past_end : 1; | ||
| 1659 | |||
| 1657 | /* Nonzero means defer mouse-motion highlighting. */ | 1660 | /* Nonzero means defer mouse-motion highlighting. */ |
| 1658 | int mouse_face_defer; | 1661 | unsigned mouse_face_defer : 1; |
| 1659 | 1662 | ||
| 1660 | /* Nonzero means that the mouse highlight should not be shown. */ | 1663 | /* Nonzero means that the mouse highlight should not be shown. */ |
| 1661 | int mouse_face_hidden; | 1664 | unsigned mouse_face_hidden : 1; |
| 1662 | |||
| 1663 | int mouse_face_image_state; | ||
| 1664 | } Mouse_HLInfo; | 1665 | } Mouse_HLInfo; |
| 1665 | 1666 | ||
| 1666 | /* Data type checking. */ | 1667 | /* Data type checking. */ |
diff --git a/src/nsterm.m b/src/nsterm.m index 25eb7ebc495..55a106b7e03 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -6954,7 +6954,6 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset) | |||
| 6954 | 6954 | ||
| 6955 | FRAME_BASELINE_OFFSET (f) = font->baseline_offset; | 6955 | FRAME_BASELINE_OFFSET (f) = font->baseline_offset; |
| 6956 | FRAME_COLUMN_WIDTH (f) = font->average_width; | 6956 | FRAME_COLUMN_WIDTH (f) = font->average_width; |
| 6957 | FRAME_SPACE_WIDTH (f) = font->space_width; | ||
| 6958 | FRAME_LINE_HEIGHT (f) = font->height; | 6957 | FRAME_LINE_HEIGHT (f) = font->height; |
| 6959 | 6958 | ||
| 6960 | compute_fringe_widths (f, 1); | 6959 | compute_fringe_widths (f, 1); |
diff --git a/src/term.c b/src/term.c index 481a3423989..241875de52f 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3362,10 +3362,6 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ | |||
| 3362 | = tty->TS_delete_mode && tty->TS_insert_mode | 3362 | = tty->TS_delete_mode && tty->TS_insert_mode |
| 3363 | && !strcmp (tty->TS_delete_mode, tty->TS_insert_mode); | 3363 | && !strcmp (tty->TS_delete_mode, tty->TS_insert_mode); |
| 3364 | 3364 | ||
| 3365 | tty->se_is_so = (tty->TS_standout_mode | ||
| 3366 | && tty->TS_end_standout_mode | ||
| 3367 | && !strcmp (tty->TS_standout_mode, tty->TS_end_standout_mode)); | ||
| 3368 | |||
| 3369 | UseTabs (tty) = tabs_safe_p (fileno (tty->input)) && TabWidth (tty) == 8; | 3365 | UseTabs (tty) = tabs_safe_p (fileno (tty->input)) && TabWidth (tty) == 8; |
| 3370 | 3366 | ||
| 3371 | terminal->scroll_region_ok | 3367 | terminal->scroll_region_ok |
diff --git a/src/termchar.h b/src/termchar.h index 5c57593c04f..8bffd3e546b 100644 --- a/src/termchar.h +++ b/src/termchar.h | |||
| @@ -50,8 +50,7 @@ struct tty_display_info | |||
| 50 | 50 | ||
| 51 | struct emacs_tty *old_tty; /* The initial tty mode bits */ | 51 | struct emacs_tty *old_tty; /* The initial tty mode bits */ |
| 52 | 52 | ||
| 53 | int term_initted; /* 1 if we have been through init_sys_modes. */ | 53 | unsigned term_initted : 1; /* 1 if we have been through init_sys_modes. */ |
| 54 | |||
| 55 | 54 | ||
| 56 | int reference_count; /* Number of frames that are on this display. */ | 55 | int reference_count; /* Number of frames that are on this display. */ |
| 57 | 56 | ||
| @@ -164,17 +163,12 @@ struct tty_display_info | |||
| 164 | 163 | ||
| 165 | int RPov; /* # chars to start a TS_repeat */ | 164 | int RPov; /* # chars to start a TS_repeat */ |
| 166 | 165 | ||
| 167 | int delete_in_insert_mode; /* delete mode == insert mode */ | 166 | unsigned delete_in_insert_mode : 1; /* delete mode == insert mode */ |
| 168 | |||
| 169 | int se_is_so; /* 1 if same string both enters and leaves | ||
| 170 | standout mode */ | ||
| 171 | |||
| 172 | int costs_set; /* Nonzero if costs have been calculated. */ | ||
| 173 | |||
| 174 | int insert_mode; /* Nonzero when in insert mode. */ | ||
| 175 | int standout_mode; /* Nonzero when in standout mode. */ | ||
| 176 | 167 | ||
| 168 | unsigned costs_set : 1; /* Nonzero if costs have been calculated. */ | ||
| 177 | 169 | ||
| 170 | unsigned insert_mode : 1; /* Nonzero when in insert mode. */ | ||
| 171 | unsigned standout_mode : 1; /* Nonzero when in standout mode. */ | ||
| 178 | 172 | ||
| 179 | /* 1 if should obey 0200 bit in input chars as "Meta", 2 if should | 173 | /* 1 if should obey 0200 bit in input chars as "Meta", 2 if should |
| 180 | keep 0200 bit in input chars. 0 to ignore the 0200 bit. */ | 174 | keep 0200 bit in input chars. 0 to ignore the 0200 bit. */ |
| @@ -192,11 +186,11 @@ struct tty_display_info | |||
| 192 | 186 | ||
| 193 | /* Flag used in tty_show/hide_cursor. */ | 187 | /* Flag used in tty_show/hide_cursor. */ |
| 194 | 188 | ||
| 195 | int cursor_hidden; | 189 | unsigned cursor_hidden : 1; |
| 196 | 190 | ||
| 197 | /* Nonzero means use ^S/^Q for flow control. */ | 191 | /* Nonzero means use ^S/^Q for flow control. */ |
| 198 | int flow_control; | ||
| 199 | 192 | ||
| 193 | unsigned flow_control : 1; | ||
| 200 | }; | 194 | }; |
| 201 | 195 | ||
| 202 | /* A chain of structures for all tty devices currently in use. */ | 196 | /* A chain of structures for all tty devices currently in use. */ |
diff --git a/src/w32term.c b/src/w32term.c index 84f99c090c8..e26777543fb 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -5348,7 +5348,6 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset) | |||
| 5348 | FRAME_FONT (f) = font; | 5348 | FRAME_FONT (f) = font; |
| 5349 | FRAME_BASELINE_OFFSET (f) = font->baseline_offset; | 5349 | FRAME_BASELINE_OFFSET (f) = font->baseline_offset; |
| 5350 | FRAME_COLUMN_WIDTH (f) = font->average_width; | 5350 | FRAME_COLUMN_WIDTH (f) = font->average_width; |
| 5351 | FRAME_SPACE_WIDTH (f) = font->space_width; | ||
| 5352 | FRAME_LINE_HEIGHT (f) = font->height; | 5351 | FRAME_LINE_HEIGHT (f) = font->height; |
| 5353 | 5352 | ||
| 5354 | compute_fringe_widths (f, 1); | 5353 | compute_fringe_widths (f, 1); |
diff --git a/src/xdisp.c b/src/xdisp.c index 5f6d69dea3a..9464e87b362 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -12265,7 +12265,6 @@ handle_tool_bar_click (struct frame *f, int x, int y, int down_p, | |||
| 12265 | { | 12265 | { |
| 12266 | /* Show item in pressed state. */ | 12266 | /* Show item in pressed state. */ |
| 12267 | show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN); | 12267 | show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN); |
| 12268 | hlinfo->mouse_face_image_state = DRAW_IMAGE_SUNKEN; | ||
| 12269 | last_tool_bar_item = prop_idx; | 12268 | last_tool_bar_item = prop_idx; |
| 12270 | } | 12269 | } |
| 12271 | else | 12270 | else |
| @@ -12276,7 +12275,6 @@ handle_tool_bar_click (struct frame *f, int x, int y, int down_p, | |||
| 12276 | 12275 | ||
| 12277 | /* Show item in released state. */ | 12276 | /* Show item in released state. */ |
| 12278 | show_mouse_face (hlinfo, DRAW_IMAGE_RAISED); | 12277 | show_mouse_face (hlinfo, DRAW_IMAGE_RAISED); |
| 12279 | hlinfo->mouse_face_image_state = DRAW_IMAGE_RAISED; | ||
| 12280 | 12278 | ||
| 12281 | key = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_KEY); | 12279 | key = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_KEY); |
| 12282 | 12280 | ||
| @@ -12345,7 +12343,6 @@ note_tool_bar_highlight (struct frame *f, int x, int y) | |||
| 12345 | && last_tool_bar_item != prop_idx) | 12343 | && last_tool_bar_item != prop_idx) |
| 12346 | return; | 12344 | return; |
| 12347 | 12345 | ||
| 12348 | hlinfo->mouse_face_image_state = DRAW_NORMAL_TEXT; | ||
| 12349 | draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED; | 12346 | draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED; |
| 12350 | 12347 | ||
| 12351 | /* If tool-bar item is not enabled, don't highlight it. */ | 12348 | /* If tool-bar item is not enabled, don't highlight it. */ |
| @@ -12374,7 +12371,6 @@ note_tool_bar_highlight (struct frame *f, int x, int y) | |||
| 12374 | 12371 | ||
| 12375 | /* Display it as active. */ | 12372 | /* Display it as active. */ |
| 12376 | show_mouse_face (hlinfo, draw); | 12373 | show_mouse_face (hlinfo, draw); |
| 12377 | hlinfo->mouse_face_image_state = draw; | ||
| 12378 | } | 12374 | } |
| 12379 | 12375 | ||
| 12380 | set_help_echo: | 12376 | set_help_echo: |
diff --git a/src/xterm.c b/src/xterm.c index bbcff8c752f..8acd1d7843e 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7902,7 +7902,6 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset) | |||
| 7902 | FRAME_FONT (f) = font; | 7902 | FRAME_FONT (f) = font; |
| 7903 | FRAME_BASELINE_OFFSET (f) = font->baseline_offset; | 7903 | FRAME_BASELINE_OFFSET (f) = font->baseline_offset; |
| 7904 | FRAME_COLUMN_WIDTH (f) = font->average_width; | 7904 | FRAME_COLUMN_WIDTH (f) = font->average_width; |
| 7905 | FRAME_SPACE_WIDTH (f) = font->space_width; | ||
| 7906 | FRAME_LINE_HEIGHT (f) = FONT_HEIGHT (font); | 7905 | FRAME_LINE_HEIGHT (f) = FONT_HEIGHT (font); |
| 7907 | 7906 | ||
| 7908 | compute_fringe_widths (f, 1); | 7907 | compute_fringe_widths (f, 1); |