home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / EFFO / forum3.lzh / BRIEFE / emacs3.7.2mss < prev    next >
Text File  |  1987-11-05  |  28KB  |  804 lines

  1.  
  2.                                 Screen Editor
  3.                            written by Dave Conroy
  4.                             and Daniel Lawrence.
  5.  
  6.  
  7. This software is in the public domain and may be freely copied
  8. and used by one and all. We would ask that if it is incorporated into
  9. other software that proper credit be given to its authors.
  10.  
  11.                                 
  12.                                [ INTRODUCTION ]
  13.  
  14. MicroEMACS 3.7 is a screen editor for programming and word
  15. processing.  It is availible for the IBM-PC and its clones, UNIX V7,
  16. UNIX BSD4.2, UNIX V5, VMS, the HP150, the Wang-PC and the Commodore
  17. AMIGA.  It requires between 40 to 70K of space to run on these machines.
  18. Some of its capabilities include:
  19.  
  20.  
  21. Multiple windows on screen at one time
  22.  
  23. Multiple files in the editor at once
  24.  
  25. Limited on screen formating of text
  26.  
  27. User changable command set
  28.  
  29. User written editing macroes
  30.  
  31. Compatability across all supported environments
  32.  
  33.  
  34. This manual is designed as a reference manual. All the commands
  35. in MicroEMACS are listed, in functional groups, along with detailed
  36. descriptions of what each commands does.
  37.  
  38.  
  39.  
  40.                         [ HOW TO START ]
  41.  
  42.  
  43. MicroEMACS is invoked from the operating system command level
  44. with a command of the form:
  45.  
  46.  
  47. emacs {options} <filelist>
  48.  
  49. where options may be:
  50.  
  51. -v         all the following files are in view mode (read only)
  52. -e         all the following files can be edited
  53. -g<n>      go directly to line <n> of the first file
  54. -s<string> go to the end of the first occurance of <string>
  55.            in the first file
  56.  
  57. @@<sfile>  execute macro file <sfile> instead of the
  58.            standard startup file, and
  59.  
  60. <filelist> is a list of files to be edited.
  61.  
  62. for example:
  63.  
  64. emacs @@start1.cmd -g56 test.c -v head.h def.h
  65.  
  66. means to first execute macro file `start1.cmd' instead of the
  67. standard startup file, emacs.rc, and then read in `test.c', position the
  68. cursor to line 56, and be ready to read in files `head.h' and `def.h' in
  69. view (read-only) mode.  In the simple case, MicroEMACS is usually run by
  70. typing:
  71.  
  72. (emacs <file>)
  73.  
  74. where <file> is the name of the file to be edited.
  75.  
  76.  
  77.  
  78.                         [ HOW TO TYPE IN COMMANDS ]
  79.  
  80. Most commands in MicroEMACS are a single keystroke, or a
  81. keystroke preceded by a command prefix.  Control commands appear in the
  82. documentation like ^A which means to depress the <Ctrl> key and while
  83. holding down it down, type the A character.  Meta-commands appear as
  84. M-A which means to strike the Meta key (<ESC> on most computers) and
  85. then after releasing it, type the A character.  Control-X commands
  86. usually appear as ^XA which means to hold down the control key and type
  87. the X character then type the A character.  Both meta commands and
  88. control-x commands can be control characters as well, for example,
  89. ^X^O (the delete-blank-lines command) means to hold down <Ctrl>, type
  90. X, keep holding down <Ctrl> and type the O character.
  91.  
  92. Many commands in MicroEMACS can be executed a number of times.
  93. In order to make one command repeat many times, type Meta (<ESC>)
  94. followed by a number, and then the command. for example:
  95.  
  96. (M 12 ^K)
  97.  
  98. will delete 12 lines starting at the cursor and going down.
  99. Sometimes, the repeat count is used as an argument to the command as in
  100. the set-tab command where the repeat count is used to set the spacing of
  101. the tab stops.
  102.  
  103.  
  104.  
  105.                         [ THE COMMAND LIST ]
  106.  
  107.  
  108.  
  109. The following is a list of all the commands in MicroEMACS.
  110. Listed is the command name, the default (normal) keystrokes used to
  111. invoke it, and alternative keys for the IBM-PC, and a description of
  112. what the command does.
  113.  
  114.  
  115.                         [ (1) MOVING THE CURSOR ]
  116.  
  117. (previous-page)                 ^Z                      <Pg Up>
  118.  
  119.         Move one screen towards the begining of the file.
  120.  
  121. (next-page)                     ^V                      <Pg Dn>
  122.  
  123.         Move one screen towards the end of the file.
  124.  
  125. (begining-of-file)              M-<                     <Home>
  126.  
  127.         Place the cursor at the begining of the file.
  128.  
  129. (end-of-file)                   M->                     <End>
  130.  
  131.         Place the cursor at the end of the file.
  132.  
  133. (forward-character)             ^F                      (6 on the keypad)
  134.  
  135.         Move the cursor one character to the right.  Go down to
  136.         the begining of the next line if the cursor was already at the
  137.         end of the current line.
  138.  
  139. (backward-character)            ^B                      (4 on the keypad)
  140.  
  141.         Move the cursor one character to the left.  Go to the
  142.         end of the previous line if the cursor was at the begining of
  143.         the current line.
  144.  
  145. (next-word)                     M-F                     (^6 on the keypad)
  146.  
  147.         Place the cursor at the begining of the next word.
  148.  
  149. (previous-word)                 M-B                     (^4 on the keypad)
  150.  
  151.         Place the cursor at the begining of the previous word.
  152.  
  153. (begining-of-line)              ^A
  154.  
  155.         Move cursor to the begining of the current line.
  156.  
  157. (end-of-line)                   ^E
  158.  
  159.         Move the cursor to the end of the current line.
  160.  
  161. (next-line)                     ^N                      (2 on the keypad)
  162.  
  163.         Move the cursor down one line.
  164.  
  165. (previous-line)                 ^P                      (8 on the keypad)
  166.  
  167.         Move the cursor up one line.
  168.  
  169. (goto-line)                     M-G
  170.  
  171.         Goto a specific line in the file. IE    M 65 M-G    would
  172.         put the cursor on the 65th line of the current buffer.
  173.  
  174. (next-paragraph)                M-N
  175.  
  176.         Put the cursor at the first end of paragraph after the cursor.
  177.  
  178. (previous-paragraph)            M-P
  179.  
  180.         Put the cursor at the first begining of paragraph before the
  181.         cursor.
  182.  
  183.  
  184.                         [ (2) DELETING & INSERTING ]
  185.  
  186. (delete-previous-character)     ^H                       <--
  187.  
  188.         Delete the character immedietly to the left of the
  189.         cursor.  If the cursor is at the begining of a line, this will
  190.         join the current line on the end of the previous one.
  191.          
  192. (delete-next-character)         ^D                      <Del>
  193.  
  194.         Delete the character the cursor is on.  If the cursor is
  195.         at the end of a line, the next line is put at the end of the
  196.         current one.
  197.  
  198. (delete-previous word)          M-^H                    M- <--
  199.  
  200.         Delete the word before the cursor.
  201.  
  202. (delete-next-word)              M-^D
  203.  
  204.         Delete the word starting at the cursor.
  205.  
  206. (kill-to-end-of-line)
  207.  
  208.         When used with no argument, this command deletes all
  209.         text from the cursor to the end of a line.  When used on a blank
  210.         line, it deletes the blank line.  When used with an argument, it
  211.         deletes the specified number of lines.
  212.  
  213. (insert-space)                  ^C                      <Ins>
  214.  
  215.         Insert a space before the character the cursor is on.
  216.  
  217. (newline)                       <return>
  218.  
  219.         Insert a newline into the text, move the cursor down to the
  220.         begining of the next physical line, carrying any text that was after
  221.         it with it.
  222.  
  223. (newline-and-indent)            ^J
  224.  
  225.         Insert a newline into the text, and indent the new line the
  226.         same as the previous line.
  227.  
  228. (handle-tab)                    ^I                      -->
  229.  
  230.         With no argument, move the cursor to the begining of the
  231.         next tab stop.  With an argument of zero, use real tab
  232.         characters when tabbing.  With a non-zero argument, use spaces
  233.         to tab every argument positions.
  234.  
  235. (delete-blank-lines)            ^X^O
  236.  
  237.         Delete all the blank lines before and after the current cursor
  238.         position.
  239.  
  240. (kill-paragraph)                M-^W
  241.  
  242.         Delete the paragraph that the cursor is currently in.
  243.  
  244. (kill-region)                   ^W
  245.  
  246.         Delete all the characters from the cursor to the mark set with
  247.         the set-mark command.
  248.  
  249. (copy-region)
  250.  
  251.         Copy all the characters between the cursor and the mark
  252.         set with the set-mark command into the kill buffer (so they can
  253.         later be yanked elsewhere).
  254.  
  255. (open-line)                     ^O
  256.  
  257.         Insert a newline at the cursor, but do not move the cursor.
  258.  
  259.  
  260.                         [ (3) SEARCHING ]
  261.  
  262. (search-forward)                ^S
  263.  
  264.         Seearch for a string from the current cursor position to
  265.         the end of the file.  The string is typed on on the bottom line of
  266.         the screen, and terminated with the <ESC> key. Special characters
  267.         can be typed in by preceeding them with a ^Q. A single ^Q
  268.         indicates a null string.  On successive searches, hitting <ESC>
  269.         alone causes the last search string to be reused.
  270.  
  271. (search-reverse)                ^R
  272.  
  273.         This command searches backwards in the file. In all other ways
  274.         it is like search-forward.
  275.          
  276. (incremental-search)            ^XS
  277.  
  278.         This command is similar to forward-search, but it processes the
  279.         search as each character of the input string is typed in. This allows
  280.         the user to only use as many keystrokes as are needed to uniquely
  281.         specify the string being searched. Several control characters are
  282.         active while searching:
  283.  
  284.         ^S or ^X   Skip to the next occurence of the current string
  285.         ^R         skip to the last occurence of the current string
  286.         ^H         back up to the last match (posibly deleting
  287.                    the last character on the search string)
  288.         ^G         abort the search, return to start
  289.         <ESC>      end the search, stay here
  290.          
  291. (reverse-incremental-search)    ^XR
  292.  
  293.         This command is the same as incremental-search, but it starts in
  294.         the reverse direction.
  295.  
  296. (hunt-forward)                  unbound                 (<ALT>S on the IBM PC)
  297.  
  298.         This command repeats the last search with the last search string
  299.  
  300. (hunt-backward)                 unbound                 (<ALT>R on the IBM PC)
  301.  
  302.         The last search string is looked for starting at the cursor and
  303.         going backwards.
  304.  
  305.  
  306.                         [ (4) REPLACING ]
  307.  
  308. (replace-string)                M-R
  309.  
  310.         This command allows you to replace all occurences of one string
  311.         with another string. The replacement starts at the current location of
  312.         the cursor and goes to the end of the current buffer. A numeric argument
  313.         will limit the number of strings replaced.
  314.          
  315. (query-replace-string)          M-^R
  316.  
  317.         Like the replace-string command, this command will replace one
  318.         string with another. However, it allows you to step through each string
  319.         and ask you if you wish to make the replacement. When the computer asks
  320.         if you wish to make the replacement, the following answers are allowed:
  321.          
  322.         Y   Make the replacement and continue on to the next string
  323.         N   Don't make the replacement, then continue
  324.         !   Replace the rest of the strings without asking
  325.         ^G  Stop the command
  326.         .   Go back to place the command started
  327.         ?   get a list of options
  328.          
  329.  
  330.                         [ (5) CAPITALIZING & TRANSPOSING ]
  331.  
  332. (case-word-upper)               M-U
  333.  
  334.         Change the following word into upper case.
  335.  
  336. (case-word-capitalize)          M-C
  337.  
  338.         Capitalize> the following word.
  339.  
  340. (case-word-lower)               M-L
  341.  
  342.         Change the following word to lower case.
  343.  
  344. (case-region-upper)             ^X^U
  345.  
  346.         Change all the alphabetic characters in a marked region to upper
  347.         case.
  348.  
  349. (case-region-lower)             ^X^L
  350.  
  351.         Change all the alphabetic characters in a marked region to lower
  352.         case.
  353.  
  354. (transpose-characters)          ^T
  355.  
  356.         Swap the last and second last characters behind the cursor.
  357.  
  358. (quote-character)               ^Q
  359.  
  360.         Insert the next typed character, ignoring the fact that it may
  361.         be a command character.
  362.  
  363.  
  364.                         [ (6) REGIONS & THE KILL BUFFER ]
  365.  
  366. (set-mark)                      M-<SPACE>
  367.  
  368.         This command is used to delimit the begining of a marked region.
  369.         Many commands are effective for a region of text.  A region is defined
  370.         as the text between the mark and the current cursor position.  To delete
  371.         a section of text, for example, one moves the cursor to the begining of
  372.         the text to be deleted, issues the set-mark command by typing M-<SPACE>,
  373.         moves the cursor to the end of the text to be deleted, and then deletes
  374.         it by using the kill-region (^W) command.  Only one mark can be set in
  375.         one window or one buffer at a time, and MicroEMACS will try to remember
  376.         a mark set in an offscreen buffer when it is called back on screen.
  377.          
  378. (exchange-point-and-mark)       ^X^X
  379.  
  380.         This command moves the cursor to the current marked position in
  381.         the current window and moves the mark to where the cursor was.  This is
  382.         very usefull in finding where a mark was, or in returning to a position
  383.         previously marked.
  384.  
  385.  
  386.                         [ (7) COPYING & MOVING ]
  387.  
  388. (kill-region)                   ^W
  389.  
  390.         This command is used to copy the current region (as defined by
  391.         the current mark and the cursor) into the kill buffer.
  392.  
  393. (yank)                          ^Y
  394.  
  395.         This copies the contents of the kill buffer into the text at the
  396.         current cursor position.  This does not clear the kill buffer, and thus
  397.         may be used to make multiple copies of a section of text.
  398.  
  399. (copy-region)                   M-W
  400.  
  401.         This command copies the contents of the current region into the
  402.         kill buffer without deleting it from the current buffer.
  403.  
  404.  
  405.                         [ (8) MODES OF OPERATION ]
  406.  
  407. (add-mode)                      ^XM
  408.  
  409.         Add a mode to the current buffer
  410.  
  411. (delete-mode)                   ^X^M
  412.  
  413.         Delete a mode from the current buffer
  414.  
  415. (add-global-mode)               M-M
  416.  
  417.         Add a mode to the global modes which get inherited by any new
  418.         buffers that are created while editing.
  419.  
  420. (delete-global-mode)            M-^M
  421.  
  422.         Delete a mode from the global mode list.  This mode list is
  423.         displayed as the first line in the output produced by the list-buffers
  424.         comma#d.
  425.  
  426.  
  427.                        [ (9) BUFFER MODES ]
  428.  
  429. Modes are assigned to all buffers that exist during an editing
  430. session.  These modes effect the way text is inserted, and the operation
  431. of some commands. Legal modes are:
  432.  
  433.  
  434. (OVER)                          Overwrite Mode
  435.  
  436.         In this mode, typed characters replace existing characters
  437.         rather than being inserted into existing lines.  Newlines still insert
  438.         themselves, but all other characters will write over existing characters
  439.         on the current line being edited.  This mode is very usefull for editing
  440.         charts, figures, and tables.
  441.  
  442. (WRAP)                          Word Wrap Mode
  443.  
  444.         In this mode, when the cursor crosses the current fill column
  445.         (which defaults to 72) it will, at the next wordbreak, automatically
  446.         insert a newline, dragging the last word down with it.  This makes
  447.         typing prose much easier since the newline (<RETURN>) only needs to be
  448.         used between paragraphs.
  449.  
  450. (VIEW)                          File Viewing Mode
  451.  
  452.         In this mode, no commands which can change the text are allowed.
  453.  
  454. (CMODE)                         C Program Editing Mode
  455.  
  456.         This mode is for editing programs written in the 'C' programming
  457.         language.  When the newline is used, the editor will attempt to place
  458.         the cursor at the proper indentation level on the next line.  Close
  459.         braces are automatically undented for the user, and also pre-processor
  460.         commands are automatically set flush with the left margin.  When a close
  461.         parenthesis or brace is typed, if the matching open is on screen, the
  462.         cursor briefly moves to it, and then back. (Typing any key will abort
  463.         this fence matching, executing the next command immediatly)
  464.          
  465. (EXACT)                         Exact Case Matching on Searching MODE
  466.  
  467.         Normally case is insignificant during the various search
  468.         commands.  This forces all matching to take character case into account.
  469.  
  470. (MAGIC)                         Regular expresion pattern matching Mode
  471.  
  472.         This feature is not yet implimented.  While it may be set as a
  473.         mode, it will have no effect at the moment.  When it is ready, it will
  474.         cause all search commands to accept various pattern characters to allow
  475.         regular exspression search and replaces.
  476.  
  477.  
  478.                         [ (10) ON-SCREEN FORMATTING ]
  479.  
  480. (set-fill-column)               ^XF
  481.  
  482.         Sets the column used by WRAP mode and the fill-paragraph command.
  483.  
  484. (handle-tab)                    <TAB>
  485.  
  486.         Given a numeric argument, the tab key resets the normal behavior
  487.         of the tab key.  An argument of zero causes the tab key to generate
  488.         hardware tabs (at each 8 columns).  A non-zero argument will cause the
  489.         tab key to generate enough spaces to reach a culumn of a multiple of the
  490.         argument given.  This also resets the spacing used while in CMODE.
  491.  
  492. (fill-paragraph)                M-Q
  493.  
  494.         This takes all the text in the current paragraph (as defined by
  495.         surrounding blank lines, or a leading indent) and attempt to fill it
  496.         from the left margin to the current fill column.
  497.  
  498. (buffer-position)
  499.  
  500.         This command reports on the current and total lines and
  501.         characters of the current buffer.  It also gives the hexidecimal code of
  502.         the character currently under the cursor.
  503.  
  504.  
  505.                         [ (11) MULTIBLE WINDOWS ]
  506.  
  507. (split-current-window)          ^X2
  508.  
  509.         If possible, this command splits the current window into two
  510.         near equal windows, each displaying the buffer displayed by the original
  511.         window. A numeric argument of 1 forces the upper window to be the new
  512.         current window, and an argument of 2 forces the lower window to be the
  513.         new current window.
  514.  
  515. (delete-window)                 ^X0
  516.  
  517.         This command attempts to delete the current window, retrieving
  518.         the lines for use in the window above or below it.
  519.  
  520. (delete-other-windows)          ^X1
  521.  
  522.         All other windows are deleted by this command.  The current
  523.         window becomes the only window, using the entire availible screen.
  524.  
  525. (next-window)                   ^XO
  526.  
  527.         Make the next window down the current window.  With an argument,
  528.         this makes the nth window from the top current.
  529.  
  530. (previous-window)               ^XP
  531.  
  532.         Make the next window up the current window.  With an argument,
  533.         this makes tghe nth window from the bottom the current window.
  534.  
  535. (scroll-next-down)              M-^V
  536.  
  537.         Scroll the next window down a page.
  538.  
  539. (scroll-next-up)                M-^Z
  540.  
  541.         Scroll the next window up a page.
  542.  
  543.  
  544.                         [ (12) CONTROLLING WINDOWS ]
  545.  
  546. (grow-window)                   ^X^
  547.  
  548.         Enlarge the current window by the argument number of lines (1 by
  549.         default).
  550.  
  551. (shrink-window)                 ^X^Z
  552.  
  553.         Shrink the current window by the argument number of lines (1 by
  554.         default).
  555.  
  556. (resize-window)                 ^XW
  557.  
  558.         Change the size of the current window to the number of lines
  559.         specified by the argument, if possible.
  560.  
  561. (move-window-down)              ^X^N
  562.  
  563.         Move the window into the current buffer down by one line.
  564.          
  565. (move-window-up)                ^X^P
  566.  
  567.         Move the window into the current buffer up by one line.
  568.  
  569. (redraw-display)                M-^L
  570.  
  571.         Redraw the current window with the current line in the middle of
  572.         the window, of with an argument, with the current line on the nth line
  573.         of the current window.
  574.  
  575. (clear-and-redraw)              ^L
  576.  
  577.         Clear the screen and redraw the entire display.  Usefull on
  578.         timesharing systems where messages and other things can garbage the
  579.         display.
  580.  
  581.  
  582.                         [ (13) MULTIBLE BUFFERS ]
  583.  
  584. (select-buffer)                 ^XB
  585.  
  586.         Switch to using another buffer in the current window.  MicroEMACS
  587.         will prompt you for the name of the buffer to use.
  588.          
  589. (next-buffer)                   ^XX
  590.  
  591.         Switch to using the next buffer in the buffer list in the
  592.         current window.
  593.  
  594. (name-buffer)                   M-^N
  595.  
  596.         Change the name of the current buffer.
  597.  
  598. (kill-buffer)                   ^XK
  599.  
  600.         Dispose of an undisplayed buffer in the editor and reclaim the
  601.         space. This does not delete the file the buffer was read from.
  602.          
  603. (list-buffers)                  ^X^B
  604.  
  605.         Split the current window and in one half bring up a list of all
  606.         the buffers currently existing in the editor.  The active modes, change
  607.         flag, and active flag for each buffer is also displayed.  (The change
  608.         flag is an * if the buffer has been changed and not written out.  the
  609.         active flag is not an * if the file had been specified on the command
  610.         line, but has not been read in yet since nothing has switched to that
  611.         buffer.)
  612.  
  613.  
  614.                         [ (14) READING FROM DISK ]
  615.  
  616. (find-file)                     ^X^F
  617.  
  618.         Find the named file. If it is already in a buffer, make that
  619.         buffer active in the current window, otherwise attemt tocreate a new
  620.         buffer and read the file into it.
  621.  
  622. (read-file)                     ^X^R
  623.  
  624.         Read the named file into the current buffer (overwriting the
  625.         previous contents of the current buffer. If the change flag is set, a
  626.         confirmation will be asked).
  627.  
  628. (insert-file)                   ^X^I
  629.  
  630.         Insert the named file into the current position of the current
  631.         buffer.
  632.  
  633. (view-file)                     ^X^V
  634.  
  635.         Like find-file, this command either finds the file in a buffer,
  636.         or creates a new buffer and reads the file in. In addition, this leaves
  637.         that buffer in VIEW mode.
  638.  
  639.  
  640.                         [ (15) SAVING TO DISK ]
  641.  
  642. (save-file)                     ^X^S
  643.  
  644.         If the contents of the current buffer have been changed, write
  645.         it back to the file it was read from.
  646.  
  647. (write-file)                    ^X^W
  648.  
  649.         Write the contents of the current file to the named file, this
  650.         also changed the file name associated with the current buffer to the
  651.         new file name.
  652.  
  653. (change-file-name)              ^XN
  654.  
  655.         Change the name associated with the current buffer to the file
  656.         name given.
  657.  
  658. (quick-exit)                    M-Z
  659.  
  660.         Write out all changed buffers to the files they were read from
  661.         and exit the editor.
  662.  
  663.  
  664.                         [ (16) ACCESSING THE OPERATING SYSTEM ]
  665.  
  666. (shell-command)                 ^X!
  667.  
  668.         Send one command to execute to the operating system command
  669.         processor, or shell.  Upon completion, MicroEMACS will wait for a
  670.         keystroke to redraw the screen.
  671.  
  672. (pipe-command)                  ^X@
  673.  
  674.         Execute one operating system command and pipe the resulting
  675.         output into a buffer by the name of "command".
  676.          
  677. (filter-buffer)                 ^X#
  678.  
  679.         Execute one operating system command, using the contents of the
  680.         current buffer as input, and sending the results back to the same
  681.         buffer, replacing the original text.
  682.  
  683. (i-shell)                       ^XC
  684.  
  685.         Push up to a new command processor or shell.  Upon exiting the
  686.         shell, MicroEMACS will redraw its screen and continue editing.
  687.  
  688. (suspend-emacs)                 ^XD                    [only under BSD4.2]
  689.  
  690.         This command suspends the editing processor and puts it into the
  691.         background.  The "fg" command will restart MicroEMACS.
  692.  
  693. (exit-emacs)                    ^X^C
  694.  
  695.         Exit MicroEMACS back to the operating system.  If there are any
  696.         unwritten, changed buffers, the editor will promt to discard changes.
  697.  
  698.  
  699.                         [ (17) KEY BINDINGS & COMMANDS ]
  700.  
  701. (bind-to-key)                   M-K
  702.  
  703.         This command takes one of the named commands and binds it to a
  704.         key.  From then on, whenever that key is struck, the bound command is
  705.         executed.
  706.  
  707. (unbind-key)                    M-^K
  708.  
  709.         This unbinds a command from a key.
  710.   (describe-key)                  ^X?
  711.  
  712.         This command will allow you to type a key and it will then
  713.         report the name of the command bound to that key.
  714.  
  715. (execute-named-command)         M-X
  716.  
  717.         This command will prompt you for the name of a command to
  718.         execute.  Typing <SPACE> part way thought will tell the editor to
  719.         attempt to complete the name on its own.  If it then beeps, there is no
  720.         such command to complete.
  721.  
  722. (describe-bindings)             UNBOUND
  723.  
  724.         This command splits the current window, and in one of the
  725.         windows makes a list of all the named commands, and the keys currently
  726.         bound to them.
  727.  
  728.  
  729.                         [ (18) COMMAND EXECUTION ]
  730.  
  731. Commands can also be executed as command scripts.  This allows
  732. comands and their arguments to be stored in files and executed.  The
  733. general form of a command script line is:
  734.  
  735. <optional repeat count> {command-name} <optional arguments>
  736.  
  737.  
  738. (execute-command-line)          UNBOUND
  739.  
  740.         Execute a typed in script line.
  741.  
  742. (execute-buffer)                UNBOUND
  743.  
  744.         Executes script lines in the named buffer.  If the buffer is off
  745.         screen and an error occurs during execution, the cursor will be left on
  746.         the line causing the error.
  747.  
  748. (execute-file)                  UNBOUND
  749.  
  750.         Executes script lines from a file.  This is the normal way to
  751.         execute a special script.
  752.  
  753. (clear-message-line)            UNBOUND
  754.  
  755.         Clears the message line during script execution.  This is
  756.         usefull so as not to leave a confusion message from the last commands
  757.         in a script.
  758.  
  759. (unmark-buffer)                 UNBOUND
  760.  
  761.         Remove the change flag from the current buffer.  This is very
  762.         usefull in scripts where you are creating help windows, and don't want
  763.         MicroEMACS to complain about not saving them to a file.
  764.  
  765. (insert-string)                 UNBOUND
  766.  
  767.         Insert a string into the current #uffer.  This allows yoo to
  768.         build up text within a buffer without reading it in from a file.  Some
  769.         special characters are allowd, as follows:
  770.  
  771.  
  772.                         [ (19) MACRO EDITING ]
  773.  
  774. Also availible is one keyboard macro, which allows you to record
  775. a number of commands as they are executed and play them back.
  776.  
  777. (begin-macro)                   ^X (
  778.  
  779.         Start recording keyboard macro
  780.  
  781. (end-macro)                     ^X )
  782.  
  783.         Stop recording keyboard macro
  784.  
  785. (execute-macro)                 ^X E
  786.  
  787.         Execute keyboard macro
  788.  
  789. (store-macro)                   UNBOUND
  790.  
  791.         This command is used to store script lines in a hiffen buffer by
  792.         the name of "[Macro nn]" where <nn> is a number from 1 to 40 and
  793.         coresponds to the argument given this command.  All script lines then
  794.         encountered will be stored in this buffer rather than being executed.
  795.         A script line consisting of only "[end]" tells the editor that the
  796.         macro is complete, and stops recording script lines in the buffer.
  797.  
  798. (execute-macro-nn)              UNBOUND            [shift-<F1> thru shift-<F10>]
  799.  
  800.         This is the command to execute a script stored in one of the
  801.         hidden macro buffers.  On the IBM-PC the first ten of these are bound to
  802.         shift-<F1> thru shift-<F10>.
  803.  
  804.