diff options
| -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 ad249a2c66b..386d9f6eb94 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1649,7 +1649,6 @@ typedef struct { | |||
| 1649 | int mouse_face_beg_x, mouse_face_beg_y; | 1649 | int mouse_face_beg_x, mouse_face_beg_y; |
| 1650 | int mouse_face_end_row, mouse_face_end_col; | 1650 | int mouse_face_end_row, mouse_face_end_col; |
| 1651 | int mouse_face_end_x, mouse_face_end_y; | 1651 | int mouse_face_end_x, mouse_face_end_y; |
| 1652 | int mouse_face_past_end; | ||
| 1653 | Lisp_Object mouse_face_window; | 1652 | Lisp_Object mouse_face_window; |
| 1654 | int mouse_face_face_id; | 1653 | int mouse_face_face_id; |
| 1655 | Lisp_Object mouse_face_overlay; | 1654 | Lisp_Object mouse_face_overlay; |
| @@ -1659,13 +1658,15 @@ typedef struct { | |||
| 1659 | struct frame *mouse_face_mouse_frame; | 1658 | struct frame *mouse_face_mouse_frame; |
| 1660 | int mouse_face_mouse_x, mouse_face_mouse_y; | 1659 | int mouse_face_mouse_x, mouse_face_mouse_y; |
| 1661 | 1660 | ||
| 1661 | /* Nonzero if part of the text currently shown in | ||
| 1662 | its mouse-face is beyond the window end. */ | ||
| 1663 | unsigned mouse_face_past_end : 1; | ||
| 1664 | |||
| 1662 | /* Nonzero means defer mouse-motion highlighting. */ | 1665 | /* Nonzero means defer mouse-motion highlighting. */ |
| 1663 | int mouse_face_defer; | 1666 | unsigned mouse_face_defer : 1; |
| 1664 | 1667 | ||
| 1665 | /* Nonzero means that the mouse highlight should not be shown. */ | 1668 | /* Nonzero means that the mouse highlight should not be shown. */ |
| 1666 | int mouse_face_hidden; | 1669 | unsigned mouse_face_hidden : 1; |
| 1667 | |||
| 1668 | int mouse_face_image_state; | ||
| 1669 | } Mouse_HLInfo; | 1670 | } Mouse_HLInfo; |
| 1670 | 1671 | ||
| 1671 | /* Data type checking. */ | 1672 | /* 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 4bab2756e64..e1b12b8464c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -12319,7 +12319,6 @@ handle_tool_bar_click (struct frame *f, int x, int y, int down_p, | |||
| 12319 | { | 12319 | { |
| 12320 | /* Show item in pressed state. */ | 12320 | /* Show item in pressed state. */ |
| 12321 | show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN); | 12321 | show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN); |
| 12322 | hlinfo->mouse_face_image_state = DRAW_IMAGE_SUNKEN; | ||
| 12323 | last_tool_bar_item = prop_idx; | 12322 | last_tool_bar_item = prop_idx; |
| 12324 | } | 12323 | } |
| 12325 | else | 12324 | else |
| @@ -12330,7 +12329,6 @@ handle_tool_bar_click (struct frame *f, int x, int y, int down_p, | |||
| 12330 | 12329 | ||
| 12331 | /* Show item in released state. */ | 12330 | /* Show item in released state. */ |
| 12332 | show_mouse_face (hlinfo, DRAW_IMAGE_RAISED); | 12331 | show_mouse_face (hlinfo, DRAW_IMAGE_RAISED); |
| 12333 | hlinfo->mouse_face_image_state = DRAW_IMAGE_RAISED; | ||
| 12334 | 12332 | ||
| 12335 | key = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_KEY); | 12333 | key = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_KEY); |
| 12336 | 12334 | ||
| @@ -12399,7 +12397,6 @@ note_tool_bar_highlight (struct frame *f, int x, int y) | |||
| 12399 | && last_tool_bar_item != prop_idx) | 12397 | && last_tool_bar_item != prop_idx) |
| 12400 | return; | 12398 | return; |
| 12401 | 12399 | ||
| 12402 | hlinfo->mouse_face_image_state = DRAW_NORMAL_TEXT; | ||
| 12403 | draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED; | 12400 | draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED; |
| 12404 | 12401 | ||
| 12405 | /* If tool-bar item is not enabled, don't highlight it. */ | 12402 | /* If tool-bar item is not enabled, don't highlight it. */ |
| @@ -12428,7 +12425,6 @@ note_tool_bar_highlight (struct frame *f, int x, int y) | |||
| 12428 | 12425 | ||
| 12429 | /* Display it as active. */ | 12426 | /* Display it as active. */ |
| 12430 | show_mouse_face (hlinfo, draw); | 12427 | show_mouse_face (hlinfo, draw); |
| 12431 | hlinfo->mouse_face_image_state = draw; | ||
| 12432 | } | 12428 | } |
| 12433 | 12429 | ||
| 12434 | set_help_echo: | 12430 | set_help_echo: |
diff --git a/src/xterm.c b/src/xterm.c index 68d2dd7c70d..9ca220d3fbb 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7916,7 +7916,6 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset) | |||
| 7916 | FRAME_FONT (f) = font; | 7916 | FRAME_FONT (f) = font; |
| 7917 | FRAME_BASELINE_OFFSET (f) = font->baseline_offset; | 7917 | FRAME_BASELINE_OFFSET (f) = font->baseline_offset; |
| 7918 | FRAME_COLUMN_WIDTH (f) = font->average_width; | 7918 | FRAME_COLUMN_WIDTH (f) = font->average_width; |
| 7919 | FRAME_SPACE_WIDTH (f) = font->space_width; | ||
| 7920 | FRAME_LINE_HEIGHT (f) = FONT_HEIGHT (font); | 7919 | FRAME_LINE_HEIGHT (f) = FONT_HEIGHT (font); |
| 7921 | 7920 | ||
| 7922 | compute_fringe_widths (f, 1); | 7921 | compute_fringe_widths (f, 1); |