aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric M. Ludlam1998-09-12 13:56:25 +0000
committerEric M. Ludlam1998-09-12 13:56:25 +0000
commitafa43ce1079098180a7deaa982f9d7332a79caae (patch)
tree56d6a635f75d608486d81bc02322ba79a8963356
parentf6cafb3ece32f7203c390b54cb4567bc9ec13f97 (diff)
downloademacs-afa43ce1079098180a7deaa982f9d7332a79caae.tar.gz
emacs-afa43ce1079098180a7deaa982f9d7332a79caae.zip
(speedbar-frame-mode): Only set the position on window systems.
-rw-r--r--lisp/speedbar.el24
1 files changed, 13 insertions, 11 deletions
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index 4c11902d0b6..e5fba74244e 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -5,7 +5,7 @@
5;; Author: Eric M. Ludlam <zappo@gnu.org> 5;; Author: Eric M. Ludlam <zappo@gnu.org>
6;; Version: 0.7.2a 6;; Version: 0.7.2a
7;; Keywords: file, tags, tools 7;; Keywords: file, tags, tools
8;; X-RCS: $Id: speedbar.el,v 1.12 1998/08/24 00:55:45 zappo Exp zappo $ 8;; X-RCS: $Id: speedbar.el,v 1.13 1998/08/24 01:16:09 zappo Exp zappo $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -1005,16 +1005,18 @@ supported at a time.
1005 (x-sensitive-text-pointer-shape 1005 (x-sensitive-text-pointer-shape
1006 x-pointer-hand2)) 1006 x-pointer-hand2))
1007 (make-frame params))))) 1007 (make-frame params)))))
1008 (set-frame-position frame 1008 (if (and window-system (not (eq window-system 'pc)))
1009 ;; Decide which side to put it 1009 (set-frame-position frame
1010 ;; on. 200 is just a buffer 1010 ;; Decide which side to put it
1011 ;; for the left edge of the 1011 ;; on. 200 is just a buffer
1012 ;; screen. The extra 10 is just 1012 ;; for the left edge of the
1013 ;; dressings for window decorations. 1013 ;; screen. The extra 10 is just
1014 (if (< cfx 200) 1014 ;; dressings for window decorations.
1015 (+ cfx cfw 10) 1015 (if (< cfx 200)
1016 (- cfx (frame-pixel-width frame) 10)) 1016 (+ cfx cfw 10)
1017 cfy) 1017 (- cfx (frame-pixel-width frame)
1018 10))
1019 cfy))
1018 frame))) 1020 frame)))
1019 ;; reset the selection variable 1021 ;; reset the selection variable
1020 (setq speedbar-last-selected-file nil) 1022 (setq speedbar-last-selected-file nil)