Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port set-window-scroll-bars #1459

Open
brotzeit opened this issue Apr 27, 2019 · 0 comments · May be fixed by #1535
Open

Port set-window-scroll-bars #1459

brotzeit opened this issue Apr 27, 2019 · 0 comments · May be fixed by #1535
Labels
Active PR There is a PR that resolves this issue. good first issue

Comments

@brotzeit
Copy link
Member

DEFUN ("set-window-scroll-bars", Fset_window_scroll_bars,
       Sset_window_scroll_bars, 1, 5, 0,
       doc: /* Set width and type of scroll bars of window WINDOW.
WINDOW must be a live window and defaults to the selected one.

Second parameter WIDTH specifies the pixel width for the vertical scroll
bar.  If WIDTH is nil, use the scroll bar width of WINDOW's frame.
Third parameter VERTICAL-TYPE specifies the type of the vertical scroll
bar: left, right, nil or t where nil means to not display a vertical
scroll bar on WINDOW and t means to use WINDOW frame's vertical scroll
bar type.

Fourth parameter HEIGHT specifies the pixel height for the horizontal
scroll bar.  If HEIGHT is nil, use the scroll bar height of WINDOW's
frame.  Fifth parameter HORIZONTAL-TYPE specifies the type of the
horizontal scroll bar: bottom, nil, or t where nil means to not display
a horizontal scroll bar on WINDOW and t means to use WINDOW frame's
horizontal scroll bar type.

Return t if scroll bars were actually changed and nil otherwise.  */)
  (Lisp_Object window, Lisp_Object width, Lisp_Object vertical_type,
   Lisp_Object height, Lisp_Object horizontal_type)
{
  struct window *w
    = set_window_scroll_bars (decode_live_window (window),
			      width, vertical_type, height, horizontal_type);
  return w ? (apply_window_adjustment (w), Qt) : Qnil;
}
@clample clample linked a pull request Aug 10, 2019 that will close this issue
@agraven agraven added the Active PR There is a PR that resolves this issue. label Jan 23, 2020
@agraven agraven added this to To do in Porting efforts via automation Jan 23, 2020
@agraven agraven moved this from To do to In progress in Porting efforts Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Active PR There is a PR that resolves this issue. good first issue
Projects
Porting efforts
  
In progress
Development

Successfully merging a pull request may close this issue.

2 participants