home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / f / forthmac / !Forthmacs / docs / memacs / emacs_tut < prev    next >
Encoding:
Text File  |  1988-09-04  |  27.0 KB  |  673 lines

  1. You are looking at the ARC EMACS tutorial. 
  2.  
  3.  
  4. NOTE:  This tutorial attempts to help you "learn by doing".  The characters
  5.        ">>" at the left margin of your screen indicate directions for you to
  6.        try using a command.
  7.  
  8. EMACS commands generally involve the CONTROL key (sometimes labelled CTRL
  9. or CTL) or the META key (generally labelled ESCAPE).  Rather than write out
  10. CONTROL or META each time we want you to prefix a character, we'll use the
  11. following abbreviations:
  12.  
  13.    ^<chr>    Hold the CONTROL key while pressing the character <chr>.
  14.              Thus, ^F would be:  hold the CONTROL key and press F.
  15.  
  16. >>  Now type ^V (View Next Screen) to move to the next screen.
  17.     Remember:  hold the CONTROL key and press V.
  18.  
  19.    ESC-<chr>  Press the ESCAPE key and release it, then press the
  20.               character <chr>.  Note:  The command will have the
  21.               same meaning for upper or lower case characters (<chr>).
  22.  
  23. IMPORTANT NOTE:  If you must exit at some point, type ^X^C.
  24.  
  25. For the time being, you'll be expected to type ^V whenever you finish reading
  26. the current screen.
  27.  
  28. Note that there is an overlap when going from screen to screen; this provides
  29. some continuity when moving through the file.
  30.  
  31. The first thing that you need to know is how to move around from place to
  32. place in the file.  You already know how to move forward a screen with ^V.
  33. To move back a screen, type ^Z.
  34.  
  35. >>  Try typing ^Z and then ^V to move back and forth between screens a few
  36.     times.
  37.  
  38.  
  39. SUMMARY
  40. -------
  41.  
  42. The following commands are useful for viewing screens:
  43.  
  44.      ^V       Move forward one screen
  45.      ^Z       Move back one screen
  46.      ESC-^L   Clear screen and redisplay everything, putting the text
  47.               near the cursor at the center of the screen.
  48.  
  49. >>  Find the cursor and remember what text is near it.  Type an ESC-^L.
  50.     Find the cursor again and see what text is near it now.
  51.  
  52.  
  53. BASIC CURSOR CONTROL
  54. --------------------
  55.  
  56. Getting from screen to screen is useful, but how do you reposition yourself
  57. within a given screen to a specific place?  There are several ways you can
  58. do this.  One way (not the best, but the most basic) is to use the commands
  59. previous, backward, forward and next.  As you can imagine these commands
  60. (which are given to EMACS as ^P, ^B, ^F, and ^N  respectively) move the
  61. cursor from where it currently is to a new place in the given direction.
  62. Here, in a more graphical form, are the commands:
  63.  
  64.                           Previous line, ^P
  65.                                   :
  66.                                   :
  67.    Backward, ^B .... Current cursor position .... Forward, ^F
  68.                                   :
  69.                                   :
  70.                           Next line, ^N
  71.  
  72. You'll probably find it easy to think of these by letter.  P for previous,
  73. N for next, B for backward and F for forward.  These are the basic cursor
  74. positioning commands and you'll be using them ALL the time so it would be
  75. of great benefit if you learn them now.
  76.  
  77. >>  Do a few ^N's to bring the cursor down to this line.
  78.  
  79. >>  Move into the line with ^F's and then up with several ^P's.  Note what
  80.     ^P does when the cursor is in the middle of the line.
  81.  
  82. >>  Try ^B at the beginning of a line.  Note what happened to the cursor.
  83.     Do a few more ^B's.  Then do ^F's back to the end of the line and beyond.
  84.  
  85. When you go off the top or bottom of the screen, the text beyond the edge is
  86. shifted onto the screen so that your instructions can be carried out while
  87. keeping the cursor on the screen.
  88.  
  89. >>  Move the cursor off the bottom of the screen with ^N's and see what
  90.     happens.  Note the new position of the cursor.
  91.  
  92. If moving by characters is too slow, you can move by words.  ESC-F moves
  93. forward a word and ESC-B moves back a word.
  94.  
  95. >>  Type a few ESC-F's and ESC-B's.  Intersperse them with ^F's and ^B's.
  96.  
  97. Notice the parallel between ^F and ^B on the one hand, and ESC-F and ESC-B on
  98. the other hand.  Very often META characters are used for operations related
  99. to English text whereas CONTROL characters operate on the basic textual units
  100. that are independent of what you are editing (characters, lines, etc.).
  101.  
  102. Two other commands which are useful are ^A and ^E.  These commands move the
  103. cursor to the beginning (^A) and the end (^E) of the line.
  104.  
  105. >>  Try a couple of ^A's, and then a couple of ^E's.  Note that the cursor
  106.     does not move when either of these commands is repeated continuously.
  107.  
  108. Two other simple cursor motion commands are ESC-< (less than), which moves
  109. to the beginning of the file, and ESC-> (greater than), which moves to the
  110. end of the file.  If you need the shift key to type a "<", then you must
  111. also use the shift key to type ESC-<.  Otherwise, you would be typing ESC-, .
  112.  
  113. The location of the cursor within the text is also called "point".  To
  114. paraphrase, the cursor shows on the screen where point is located in the
  115. text.
  116.  
  117. Here is a summary of simple moving operations, including the word and
  118. line moving commands:
  119.  
  120.      ^F        Move forward a character
  121.      ^B        Move back a character
  122.  
  123.      ESC-F     Move forward a word
  124.      ESC-B     Move back a word
  125.  
  126.      ^N        Move to next line
  127.      ^P        Move to previous line
  128.  
  129.      ESC-N     Move to next paragraph
  130.      ESC-P     Move to previous paragraph
  131.  
  132.      ^A        Move to beginning of line
  133.      ^E        Move to end of line
  134.  
  135.      ESC-<     Go to beginning of file
  136.      ESC->     Go to end of file
  137.  
  138. >>  Try all of these commands now a few times for practice as these are
  139.     the most often used commands.  Since the last two will take you away
  140.     from this screen, use ^V's and ^Z's to return here.
  141.  
  142. Like all other commands in EMACS, these commands can be given arguments
  143. which cause them to be executed repeatedly.  The way you give a command
  144. a repeat count is by pressing META (ESC) and then the number before you
  145. enter the command.  As a special case, typing ^U is equivalent to ESC-4.
  146.  
  147. For instance, ESC-8 ^F moves forward eight characters.
  148.  
  149. >>  Try giving a suitable argument to ^N or ^P to come as close as you
  150.     can to this line in one jump.
  151.  
  152. This also applies to the screen moving commands, ^V and ^Z.  When given
  153. an argument, they scroll the screen up or down by that many screens.
  154.  
  155. >>  Try typing ESC-3 ^V now.
  156.  
  157. If you would like to scroll up, you can give an argument to ^Z.
  158.  
  159.  
  160. ABORTING COMMANDS
  161. -----------------
  162.  
  163. The EMACS command used to abort any command which requests input is
  164. ^G.  For example, you can use ^G to discard a numeric argument or at
  165. the beginning of a command that you don't want to finish.
  166.  
  167. >>  Type ESC-100 to make a numeric argument of 100, then type ^G.
  168.     Now type ^F.  How many characters does it move?  If you have
  169.     typed an ESC by mistake, you can get rid of it with ^G^G.
  170.  
  171.  
  172. ERRORS
  173. ------
  174. Sometimes you may do something which EMACS doesn't allow.  If it is
  175. something simple, such as typing a CONTROL key sequence which is not
  176. associated with any command, EMACS will just beep at you.  Otherwise,
  177. EMACS will also display an informative error message at the bottom of
  178. the screen.
  179.  
  180. Some versions of EMACS do not have all the features described in this
  181. tutorial implemented yet.  If you come across such an unimplemented
  182. feature, you may get an error message when you try to use it.  Just
  183. press any cursor movement key and proceed to the next section of the
  184. tutorial.
  185.  
  186.  
  187. NOTE:  Several of the exercises in the following sections allow you to use
  188.        options which will make changes to this tutorial. Do no worry about
  189.        these changes affecting the tutorial - this is only a copy of the
  190.        master tutorial and you will not be instructed to save the changes
  191.        made to it.
  192.  
  193.  
  194. CURSOR KEYS
  195. -----------
  196.  
  197. The cursor keypad, located on the right side of the keyboard,
  198. has been bound to some of the more useful screen movement commands.
  199. The mappings are as follows:
  200.  
  201.      Cursor-Right    ^F        Move forward a character
  202.      Cursor-Left     ^B        Move back a character
  203.  
  204.  
  205.      ^Cursor-Right   ESC-F     Move forward a word
  206.      ^Cursor-Left    ESC-B     Move back a word
  207.  
  208.  
  209.      Cursor-Down     ^N        Move to next line
  210.      Cursor-Up       ^P        Move to previous line
  211.  
  212.  
  213.      Pg-Dn           ^V        Move to next screen
  214.      Pg-Up           ^Z        Move to previous screen
  215.  
  216.  
  217.      Home            ESC-<     Go to beginning of file
  218.      End             ESC->     Go to end of file
  219.  
  220.  
  221.      Insert          ^C        Insert single space
  222.      Delete          ^D        Delete current character
  223.  
  224. A map of the keypad layout looks something like this:
  225.  
  226.       [Insert ^C] [Home ESC-<] [Pg Up ^Z] 
  227.       [Delete ^D] [Copy / End] [Pg Dw ^V]
  228.  
  229.  
  230.               ^
  231.               |      ^P
  232.  
  233.     <-- ^B       ^F -->      {Cursor key pad}
  234.  
  235.               |      ^N
  236.               v
  237.  
  238. Copy does a forward delete and Shift Copy (=End) does Esc-> end of text.
  239.  
  240.  
  241. >>  Practice using the cursor keypad.
  242.  
  243.  
  244. MODE LINE
  245. ---------
  246.  
  247. The line above the function key display at the bottom of the screen
  248. is referred to as the "communication line".  This is where EMACS
  249. interactively communicates with you.  Later you will see how EMACS
  250. prompts you for information on this line, such as to initiate a
  251. search.  EMACS can report things to you on this line as well.
  252.  
  253. >>  Type ^X= and see what appears in the communication line. Don't worry
  254.     about what all this information means - it is just an example of how
  255.     EMACS lets you know more about the file you are editing.
  256.  
  257. The line immediately above the communication line is referred to as the
  258. "mode line".  The mode line looks something like
  259.  
  260. =* ARC EMACS 1.00 () == emacs_tut == File: emacs_tut ===========================
  261.  
  262. This is a very useful "information" line.
  263.  
  264.   -  The asterisk (star) indicates that changes have been made to the file.
  265.      Immediately after opening or saving a file, there is no star.
  266.  
  267.   -  Any words inside the parentheses indicate the "modes" EMACS is
  268.      currently in.  Modes will be discussed in the next section.
  269.  
  270.   -  The string following the () is the buffername, i.e., the name EMACS
  271.      gives to the buffer, and it is usually related to the filename.
  272.  
  273.   -  The string following "File:" is the name of the file you are
  274.      currently editing.
  275.  
  276. >>  Look at the mode line and identify the items discussed above.
  277.  
  278.  
  279. MODES
  280. -----
  281.  
  282. Listed within the parentheses are the "modes" which are associated with
  283. the current buffer.  Modes are a feature of EMACS which assist in the
  284. editing of different languages, i.e., C, and text.  Presently, there are
  285. no modes associated with this buffer.  This means EMACS will do exactly
  286. what you think it will when using it - no "bonuses".  You can find out
  287. more about the current buffer and mode status by typing ^X^B.  Refer to
  288. the EMACS manual for a further discussion of buffers and modes.
  289.  
  290. As you become more familiar with EMACS and the use of buffers, "mode"
  291. takes on additional meaning.  When more than one buffer is in use, a
  292. mode is referred to as "local" or "global".  These terms indicate how a
  293. mode will affect the current buffer and other existing or to be added
  294. buffers.
  295.  
  296. A "local" mode is valid only within the scope of the current buffer.
  297. Other existing buffers and buffers which will be added are not affected
  298. by local modes.
  299.  
  300. The commands to add and delete local modes are
  301.  
  302.      ^XM       Add a local mode
  303.      ^X^M      Delete a local mode
  304.  
  305. Each of the above commands will prompt you for a mode.  To activate
  306. (deactivate) a mode, type the name of a valid (active) mode (refer to
  307. EMACS manual for a complete list of the valid modes) and follow it by
  308. pressing <Return>, the carriage-return key.
  309.  
  310. >>  Type ^XM WRAP - note the change in the mode line.  Move the cursor
  311.     to a blank line on this screen and begin typing the sequence "asdf ".
  312.     Continue typing this sequence and note what happens when the right
  313.     margin is encountered.
  314.  
  315. The previous exercise allowed you to enter text with the "WRAP" mode
  316. active.  As you can see, "WRAP" instructs EMACS to break between words
  317. when a line gets too long.  However, in order for this mode to be
  318. effective, spaces must be inserted between words.
  319.  
  320. The right margin is usually set at 72 characters but it can be changed.
  321. To change the margin type ESC nn ^XF where "nn" is the column number of
  322. the new right-hand margin.
  323.  
  324. >>  Type ESC 40 ^XF.  Then begin typing "asdf " and notice where the
  325.     line now breaks.  To return to the default right-hand margin, type
  326.     ESC 72 ^XF.
  327.  
  328. >>  Type ^X^M WRAP to "turn off" the local mode "WRAP".
  329.  
  330. A "global" mode affects only those buffers which will be ADDED after the
  331. "add/delete global mode" command is executed - not the current or other
  332. existing buffers.  Currently there is no global mode set.
  333.  
  334. The commands to add and delete global modes are
  335.  
  336.      ESC-M     Add a global mode
  337.      ESC-^M    Delete a global mode
  338.  
  339. Note:  All modes can be local.  However, global modes allow you to
  340.        activate those modes which usually apply to most of the buffers
  341.        in use.
  342.  
  343. As with local modes, each of the above commands will prompt you for
  344. a mode.  To activate (deactivate) a mode, enter the name of a valid
  345. (active) mode.
  346.  
  347. >>  Type ESC-M OVER.  This mode tells EMACS to write over the text on
  348.     the current line.  Is there any change in the mode line? Now move to
  349.     the line of "asdf " you entered and start typing.  Note that nothing
  350.     happens.  Remember that global modes affect only those modes which
  351.     will be added - not those already existing.
  352.  
  353. >>  Type ESC-^M OVER to "turn off" the global overwrite mode.
  354.  
  355.  
  356. INSERTING AND DELETING
  357. ----------------------
  358.  
  359. If you want to type text, just start typing.  Characters which you
  360. can see, such as A, 7, *, etc. are taken by EMACS as text and are
  361. immediately inserted.  Type <Return> to insert a line separator,
  362. i.e., a single linefeed character.
  363.  
  364. You can delete the last character you typed by typing either <Delete>
  365. or ^H.  On some keyboards, there is a dedicated key for creating a ^H.
  366. If so, it is usually labelled as either "Backspace" or "<--".  <Delete>
  367. is a key on the keyboard, which may be labelled "Rubout" instead of
  368. "Delete" on some terminals.  More generally, <Delete> deletes the
  369. character immediately before the current cursor position.
  370.  
  371. >>  Now type a few characters and then delete them by typing <Delete>
  372.     a few times.
  373.  
  374. >>  Now start typing text until you reach the right margin, then continue
  375.     to type.  When a line of text gets too big for one line on the screen,
  376.     the line of text is "continued" off the edge of the screen.  The dollar
  377.     sign at the right margin indicates a line which has been continued.
  378.     EMACS scrolls the line over so you can see what you are editing.  The
  379.     "$" at the left or right edge of the screen indicates that the current
  380.     line extends off in that direction.
  381.  
  382. This concept is easier to understand by doing rather than by reading about
  383. it so it is suggested that the following exercises be done.
  384.  
  385. >>  The following line actually goes off the edge.  Try typing enough ESC-F's
  386.     so that you move off the right hand end of this line.  This is a long line of text.  Note the "$" at each edge.  Keep typing ESC-F's and watch where EMACS decides to scroll the line.  Now, type ESC-B's until EMACS decides to scroll the line again.
  387.  
  388. >>  Go to the line you entered which the text continued off the edge of
  389.     the screen.  Use ^D's to delete the text until the text line fits on
  390.     one screen line again.  The continuation "$" will go away.
  391.  
  392. >>  Move the cursor to the beginning of a line and type <Delete>.  This
  393.     deletes the line separator before the line and merges the line onto
  394.     the previous line.  The resulting line may be too long to fit on the
  395.     screen, in which case it has a continuation indicator.
  396.  
  397. >>  Press <Return> to insert the separator again.
  398.  
  399. Internally, EMACS will allow you to have lines of nearly any length, limited
  400. only by the amount of memory available.  Externally, however, EMACS can only
  401. read or write lines, to or from a file, which are less than or equal to 255
  402. characters.
  403.  
  404. Remember that most EMACS commands can be given a repeat count.  Note that
  405. this includes characters which insert themselves.
  406.  
  407. >>  Try that now -- type ESC-8 * and see what happens.
  408.  
  409. If you want to insert spaces in a line, type ^C.
  410.  
  411. >>  Move to a line and move the cursor with ^F's; then insert spaces with ^C.
  412.     Use ^D to remove the spaces.
  413.  
  414. If you want to create a blank line between two lines, move to the second
  415. of the two lines and type ^O.
  416.  
  417. >>  Try moving to a line and typing ^O now.
  418.  
  419. You've now learned the most basic way of typing something in EMACS and
  420. correcting errors.  You can delete characters, words or lines as well.
  421. Here is a summary of the delete operations:
  422.  
  423.      <Delete>      Delete the character just before the cursor
  424.      ^H            Delete the character just before the cursor
  425.      ^D            Delete the character the cursor is under
  426.  
  427.      ESC-<Delete>  Kill the word immediately before the cursor
  428.      ESC-^H        Kill the word immediately before the cursor
  429.      ESC-D         Kill the word from the cursor position
  430.  
  431.      ^K            Kill from the cursor position to end of line
  432.  
  433. Notice that <Delete> and ^D vs ESC-<Delete> and ESC-D extend the parallel
  434. started by ^F and ESC-F (well, <Delete> isn't really a control character,
  435. but let's not worry about that).
  436.  
  437. Now suppose you kill something, and then you decide that you want to get
  438. it back?  Well, whenever you kill something bigger than a character, EMACS
  439. saves it for you.  To yank it back, use ^Y.  Note that you don't have to
  440. be in the same place to do ^Y.  This is a good way to move text around.
  441. Also note the difference between "Killing" and "Deleting" - "Killed" text
  442. can be yanked back, and "Deleted" text cannot.  Generally, the commands
  443. that can destroy a lot of text save it, while the ones that attack only
  444. one character do not save it.
  445.  
  446. >>  Type ^N a couple times to position the cursor at some line on this
  447.     screen.  Now kill that line with ^K.
  448.  
  449. Note that a single ^K kills the contents of the line, and a second ^K
  450. kills the line itself, and makes all the other lines move up.  If you
  451. give ^K a repeat count, it kills that many lines AND their contents.
  452.  
  453. The text that has just disappeared is saved so that you can retrieve it.
  454. To retrieve the last killed text and put it where the cursor currently
  455. is, type ^Y.
  456.  
  457. >>  Try it.  Type ^Y to yank the text back.
  458.  
  459. Think of ^Y as if you were yanking something back that someone took away
  460. from you.  Notice that if you do several ^K's in a row the text that is
  461. killed is all saved together so that one ^Y will yank all of the lines.
  462.  
  463. >>  Try it.  Type ^K several times.
  464.  
  465. >>  To retrieve that killed text:  Type ^Y.  Move the cursor down a few
  466.     lines and type ^Y again.  You now know how to copy text.
  467.  
  468. What do you do if you have some text you want to yank back, and then
  469. you kill something else?  ^Y would yank the more recent kill.
  470.  
  471. >>  Kill a line, move around, kill another line.  Then do ^Y to get back
  472.     the second killed line.
  473.  
  474.  
  475. SEARCHING
  476. ---------
  477.  
  478. EMACS can do searches for strings (these are groups of contiguous
  479. characters or words) either forward through the file or backward
  480. through it.
  481.  
  482. >>  Now type ^S to start a search.  Type the word "cursor", then ESC.
  483.  
  484. >>  Type ^S ESC to find the next occurrence of "cursor".
  485.  
  486. The ^S starts a search that looks for any occurrence of the search
  487. string AFTER the current cursor position.  But what if you want to
  488. search for something earlier in the text?  To do this one should
  489. type ^R for Reverse search.  Everything that applies to ^S applies
  490. to ^R except that the direction of the search is reversed.
  491.  
  492.  
  493. TEXT REPLACEMENT
  494. ----------------
  495.  
  496. >>  Move the cursor to the blank line two lines below this one.
  497.     Then type ESC-R changed ESC altered ESC .
  498.  
  499.     Notice how this line has changed; you have replaced the word
  500.     "changed" with "altered" wherever it occurs in the file after
  501.     the cursor.  After all the substitutions have been made or
  502.     the end of file has been reached, a message informing you of
  503.     the number of substitutions which have been made appears in
  504.     the communication line.
  505.  
  506. The more customary command for replacing strings is the interactive
  507. command query-replace-search (ESC-^R), which has several options.  In
  508. essence, it shows each occurrence of the first string and asks you if
  509. you want to replace it or not.  Type a "?" when it asks to replace the
  510. string to list the various options for query-replace-search.  For a
  511. more detailed discussion of this command refer to the EMACS manual.
  512.  
  513.  
  514. FILES
  515. -----
  516.  
  517. In order to make the text changes permanent, you must save them to a file.
  518. If you do not save them, the changes will "disappear" when you leave EMACS.
  519. As you make changes, i.e., corrections, deletions, insertions, etc., they
  520. are actually written to a "scratch" copy of the file and the changes to
  521. this file will not affect the "master" copy of the file until a file save
  522. is specified. This allows you to decide if changes made to the file should
  523. be made permanent or discarded.
  524.  
  525. Remember:  The file name appears on the mode line.
  526.  
  527. =* ARC EMACS 1.00 () == emacs_tut == File: emacs_tut ===========================
  528.                                      ---------------
  529.  
  530. The commands for finding and saving files are unlike the other commands
  531. you have learned so far in that they consist of two characters - a ^X
  532. followed by another character which specifies the file command to be
  533. executed.
  534.  
  535. To find a file, type ^X^F.  EMACS will then prompt you from the
  536. communication line for the name of the file.  In response to the prompt,
  537. type the file name followed by a <Return> to indicate the file name has
  538. been entered.  This command will tell EMACS to go find this file and
  539. load it.  Its contents will then be displayed on the screen and you will
  540. be able to edit the file's contents.
  541.  
  542. To save any changes made to the file, type ^X^S.  This tells EMACS to
  543. create a new version of the file which includes the changes you have
  544. made.  When the save is complete, the number of lines saved will be
  545. displayed in the communication line.
  546.  
  547. If you edit a file and at some point decide to quit (i.e., ^X^C) without
  548. saving the changes, EMACS will remind you that changes have been made to
  549. the file and ask you if you really want to quit.  Enter "N" to return to
  550. EMACS or "Y" to exit EMACS without saving the changes.
  551.  
  552. To create a file, just edit it "as if" it already existed.  Then start
  553. typing in the text.  When you ask to "save" the file, EMACS will really
  554. create the file with the text that you have entered.  From then on, you
  555. can consider yourself to be editing an existing file.
  556.  
  557. It is not easy for you to test editing a file and continue with the
  558. tutorial.  But you can always come back into the tutorial by starting
  559. it over and skipping forward.  So, when you feel ready, you should
  560. try editing a file named "FOO", putting some text in it, and saving
  561. it; then exit EMACS and look at the file to be sure that it worked.
  562.  
  563.  
  564. EXTENDING THE COMMAND SET
  565. -------------------------
  566.  
  567. There are many, many more EMACS commands than could possibly be put on all
  568. the CONTROL and META characters.  EMACS gets around this with the X (eXtend)
  569. command.  There are two forms of this command:
  570.  
  571.      ^X       Character eXtend.  Followed by one character.
  572.      ESC-X    Named command eXtend.  Followed by a long name.
  573.  
  574. These are commands that are generally useful but used less than the commands
  575. you have already learned about.  You have already seen two of them: the file
  576. commands ^X^F to Find and ^X^S to Save.  Another example is the command to
  577. tell EMACS that you'd like to stop editing.  The command to do this is ^X^C.
  578.  
  579. There are many ^X commands.  Right now, the most helpful ones will be
  580.  
  581.      ^X^F   Find file.
  582.      ^X^S   Save file.
  583.      ^X^C   Quit EMACS.  This does not save your files automatically;
  584.               however, if your files have been modified, EMACS asks if
  585.               you really want to quit.  The standard way to save and
  586.               exit is ^X^S ^X^C.
  587.  
  588. Named eXtended commands are commands which are used even less frequently,
  589. or commands which are used only in certain modes.  These commands are
  590. usually called "functions".  An example is the function "apropos", which
  591. prompts for a keyword and then gives the names of all the functions that
  592. are apropos for that keyword.  When you type ESC-X, EMACS prompts you from
  593. the communication line with ":" and you should type the name of the
  594. function you wish to call; in this case, "apropos".  Just type "apr<Space>"
  595. and EMACS will complete the name.  EMACS will ask you for a keyword or
  596. phrase and you type the string that you want information on.
  597.  
  598. >>  Type ESC-X, followed by "apropos<Return>" or "apr<Space>".  Then
  599.     type "file" followed by a <Return>.  Note: ESC-A is equivalent to
  600.     the ECS-X "apropos" command.
  601.  
  602. >>  To remove the "window" that was added, type ^X0 (zero).
  603.  
  604.  
  605. FUNCTION KEYS
  606. -------------
  607.  
  608. By now, you should be familiar with the format and meaning of some of
  609. the more common CONTROL and META commands.  Because several of these
  610. commands are used frequently, they have been bound to the function
  611. keys, which are usually located on the left-hand side of the keyboard
  612. and labelled F1..F10.  By pressing the appropriate function key, one
  613. can replace several keystrokes with a single keystroke, thus saving
  614. you time as you become familiar with their use.
  615.  
  616. The highlighted portion at the top of the screen lists the commands
  617. which are associated with each function key.  Each function key supports
  618. two commands specified by fn or Fn where n = 1, 2,...10.  The default
  619. commands are represented by fn and are defined on the left side of the
  620. screen; these commands are executed by pressing the appropriate function
  621. key.  The secondary commands are represented by Fn and are defined on
  622. the right side of the screen; these commands are executed by pressing
  623. the <Shift> key and the appropriate function key at the same time.
  624.  
  625. >>  Press f1 would ESC.  Note the position of the cursor - "would"
  626.     was located just as if ^S would ESC had been entered.  Enter
  627.     ^S would ESC to see for yourself.
  628.  
  629. >>  Press F1 (<Shift> f1).  Note the different appearance of the screen.
  630.     You have toggled the function key list, i.e., "turned it off".  To
  631.     "turn it on", press F1 again.
  632.  
  633. >>  Try using some of the other function keys to become familiar with
  634.     their use.  NOTE:  Do NOT use f9 with this file as it would save
  635.     any changes you may have made while using the tutorial.
  636.  
  637.  
  638. GETTING MORE HELP
  639. -----------------
  640.  
  641. In this tutorial we have tried to supply just enough information to get
  642. you started using EMACS.  There is so much available in EMACS that it
  643. would be impossible to explain it all here.  However, you may want to
  644. learn more about EMACS since it has numerous desirable features that you
  645. don't know about yet.
  646.  
  647. The most basic HELP feature is the describe-key function which is
  648. available by typing ^X? and then a command character.  EMACS prints
  649. one line in the communication line to tell what function is bound
  650. to that key.
  651.  
  652. >>  Type ^X?^P.  The message in the communication line should
  653.     be something like "^P is bound to previous-line".
  654.  
  655. NOTE:  Multi-character commands such as ^X^Z and ESC-V are also
  656.        allowed after ^X? .
  657.  
  658. The command (ESC-?) will give you help information
  659.  
  660.  
  661.  
  662. CONCLUSION
  663. ----------
  664.  
  665. Remember:  To EXIT use ^X^C.
  666.  
  667. You'll probably find that if you use EMACS for a few days you won't be
  668. able to give it up.  Initially it may give you trouble.  But remember,
  669. this is the case with any editor, especially one that can do many, many
  670. things - and EMACS can do practically everything.
  671.  
  672.  
  673.