diff options
| author | Martin Rudalics | 2014-09-03 17:10:29 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2014-09-03 17:10:29 +0200 |
| commit | 568df136f13451a098d166918b9602cf8dedf976 (patch) | |
| tree | d9870a3b614c9f10d2f626e7481c796b750f171b /src | |
| parent | 62fca47221fc9d248511cd94fbcb41ddb46763e6 (diff) | |
| download | emacs-568df136f13451a098d166918b9602cf8dedf976.tar.gz emacs-568df136f13451a098d166918b9602cf8dedf976.zip | |
Clean up initialization and customization of horizontal scroll bars.
* frame.el (frame-initialize): Remove horizontal-scroll-bars
from frame-initial-frame-alist.
* scroll-bar.el (previous-horizontal-scroll-bar-mode)
(horizontal-scroll-bar-mode-explicit)
(set-horizontal-scroll-bar-mode, get-horizontal-scroll-bar-mode)
(toggle-horizontal-scroll-bar): Remove.
(horizontal-scroll-bar-mode): Remove defcustom.
(horizontal-scroll-bar-mode): Fix doc-string.
(scroll-bar-toolkit-scroll)
(scroll-bar-toolkit-horizontal-scroll): Add doc-strings stubs.
* buffer.c (scroll-bar-height): Fix typo in doc-string.
* frame.c (Vdefault_frame_horizontal_scroll_bars): Remove
variable.
* nsfns.m (Fx_create_frame):
* w32fns.c (Fx_create_frame):
* xfns.c (Fx_create_frame): Default horizontal scroll bars to
nil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/buffer.c | 2 | ||||
| -rw-r--r-- | src/frame.c | 10 | ||||
| -rw-r--r-- | src/nsfns.m | 2 | ||||
| -rw-r--r-- | src/w32fns.c | 2 | ||||
| -rw-r--r-- | src/xfns.c | 8 |
6 files changed, 14 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cfafd9d8fa3..4f189e5be38 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2014-09-03 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * buffer.c (scroll-bar-height): Fix typo in doc-string. | ||
| 4 | * frame.c (Vdefault_frame_horizontal_scroll_bars): Remove | ||
| 5 | variable. | ||
| 6 | * nsfns.m (Fx_create_frame): | ||
| 7 | * w32fns.c (Fx_create_frame): | ||
| 8 | * xfns.c (Fx_create_frame): Default horizontal scroll bars to | ||
| 9 | nil. | ||
| 10 | |||
| 1 | 2014-09-03 Eli Zaretskii <eliz@gnu.org> | 11 | 2014-09-03 Eli Zaretskii <eliz@gnu.org> |
| 2 | 12 | ||
| 3 | * dispnew.c (buffer_posn_from_coords): Fix an off-by-one error in | 13 | * dispnew.c (buffer_posn_from_coords): Fix an off-by-one error in |
diff --git a/src/buffer.c b/src/buffer.c index 62431cb8fe1..45e614fb449 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -5919,7 +5919,7 @@ A value of nil means to use the scroll bar width from the window's frame. */); | |||
| 5919 | DEFVAR_PER_BUFFER ("scroll-bar-height", &BVAR (current_buffer, scroll_bar_height), | 5919 | DEFVAR_PER_BUFFER ("scroll-bar-height", &BVAR (current_buffer, scroll_bar_height), |
| 5920 | Qintegerp, | 5920 | Qintegerp, |
| 5921 | doc: /* Height of this buffer's scroll bars in pixels. | 5921 | doc: /* Height of this buffer's scroll bars in pixels. |
| 5922 | A value of nil means to use the scroll bar heiht from the window's frame. */); | 5922 | A value of nil means to use the scroll bar height from the window's frame. */); |
| 5923 | 5923 | ||
| 5924 | DEFVAR_PER_BUFFER ("vertical-scroll-bar", &BVAR (current_buffer, vertical_scroll_bar_type), | 5924 | DEFVAR_PER_BUFFER ("vertical-scroll-bar", &BVAR (current_buffer, vertical_scroll_bar_type), |
| 5925 | Qvertical_scroll_bar, | 5925 | Qvertical_scroll_bar, |
diff --git a/src/frame.c b/src/frame.c index 501f01a3122..96617976ecd 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -4872,16 +4872,6 @@ Setting this variable does not affect existing frames, only new ones. */); | |||
| 4872 | Vdefault_frame_scroll_bars = Qnil; | 4872 | Vdefault_frame_scroll_bars = Qnil; |
| 4873 | #endif | 4873 | #endif |
| 4874 | 4874 | ||
| 4875 | DEFVAR_LISP ("default-frame-horizontal-scroll-bars", Vdefault_frame_horizontal_scroll_bars, | ||
| 4876 | doc: /* Default value for horizontal scroll bars on this window-system. */); | ||
| 4877 | #if (defined (HAVE_WINDOW_SYSTEM) \ | ||
| 4878 | && ((defined (USE_TOOLKIT_SCROLL_BARS) && !defined (HAVE_NS)) \ | ||
| 4879 | || defined (HAVE_NTGUI))) | ||
| 4880 | Vdefault_frame_horizontal_scroll_bars = Qt; | ||
| 4881 | #else | ||
| 4882 | Vdefault_frame_horizontal_scroll_bars = Qnil; | ||
| 4883 | #endif | ||
| 4884 | |||
| 4885 | DEFVAR_BOOL ("scroll-bar-adjust-thumb-portion", | 4875 | DEFVAR_BOOL ("scroll-bar-adjust-thumb-portion", |
| 4886 | scroll_bar_adjust_thumb_portion_p, | 4876 | scroll_bar_adjust_thumb_portion_p, |
| 4887 | doc: /* Adjust thumb for overscrolling for Gtk+ and MOTIF. | 4877 | doc: /* Adjust thumb for overscrolling for Gtk+ and MOTIF. |
diff --git a/src/nsfns.m b/src/nsfns.m index ca8f4922ccd..052c428fae5 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -1244,7 +1244,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1244 | "verticalScrollBars", "VerticalScrollBars", | 1244 | "verticalScrollBars", "VerticalScrollBars", |
| 1245 | RES_TYPE_SYMBOL); | 1245 | RES_TYPE_SYMBOL); |
| 1246 | } | 1246 | } |
| 1247 | x_default_parameter (f, parms, Qhorizontal_scroll_bars, Qt, | 1247 | x_default_parameter (f, parms, Qhorizontal_scroll_bars, Qnil, |
| 1248 | "horizontalScrollBars", "HorizontalScrollBars", | 1248 | "horizontalScrollBars", "HorizontalScrollBars", |
| 1249 | RES_TYPE_SYMBOL); | 1249 | RES_TYPE_SYMBOL); |
| 1250 | x_default_parameter (f, parms, Qforeground_color, build_string ("Black"), | 1250 | x_default_parameter (f, parms, Qforeground_color, build_string ("Black"), |
diff --git a/src/w32fns.c b/src/w32fns.c index ac0e693e1c0..fee80d24690 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -4569,7 +4569,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4569 | NULL, NULL, RES_TYPE_NUMBER); | 4569 | NULL, NULL, RES_TYPE_NUMBER); |
| 4570 | x_default_parameter (f, parameters, Qvertical_scroll_bars, Qright, | 4570 | x_default_parameter (f, parameters, Qvertical_scroll_bars, Qright, |
| 4571 | "verticalScrollBars", "ScrollBars", RES_TYPE_SYMBOL); | 4571 | "verticalScrollBars", "ScrollBars", RES_TYPE_SYMBOL); |
| 4572 | x_default_parameter (f, parameters, Qhorizontal_scroll_bars, Qbottom, | 4572 | x_default_parameter (f, parameters, Qhorizontal_scroll_bars, Qnil, |
| 4573 | "horizontalScrollBars", "ScrollBars", RES_TYPE_SYMBOL); | 4573 | "horizontalScrollBars", "ScrollBars", RES_TYPE_SYMBOL); |
| 4574 | 4574 | ||
| 4575 | /* Also do the stuff which must be set before the window exists. */ | 4575 | /* Also do the stuff which must be set before the window exists. */ |
diff --git a/src/xfns.c b/src/xfns.c index 0c07d6cb03d..ec915a69f80 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3112,15 +3112,9 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3112 | #endif | 3112 | #endif |
| 3113 | "verticalScrollBars", "ScrollBars", | 3113 | "verticalScrollBars", "ScrollBars", |
| 3114 | RES_TYPE_SYMBOL); | 3114 | RES_TYPE_SYMBOL); |
| 3115 | x_default_parameter (f, parms, Qhorizontal_scroll_bars, | 3115 | x_default_parameter (f, parms, Qhorizontal_scroll_bars, Qnil, |
| 3116 | #if defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS) | ||
| 3117 | Qt, | ||
| 3118 | #else | ||
| 3119 | Qnil, | ||
| 3120 | #endif | ||
| 3121 | "horizontalScrollBars", "ScrollBars", | 3116 | "horizontalScrollBars", "ScrollBars", |
| 3122 | RES_TYPE_SYMBOL); | 3117 | RES_TYPE_SYMBOL); |
| 3123 | |||
| 3124 | /* Also do the stuff which must be set before the window exists. */ | 3118 | /* Also do the stuff which must be set before the window exists. */ |
| 3125 | x_default_parameter (f, parms, Qforeground_color, build_string ("black"), | 3119 | x_default_parameter (f, parms, Qforeground_color, build_string ("black"), |
| 3126 | "foreground", "Foreground", RES_TYPE_STRING); | 3120 | "foreground", "Foreground", RES_TYPE_STRING); |