aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Tamm2002-12-31 04:55:47 +0000
committerSteven Tamm2002-12-31 04:55:47 +0000
commitded8a54259a264e0d814392f3e83aa2d990c72be (patch)
tree6468c6381e07efd5850a6580088ee782acaae2ac
parentb37113a158b0c0728f372bf883602dae9c7a1dcb (diff)
downloademacs-ded8a54259a264e0d814392f3e83aa2d990c72be.tar.gz
emacs-ded8a54259a264e0d814392f3e83aa2d990c72be.zip
* scroll-bar.el (toggle-scroll-bar, scroll-bar-mode): Have
scroll bars correctly default to being on the right for Mac Carbon port
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/scroll-bar.el12
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7d260198a24..3a8f261f70b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12002-12-30 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
6
12002-12-29 Nick Roberts <nick@nick.uklinux.net> 72002-12-29 Nick Roberts <nick@nick.uklinux.net>
2 8
3 * gdb-ui.el (gdb-delete-display): Rename (gdb-delete-expression). 9 * gdb-ui.el (gdb-delete-display): Rename (gdb-delete-expression).
diff --git a/lisp/scroll-bar.el b/lisp/scroll-bar.el
index 7230ca046a0..0c27e17510c 100644
--- a/lisp/scroll-bar.el
+++ b/lisp/scroll-bar.el
@@ -88,7 +88,9 @@ This is nil while loading `scroll-bar.el', and t afterward.")
88 (setq frames (cdr frames)))))) 88 (setq frames (cdr frames))))))
89 89
90(defcustom scroll-bar-mode 90(defcustom scroll-bar-mode
91 (if (eq system-type 'windows-nt) 'right 'left) 91 (cond ((eq system-type 'windows-nt) 'right)
92 ((eq window-system 'mac) 'right)
93 (t 'left))
92 "*Specify whether to have vertical scroll bars, and on which side. 94 "*Specify whether to have vertical scroll bars, and on which side.
93Possible values are nil (no scroll bars), `left' (scroll bars on left) 95Possible values are nil (no scroll bars), `left' (scroll bars on left)
94and `right' (scroll bars on right). 96and `right' (scroll bars on right).
@@ -120,7 +122,9 @@ turn off scroll bars; otherwise, turn on scroll bars."
120 ;; Tweedle the variable according to the argument. 122 ;; Tweedle the variable according to the argument.
121 (set-scroll-bar-mode (if (null flag) (not scroll-bar-mode) 123 (set-scroll-bar-mode (if (null flag) (not scroll-bar-mode)
122 (and (or (not (numberp flag)) (>= flag 0)) 124 (and (or (not (numberp flag)) (>= flag 0))
123 (if (eq system-type 'windows-nt) 'right 'left))))) 125 (cond ((eq system-type 'windows-nt) 'right)
126 ((eq window-system 'mac) 'right)
127 (t 'left))))))
124 128
125(defun toggle-scroll-bar (arg) 129(defun toggle-scroll-bar (arg)
126 "Toggle whether or not the selected frame has vertical scroll bars. 130 "Toggle whether or not the selected frame has vertical scroll bars.
@@ -139,7 +143,9 @@ when they are turned on; if it is nil, they go on the left."
139 (list (cons 'vertical-scroll-bars 143 (list (cons 'vertical-scroll-bars
140 (if (> arg 0) 144 (if (> arg 0)
141 (or scroll-bar-mode 145 (or scroll-bar-mode
142 (if (eq system-type 'windows-nt) 'right 'left))))))) 146 (cond ((eq system-type 'windows-nt) 'right)
147 ((eq window-system 'mac) 'right)
148 (t 'left))))))))
143 149
144(defun toggle-horizontal-scroll-bar (arg) 150(defun toggle-horizontal-scroll-bar (arg)
145 "Toggle whether or not the selected frame has horizontal scroll bars. 151 "Toggle whether or not the selected frame has horizontal scroll bars.