diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/frame.c | 2 | ||||
| -rw-r--r-- | src/frame.h | 12 | ||||
| -rw-r--r-- | src/nsfns.m | 1 | ||||
| -rw-r--r-- | src/term.c | 1 | ||||
| -rw-r--r-- | src/w32fns.c | 4 | ||||
| -rw-r--r-- | src/xfns.c | 4 |
7 files changed, 8 insertions, 23 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 512982858d8..f5f5c9e897a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2012-11-03 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2012-11-03 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * frame.h (struct frame): Drop can_have_scroll_bars member | ||
| 4 | which is meaningless for a long time. Adjust comments. | ||
| 5 | (FRAME_CAN_HAVE_SCROLL_BARS): Remove. | ||
| 6 | * frame.c, nsfns.m, term.c, w32fns.c, xfns.c: Adjust users. | ||
| 7 | |||
| 8 | 2012-11-03 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9 | |||
| 3 | * window.c (decode_next_window_args): Update window arg after | 10 | * window.c (decode_next_window_args): Update window arg after |
| 4 | calling decode_live_window and so fix crash reported at | 11 | calling decode_live_window and so fix crash reported at |
| 5 | http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00035.html | 12 | http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00035.html |
diff --git a/src/frame.c b/src/frame.c index 79893abf826..1d375380d56 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -502,7 +502,6 @@ make_initial_frame (void) | |||
| 502 | FRAME_FOREGROUND_PIXEL (f) = FACE_TTY_DEFAULT_FG_COLOR; | 502 | FRAME_FOREGROUND_PIXEL (f) = FACE_TTY_DEFAULT_FG_COLOR; |
| 503 | FRAME_BACKGROUND_PIXEL (f) = FACE_TTY_DEFAULT_BG_COLOR; | 503 | FRAME_BACKGROUND_PIXEL (f) = FACE_TTY_DEFAULT_BG_COLOR; |
| 504 | 504 | ||
| 505 | FRAME_CAN_HAVE_SCROLL_BARS (f) = 0; | ||
| 506 | FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none; | 505 | FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none; |
| 507 | 506 | ||
| 508 | /* The default value of menu-bar-mode is t. */ | 507 | /* The default value of menu-bar-mode is t. */ |
| @@ -551,7 +550,6 @@ make_terminal_frame (struct terminal *terminal) | |||
| 551 | FRAME_BACKGROUND_PIXEL (f) = FACE_TTY_DEFAULT_BG_COLOR; | 550 | FRAME_BACKGROUND_PIXEL (f) = FACE_TTY_DEFAULT_BG_COLOR; |
| 552 | #endif /* not MSDOS */ | 551 | #endif /* not MSDOS */ |
| 553 | 552 | ||
| 554 | FRAME_CAN_HAVE_SCROLL_BARS (f) = 0; | ||
| 555 | FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none; | 553 | FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none; |
| 556 | FRAME_MENU_BAR_LINES(f) = NILP (Vmenu_bar_mode) ? 0 : 1; | 554 | FRAME_MENU_BAR_LINES(f) = NILP (Vmenu_bar_mode) ? 0 : 1; |
| 557 | 555 | ||
diff --git a/src/frame.h b/src/frame.h index f8c3d99fedd..eea618df797 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -409,10 +409,6 @@ struct frame | |||
| 409 | show no modeline for that window. */ | 409 | show no modeline for that window. */ |
| 410 | unsigned wants_modeline : 1; | 410 | unsigned wants_modeline : 1; |
| 411 | 411 | ||
| 412 | /* Non-zero if the hardware device this frame is displaying on can | ||
| 413 | support scroll bars. */ | ||
| 414 | char can_have_scroll_bars; | ||
| 415 | |||
| 416 | /* Non-0 means raise this frame to the top of the heap when selected. */ | 412 | /* Non-0 means raise this frame to the top of the heap when selected. */ |
| 417 | unsigned auto_raise : 1; | 413 | unsigned auto_raise : 1; |
| 418 | 414 | ||
| @@ -438,8 +434,7 @@ struct frame | |||
| 438 | /* Nonzero means that the pointer is invisible. */ | 434 | /* Nonzero means that the pointer is invisible. */ |
| 439 | unsigned pointer_invisible :1; | 435 | unsigned pointer_invisible :1; |
| 440 | 436 | ||
| 441 | /* If can_have_scroll_bars is non-zero, this is non-zero if we should | 437 | /* Nonzero if we should actually display the scroll bars on this frame. */ |
| 442 | actually display them on this frame. */ | ||
| 443 | enum vertical_scroll_bar_type vertical_scroll_bar_type; | 438 | enum vertical_scroll_bar_type vertical_scroll_bar_type; |
| 444 | 439 | ||
| 445 | /* What kind of text cursor should we draw in the future? | 440 | /* What kind of text cursor should we draw in the future? |
| @@ -767,11 +762,6 @@ typedef struct frame *FRAME_PTR; | |||
| 767 | #define FRAME_SCROLL_BOTTOM_VPOS(f) (f)->scroll_bottom_vpos | 762 | #define FRAME_SCROLL_BOTTOM_VPOS(f) (f)->scroll_bottom_vpos |
| 768 | #define FRAME_FOCUS_FRAME(f) f->focus_frame | 763 | #define FRAME_FOCUS_FRAME(f) f->focus_frame |
| 769 | 764 | ||
| 770 | /* Nonzero if frame F supports scroll bars. | ||
| 771 | If this is zero, then it is impossible to enable scroll bars | ||
| 772 | on frame F. */ | ||
| 773 | #define FRAME_CAN_HAVE_SCROLL_BARS(f) ((f)->can_have_scroll_bars) | ||
| 774 | |||
| 775 | /* This frame slot says whether scroll bars are currently enabled for frame F, | 765 | /* This frame slot says whether scroll bars are currently enabled for frame F, |
| 776 | and which side they are on. */ | 766 | and which side they are on. */ |
| 777 | #define FRAME_VERTICAL_SCROLL_BAR_TYPE(f) ((f)->vertical_scroll_bar_type) | 767 | #define FRAME_VERTICAL_SCROLL_BAR_TYPE(f) ((f)->vertical_scroll_bar_type) |
diff --git a/src/nsfns.m b/src/nsfns.m index 7a22ac547c3..e8bf696e7f5 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -1175,7 +1175,6 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1175 | f = make_frame (1); | 1175 | f = make_frame (1); |
| 1176 | 1176 | ||
| 1177 | XSETFRAME (frame, f); | 1177 | XSETFRAME (frame, f); |
| 1178 | FRAME_CAN_HAVE_SCROLL_BARS (f) = 1; | ||
| 1179 | 1178 | ||
| 1180 | f->terminal = dpyinfo->terminal; | 1179 | f->terminal = dpyinfo->terminal; |
| 1181 | 1180 | ||
diff --git a/src/term.c b/src/term.c index 74b02b0af27..ffc559469e6 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3235,7 +3235,6 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ | |||
| 3235 | FrameCols (tty) = FRAME_COLS (f); | 3235 | FrameCols (tty) = FRAME_COLS (f); |
| 3236 | tty->specified_window = FRAME_LINES (f); | 3236 | tty->specified_window = FRAME_LINES (f); |
| 3237 | 3237 | ||
| 3238 | FRAME_CAN_HAVE_SCROLL_BARS (f) = 0; | ||
| 3239 | FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none; | 3238 | FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = vertical_scroll_bar_none; |
| 3240 | terminal->char_ins_del_ok = 1; | 3239 | terminal->char_ins_del_ok = 1; |
| 3241 | baud_rate = 19200; | 3240 | baud_rate = 19200; |
diff --git a/src/w32fns.c b/src/w32fns.c index 7459c4a31db..74bb2375ea5 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -4284,9 +4284,6 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4284 | 4284 | ||
| 4285 | XSETFRAME (frame, f); | 4285 | XSETFRAME (frame, f); |
| 4286 | 4286 | ||
| 4287 | /* Note that Windows does support scroll bars. */ | ||
| 4288 | FRAME_CAN_HAVE_SCROLL_BARS (f) = 1; | ||
| 4289 | |||
| 4290 | /* By default, make scrollbars the system standard width. */ | 4287 | /* By default, make scrollbars the system standard width. */ |
| 4291 | FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = GetSystemMetrics (SM_CXVSCROLL); | 4288 | FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = GetSystemMetrics (SM_CXVSCROLL); |
| 4292 | 4289 | ||
| @@ -5387,7 +5384,6 @@ x_create_tip_frame (struct w32_display_info *dpyinfo, | |||
| 5387 | Finsert (1, &text); | 5384 | Finsert (1, &text); |
| 5388 | set_buffer_internal_1 (old_buffer); | 5385 | set_buffer_internal_1 (old_buffer); |
| 5389 | 5386 | ||
| 5390 | FRAME_CAN_HAVE_SCROLL_BARS (f) = 0; | ||
| 5391 | record_unwind_protect (unwind_create_tip_frame, frame); | 5387 | record_unwind_protect (unwind_create_tip_frame, frame); |
| 5392 | 5388 | ||
| 5393 | /* By setting the output method, we're essentially saying that | 5389 | /* By setting the output method, we're essentially saying that |
diff --git a/src/xfns.c b/src/xfns.c index d497cffe3df..aca227385bf 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3111,9 +3111,6 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3111 | 3111 | ||
| 3112 | XSETFRAME (frame, f); | 3112 | XSETFRAME (frame, f); |
| 3113 | 3113 | ||
| 3114 | /* Note that X Windows does support scroll bars. */ | ||
| 3115 | FRAME_CAN_HAVE_SCROLL_BARS (f) = 1; | ||
| 3116 | |||
| 3117 | f->terminal = dpyinfo->terminal; | 3114 | f->terminal = dpyinfo->terminal; |
| 3118 | 3115 | ||
| 3119 | f->output_method = output_x_window; | 3116 | f->output_method = output_x_window; |
| @@ -4596,7 +4593,6 @@ x_create_tip_frame (struct x_display_info *dpyinfo, | |||
| 4596 | Finsert (1, &text); | 4593 | Finsert (1, &text); |
| 4597 | set_buffer_internal_1 (old_buffer); | 4594 | set_buffer_internal_1 (old_buffer); |
| 4598 | 4595 | ||
| 4599 | FRAME_CAN_HAVE_SCROLL_BARS (f) = 0; | ||
| 4600 | record_unwind_protect (unwind_create_tip_frame, frame); | 4596 | record_unwind_protect (unwind_create_tip_frame, frame); |
| 4601 | 4597 | ||
| 4602 | f->terminal = dpyinfo->terminal; | 4598 | f->terminal = dpyinfo->terminal; |