annotate etc/sample.Xresources @ 5891:a0e751d6c3ad

Import the #'clear-string API from GNU, use it in tls.c src/ChangeLog addition: 2015-04-18 Aidan Kehoe <kehoea@parhasard.net> * sequence.c (Fclear_string): New, API from GNU. Zero a string's contents, making sure the text is not kept around even when the string's data is reallocated because of a changed character length. * sequence.c (syms_of_sequence): Make it available to Lisp. * lisp.h: Make it available to C code. * tls.c (nss_pk11_password): Use it. * tls.c (gnutls_pk11_password): Use it. * tls.c (openssl_password): Use it. tests/ChangeLog addition: 2015-04-18 Aidan Kehoe <kehoea@parhasard.net> * automated/lisp-tests.el: Test #'clear-string, just added. Unfortunately there's no way to be certain from Lisp that the old password data has been erased after realloc; it may be worth adding a test to tests.c, but *we'll be reading memory we shouldn't be*, so that gives me pause.
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 18 Apr 2015 23:00:14 +0100
parents 4ed2dedf36a1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5457
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
1 ! This is a sample .Xresources file.
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
2
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
3 ! Copyright (C) 1997 Steven L Baur
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
4 ! Copyright (C) 1999 Alexandre Oliva
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
5 ! Copyright (C) 2002 Giacomo Boffi
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
6 ! Copyright (C) 2003 Stephen J. Turnbull
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
7 ! Copyright (C) 2005 Aidan Kehoe
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
8
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
9 ! This file is part of XEmacs.
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
10
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
11 ! XEmacs is free software: you can redistribute it and/or modify it
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
12 ! under the terms of the GNU General Public License as published by the
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
13 ! Free Software Foundation, either version 3 of the License, or (at your
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
14 ! option) any later version.
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
15
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
16 ! XEmacs is distributed in the hope that it will be useful, but WITHOUT
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
17 ! ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
18 ! FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
19 ! for more details.
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
20
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
21 ! You should have received a copy of the GNU General Public License
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
22 ! along with XEmacs. If not, see <http://www.gnu.org/licenses/>.
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
23
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
24
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
25 ! The resources below are the actual resources used as defaults for
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
26 ! XEmacs, although the form of these resources in the XEmacs
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
27 ! app-defaults file is slightly different.
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
28 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
29 ! You can use the examples below as a basis for your own customizations:
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
30 ! copy and modify any of the resources below into your own ~/.Xresources file.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
31 ! .Xresources specifies defaults for all applications, not just XEmacs; it is
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
32 ! normally used to customize fonts, colors, and the like, while ~/.emacs is
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
33 ! used to change other sorts of (XEmacs-specific) behavior.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
34 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
35 ! In general, changes to your .Xresources file will not take effect until the
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
36 ! next time you restart the window system. To reload your resources
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
37 ! explicitly, use the shell command
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
38 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
39 ! xrdb -load ~/.Xresources
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
40 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
41 ! The resources will take effect the next time you restart XEmacs. (Simply
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
42 ! creating a new xemacs frame is not enough - you must restart the editor
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
43 ! for the changes to take effect.)
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
44 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
45
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
46
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
47 ! Colors and backgrounds.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
48 ! ======================
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
49 ! The contrasts of these colors will cause them to map to the appropriate
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
50 ! one of "black" or "white" on monochrome systems.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
51 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
52 ! The valid color names on your system can be found by looking in the file
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
53 ! `rgb.txt', usually found in /usr/X11R6/lib/X11/ or /usr/openwin/lib/X11/.
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
54
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
55 ! Set the foreground and background colors of the `default' face.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
56 ! The default face colors are the base for most of the other faces'
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
57 ! colors. The default background is gray80, and the default foreground
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
58 ! is black.
5457
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
59 XEmacs.default.attributeBackground: gray80
4ed2dedf36a1 Copyright and license to etc/sample.Xresource.
Mats Lidell <matsl@xemacs.org>
parents: 2681
diff changeset
60 ! XEmacs.default.attributeForeground: black
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
61
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
62 ! Set the modeline colors.
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
63 XEmacs.modeline*attributeForeground: Black
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
64 XEmacs.modeline*attributeBackground: Gray75
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
65
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
66 ! Set the color of the text cursor.
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
67 XEmacs.text-cursor*attributeBackground: Red3
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
68
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
69 ! If you want to set the color of the mouse pointer, do this:
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
70 ! XEmacs.pointer*attributeForeground: Black
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
71 ! If you want to set the background of the mouse pointer, do this:
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
72 ! XEmacs.pointer*attributeBackground: White
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
73 ! Note that by default, the pointer foreground and background are the same
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
74 ! as the default face.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
75
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
76 ! Set the menubar colors. This overrides the default foreground and
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
77 ! background colors specified above.
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
78 XEmacs*menubar*Foreground: Gray30
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
79 XEmacs*menubar*Background: Gray75
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
80 ! This is for buttons in the menubar.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
81 ! Yellow would be better, but that would map to white on monochrome.
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
82 XEmacs*menubar.buttonForeground: Blue
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
83 XEmacs*XlwMenu.selectColor: ForestGreen
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
84 XEmacs*XmToggleButton.selectColor: ForestGreen
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
85
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
86 ! Specify the colors of popup menus.
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
87 XEmacs*popup*Foreground: Black
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
88 XEmacs*popup*Background: Gray75
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
89
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
90 ! Specify the colors of the various sub-widgets of the dialog boxes.
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
91 XEmacs*dialog*Foreground: Black
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
92 ! #A5C0C1 is a shade of blue
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
93 XEmacs*dialog*Background: #A5C0C1
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
94 ! The following three are for Motif dialog boxes ...
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
95 XEmacs*dialog*XmTextField*Background: WhiteSmoke
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
96 XEmacs*dialog*XmText*Background: WhiteSmoke
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
97 XEmacs*dialog*XmList*Background: WhiteSmoke
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
98 ! While this one is for Athena dialog boxes.
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
99 XEmacs*dialog*Command*Background: WhiteSmoke
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
100
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
101 ! Athena dialog boxes are sometimes built with the Xaw3d
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
102 ! variant of the Athena toolkit.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
103 ! XEmacs being nice to 8bit displays, it defaults to:
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
104 XEmacs*dialog*Command*beNiceToColormap: true
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
105 ! If you are shocked by the ugliness of the 3d rendition,
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
106 ! you may want to set (even on 8bit displays) the above to false.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
107
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
108 ! Xlw Scrollbar colors
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
109 XEmacs*XlwScrollBar.Foreground: Gray30
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
110 XEmacs*XlwScrollBar.Background: Gray75
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
111 XEmacs*XmScrollBar.Foreground: Gray30
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
112 XEmacs*XmScrollBar.Background: Gray75
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
113
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
114 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
115 ! The Lucid Scrollbar supports two added resources, SliderStyle is either
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
116 ! "plain" (default) or "dimple". Dimple puts a small dimple in the middle
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
117 ! of the slider that depresses when the slider is clicked on. ArrowPosition is
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
118 ! either "opposite" (default) or "same". Opposite puts the arrows at opposite
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
119 ! of the scrollbar, same puts both arrows at the same end, like the Amiga.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
120 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
121 ! XEmacs*XlwScrollBar.SliderStyle: dimple
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
122 ! XEmacs*XlwScrollBar.ArrowPosition: opposite
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
123
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
124
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
125 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
126 ! If you want to turn off a toolbar, set its height or width to 0.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
127 ! The correct size value is not really arbitrary. We only control it
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
128 ! this way in order to avoid excess frame resizing when turning the
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
129 ! toolbars on and off.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
130 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
131 ! To change the heights and widths of the toolbars:
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
132 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
133 ! XEmacs.topToolBarHeight: 37
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
134 ! XEmacs.bottomToolBarHeight: 0
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
135 ! XEmacs.leftToolBarWidth: 0
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
136 ! XEmacs.rightToolBarWidth: 0
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
137
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
138 XEmacs*topToolBarShadowColor: Gray90
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
139 XEmacs*bottomToolBarShadowColor: Gray40
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
140 XEmacs*backgroundToolBarColor: Gray75
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
141 XEmacs*toolBarShadowThickness: 2
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
142
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
143
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
144 ! If you want to turn off vertical scrollbars, or change the default
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
145 ! pixel width of the vertical scrollbars, do it like this (0 width
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
146 ! means no vertical scrollbars):
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
147 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
148 ! XEmacs.scrollBarWidth: 0
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
149 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
150 ! To change it for a particular frame, do this:
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
151 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
152 ! XEmacs*FRAME-NAME.scrollBarWidth: 0
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
153
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
154
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
155 ! If you want to turn off horizontal scrollbars, or change the default
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
156 ! pixel height of the horizontal scrollbars, do it like this (0 height
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
157 ! means no horizontal scrollbars):
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
158 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
159 ! XEmacs.scrollBarHeight: 0
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
160 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
161 ! To change it for a particular frame, do this:
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
162 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
163 ! XEmacs*FRAME-NAME.scrollBarHeight: 0
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
164
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
165
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
166 ! To dynamically change the labels used for menubar buttons...
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
167 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
168 ! XEmacs*XlwMenu.resourceLabels: True
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
169 ! XEmacs*XlwMenu.newFrame.labelString: Open Another Window
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
170
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
171 ! To have the Motif scrollbars on the left instead of the right, do this:
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
172 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
173 ! XEmacs*scrollBarPlacement: BOTTOM_LEFT
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
174 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
175 ! To have the Athena scrollbars on the right, use `BOTTOM_RIGHT' instead
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
176
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
177 ! To have Motif scrollbars act more like Xt scrollbars...
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
178 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
179 ! XEmacs*XmScrollBar.translations: #override \n\
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
180 ! <Btn1Down>: PageDownOrRight(0) \n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
181 ! <Btn3Down>: PageUpOrLeft(0)
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
182
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
183 ! Fonts.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
184 ! ======
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
185 ! XEmacs requires the use of XLFD (X Logical Font Description) format font
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
186 ! names, which look like
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
187 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
188 ! *-courier-medium-r-*-*-*-120-*-*-*-*-*-*
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
189 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
190 ! if you use any of the other, less strict font name formats, some of which
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
191 ! look like
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
192 ! lucidasanstypewriter-12
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
193 ! and fixed
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
194 ! and 9x13
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
195 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
196 ! then XEmacs won't be able to guess the names of the bold and italic versions.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
197 ! All X fonts can be referred to via XLFD-style names, so you should use those
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
198 ! forms. See the man pages for X(1), xlsfonts(1), and xfontsel(1).
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
199
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
200
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
201 ! The default font for the text area of XEmacs is chosen at run-time
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
202 ! by lisp code which tries a number of different possibilities in order
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
203 ! of preference. If you wish to override it, use this:
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
204 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
205 ! XEmacs.default.attributeFont: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
206
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
207 ! If you choose a font which does not have an italic version, you can specify
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
208 ! some other font to use for it here:
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
209 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
210 ! XEmacs.italic.attributeFont: -*-courier-medium-o-*-*-*-120-*-*-*-*-iso8859-*
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
211 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
212 ! If you choose a font which does not have a bold-italic version,
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
213 ! you can specify some other font to use for it here:
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
214 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
215 ! XEmacs.bold-italic.attributeFont: -*-courier-bold-o-*-*-*-120-*-*-*-*-iso8859-*
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
216 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
217 ! And here is how you would set the background color of the `highlight' face,
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
218 ! but only on the screen named `debugger':
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
219 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
220 ! XEmacs*debugger.highlight.attributeBackground: PaleTurquoise
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
221 !
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
222 ! See the NEWS file (C-h n) for a more complete description of the resource
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
223 ! syntax of faces.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
224
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
225
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
226 ! Font of the modeline, menubar and pop-up menus.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
227 ! Note that the menubar resources do not use the `face' syntax, since they
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
228 ! are X toolkit widgets and thus outside the domain of XEmacs proper.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
229 !
1547
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
230 ! When X Font Sets are enabled with ./configure --with-xfs (eg, for
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
231 ! multilingual menubars and XIM), some .font resources (those specific to
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
232 ! the Lucid widget set) are ignored in favor of .fontSet resources.
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
233 ! Note that you need to use fontSet (or FontSet) in that case even if you
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
234 ! want to specify one font:
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
235 !
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
236 ! *menubar*FontSet: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
237 !
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
238 ! There is no harm in having both resources set, except for the confusion
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
239 ! you suffer. Sorry; that's the price of backward compatibility.
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
240 !
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
241 *menubar*Font: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
242 *popup*Font: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
243 *menubar*FontSet: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, \
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
244 -*-*-*-*-*-*-*-120-*-iso10646-1, \
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
245 -*-*-*-*-*-*-*-120-*-jisx0208.1983-0, \
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
246 -*-*-*-*-*-*-*-120-*-jisx0201.1976-0
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
247 *popup*FontSet: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, \
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
248 -*-*-*-*-*-*-*-120-*-iso10646-1, \
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
249 -*-*-*-*-*-*-*-120-*-jisx0208.1983-0, \
427e5c57da6e [xemacs-hg @ 2003-06-30 09:12:28 by stephent]
stephent
parents: 1480
diff changeset
250 -*-*-*-*-*-*-*-120-*-jisx0201.1976-0
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
251
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
252 ! Font in the Motif dialog boxes.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
253 ! (Motif uses `fontList' while most other things use `font' - if you don't
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
254 ! know why you probably don't want to.)
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
255 !
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
256 XEmacs*XmDialogShell*FontList: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
257 XEmacs*XmTextField*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
258 XEmacs*XmText*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
259 XEmacs*XmList*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
260
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
261 ! Font in the Athena dialog boxes.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
262 ! I think 14-point looks nicer than 12-point.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
263 ! Some people use 12-point anyway because you get more text, but
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
264 ! there's no purpose at all in doing this for dialog boxes.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
265
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
266 XEmacs*Dialog*Font: -*-helvetica-bold-r-*-*-*-140-*-*-*-*-iso8859-*
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
267
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
268 ! Dialog box translations.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
269 ! =======================
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
270
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
271 ! This accelerator binds <return> in a dialog box to <activate> on button1
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
272 XEmacs*dialog*button1.accelerators:#override\
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
273 <KeyPress>Return: ArmAndActivate()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
274 <KeyPress>KP_Enter: ArmAndActivate()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
275 Ctrl<KeyPress>m: ArmAndActivate()\n
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
276
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
277 ! Translations to make the TextField widget behave more like XEmacs
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
278 XEmacs*XmTextField.translations: #override\n\
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
279 !<Key>osfBackSpace: delete-previous-character()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
280 !<Key>osfDelete: delete-previous-character()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
281 !Ctrl<Key>h: delete-previous-character()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
282 !Ctrl<Key>d: delete-next-character()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
283 !Meta<Key>osfDelete: delete-previous-word()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
284 !Meta<Key>osfBackSpace: delete-previous-word()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
285 !Meta<Key>d: delete-next-word()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
286 !Ctrl<Key>k: delete-to-end-of-line()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
287 !Ctrl<Key>g: process-cancel()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
288 !Ctrl<Key>b: backward-character()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
289 !<Key>osfLeft: backward-character()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
290 !Ctrl<Key>f: forward-character()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
291 !<Key>osfRight: forward-character()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
292 !Meta<Key>b: backward-word()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
293 !Meta<Key>osfLeft: backward-word()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
294 !Meta<Key>f: forward-word()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
295 !Meta<Key>osfRight: forward-word()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
296 !Ctrl<Key>e: end-of-line()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
297 !Ctrl<Key>a: beginning-of-line()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
298 !Ctrl<Key>w: cut-clipboard()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
299 !Meta<Key>w: copy-clipboard()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
300 <Btn2Up>: copy-primary()\n
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
301
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
302 ! With the XEmacs typeahead it's better to not have space be bound to
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
303 ! ArmAndActivate() for buttons that appear in dialog boxes. This is
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
304 ! not 100% Motif compliant but the benefits far outweight the
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
305 ! compliancy problem.
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
306 XEmacs*dialog*XmPushButton.translations:#override\n\
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
307 <Btn1Down>: Arm()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
308 <Btn1Down>,<Btn1Up>: Activate()\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
309 Disarm()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
310 <Btn1Down>(2+): MultiArm()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
311 <Btn1Up>(2+): MultiActivate()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
312 <Btn1Up>: Activate()\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
313 Disarm()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
314 <Key>osfSelect: ArmAndActivate()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
315 <Key>osfActivate: ArmAndActivate()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
316 <Key>osfHelp: Help()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
317 ~Shift ~Meta ~Alt <Key>Return: ArmAndActivate()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
318 <EnterWindow>: Enter()\n\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
319 <LeaveWindow>: Leave()\n
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
320
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
321 ! XIM input method style
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
322 ! =======================
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
323
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
324 ! ximStyles is a (whitespace or comma-separated) list of XIMStyles in
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
325 ! order of user's preference.
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
326 ! Choose a subset of the following styles or reorder to taste
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
327 XEmacs*ximStyles: XIMPreeditPosition|XIMStatusArea\
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
328 XIMPreeditPosition|XIMStatusNothing\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
329 XIMPreeditPosition|XIMStatusNone\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
330 XIMPreeditNothing|XIMStatusArea\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
331 XIMPreeditNothing|XIMStatusNothing\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
332 XIMPreeditNothing|XIMStatusNone\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
333 XIMPreeditNone|XIMStatusArea\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
334 XIMPreeditNone|XIMStatusNothing\
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
335 XIMPreeditNone|XIMStatusNone
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
336
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
337 ! XIM Preedit and Status foreground and background
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
338 XEmacs*EmacsFrame.ximForeground: black
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
339 XEmacs*EmacsFrame.ximBackground: white
1480
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
340
318b9112aa48 [xemacs-hg @ 2003-05-14 10:34:46 by stephent]
stephent
parents:
diff changeset
341 ! XIM fontset (defaults to system fontset default)
2681
f15523a6da7a [xemacs-hg @ 2005-03-24 12:17:51 by aidan]
aidan
parents: 1547
diff changeset
342 ! XEmacs*EmacsFrame.FontSet: -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*