annotate lisp/term/w32-win.el @ 43541:e8495b1178a3

(mouse-wheel-scroll-line): Use car of mouse-wheel-scroll-amount.
author Jason Rumney <jasonr@gnu.org>
date Mon, 25 Feb 2002 23:23:22 +0000
parents bf151fa5d915
children cddef18bf668
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38431
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 38241
diff changeset
1 ;;; w32-win.el --- parse switches controlling interface with W32 window system
14170
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
2
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
3 ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
4
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
5 ;; Author: Kevin Gallo
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
6 ;; Keywords: terminals
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
7
14170
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
8 ;; This file is part of GNU Emacs.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
9
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
13 ;; any later version.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
14
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
18 ;; GNU General Public License for more details.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
19
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
20 ;; You should have received a copy of the GNU General Public License
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 13831
diff changeset
23 ;; Boston, MA 02111-1307, USA.
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
24
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
25 ;;; Commentary:
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
26
16889
8de32e992e4d Change uses of win32 to w32.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16596
diff changeset
27 ;; w32-win.el: this file is loaded from ../lisp/startup.el when it recognizes
8de32e992e4d Change uses of win32 to w32.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16596
diff changeset
28 ;; that W32 windows are to be used. Command line switches are parsed and those
8de32e992e4d Change uses of win32 to w32.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16596
diff changeset
29 ;; pertaining to W32 are processed and removed from the command line. The
8de32e992e4d Change uses of win32 to w32.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16596
diff changeset
30 ;; W32 display is opened and hooks are set for popping up the initial window.
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
31
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
32 ;; startup.el will then examine startup files, and eventually call the hooks
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
33 ;; which create the first window (s).
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
34
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
35 ;;; Code:
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
36
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
37
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
38 ;; These are the standard X switches from the Xt Initialize.c file of
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
39 ;; Release 4.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
40
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
41 ;; Command line Resource Manager string
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
42
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
43 ;; +rv *reverseVideo
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
44 ;; +synchronous *synchronous
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
45 ;; -background *background
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
46 ;; -bd *borderColor
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
47 ;; -bg *background
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
48 ;; -bordercolor *borderColor
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
49 ;; -borderwidth .borderWidth
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
50 ;; -bw .borderWidth
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
51 ;; -display .display
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
52 ;; -fg *foreground
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
53 ;; -fn *font
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
54 ;; -font *font
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
55 ;; -foreground *foreground
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
56 ;; -geometry .geometry
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
57 ;; -i .iconType
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
58 ;; -itype .iconType
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
59 ;; -iconic .iconic
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
60 ;; -name .name
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
61 ;; -reverse *reverseVideo
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
62 ;; -rv *reverseVideo
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
63 ;; -selectionTimeout .selectionTimeout
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
64 ;; -synchronous *synchronous
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
65 ;; -xrm
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
66
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
67 ;; An alist of X options and the function which handles them. See
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
68 ;; ../startup.el.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
69
16889
8de32e992e4d Change uses of win32 to w32.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16596
diff changeset
70 (if (not (eq window-system 'w32))
8de32e992e4d Change uses of win32 to w32.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16596
diff changeset
71 (error "%s: Loading w32-win.el but not compiled for w32" (invocation-name)))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
72
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
73 (require 'frame)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
74 (require 'mouse)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
75 (require 'scroll-bar)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
76 (require 'faces)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
77 (require 'select)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
78 (require 'menu-bar)
42812
c9282c43bb5a Add comments to avoid future deletion of conditionals that seem
Jason Rumney <jasonr@gnu.org>
parents: 42810
diff changeset
79 ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles
42810
e0a03741d896 Only require fontset when new-fontset is bound.
Jason Rumney <jasonr@gnu.org>
parents: 42542
diff changeset
80 (if (fboundp 'new-fontset)
e0a03741d896 Only require fontset when new-fontset is bound.
Jason Rumney <jasonr@gnu.org>
parents: 42542
diff changeset
81 (require 'fontset))
15136
6a1b4fcbb216 (win32-handle-scroll-bar-event): New function.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15048
diff changeset
82
42542
691ca802270d Require fontset unconditionally.
Jason Rumney <jasonr@gnu.org>
parents: 42286
diff changeset
83 ;; The following definition is used for debugging scroll bar events.
16588
481b7874a1e9 Change identifiers of the form win32* to w32*.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15265
diff changeset
84 ;(defun w32-handle-scroll-bar-event (event) (interactive "e") (princ event))
15136
6a1b4fcbb216 (win32-handle-scroll-bar-event): New function.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15048
diff changeset
85
43541
e8495b1178a3 (mouse-wheel-scroll-line): Use car of
Jason Rumney <jasonr@gnu.org>
parents: 43394
diff changeset
86 ;; mwheel.el should probably be adapted to accept mouse-wheel events
e8495b1178a3 (mouse-wheel-scroll-line): Use car of
Jason Rumney <jasonr@gnu.org>
parents: 43394
diff changeset
87 ;; then this could go.
19691
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
88 (defun mouse-wheel-scroll-line (event)
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
89 "Scroll the window in which EVENT occurred by `mouse-wheel-scroll-amount'."
19691
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
90 (interactive "e")
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
91 (condition-case nil
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
92 (if (< (car (cdr (cdr event))) 0)
43541
e8495b1178a3 (mouse-wheel-scroll-line): Use car of
Jason Rumney <jasonr@gnu.org>
parents: 43394
diff changeset
93 (scroll-up (car mouse-wheel-scroll-amount))
e8495b1178a3 (mouse-wheel-scroll-line): Use car of
Jason Rumney <jasonr@gnu.org>
parents: 43394
diff changeset
94 (scroll-down (car mouse-wheel-scroll-amount)))
19691
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
95 (error nil)))
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
96
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
97 ;; for scroll-in-place.el, this way the -scroll-line and -scroll-screen
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
98 ;; commands won't interact
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
99 (setq scroll-command-groups (list '(mouse-wheel-scroll-line)))
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
100
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
101 (defun mouse-wheel-scroll-screen (event)
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
102 "Scroll the window in which EVENT occurred by `mouse-wheel-scroll-amount'."
19691
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
103 (interactive "e")
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
104 (condition-case nil
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
105 (if (< (car (cdr (cdr event))) 0)
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
106 (scroll-up)
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
107 (scroll-down))
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
108 (error nil)))
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
109
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
110 ;; Bind the mouse-wheel event:
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
111 (global-set-key [mouse-wheel] 'mouse-wheel-scroll-line)
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
112 (global-set-key [C-mouse-wheel] 'mouse-wheel-scroll-screen)
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
113
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
114 (defun w32-drag-n-drop-debug (event)
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
115 "Print the drag-n-drop EVENT in a readable form."
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
116 (interactive "e")
21883
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
117 (princ event))
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
118
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
119 (defun w32-drag-n-drop (event)
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
120 "Edit the files listed in the drag-n-drop EVENT.
21883
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
121 Switch to a buffer editing the last file dropped."
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
122 (interactive "e")
24664
ce51d492b1ab (w32-drag-n-drop): Select file in window where
Andrew Innes <andrewi@gnu.org>
parents: 24246
diff changeset
123 (save-excursion
26573
e219195abf40 (w32-drag-n-drop): Load files in current window, if
Gerd Moellmann <gerd@gnu.org>
parents: 24964
diff changeset
124 ;; Make sure the drop target has positive co-ords
e219195abf40 (w32-drag-n-drop): Load files in current window, if
Gerd Moellmann <gerd@gnu.org>
parents: 24964
diff changeset
125 ;; before setting the selected frame - otherwise it
e219195abf40 (w32-drag-n-drop): Load files in current window, if
Gerd Moellmann <gerd@gnu.org>
parents: 24964
diff changeset
126 ;; won't work. <skx@tardis.ed.ac.uk>
e219195abf40 (w32-drag-n-drop): Load files in current window, if
Gerd Moellmann <gerd@gnu.org>
parents: 24964
diff changeset
127 (let* ((window (posn-window (event-start event)))
e219195abf40 (w32-drag-n-drop): Load files in current window, if
Gerd Moellmann <gerd@gnu.org>
parents: 24964
diff changeset
128 (coords (posn-x-y (event-start event)))
e219195abf40 (w32-drag-n-drop): Load files in current window, if
Gerd Moellmann <gerd@gnu.org>
parents: 24964
diff changeset
129 (x (car coords))
e219195abf40 (w32-drag-n-drop): Load files in current window, if
Gerd Moellmann <gerd@gnu.org>
parents: 24964
diff changeset
130 (y (cdr coords)))
e219195abf40 (w32-drag-n-drop): Load files in current window, if
Gerd Moellmann <gerd@gnu.org>
parents: 24964
diff changeset
131 (if (and (> x 0) (> y 0))
e219195abf40 (w32-drag-n-drop): Load files in current window, if
Gerd Moellmann <gerd@gnu.org>
parents: 24964
diff changeset
132 (set-frame-selected-window nil window))
27404
dc6ba3cab915 (w32_create_initial_fontsets): Disabled as it conflicts with new face support.
Jason Rumney <jasonr@gnu.org>
parents: 27101
diff changeset
133 (mapcar 'find-file (car (cdr (cdr event)))))
26573
e219195abf40 (w32-drag-n-drop): Load files in current window, if
Gerd Moellmann <gerd@gnu.org>
parents: 24964
diff changeset
134 (raise-frame)))
21883
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
135
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
136 (defun w32-drag-n-drop-other-frame (event)
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
137 "Edit the files listed in the drag-n-drop EVENT, in other frames.
21883
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
138 May create new frames, or reuse existing ones. The frame editing
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
139 the last file dropped is selected."
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
140 (interactive "e")
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
141 (mapcar 'find-file-other-frame (car (cdr (cdr event)))))
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
142
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
143 ;; Bind the drag-n-drop event.
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
144 (global-set-key [drag-n-drop] 'w32-drag-n-drop)
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
145 (global-set-key [C-drag-n-drop] 'w32-drag-n-drop-other-frame)
93c99b3a57f1 (w32-drag-n-drop-debug, w32-drag-n-drop)
Richard M. Stallman <rms@gnu.org>
parents: 19691
diff changeset
146
23675
8dcfae475b98 ([language-change]): For now ignore
Geoff Voelker <voelker@cs.washington.edu>
parents: 23636
diff changeset
147 ;; Keyboard layout/language change events
8dcfae475b98 ([language-change]): For now ignore
Geoff Voelker <voelker@cs.washington.edu>
parents: 23636
diff changeset
148 ;; For now ignore language-change events; in the future
8dcfae475b98 ([language-change]): For now ignore
Geoff Voelker <voelker@cs.washington.edu>
parents: 23636
diff changeset
149 ;; we should switch the Emacs Input Method to match the
8dcfae475b98 ([language-change]): For now ignore
Geoff Voelker <voelker@cs.washington.edu>
parents: 23636
diff changeset
150 ;; new layout/language selected by the user.
8dcfae475b98 ([language-change]): For now ignore
Geoff Voelker <voelker@cs.washington.edu>
parents: 23636
diff changeset
151 (global-set-key [language-change] 'ignore)
8dcfae475b98 ([language-change]): For now ignore
Geoff Voelker <voelker@cs.washington.edu>
parents: 23636
diff changeset
152
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
153 (defvar x-invocation-args)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
154
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
155 (defvar x-command-line-resources nil)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
156
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
157 (defun x-handle-switch (switch)
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
158 "Handle SWITCH of the form \"-switch value\" or \"-switch\"."
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
159 (let ((aelt (assoc switch command-line-x-option-alist)))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
160 (if aelt
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
161 (let ((param (nth 3 aelt))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
162 (value (nth 4 aelt)))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
163 (if value
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
164 (setq default-frame-alist
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
165 (cons (cons param value)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
166 default-frame-alist))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
167 (setq default-frame-alist
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
168 (cons (cons param
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
169 (car x-invocation-args))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
170 default-frame-alist))
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
171 x-invocation-args (cdr x-invocation-args))))))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
172
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
173 (defun x-handle-numeric-switch (switch)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
174 "Handle SWITCH of the form \"-switch n\"."
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
175 (let ((aelt (assoc switch command-line-x-option-alist)))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
176 (if aelt
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
177 (let ((param (nth 3 aelt)))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
178 (setq default-frame-alist
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
179 (cons (cons param
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
180 (string-to-int (car x-invocation-args)))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
181 default-frame-alist)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
182 x-invocation-args
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
183 (cdr x-invocation-args))))))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
184
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
185 ;; Handle options that apply to initial frame only
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
186 (defun x-handle-initial-switch (switch)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
187 (let ((aelt (assoc switch command-line-x-option-alist)))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
188 (if aelt
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
189 (let ((param (nth 3 aelt))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
190 (value (nth 4 aelt)))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
191 (if value
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
192 (setq initial-frame-alist
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
193 (cons (cons param value)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
194 initial-frame-alist))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
195 (setq initial-frame-alist
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
196 (cons (cons param
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
197 (car x-invocation-args))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
198 initial-frame-alist)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
199 x-invocation-args (cdr x-invocation-args)))))))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
200
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
201 (defun x-handle-iconic (switch)
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
202 "Make \"-iconic\" SWITCH apply only to the initial frame."
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
203 (setq initial-frame-alist
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
204 (cons '(visibility . icon) initial-frame-alist)))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
205
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
206 (defun x-handle-xrm-switch (switch)
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
207 "Handle the \"-xrm\" SWITCH."
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
208 (or (consp x-invocation-args)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
209 (error "%s: missing argument to `%s' option" (invocation-name) switch))
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
210 (setq x-command-line-resources
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
211 (if (null x-command-line-resources)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
212 (car x-invocation-args)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
213 (concat x-command-line-resources "\n" (car x-invocation-args))))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
214 (setq x-invocation-args (cdr x-invocation-args)))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
215
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
216 (defun x-handle-geometry (switch)
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
217 "Handle the \"-geometry\" SWITCH."
42286
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
218 (let* ((geo (x-parse-geometry (car x-invocation-args)))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
219 (left (assq 'left geo))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
220 (top (assq 'top geo))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
221 (height (assq 'height geo))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
222 (width (assq 'width geo)))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
223 (if (or height width)
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
224 (setq default-frame-alist
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
225 (append default-frame-alist
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
226 '((user-size . t))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
227 (if height (list height))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
228 (if width (list width)))))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
229 (if (or left top)
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
230 (setq initial-frame-alist
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
231 (append initial-frame-alist
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
232 '((user-position . t))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
233 (if left (list left))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
234 (if top (list top)))))
ce0c926022b3 (x-handle-geometry): Put height and width on default-frame-alist,
Richard M. Stallman <rms@gnu.org>
parents: 40151
diff changeset
235 (setq x-invocation-args (cdr x-invocation-args))))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
236
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
237 (defun x-handle-name-switch (switch)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
238 "Handle a \"-name\" SWITCH."
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
239 ;; Handle the -name option. Set the variable x-resource-name
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
240 ;; to the option's operand; set the name of the initial frame, too.
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
241 (or (consp x-invocation-args)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
242 (error "%s: missing argument to `%s' option" (invocation-name) switch))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
243 (setq x-resource-name (car x-invocation-args)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
244 x-invocation-args (cdr x-invocation-args))
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
245 (setq initial-frame-alist (cons (cons 'name x-resource-name)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
246 initial-frame-alist)))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
247
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
248 (defvar x-display-name nil
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
249 "The display name specifying server and frame.")
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
250
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
251 (defun x-handle-display (switch)
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
252 "Handle the \"-display\" SWITCH."
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
253 (setq x-display-name (car x-invocation-args)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
254 x-invocation-args (cdr x-invocation-args)))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
255
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
256 (defun x-handle-args (args)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
257 "Process the X-related command line options in ARGS.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
258 This is done before the user's startup file is loaded. They are copied to
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
259 `x-invocation args' from which the X-related things are extracted, first
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
260 the switch (e.g., \"-fg\") in the following code, and possible values
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
261 \(e.g., \"black\") in the option handler code (e.g., x-handle-switch).
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
262 This returns ARGS with the arguments that have been processed removed."
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
263 ;; We use ARGS to accumulate the args that we don't handle here, to return.
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
264 (setq x-invocation-args args
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
265 args nil)
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
266 (while (and x-invocation-args
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
267 (not (equal (car x-invocation-args) "--")))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
268 (let* ((this-switch (car x-invocation-args))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
269 (orig-this-switch this-switch)
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
270 completion argval aelt handler)
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
271 (setq x-invocation-args (cdr x-invocation-args))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
272 ;; Check for long options with attached arguments
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
273 ;; and separate out the attached option argument into argval.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
274 (if (string-match "^--[^=]*=" this-switch)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
275 (setq argval (substring this-switch (match-end 0))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
276 this-switch (substring this-switch 0 (1- (match-end 0)))))
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
277 ;; Complete names of long options.
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
278 (if (string-match "^--" this-switch)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
279 (progn
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
280 (setq completion (try-completion this-switch command-line-x-option-alist))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
281 (if (eq completion t)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
282 ;; Exact match for long option.
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
283 nil
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
284 (if (stringp completion)
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
285 (let ((elt (assoc completion command-line-x-option-alist)))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
286 ;; Check for abbreviated long option.
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
287 (or elt
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
288 (error "Option `%s' is ambiguous" this-switch))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
289 (setq this-switch completion))))))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
290 (setq aelt (assoc this-switch command-line-x-option-alist))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
291 (if aelt (setq handler (nth 2 aelt)))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
292 (if handler
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
293 (if argval
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
294 (let ((x-invocation-args
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
295 (cons argval x-invocation-args)))
43394
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
296 (funcall handler this-switch))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
297 (funcall handler this-switch))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
298 (setq args (cons orig-this-switch args)))))
bf151fa5d915 (x-option-alist, x-long-option-alist)
Jason Rumney <jasonr@gnu.org>
parents: 42848
diff changeset
299 (nconc (nreverse args) x-invocation-args))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
300
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
301 ;;
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
302 ;; Available colors
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
303 ;;
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
304
38241
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
305 (defvar x-colors '("LightGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
306 "light green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
307 "DarkRed"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
308 "dark red"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
309 "DarkMagenta"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
310 "dark magenta"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
311 "DarkCyan"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
312 "dark cyan"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
313 "DarkBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
314 "dark blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
315 "DarkGray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
316 "dark gray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
317 "DarkGrey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
318 "dark grey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
319 "grey100"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
320 "gray100"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
321 "grey99"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
322 "gray99"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
323 "grey98"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
324 "gray98"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
325 "grey97"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
326 "gray97"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
327 "grey96"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
328 "gray96"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
329 "grey95"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
330 "gray95"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
331 "grey94"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
332 "gray94"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
333 "grey93"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
334 "gray93"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
335 "grey92"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
336 "gray92"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
337 "grey91"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
338 "gray91"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
339 "grey90"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
340 "gray90"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
341 "grey89"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
342 "gray89"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
343 "grey88"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
344 "gray88"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
345 "grey87"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
346 "gray87"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
347 "grey86"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
348 "gray86"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
349 "grey85"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
350 "gray85"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
351 "grey84"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
352 "gray84"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
353 "grey83"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
354 "gray83"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
355 "grey82"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
356 "gray82"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
357 "grey81"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
358 "gray81"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
359 "grey80"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
360 "gray80"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
361 "grey79"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
362 "gray79"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
363 "grey78"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
364 "gray78"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
365 "grey77"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
366 "gray77"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
367 "grey76"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
368 "gray76"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
369 "grey75"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
370 "gray75"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
371 "grey74"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
372 "gray74"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
373 "grey73"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
374 "gray73"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
375 "grey72"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
376 "gray72"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
377 "grey71"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
378 "gray71"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
379 "grey70"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
380 "gray70"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
381 "grey69"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
382 "gray69"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
383 "grey68"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
384 "gray68"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
385 "grey67"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
386 "gray67"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
387 "grey66"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
388 "gray66"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
389 "grey65"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
390 "gray65"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
391 "grey64"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
392 "gray64"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
393 "grey63"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
394 "gray63"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
395 "grey62"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
396 "gray62"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
397 "grey61"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
398 "gray61"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
399 "grey60"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
400 "gray60"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
401 "grey59"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
402 "gray59"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
403 "grey58"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
404 "gray58"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
405 "grey57"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
406 "gray57"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
407 "grey56"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
408 "gray56"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
409 "grey55"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
410 "gray55"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
411 "grey54"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
412 "gray54"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
413 "grey53"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
414 "gray53"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
415 "grey52"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
416 "gray52"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
417 "grey51"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
418 "gray51"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
419 "grey50"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
420 "gray50"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
421 "grey49"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
422 "gray49"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
423 "grey48"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
424 "gray48"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
425 "grey47"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
426 "gray47"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
427 "grey46"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
428 "gray46"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
429 "grey45"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
430 "gray45"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
431 "grey44"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
432 "gray44"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
433 "grey43"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
434 "gray43"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
435 "grey42"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
436 "gray42"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
437 "grey41"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
438 "gray41"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
439 "grey40"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
440 "gray40"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
441 "grey39"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
442 "gray39"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
443 "grey38"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
444 "gray38"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
445 "grey37"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
446 "gray37"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
447 "grey36"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
448 "gray36"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
449 "grey35"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
450 "gray35"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
451 "grey34"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
452 "gray34"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
453 "grey33"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
454 "gray33"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
455 "grey32"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
456 "gray32"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
457 "grey31"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
458 "gray31"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
459 "grey30"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
460 "gray30"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
461 "grey29"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
462 "gray29"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
463 "grey28"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
464 "gray28"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
465 "grey27"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
466 "gray27"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
467 "grey26"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
468 "gray26"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
469 "grey25"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
470 "gray25"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
471 "grey24"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
472 "gray24"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
473 "grey23"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
474 "gray23"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
475 "grey22"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
476 "gray22"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
477 "grey21"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
478 "gray21"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
479 "grey20"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
480 "gray20"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
481 "grey19"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
482 "gray19"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
483 "grey18"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
484 "gray18"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
485 "grey17"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
486 "gray17"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
487 "grey16"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
488 "gray16"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
489 "grey15"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
490 "gray15"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
491 "grey14"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
492 "gray14"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
493 "grey13"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
494 "gray13"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
495 "grey12"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
496 "gray12"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
497 "grey11"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
498 "gray11"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
499 "grey10"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
500 "gray10"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
501 "grey9"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
502 "gray9"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
503 "grey8"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
504 "gray8"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
505 "grey7"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
506 "gray7"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
507 "grey6"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
508 "gray6"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
509 "grey5"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
510 "gray5"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
511 "grey4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
512 "gray4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
513 "grey3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
514 "gray3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
515 "grey2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
516 "gray2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
517 "grey1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
518 "gray1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
519 "grey0"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
520 "gray0"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
521 "thistle4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
522 "thistle3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
523 "thistle2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
524 "thistle1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
525 "MediumPurple4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
526 "MediumPurple3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
527 "MediumPurple2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
528 "MediumPurple1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
529 "purple4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
530 "purple3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
531 "purple2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
532 "purple1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
533 "DarkOrchid4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
534 "DarkOrchid3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
535 "DarkOrchid2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
536 "DarkOrchid1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
537 "MediumOrchid4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
538 "MediumOrchid3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
539 "MediumOrchid2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
540 "MediumOrchid1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
541 "plum4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
542 "plum3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
543 "plum2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
544 "plum1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
545 "orchid4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
546 "orchid3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
547 "orchid2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
548 "orchid1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
549 "magenta4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
550 "magenta3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
551 "magenta2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
552 "magenta1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
553 "VioletRed4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
554 "VioletRed3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
555 "VioletRed2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
556 "VioletRed1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
557 "maroon4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
558 "maroon3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
559 "maroon2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
560 "maroon1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
561 "PaleVioletRed4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
562 "PaleVioletRed3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
563 "PaleVioletRed2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
564 "PaleVioletRed1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
565 "LightPink4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
566 "LightPink3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
567 "LightPink2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
568 "LightPink1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
569 "pink4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
570 "pink3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
571 "pink2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
572 "pink1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
573 "HotPink4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
574 "HotPink3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
575 "HotPink2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
576 "HotPink1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
577 "DeepPink4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
578 "DeepPink3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
579 "DeepPink2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
580 "DeepPink1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
581 "red4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
582 "red3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
583 "red2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
584 "red1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
585 "OrangeRed4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
586 "OrangeRed3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
587 "OrangeRed2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
588 "OrangeRed1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
589 "tomato4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
590 "tomato3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
591 "tomato2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
592 "tomato1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
593 "coral4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
594 "coral3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
595 "coral2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
596 "coral1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
597 "DarkOrange4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
598 "DarkOrange3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
599 "DarkOrange2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
600 "DarkOrange1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
601 "orange4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
602 "orange3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
603 "orange2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
604 "orange1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
605 "LightSalmon4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
606 "LightSalmon3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
607 "LightSalmon2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
608 "LightSalmon1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
609 "salmon4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
610 "salmon3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
611 "salmon2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
612 "salmon1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
613 "brown4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
614 "brown3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
615 "brown2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
616 "brown1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
617 "firebrick4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
618 "firebrick3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
619 "firebrick2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
620 "firebrick1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
621 "chocolate4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
622 "chocolate3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
623 "chocolate2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
624 "chocolate1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
625 "tan4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
626 "tan3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
627 "tan2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
628 "tan1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
629 "wheat4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
630 "wheat3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
631 "wheat2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
632 "wheat1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
633 "burlywood4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
634 "burlywood3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
635 "burlywood2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
636 "burlywood1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
637 "sienna4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
638 "sienna3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
639 "sienna2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
640 "sienna1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
641 "IndianRed4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
642 "IndianRed3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
643 "IndianRed2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
644 "IndianRed1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
645 "RosyBrown4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
646 "RosyBrown3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
647 "RosyBrown2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
648 "RosyBrown1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
649 "DarkGoldenrod4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
650 "DarkGoldenrod3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
651 "DarkGoldenrod2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
652 "DarkGoldenrod1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
653 "goldenrod4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
654 "goldenrod3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
655 "goldenrod2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
656 "goldenrod1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
657 "gold4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
658 "gold3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
659 "gold2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
660 "gold1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
661 "yellow4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
662 "yellow3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
663 "yellow2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
664 "yellow1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
665 "LightYellow4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
666 "LightYellow3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
667 "LightYellow2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
668 "LightYellow1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
669 "LightGoldenrod4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
670 "LightGoldenrod3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
671 "LightGoldenrod2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
672 "LightGoldenrod1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
673 "khaki4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
674 "khaki3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
675 "khaki2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
676 "khaki1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
677 "DarkOliveGreen4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
678 "DarkOliveGreen3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
679 "DarkOliveGreen2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
680 "DarkOliveGreen1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
681 "OliveDrab4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
682 "OliveDrab3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
683 "OliveDrab2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
684 "OliveDrab1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
685 "chartreuse4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
686 "chartreuse3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
687 "chartreuse2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
688 "chartreuse1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
689 "green4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
690 "green3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
691 "green2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
692 "green1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
693 "SpringGreen4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
694 "SpringGreen3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
695 "SpringGreen2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
696 "SpringGreen1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
697 "PaleGreen4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
698 "PaleGreen3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
699 "PaleGreen2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
700 "PaleGreen1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
701 "SeaGreen4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
702 "SeaGreen3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
703 "SeaGreen2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
704 "SeaGreen1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
705 "DarkSeaGreen4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
706 "DarkSeaGreen3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
707 "DarkSeaGreen2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
708 "DarkSeaGreen1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
709 "aquamarine4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
710 "aquamarine3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
711 "aquamarine2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
712 "aquamarine1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
713 "DarkSlateGray4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
714 "DarkSlateGray3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
715 "DarkSlateGray2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
716 "DarkSlateGray1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
717 "cyan4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
718 "cyan3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
719 "cyan2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
720 "cyan1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
721 "turquoise4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
722 "turquoise3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
723 "turquoise2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
724 "turquoise1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
725 "CadetBlue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
726 "CadetBlue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
727 "CadetBlue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
728 "CadetBlue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
729 "PaleTurquoise4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
730 "PaleTurquoise3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
731 "PaleTurquoise2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
732 "PaleTurquoise1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
733 "LightCyan4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
734 "LightCyan3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
735 "LightCyan2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
736 "LightCyan1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
737 "LightBlue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
738 "LightBlue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
739 "LightBlue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
740 "LightBlue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
741 "LightSteelBlue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
742 "LightSteelBlue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
743 "LightSteelBlue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
744 "LightSteelBlue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
745 "SlateGray4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
746 "SlateGray3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
747 "SlateGray2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
748 "SlateGray1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
749 "LightSkyBlue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
750 "LightSkyBlue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
751 "LightSkyBlue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
752 "LightSkyBlue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
753 "SkyBlue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
754 "SkyBlue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
755 "SkyBlue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
756 "SkyBlue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
757 "DeepSkyBlue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
758 "DeepSkyBlue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
759 "DeepSkyBlue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
760 "DeepSkyBlue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
761 "SteelBlue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
762 "SteelBlue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
763 "SteelBlue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
764 "SteelBlue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
765 "DodgerBlue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
766 "DodgerBlue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
767 "DodgerBlue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
768 "DodgerBlue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
769 "blue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
770 "blue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
771 "blue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
772 "blue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
773 "RoyalBlue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
774 "RoyalBlue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
775 "RoyalBlue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
776 "RoyalBlue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
777 "SlateBlue4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
778 "SlateBlue3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
779 "SlateBlue2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
780 "SlateBlue1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
781 "azure4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
782 "azure3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
783 "azure2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
784 "azure1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
785 "MistyRose4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
786 "MistyRose3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
787 "MistyRose2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
788 "MistyRose1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
789 "LavenderBlush4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
790 "LavenderBlush3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
791 "LavenderBlush2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
792 "LavenderBlush1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
793 "honeydew4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
794 "honeydew3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
795 "honeydew2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
796 "honeydew1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
797 "ivory4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
798 "ivory3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
799 "ivory2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
800 "ivory1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
801 "cornsilk4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
802 "cornsilk3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
803 "cornsilk2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
804 "cornsilk1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
805 "LemonChiffon4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
806 "LemonChiffon3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
807 "LemonChiffon2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
808 "LemonChiffon1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
809 "NavajoWhite4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
810 "NavajoWhite3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
811 "NavajoWhite2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
812 "NavajoWhite1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
813 "PeachPuff4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
814 "PeachPuff3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
815 "PeachPuff2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
816 "PeachPuff1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
817 "bisque4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
818 "bisque3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
819 "bisque2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
820 "bisque1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
821 "AntiqueWhite4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
822 "AntiqueWhite3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
823 "AntiqueWhite2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
824 "AntiqueWhite1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
825 "seashell4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
826 "seashell3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
827 "seashell2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
828 "seashell1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
829 "snow4"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
830 "snow3"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
831 "snow2"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
832 "snow1"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
833 "thistle"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
834 "MediumPurple"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
835 "medium purple"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
836 "purple"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
837 "BlueViolet"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
838 "blue violet"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
839 "DarkViolet"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
840 "dark violet"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
841 "DarkOrchid"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
842 "dark orchid"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
843 "MediumOrchid"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
844 "medium orchid"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
845 "orchid"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
846 "plum"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
847 "violet"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
848 "magenta"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
849 "VioletRed"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
850 "violet red"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
851 "MediumVioletRed"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
852 "medium violet red"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
853 "maroon"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
854 "PaleVioletRed"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
855 "pale violet red"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
856 "LightPink"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
857 "light pink"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
858 "pink"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
859 "DeepPink"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
860 "deep pink"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
861 "HotPink"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
862 "hot pink"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
863 "red"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
864 "OrangeRed"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
865 "orange red"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
866 "tomato"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
867 "LightCoral"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
868 "light coral"
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
869 "coral"
38241
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
870 "DarkOrange"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
871 "dark orange"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
872 "orange"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
873 "LightSalmon"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
874 "light salmon"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
875 "salmon"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
876 "DarkSalmon"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
877 "dark salmon"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
878 "brown"
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
879 "firebrick"
38241
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
880 "chocolate"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
881 "tan"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
882 "SandyBrown"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
883 "sandy brown"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
884 "wheat"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
885 "beige"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
886 "burlywood"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
887 "peru"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
888 "sienna"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
889 "SaddleBrown"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
890 "saddle brown"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
891 "IndianRed"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
892 "indian red"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
893 "RosyBrown"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
894 "rosy brown"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
895 "DarkGoldenrod"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
896 "dark goldenrod"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
897 "goldenrod"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
898 "LightGoldenrod"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
899 "light goldenrod"
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
900 "gold"
38241
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
901 "yellow"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
902 "LightYellow"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
903 "light yellow"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
904 "LightGoldenrodYellow"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
905 "light goldenrod yellow"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
906 "PaleGoldenrod"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
907 "pale goldenrod"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
908 "khaki"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
909 "DarkKhaki"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
910 "dark khaki"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
911 "OliveDrab"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
912 "olive drab"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
913 "ForestGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
914 "forest green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
915 "YellowGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
916 "yellow green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
917 "LimeGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
918 "lime green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
919 "GreenYellow"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
920 "green yellow"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
921 "MediumSpringGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
922 "medium spring green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
923 "chartreuse"
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
924 "green"
38241
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
925 "LawnGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
926 "lawn green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
927 "SpringGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
928 "spring green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
929 "PaleGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
930 "pale green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
931 "LightSeaGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
932 "light sea green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
933 "MediumSeaGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
934 "medium sea green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
935 "SeaGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
936 "sea green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
937 "DarkSeaGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
938 "dark sea green"
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
939 "DarkOliveGreen"
38241
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
940 "dark olive green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
941 "DarkGreen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
942 "dark green"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
943 "aquamarine"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
944 "MediumAquamarine"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
945 "medium aquamarine"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
946 "CadetBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
947 "cadet blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
948 "LightCyan"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
949 "light cyan"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
950 "cyan"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
951 "turquoise"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
952 "MediumTurquoise"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
953 "medium turquoise"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
954 "DarkTurquoise"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
955 "dark turquoise"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
956 "PaleTurquoise"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
957 "pale turquoise"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
958 "PowderBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
959 "powder blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
960 "LightBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
961 "light blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
962 "LightSteelBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
963 "light steel blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
964 "SteelBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
965 "steel blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
966 "LightSkyBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
967 "light sky blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
968 "SkyBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
969 "sky blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
970 "DeepSkyBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
971 "deep sky blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
972 "DodgerBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
973 "dodger blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
974 "blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
975 "RoyalBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
976 "royal blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
977 "MediumBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
978 "medium blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
979 "LightSlateBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
980 "light slate blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
981 "MediumSlateBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
982 "medium slate blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
983 "SlateBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
984 "slate blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
985 "DarkSlateBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
986 "dark slate blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
987 "CornflowerBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
988 "cornflower blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
989 "NavyBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
990 "navy blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
991 "navy"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
992 "MidnightBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
993 "midnight blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
994 "LightGray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
995 "light gray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
996 "LightGrey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
997 "light grey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
998 "grey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
999 "gray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1000 "LightSlateGrey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1001 "light slate grey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1002 "LightSlateGray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1003 "light slate gray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1004 "SlateGrey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1005 "slate grey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1006 "SlateGray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1007 "slate gray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1008 "DimGrey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1009 "dim grey"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1010 "DimGray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1011 "dim gray"
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1012 "DarkSlateGrey"
38241
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1013 "dark slate grey"
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1014 "DarkSlateGray"
38241
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1015 "dark slate gray"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1016 "black"
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1017 "white"
38241
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1018 "MistyRose"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1019 "misty rose"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1020 "LavenderBlush"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1021 "lavender blush"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1022 "lavender"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1023 "AliceBlue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1024 "alice blue"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1025 "azure"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1026 "MintCream"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1027 "mint cream"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1028 "honeydew"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1029 "seashell"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1030 "LemonChiffon"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1031 "lemon chiffon"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1032 "ivory"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1033 "cornsilk"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1034 "moccasin"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1035 "NavajoWhite"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1036 "navajo white"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1037 "PeachPuff"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1038 "peach puff"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1039 "bisque"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1040 "BlanchedAlmond"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1041 "blanched almond"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1042 "PapayaWhip"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1043 "papaya whip"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1044 "AntiqueWhite"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1045 "antique white"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1046 "linen"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1047 "OldLace"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1048 "old lace"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1049 "FloralWhite"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1050 "floral white"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1051 "gainsboro"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1052 "WhiteSmoke"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1053 "white smoke"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1054 "GhostWhite"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1055 "ghost white"
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1056 "snow")
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1057 "The list of X colors from the `rgb.txt' file.
c3737c213380 (x-colors): Add colors from the recent rgb.txt file.
Eli Zaretskii <eliz@gnu.org>
parents: 35770
diff changeset
1058 XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1059
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents: 26573
diff changeset
1060 (defun xw-defined-colors (&optional frame)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents: 26573
diff changeset
1061 "Internal function called by `defined-colors', which see."
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1062 (or frame (setq frame (selected-frame)))
16596
0f917c0edc53 (x-defined-colors): Use color names from w32-color-map.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
1063 (let* ((color-map-colors (mapcar (lambda (clr) (car clr)) w32-color-map))
0f917c0edc53 (x-defined-colors): Use color names from w32-color-map.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
1064 (all-colors (or color-map-colors x-colors))
0f917c0edc53 (x-defined-colors): Use color names from w32-color-map.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
1065 (this-color nil)
0f917c0edc53 (x-defined-colors): Use color names from w32-color-map.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
1066 (defined-colors nil))
0f917c0edc53 (x-defined-colors): Use color names from w32-color-map.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16588
diff changeset
1067 (message "Defining colors...")
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1068 (while all-colors
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1069 (setq this-color (car all-colors)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1070 all-colors (cdr all-colors))
27101
a5791b2ee668 (xw-defined-colors): Call color-supported-p,
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
1071 (and (color-supported-p this-color frame t)
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1072 (setq defined-colors (cons this-color defined-colors))))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1073 defined-colors))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1074
19691
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
1075
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1076 ;;;; Function keys
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1077
19691
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
1078 ;;; make f10 activate the real menubar rather than the mini-buffer menu
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
1079 ;;; navigation feature.
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
1080 (global-set-key [f10] (lambda ()
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
1081 (interactive) (w32-send-sys-command ?\xf100)))
a96c6fa10e92 (w32-handle-scroll-bar-event): On up and
Geoff Voelker <voelker@cs.washington.edu>
parents: 19167
diff changeset
1082
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1083 (defun iconify-or-deiconify-frame ()
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1084 "Iconify the selected frame, or deiconify if it's currently an icon."
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1085 (interactive)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1086 (if (eq (cdr (assq 'visibility (frame-parameters))) t)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1087 (iconify-frame)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1088 (make-frame-visible)))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1089
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1090 (substitute-key-definition 'suspend-emacs 'iconify-or-deiconify-frame
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1091 global-map)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1092
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1093
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1094 ;;; Do the actual Windows setup here; the above code just defines
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1095 ;;; functions and variables that we use now.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1096
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1097 (setq command-line-args (x-handle-args command-line-args))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1098
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1099 ;;; Make sure we have a valid resource name.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1100 (or (stringp x-resource-name)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1101 (let (i)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1102 (setq x-resource-name (invocation-name))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1103
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1104 ;; Change any . or * characters in x-resource-name to hyphens,
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1105 ;; so as not to choke when we use it in X resource queries.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1106 (while (setq i (string-match "[.*]" x-resource-name))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1107 (aset x-resource-name i ?-))))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1108
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1109 ;; For the benefit of older Emacses (19.27 and earlier) that are sharing
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1110 ;; the same lisp directory, don't pass the third argument unless we seem
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1111 ;; to have the multi-display support.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1112 (if (fboundp 'x-close-connection)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1113 (x-open-connection ""
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1114 x-command-line-resources
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1115 ;; Exit Emacs with fatal error if this fails.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1116 t)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1117 (x-open-connection ""
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1118 x-command-line-resources))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1119
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1120 (setq frame-creation-function 'x-create-frame-with-faces)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1121
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1122 (setq x-cut-buffer-max (min (- (/ (x-server-max-request-size) 2) 100)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1123 x-cut-buffer-max))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1124
16588
481b7874a1e9 Change identifiers of the form win32* to w32*.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15265
diff changeset
1125 ;; W32 expects the menu bar cut and paste commands to use the clipboard.
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1126 ;; This has ,? to match both on Sunos and on Solaris.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1127 (menu-bar-enable-clipboard)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1128
23636
3246160c5469 (x-get-selection-value): Alias to
Geoff Voelker <voelker@cs.washington.edu>
parents: 23625
diff changeset
1129 ;; W32 systems have different fonts than commonly found on X, so
3246160c5469 (x-get-selection-value): Alias to
Geoff Voelker <voelker@cs.washington.edu>
parents: 23625
diff changeset
1130 ;; we define our own standard fontset here.
3246160c5469 (x-get-selection-value): Alias to
Geoff Voelker <voelker@cs.washington.edu>
parents: 23625
diff changeset
1131 (defvar w32-standard-fontset-spec
24212
36652d90b38f (w32-standard-fontset-spec): Remove wildcard
Geoff Voelker <voelker@cs.washington.edu>
parents: 24142
diff changeset
1132 "-*-Courier New-normal-r-*-*-13-*-*-*-c-*-fontset-standard"
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1133 "String of fontset spec of the standard fontset.
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1134 This defines a fontset consisting of the Courier New variations for
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1135 European languages which are distributed with Windows as
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1136 \"Multilanguage Support\".
23636
3246160c5469 (x-get-selection-value): Alias to
Geoff Voelker <voelker@cs.washington.edu>
parents: 23625
diff changeset
1137
3246160c5469 (x-get-selection-value): Alias to
Geoff Voelker <voelker@cs.washington.edu>
parents: 23625
diff changeset
1138 See the documentation of `create-fontset-from-fontset-spec for the format.")
3246160c5469 (x-get-selection-value): Alias to
Geoff Voelker <voelker@cs.washington.edu>
parents: 23625
diff changeset
1139
42812
c9282c43bb5a Add comments to avoid future deletion of conditionals that seem
Jason Rumney <jasonr@gnu.org>
parents: 42810
diff changeset
1140 ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1141 (if (fboundp 'new-fontset)
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1142 (progn
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1143 ;; Create the standard fontset.
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1144 (create-fontset-from-fontset-spec w32-standard-fontset-spec t)
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1145 ;; Create fontset specified in X resources "Fontset-N" (N is 0, 1,...).
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1146 (create-fontset-from-x-resource)
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1147 ;; Try to create a fontset from a font specification which comes
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1148 ;; from initial-frame-alist, default-frame-alist, or X resource.
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1149 ;; A font specification in command line argument (i.e. -fn XXXX)
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1150 ;; should be already in default-frame-alist as a `font'
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1151 ;; parameter. However, any font specifications in site-start
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1152 ;; library, user's init file (.emacs), and default.el are not
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1153 ;; yet handled here.
23636
3246160c5469 (x-get-selection-value): Alias to
Geoff Voelker <voelker@cs.washington.edu>
parents: 23625
diff changeset
1154
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1155 (let ((font (or (cdr (assq 'font initial-frame-alist))
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1156 (cdr (assq 'font default-frame-alist))
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1157 (x-get-resource "font" "Font")))
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1158 xlfd-fields resolved-name)
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1159 (if (and font
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1160 (not (query-fontset font))
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1161 (setq resolved-name (x-resolve-font-name font))
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1162 (setq xlfd-fields (x-decompose-font-name font)))
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1163 (if (string= "fontset"
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1164 (aref xlfd-fields xlfd-regexp-registry-subnum))
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1165 (new-fontset font
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1166 (x-complement-fontset-spec xlfd-fields nil))
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1167 ;; Create a fontset from FONT. The fontset name is
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1168 ;; generated from FONT.
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1169 (create-fontset-from-ascii-font font
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1170 resolved-name "startup"))))))
23636
3246160c5469 (x-get-selection-value): Alias to
Geoff Voelker <voelker@cs.washington.edu>
parents: 23625
diff changeset
1171
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1172 ;; Apply a geometry resource to the initial frame. Put it at the end
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1173 ;; of the alist, so that anything specified on the command line takes
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1174 ;; precedence.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1175 (let* ((res-geometry (x-get-resource "geometry" "Geometry"))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1176 parsed)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1177 (if res-geometry
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1178 (progn
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1179 (setq parsed (x-parse-geometry res-geometry))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1180 ;; If the resource specifies a position,
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1181 ;; call the position and size "user-specified".
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1182 (if (or (assq 'top parsed) (assq 'left parsed))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1183 (setq parsed (cons '(user-position . t)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1184 (cons '(user-size . t) parsed))))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1185 ;; All geometry parms apply to the initial frame.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1186 (setq initial-frame-alist (append initial-frame-alist parsed))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1187 ;; The size parms apply to all frames.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1188 (if (assq 'height parsed)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1189 (setq default-frame-alist
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1190 (cons (cons 'height (cdr (assq 'height parsed)))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1191 default-frame-alist)))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1192 (if (assq 'width parsed)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1193 (setq default-frame-alist
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1194 (cons (cons 'width (cdr (assq 'width parsed)))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1195 default-frame-alist))))))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1196
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1197 ;; Check the reverseVideo resource.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1198 (let ((case-fold-search t))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1199 (let ((rv (x-get-resource "reverseVideo" "ReverseVideo")))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1200 (if (and rv
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1201 (string-match "^\\(true\\|yes\\|on\\)$" rv))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1202 (setq default-frame-alist
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1203 (cons '(reverse . t) default-frame-alist)))))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1204
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1205 (defun x-win-suspend-error ()
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1206 "Report an error when a suspend is attempted."
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1207 (error "Suspending an Emacs running under W32 makes no sense"))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1208 (add-hook 'suspend-hook 'x-win-suspend-error)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1209
16588
481b7874a1e9 Change identifiers of the form win32* to w32*.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15265
diff changeset
1210 ;;; Turn off window-splitting optimization; w32 is usually fast enough
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1211 ;;; that this is only annoying.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1212 (setq split-window-keep-point t)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1213
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1214 ;; Don't show the frame name; that's redundant.
19167
337f5643498e Set mode-line-frame-identification
Geoff Voelker <voelker@cs.washington.edu>
parents: 16889
diff changeset
1215 (setq-default mode-line-frame-identification " ")
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1216
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1217 ;;; Set to a system sound if you want a fancy bell.
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1218 (set-message-beep 'ok)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1219
16588
481b7874a1e9 Change identifiers of the form win32* to w32*.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15265
diff changeset
1220 ;; Remap some functions to call w32 common dialogs
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1221
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1222 (defun internal-face-interactive (what &optional bool)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1223 (let* ((fn (intern (concat "face-" what)))
27832
866f7a6b82b3 (internal-face-interactive): Update prompt for new read-face-name.
Dave Love <fx@gnu.org>
parents: 27623
diff changeset
1224 (prompt (concat "Set " what " of face "))
866f7a6b82b3 (internal-face-interactive): Update prompt for new read-face-name.
Dave Love <fx@gnu.org>
parents: 27623
diff changeset
1225 (face (read-face-name prompt))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1226 (default (if (fboundp fn)
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1227 (or (funcall fn face (selected-frame))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1228 (funcall fn 'default (selected-frame)))))
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1229 (fn-win (intern (concat (symbol-name window-system) "-select-" what)))
22539
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1230 value)
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1231 (setq value
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1232 (cond ((fboundp fn-win)
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1233 (funcall fn-win))
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1234 ((eq bool 'color)
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1235 (completing-read (concat prompt " " (symbol-name face) " to: ")
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1236 (mapcar (function (lambda (color)
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1237 (cons color color)))
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1238 x-colors)
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1239 nil nil nil nil default))
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1240 (bool
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1241 (y-or-n-p (concat "Should face " (symbol-name face)
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1242 " be " bool "? ")))
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1243 (t
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1244 (read-string (concat prompt " " (symbol-name face) " to: ")
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1245 nil nil default))))
45ccce07729d (internal-face-interactive): Handle case where BOOL is `color'.
Andrew Innes <andrewi@gnu.org>
parents: 21883
diff changeset
1246 (list face (if (equal value "") nil value))))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1247
24686
f2ecc3b6a45f Change the x-charset-registry property for the
Andrew Innes <andrewi@gnu.org>
parents: 24683
diff changeset
1248 ;;; Enable Japanese fonts on Windows to be used by default.
30236
c6e051bf5f2e Make FONTNAME arg to set-fontset-font a cons.
Jason Rumney <jasonr@gnu.org>
parents: 29322
diff changeset
1249 (set-fontset-font t (make-char 'katakana-jisx0201) '("*" . "JISX0208-SJIS"))
c6e051bf5f2e Make FONTNAME arg to set-fontset-font a cons.
Jason Rumney <jasonr@gnu.org>
parents: 29322
diff changeset
1250 (set-fontset-font t (make-char 'latin-jisx0201) '("*" . "JISX0208-SJIS"))
c6e051bf5f2e Make FONTNAME arg to set-fontset-font a cons.
Jason Rumney <jasonr@gnu.org>
parents: 29322
diff changeset
1251 (set-fontset-font t (make-char 'japanese-jisx0208) '("*" . "JISX0208-SJIS"))
c6e051bf5f2e Make FONTNAME arg to set-fontset-font a cons.
Jason Rumney <jasonr@gnu.org>
parents: 29322
diff changeset
1252 (set-fontset-font t (make-char 'japanese-jisx0208-1978) '("*" . "JISX0208-SJIS"))
24686
f2ecc3b6a45f Change the x-charset-registry property for the
Andrew Innes <andrewi@gnu.org>
parents: 24683
diff changeset
1253
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1254 (defun mouse-set-font (&rest fonts)
29322
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1255 "Select a font.
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1256 If `w32-use-w32-font-dialog' is non-nil (the default), use the Windows
16e1a87707b5 Doc changes to reduce diffs with x-win.el.
Jason Rumney <jasonr@gnu.org>
parents: 27887
diff changeset
1257 font dialog to get the matching FONTS. Otherwise use a pop-up menu
35770
b47c7b58e497 (mouse-set-font): Doc fix.
Gerd Moellmann <gerd@gnu.org>
parents: 35753
diff changeset
1258 \(like Emacs on other platforms) initialized with the fonts in
27887
a9f19a6bfb69 (mouse-set-font): Do not build fontset from chosen font.
Jason Rumney <jasonr@gnu.org>
parents: 27832
diff changeset
1259 `w32-fixed-font-alist'."
23560
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1260 (interactive
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1261 (if w32-use-w32-font-dialog
42848
4313f287da4d Move user variables to w32-vars.el and make them defcustoms.
Jason Rumney <jasonr@gnu.org>
parents: 42812
diff changeset
1262 (let ((chosen-font (w32-select-font (selected-frame)
4313f287da4d Move user variables to w32-vars.el and make them defcustoms.
Jason Rumney <jasonr@gnu.org>
parents: 42812
diff changeset
1263 w32-list-proportional-fonts)))
24964
22d526660026 (mouse-set-font): If user uses w32 dialog but
Karl Heuer <kwzh@gnu.org>
parents: 24686
diff changeset
1264 (and chosen-font (list chosen-font)))
23560
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1265 (x-popup-menu
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1266 last-nonmenu-event
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1267 ;; Append list of fontsets currently defined.
42812
c9282c43bb5a Add comments to avoid future deletion of conditionals that seem
Jason Rumney <jasonr@gnu.org>
parents: 42810
diff changeset
1268 ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles
23636
3246160c5469 (x-get-selection-value): Alias to
Geoff Voelker <voelker@cs.washington.edu>
parents: 23625
diff changeset
1269 (if (fboundp 'new-fontset)
3246160c5469 (x-get-selection-value): Alias to
Geoff Voelker <voelker@cs.washington.edu>
parents: 23625
diff changeset
1270 (append w32-fixed-font-alist (list (generate-fontset-menu)))))))
23560
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1271 (if fonts
27887
a9f19a6bfb69 (mouse-set-font): Do not build fontset from chosen font.
Jason Rumney <jasonr@gnu.org>
parents: 27832
diff changeset
1272 (let (font)
23560
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1273 (while fonts
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1274 (condition-case nil
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1275 (progn
24212
36652d90b38f (w32-standard-fontset-spec): Remove wildcard
Geoff Voelker <voelker@cs.washington.edu>
parents: 24142
diff changeset
1276 (setq font (car fonts))
27887
a9f19a6bfb69 (mouse-set-font): Do not build fontset from chosen font.
Jason Rumney <jasonr@gnu.org>
parents: 27832
diff changeset
1277 (set-default-font font)
24212
36652d90b38f (w32-standard-fontset-spec): Remove wildcard
Geoff Voelker <voelker@cs.washington.edu>
parents: 24142
diff changeset
1278 (setq fonts nil))
36652d90b38f (w32-standard-fontset-spec): Remove wildcard
Geoff Voelker <voelker@cs.washington.edu>
parents: 24142
diff changeset
1279 (error (setq fonts (cdr fonts)))))
23560
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1280 (if (null font)
6414b7085648 (w32-use-w32-font-dialog, w32-fixed-font-alist):
Geoff Voelker <voelker@cs.washington.edu>
parents: 22539
diff changeset
1281 (error "Font not found")))))
13434
53ba95a88cf2 Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
1282
16889
8de32e992e4d Change uses of win32 to w32.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16596
diff changeset
1283 ;;; w32-win.el ends here