home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / UE3112.ZIP / mehelp1.txt < prev    next >
Text File  |  1991-12-16  |  38KB  |  1,224 lines

  1.     [ENTER]    Picks a topic      [PG UP] Last Screen        Cursor keys
  2.       [F10]    Exit Help    [PG DOWN] Next Screen        are active
  3.        [F6]    Index           [HOME] Main Menu
  4. < >
  5. [ENTER]    Picks a topic     [PG UP] Last Screen   [I] Index       Cursor keys
  6.   [F10]    Exit Help      [PG DOWN] Next Screen   [HOME] Main Menu       are active
  7. < >
  8. =>Main Menu
  9. NEXT[The Basics] PREV[Main Menu]
  10.  
  11.  
  12.     < > The Basics            < > Keystrokes 
  13.  
  14.     < > Getting at Files        < > Issuing Commands
  15.  
  16.     < > Searching and Replacing    < > Command List
  17.  
  18.     < > Regions            < > Customizing Command Keys
  19.  
  20.     < > Cutting and Pasting        < > Using the Mouse
  21.  
  22.     < > Buffers            < > Modes of Operation
  23.  
  24.     < > Windows            < > The Outside World
  25.  
  26.     < > Screens            < > Advanced Text Editing
  27.  
  28.  
  29.  
  30. =>Commands
  31. =Command List
  32. =>Macros
  33. =Creating New Commands
  34. =>Bindings
  35. =Customizing Command Keys
  36. =>Keyboard Macros
  37. =Repetitive Tasks
  38. =>Pages
  39. =Creating New Commands
  40. =>The Basics
  41. NEXT[Alternative Basic Keys] PREV[Main Menu]
  42.  
  43.     MicroEMACS is a very powerful tool to use for editing text files.
  44.     It has MANY MANY commands, options and features to let you do just
  45.     about anything you can imagine with text. But don't let this
  46.     apparent complexity keep you from using it.... MicroEMACS can also
  47.     be very simple.
  48.  
  49.     To start editing files, all the keys you really need to know are:
  50.  
  51.           [CSR UP]        These keys let you move
  52.              |            around in the your file
  53.      [CSR <-]  <--->  [CSR ->]
  54.              |
  55.          [CSR DOWN]
  56.  
  57.            [F9]         This saves your file
  58.  
  59.            [F10]        This leaves MicroEMACS
  60.  
  61.                         [PG DOWN] for other basic keys
  62. =>Alternative Basic Keys
  63. NEXT[Glossary of Terms] PREV[The Basics]
  64.  
  65.     On systems that do not have special function and cursor keys,
  66.     MicroEMACS works by using control keys. On such a system these
  67.     keys perform basic functions:
  68.  
  69.         ^P        Move upward
  70.     ^B            Move backward
  71.             ^F    Move forward
  72.         ^N        Move downward
  73.  
  74.         ^X^S        Saves your file
  75.  
  76.         ^X^C        Exits MicroEMACS
  77.  
  78.     An up arrow before the key means to hold the CTRL key down and
  79.     press the next character. For example, to exit MicroEMACS, hold
  80.     down the CTRL key and strike X and then C.
  81.  
  82.     Press [PG DOWN] to learn about the terms used within MicroEMACS
  83.  
  84. =>Glossary of Terms
  85. NEXT[Glossary 2] PREV[Alternative Basic Keys]
  86.  
  87.     MicroEMACS uses a number of defined terms which will help you
  88.     understand the rest of this help document.
  89.  
  90.     < > COMMANDS    These are built in functions that represent
  91.             basic things that MicroEMACS does. For example,
  92.             the cursor up key activates the "previous-line"
  93.             command which moves the cursor up to the line
  94.             of text immediately before the current line.
  95.  
  96.     < > BINDINGS    A binding is a link between a sequence of keys
  97.             and a command. The command previous-line is bound
  98.             to the cursor up key, and to the ^P key. Pressing
  99.             a key sequence causes the command to which it is
  100.             bound to execute.
  101.  
  102.  
  103.  
  104.                     [PG DOWN] for more terms
  105.                         Select term for more info
  106. =>Glossary 2
  107. NEXT[Glossary 3] PREV[Glossary of Terms]
  108.  
  109.         META KEY    is the key used to start many commands. On most
  110.             keyboards this is the [ESC] key, but many times
  111.             it is rebound/changed to the key in the upper
  112.             left corner of the keyboard. This is often the
  113.             grave accent symbol.
  114.  
  115.     < > BUFFERS        These are areas of memory set aside to hold text.
  116.             Each buffer has a buffer name which is used to
  117.             refer to it, and a file name from which it has
  118.             been read or where it will be written.
  119.  
  120.     < > WINDOWS        Sections of the current screen which display a
  121.             portion of a buffer. More than one window may be
  122.             visible at a time. Multiple windows split the
  123.             screen horizontally.
  124.  
  125.  
  126.                     [PG DOWN] for more terms
  127.                         Select term for more info
  128. =>Glossary 3
  129. NEXT[Glossary 4] PREV[Glossary 2]
  130.  
  131.     < > SCREENS        are collection of windows. On a older text style
  132.             system, one screen is displayed at a time. On
  133.             a newer window based system, like OS/2, the
  134.             Macintosh or MicroSoft Windows, each operating
  135.             system window can display a different MicroEMACS
  136.             screen.
  137.  
  138.         MODE LINE    is the line at the bottom of each window naming
  139.             the buffer being displayed, along with its file
  140.             name. Also the active modes of the window are shown.
  141.  
  142.         COMMAND LINE    is the line at the bottom of the each screen
  143.             where you give more information to some commands.
  144.  
  145.  
  146.  
  147.  
  148.                     [PG DOWN] for more terms
  149.                         Select term for more info
  150. =>Glossary 4
  151. NEXT[Glossary 5] PREV[Glossary 3]
  152.  
  153.     < > MACROS        are programs written in the MicroEMACS language
  154.             which let you automate repetitive editing tasks.
  155.             These help pages are being run by a relatively
  156.             simple, but powerful MicroEMACS macro.
  157.  
  158.     < > KEYBOARD MACROS
  159.  
  160.             These are remembered sequences of keystrokes which
  161.             can be used to greatly speed quick and dirty
  162.             repetitive editing.
  163.  
  164.     < > PAGES        These are groups of macros which have been written
  165.             to handle a particular editing task, and which have
  166.             been packaged to be available from the MicroEMACS
  167.             startup file. These macros are bound to shifted
  168.             function keys.
  169.  
  170.                     [PG DOWN] for more terms
  171.                         Select term for more info
  172. =>Glossary 5
  173. NEXT[Main Menu] PREV[Glossary 4]
  174.  
  175.     < > POINT        The position in the text of the current window
  176.             of the cursor. The point is considered between
  177.             the character the cursor rests on and the one
  178.             immediately behind it.
  179.  
  180.     < > MARK        Position in the current buffer which delimits
  181.             the beginning of a region. Various commands
  182.             operate on text from the MARK to the POINT,
  183.             or move the current point to the MARK.
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.                     [PG DOWN] to return to Main Menu
  193.                         Select term for more info
  194. =>Modes of Operation
  195. NEXT[Main Menu] PREV[Main Menu]
  196.  
  197.     Modes determine how MicroEMACS will treat text. Modes effect the
  198.     contents of a buffer. Global modes determine the modes of newly
  199.     created buffers.
  200.  
  201.     ^X-M (add-mode)            Adds a mode to the current buffer
  202.     ^X-^M (delete-mode)        Removes a mode from the current buffer
  203.     M-M (add-global-mode)        Adds a global mode
  204.     M-^M (delete-global-mode)    Removes a global mode
  205.  
  206.     These are some of MicroEMACS's modes:
  207.  
  208.     < >  ASAVE mode        < >  EXACT mode        < >  REP mode
  209.  
  210.     < >  CMODE mode        < >  MAGIC Mode        < >  VIEW mode
  211.  
  212.     < >  CRYPT mode        < >  OVER mode        < >  WRAP mode
  213.  
  214.  
  215.  
  216. =>ASAVE Mode
  217. NEXT[Modes of Operation] PREV[Modes of Operation]
  218.  
  219.     ASAVE mode            Automatically Save
  220.  
  221.     When this mode is on, MicroEMACS automatically saves the contents
  222.     of your current buffer to disk every time you have typed 256
  223.     characters. The buffer is saved to the file named on the mode line
  224.     of the buffer. This mode assures you that you will loose very
  225.     little text should your computer crash while you are editing. Be
  226.     sure you are willing to have your original file replaced
  227.     automatically before you add this mode.
  228.  
  229.     The frequency of saving can be altered by changing the contents of
  230.     the $asave environment variable. Use the set command like this:
  231.  
  232.     ^X-A $asave 2048
  233.  
  234.         to change MicroEMACS to automatically save the current
  235.     buffer after every 2048 characters are typed.
  236.  
  237.  
  238.  
  239. =>CMODE Mode
  240. NEXT[Modes of Operation] PREV[Modes of Operation]
  241.  
  242.     CMODE mode            Editing C programs
  243.  
  244.     This mode is specifically for editing programs written in the C
  245.     language. When CMODE is active, MicroEMACS will try to anticipate
  246.     what indentation is needed when the <NL> key is used. It will
  247.     always bring a pound sign (#) with only leading white space back
  248.     to the left margin. It will attempt to flash the proper character
  249.     matching any close symbol as the close symbol is typed.
  250.  
  251.     The standard startup files for MicroEMACS will install a macro
  252.     which checks any file being read into MicroEMACS and sets CMODE if
  253.     the file ends with a .c or .h extension.
  254.  
  255.     M-^F    (goto-matching-fence)
  256.  
  257.     Place the point on any brace, bracket, or parenthesis and use
  258.     this command, MicroEMACS will jump to the matching character. If
  259.     there is none, a beep will sound.
  260.  
  261.  
  262. =>CRYPT Mode
  263. NEXT[Modes of Operation] PREV[Modes of Operation]
  264.  
  265.     CRYPT mode            Encryption
  266.  
  267.     For files of a sensitive nature, MicroEMACS can encrypt text as it
  268.     is written or read. When you write out text, if CRYPT mode is
  269.     active and there is no encryption key, emacs will ask:
  270.  
  271.     Encryption String:
  272.  
  273.     Type in a word or phrase of at least five characters or more for
  274.     the encryption to use. If you look at the file which is then
  275.     written out, all the printing characters have been scrambled. To
  276.     read such a file back in, call up MicroEMACS like this:
  277.  
  278.     emacs -k <filename>
  279.  
  280.         and you will be asked the encryption key before the file is
  281.     read. The encryption algorithm is a Beaufort Cipher with a
  282.     variant key. This is reasonably difficult to decrypt.
  283.  
  284.  
  285. =>EXACT Mode
  286. NEXT[Modes of Operation] PREV[Modes of Operation]
  287.  
  288.     EXACT mode            Character Case during Searches
  289.  
  290.     Normally, when using search or replace commands, MicroEMACS
  291.     ignores the case of letters for comparisons. With EXACT mode set,
  292.     the case of the characters must be the same for a match to occur.
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307. =>MAGIC Mode
  308. NEXT[More MAGIC] PREV[Modes of Operation]
  309.  
  310.     MAGIC mode            Regular Expression Pattern Matching
  311.  
  312.     Normally, MicroEMACS uses the string you type in response to a
  313.     search or replace command as the string to find.  When magic mode
  314.     is enabled, MicroEMACS considers the string you type as a pattern
  315.     or template to use in finding a string to match.  Many characters
  316.     in this template have special meaning:
  317.  
  318.     .        any single character, except newline.
  319.     [<set>]        any single character from the bracketed set.
  320.     ^        beginning of a line.
  321.     $        end of a line.
  322.     \        the next character has no special meaning,
  323.                take the next character literally
  324.                (unless it is a parenthesis)
  325.  
  326.  
  327.                     Press [PG DOWN] for more magic
  328.  
  329. =>More MAGIC
  330. NEXT[Modes of Operation] PREV[MAGIC Mode]
  331.  
  332.     Here are some more special characters in MAGIC mode:
  333.  
  334.     ?        the preceding character (or . or [<set>]) is optional.
  335.     *        the preceding character (or . or [<set>]) matches
  336.             zero to many times.
  337.     +        the preceding character (or . or [<set>]) matches
  338.             one to many times.
  339.     \(<group>\)    define a group for the replacement string, or for
  340.             the &GROUP function.
  341.  
  342.     Some characters in the replacement string can have special meanings:
  343.  
  344.     &        insert all of the text matched by the search.
  345.     \        the next character has no special meaning (but
  346.             see groups...)
  347.     \1 to \9    insert the text defined by the nth group in the
  348.             search string.
  349.  
  350.  
  351. =>OVER Mode
  352. NEXT[Modes of Operation] PREV[Modes of Operation]
  353.  
  354.     OVER mode            Overstrike Mode
  355.  
  356.     MicroEMACS is normally in what many other editors consider
  357.     "insert" mode. This means when you strike a character, MicroEMACS
  358.     makes room for that character in the current line, inserting it
  359.     between the existing characters. In OVER mode, MicroEMACS instead
  360.     overwrites characters, replacing the existing character under the
  361.     point with the character you type. OVER mode will maintain the
  362.     position of text lined up using tabs while replacing existing
  363.     text.
  364.  
  365.     Be wary editing Japanese KANJI characters while in this mode, it
  366.     is possible to overwrite the first byte of the character, leaving
  367.     the second byte meaningless and alone.
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375. =>WRAP Mode
  376. NEXT[Modes of Operation] PREV[Modes of Operation]
  377.  
  378.     WRAP mode            Wrap entered text
  379.  
  380.     This mode causes the point and the previous word to jump down to
  381.     the next line when you type a space and are beyond the current
  382.     fill column. This is normally set to column 72, allowing you to
  383.     enter text non-stop on a standard screen without bothering to use
  384.     the return key.
  385.  
  386.     To change the column that text is wrapped past, use the set
  387.     command to change the value of the $fillcol environment variable,
  388.     like this:
  389.  
  390.     ^X-A $fillcol <new value>
  391.  
  392.     MicroEMACS will then wrap words past column <new value>.
  393.  
  394.  
  395.  
  396.  
  397.  
  398. =>VIEW Mode
  399. NEXT[Modes of Operation] PREV[Modes of Operation]
  400.  
  401.     VIEW mode            No Changes Permitted
  402.  
  403.     When in VIEW mode, no command which would change the text is
  404.     allowed. If you attempt any such command, or try to type in any
  405.     text, MicroEMACS responds with:
  406.  
  407.     [Key Illegal in View Mode]
  408.  
  409.     This mode is very useful when you want to just look at some
  410.     existing text, as it will prevent you from changing that text.
  411.     Also MicroEMACS will not attempt a file lock if a file is read in
  412.     VIEW mode, allowing you to view files which you don't have write
  413.     access to, or other people have locked. To read a file in view
  414.     mode from the command line, type:
  415.  
  416.     emacs -v <filename>
  417.  
  418.  
  419.  
  420.  
  421.  
  422. =>REP Mode
  423. NEXT[Modes of Operation] PREV[Modes of Operation]
  424.  
  425.     REP mode            Replace Mode
  426.  
  427.     MicroEMACS is normally in what many other editors consider
  428.     "insert" mode. This means when you strike a character, MicroEMACS
  429.     makes room for that character in the current line, inserting it
  430.     between the existing characters. In REP mode, MicroEMACS instead
  431.     replaces the existing character under the point with the
  432.     character you type. REP mode will not maintain the position of
  433.     text which takes up multiple columns using tabs since it will
  434.     replace a single tab character with the typed character which will
  435.     not take up the same space on screen.
  436.  
  437.     However, Japanese KANJI characters will correctly replace and be
  438.     replaced in this mode as the two bytes will be considered together
  439.     when either style character is used.
  440.  
  441.  
  442.  
  443.  
  444.  
  445. =>Keystrokes
  446. NEXT[Main Menu] PREV[Main Menu]
  447.  
  448.     All the MicroEMACS documentation talks about commands and the
  449.     keystrokes needed to use them. Each MicroEMACS command has a name,
  450.     and most of them are bound to a sequence of keys. Whenever we
  451.     refer to a command we will display it's binding (the keys needed
  452.     to activate the command) and the name of the command in
  453.     parenthesis.
  454.  
  455.     Keystrokes for commands include one of several prefixes, and a
  456.     command character. Command keystrokes look like these:
  457.  
  458.         ^A    hold down <Ctrl>, press 'A'
  459.         M-A    press the META key, release it and press 'A'
  460.         ^X-A    Hold <Ctrl>, press 'X', release, press 'A'
  461.         ^X-^A    hold <Ctrl>, press 'X', release, hold <Ctrl>, press 'A'
  462.         S-FN1    hold down <SHIFT>, press function key 1
  463.         A-A    hold down <Alt>, press 'a'
  464.         FN^1    hold down <Ctrl>, press function key 1
  465.  
  466.  
  467. =>Searching and Replacing
  468. NEXT[Other Searches] PREV[Main Menu]
  469.  
  470.     Commands for searching for and replacing strings come in a number
  471.     of different flavors. The simplest commands is:
  472.  
  473.     ^S (search-forward)
  474.  
  475.     Typing this command results in a prompt like this:
  476.  
  477.     Search []<META>:
  478.  
  479.     Any text shown in the square brackets will be searched for if you
  480.     don't type in any string. This is called the default search
  481.     string. The key shown in the angle brackets is the key you type to
  482.     end the search string, which is called the search terminator key.
  483.     Normally, it is the META, or ESCape key. This lets you to use the
  484.     return key (<NL>) in a search string. So if you want to find the
  485.     string "mystic", you would type the word, and then ESCape key. The
  486.     point would jump to the end of the next occurrence of "mystic",
  487.     or, if there are none, MicroEMACS displays "not found".
  488.  
  489. =>Other Searches
  490. NEXT[Replacements] PREV[Searching and Replacing]
  491.  
  492.     ^R (search-reverse)
  493.  
  494.     This works like ^S except that it searches backwards through the
  495.     text for the last occurrence of the string. It leaves the point at
  496.     beginning of the string found.
  497.  
  498.     A-S (hunt-forward)
  499.  
  500.     This command searches for the next occurrence of the last search
  501.     string entered, without prompting for another string. To use this
  502.     command, hold down the ALT key and type 's'. This keystroke may
  503.     not be available on all keyboards.
  504.  
  505.     A-R (hunt-backwards)
  506.  
  507.     This searches backwards for the last occurrence of the last search
  508.     string entered. This also is only available on some keyboards.
  509.  
  510.  
  511. =>Replacements
  512. NEXT[Main Menu] PREV[Other Searches]
  513.  
  514.     M-R (replace-string)
  515.  
  516.     This will prompt for two strings. The first string is replaced
  517.     with the second from the current position to the end. Both strings
  518.     may have defaults. If you want to replace a string with nothing,
  519.     and there is a default on the replacement string, striking ^K will
  520.     override the default and enter a blank string.
  521.  
  522.     M-^R (query-replace-string)
  523.  
  524.     Otherwise like replace-string, this command prompts at each
  525.     string. Typing 'Y' replaces the current string, 'N' skips the
  526.     current string, '!' replaces the current and all following strings
  527.     without asking, 'U' skips to the previous replacement and undoes
  528.     it, '^G' aborts the command, leaving the point at the current
  529.     word, '.' aborts and moves the point back to where the command
  530.     was originally given, '?' lists the available options.
  531.  
  532.  
  533.  
  534. =>Regions
  535. NEXT[Main Menu] PREV[Main Menu]
  536.  
  537.     Regions are used in MicroEMACS to specify what text is acted on by
  538.     many commands. A region is defined as all the text between the
  539.     point, and the last placed MARKed. To define a region:
  540.     
  541.  
  542.     1) Move the point to the beginning of the text you
  543.        want to effect
  544.  
  545.     2) Use the M-<space> (set-mark) command to position
  546.        the MARK at the current point
  547.  
  548.     3) Move the point to the end of the text you want to effect
  549.  
  550.     At this time, the text between the MARK and the POINT is the
  551.     current region which will be effected by many commands. Regions
  552.     can be defined backwards as well as forwards, and can include the
  553.     entire text, or as little as one character.
  554.  
  555.  
  556.  
  557.  
  558. =>Cutting and Pasting
  559. NEXT[Copying Text] PREV[Main Menu]
  560.  
  561.     To move text from one place to another:
  562.     
  563.     1) Move to the beginning of the text you want to move.
  564.     
  565.     2) Set the mark here with the M-<space> (set-mark) command.
  566.     
  567.     3) Move the point to the end of the text.
  568.     
  569.     4) Use the ^W (kill-region) command to delete the region you just
  570.        defined. The text will be saved in the "kill buffer".
  571.     
  572.     5) Move the point to the place you want the text to appear.
  573.     
  574.     6) Use the ^Y (yank) command to copy the text from the kill buffer
  575.        to the current point.
  576.     
  577.     Repeat steps 5 and 6 to place more copies of the same text.
  578.  
  579.                     [PG DOWN] for more info
  580.  
  581. =>Copying Text
  582. NEXT[Main Menu] PREV[Cutting and Pasting]
  583.  
  584.     Copying text, without deleting the original is just like cutting
  585.     and pasting it, except that in place of the ^W (kill-region)
  586.     command, you use the M-W (copy-region) command which copies the
  587.     current region into the kill buffer without deleting it.
  588.     
  589.     The kill buffer accumulates and text which is deleted by ^W, M-W
  590.     or a number of other delete commands. If more than one delete
  591.     command is used in a row, all the text from all the commands will
  592.     be in the kill buffer. Using any command between deletes causes
  593.     the kill buffer to discard earlier deletes and just hold the most
  594.     recent deletions.
  595.     
  596.     Since there is only one kill buffer, you can switch between
  597.     windows, screens and files to copy text from one file to another.
  598.     There is no limit to the amount of text that can be stored in the
  599.     kill buffer except that of the memory of the computer running
  600.     MicroEMACS. Extremely large kills will take a few seconds.
  601.  
  602.  
  603.  
  604. =>Buffers
  605. NEXT[Buffer Commands] PREV[Main Menu]
  606.  
  607.     A buffer is where MicroEMACS stores text. Normally that text is
  608.     read from a file, and is visible in a editing window. But text stored
  609.     in buffers can also be MicroEMACS macros, temporary storage for
  610.     macros, or lists of screens, files, buffers, variables, functions
  611.     or bindings created by MicroEMACS commands. Buffer commands include:
  612.     
  613.     ^X-B    (select-buffer)
  614.  
  615.     This prompt for a buffer name, and then makes that buffer the one
  616.     visible in the active window. If the buffer does not yet exist, it
  617.     will create it.
  618.  
  619.     ^X-K    (delete-buffer)
  620.  
  621.     MicroEMACS attempts to discard the named buffer, reclaiming the
  622.     memory it occupied. It will not allow the destruction of a buffer
  623.     which is currently visible through any window on any screen.
  624.  
  625.                     [PG DOWN] for more buffer commands
  626. =>Buffer Commands
  627. NEXT[Memory Usage] PREV[Buffers]
  628.  
  629.     ^X-^B    (list-buffers)
  630.  
  631.     This pops up a list of all the buffer names, the file the buffer was
  632.     read from, the size, and the active modes for each buffer. Using a
  633.     numeric argument (M-<n>) with the command will list hidden buffers
  634.     used by MicroEMACS and its macros.
  635.  
  636.     A '@' in column one shows that a file has already been read into a
  637.     buffer. A '*' in column two means that the buffer has been changed
  638.     since the last time it was written to disk. A '#' in column three
  639.     indicates the file was to large to read into memory and was truncated.
  640.  
  641.     ^X-X    (next-buffer)
  642.  
  643.     This command causes MicroEMACS to switch the active window to
  644.     display the next buffer in the buffer list. This can be used to
  645.     easily step through all the buffers.
  646.  
  647.                 [PG DOWN] for info on buffers memory usage
  648. =>Memory Usage
  649. NEXT[Main Menu] PREV[Buffer Commands]
  650.  
  651.     The only limit to the number of buffers is the memory of your
  652.     computer. All the buffers, text, screens and windows use memory
  653.     for storage. On UNIX and other machines with virtual memory there
  654.     is no limit to the number and size of files you edit. Under MSDOS,
  655.     the AMIGA, the Atari ST, the HP150 and other microcomputers you
  656.     can estimate the memory used by adding up the size of all the
  657.     files you want to edit simultaneously, multiply by 1.4, and add
  658.     170K for the size of MicroEMACS. This results in the amount of
  659.     free memory needed to edit these files.
  660.  
  661.     Under a MSDOS machine with 574K free from dos, you can edit files
  662.     totaling 288K in size.
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670. =>Windows
  671. NEXT[Window Commands] PREV[Main Menu]
  672.  
  673.     MicroEMACS uses windows to display and allow you to edit the
  674.     contents of buffers. A single screen will show one or more
  675.     windows, separated by a modeline which describes the contents of
  676.     the window above it. Here are some window commands:
  677.  
  678.     ^X-2    (split-current-window)
  679.  
  680.     This command splits the current window into two windows. Both
  681.     windows view the current buffer at the current POINT.
  682.  
  683.     ^X-O    (next-window)    ^X-P    (previous-window)
  684.  
  685.     These commands make the next window down, or the previous window
  686.     upward the current window. MicroEMACS highlights the mode line of
  687.     the currently active window, and places the machine's cursor at
  688.     the POINT.
  689.  
  690.                     [PG DOWN] for more window commands
  691.  
  692.  
  693. =>Window Commands
  694. NEXT[More Window Commands] PREV[Windows]
  695.  
  696.     ^X-1    (delete-other-windows)
  697.  
  698.     This command deletes all other windows but the active window.
  699.  
  700.     ^X-0    (delete-window)
  701.  
  702.     This removes the active window from the screen, giving its space
  703.     to one of the adjacent windows. It does not discard or destroy any
  704.     text, just stops looking at that buffer. You can not delete the
  705.     last window on the screen.
  706.  
  707.     ^X-^N    (move-window-down)    ^X-^P    (move-window-up)
  708.  
  709.     These commands moves the windows view into it's buffer up or down
  710.     by one line. Preceding the command with M-<n> will move the
  711.     window's view up or down by <n> lines.
  712.  
  713.                 [PAGE DN] for even more window commands
  714.  
  715. =>More Window Commands
  716. NEXT[Main Menu] PREV[Window Commands]
  717.  
  718.     M-<n> ^X-W    (resize-window)
  719.  
  720.     Type META, followed by a number, and then the resize-window
  721.     command, ^X-W. This attempts to change the length of the current
  722.     window (and it's mode line) to the number of lines you typed.
  723.     This may not always be possible depending on the size of the
  724.     other windows.
  725.  
  726.     ^X-^    (grow-window)        ^X-^Z    (shrink window)
  727.  
  728.     These commands attempt to change the size of the active window by
  729.     one line.
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737. =>Screens
  738. NEXT[Screen Commands] PREV[Main Menu]
  739.  
  740.     A Screen is a collection of windows and a command line which are
  741.     displayed together. On some non-graphically oriented systems, such
  742.     as UNIX, only one screen is displayed at one time. Under other
  743.     graphical oriented operating systems like WINDOWS 3, X-WINDOWS,
  744.     the Macintosh or the Amiga, each screen is displayed in an
  745.     operating system "window". Notice that the MicroEMACS usage of the
  746.     word window is different from the meaning used in these graphical
  747.     systems.
  748.  
  749.         MicroEMACS term        OS term
  750.  
  751.             Window    ==    Pane
  752.             Screen    ==    Window
  753.  
  754.     Each screen has its own set of windows and its own command line.
  755.     Switching from one screen to another will preserve the window
  756.     setup, the colors and the buffers being displayed.
  757.  
  758.                     [PG DOWN] for screen commands
  759. =>Screen Commands
  760. NEXT[More Screen Commands] PREV[Screens]
  761.  
  762.     Under MSDOS, MicroEMACS uses a simple windowing system which
  763.     can display more than one screen at once. Look at the section
  764.     on using the mouse to learn how these screens can be manipulated.
  765.  
  766.     A-F    (find-screen)
  767.  
  768.     This prompts you for a screen name. If it does not exist, it is
  769.     created. On text systems, this screen is displayed. On graphic
  770.     systems, the OS window containing this screen is brought to front.
  771.     Clicking on an existing window will also switch to that screen.
  772.  
  773.     A-C    (cycle-screen)
  774.  
  775.     This command takes the rearmost screen, the last screen in
  776.     the screen list, and moves it to the front.
  777.  
  778.  
  779.                 [PG DOWN] for more screen commands
  780.  
  781. =>More Screen Commands
  782. NEXT[Main Menu] PREV[Screen Commands]
  783.  
  784.     A-D    (delete-screen)
  785.  
  786.     This command deletes any screen which is not the active screen.
  787.     Buffers being displayed on that screen are not discarded. On
  788.     graphic systems, the screen's OS window is closed. Clicking on
  789.     a close gadget will activate this command.
  790.  
  791.     A-B    (list-screens)
  792.  
  793.     A pop up buffer containing a list of all current named screens
  794.     and the names of the buffers visible in the windows on that screen
  795.  
  796.  
  797.  
  798.  
  799.  
  800.                 [PG DOWN] to return to Main Menu
  801.  
  802.  
  803. =>Getting at Files
  804. NEXT[More File Commands] PREV[Main Menu]
  805.  
  806.     ^X-^F    (find-file)
  807.  
  808.     This command causes MicroEMACS to prompt you for the name of a
  809.     file you want to edit. If that file is already somewhere in the
  810.     editor, it brings it up in the current window. If it is not, it
  811.     searches for it on disk. If it exists, it creates a new buffer
  812.     and reads the contents of the file into it. If it does not yet
  813.     exist, it simply creates a new buffer. In any case the buffer
  814.     is brought up in the current window. If you press a space or ESC
  815.     while typing in the filename, MicroEMACS will attempt to complete
  816.     the name for you.
  817.  
  818.     ^X-^S    (save-file)    [also F9 on some systems]
  819.  
  820.     If the text in the current buffer has been changed since it has
  821.     been read, MicroEMACS will write the changed text back to the
  822.     disk file it came from.
  823.  
  824.                     [PG DOWN] for more file commands
  825. =>More File Commands
  826. NEXT[Yet More File Commands] PREV[Getting at Files]
  827.  
  828.     ^X-^R    (read-file)
  829.  
  830.     Use this command to read a file into the current buffer, replacing
  831.     its original text with that from the file. MicroEMACS' concept of
  832.     the current file name will not change, so make sure that replacing
  833.     the text in the original file with that from the read one is what
  834.     you are intending when you use this command.
  835.  
  836.     ^X-^W    (write-file)
  837.  
  838.     This writes the text in the current buffer to a file with a name
  839.     different from what MicroEMACS thought it was originally. This
  840.     does change MicroEMACS concept of the current buffer's file name.
  841.  
  842.     M-Z    (quick-exit)
  843.  
  844.     This special exit command leaves MicroEMACS, but only after
  845.     writing out all changed buffers.
  846.                         [PG DOWN] for yet more
  847. =>Yet More File Commands
  848. NEXT[Main Menu] PREV[More File Commands]
  849.  
  850.     ^X-^I    (insert-file)
  851.  
  852.     This will ask you for the name of a file to insert into the
  853.     current buffer, at the point.
  854.  
  855.     ^X-^A    (append-file)
  856.  
  857.     Similar to write-file, this command writes out the current buffer
  858.     to the named file. But rather than replacing its contents, it
  859.     appends it to the end of the existing text in the file. This does
  860.     not change the filename of the current buffer. This is handy for
  861.     building log files.
  862.  
  863.     ^X-N    (change-file-name)
  864.  
  865.     This command lets you directly change the filename associated
  866.     with the current buffer.
  867.                     [PG DOWN] to return to main menu
  868.  
  869. =>Issuing Commands
  870. NEXT[Numeric Arguments] PREV[Main Menu]
  871.  
  872.     Commands within MicroEMACS have descriptive names which you can
  873.     use to invoke them, or bind them to a keystroke. To execute one
  874.     of these commands, use the execute-named-command (M-X) command.
  875.     A colon (:) will appear on the command line. Type in the name of
  876.     the command and strike <enter>. The command will execute. If you
  877.     type a <space> or the META key while typing, MicroEMACS will
  878.     attempt to complete the name for you.
  879.  
  880.     To get a list of ALL the commands in your current MicroEMACS, type:
  881.  
  882.         M-X describe-bindings
  883.  
  884.     This will display a paged list of all legal commands and the
  885.     keystrokes to use to invoke them.
  886.  
  887.  
  888.  
  889.                 [PG DOWN] for more info on commands
  890.  
  891. =>Numeric Arguments
  892. NEXT[Command Lines] PREV[Issuing Commands]
  893.  
  894.     Some commands take a number as an argument. For example, to move
  895.     to a particular line within a file, you use the goto-line (M-G)
  896.     command. To go to a particular line, precede the command with
  897.     a number by striking the META key, typing a number, and then
  898.     the keys bound to the command. To go to the 123rd line of a file:
  899.  
  900.         <META>123<META>g
  901.  
  902.     If a command does not need a numeric argument, it is taken as
  903.     a repeat count. This also works when typing any character!
  904.     To make a line of 50 dashes type:
  905.  
  906.         <META>50-
  907.  
  908.     --------------------------------------------------
  909.  
  910.  
  911.                 [PG DOWN] for more info on using commands
  912.  
  913. =>Command Lines
  914. NEXT[Macros] PREV[Numeric Arguments]
  915.  
  916.     Execute-command-line (M-^X) lets you type in a MicroEMACS
  917.     command line. MicroEMACS macros are made from sequences of
  918.     these command lines. A command line has three parts:
  919.  
  920.         <numeric argument> <command> <arguments>
  921.  
  922.     To insert the string <*><*><*> at the point, type M-^X and then:
  923.  
  924.         3 insert-string "<*>"
  925.  
  926.     or to set the current fill column to 64, type M-^X and then:
  927.  
  928.         64 set-fill-column
  929.  
  930.  
  931.  
  932.  
  933.                 [PG DOWN] to learn more about using macros
  934.  
  935. =>Customizing Command Keys
  936. NEXT[Unbinding Keys] PREV[Main Menu]
  937.  
  938.     MicroEMACS lets you decide what keys activate what command!
  939.  
  940.     M-K    (bind-to-key)
  941.  
  942.     prompts you for a command name, and a keystroke to bind to that
  943.     command. A keystroke can be bound only to one command at a time,
  944.     so when you bind it, its old definition is forgotten. This command
  945.     can be used to permanently change your key bindings by placing it
  946.     at the end of your emacs.rc (.emacsrc under UNIX) file. For example,
  947.     if you have one of those nasty keyboards with a tilde (~) in the
  948.     upper left corner, where ESC should be, and you want the tilde
  949.     to become the META key, add this line to the end of emacs.rc:
  950.  
  951.         bind-to-key meta-prefix ~
  952.  
  953.     You can use this command to make MicroEMACS feel similar to any
  954.     other editor by changing what keys activate which commands.
  955.  
  956.                 [PG DOWN] for more binding commands
  957. =>Unbinding Keys
  958. NEXT[Main Menu] PREV[Customizing Command Keys]
  959.  
  960.     M-^K    (unbind-key)
  961.  
  962.     This prompts you for a key, and then disconnects if from
  963.     executing any command. Useful if you have a function key you
  964.     keep tripping over, or if you are trying to make MicroEMACS look
  965.     like a much more minimalistic editor.
  966.  
  967.     (describe-bindings)
  968.  
  969.     Executed with the M-X command, this command pops up a list of
  970.     all MicroEMACS commands, each with all the keys which are currently
  971.     bound to it.
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.                 [PG DOWN] to return to Main Menu
  979.  
  980. =>Advanced Text Editing
  981. NEXT[Main Menu] PREV[Main Menu]
  982.  
  983.     Learn About
  984.  
  985.  
  986.         < >    Paragraphs
  987.  
  988.         < >    Words
  989.  
  990.         < >    Case Control
  991.  
  992.         < >    Controlling Tabs
  993.  
  994.         < >    Repetitive Tasks
  995.  
  996.         < >    Narrowing Your Scope
  997.  
  998.         < >    Creating New Commands
  999.  
  1000.                 [PG UP] to return to Main Menu
  1001.     
  1002. =>The Outside World
  1003. NEXT[More External Commands] PREV[Main Menu]
  1004.  
  1005.     These commands let you interact with the Operating System
  1006.  
  1007.     ^X-^C    (exit-emacs)
  1008.  
  1009.     Most important of commands, you use this the exit MicroEMACS.
  1010.     If you have any buffers with text that has been changed, you
  1011.     will be asked if you are sure you want to leave.
  1012.  
  1013.     ^X-!    (shell-command)
  1014.  
  1015.     Call up the operating system shell to execute a line which
  1016.     MicroEMACS will prompt you for. If this is used interactively,
  1017.     the editor will politely wait for you to press a key on the way
  1018.     back in so you can view the results of your command.
  1019.  
  1020.  
  1021.                 [PG DOWN] for more external commands
  1022.  
  1023.     
  1024. =>More External Commands
  1025. NEXT[Main Menu] PREV[The Outside World]
  1026.  
  1027.     ^X-$    (execute-program)
  1028.  
  1029.     This attempts to call up an external program directly, not through an
  1030.     intervening shell. Without the shell, the call is faster and uses less
  1031.     memory, but it can not be used to execute internal shell commands. (You
  1032.     can not use it for the "DIR" command under MSDOS!)
  1033.  
  1034.     ^X-@    (pipe-command)
  1035.  
  1036.     This command uses the shell to execute a program, but rather than
  1037.     displaying what the program prints, it attempts to place it in a
  1038.     buffer to let you edit or save it.
  1039.  
  1040.     ^X-#    (filter-buffer)
  1041.  
  1042.     The contents of the current window are fed to a filter program
  1043.     (like SORT) and the results replace the original.
  1044.  
  1045.                 [PG DOWN] to return to the main menu
  1046. =>Paragraphs
  1047. NEXT[More Paragraph Commands] PREV[Advanced Text Editing]
  1048.  
  1049.     MicroEMACS defines a paragraph as any lines of text surrounded
  1050.     by blank lines. A line starting with a tab or one of the characters
  1051.     in the $fmtlead variable is considered the first line of a paragraph.
  1052.  
  1053.     If you are editing text destined for use by a text formatter, set
  1054.     $fmtlead to the command character for that formatter. That will
  1055.     prevent MicroEMACS from formatting what should be lines of commands
  1056.     meant for the formatter. If, for example, you are editing SCRIBE
  1057.     source, use the ^X-A (set) command to set $fmtlead to "@".
  1058.  
  1059.     Commands that manipulate paragraphs include:
  1060.  
  1061.     M-N    (next-paragraph)
  1062.  
  1063.     This command moves the point just past the last character of the
  1064.     current paragraph. If already at the end, it will move to the end
  1065.     of the next paragraph.
  1066.  
  1067.                 [PG DOWN] for more paragraph commands
  1068. =>More Paragraph Commands
  1069. NEXT[Advanced Text Editing] PREV[Paragraphs]
  1070.  
  1071.     M-P    (previous-paragraph)
  1072.  
  1073.     The point is moved to the first character of the current paragraph.
  1074.     If already at the beginning, it will move back to the previous one.
  1075.  
  1076.     M-^W    (kill-paragraph)
  1077.  
  1078.     This deletes the current paragraph, leaving a copy in the kill
  1079.     buffer.
  1080.  
  1081.     M-Q    (fill-paragraph)
  1082.  
  1083.     This all important commands re-formats the current paragraph,
  1084.     causing all of its text to be filled out to the current fill column
  1085.     (Which is 72 by default and is set with $fillcol).
  1086.  
  1087.  
  1088.             [PG DOWN] to return to the Advanced Editing Menu
  1089.  
  1090. =>Words
  1091. NEXT[More Word Commands] PREV[Advanced Text Editing]
  1092.  
  1093.     Words are defined, by default, as a string of characters consisting
  1094.     of alphabetics, numbers and the underscore(_) character. You can
  1095.     change this be setting the $wchars variable to a list of all the
  1096.     characters you want considered as part of a word.
  1097.  
  1098.     Commands to manipulate words include:
  1099.  
  1100.     M-F    (next-word)    [<CTRL> -> on PC keyboards]
  1101.  
  1102.     This positions the point at the beginning of the next word.
  1103.  
  1104.     M-B    (previous-word)    [<CTRL> <- on PC keyboards]
  1105.  
  1106.     This positions the point at the beginning of the previous word.
  1107.  
  1108.  
  1109.  
  1110.                 [PG DOWN] for more word commands]
  1111.  
  1112. =>More Word Commands
  1113. NEXT[Advanced Text Editing] PREV[Words]
  1114.  
  1115.     M-D    (delete-next-word)
  1116.  
  1117.     Delete from the current position to the beginning of the next word.
  1118.  
  1119.     M-^H    (delete-previous-word)
  1120.  
  1121.     Dete the word before the point.
  1122.  
  1123.     M-^C    (count-words)
  1124.  
  1125.     Show the number of words in the current region, along with the
  1126.     number of characters, lines and the average number of characters
  1127.     per word.
  1128.  
  1129.  
  1130.  
  1131.  
  1132.                 [PG DOWN] to return to Advanced Editing Menu
  1133.  
  1134. =>Case Control
  1135. NEXT[Advanced Text Editing] PREV[Advanced Text Editing]
  1136.  
  1137.     M-C    (case-word-capitalize)
  1138.     M-L    (case-word-lower)
  1139.     M-U    (case-word-upper)
  1140.  
  1141.     These three commands let you change the case of the word at or
  1142.     following the point.
  1143.  
  1144.     ^X-^L    (case-region-lower)
  1145.     ^X-^U    (case-region-upper)
  1146.  
  1147.     Setting a mark (with M-<space>), moving to the other end of a region
  1148.     and using one of these commands will change the case of all the words
  1149.     in the selected region.
  1150.  
  1151.  
  1152.  
  1153.  
  1154.             [PG DOWN] to return to Advanced Editing Menu
  1155.  
  1156. =>Narrowing Your Scope
  1157. NEXT[Advanced Text Editing] PREV[Advanced Text Editing]
  1158.  
  1159.     Many times you will want to do something to a part of the text
  1160.     when the command works on all the text. Also it is helpful to
  1161.     see or edit just a portion of the text.
  1162.  
  1163.     ^X-<    (narrow-to-region)
  1164.  
  1165.     All the text in current buffer disappears except what is in the
  1166.     currently defined region. The modeline displays "<>" to indicate
  1167.     the current window looks into a narrowed buffer.
  1168.  
  1169.     ^X->    (widen-from-region)
  1170.  
  1171.     All the invisible text is restored.
  1172.  
  1173.  
  1174.  
  1175.  
  1176.             [PG DOWN] to return to Advanced Editing Menu
  1177.  
  1178. =>Repetitive Tasks
  1179. NEXT[More Keyboard Macros] PREV[Advanced Text Editing]
  1180.  
  1181.     Computers excel at performing the same task multiple times. You
  1182.     should never have to perform the same edit more than once. These
  1183.     commands show how:
  1184.  
  1185.     ^X-(    (begin-macro)
  1186.  
  1187.     This commands tells MicroEMACS to begin memorizing any keystrokes,
  1188.     commands or mouse clicks.
  1189.  
  1190.     ^X-)    (end-macro)
  1191.  
  1192.     MicroEMACS stops recording when this command is given.
  1193.  
  1194.     ^X-E    (execute-macro)
  1195.  
  1196.     This command replays everything recorded last.
  1197.  
  1198.         [PG DOWN] to learn more about keyboard macros
  1199.  
  1200. =>More Keyboard Macros
  1201. NEXT[Advanced Text Editing] PREV[Repetitive Tasks]
  1202.  
  1203.     To perform any repetitive task, where you have a list of things
  1204.     that need to be changed, one per line, follow these steps:
  1205.  
  1206.     1) Position the point to the beginning of the line to change
  1207.  
  1208.     2) Strike ^X-( to start recording
  1209.  
  1210.     3) make the change, staying on that line
  1211.  
  1212.     4) move to the beginning of the next line
  1213.  
  1214.     5) Strike ^X-) to stop recording
  1215.  
  1216.     Now hit ^X-E once to test your change on the next line. Did it
  1217.     work? If so count how many lines need to yet be changed, strike
  1218.     the META key followed by that number and ^X-E. Voila! Your change
  1219.     has been made on all the lines.
  1220.  
  1221.             [PG DOWN] to return to Advanced Editing Menu
  1222. =>ENDOFFILE
  1223. < >
  1224.