diff --git a/src/ChangeLog b/src/ChangeLog index 4d39a32e883..8e5cb667413 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2013-02-17 Jan Djärv + + * xterm.c (syms_of_xterm): Move scroll-bar-adjust-thumb-portion ... + + * frame.c (syms_of_frame): ... to here. + 2013-02-16 Eli Zaretskii * w32.c (sys_chown): Remove unused function. diff --git a/src/frame.c b/src/frame.c index 9c26af819bc..0fa821682f3 100644 --- a/src/frame.c +++ b/src/frame.c @@ -4233,6 +4233,16 @@ Setting this variable does not affect existing frames, only new ones. */); Vdefault_frame_scroll_bars = Qnil; #endif + DEFVAR_BOOL ("scroll-bar-adjust-thumb-portion", + scroll_bar_adjust_thumb_portion_p, + doc: /* Adjust thumb for overscrolling for Gtk+ and MOTIF. +Non-nil means adjust the thumb in the scroll bar so it can be dragged downwards +even if the end of the buffer is shown (i.e. overscrolling). +Set to nil if you want the thumb to be at the bottom when the end of the buffer +is shown. Also, the thumb fills the whole scroll bar when the entire buffer +is visible. In this case you can not overscroll. */); + scroll_bar_adjust_thumb_portion_p = 1; + DEFVAR_LISP ("terminal-frame", Vterminal_frame, doc: /* The initial frame-object, which represents Emacs's stdout. */); diff --git a/src/xterm.c b/src/xterm.c index eef4edf17f6..b5274992293 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10773,16 +10773,6 @@ With MS Windows or Nextstep, the value is t. */); Vx_toolkit_scroll_bars = Qnil; #endif - DEFVAR_BOOL ("scroll-bar-adjust-thumb-portion", - scroll_bar_adjust_thumb_portion_p, - doc: /* Adjust thumb for overscrolling for Gtk+ and MOTIF. -Non-nil means adjust the thumb in the scroll bar so it can be dragged downwards -even if the end of the buffer is shown (i.e. overscrolling). -Set to nil if you want the thumb to be at the bottom when the end of the buffer -is shown. Also, the thumb fills the whole scroll bar when the entire buffer -is visible. In this case you can not overscroll. */); - scroll_bar_adjust_thumb_portion_p = 1; - staticpro (&last_mouse_motion_frame); last_mouse_motion_frame = Qnil;