diff options
| author | Steven Tamm | 2003-01-02 22:37:13 +0000 |
|---|---|---|
| committer | Steven Tamm | 2003-01-02 22:37:13 +0000 |
| commit | 7413b888c02a4de594d76045cde31a5a80e7902e (patch) | |
| tree | 1a151f352cc711cb6183687161e41acbe73d7b8a | |
| parent | 8c609cffa6673cbef538b08f4ce75284b07e55d1 (diff) | |
| download | emacs-7413b888c02a4de594d76045cde31a5a80e7902e.tar.gz emacs-7413b888c02a4de594d76045cde31a5a80e7902e.zip | |
* scroll-bar.el (toggle-scroll-bar, scroll-bar-mode): Have
scroll bars correctly default to being on the right for Mac
Carbon port by testing "mac-carbon" feature, not window-system.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/scroll-bar.el | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 522fa2fe9ec..f39518c7bf3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2003-01-02 Steven Tamm <steventamm@mac.com> | ||
| 2 | |||
| 3 | * scroll-bar.el (toggle-scroll-bar, scroll-bar-mode): Have | ||
| 4 | scroll bars correctly default to being on the right for Mac | ||
| 5 | Carbon port by testing "mac-carbon" feature, not window-system. | ||
| 6 | |||
| 1 | 2003-01-02 Markus Rost <rost@math.ohio-state.edu> | 7 | 2003-01-02 Markus Rost <rost@math.ohio-state.edu> |
| 2 | 8 | ||
| 3 | * cus-edit.el (customize-group, customize-group-other-window): | 9 | * cus-edit.el (customize-group, customize-group-other-window): |
diff --git a/lisp/scroll-bar.el b/lisp/scroll-bar.el index 0c27e17510c..74fd948ee68 100644 --- a/lisp/scroll-bar.el +++ b/lisp/scroll-bar.el | |||
| @@ -89,7 +89,7 @@ This is nil while loading `scroll-bar.el', and t afterward.") | |||
| 89 | 89 | ||
| 90 | (defcustom scroll-bar-mode | 90 | (defcustom scroll-bar-mode |
| 91 | (cond ((eq system-type 'windows-nt) 'right) | 91 | (cond ((eq system-type 'windows-nt) 'right) |
| 92 | ((eq window-system 'mac) 'right) | 92 | ((featurep 'mac-carbon) 'right) |
| 93 | (t 'left)) | 93 | (t 'left)) |
| 94 | "*Specify whether to have vertical scroll bars, and on which side. | 94 | "*Specify whether to have vertical scroll bars, and on which side. |
| 95 | Possible values are nil (no scroll bars), `left' (scroll bars on left) | 95 | Possible values are nil (no scroll bars), `left' (scroll bars on left) |
| @@ -123,7 +123,7 @@ turn off scroll bars; otherwise, turn on scroll bars." | |||
| 123 | (set-scroll-bar-mode (if (null flag) (not scroll-bar-mode) | 123 | (set-scroll-bar-mode (if (null flag) (not scroll-bar-mode) |
| 124 | (and (or (not (numberp flag)) (>= flag 0)) | 124 | (and (or (not (numberp flag)) (>= flag 0)) |
| 125 | (cond ((eq system-type 'windows-nt) 'right) | 125 | (cond ((eq system-type 'windows-nt) 'right) |
| 126 | ((eq window-system 'mac) 'right) | 126 | ((featurep 'mac-carbon) 'right) |
| 127 | (t 'left)))))) | 127 | (t 'left)))))) |
| 128 | 128 | ||
| 129 | (defun toggle-scroll-bar (arg) | 129 | (defun toggle-scroll-bar (arg) |
| @@ -144,7 +144,7 @@ when they are turned on; if it is nil, they go on the left." | |||
| 144 | (if (> arg 0) | 144 | (if (> arg 0) |
| 145 | (or scroll-bar-mode | 145 | (or scroll-bar-mode |
| 146 | (cond ((eq system-type 'windows-nt) 'right) | 146 | (cond ((eq system-type 'windows-nt) 'right) |
| 147 | ((eq window-system 'mac) 'right) | 147 | ((featurep 'mac-carbon) 'right) |
| 148 | (t 'left)))))))) | 148 | (t 'left)))))))) |
| 149 | 149 | ||
| 150 | (defun toggle-horizontal-scroll-bar (arg) | 150 | (defun toggle-horizontal-scroll-bar (arg) |