+2002-12-30 Steven Tamm <steventamm@mac.com>
+
+ * scroll-bar.el (toggle-scroll-bar, scroll-bar-mode): Have
+ scroll bars correctly default to being on the right for Mac
+ Carbon port
+
2002-12-29 Nick Roberts <nick@nick.uklinux.net>
* gdb-ui.el (gdb-delete-display): Rename (gdb-delete-expression).
(setq frames (cdr frames))))))
(defcustom scroll-bar-mode
- (if (eq system-type 'windows-nt) 'right 'left)
+ (cond ((eq system-type 'windows-nt) 'right)
+ ((eq window-system 'mac) '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)
and `right' (scroll bars on right).
;; Tweedle the variable according to the argument.
(set-scroll-bar-mode (if (null flag) (not scroll-bar-mode)
(and (or (not (numberp flag)) (>= flag 0))
- (if (eq system-type 'windows-nt) 'right 'left)))))
+ (cond ((eq system-type 'windows-nt) 'right)
+ ((eq window-system 'mac) 'right)
+ (t 'left))))))
(defun toggle-scroll-bar (arg)
"Toggle whether or not the selected frame has vertical scroll bars.
(list (cons 'vertical-scroll-bars
(if (> arg 0)
(or scroll-bar-mode
- (if (eq system-type 'windows-nt) 'right 'left)))))))
+ (cond ((eq system-type 'windows-nt) 'right)
+ ((eq window-system 'mac) 'right)
+ (t 'left))))))))
(defun toggle-horizontal-scroll-bar (arg)
"Toggle whether or not the selected frame has horizontal scroll bars.