annotate lisp/term/pc-win.el @ 259:11cf20601dec r20-5b28

Import from CVS: tag r20-5b28
author cvs
date Mon, 13 Aug 2007 10:23:02 +0200
parents 376386a54a3c
children 74fd4e045ea6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;; pc-win.el -- setup support for `PC windows' (whatever that is).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; Copyright (C) 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; Author: Morten Welinder <terra@diku.dk>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; Version: 1,00
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;; ---------------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 (load "term/internal" nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;; Color translation -- doesn't really need to be fast
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 (defvar msdos-color-aliases
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 '(("purple" . "magenta")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ("firebrick" . "red") ; ?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ("pink" . "lightred")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ("royalblue" . "blue")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ("cadetblue" . "blue")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ("forestgreen" . "green")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ("darkolivegreen" . "green")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ("darkgoldenrod" . "brown")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ("goldenrod" . "yellow")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ("grey40" . "darkgray")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ("rosybrown" . "brown")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ("blue" . "lightblue") ;; from here: for Enriched Text
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ("darkslategray" . "darkgray")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ("orange" . "brown")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ("light blue" . "lightblue") ;; from here: for cpp-highlight
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ("light cyan" . "lightcyan")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ("light yellow" . "yellow")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ("light pink" . "lightred")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ("pale green" . "lightgreen")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ("beige" . "brown")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ("medium purple" . "magenta")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ("turquoise" . "lightgreen")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ("violet" . "magenta"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 "List of alternate names for colors.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (defun msdos-color-translate (name)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (setq name (downcase name))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 (let* ((len (length name))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 (val (cdr (assoc name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 '(("black" . 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ("blue" . 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ("green" . 2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ("cyan" . 3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ("red" . 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 ("magenta" . 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ("brown" . 6)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ("lightgray" . 7) ("light gray" . 7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ("darkgray" . 8) ("dark gray" . 8)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ("lightblue" . 9)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ("lightgreen" . 10)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 ("lightcyan" . 11)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ("lightred" . 12)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ("lightmagenta" . 13)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ("yellow" . 14)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ("white" . 15)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 (try))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 (or val
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 (and (setq try (cdr (assoc name msdos-color-aliases)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 (msdos-color-translate try))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (and (> len 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (string= "light" (substring name 0 4))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (setq try (msdos-color-translate (substring name 5)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (logior try 8))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 (and (> len 6)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 (string= "light " (substring name 0 5))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 (setq try (msdos-color-translate (substring name 6)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 (logior try 8))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 (and (> len 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 (string= "dark" (substring name 0 3))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 (msdos-color-translate (substring name 4)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 (and (> len 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (string= "dark " (substring name 0 4))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 (msdos-color-translate (substring name 5))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 ;; ---------------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 ;; We want to delay setting frame parameters until the faces are setup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (defvar default-frame-alist nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (defun msdos-face-setup ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 (modify-frame-parameters (selected-frame) default-frame-alist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 (set-face-foreground 'bold "yellow")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (set-face-foreground 'italic "red")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (set-face-foreground 'bold-italic "lightred")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (set-face-foreground 'underline "white")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (set-face-background 'region "green")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 (make-face 'msdos-menu-active-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (make-face 'msdos-menu-passive-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (make-face 'msdos-menu-select-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 (set-face-foreground 'msdos-menu-active-face "white")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (set-face-foreground 'msdos-menu-passive-face "lightgray")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (set-face-background 'msdos-menu-active-face "blue")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 (set-face-background 'msdos-menu-passive-face "blue")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 (set-face-background 'msdos-menu-select-face "red"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 ;; We have only one font, so...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 (add-hook 'before-init-hook 'msdos-face-setup)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 ;; ---------------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 ;; More or less useful immitations of certain X-functions. A lot of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 ;; values returned are questionable, but usually only the form of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ;; returned value matters. Also, by the way, recall that `ignore' is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 ;; a useful function for returning 'nil regardless of argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ;; From src/xfns.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (defun x-display-color-p (&optional display) 't)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 (fset 'focus-frame 'ignore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (fset 'unfocus-frame 'ignore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 (defun x-list-fonts (pattern &optional face frame) (list "default"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 (defun x-color-defined-p (color) (numberp (msdos-color-translate color)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 (defun x-display-pixel-width (&optional frame) (* 8 (frame-width frame)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 (defun x-display-pixel-height (&optional frame) (* 8 (frame-height frame)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (defun x-display-planes (&optional frame) 4) ; 3 for background, actually
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (defun x-display-color-cells (&optional frame) 16) ; ???
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 (defun x-server-max-request-size (&optional frame) 1000000) ; ???
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 (defun x-server-vendor (&optional frame) t "GNU")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 (defun x-server-version (&optional frame) '(1 0 0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (defun x-display-screens (&optional frame) 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 (defun x-display-mm-height (&optional frame) 200) ; Guess the size of my
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 (defun x-display-mm-width (&optional frame) 253) ; monitor, MW...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 (defun x-display-backing-store (&optional frame) 'not-useful)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 (defun x-display-visual-class (&optional frame) 'static-color)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (fset 'x-display-save-under 'ignore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 (fset 'x-get-resource 'ignore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 ;; From lisp/term/x-win.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 (setq x-display-name "pc")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 (setq split-window-keep-point t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 ;; From lisp/select.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (defun x-get-selection (&rest rest) "")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (fset 'x-set-selection 'ignore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 ;; From lisp/faces.el: we only have one font, so always return
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 ;; it, no matter which variety they've asked for.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 (defun x-frob-font-slant (font which)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 font)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 ;; From lisp/frame.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 (fset 'set-default-font 'ignore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (fset 'set-mouse-color 'ignore) ; We cannot, I think.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 (fset 'set-cursor-color 'ignore) ; Hardware determined by char under.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 (fset 'set-border-color 'ignore) ; Not useful.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 (fset 'auto-raise-mode 'ignore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (fset 'auto-lower-mode 'ignore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 (defun set-background-color (color-name)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 "Set the background color of the selected frame to COLOR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 When called interactively, prompt for the name of the color to use."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 (interactive "sColor: ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 (modify-frame-parameters (selected-frame)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 (list (cons 'background-color color-name))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 (defun set-foreground-color (color-name)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 "Set the foreground color of the selected frame to COLOR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 When called interactively, prompt for the name of the color to use."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 (interactive "sColor: ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 (modify-frame-parameters (selected-frame)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (list (cons 'foreground-color color-name))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 ;; ---------------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 ;; Handle the X-like command line parameters "-fg" and "-bg"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (defun msdos-handle-args (args)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 (let ((rest nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 (while args
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (let ((this (car args)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 (setq args (cdr args))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 (cond ((or (string= this "-fg") (string= this "-foreground"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 (if args
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 (setq default-frame-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (cons (cons 'foreground-color (car args))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 default-frame-alist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 args (cdr args))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 ((or (string= this "-bg") (string= this "-background"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 (if args
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 (setq default-frame-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 (cons (cons 'background-color (car args))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 default-frame-alist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 args (cdr args))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 (t (setq rest (cons this rest))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 (nreverse rest)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 (setq command-line-args (msdos-handle-args command-line-args))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 ;; ---------------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 ;; XEmacs always has faces
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 ;;(require 'faces)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 (if (msdos-mouse-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 (require 'menu-bar)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 (menu-bar-mode t)))