/usr/share/doc/jed-common/html/jed006.html is in jed-common 1:0.99.19-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | <!DOCTYPE html>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="generator" content="hevea 2.28">
<link rel="stylesheet" type="text/css" href="jed.css">
<title>Emulating Other Editors</title>
</head>
<body >
<a href="jed005.html"><img src="previous_motif.gif" alt="Previous"></a>
<a href="index.html"><img src="contents_motif.gif" alt="Up"></a>
<a href="jed007.html"><img src="next_motif.gif" alt="Next"></a>
<hr>
<h2 id="sec6" class="section">5  Emulating Other Editors</h2>
<p><span style="font-weight:bold">jed</span>’s ability to create new functions using the S–Lang programming
language as well as allowing the user to choose key bindings, makes the
emulation of other editors possible. Currently, <span style="font-weight:bold">jed</span> provides reasonable
emulation of the Emacs, EDT, and Wordstar editors.</p>
<h3 id="sec7" class="subsection">5.1  Emacs Emulation</h3>
<p>Emacs Emulation is provided by the <span style="font-weight:bold">S-Lang</span> code in <code>emacs.sl</code>. The
basic functionality of Emacs is emulated; most Emacs users should have no
problem with <span style="font-weight:bold">jed</span>. To enable Emacs emulation in <span style="font-weight:bold">jed</span>, make sure that the
line
</p><pre class="verbatim"> evalfile ("emacs"); pop ():
</pre><p>is in your <code>jed.rc</code> (<code>.jedrc</code>) startup file. <span style="font-weight:bold">jed</span> is distributed
with this line already present in the default <code>jed.rc</code> file.</p>
<h3 id="sec8" class="subsection">5.2  EDT Emulation</h3>
<p>For EDT emulation, <code>edt.sl</code> must be loaded. This is accomplished by
ensuring that the line</p><pre class="verbatim"> evalfile ("edt"); pop ();
</pre><p>is in present in the <code>jed.rc</code> (<code>.jedrc</code>) Startup File. <span style="font-weight:bold">jed</span> is
distributed with EDT emulation enabled on VMS and Unix systems but the
above line is commented out in the <code>jed.rc</code> file on MS-DOS systems.</p><p>This emulation provides a near identical emulation of the EDT keypad key
commands. In addition, the smaller keypad on the newer DEC terminals is
also setup. It is possible to have both EDT and Emacs emulation at the
same time. The only restriction is that <code>emacs.sl</code> must be loaded
before <code>edt.sl</code> is loaded.</p><p>One minor difference between <span style="font-weight:bold">jed</span>’s EDT emulation and the real EDT concerns
the <span style="font-variant:small-caps">Ctrl-H</span> key. EDT normally binds this to move the cursor to the
beginning of the line. However, <span style="font-weight:bold">jed</span> uses it as a help key. Nevertheless,
it is possible to re-bind it. See the section on re-binding keys as well as
the file <code>edt.sl</code> for hints. Alternatively, simply put
</p><pre class="verbatim"> unsetkey ("^H"); setkey ("bol", "^H");
</pre><p>in the <code>jed.rc</code> startup file after <code>edt.sl</code> is loaded. Keep in
mind that the <span style="font-variant:small-caps">Ctrl-H</span> key will no longer function as a help key if
this is done.</p><p>EDT emulation for PCs only work with the enhanced keyboard. When
<code>edt.sl</code> is loaded, a variable <code>NUMLOCK_IS_GOLD</code> is set which
instructs <span style="font-weight:bold">jed</span> to interpret the Num-Lock key on the square numeric keypad to
function as the EDT GOLD key. In fact, this keypad should behave exactly
like the keypad on VTxxx terminals. The only other problem that remains
concerns the <span style="font-variant:small-caps">+</span> key on the PC keypad. This key occupies two VTxxx
key positions, the minus and the comma (delete word and character) keys.
Thus a decision had to be made about which key to emulate. I chose the
<span style="font-variant:small-caps">+</span> key to return the characters <span style="font-variant:small-caps">Esc O l</span> which <span style="font-weight:bold">jed</span> maps
to the delete character function. This may be changed to the delete word
function if you prefer. See the file <code>edt.sl</code> for details.</p><p>The <span style="font-variant:small-caps">GOLD</span>–<span style="font-variant:small-caps">GOLD</span> key combination toggles the keypad between
application and numeric states. On the PC, this is not possible. Instead,
the PC <span style="font-variant:small-caps">F1</span> key has been instructed to perform this task.</p>
<h3 id="sec9" class="subsection">5.3  Wordstar Emulation</h3>
<p><code>wordstar.sl</code> contains the <span style="font-weight:bold">S-Lang</span> code for <span style="font-weight:bold">jed</span>’s Wordstar
emulation. Adding the line
</p><pre class="verbatim"> evalfile ("wordstar"); pop ();
</pre><p>to your <code>jed.rc</code> (<code>.jedrc</code>) startup file will enable <span style="font-weight:bold">jed</span>’s
Wordstar emulation.</p>
<hr>
<a href="jed005.html"><img src="previous_motif.gif" alt="Previous"></a>
<a href="index.html"><img src="contents_motif.gif" alt="Up"></a>
<a href="jed007.html"><img src="next_motif.gif" alt="Next"></a>
</body>
</html>
|