diff options
| author | Dmitry Antipov | 2012-11-12 20:02:46 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-11-12 20:02:46 +0400 |
| commit | be49ba7461368989e0a8ac7d1f555d2f042e8c52 (patch) | |
| tree | 7623b57daa06d12a66871deda5334245ad86ae5e /src | |
| parent | 1796ef98269838a4491d40851ea5a2145a20491b (diff) | |
| download | emacs-be49ba7461368989e0a8ac7d1f555d2f042e8c52.tar.gz emacs-be49ba7461368989e0a8ac7d1f555d2f042e8c52.zip | |
* frame.h (struct frame): Convert external_tool_bar member to
1-bit unsigned bitfield.
* termhooks.h (struct terminal): Remove mouse_moved member since
all users are long dead. Adjust comment on mouse_position_hook.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/frame.h | 2 | ||||
| -rw-r--r-- | src/termhooks.h | 18 |
3 files changed, 9 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e35e307c4ee..e8ac547ff2a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2012-11-12 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2012-11-12 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * frame.h (struct frame): Convert external_tool_bar member to | ||
| 4 | 1-bit unsigned bitfield. | ||
| 5 | * termhooks.h (struct terminal): Remove mouse_moved member since | ||
| 6 | all users are long dead. Adjust comment on mouse_position_hook. | ||
| 7 | |||
| 8 | 2012-11-12 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9 | |||
| 3 | Simplify by using FOR_EACH_FRAME here and there. | 10 | Simplify by using FOR_EACH_FRAME here and there. |
| 4 | * frame.c (next_frame, prev_frame, other_visible_frames) | 11 | * frame.c (next_frame, prev_frame, other_visible_frames) |
| 5 | (delete_frame, visible-frame-list): Use FOR_EACH_FRAME. | 12 | (delete_frame, visible-frame-list): Use FOR_EACH_FRAME. |
diff --git a/src/frame.h b/src/frame.h index 1dc3ebbaf13..35cbc44becc 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -237,7 +237,7 @@ struct frame | |||
| 237 | 237 | ||
| 238 | #if defined (USE_GTK) || defined (HAVE_NS) | 238 | #if defined (USE_GTK) || defined (HAVE_NS) |
| 239 | /* Nonzero means using a tool bar that comes from the toolkit. */ | 239 | /* Nonzero means using a tool bar that comes from the toolkit. */ |
| 240 | int external_tool_bar; | 240 | unsigned external_tool_bar : 1; |
| 241 | #endif | 241 | #endif |
| 242 | 242 | ||
| 243 | /* Margin at the top of the frame. Used to display the tool-bar. */ | 243 | /* Margin at the top of the frame. Used to display the tool-bar. */ |
diff --git a/src/termhooks.h b/src/termhooks.h index 2d97fcdbc1e..b35c927fc53 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -414,14 +414,6 @@ struct terminal | |||
| 414 | int memory_below_frame; /* Terminal remembers lines scrolled | 414 | int memory_below_frame; /* Terminal remembers lines scrolled |
| 415 | off bottom */ | 415 | off bottom */ |
| 416 | 416 | ||
| 417 | #if 0 /* These are not used anywhere. */ | ||
| 418 | /* EMACS_INT baud_rate; */ /* Output speed in baud */ | ||
| 419 | int min_padding_speed; /* Speed below which no padding necessary. */ | ||
| 420 | int dont_calculate_costs; /* Nonzero means don't bother computing | ||
| 421 | various cost tables; we won't use them. */ | ||
| 422 | #endif | ||
| 423 | |||
| 424 | |||
| 425 | /* Window-based redisplay interface for this device (0 for tty | 417 | /* Window-based redisplay interface for this device (0 for tty |
| 426 | devices). */ | 418 | devices). */ |
| 427 | struct redisplay_interface *rif; | 419 | struct redisplay_interface *rif; |
| @@ -469,10 +461,7 @@ struct terminal | |||
| 469 | Otherwise, set *bar_window to Qnil, and *x and *y to the column and | 461 | Otherwise, set *bar_window to Qnil, and *x and *y to the column and |
| 470 | row of the character cell the mouse is over. | 462 | row of the character cell the mouse is over. |
| 471 | 463 | ||
| 472 | Set *time to the time the mouse was at the returned position. | 464 | Set *time to the time the mouse was at the returned position. */ |
| 473 | |||
| 474 | This should clear mouse_moved until the next motion | ||
| 475 | event arrives. */ | ||
| 476 | void (*mouse_position_hook) (struct frame **f, int, | 465 | void (*mouse_position_hook) (struct frame **f, int, |
| 477 | Lisp_Object *bar_window, | 466 | Lisp_Object *bar_window, |
| 478 | enum scroll_bar_part *part, | 467 | enum scroll_bar_part *part, |
| @@ -480,11 +469,6 @@ struct terminal | |||
| 480 | Lisp_Object *y, | 469 | Lisp_Object *y, |
| 481 | Time *); | 470 | Time *); |
| 482 | 471 | ||
| 483 | /* The window system handling code should set this if the mouse has | ||
| 484 | moved since the last call to the mouse_position_hook. Calling that | ||
| 485 | hook should clear this. */ | ||
| 486 | int mouse_moved; | ||
| 487 | |||
| 488 | /* When a frame's focus redirection is changed, this hook tells the | 472 | /* When a frame's focus redirection is changed, this hook tells the |
| 489 | window system code to re-decide where to put the highlight. Under | 473 | window system code to re-decide where to put the highlight. Under |
| 490 | X, this means that Emacs lies about where the focus is. */ | 474 | X, this means that Emacs lies about where the focus is. */ |