summaryrefslogtreecommitdiff
path: root/lisp/scroll-bar.el
diff options
context:
space:
mode:
authorSteven Tamm <steventamm@mac.com>2003-01-02 22:37:13 +0000
committerSteven Tamm <steventamm@mac.com>2003-01-02 22:37:13 +0000
commit7413b888c02a4de594d76045cde31a5a80e7902e (patch)
tree1a151f352cc711cb6183687161e41acbe73d7b8a /lisp/scroll-bar.el
parent8c609cffa6673cbef538b08f4ce75284b07e55d1 (diff)
downloademacs-7413b888c02a4de594d76045cde31a5a80e7902e.tar.gz
* 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.
Diffstat (limited to 'lisp/scroll-bar.el')
-rw-r--r--lisp/scroll-bar.el6
1 files changed, 3 insertions, 3 deletions
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.")
(defcustom scroll-bar-mode
(cond ((eq system-type 'windows-nt) 'right)
- ((eq window-system 'mac) 'right)
+ ((featurep 'mac-carbon) 'right)
(t 'left))
"*Specify whether to have vertical scroll bars, and on which side.
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."
(set-scroll-bar-mode (if (null flag) (not scroll-bar-mode)
(and (or (not (numberp flag)) (>= flag 0))
(cond ((eq system-type 'windows-nt) 'right)
- ((eq window-system 'mac) 'right)
+ ((featurep 'mac-carbon) 'right)
(t 'left))))))
(defun toggle-scroll-bar (arg)
@@ -144,7 +144,7 @@ when they are turned on; if it is nil, they go on the left."
(if (> arg 0)
(or scroll-bar-mode
(cond ((eq system-type 'windows-nt) 'right)
- ((eq window-system 'mac) 'right)
+ ((featurep 'mac-carbon) 'right)
(t 'left))))))))
(defun toggle-horizontal-scroll-bar (arg)