It's not clear to me how to disable a window scroll bar.
I have frame scrollbars turned off:
I can enable a window scroll bar with
(set-window-scroll-bars (selected-window) nil 'right)
I expect the following to remove the scroll bar, but it doesn't. It only removes the fringe adjacent to the scroll bar.
(set-window-scroll-bars (selected-window) nil nil nil nil)
(window-current-scroll-bars (selected-window)), it returns
nil as expected. My understanding is that
window-current-scroll-bars should tell me the dimensions of the window's scroll bar, returning
nil if there is no scroll bar.
Maybe it's a frame scroll bar that somehow snuck in? Yet
nil as expected.
If I do something like
C-h f or
M-x after calling
(set-window-scroll-bars (selected-window) nil nil nil nil), the scroll bar will disappear. Yet simply switching windows does nothing. The scroll bar remains.
I'm confused! Am I missing something?
I am using
GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30.