Edit file File name : jed021.html Content :<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="generator" content="hevea 2.35"> <link rel="stylesheet" type="text/css" href="jed.css"> <title>Miscellaneous</title> </head> <body > <a href="jed020.html"><img src="previous_motif.svg" alt="Previous"></a> <a href="index.html"><img src="contents_motif.svg" alt="Up"></a> <hr> <h2 id="sec45" class="section">20 Miscellaneous</h2> <h3 id="sec46" class="subsection">20.1 Abort Character</h3> <p> The abort character (<span style="font-variant:small-caps">Ctrl-G</span> by default) is special and should not be rebound. On the IBMPC, the keyboard interrupt 0x09 is hooked and a quit condition is signaled when it is pressed. For this reason, it should not be used in any keybindings. A similar statement holds for the other systems.</p><p>This character may be changed using the function <code class="verb">set_abort_char</code> Using this function affects all keymaps. For example, putting the line </p><pre class="verbatim"> set_abort_char (30); </pre><p> in your <code class="verb">jed.rc</code> file will change the abort character from its current value to 30 which is <span style="font-variant:small-caps">Ctrl-</span><code class="verb">^</code>.</p> <h3 id="sec47" class="subsection">20.2 Input Translation</h3> <p>By using the function <code class="verb">map_input</code> the user is able to remap characters input from the terminal before <span style="font-weight:bold">jed</span>’s keymap routines have a chance to act upon them. This is useful when it is difficult to get <span style="font-weight:bold">jed</span> to see certain characters. For example, consider the <span style="font-variant:small-caps">Ctrl-S</span> character. This character is especially notorious because many systems use it and <span style="font-variant:small-caps">Ctrl-Q</span> for flow control. Nevertheless Emacs uses <span style="font-variant:small-caps">Ctrl-S</span> for searching. Short of rebinding all keys which involve a <span style="font-variant:small-caps">Ctrl-S</span> how does one work with functions that are bound to key sequences using <span style="font-variant:small-caps">Ctrl-S</span>? This is where <code class="verb">map_input</code> comes into play. The <code class="verb">map_input</code> function requires two integer arguments which define how a given ascii character is to be mapped. Suppose that you wish to substitute <span style="font-variant:small-caps">Ctrl-</span><code class="verb">\</code> for <span style="font-variant:small-caps">Ctrl-S</span> everywhere. The line </p><pre class="verbatim"> map_input (28, 19); </pre><p> will do the trick. Here 28 is the ascii character of <span style="font-variant:small-caps">Ctrl-</span><code class="verb">\</code> and 19 is the ascii character for the <span style="font-variant:small-caps">Ctrl-S</span>.</p><p>As another example, consider the case where the backspace key sends out a <span style="font-variant:small-caps">Ctrl-H</span> instead of the <span style="font-variant:small-caps">DEL</span> character (<span style="font-variant:small-caps">Ctrl-?</span>). </p><pre class="verbatim"> map_input (8, 127); </pre><p> will map the <span style="font-variant:small-caps">Ctrl-H</span> (ascii 8) to the delete character (ascii 127).</p> <h3 id="sec48" class="subsection">20.3 Display Sizes</h3> <p>On VMS and unix systems, the screen size may be changed to either 80 or 132 columns by using the functions <code class="verb">w80</code> and <code class="verb">w132</code> respectively. Simply enter the appropriate function name at the <code class="verb">M-x</code> prompt in the minibuffer. The default binding for access to the minibuffer is <span style="font-variant:small-caps">Esc X</span>. Most window systems, e.g., DECWindows, allow the window size to be changed. When this is done, <span style="font-weight:bold">jed</span> should automatically adapt to the new size.</p><p>On the PC, at this time the screen size cannot be changed while <span style="font-weight:bold">jed</span> is running. Instead it is necessary to exit <span style="font-weight:bold">jed</span> first then set the display size and rerun <span style="font-weight:bold">jed</span>.</p><hr> <a href="jed020.html"><img src="previous_motif.svg" alt="Previous"></a> <a href="index.html"><img src="contents_motif.svg" alt="Up"></a> </body> </html> Save