Function: set-scroll-bar-mode

set-scroll-bar-mode is a byte-compiled function defined in scroll-bar.el.gz.

Signature

(set-scroll-bar-mode VALUE)

Documentation

Set the scroll bar mode to VALUE and put the new value into effect.

See the scroll-bar-mode(var)/scroll-bar-mode(fun) variable for possible values to use.

Probably introduced at or before Emacs version 24.1.

Source Code

;; Defined in /usr/src/emacs/lisp/scroll-bar.el.gz
(defun set-scroll-bar-mode (value)
  "Set the scroll bar mode to VALUE and put the new value into effect.
See the `scroll-bar-mode' variable for possible values to use."
  (if scroll-bar-mode
      (setq previous-scroll-bar-mode scroll-bar-mode))

  (setq scroll-bar-mode value)

  (when scroll-bar-mode-explicit
    (modify-all-frames-parameters (list (cons 'vertical-scroll-bars
					      scroll-bar-mode)))))