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