This chapter gives the standard A+ key settings and a brief summary of some Emacs functions. See an Emacs manual for more advanced Emacs functions. "The Window Manager", in "User Interactions with Displays" is also relevant to Emacs, and so is "Invoking A+".
- Hold down Control, then press x.
- C-x C-b
- Hold down Control, then press and release x, then press b.
- C-x k
- Hold down Control, then press x, then release both, then press k.
Key Sequence Function Backspace Delete the previous character. C-/ or Undo Undo. Used immediately after entry of an A+ expression, removes its output. C-a Move the cursor to the beginning of the line. C-d Delete character. Also see Delete. C-e Move the cursor to the end of the line. C-g Cancel the partial entry in the minibuffer. C-h Help. C-k Kill line: delete line or part thereof and put it in the kill ring. See C-y. C-r Incremental search backward. C-s Incremental search forward. C-x C-b List information about all current buffers. C-x C-f Goto file: get the file (named in minibuffer) in a new buffer. C-x C-s Save the buffer in the file named on the status line (usually where it originally came from). C-x C-w Save the buffer in the file whose name is entered in the minibuffer (command line). C-x k Kill (delete) the buffer. C-y Yank: insert the last entry of the kill ring. See C-k. Delete The default is to delete the previous character (sigh), but it can be set to the command delete-char using global-set-key. R1 or F5 Show one window in the screen. R2 or F6 Show two windows in screen; if there are two, move the cursor to the other window. R3 (No function set.) R4 or F7 Next buffer (cycle through buffers). R5 or F8 Previous buffer (toggle buffers). R6 Go to (enter line number in minibuffer). R7 Top: the first line of the buffer to the top of the window. R8 or F11 Move the cursor up one line. R9 Scroll up to earlier lines, with a two-line overlap. R10 Move the cursor backward one character. R11 Center the line with the cursor in the window. R12 Move the cursor forward one character. R13 End: move the cursor to the end of the buffer. R14 or F12 Move the cursor down one line. R15 Scroll down to later lines, with a two-line overlap.
Key Sequence Function C-c C-b Load buffer. Like loading a script file, but without the need to save the buffer. C-c C-c Interrupt the A+ process. (From a shell, not Emacs, A+ is interrupted by a single C-c.) C-c C-k Kill (terminate) the A+ process. If this doesn't work, try kill -9 pid in an XTerm. C-c C-m or C-c Enter Get the previous input line. C-c C-o Kill (flush) the last output, and append "γγγ output flushed γγγ" to the input that elicited it. C-c C-p Go to the last input line. C-c C-q Quit the A+ process. C-c C-s Move the beginning of the last output to the top of the buffer and place the cursor there. Enter If the cursor is on the bottom line, execute that line; otherwise, send the current line to the bottom, for possible editing and execution.
Ignore leading asterisks and any blanks following them, presuming that they indicate suspension or unbalanced punctuation, and the prompt; not exponentiation, or asterisks and blanks within a quoted character string.
F1 Help. F2 Load and execute line (in the A+ log, like Enter Enter).
In the log, but not in a script, ignore leading asterisks and any blanks following them, presuming that they indicate suspension or unbalanced punctuation, and the prompt; not exponentiation, or asterisks and blanks within a quoted character string.
F3 Load the program (function or operator) in which the cursor appears, in a script or the log. Caution: The program is read exactly as it appears, including any asterisks indicating continuation in an A+ session log, which will not be interpreted as such.
For F3, the buffer must be in a-mode. To set it, enter Esc-x a-major-mode.
F4 Go to the buffer named "*a*" if it exists, or create one, and start up A+ if that buffer has no process. The release can be set in Emacs by Control-c a, as described at the beginning of "Invoking A+". F5 Show one window in the screen, the one the cursor is currently in. F6 Move to the other window in the screen, creating it if it doesn't already exist. F7 Next buffer (cycle through buffers). F8 Previous buffer (toggle buffers). F9 Enlarge the window. F10 Shrink the window. F11 Scroll down to later lines, with a two-line overlap. F12 Scroll up to earlier lines, with a two-line overlap.
Variable Meaning Default Value a-host The name of the host machine on which to run A+. nil a-log The name of the log file for A+ sessions. "~/.emacs_a" a-mbytes The starting workspace size in megabytes. 4 a-mbytes- threshold The largest a-mbytes value to be honored without a question. 16 a-plus-rest Additional argv elements, to go after the -w parameter. a-prog The name of the A+ program (release) to run; see "Invoking A+", regarding the form that A+ release names take. "/usr/local/bin/a+"
To see or set the A+ mode (a-mode) Emacs variables, press Esc x when in Emacs, and enter a-options in the minibuffer following the M-x prompt. A new buffer will appear, containing a three-line paragraph for each variable and empty comment lines (two semicolons, followed by blanks) in between. "Key Definitions in a-Options Buffer" shows special key definitions in this buffer. When done, the buffer need not be saved; simply press Control-x k.
Key Definition n or space Move to the next variable definition. p Move to the previous variable definition. s When the active line contains a variable value, move the active line to the command line (minibuffer) and prompt for a new value. Note that the quotes must be included in character values. x Toggle the value of the variable between the boolean values t and nil. 1 Set the variable to boolean value t. 0 Set the variable to nil.
|firstname.lastname@example.org||© Copyright 19952008 Morgan Stanley Dean Witter & Co. All rights reserved.|