annotate etc/edt-user.doc @ 42771:ed597889bfc8

(toplevel): Remove X-RCS, URL, Compatibility headers. Update copyright notice.
author Colin Walters <walters@gnu.org>
date Wed, 16 Jan 2002 06:35:51 +0000
parents 19818763d299
children 11d4f1454748
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1 File: edt-user.doc --- EDT Emulation User Instructions
Dave Love <fx@gnu.org>
parents:
diff changeset
2
Dave Love <fx@gnu.org>
parents:
diff changeset
3 For GNU Emacs 19
Dave Love <fx@gnu.org>
parents:
diff changeset
4
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
5 Copyright (C) 1986, 1992, 1994, 1995, 1999, 2000 Free Software Foundation, Inc.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
6
Dave Love <fx@gnu.org>
parents:
diff changeset
7 Author: Kevin Gallagher <kevingal@onramp.net>
Dave Love <fx@gnu.org>
parents:
diff changeset
8 Maintainer: Kevin Gallagher <kevingal@onramp.net>
Dave Love <fx@gnu.org>
parents:
diff changeset
9 Keywords: emulations
Dave Love <fx@gnu.org>
parents:
diff changeset
10
Dave Love <fx@gnu.org>
parents:
diff changeset
11 This file is part of GNU Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
12
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
13 GNU Emacs is free software; you can redistribute it and/or modify it under the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
14 terms of the GNU General Public License as published by the Free Software
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
15 Foundation; either version 2, or (at your option) any later version.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
16
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
17 GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
18 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
19 PARTICULAR PURPOSE. See the GNU General Public License for more details.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
20
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
21 You should have received a copy of the GNU General Public License along with
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
22 GNU Emacs; see the file COPYING. If not, write to the Free Software
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
23 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
24
Dave Love <fx@gnu.org>
parents:
diff changeset
25 ============================================================================
Dave Love <fx@gnu.org>
parents:
diff changeset
26
Dave Love <fx@gnu.org>
parents:
diff changeset
27 I. OVERVIEW:
Dave Love <fx@gnu.org>
parents:
diff changeset
28
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
29 This is Version 4.0 of the EDT Emulation for Emacs 19 and above.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
30 It comes with special functions which replicate nearly all of EDT's
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
31 keypad mode behavior. It sets up default keypad and function key
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
32 bindings which closely match those found in EDT. Support is
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
33 provided so that users may reconfigure most keypad and function key
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
34 bindings to their own liking.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
35
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
36 NOTE: Version 4.0 contains several enhancements. See the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
37 Enhancements section below for the details.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
38
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
39
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
40 Quick Start:
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
41
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
42 To start the EDT Emulation, first start Emacs and then enter
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
43
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
44 M-x edt-emulation-on
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
45
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
46 to begin the emulation. After initialization is complete, the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
47 following message will appear below the status line informing you
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
48 that the emulation has been enabled: "Default EDT keymap active".
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
49
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
50 You can have the EDT Emulation start up automatically, each time
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
51 you initiate a GNU Emacs session, by adding the following line to
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
52 your .emacs file:
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
53
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
54 (add-hook term-setup-hook 'edt-emulation-on)
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
55
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
56 IMPORTANT: Be sure to read the rest of this file. It contains very
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
57 useful information on how the EDT Emulation behaves and how
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
58 to customize it to your liking.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
59
Dave Love <fx@gnu.org>
parents:
diff changeset
60 The EDT emulation consists of the following files:
Dave Love <fx@gnu.org>
parents:
diff changeset
61
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
62 edt-user.doc - User Instructions and Sample Customization File
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
63 edt.el - EDT Emulation Functions and Default Configuration
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
64 edt-lk201.el - Built-in support for DEC LK-201 Keyboards
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
65 edt-vt100.el - Built-in support for DEC VT-100 (and above) terminals
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
66 edt-pc.el - Built-in support for PC 101 Keyboards under MS-DOS
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
67 edt-mapper.el - Create an EDT LK-201 Map File for Keyboards Without
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
68 Built-in Support
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
69
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
70 Enhancements:
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
71
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
72 Version 4.0 contains the following enhancements:
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
73
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
74 1. Scroll margins at the top and bottom of the window are now
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
75 supported. (The design was copied from tpu-extras.el.) By
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
76 default, this feature is enabled with the top margin set to
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
77 10% of the window and the bottom margin set to 15% of the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
78 window. To change these settings, you can invoke the function
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
79 edt-set-scroll-margins in your .emacs file. For example, the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
80 following line
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
81
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
82 (edt-set-scroll-margins "20%" "25%")
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
83
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
84 sets the top margin to 20% of the window and the bottom margin
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
85 to 25% of the window. To disable this feature, set each
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
86 margin to 0%. You can also invoke edt-set-scroll-margins
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
87 interactively while EDT Emulation is active to change the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
88 settings for that session.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
89
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
90 NOTE: Another way to set the scroll margins is to use the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
91 Emacs customization feature (not available in Emacs 19) to set
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
92 the following two variables directly:
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
93
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
94 edt-top-scroll-margin and edt-bottom-scroll-margin
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
95
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
96 Enter the Emacs `customize' command. First select the Editing
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
97 group and then select the Emulations group. Finally, select
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
98 the Edt group and follow the directions.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
99
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
100 2. The SUBS command is now supported and bound to GOLD-Enter by
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
101 default. (This design was copied from tpu-edt.el.) Note, in
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
102 earlier versions of EDT Emulation, GOLD-Enter was assigned to
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
103 the Emacs function `query-replace'. The binding of
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
104 `query-replace' has been moved to GOLD-/. If you prefer to
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
105 restore `query-replace' to GOLD-Enter, then use an EDT user
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
106 customization file, edt-user.el, to do this. See edt-user.doc
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
107 for details.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
108
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
109 3. EDT Emulation now also works in XEmacs, including the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
110 highlighting of selected text.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
111
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
112 4. If you access a workstation using an X Server, observe that
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
113 the initialization file generated by edt-mapper.el will now
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
114 contain the name of the X Server vendor. This is a
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
115 convenience for those who have access to their Unix account
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
116 from more than one type of X Server. Since different X
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
117 Servers typically require different EDT emulation
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
118 initialization files, edt-mapper.el will now generate these
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
119 different initialization files and save them with different
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
120 names. Then, the correct initialization file for the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
121 particular X server in use is loaded correctly automatically.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
123 5. Also, edt-mapper.el is now capable of binding an ASCII key
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
124 sequence, providing the ASCII key sequence prefix is already
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
125 known by Emacs to be a prefix. As a result of providing this
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
126 support, some terminal/keyboard/window system configurations,
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
127 which don't have a complete set of sensible function key
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
128 bindings built into Emacs in `function-key-map', can still be
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
129 configured for use with EDT Emulation. (Note: In a few rare
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
130 circumstances this does not work properly. In particular, it
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
131 does not work if a subset of the leading ASCII characters in a
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
132 key sequence are recognized by Emacs as having an existing
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
133 binding. For example, if the keypad 7 (KP-7) key generates
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
134 the sequence \"<ESC>Ow\" and \"<ESC>O\" is already bound to a
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
135 function, pressing KP-7 when told to do so by edt-mapper.el
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
136 will result in edt-mapper.el incorrectly mapping \"<ESC>O\" to
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
137 KP-7 and \"w\" to KP-8. If something like this happens to
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
138 you, it is probably a bug in the support for your keyboard
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
139 within Emacs OR a bug in the Unix termcap/terminfo support for
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
140 your terminal OR a bug in the terminal emulation software you
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
141 are using.)
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
142
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
143 6. The edt-quit function (bound to GOLD-q by default) has been
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
144 modified to warn the user when file-related buffer
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
145 modifications exist. It now cautions the user that those
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
146 modifications will be lost if the user quits without saving
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
147 those buffers.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
148
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
149
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
150 Goals:
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
151
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
152 1. Emulate EDT Keypad Mode commands closely so that current EDT users
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
153 will find that it easy and comfortable to use GNU Emacs with a
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
154 small learning curve;
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
155
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
156 2. Make it easy for a user to customize EDT emulation key bindings
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
157 without knowing much about Emacs Lisp;
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
158
Dave Love <fx@gnu.org>
parents:
diff changeset
159 3. Make it easy to switch between the original EDT default bindings
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
160 and the user's customized EDT bindings, without having to exit
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
161 Emacs.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
162
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
163 4. Provide support for some TPU/EVE functions not supported in EDT.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
164
Dave Love <fx@gnu.org>
parents:
diff changeset
165 5. Provide an easy way to restore ALL original Emacs key bindings,
Dave Love <fx@gnu.org>
parents:
diff changeset
166 just as they existed before the EDT emulation was first invoked.
Dave Love <fx@gnu.org>
parents:
diff changeset
167
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
168 6. Support GNU Emacs 19 and higher. (GNU Emacs 18 and below is no
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
169 longer supported.) XEmacs 19, and above, is also supported.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
170
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
171 7. Supports highlighting of marked text within the EDT emulation on
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
172 all platforms on which Emacs supports highlighting of marked text.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
173
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
174 8. Handle terminal configuration interactively for most terminal
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
175 configurations, when the emulation is invoked for the first time.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
176
Dave Love <fx@gnu.org>
parents:
diff changeset
177 9. Support a PC AT keyboard under MS-DOS.
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
178
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
179
Dave Love <fx@gnu.org>
parents:
diff changeset
180 II. TERMINALS/KEYBOARDS SUPPORTED:
Dave Love <fx@gnu.org>
parents:
diff changeset
181
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
182 Keyboards used under a Window System are supported via the edt-mapper function.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
183 The first time you invoke the emulation under a window system, the edt-mapper
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
184 function is run automatically and the user is prompted to identify which keys
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
185 the emulation is to use for the standard keypad and function keys EDT expects
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
186 (e.g., PF1, PF2, KP0, KP1, F1, F2, etc.). This configuration is saved to disk
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
187 read each time the emulation is invoked.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
188
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
189 In character oriented connections not running a window manager, built-in
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
190 support for the following terminals/keyboards is provided:
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
191
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
192 (1) DEC VT-100 series and higher. This includes well behaved VT clones and
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
193 emulators. If you are using a VT series terminal, be sure that the term
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
194 environment variable is set properly before invoking emacs.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
195
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
196 (2) PC AT keyboard under MS-DOS.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
197
Dave Love <fx@gnu.org>
parents:
diff changeset
198 Be sure to read the SPECIAL NOTES FOR SOME PLATFORMS sections to see if those
Dave Love <fx@gnu.org>
parents:
diff changeset
199 notes apply to you.
Dave Love <fx@gnu.org>
parents:
diff changeset
200
Dave Love <fx@gnu.org>
parents:
diff changeset
201
Dave Love <fx@gnu.org>
parents:
diff changeset
202 III. STARTING THE EDT EMULATION:
Dave Love <fx@gnu.org>
parents:
diff changeset
203
Dave Love <fx@gnu.org>
parents:
diff changeset
204 Start up GNU Emacs and enter "M-x edt-emulation-on" to begin the emulation.
Dave Love <fx@gnu.org>
parents:
diff changeset
205 After initialization is complete, the following message will appear below the
Dave Love <fx@gnu.org>
parents:
diff changeset
206 status line informing you that the emulation has been enabled:
Dave Love <fx@gnu.org>
parents:
diff changeset
207
Dave Love <fx@gnu.org>
parents:
diff changeset
208 Default EDT keymap active
Dave Love <fx@gnu.org>
parents:
diff changeset
209
Dave Love <fx@gnu.org>
parents:
diff changeset
210 You can have the EDT Emulation start up automatically, each time you initiate
Dave Love <fx@gnu.org>
parents:
diff changeset
211 a GNU Emacs session, by adding the following line to your .emacs file:
Dave Love <fx@gnu.org>
parents:
diff changeset
212
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
213 (add-hook term-setup-hook 'edt-emulation-on)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
214
Dave Love <fx@gnu.org>
parents:
diff changeset
215 A reference sheet is included (later on) listing the default EDT Emulation key
Dave Love <fx@gnu.org>
parents:
diff changeset
216 bindings. This sheet is also accessible on line from within Emacs by pressing
Dave Love <fx@gnu.org>
parents:
diff changeset
217 PF2, GOLD H, or HELP (when in the EDT Default Mode).
Dave Love <fx@gnu.org>
parents:
diff changeset
218
Dave Love <fx@gnu.org>
parents:
diff changeset
219 It is easy to customize key bindings in the EDT Emulation. (See CUSTOMIZING
Dave Love <fx@gnu.org>
parents:
diff changeset
220 section, below.) Customizations are placed in a file called edt-user.el. (A
Dave Love <fx@gnu.org>
parents:
diff changeset
221 sample edt-user.el file can be found in the CUSTOMIZING section.) If
Dave Love <fx@gnu.org>
parents:
diff changeset
222 edt-user.el is found in your GNU Emacs load path during EDT Emulation
Dave Love <fx@gnu.org>
parents:
diff changeset
223 initialization, then the following message will appear below the status line
Dave Love <fx@gnu.org>
parents:
diff changeset
224 indicating that the emulation has been enabled, enhanced by your own
Dave Love <fx@gnu.org>
parents:
diff changeset
225 customizations:
Dave Love <fx@gnu.org>
parents:
diff changeset
226
Dave Love <fx@gnu.org>
parents:
diff changeset
227 User EDT custom keymap active
Dave Love <fx@gnu.org>
parents:
diff changeset
228
Dave Love <fx@gnu.org>
parents:
diff changeset
229 Once enabled, it is easy to switch back and forth between your customized EDT
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
230 Emulation key bindings and the default EDT Emulation key bindings. (See the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
231 sample edt-user.el file below. Look at the binding to GOLD Z.) It is also
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
232 easy to turn off the emulation (via the command edt-emulation-off). Doing so
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
233 completely restores the original key bindings in effect just prior to invoking
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
234 the emulation.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
235
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
236 Emacs binds keys to ASCII control characters and so does the real EDT. Where
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
237 EDT key bindings and GNU Emacs key bindings conflict, the default GNU Emacs key
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
238 bindings are retained by the EDT emulation by default. If you are a diehard
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
239 EDT user you may not like this. The CUSTOMIZING section explains how to change
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
240 this so that the EDT bindings to ASCII control characters override the default
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
241 Emacs bindings.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
242
Dave Love <fx@gnu.org>
parents:
diff changeset
243
Dave Love <fx@gnu.org>
parents:
diff changeset
244 IV. SPECIAL NOTES FOR SOME PLATFORMS:
Dave Love <fx@gnu.org>
parents:
diff changeset
245
Dave Love <fx@gnu.org>
parents:
diff changeset
246 Sun Workstations running X:
Dave Love <fx@gnu.org>
parents:
diff changeset
247
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
248 Some earlier Sun keyboards do not have arrow keys separate from the keypad
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
249 keys. It is difficult to emulate the full EDT keypad and still retain use
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
250 of the arrow keys on such keyboards.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
251
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
252 The Sun Type 5 and other more recent Sun keyboards, however, do have
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
253 separate arrow keys. This makes them candidates for setting up a
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
254 reasonable EDT keypad emulation.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
255
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
256 Depending upon the configuration of the version of X installed on your
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
257 system, you may find the default X keynames for the keypad keys don't
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
258 permit Emacs to interpret some or all the keypad keys as something other
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
259 than arrow keys, numeric keys, Home, PgUP, etc. Both Sun and HP have been
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
260 particularly guilty of making bizarre keysym assignments to the keypad
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
261 keys.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
262
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
263 In most cases, the X Windows command, xmodmap, can be used to correct the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
264 problem. Here's a sample .xmodmaprc file which corrects this problem on
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
265 one Sun workstation configuration using an older SunOS release configured
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
266 with a Sun Type 5 keyboard:
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
267
Dave Love <fx@gnu.org>
parents:
diff changeset
268 ! File: .xmodmaprc
Dave Love <fx@gnu.org>
parents:
diff changeset
269 !
Dave Love <fx@gnu.org>
parents:
diff changeset
270 ! Set up Sun Type 5 keypad for use with the GNU Emacs EDT Emulation
Dave Love <fx@gnu.org>
parents:
diff changeset
271 !
Dave Love <fx@gnu.org>
parents:
diff changeset
272 keycode 53 = KP_Divide
Dave Love <fx@gnu.org>
parents:
diff changeset
273 keycode 54 = KP_Multiply
Dave Love <fx@gnu.org>
parents:
diff changeset
274 keycode 57 = KP_Decimal
Dave Love <fx@gnu.org>
parents:
diff changeset
275 keycode 75 = KP_7
Dave Love <fx@gnu.org>
parents:
diff changeset
276 keycode 76 = KP_8
Dave Love <fx@gnu.org>
parents:
diff changeset
277 keycode 77 = KP_9
Dave Love <fx@gnu.org>
parents:
diff changeset
278 keycode 78 = KP_Subtract
Dave Love <fx@gnu.org>
parents:
diff changeset
279 keycode 97 = KP_Enter
Dave Love <fx@gnu.org>
parents:
diff changeset
280 keycode 98 = KP_4
Dave Love <fx@gnu.org>
parents:
diff changeset
281 keycode 99 = KP_5
Dave Love <fx@gnu.org>
parents:
diff changeset
282 keycode 100 = KP_6
Dave Love <fx@gnu.org>
parents:
diff changeset
283 keycode 101 = KP_0
Dave Love <fx@gnu.org>
parents:
diff changeset
284 keycode 105 = F24
Dave Love <fx@gnu.org>
parents:
diff changeset
285 keycode 119 = KP_1
Dave Love <fx@gnu.org>
parents:
diff changeset
286 keycode 120 = KP_2
Dave Love <fx@gnu.org>
parents:
diff changeset
287 keycode 121 = KP_3
Dave Love <fx@gnu.org>
parents:
diff changeset
288 keycode 132 = KP_Add
Dave Love <fx@gnu.org>
parents:
diff changeset
289
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
290 If edt-mapper.el does not recognize your keypad keys as unique keys, use
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
291 the command
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
292
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
293 xmodmap -pke
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
294
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
295 to get a listing of the actual key codes and the keysyms mapped to them
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
296 and then generate you own custom .xmodmaprc similar to the one above.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
297
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
298 Next, feed .xmodmaprc to the xmodmap command and all the Sun Type 5 keypad
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
299 keys will now be configurable for the emulation of an LK-201 keypad (less
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
300 the comma key). In this example, the line
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
301
Dave Love <fx@gnu.org>
parents:
diff changeset
302 keycode 105 = F24
Dave Love <fx@gnu.org>
parents:
diff changeset
303
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
304 changes the X Windows name of the keypad NumLock key to be known
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
305 internally as the F24 key. Doing so permits it to be configured to behave
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
306 as the PF1 (Gold) key.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
307
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
308 The side effect of this change is that you will no longer have a NumLock
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
309 key. If you are using other software under X which requires a NumLock
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
310 key, then examine your keyboard and look for one you don't use and
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
311 redefine it to be the NumLock key. Basically, you need to clear the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
312 NumLock key from being assigned as a modifier, assign it to the key of
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
313 your choice, and then add it back as a modifier. (See the "General Notes
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
314 on Using NumLock for the PF1 Key on a Unix System" section below for
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
315 further help on how to do this.)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
316
Dave Love <fx@gnu.org>
parents:
diff changeset
317 PC users running MS-DOS:
Dave Love <fx@gnu.org>
parents:
diff changeset
318
Dave Love <fx@gnu.org>
parents:
diff changeset
319 By default, F1 is configured to emulate the PF1 (GOLD) key. But NumLock
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
320 can be used instead if you load a freeware TSR distributed with MS-Kermit,
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
321 call gold.com. This was once distributed in a file called gold22.zip and
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
322 came with the source code as well as a loadable binary image. (See
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
323 edt-pc.el in the Emacs lisp/emulation directory for more information.)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
324
Dave Love <fx@gnu.org>
parents:
diff changeset
325 PC users running GNU/Linux:
Dave Love <fx@gnu.org>
parents:
diff changeset
326
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
327 The default X server configuration varies from distribution to
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
328 distribution and release to release of GNU/Linux. If your system fails to
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
329 recognize the keypad keys as distinct keys, change the NumLock state,
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
330 turning it on or off, as the case may be, then try again. If this doesn't
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
331 solve your problem, you may have to modify the X keysym mappings with
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
332 xmodmap.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
333
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
334 On one distribution on an Intel PC, the following .xmodmaprc set things up
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
335 nicely.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
336
Dave Love <fx@gnu.org>
parents:
diff changeset
337 ! File: .xmodmaprc
Dave Love <fx@gnu.org>
parents:
diff changeset
338 !
Dave Love <fx@gnu.org>
parents:
diff changeset
339 ! Set up PC keypad under GNU/Linux for the GNU Emacs EDT Emulation
Dave Love <fx@gnu.org>
parents:
diff changeset
340 !
Dave Love <fx@gnu.org>
parents:
diff changeset
341 clear mod2
Dave Love <fx@gnu.org>
parents:
diff changeset
342 keycode 77 = F12
Dave Love <fx@gnu.org>
parents:
diff changeset
343 keycode 96 = Num_Lock Pointer_EnableKeys
Dave Love <fx@gnu.org>
parents:
diff changeset
344 add mod2 = Num_Lock
Dave Love <fx@gnu.org>
parents:
diff changeset
345
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
346 In this example, after feeding the file to the xmodmap command, the PC
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
347 NumLock keypad key will be configurable for the emulation of the PF1 key.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
348 The PC keypad can now emulate an LK-201 keypad (less the comma key), the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
349 standard keyboard supplied with DEC terminals VT-200 and above. This
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
350 .xmodmaprc file switches the role of the F12 and NumLock keys. It has
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
351 been tested on RedHat GNU/Linux 5.2. Other versions of GNU/Linux may
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
352 require different keycodes. (See the "General Notes on Using NumLock for
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
353 the PF1 Key on a Unix System" section below for further help on how to do
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
354 this.)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
355
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
356 NOTE: Remember, it may be necessary to have NumLock in one position (ON)
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
357 or the other (OFF) for the PC keypad to emulate the LK-201 keypad
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
358 properly.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
359
Dave Love <fx@gnu.org>
parents:
diff changeset
360 General Notes on Using NumLock for the PF1 Key on a Unix System:
Dave Love <fx@gnu.org>
parents:
diff changeset
361
Dave Love <fx@gnu.org>
parents:
diff changeset
362 Making the physical NumLock key available for use in the EDT
Dave Love <fx@gnu.org>
parents:
diff changeset
363 Emulation requires some modification to the default X Window
Dave Love <fx@gnu.org>
parents:
diff changeset
364 settings. Since the keycode assignments vary from system to
Dave Love <fx@gnu.org>
parents:
diff changeset
365 system, some investigation is needed to see how to do this on
Dave Love <fx@gnu.org>
parents:
diff changeset
366 a particular system.
Dave Love <fx@gnu.org>
parents:
diff changeset
367
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
368 You will need to look at the output generated by xmodmap invoked with the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
369 "-pm" switch. examined. For example, on RedHat GNU/Linux 5.2 on a PC, we
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
370 get the following output when running xmodmap.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
371
Dave Love <fx@gnu.org>
parents:
diff changeset
372 "xmodmap -pm" yields:
Dave Love <fx@gnu.org>
parents:
diff changeset
373
Dave Love <fx@gnu.org>
parents:
diff changeset
374 xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
Dave Love <fx@gnu.org>
parents:
diff changeset
375
Dave Love <fx@gnu.org>
parents:
diff changeset
376 shift Shift_L (0x32), Shift_R (0x3e)
Dave Love <fx@gnu.org>
parents:
diff changeset
377 lock Caps_Lock (0x42)
Dave Love <fx@gnu.org>
parents:
diff changeset
378 control Control_L (0x25), Control_R (0x6d)
Dave Love <fx@gnu.org>
parents:
diff changeset
379 mod1 Alt_L (0x40), Alt_R (0x71)
Dave Love <fx@gnu.org>
parents:
diff changeset
380 mod2 Num_Lock (0x4d)
Dave Love <fx@gnu.org>
parents:
diff changeset
381 mod3
Dave Love <fx@gnu.org>
parents:
diff changeset
382 mod4
Dave Love <fx@gnu.org>
parents:
diff changeset
383 mod5 Scroll_Lock (0x4e)
Dave Love <fx@gnu.org>
parents:
diff changeset
384
Dave Love <fx@gnu.org>
parents:
diff changeset
385
Dave Love <fx@gnu.org>
parents:
diff changeset
386 Note that Num_Lock is assigned to the modifier mod2. This is
Dave Love <fx@gnu.org>
parents:
diff changeset
387 what hides Num_Lock from being seen by Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
388
Dave Love <fx@gnu.org>
parents:
diff changeset
389 Now, "xmodmap -pke" yields:
Dave Love <fx@gnu.org>
parents:
diff changeset
390
Dave Love <fx@gnu.org>
parents:
diff changeset
391 .
Dave Love <fx@gnu.org>
parents:
diff changeset
392 .
Dave Love <fx@gnu.org>
parents:
diff changeset
393 .
Dave Love <fx@gnu.org>
parents:
diff changeset
394 keycode 77 = Num_Lock Pointer_EnableKeys
Dave Love <fx@gnu.org>
parents:
diff changeset
395 .
Dave Love <fx@gnu.org>
parents:
diff changeset
396 .
Dave Love <fx@gnu.org>
parents:
diff changeset
397 .
Dave Love <fx@gnu.org>
parents:
diff changeset
398 keycode 96 = F12
Dave Love <fx@gnu.org>
parents:
diff changeset
399 .
Dave Love <fx@gnu.org>
parents:
diff changeset
400 .
Dave Love <fx@gnu.org>
parents:
diff changeset
401 .
Dave Love <fx@gnu.org>
parents:
diff changeset
402
Dave Love <fx@gnu.org>
parents:
diff changeset
403 So, in RedHat GNU/Linux 5.2 on a PC, Num_Lock generates keycode
Dave Love <fx@gnu.org>
parents:
diff changeset
404 77. The following steps are taken:
Dave Love <fx@gnu.org>
parents:
diff changeset
405
Dave Love <fx@gnu.org>
parents:
diff changeset
406 1. clear the assignment of Num_Lock to mod2;
Dave Love <fx@gnu.org>
parents:
diff changeset
407 2. swap the keycodes assigned to F12 and Num_Lock;
Dave Love <fx@gnu.org>
parents:
diff changeset
408 3. assign Num_Lock back to mod2.
Dave Love <fx@gnu.org>
parents:
diff changeset
409
Dave Love <fx@gnu.org>
parents:
diff changeset
410 The .xmodmaprc file looks like this:
Dave Love <fx@gnu.org>
parents:
diff changeset
411
Dave Love <fx@gnu.org>
parents:
diff changeset
412 ! File: .xmodmaprc
Dave Love <fx@gnu.org>
parents:
diff changeset
413 !
Dave Love <fx@gnu.org>
parents:
diff changeset
414 ! Set up PC keypad under GNU/Linux for the GNU Emacs EDT Emulation
Dave Love <fx@gnu.org>
parents:
diff changeset
415 !
Dave Love <fx@gnu.org>
parents:
diff changeset
416 clear mod2
Dave Love <fx@gnu.org>
parents:
diff changeset
417 keycode 77 = F12
Dave Love <fx@gnu.org>
parents:
diff changeset
418 keycode 96 = Num_Lock Pointer_EnableKeys
Dave Love <fx@gnu.org>
parents:
diff changeset
419 add mod2 = Num_Lock
Dave Love <fx@gnu.org>
parents:
diff changeset
420
Dave Love <fx@gnu.org>
parents:
diff changeset
421 So, after executing "xmodmap .xmodmaprc", a press of the physical
Dave Love <fx@gnu.org>
parents:
diff changeset
422 F12 key looks like a Num_Lock keypress to X. Also, a press of the
Dave Love <fx@gnu.org>
parents:
diff changeset
423 physical NumLock key looks like a press of the F12 key to X.
Dave Love <fx@gnu.org>
parents:
diff changeset
424
Dave Love <fx@gnu.org>
parents:
diff changeset
425 Now, edt-mapper.el will see "f12" when the physical NumLock key
Dave Love <fx@gnu.org>
parents:
diff changeset
426 is pressed, allowing the NumLock key to be used as the EDT PF1
Dave Love <fx@gnu.org>
parents:
diff changeset
427 (Gold) key.
Dave Love <fx@gnu.org>
parents:
diff changeset
428
Dave Love <fx@gnu.org>
parents:
diff changeset
429 V. HOW DOES THIS EDT EMULATION DIFFER FROM REAL EDT?:
Dave Love <fx@gnu.org>
parents:
diff changeset
430
Dave Love <fx@gnu.org>
parents:
diff changeset
431 In general, you will find that this emulation of EDT replicates most, but not
Dave Love <fx@gnu.org>
parents:
diff changeset
432 all, of EDT's most used Keypad Mode editing functions and behavior. It is not
Dave Love <fx@gnu.org>
parents:
diff changeset
433 perfect, but most EDT users who have tried the emulation agree that it is
Dave Love <fx@gnu.org>
parents:
diff changeset
434 quite good enough to make it easy for die-hard EDT users to move over to using
Dave Love <fx@gnu.org>
parents:
diff changeset
435 GNU Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
436
Dave Love <fx@gnu.org>
parents:
diff changeset
437 Here's a list of the most important differences between EDT and this GNU Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
438 EDT Emulation. The list is short but you must be aware of these differences
Dave Love <fx@gnu.org>
parents:
diff changeset
439 if you are to use the EDT Emulation effectively.
Dave Love <fx@gnu.org>
parents:
diff changeset
440
Dave Love <fx@gnu.org>
parents:
diff changeset
441 1. Entering repeat counts works a little differently than in EDT.
Dave Love <fx@gnu.org>
parents:
diff changeset
442
Dave Love <fx@gnu.org>
parents:
diff changeset
443 EDT allows users to enter a repeat count before entering a command that
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
444 accepts repeat counts. For example, when using the real EDT, pressing
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
445 these three keys in sequence, GOLD 5 KP1, will move the cursor in the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
446 current direction 5 words. This does NOT work in Emacs!
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
447
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
448 Emacs provides two ways to enter repeat counts and neither involves using
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
449 the GOLD key. First, repeat counts can be entered in Emacs by using the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
450 ESC key. For example, pressing these keys in sequence, ESC 1 0 KP1, will
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
451 move the cursor in the current direction 10 words. Second, Emacs provides
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
452 another command called universal-argument that can be used to do the same
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
453 thing. Normally, in Emacs has this bound to C-u.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
454
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
455 2. EDT's line mode commands and nokeypad mode commands are NOT supported
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
456 (with one important exception; see item 8 in the Highlights section
Dave Love <fx@gnu.org>
parents:
diff changeset
457 below). Although, at first, this may seem like a big omission, the set of
Dave Love <fx@gnu.org>
parents:
diff changeset
458 built-in Emacs commands provides a much richer set of capabilities which
Dave Love <fx@gnu.org>
parents:
diff changeset
459 more than make up for this omission.
Dave Love <fx@gnu.org>
parents:
diff changeset
460
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
461 To enter Emacs commands not bound to keys, you can press GOLD KP7 or the DO
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
462 key. Emacs will display its own command prompt "M-x". This stands for the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
463 keypress Meta-x, where Meta is a special shift key. The Alt key is often
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
464 mapped to behave as a Meta key. So, you can also invoke this prompt by
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
465 pressing Meta-x. Typing the sequence "ESC x" will also invoke the prompt.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
466
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
467 3. Selected text is highlighted ONLY on systems where Emacs supports the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
468 highlighting of text.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
469
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
470 4. Just like in TPU/EVE, the ENTER key is NOT used to terminate input when the
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
471 editor prompts you for input. The RETURN key is used, instead. (KP4 and
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
472 KP5 (the direction keys) do terminate input for the FIND command, just like
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
473 in EDT, however.)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
474
Dave Love <fx@gnu.org>
parents:
diff changeset
475
Dave Love <fx@gnu.org>
parents:
diff changeset
476
Dave Love <fx@gnu.org>
parents:
diff changeset
477
Dave Love <fx@gnu.org>
parents:
diff changeset
478 VI. SOME HIGHLIGHTS IN THIS EDT EMULATION, AND SOME COMPARISONS TO THE
Dave Love <fx@gnu.org>
parents:
diff changeset
479 ORIGINAL GNU EMACS EDT EMULATION:
Dave Love <fx@gnu.org>
parents:
diff changeset
480
Dave Love <fx@gnu.org>
parents:
diff changeset
481 1. The EDT define key command is supported (edt-define-key) and is bound to
Dave Love <fx@gnu.org>
parents:
diff changeset
482 C-k in the default EDT mode when EDT control sequence bindings are enabled
Dave Love <fx@gnu.org>
parents:
diff changeset
483 or one of the sample edt-user.el customization files is used. The TPU/EVE
Dave Love <fx@gnu.org>
parents:
diff changeset
484 learn command is supported but not bound to a key in the default EDT mode
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
485 but is bound in the sample edt-user.el file.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
486
Dave Love <fx@gnu.org>
parents:
diff changeset
487 Unlike the TPU/EVE learn command, which uses one key to begin the learn
Dave Love <fx@gnu.org>
parents:
diff changeset
488 sequence, C-l, and another command to remember the sequence, C-r, this
Dave Love <fx@gnu.org>
parents:
diff changeset
489 version of the learn command (edt-learn) serves as a toggle to both begin
Dave Love <fx@gnu.org>
parents:
diff changeset
490 and to remember the learn sequence.
Dave Love <fx@gnu.org>
parents:
diff changeset
491
Dave Love <fx@gnu.org>
parents:
diff changeset
492 Many users who change the meaning of a key with the define key and the
Dave Love <fx@gnu.org>
parents:
diff changeset
493 learn commands, would like to be able to restore the original key binding
Dave Love <fx@gnu.org>
parents:
diff changeset
494 without having to quit and restart emacs. So a restore key command is
Dave Love <fx@gnu.org>
parents:
diff changeset
495 provided to do just that. When invoked, it prompts you to press the key
Dave Love <fx@gnu.org>
parents:
diff changeset
496 to which you wish the last replaced key definition restored. It is bound
Dave Love <fx@gnu.org>
parents:
diff changeset
497 to GOLD C-k in the default EDT mode when EDT control sequence bindings are
Dave Love <fx@gnu.org>
parents:
diff changeset
498 enabled or one of the sample edt-user.el customization files is used.
Dave Love <fx@gnu.org>
parents:
diff changeset
499
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
500 2. Direction support is fully supported.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
501
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
502 3. All original Emacs bindings are fully restored when EDT emulation is turned
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
503 off. So, if a fellow worker comes over to your terminal to help you with a
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
504 software problem, for example, and is completely confused by your EDT
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
505 emulation bindings, just enter the command, edt-emulation-off, at the M-x
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
506 prompt and the original Emacs bindings will be restored. To resume the EDT
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
507 emulation, just enter edt-emulation-on.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
508
Dave Love <fx@gnu.org>
parents:
diff changeset
509 4. User custom EDT bindings are kept separate from the default EDT bindings.
Dave Love <fx@gnu.org>
parents:
diff changeset
510 One can toggle back and forth between the custom EDT bindings and default
Dave Love <fx@gnu.org>
parents:
diff changeset
511 EDT bindings.
Dave Love <fx@gnu.org>
parents:
diff changeset
512
Dave Love <fx@gnu.org>
parents:
diff changeset
513 5. The Emacs functions in edt.el attempt to emulate, where practical, the
Dave Love <fx@gnu.org>
parents:
diff changeset
514 exact behavior of the corresponding EDT keypad mode commands. In a few
Dave Love <fx@gnu.org>
parents:
diff changeset
515 cases, the emulation is not exact, but we hope you will agree it is close
Dave Love <fx@gnu.org>
parents:
diff changeset
516 enough. In a very few cases, we chose to use the Emacs way of handling
Dave Love <fx@gnu.org>
parents:
diff changeset
517 things. As mentioned earlier, we do not emulate the EDT SUBS command.
Dave Love <fx@gnu.org>
parents:
diff changeset
518 Instead, we chose to use the Emacs query-replace function, which we find
Dave Love <fx@gnu.org>
parents:
diff changeset
519 to be easier to use.
Dave Love <fx@gnu.org>
parents:
diff changeset
520
Dave Love <fx@gnu.org>
parents:
diff changeset
521 6. Emacs uses the regexp assigned to page-delimiter to determine what marks a
Dave Love <fx@gnu.org>
parents:
diff changeset
522 page break. This is normally "^\f", which causes the edt-page command to
Dave Love <fx@gnu.org>
parents:
diff changeset
523 ignore form feeds not located at the beginning of a line. To emulate the
Dave Love <fx@gnu.org>
parents:
diff changeset
524 EDT PAGE command exactly, page-delimiter is set to "\f" when EDT emulation
Dave Love <fx@gnu.org>
parents:
diff changeset
525 is turned on, and restored to "^\f" when EDT emulation is turned off.
Dave Love <fx@gnu.org>
parents:
diff changeset
526 But, since some users prefer the Emacs definition of a page break, or may
Dave Love <fx@gnu.org>
parents:
diff changeset
527 wish to preserve a customized definition of page break, one can override
Dave Love <fx@gnu.org>
parents:
diff changeset
528 the EDT definition by placing
Dave Love <fx@gnu.org>
parents:
diff changeset
529
Dave Love <fx@gnu.org>
parents:
diff changeset
530 (setq edt-keep-current-page-delimiter t)
Dave Love <fx@gnu.org>
parents:
diff changeset
531
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
532 in your .emacs file. Or, you can used the Emacs customize command
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
533 to change its setting.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
534
Dave Love <fx@gnu.org>
parents:
diff changeset
535 7. The EDT definition of a section of a terminal window is hardwired to be 16
Dave Love <fx@gnu.org>
parents:
diff changeset
536 lines of its one-and-only 24-line window (the EDT SECT command bound to
Dave Love <fx@gnu.org>
parents:
diff changeset
537 KP8). That's two-thirds of the window at a time. Since Emacs, like
Dave Love <fx@gnu.org>
parents:
diff changeset
538 TPU/EVE, can handle multiple windows of sizes of other than 24 lines, the
Dave Love <fx@gnu.org>
parents:
diff changeset
539 definition of section used here has been modified to two-thirds of the
Dave Love <fx@gnu.org>
parents:
diff changeset
540 current window. (There is also an edt-scroll-window function which you
Dave Love <fx@gnu.org>
parents:
diff changeset
541 may prefer over the SECT emulation.)
Dave Love <fx@gnu.org>
parents:
diff changeset
542
Dave Love <fx@gnu.org>
parents:
diff changeset
543 8. Cursor movement and deletion involving word entities is identical to EDT.
Dave Love <fx@gnu.org>
parents:
diff changeset
544 This, above all else, gives the die-hard EDT user a sense of being at
Dave Love <fx@gnu.org>
parents:
diff changeset
545 home. Also, an emulation of EDT's SET ENTITY WORD command is provided,
Dave Love <fx@gnu.org>
parents:
diff changeset
546 for those users who like to customize movement by a word at a time to
Dave Love <fx@gnu.org>
parents:
diff changeset
547 their own liking.
Dave Love <fx@gnu.org>
parents:
diff changeset
548
Dave Love <fx@gnu.org>
parents:
diff changeset
549 9. EDT's FIND and FNDNXT are supported.
Dave Love <fx@gnu.org>
parents:
diff changeset
550
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
551 10. EDT's APPEND, REPLACE, and SUBS commands are supported.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
552
Dave Love <fx@gnu.org>
parents:
diff changeset
553 11. CHNGCASE is supported. It works on individual characters or selected
Dave Love <fx@gnu.org>
parents:
diff changeset
554 text, if SELECT is active. In addition, two new commands are provided:
Dave Love <fx@gnu.org>
parents:
diff changeset
555 edt-lowercase and edt-uppercase. They work on individual WORDS or
Dave Love <fx@gnu.org>
parents:
diff changeset
556 selected text, if SELECT is active.
Dave Love <fx@gnu.org>
parents:
diff changeset
557
Dave Love <fx@gnu.org>
parents:
diff changeset
558 12. Form feed and tab insert commands are supported.
Dave Love <fx@gnu.org>
parents:
diff changeset
559
Dave Love <fx@gnu.org>
parents:
diff changeset
560 13. A new command, edt-duplicate-word, is provided. If you experiment with
Dave Love <fx@gnu.org>
parents:
diff changeset
561 it, you might find it to be surprisingly useful and may wonder how you
Dave Love <fx@gnu.org>
parents:
diff changeset
562 ever got along without it! It is assigned to C-j in the sample
Dave Love <fx@gnu.org>
parents:
diff changeset
563 edt-user.el customization files.
Dave Love <fx@gnu.org>
parents:
diff changeset
564
Dave Love <fx@gnu.org>
parents:
diff changeset
565 14. TPU/EVE's Rectangular Cut and Paste functions (originally from the EVE-Plus
Dave Love <fx@gnu.org>
parents:
diff changeset
566 package) are supported. But unlike the TPU/EVE versions, these here
Dave Love <fx@gnu.org>
parents:
diff changeset
567 support both insert and overwrite modes. The seven rectangular functions
Dave Love <fx@gnu.org>
parents:
diff changeset
568 are bound to F7, F8, GOLD-F8, F9, GOLD-F9, F10, and GOLD-F10 in the
Dave Love <fx@gnu.org>
parents:
diff changeset
569 default EDT mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
570
Dave Love <fx@gnu.org>
parents:
diff changeset
571 15. The original EDT emulation package set up many default regular and GOLD
Dave Love <fx@gnu.org>
parents:
diff changeset
572 bindings. We tried to preserve most (but not all!) of these, so users of
Dave Love <fx@gnu.org>
parents:
diff changeset
573 the original emulation package will feel more at home.
Dave Love <fx@gnu.org>
parents:
diff changeset
574
Dave Love <fx@gnu.org>
parents:
diff changeset
575 Nevertheless, there are still many GOLD key sequences which are not bound
Dave Love <fx@gnu.org>
parents:
diff changeset
576 to any functions. These are prime candidates to use for your own
Dave Love <fx@gnu.org>
parents:
diff changeset
577 customizations.
Dave Love <fx@gnu.org>
parents:
diff changeset
578
Dave Love <fx@gnu.org>
parents:
diff changeset
579 Also, there are several commands in edt.el not bound to any key. So, you
Dave Love <fx@gnu.org>
parents:
diff changeset
580 will find it worthwhile to look through edt.el for functions you may wish
Dave Love <fx@gnu.org>
parents:
diff changeset
581 to add to your personal customized bindings.
Dave Love <fx@gnu.org>
parents:
diff changeset
582
Dave Love <fx@gnu.org>
parents:
diff changeset
583 16. The VT200/VT300 series terminals steal the function keys F1 to F5 for
Dave Love <fx@gnu.org>
parents:
diff changeset
584 their own use. These do not generate signals which are sent to the host.
Dave Love <fx@gnu.org>
parents:
diff changeset
585 So, edt.el does not assign any default bindings to F1 through F5.
Dave Love <fx@gnu.org>
parents:
diff changeset
586
Dave Love <fx@gnu.org>
parents:
diff changeset
587 In addition, our VT220 terminals generate an interrupt when the F6 key is
Dave Love <fx@gnu.org>
parents:
diff changeset
588 pressed (^C or ^Y, can't remember which) and not the character sequence
Dave Love <fx@gnu.org>
parents:
diff changeset
589 documented in the manual. So, binding emacs commands to F6 will not work
Dave Love <fx@gnu.org>
parents:
diff changeset
590 if your terminal behaves the same way.
Dave Love <fx@gnu.org>
parents:
diff changeset
591
Dave Love <fx@gnu.org>
parents:
diff changeset
592 17. The VT220 terminal has no ESC, BS, nor LF keys, as does a VT100. So the
Dave Love <fx@gnu.org>
parents:
diff changeset
593 default EDT bindings adopt the standard DEC convention of having the F11,
Dave Love <fx@gnu.org>
parents:
diff changeset
594 F12, and F13 keys, on a VT200 series (and above) terminal, assigned to the
Dave Love <fx@gnu.org>
parents:
diff changeset
595 same EDT functions that are bound to ESC, BS, and LF on a VT100 terminal.
Dave Love <fx@gnu.org>
parents:
diff changeset
596
Dave Love <fx@gnu.org>
parents:
diff changeset
597 18. Each user, through the use of a private edt-user.el file, can customize,
Dave Love <fx@gnu.org>
parents:
diff changeset
598 very easily, personal EDT emulation bindings.
Dave Love <fx@gnu.org>
parents:
diff changeset
599
Dave Love <fx@gnu.org>
parents:
diff changeset
600 19. The EDT SELECT and RESET functions are supported. However, unlike EDT,
Dave Love <fx@gnu.org>
parents:
diff changeset
601 pressing RESET to cancel text selection does NOT reset the existing
Dave Love <fx@gnu.org>
parents:
diff changeset
602 setting of the current direction.
Dave Love <fx@gnu.org>
parents:
diff changeset
603
Dave Love <fx@gnu.org>
parents:
diff changeset
604 We also provide a TPU/EVE like version of the single SELECT/RESET
Dave Love <fx@gnu.org>
parents:
diff changeset
605 function, called edt-toggle-select, which makes the EDT SELECT function
Dave Love <fx@gnu.org>
parents:
diff changeset
606 into a toggle on/off switch. That is, if selection is ON, pressing SELECT
Dave Love <fx@gnu.org>
parents:
diff changeset
607 again turns selection off (cancels selection). This function is used in
Dave Love <fx@gnu.org>
parents:
diff changeset
608 the sample edt-user.el customization files.
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
609
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
610 20. EDT scroll margins are supported, but are disabled by default. (See
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
611 CUSTOMIZING section below for instructions on how to enable them.)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
612
Dave Love <fx@gnu.org>
parents:
diff changeset
613
Dave Love <fx@gnu.org>
parents:
diff changeset
614 VII. CUSTOMIZING:
Dave Love <fx@gnu.org>
parents:
diff changeset
615
Dave Love <fx@gnu.org>
parents:
diff changeset
616 Most EDT users, at one time or another, make some custom key bindings, or
Dave Love <fx@gnu.org>
parents:
diff changeset
617 use someone else's custom key bindings, which they come to depend upon just as
Dave Love <fx@gnu.org>
parents:
diff changeset
618 if they were built-in bindings. This EDT Emulation for GNU Emacs is designed
Dave Love <fx@gnu.org>
parents:
diff changeset
619 to make it easy to customize bindings.
Dave Love <fx@gnu.org>
parents:
diff changeset
620
Dave Love <fx@gnu.org>
parents:
diff changeset
621 If you wish to customize the EDT Emulation to use some of your own key
Dave Love <fx@gnu.org>
parents:
diff changeset
622 bindings, you need to make a private version of edt-user.el in your own
Dave Love <fx@gnu.org>
parents:
diff changeset
623 private lisp directory. There are two sample files edt-user.el1 and
Dave Love <fx@gnu.org>
parents:
diff changeset
624 edt-user.el2 for you to use as templates and for ideas. Look at
Dave Love <fx@gnu.org>
parents:
diff changeset
625 edt-user.el1 first. Unless you will be using two or more very different
Dave Love <fx@gnu.org>
parents:
diff changeset
626 types of terminals on the same system, you need not look at edt-user.el2.
Dave Love <fx@gnu.org>
parents:
diff changeset
627
Dave Love <fx@gnu.org>
parents:
diff changeset
628 First, you need to have your own private lisp directory, say ~/lisp, and
Dave Love <fx@gnu.org>
parents:
diff changeset
629 you should add it to the GNU Emacs load path.
Dave Love <fx@gnu.org>
parents:
diff changeset
630
Dave Love <fx@gnu.org>
parents:
diff changeset
631 NOTE: A few sites have different load-path requirements, so the above
Dave Love <fx@gnu.org>
parents:
diff changeset
632 directions may need some modification if your site has such special
Dave Love <fx@gnu.org>
parents:
diff changeset
633 needs.
Dave Love <fx@gnu.org>
parents:
diff changeset
634
Dave Love <fx@gnu.org>
parents:
diff changeset
635
Dave Love <fx@gnu.org>
parents:
diff changeset
636 Creating your own edt-user.el file:
Dave Love <fx@gnu.org>
parents:
diff changeset
637
Dave Love <fx@gnu.org>
parents:
diff changeset
638 A sample edt-user.el file is attached to the end of this user documentation.
Dave Love <fx@gnu.org>
parents:
diff changeset
639 You should use it as a guide to learn how you can customize EDT emulation
Dave Love <fx@gnu.org>
parents:
diff changeset
640 bindings to your own liking. Names used to identify the set of LK-201
Dave Love <fx@gnu.org>
parents:
diff changeset
641 keypad and function keys are:
Dave Love <fx@gnu.org>
parents:
diff changeset
642
Dave Love <fx@gnu.org>
parents:
diff changeset
643 Keypad Keys:
Dave Love <fx@gnu.org>
parents:
diff changeset
644 PF1 PF2 PF3 PF4
Dave Love <fx@gnu.org>
parents:
diff changeset
645 KP7 KP8 KP9 KP-
Dave Love <fx@gnu.org>
parents:
diff changeset
646 KP4 KP5 KP6 KP,
Dave Love <fx@gnu.org>
parents:
diff changeset
647 KP1 KP2 KP3
Dave Love <fx@gnu.org>
parents:
diff changeset
648 KP0 KPP KPE
Dave Love <fx@gnu.org>
parents:
diff changeset
649
Dave Love <fx@gnu.org>
parents:
diff changeset
650 Arrow Keys:
Dave Love <fx@gnu.org>
parents:
diff changeset
651 LEFT RIGHT DOWN UP
Dave Love <fx@gnu.org>
parents:
diff changeset
652
Dave Love <fx@gnu.org>
parents:
diff changeset
653 Function Keys:
Dave Love <fx@gnu.org>
parents:
diff changeset
654 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14
Dave Love <fx@gnu.org>
parents:
diff changeset
655 HELP DO F17 F18 F19 F20
Dave Love <fx@gnu.org>
parents:
diff changeset
656
Dave Love <fx@gnu.org>
parents:
diff changeset
657 FIND INSERT REMOVE
Dave Love <fx@gnu.org>
parents:
diff changeset
658 SELECT PREVIOUS NEXT
Dave Love <fx@gnu.org>
parents:
diff changeset
659
Dave Love <fx@gnu.org>
parents:
diff changeset
660 Note:
Dave Love <fx@gnu.org>
parents:
diff changeset
661 Many VT-200 terminals, and above, steal function keys F1 thru
Dave Love <fx@gnu.org>
parents:
diff changeset
662 F5 for terminal setup control and don't send anything to the
Dave Love <fx@gnu.org>
parents:
diff changeset
663 host if pressed. So customizing bindings to these keys may
Dave Love <fx@gnu.org>
parents:
diff changeset
664 not work for you.
Dave Love <fx@gnu.org>
parents:
diff changeset
665
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
666 There are three basic functions that do the EDT emulation custom bindings:
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
667 edt-bind-key, edt-bind-gold-key, and edt-bind-function-key.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
668
Dave Love <fx@gnu.org>
parents:
diff changeset
669 The first two are for binding functions to keys which are standard across most
Dave Love <fx@gnu.org>
parents:
diff changeset
670 keyboards. This makes them keyboard independent, making it possible to define
Dave Love <fx@gnu.org>
parents:
diff changeset
671 these key bindings for all terminals in the file edt.el.
Dave Love <fx@gnu.org>
parents:
diff changeset
672
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
673 The first, edt-bind-key, is used typically to bind emacs commands to
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
674 control keys, although some people use it to bind commands to other keys, as
Dave Love <fx@gnu.org>
parents:
diff changeset
675 well. (For example, some people use it to bind the VT200 seldom used
Dave Love <fx@gnu.org>
parents:
diff changeset
676 back-tick key (`) to the function "ESC-prefix" so it will behave like an ESC
Dave Love <fx@gnu.org>
parents:
diff changeset
677 key.) The second function, edt-bind-gold-key, is used to bind emacs commands
Dave Love <fx@gnu.org>
parents:
diff changeset
678 to gold key sequences involving alpha-numeric keys, special character keys,
Dave Love <fx@gnu.org>
parents:
diff changeset
679 and control keys.
Dave Love <fx@gnu.org>
parents:
diff changeset
680
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
681 The third function, edt-bind-function-key, is terminal dependent and is defined
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
682 in a terminal specific file (see edt-vt100.el for example). It is used to bind
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
683 emacs commands to LK-201 function keys, to keypad keys, and to gold sequences
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
684 of those keys.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
685
Dave Love <fx@gnu.org>
parents:
diff changeset
686
Dave Love <fx@gnu.org>
parents:
diff changeset
687 SPECIFYING WORD ENTITIES:
Dave Love <fx@gnu.org>
parents:
diff changeset
688
Dave Love <fx@gnu.org>
parents:
diff changeset
689 The variable edt-word-entities is used to emulate EDT's SET ENTITY WORD
Dave Love <fx@gnu.org>
parents:
diff changeset
690 command. It contains a list of characters to be treated as words in
Dave Love <fx@gnu.org>
parents:
diff changeset
691 themselves. If the user does not define edt-word-entities in his/her .emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
692 file, then it is set up with the EDT default containing only TAB.
Dave Love <fx@gnu.org>
parents:
diff changeset
693
Dave Love <fx@gnu.org>
parents:
diff changeset
694 The characters are stored in the list by their numerical values, not as
Dave Love <fx@gnu.org>
parents:
diff changeset
695 strings. Emacs supports several ways to specify the numerical value of a
Dave Love <fx@gnu.org>
parents:
diff changeset
696 character. One method is to use the question mark: ?A means the numerical
Dave Love <fx@gnu.org>
parents:
diff changeset
697 value for A, ?/ means the numerical value for /, and so on. Several
Dave Love <fx@gnu.org>
parents:
diff changeset
698 unprintable characters have special representations:
Dave Love <fx@gnu.org>
parents:
diff changeset
699
Dave Love <fx@gnu.org>
parents:
diff changeset
700 ?\b specifies BS, C-h
Dave Love <fx@gnu.org>
parents:
diff changeset
701 ?\t specifies TAB, C-i
Dave Love <fx@gnu.org>
parents:
diff changeset
702 ?\n specifies LFD, C-j
Dave Love <fx@gnu.org>
parents:
diff changeset
703 ?\v specifies VTAB, C-k
Dave Love <fx@gnu.org>
parents:
diff changeset
704 ?\f specifies FF, C-l
Dave Love <fx@gnu.org>
parents:
diff changeset
705 ?\r specifies CR, C-m
Dave Love <fx@gnu.org>
parents:
diff changeset
706 ?\e specifies ESC, C-[
Dave Love <fx@gnu.org>
parents:
diff changeset
707 ?\\ specifies \
Dave Love <fx@gnu.org>
parents:
diff changeset
708
Dave Love <fx@gnu.org>
parents:
diff changeset
709 Here are some examples:
Dave Love <fx@gnu.org>
parents:
diff changeset
710
Dave Love <fx@gnu.org>
parents:
diff changeset
711 (setq edt-word-entities '(?\t ?- ?/)) ;; Specifies TAB, - , and /
Dave Love <fx@gnu.org>
parents:
diff changeset
712 (setq edt-word-entities '(?\t) ;; Specifies TAB, the default
Dave Love <fx@gnu.org>
parents:
diff changeset
713
Dave Love <fx@gnu.org>
parents:
diff changeset
714 You can also specify characters by their decimal ascii values:
Dave Love <fx@gnu.org>
parents:
diff changeset
715
Dave Love <fx@gnu.org>
parents:
diff changeset
716 (setq edt-word-entities '(9 45 47)) ;; Specifies TAB, - , and /
Dave Love <fx@gnu.org>
parents:
diff changeset
717
Dave Love <fx@gnu.org>
parents:
diff changeset
718
Dave Love <fx@gnu.org>
parents:
diff changeset
719 ENABLING EDT CONTROL KEY SEQUENCE BINDINGS:
Dave Love <fx@gnu.org>
parents:
diff changeset
720
Dave Love <fx@gnu.org>
parents:
diff changeset
721 Where EDT key bindings and GNU Emacs key bindings conflict, the default GNU
Dave Love <fx@gnu.org>
parents:
diff changeset
722 Emacs key bindings are retained by default. Some diehard EDT users may not
Dave Love <fx@gnu.org>
parents:
diff changeset
723 like this. So, if the variable edt-use-EDT-control-key-bindings is set to
Dave Love <fx@gnu.org>
parents:
diff changeset
724 true in a user's .emacs file, then the default EDT Emulation mode will enable
Dave Love <fx@gnu.org>
parents:
diff changeset
725 most of the original EDT control key sequence bindings. If you wish to do
Dave Love <fx@gnu.org>
parents:
diff changeset
726 this, add the following line to your .emacs file:
Dave Love <fx@gnu.org>
parents:
diff changeset
727
Dave Love <fx@gnu.org>
parents:
diff changeset
728 (setq edt-use-EDT-control-key-bindings t)
Dave Love <fx@gnu.org>
parents:
diff changeset
729
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
730
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
731 SETTING SCROLL MARGINS:
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
732
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
733 Scroll margins at the top and bottom of the window are now supported. (The
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
734 design was copied from tpu-extras.el.) By default, this feature is enabled
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
735 with the top margin set to 10% of the window and the bottom margin set to 15%
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
736 of the window. To change these settings, you can invoke the function
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
737 edt-set-scroll-margins in your .emacs file. For example, the following line
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
738
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
739 (edt-set-scroll-margins "20%" "25%")
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
740
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
741 sets the top margin to 20% of the window and the bottom margin to 25% of the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
742 window. To disable this feature, set each margin to 0%. You can also invoke
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
743 edt-set-scroll-margins interactively while EDT Emulation is active to change
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
744 the settings for that session.
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
745
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
746 NOTE: Another way to set the scroll margins is to use the Emacs customization
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
747 feature (not available in Emacs 19) to set the following two variables
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
748 directly:
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
749
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
750 edt-top-scroll-margin and edt-bottom-scroll-margin
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
751
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
752 Enter the Emacs `customize' command. First select the Editing group and then
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
753 select the Emulations group. Finally, select the Edt group and follow the
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
754 directions.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
755
Dave Love <fx@gnu.org>
parents:
diff changeset
756 DEFAULT EDT Keypad
Dave Love <fx@gnu.org>
parents:
diff changeset
757
Dave Love <fx@gnu.org>
parents:
diff changeset
758 F7: Copy Rectangle +----------+----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
759 F8: Cut Rect Overstrike |Prev Line |Next Line |Bkwd Char |Frwd Char |
Dave Love <fx@gnu.org>
parents:
diff changeset
760 G-F8: Paste Rect Overstrike | (UP) | (DOWN) | (LEFT) | (RIGHT) |
Dave Love <fx@gnu.org>
parents:
diff changeset
761 F9: Cut Rect Insert |Window Top|Window Bot|Bkwd Sent |Frwd Sent |
Dave Love <fx@gnu.org>
parents:
diff changeset
762 G-F9: Paste Rect Insert +----------+----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
763 F10: Cut Rectangle
Dave Love <fx@gnu.org>
parents:
diff changeset
764 G-F10: Paste Rectangle
Dave Love <fx@gnu.org>
parents:
diff changeset
765 F11: ESC
Dave Love <fx@gnu.org>
parents:
diff changeset
766 F12: Begining of Line +----------+----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
767 G-F12: Delete Other Windows | GOLD | HELP | FNDNXT | DEL L |
Dave Love <fx@gnu.org>
parents:
diff changeset
768 F13: Delete to Begin of Word | (PF1) | (PF2) | (PF3) | (PF4) |
Dave Love <fx@gnu.org>
parents:
diff changeset
769 HELP: Keypad Help |Mark Wisel|Desc Funct| FIND | UND L |
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
770 G-HELP: Emacs Help +----------+----------+----------+----------+
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
771 DO: Execute extended command | PAGE | SECT | APPEND | DEL W |
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
772 C-g: Keyboard Quit | (7) | (8) | (9) | (-) |
Dave Love <fx@gnu.org>
parents:
diff changeset
773 G-C-g: Keyboard Quit |Ex Ext Cmd|Fill Regio| REPLACE | UND W |
Dave Love <fx@gnu.org>
parents:
diff changeset
774 C-h: Beginning of Line +----------+----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
775 G-C-h: Emacs Help | ADVANCE | BACKUP | CUT | DEL C |
Dave Love <fx@gnu.org>
parents:
diff changeset
776 C-i: Tab Insert | (4) | (5) | (6) | (,) |
Dave Love <fx@gnu.org>
parents:
diff changeset
777 C-j: Delete to Begin of Word | BOTTOM | TOP | Yank | UND C |
Dave Love <fx@gnu.org>
parents:
diff changeset
778 C-k: Define Key +----------+----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
779 G-C-k: Restore Key | WORD | EOL | CHAR | Next |
Dave Love <fx@gnu.org>
parents:
diff changeset
780 C-l: Form Feed Insert | (1) | (2) | (3) | Window |
Dave Love <fx@gnu.org>
parents:
diff changeset
781 C-n: Set Screen Width 80 | CHNGCASE | DEL EOL |Quoted Ins| !
Dave Love <fx@gnu.org>
parents:
diff changeset
782 C-r: Isearch Backward +---------------------+----------+ (ENTER) |
Dave Love <fx@gnu.org>
parents:
diff changeset
783 C-s: Isearch Forward | LINE | SELECT | !
Dave Love <fx@gnu.org>
parents:
diff changeset
784 C-t: Display the Time | (0) | (.) | Query |
Dave Love <fx@gnu.org>
parents:
diff changeset
785 C-u: Delete to Begin of Line | Open Line | RESET | Replace |
Dave Love <fx@gnu.org>
parents:
diff changeset
786 C-v: Redraw Display +---------------------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
787 C-w: Set Screen Width 132
Dave Love <fx@gnu.org>
parents:
diff changeset
788 C-z: Suspend Emacs +----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
789 G-C-\: Split Window | FNDNXT | Yank | CUT |
Dave Love <fx@gnu.org>
parents:
diff changeset
790 | (FIND) | (INSERT) | (REMOVE) |
Dave Love <fx@gnu.org>
parents:
diff changeset
791 G-b: Buffer Menu | FIND | | COPY |
Dave Love <fx@gnu.org>
parents:
diff changeset
792 G-c: Compile +----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
793 G-d: Delete Window |SELECT/RES|SECT BACKW|SECT FORWA|
Dave Love <fx@gnu.org>
parents:
diff changeset
794 G-e: Exit | (SELECT) |(PREVIOUS)| (NEXT) |
Dave Love <fx@gnu.org>
parents:
diff changeset
795 G-f: Find File | | | |
Dave Love <fx@gnu.org>
parents:
diff changeset
796 G-g: Find File Other Window +----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
797 G-h: Keypad Help
Dave Love <fx@gnu.org>
parents:
diff changeset
798 G-i: Insert File
Dave Love <fx@gnu.org>
parents:
diff changeset
799 G-k: Toggle Capitalization Word
Dave Love <fx@gnu.org>
parents:
diff changeset
800 G-l: Lowercase Word or Region
Dave Love <fx@gnu.org>
parents:
diff changeset
801 G-m: Save Some Buffers
Dave Love <fx@gnu.org>
parents:
diff changeset
802 G-n: Next Error
Dave Love <fx@gnu.org>
parents:
diff changeset
803 G-o: Switch to Next Window
Dave Love <fx@gnu.org>
parents:
diff changeset
804 G-q: Quit
Dave Love <fx@gnu.org>
parents:
diff changeset
805 G-r: Revert File
Dave Love <fx@gnu.org>
parents:
diff changeset
806 G-s: Save Buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
807 G-u: Uppercase Word or Region
Dave Love <fx@gnu.org>
parents:
diff changeset
808 G-v: Find File Other Window
Dave Love <fx@gnu.org>
parents:
diff changeset
809 G-w: Write file
Dave Love <fx@gnu.org>
parents:
diff changeset
810 G-y: EDT Emulation OFF
Dave Love <fx@gnu.org>
parents:
diff changeset
811 G-z: Switch to User EDT Key Bindings
Dave Love <fx@gnu.org>
parents:
diff changeset
812 G-1: Delete Other Windows
Dave Love <fx@gnu.org>
parents:
diff changeset
813 G-2: Split Window
Dave Love <fx@gnu.org>
parents:
diff changeset
814 G-%: Go to Percentage
Dave Love <fx@gnu.org>
parents:
diff changeset
815 G- : Undo (GOLD Spacebar)
Dave Love <fx@gnu.org>
parents:
diff changeset
816 G-=: Go to Line
Dave Love <fx@gnu.org>
parents:
diff changeset
817 G-`: What line
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
818 G-/: Query-Replace
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
819
Dave Love <fx@gnu.org>
parents:
diff changeset
820 ;;; File: edt-user.el --- Sample User Customizations for the Enhanced
Dave Love <fx@gnu.org>
parents:
diff changeset
821 ;;; EDT Keypad Mode Emulation
Dave Love <fx@gnu.org>
parents:
diff changeset
822 ;;;
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
823 ;;; For GNU Emacs 19 and Above
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
824 ;;;
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
825 ;; Copyright (C) 1986, 1992, 1993, 2000 Free Software Foundation, Inc.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
826
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
827 ;; Author: Kevin Gallagher <kgallagh@spd.dsccc.com>
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
828 ;; Maintainer: Kevin Gallagher <kgallagh@spd.dsccc.com>
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
829 ;; Keywords: emulations
Dave Love <fx@gnu.org>
parents:
diff changeset
830
Dave Love <fx@gnu.org>
parents:
diff changeset
831 ;; GNU Emacs is free software; you can redistribute it and/or modify
Dave Love <fx@gnu.org>
parents:
diff changeset
832 ;; it under the terms of the GNU General Public License as published by
Dave Love <fx@gnu.org>
parents:
diff changeset
833 ;; the Free Software Foundation; either version 2, or (at your option)
Dave Love <fx@gnu.org>
parents:
diff changeset
834 ;; any later version.
Dave Love <fx@gnu.org>
parents:
diff changeset
835
Dave Love <fx@gnu.org>
parents:
diff changeset
836 ;; GNU Emacs is distributed in the hope that it will be useful,
Dave Love <fx@gnu.org>
parents:
diff changeset
837 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
Dave Love <fx@gnu.org>
parents:
diff changeset
838 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Dave Love <fx@gnu.org>
parents:
diff changeset
839 ;; GNU General Public License for more details.
Dave Love <fx@gnu.org>
parents:
diff changeset
840
Dave Love <fx@gnu.org>
parents:
diff changeset
841 ;; You should have received a copy of the GNU General Public License
Dave Love <fx@gnu.org>
parents:
diff changeset
842 ;; along with GNU Emacs; see the file COPYING. If not, write to the
Dave Love <fx@gnu.org>
parents:
diff changeset
843 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Dave Love <fx@gnu.org>
parents:
diff changeset
844 ;; Boston, MA 02111-1307, USA.
Dave Love <fx@gnu.org>
parents:
diff changeset
845
Dave Love <fx@gnu.org>
parents:
diff changeset
846 ;;; Commentary:
Dave Love <fx@gnu.org>
parents:
diff changeset
847
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
848 ;; This file contains GNU Emacs User Custom EDT bindings and functions.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
849
Dave Love <fx@gnu.org>
parents:
diff changeset
850 ;;; Usage:
Dave Love <fx@gnu.org>
parents:
diff changeset
851
Dave Love <fx@gnu.org>
parents:
diff changeset
852 ;; See edt-user.doc in the emacs etc directory.
Dave Love <fx@gnu.org>
parents:
diff changeset
853
Dave Love <fx@gnu.org>
parents:
diff changeset
854 ;; ====================================================================
Dave Love <fx@gnu.org>
parents:
diff changeset
855
Dave Love <fx@gnu.org>
parents:
diff changeset
856 ;;;;
Dave Love <fx@gnu.org>
parents:
diff changeset
857 ;;;; Setup user custom EDT key bindings.
Dave Love <fx@gnu.org>
parents:
diff changeset
858 ;;;;
Dave Love <fx@gnu.org>
parents:
diff changeset
859
Dave Love <fx@gnu.org>
parents:
diff changeset
860 (defun edt-setup-user-bindings ()
Dave Love <fx@gnu.org>
parents:
diff changeset
861 "Assigns user custom EDT Emulation keyboard bindings."
Dave Love <fx@gnu.org>
parents:
diff changeset
862
Dave Love <fx@gnu.org>
parents:
diff changeset
863 ;; PF1 (GOLD), PF2, PF3, PF4
Dave Love <fx@gnu.org>
parents:
diff changeset
864 ;;
Dave Love <fx@gnu.org>
parents:
diff changeset
865 ;; This file MUST contain a binding of PF1 to edt-user-gold-map. So
Dave Love <fx@gnu.org>
parents:
diff changeset
866 ;; DON'T CHANGE OR DELETE THE REGULAR KEY BINDING OF PF1 BELOW!
Dave Love <fx@gnu.org>
parents:
diff changeset
867 ;; (However, you may change the GOLD-PF1 binding, if you wish.)
Dave Love <fx@gnu.org>
parents:
diff changeset
868 (edt-bind-function-key "PF1" 'edt-user-gold-map 'edt-mark-section-wisely)
Dave Love <fx@gnu.org>
parents:
diff changeset
869 (edt-bind-function-key "PF2" 'query-replace 'other-window)
Dave Love <fx@gnu.org>
parents:
diff changeset
870 (edt-bind-function-key "PF4" 'edt-delete-entire-line 'edt-undelete-line)
Dave Love <fx@gnu.org>
parents:
diff changeset
871
Dave Love <fx@gnu.org>
parents:
diff changeset
872 ;; EDT Keypad Keys
Dave Love <fx@gnu.org>
parents:
diff changeset
873 (edt-bind-function-key "KP1" 'edt-word-forward 'edt-change-case)
Dave Love <fx@gnu.org>
parents:
diff changeset
874 (edt-bind-function-key "KP3" 'edt-word-backward 'edt-copy)
Dave Love <fx@gnu.org>
parents:
diff changeset
875 (edt-bind-function-key "KP6" 'edt-cut-or-copy 'yank)
Dave Love <fx@gnu.org>
parents:
diff changeset
876 (edt-bind-function-key "KP8" 'edt-scroll-window 'fill-paragraph)
Dave Love <fx@gnu.org>
parents:
diff changeset
877 (edt-bind-function-key "KP9" 'open-line 'edt-eliminate-all-tabs)
Dave Love <fx@gnu.org>
parents:
diff changeset
878 (edt-bind-function-key "KPP"
Dave Love <fx@gnu.org>
parents:
diff changeset
879 'edt-toggle-select 'edt-line-to-middle-of-window)
Dave Love <fx@gnu.org>
parents:
diff changeset
880 (edt-bind-function-key "KPE" 'edt-change-direction 'overwrite-mode)
Dave Love <fx@gnu.org>
parents:
diff changeset
881
Dave Love <fx@gnu.org>
parents:
diff changeset
882 ;; GOLD bindings for regular keys.
Dave Love <fx@gnu.org>
parents:
diff changeset
883 (edt-bind-gold-key "a" 'edt-append)
Dave Love <fx@gnu.org>
parents:
diff changeset
884 (edt-bind-gold-key "A" 'edt-append)
Dave Love <fx@gnu.org>
parents:
diff changeset
885 (edt-bind-gold-key "h" 'edt-electric-user-keypad-help)
Dave Love <fx@gnu.org>
parents:
diff changeset
886 (edt-bind-gold-key "H" 'edt-electric-user-keypad-help)
Dave Love <fx@gnu.org>
parents:
diff changeset
887
Dave Love <fx@gnu.org>
parents:
diff changeset
888 ;; Control bindings for regular keys.
Dave Love <fx@gnu.org>
parents:
diff changeset
889 ;;; Leave binding of C-c as original prefix key.
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
890 (edt-bind-key "\C-j" 'edt-duplicate-word)
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
891 (edt-bind-key "\C-k" 'edt-define-key)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
892 (edt-bind-gold-key "\C-k" 'edt-restore-key)
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
893 (edt-bind-key "\C-l" 'edt-learn)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
894 ;;; Leave binding of C-m to newline.
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
895 (edt-bind-key "\C-n" 'edt-set-screen-width-80)
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
896 (edt-bind-key "\C-o" 'open-line)
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
897 (edt-bind-key "\C-p" 'fill-paragraph)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
898 ;;; Leave binding of C-r to isearch-backward.
Dave Love <fx@gnu.org>
parents:
diff changeset
899 ;;; Leave binding of C-s to isearch-forward.
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
900 (edt-bind-key "\C-t" 'edt-display-the-time)
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
901 (edt-bind-key "\C-v" 'redraw-display)
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
902 (edt-bind-key "\C-w" 'edt-set-screen-width-132)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
903 ;;; Leave binding of C-x as original prefix key.
Dave Love <fx@gnu.org>
parents:
diff changeset
904 )
Dave Love <fx@gnu.org>
parents:
diff changeset
905
Dave Love <fx@gnu.org>
parents:
diff changeset
906 ;;;
Dave Love <fx@gnu.org>
parents:
diff changeset
907 ;;; LK-201 KEYBOARD USER EDT KEYPAD HELP
Dave Love <fx@gnu.org>
parents:
diff changeset
908 ;;;
Dave Love <fx@gnu.org>
parents:
diff changeset
909
Dave Love <fx@gnu.org>
parents:
diff changeset
910 (defun edt-user-keypad-help ()
Dave Love <fx@gnu.org>
parents:
diff changeset
911 "
Dave Love <fx@gnu.org>
parents:
diff changeset
912 USER EDT Keypad Active
Dave Love <fx@gnu.org>
parents:
diff changeset
913
Dave Love <fx@gnu.org>
parents:
diff changeset
914 +----------+----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
915 F7: Copy Rectangle |Prev Line |Next Line |Bkwd Char |Frwd Char |
Dave Love <fx@gnu.org>
parents:
diff changeset
916 F8: Cut Rect Overstrike | (UP) | (DOWN) | (LEFT) | (RIGHT) |
Dave Love <fx@gnu.org>
parents:
diff changeset
917 G-F8: Paste Rect Overstrike |Window Top|Window Bot|Bkwd Sent |Frwd Sent |
Dave Love <fx@gnu.org>
parents:
diff changeset
918 F9: Cut Rect Insert +----------+----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
919 G-F9: Paste Rect Insert
Dave Love <fx@gnu.org>
parents:
diff changeset
920 F10: Cut Rectangle
Dave Love <fx@gnu.org>
parents:
diff changeset
921 G-F10: Paste Rectangle
Dave Love <fx@gnu.org>
parents:
diff changeset
922 F11: ESC +----------+----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
923 F12: Begining of Line | GOLD |Query Repl| FNDNXT |Del Ent L |
Dave Love <fx@gnu.org>
parents:
diff changeset
924 G-F12: Delete Other Windows | (PF1) | (PF2) | (PF3) | (PF4) |
Dave Love <fx@gnu.org>
parents:
diff changeset
925 F13: Delete to Begin of Word |Mark Wisel|Other Wind| FIND | UND L |
Dave Love <fx@gnu.org>
parents:
diff changeset
926 HELP: Keypad Help +----------+----------+----------+----------+
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
927 G-HELP: Emacs Help | PAGE |Scroll Win|Open Line | DEL W |
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
928 DO: Execute extended command | (7) | (8) | (9) | (-) |
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
929 C-a: Beginning of Line |Ex Ext Cmd|Fill Parag|Elim Tabs | UND W |
Dave Love <fx@gnu.org>
parents:
diff changeset
930 C-b: Switch to Buffer +----------+----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
931 C-d: Delete Character | ADVANCE | BACKUP | CUT/COPY | DEL C |
Dave Love <fx@gnu.org>
parents:
diff changeset
932 C-e: End of Line | (4) | (5) | (6) | (,) |
Dave Love <fx@gnu.org>
parents:
diff changeset
933 C-f: Forward Character | BOTTOM | TOP | Yank | UND C |
Dave Love <fx@gnu.org>
parents:
diff changeset
934 C-g: Keyboard Quit +----------+----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
935 G-C-g: Keyboard Quit | Fwd Word | EOL | Bwd Word | Change |
Dave Love <fx@gnu.org>
parents:
diff changeset
936 C-h: Electric Emacs Help | (1) | (2) | (3) | Direction|
Dave Love <fx@gnu.org>
parents:
diff changeset
937 G-C-h: Emacs Help | CHNGCASE | DEL EOL | COPY | |
Dave Love <fx@gnu.org>
parents:
diff changeset
938 C-i: Indent for Tab +---------------------+----------+ (ENTER) |
Dave Love <fx@gnu.org>
parents:
diff changeset
939 C-j: Duplicate Word | LINE |SELECT/RES| |
Dave Love <fx@gnu.org>
parents:
diff changeset
940 C-k: Define Key | (0) | (.) | Toggle |
Dave Love <fx@gnu.org>
parents:
diff changeset
941 G-C-k: Restore Key | Open Line |Center Lin|Insrt/Over|
Dave Love <fx@gnu.org>
parents:
diff changeset
942 C-l: Learn +---------------------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
943 C-n: Set Screen Width 80
Dave Love <fx@gnu.org>
parents:
diff changeset
944 C-o: Open Line +----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
945 C-p: Fill Paragraph | FNDNXT | Yank | CUT |
Dave Love <fx@gnu.org>
parents:
diff changeset
946 C-q: Quoted Insert | (FIND)) | (INSERT) | (REMOVE) |
Dave Love <fx@gnu.org>
parents:
diff changeset
947 C-r: Isearch Backward | FIND | | COPY |
Dave Love <fx@gnu.org>
parents:
diff changeset
948 C-s: Isearch Forward +----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
949 C-t: Display the Time |SELECT/RES|SECT BACKW|SECT FORWA|
Dave Love <fx@gnu.org>
parents:
diff changeset
950 C-u: Universal Argument | (SELECT) |(PREVIOUS)| (NEXT) |
Dave Love <fx@gnu.org>
parents:
diff changeset
951 C-v: Redraw Display | | | |
Dave Love <fx@gnu.org>
parents:
diff changeset
952 C-w: Set Screen Width 132 +----------+----------+----------+
Dave Love <fx@gnu.org>
parents:
diff changeset
953 C-z: Suspend Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
954 G-C-\\: Split Window
Dave Love <fx@gnu.org>
parents:
diff changeset
955
Dave Love <fx@gnu.org>
parents:
diff changeset
956 G-a: Append to Kill Buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
957 G-b: Buffer Menu
Dave Love <fx@gnu.org>
parents:
diff changeset
958 G-c: Compile
Dave Love <fx@gnu.org>
parents:
diff changeset
959 G-d: Delete Window
Dave Love <fx@gnu.org>
parents:
diff changeset
960 G-e: Exit
Dave Love <fx@gnu.org>
parents:
diff changeset
961 G-f: Find File
Dave Love <fx@gnu.org>
parents:
diff changeset
962 G-g: Find File Other Window
Dave Love <fx@gnu.org>
parents:
diff changeset
963 G-h: Keypad Help
Dave Love <fx@gnu.org>
parents:
diff changeset
964 G-i: Insert File
Dave Love <fx@gnu.org>
parents:
diff changeset
965 G-k: Toggle Capitalization Word
Dave Love <fx@gnu.org>
parents:
diff changeset
966 G-l: Lowercase Word or Region
Dave Love <fx@gnu.org>
parents:
diff changeset
967 G-m: Save Some Buffers
Dave Love <fx@gnu.org>
parents:
diff changeset
968 G-n: Next Error
Dave Love <fx@gnu.org>
parents:
diff changeset
969 G-o: Switch Windows
Dave Love <fx@gnu.org>
parents:
diff changeset
970 G-q: Quit
Dave Love <fx@gnu.org>
parents:
diff changeset
971 G-r: Revert File
Dave Love <fx@gnu.org>
parents:
diff changeset
972 G-s: Save Buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
973 G-u: Uppercase Word or Region
Dave Love <fx@gnu.org>
parents:
diff changeset
974 G-v: Find File Other Window
Dave Love <fx@gnu.org>
parents:
diff changeset
975 G-w: Write file
Dave Love <fx@gnu.org>
parents:
diff changeset
976 G-y: EDT Emulation OFF
Dave Love <fx@gnu.org>
parents:
diff changeset
977 G-z: Switch to Default EDT Key Bindings
Dave Love <fx@gnu.org>
parents:
diff changeset
978 G-2: Split Window
Dave Love <fx@gnu.org>
parents:
diff changeset
979 G-%: Go to Percentage
Dave Love <fx@gnu.org>
parents:
diff changeset
980 G- : Undo (GOLD Spacebar)
Dave Love <fx@gnu.org>
parents:
diff changeset
981 G-=: Go to Line
35122
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
982 G-`: What line
19818763d299 Updated to reflect EDT Emulation version 4.0
Gerd Moellmann <gerd@gnu.org>
parents: 25853
diff changeset
983 G-/: Query-Replace"
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
984
Dave Love <fx@gnu.org>
parents:
diff changeset
985 (interactive)
Dave Love <fx@gnu.org>
parents:
diff changeset
986 (describe-function 'edt-user-keypad-help))