Artifact cd21342b79ba1b65954516ea05e9acc9bdc7a71243a40a81f4b7cd1f7d84819f:
- File
psl-1983/3-1/doc/nmode/nm-typos.ibm
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 7084) [annotate] [blame] [check-ins using] [more...]
,MOD - R 44X (11 April 1983) <PSL.NMODE-DOC>NM-TYPOS.ibm PLA 97_LAS 80 0_FIR 2_INT 1 6.0_TYP 160 163 162 193_INP 12 101_MAR 2 ,END ,PRO 201 OUT 160_202 OUT 163_203 OUT 162_204 OUT 193 205 INP 12 101_206 INP 12 102 ,END ,DEFINE UNIT SPACE FUNCTION ,END 201/NMODE Manual (Commands for Fixing Typos) Page 14-1 202/14. Commands for Fixing Typos 201/In this section we describe the commands that are especially useful for the times when you catch a mistake in your text just after you have made it, or change your mind while composing text on line. Backspace Delete last character. M-Backspace Kill last word. C-X Rubout Kill to beginning of sentence. C-T Transpose two characters. C-X C-T Transpose two lines. C-X T Transpose two arbitrary regions. The next three commands are just M-L, M-U and M-C with arguments of -1. The argument could be entered with M-Minus, C-Minus, or C-U -1. M-Minus M-L Convert last word to lower case. M-Minus M-U Convert last word to all upper case. M-Minus M-C Convert last word to lower case with capital initial. M-' Fix up omitted shift key on digit. 202/14.1 Killing Your Mistakes 201/The Backspace command is the most important correction command. When used among printing (self-inserting) characters, it can be thought of as canceling the last character typed. When your mistake is longer than a couple of characters, it might be more convenient to use M-Backspace (203/kill-backward-word-command201/) or C-X Rubout (203/backward-kill-sentence-command201/). M-Backspace kills back to the start of the last word, and C-X Rubout kills back to the start of the last sentence. C-X Rubout is particularly useful when you are thinking of what to write as you type it, in case you change your mind about phrasing. M-Backspace and C-X Rubout save the killed text for C-Y and M-Y to retrieve (See Section 11.2 [Un-killing], page 2.). M-Rubout is often useful even when you have typed only a few characters wrong, if you know you are confused in your typing and aren't sure exactly what you typed. At such a time, you cannot correct with Rubout except by looking at the screen to see what you did. It requires less thought to kill the whole word and start over again. 202/14.2 Transposition 201/The common error of transposing two characters can be fixed, when they are adjacent, with the C-T command (203/transpose-characters-command201/). Normally, C-T transposes the two characters on either side of the cursor. When given at the end of a line, rather than transposing the last character of the line with the line separator, which would be useless, C-T transposes the last two characters on the line. So, if you catch your transposition error right away, you can fix it with just a C-T. If you don't catch it so fast, you must move the cursor back to between the two transposed characters. If 201/Page 14-2 NMODE Manual (Transposition) you transposed a space with the last character of the word before it, the word motion commands are a good way of getting there. Otherwise, a reverse search (C-R) is often the best way. See Section 12 [Search], page 1. To transpose two lines, use the C-X C-T command (203/transpose-lines201/). M-T transposes words and C-M-T transposes Lisp forms (in Lisp mode). A more general transpose command is C-X T (203/transpose-regions201/). This transposes two arbitrary blocks of text, which need not even be next to each other. To use it, set the mark at one end of one of the blocks, then at the other end of this block; then go to the other block and set the mark at one end, and put point at the other. In other words, point and the last three marks should be at the four locations which are the ends of the two blocks. It does not matter which of the four locations point is at, or which order the others were marked. C-X T transposes the two blocks of text thus identified. 202/14.3 Case Conversion 201/A very common error is to type words in the wrong case. Because of this, the word case-conversion commands M-L, M-U and M-C have a special feature when used with a negative argument: they do not move the cursor. As soon as you see you have mistyped the last word, you can simply case-convert it and go on typing. See Section 13.5 [Case], page 5. Another common error is to type a special character and miss the shift key, producing a digit instead. There is a special command for fixing this: M-' (203/upcase-digit-command201/), which fixes the last digit before point in this way (but only if that digit appears on the current line or the previous line. Otherwise, to minimize random effects of accidental use, M-' does nothing). Once again, the cursor does not move, so you can use M-' when you notice the error and immediately continue typing. Because M-' needs to know the arrangement of your keyboard, the first time you use it you must supply the information by typing the row of digits 1, 2, ... , 9, 0 but 203/holding down the shift key201/. This tells M-' the correspondence between digits and special characters, which is remembered for the duration of the NMODE in the variable shifted-digits-association-list. This command is called M-' because its main use is to replace "7" with a single-quote.