diff options
| author | Karl Heuer | 1997-10-23 06:44:15 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-23 06:44:15 +0000 |
| commit | e4b201bbbbf0d6177c21fa2db508feb16520b7fe (patch) | |
| tree | 2c9f1bf0f3bfb6f2240e8f8ed52508061afd8e6d | |
| parent | dafcda2057593bd38f4519b0e46980ae9b558d28 (diff) | |
| download | emacs-e4b201bbbbf0d6177c21fa2db508feb16520b7fe.tar.gz emacs-e4b201bbbbf0d6177c21fa2db508feb16520b7fe.zip | |
(set-scroll-bar-mode): Take just one arg.
(set-scroll-bar-mode-1): Take 2 args, as set-scroll-bar-mode used to.
(scroll-bar-mode variable): Use set-scroll-bar-mode-1.
(scroll-bar-mode command): Pass 1 arg to set-scroll-bar-mode.
| -rw-r--r-- | lisp/scroll-bar.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/scroll-bar.el b/lisp/scroll-bar.el index ccdf34909c7..f94fc6754af 100644 --- a/lisp/scroll-bar.el +++ b/lisp/scroll-bar.el | |||
| @@ -62,7 +62,10 @@ that scroll bar position." | |||
| 62 | "Non-nil means `set-scroll-bar-mode' should really do something. | 62 | "Non-nil means `set-scroll-bar-mode' should really do something. |
| 63 | This is nil while loading `scroll-bar.el', and t afterward.") | 63 | This is nil while loading `scroll-bar.el', and t afterward.") |
| 64 | 64 | ||
| 65 | (defun set-scroll-bar-mode (ignore value) | 65 | (defun set-scroll-bar-mode-1 (ignore value) |
| 66 | (set-scroll-bar-mode value)) | ||
| 67 | |||
| 68 | (defun set-scroll-bar-mode (value) | ||
| 66 | "Set `scroll-bar-mode' to VALUE and put the new value into effect." | 69 | "Set `scroll-bar-mode' to VALUE and put the new value into effect." |
| 67 | (setq scroll-bar-mode value) | 70 | (setq scroll-bar-mode value) |
| 68 | 71 | ||
| @@ -95,7 +98,7 @@ it takes effect immediately for all frames." | |||
| 95 | (const left) | 98 | (const left) |
| 96 | (const right)) | 99 | (const right)) |
| 97 | :group 'frames | 100 | :group 'frames |
| 98 | :set 'set-scroll-bar-mode) | 101 | :set 'set-scroll-bar-mode-1) |
| 99 | 102 | ||
| 100 | ;; We just set scroll-bar-mode, but that was the default. | 103 | ;; We just set scroll-bar-mode, but that was the default. |
| 101 | ;; If it is set again, that is for real. | 104 | ;; If it is set again, that is for real. |
| @@ -111,8 +114,7 @@ turn off scroll bars; otherwise, turn on scroll bars." | |||
| 111 | (if flag (setq flag (prefix-numeric-value flag))) | 114 | (if flag (setq flag (prefix-numeric-value flag))) |
| 112 | 115 | ||
| 113 | ;; Tweedle the variable according to the argument. | 116 | ;; Tweedle the variable according to the argument. |
| 114 | (set-scroll-bar-mode nil | 117 | (set-scroll-bar-mode (if (null flag) (not scroll-bar-mode) |
| 115 | (if (null flag) (not scroll-bar-mode) | ||
| 116 | (and (or (not (numberp flag)) (>= flag 0)) | 118 | (and (or (not (numberp flag)) (>= flag 0)) |
| 117 | 'left)))) | 119 | 'left)))) |
| 118 | 120 | ||