home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / VRAC / E17INFO.ZIP / EMACS-12 < prev    next >
Encoding:
GNU Info File  |  1993-07-18  |  47.3 KB  |  1,144 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.54 from the
  2. input file emacs.texi.
  3.  
  4. 
  5. File: emacs,  Node: Saving Abbrevs,  Next: Dynamic Abbrevs,  Prev: Editing Abbrevs,  Up: Abbrevs
  6.  
  7. Saving Abbrevs
  8. ==============
  9.  
  10.    These commands allow you to keep abbrev definitions between editing
  11. sessions.
  12.  
  13. `M-x write-abbrev-file'
  14.      Write a file describing all defined abbrevs.
  15.  
  16. `M-x read-abbrev-file'
  17.      Read such a file and define abbrevs as specified there.
  18.  
  19. `M-x quietly-read-abbrev-file'
  20.      Similar but do not display a message about what is going on.
  21.  
  22. `M-x define-abbrevs'
  23.      Define abbrevs from definitions in current buffer.
  24.  
  25. `M-x insert-abbrevs'
  26.      Insert all abbrevs and their expansions into current buffer.
  27.  
  28.    `M-x write-abbrev-file' reads a file name using the minibuffer and
  29. writes a description of all current abbrev definitions into that file.
  30. The text stored in the file looks like the output of `M-x list-abbrevs'.
  31. This is used to save abbrev definitions for use in a later session.
  32.  
  33.    `M-x read-abbrev-file' reads a file name using the minibuffer and
  34. reads the file, defining abbrevs according to the contents of the file.
  35. `M-x quietly-read-abbrev-file' is the same except that it does not
  36. display a message in the echo area saying that it is doing its work; it
  37. is actually useful primarily in the `.emacs' file.  If an empty
  38. argument is given to either of these functions, the file name used is
  39. the value of the variable `abbrev-file-name', which is by default
  40. `"~/.abbrev_defs"'.
  41.  
  42.    Emacs will offer to save abbrevs automatically if you have changed
  43. any of them, whenever it offers to save all files (for `C-x s' or `C-x
  44. C-c').  This feature can be inhibited by setting the variable
  45. `save-abbrevs' to `nil'.
  46.  
  47.    The commands `M-x insert-abbrevs' and `M-x define-abbrevs' are
  48. similar to the previous commands but work on text in an Emacs buffer.
  49. `M-x insert-abbrevs' inserts text into the current buffer before point,
  50. describing all current abbrev definitions; `M-x define-abbrevs' parses
  51. the entire current buffer and defines abbrevs accordingly.
  52.  
  53. 
  54. File: emacs,  Node: Dynamic Abbrevs,  Prev: Saving Abbrevs,  Up: Abbrevs
  55.  
  56. Dynamic Abbrev Expansion
  57. ========================
  58.  
  59.    The abbrev facility described above operates automatically as you
  60. insert text, but all abbrevs must be defined explicitly.  By contrast,
  61. "dynamic abbrevs" allow the meanings of abbrevs to be determined
  62. automatically from the contents of the buffer, but dynamic abbrev
  63. expansion happens only when you request it explicitly.
  64.  
  65. `M-/'
  66.      Expand the word in the buffer before point as a "dynamic abbrev",
  67.      by searching in the buffer for words starting with that
  68.      abbreviation (`dabbrev-expand').
  69.  
  70.    For example, if the buffer contains `does this follow ' and you type
  71. `f o M-/', the effect is to insert `follow' because that is the last
  72. word in the buffer that starts with `fo'.  A numeric argument to `M-/'
  73. says to take the second, third, etc. distinct expansion found looking
  74. backward from point.  Repeating `M-/' searches for an alternative
  75. expansion by looking farther back.  After the entire buffer before
  76. point has been considered, the buffer after point is searched.
  77.  
  78.    Dynamic abbrev expansion is completely independent of Abbrev mode;
  79. the expansion of a word with `M-/' is completely independent of whether
  80. it has a definition as an ordinary abbrev.
  81.  
  82. 
  83. File: emacs,  Node: Picture,  Next: Sending Mail,  Prev: Abbrevs,  Up: Top
  84.  
  85. Editing Pictures
  86. ****************
  87.  
  88.    If you want to create a picture made out of text characters (for
  89. example, a picture of the division of a register into fields, as a
  90. comment in a program), use the command `M-x edit-picture' to enter
  91. Picture mode.
  92.  
  93.    In Picture mode, editing is based on the "quarter-plane" model of
  94. text, according to which the text characters lie studded on an area that
  95. stretches infinitely far to the right and downward.  The concept of the
  96. end of a line does not exist in this model; the most you can say is
  97. where the last nonblank character on the line is found.
  98.  
  99.    Of course, Emacs really always considers text as a sequence of
  100. characters, and lines really do have ends.  But in Picture mode most
  101. frequently-used keys are rebound to commands that simulate the
  102. quarter-plane model of text.  They do this by inserting spaces or by
  103. converting tabs to spaces.
  104.  
  105.    Most of the basic editing commands of Emacs are redefined by Picture
  106. mode to do essentially the same thing but in a quarter-plane way.  In
  107. addition, Picture mode defines various keys starting with the `C-c'
  108. prefix to run special picture editing commands.
  109.  
  110.    One of these keys, `C-c C-c', is pretty important.  Often a picture
  111. is part of a larger file that is usually edited in some other major
  112. mode.  `M-x edit-picture' records the name of the previous major mode
  113. so you can use the `C-c C-c' command (`picture-mode-exit') later to go
  114. back to that mode.  `C-c C-c' also deletes spaces from the ends of
  115. lines, unless given a numeric argument.
  116.  
  117.    The commands used in Picture mode all work in other modes (provided
  118. the `picture' library is loaded), but are not bound to keys except in
  119. Picture mode.  Note that the descriptions below talk of moving "one
  120. column" and so on, but all the picture mode commands handle numeric
  121. arguments as their normal equivalents do.
  122.  
  123.    Turning on Picture mode runs the hook `picture-mode-hook' (*note
  124. Hooks::.).
  125.  
  126. * Menu:
  127.  
  128. * Basic Picture::         Basic concepts and simple commands of Picture Mode.
  129. * Insert in Picture::     Controlling direction of cursor motion
  130.                             after "self-inserting" characters.
  131. * Tabs in Picture::       Various features for tab stops and indentation.
  132. * Rectangles in Picture:: Clearing and superimposing rectangles.
  133.  
  134. 
  135. File: emacs,  Node: Basic Picture,  Next: Insert in Picture,  Prev: Picture,  Up: Picture
  136.  
  137. Basic Editing in Picture Mode
  138. =============================
  139.  
  140.    Most keys do the same thing in Picture mode that they usually do, but
  141. do it in a quarter-plane style.  For example, `C-f' is rebound to run
  142. `picture-forward-column', a command which moves point one column to the
  143. right, inserting a space if necessary so that the actual end of the
  144. line makes no difference.  `C-b' is rebound to run
  145. `picture-backward-column', which always moves point left one column,
  146. converting a tab to multiple spaces if necessary.  `C-n' and `C-p' are
  147. rebound to run `picture-move-down' and `picture-move-up', which can
  148. either insert spaces or convert tabs as necessary to make sure that
  149. point stays in exactly the same column.  `C-e' runs
  150. `picture-end-of-line', which moves to after the last nonblank character
  151. on the line.  There is no need to change `C-a', as the choice of screen
  152. model does not affect beginnings of lines.
  153.  
  154.    Insertion of text is adapted to the quarter-plane screen model
  155. through the use of Overwrite mode (*note Minor Modes::.).
  156. Self-inserting characters replace existing text, column by column,
  157. rather than pushing existing text to the right.  RET runs
  158. `picture-newline', which just moves to the beginning of the following
  159. line so that new text will replace that line.
  160.  
  161.    Picture mode provides erasure instead of deletion and killing of
  162. text.  DEL (`picture-backward-clear-column') replaces the preceding
  163. character with a space rather than removing it; this moves point
  164. backwards.  `C-d' (`picture-clear-column') replaces the next character
  165. or characters with spaces, but does not move point.  (If you want to
  166. clear characters to spaces and move forward over them, use SPC.)  `C-k'
  167. (`picture-clear-line') really kills the contents of lines, but does not
  168. delete the newlines from the buffer.
  169.  
  170.    To do actual insertion, you must use special commands.  `C-o'
  171. (`picture-open-line') still creates a blank line, but does so after the
  172. current line; it never splits a line.  `C-M-o', `split-line', makes
  173. sense in Picture mode, so it is not changed.  LFD
  174. (`picture-duplicate-line') inserts below the current line another line
  175. with the same contents.
  176.  
  177.    If you want to do real deletion in Picture mode, use `C-w', `C-c
  178. C-d' (which is defined as `delete-char', as `C-d' is in other modes),
  179. or one of the picture rectangle commands (*note Rectangles in
  180. Picture::.).
  181.  
  182. 
  183. File: emacs,  Node: Insert in Picture,  Next: Tabs in Picture,  Prev: Basic Picture,  Up: Picture
  184.  
  185. Controlling Motion after Insert
  186. ===============================
  187.  
  188.    Since "self-inserting" characters in Picture mode just overwrite and
  189. move point, there is no essential restriction on how point should be
  190. moved.  Normally point moves right, but you can specify any of the
  191. eight orthogonal or diagonal directions for motion after a
  192. "self-inserting" character.  This is useful for drawing lines in the
  193. buffer.
  194.  
  195. `C-c <'
  196.      Move left after insertion (`picture-movement-left').
  197.  
  198. `C-c >'
  199.      Move right after insertion (`picture-movement-right').
  200.  
  201. `C-c ^'
  202.      Move up after insertion (`picture-movement-up').
  203.  
  204. `C-c .'
  205.      Move down after insertion (`picture-movement-down').
  206.  
  207. `C-c `'
  208.      Move up and left ("northwest") after insertion
  209.      (`picture-movement-nw').
  210.  
  211. `C-c ''
  212.      Move up and right ("northeast") after insertion
  213.      (`picture-movement-ne').
  214.  
  215. `C-c /'
  216.      Move down and left ("southwest") after insertion
  217.      (`picture-movement-sw').
  218.  
  219. `C-c \'
  220.      Move down and right ("southeast") after insertion
  221.      (`picture-movement-se').
  222.  
  223.    Two motion commands move based on the current Picture insertion
  224. direction.  The command `C-c C-f' (`picture-motion') moves in the same
  225. direction as motion after "insertion" currently does, while `C-c C-b'
  226. (`picture-motion-reverse') moves in the opposite direction.
  227.  
  228. 
  229. File: emacs,  Node: Tabs in Picture,  Next: Rectangles in Picture,  Prev: Insert in Picture,  Up: Picture
  230.  
  231. Picture Mode Tabs
  232. =================
  233.  
  234.    Two kinds of tab-like action are provided in Picture mode.  Use
  235. `M-TAB' (`picture-tab-search') for context-based tabbing.  With no
  236. argument, it moves to a point underneath the next "interesting"
  237. character that follows whitespace in the previous nonblank line.
  238. "Next" here means "appearing at a horizontal position greater than the
  239. one point starts out at".  With an argument, as in `C-u M-TAB', this
  240. command moves to the next such interesting character in the current
  241. line.  `M-TAB' does not change the text; it only moves point.
  242. "Interesting" characters are defined by the variable
  243. `picture-tab-chars', which contains a string whose characters are all
  244. considered interesting.  Its default value is `"!-~"'.
  245.  
  246.    TAB itself runs `picture-tab', which operates based on the current
  247. tab stop settings; it is the Picture mode equivalent of
  248. `tab-to-tab-stop'.  Normally it just moves point, but with a numeric
  249. argument it clears the text that it moves over.
  250.  
  251.    The context-based and tab-stop-based forms of tabbing are brought
  252. together by the command `C-c TAB', `picture-set-tab-stops'.  This
  253. command sets the tab stops to the positions which `M-TAB' would
  254. consider significant in the current line.  The use of this command,
  255. together with TAB, can get the effect of context-based tabbing.  But
  256. `M-TAB' is more convenient in the cases where it is sufficient.
  257.  
  258. 
  259. File: emacs,  Node: Rectangles in Picture,  Prev: Tabs in Picture,  Up: Picture
  260.  
  261. Picture Mode Rectangle Commands
  262. ===============================
  263.  
  264.    Picture mode defines commands for working on rectangular pieces of
  265. the text in ways that fit with the quarter-plane model.  The standard
  266. rectangle commands may also be useful (*note Rectangles::.).
  267.  
  268. `C-c C-k'
  269.      Clear out the region-rectangle (`picture-clear-rectangle').  With
  270.      argument, kill it.
  271.  
  272. `C-c C-w R'
  273.      Similar but save rectangle contents in register R first
  274.      (`picture-clear-rectangle-to-register').
  275.  
  276. `C-c C-y'
  277.      Copy last killed rectangle into the buffer by overwriting, with
  278.      upper left corner at point (`picture-yank-rectangle').  With
  279.      argument, insert instead.
  280.  
  281. `C-c C-x R'
  282.      Similar, but use the rectangle in register R
  283.      (`picture-yank-rectangle-from-register').
  284.  
  285.    The picture rectangle commands `C-c C-k' (`picture-clear-rectangle')
  286. and `C-c C-w' (`picture-clear-rectangle-to-register') differ from the
  287. standard rectangle commands in that they normally clear the rectangle
  288. instead of deleting it; this is analogous with the way `C-d' is changed
  289. in Picture mode.
  290.  
  291.    However, deletion of rectangles can be useful in Picture mode, so
  292. these commands delete the rectangle if given a numeric argument.
  293.  
  294.    The Picture mode commands for yanking rectangles differ from the
  295. standard ones in overwriting instead of inserting.  This is the same way
  296. that Picture mode insertion of other text differs from other modes.
  297. `C-c C-y' (`picture-yank-rectangle') inserts (by overwriting) the
  298. rectangle that was most recently killed, while `C-c C-x'
  299. (`picture-yank-rectangle-from-register') does likewise for the
  300. rectangle found in a specified register.
  301.  
  302. 
  303. File: emacs,  Node: Sending Mail,  Next: Rmail,  Prev: Picture,  Up: Top
  304.  
  305. Sending Mail
  306. ************
  307.  
  308.    To send a message in Emacs, you start by typing a command (`C-x m')
  309. to select and initialize the `*mail*' buffer.  Then you edit the text
  310. and headers of the message in this buffer, and type another command
  311. (`C-c C-c') to send the message.
  312.  
  313. `C-x m'
  314.      Begin composing a message to send (`mail').
  315.  
  316. `C-x 4 m'
  317.      Likewise, but display the message in another window
  318.      (`mail-other-window').
  319.  
  320. `C-x 5 m'
  321.      Likewise, but make a new frame (`mail-other-frame').
  322.  
  323. `C-c C-c'
  324.      In Mail mode, send the message and switch to another buffer
  325.      (`mail-send-and-exit').
  326.  
  327.    The command `C-x m' (`mail') selects a buffer named `*mail*' and
  328. initializes it with the skeleton of an outgoing message.  `C-x 4 m'
  329. (`mail-other-window') selects the `*mail*' buffer in a different
  330. window, leaving the previous current buffer visible.  `C-x 5 m'
  331. (`mail-other-frame') creates a new frame to select the `*mail*' buffer.
  332.  
  333.    Because the mail composition buffer is an ordinary Emacs buffer, you
  334. can switch to other buffers while in the middle of composing mail, and
  335. switch back later (or never).  If you use the `C-x m' command again
  336. when you have been composing another message but have not sent it, you
  337. are asked to confirm before the old message is erased.  If you answer
  338. `n', the `*mail*' buffer is left selected with its old contents, so you
  339. can finish the old message and send it.  `C-u C-x m' is another way to
  340. do this.  Sending the message marks the `*mail*' buffer "unmodified",
  341. which avoids the need for confirmation when `C-x m' is next used.
  342.  
  343.    If you are composing a message in the `*mail*' buffer and want to
  344. send another message before finishing the first, rename the `*mail*'
  345. buffer using `M-x rename-uniquely' (*note Misc Buffer::.).  Then you
  346. can use `C-x m' or its variants described above to make a new `*mail'
  347. buffer.  Once you've done that, you can work with each mail buffer
  348. independently.
  349.  
  350. * Menu:
  351.  
  352. * Format: Mail Format.     Format of the mail being composed.
  353. * Headers: Mail Headers.   Details of permitted mail header fields.
  354. * Aliases: Mail Aliases.   Abbreviating and grouping mail addresses.
  355. * Mode: Mail Mode.         Special commands for editing mail being composed.
  356. * Spook: Distracting NSA.  How to distract the NSA's attention.
  357.  
  358. 
  359. File: emacs,  Node: Mail Format,  Next: Mail Headers,  Up: Sending Mail
  360.  
  361. The Format of the Mail Buffer
  362. =============================
  363.  
  364.    In addition to the "text" or "body", a message has "header fields"
  365. which say who sent it, when, to whom, why, and so on.  Some header
  366. fields such as the date and sender are created automatically after the
  367. message is sent.  Others, such as the recipient names, must be
  368. specified by you in order to send the message properly.
  369.  
  370.    Mail mode provides a few commands to help you edit some header
  371. fields, and some are preinitialized in the buffer automatically at
  372. times.  You can insert or edit any header fields using ordinary editing
  373. commands.
  374.  
  375.    The line in the buffer that says
  376.  
  377.      --text follows this line--
  378.  
  379. is a special delimiter that separates the headers you have specified
  380. from the text.  Whatever follows this line is the text of the message;
  381. the headers precede it.  The delimiter line itself does not appear in
  382. the message actually sent.  The text used for the delimiter line is
  383. controlled by the variable `mail-header-separator'.
  384.  
  385.    Here is an example of what the headers and text in the `*mail*'
  386. buffer might look like.
  387.  
  388.      To: gnu@prep.ai.mit.edu
  389.      CC: lungfish@spam.org, byob@spam.org
  390.      Subject: The Emacs Manual
  391.      --Text follows this line--
  392.      Please ignore this message.
  393.  
  394. 
  395. File: emacs,  Node: Mail Headers,  Next: Mail Aliases,  Prev: Mail Format,  Up: Sending Mail
  396.  
  397. Mail Header Fields
  398. ==================
  399.  
  400.    There are several header fields you can use in the `*mail*' buffer.
  401. Each header field starts with a field name at the beginning of a line,
  402. terminated by a colon.  Upper and lower case are equivalent in field
  403. names (and in mailing addresses also).  After the colon and optional
  404. whitespace comes the contents of the field.
  405.  
  406. `To'
  407.      This field contains the mailing addresses to which the message is
  408.      addressed.
  409.  
  410. `Subject'
  411.      The contents of the `Subject' field should be a piece of text that
  412.      says what the message is about.  The reason `Subject' fields are
  413.      useful is that most mail-reading programs can provide a summary of
  414.      messages, listing the subject of each message but not its text.
  415.  
  416. `CC'
  417.      This field contains additional mailing addresses to send the
  418.      message to, but whose readers should not regard the message as
  419.      addressed to them.
  420.  
  421. `BCC'
  422.      This field contains additional mailing addresses to send the
  423.      message to, which should not appear in the header of the message
  424.      actually sent.  Copies sent this way are called "blind carbon
  425.      copies".
  426.  
  427.      To send a blind carbon copy of every outgoing message to yourself,
  428.      set the variable `mail-self-blind' to `t'.
  429.  
  430. `FCC'
  431.      This field contains the name of one file (in system mail file
  432.      format) to which a copy of the message should be appended when the
  433.      message is sent.  Do not output directly into an Rmail file with
  434.      FCC; instead, output to an inbox file and "get new mail" from that
  435.      inbox file into the Rmail file.  *Note Rmail Inbox::.
  436.  
  437. `From'
  438.      Use the `From' field to say who you are, when the account you are
  439.      using to send the mail is not your own.  The contents of the
  440.      `From' field should be a valid mailing address, since replies will
  441.      normally go there.
  442.  
  443. `Reply-to'
  444.      Use this field to direct replies to a different address.  Most
  445.      mail-reading programs (including Rmail) automatically send replies
  446.      to the `Reply-to' address in preference to the `From' address.  By
  447.      adding a `Reply-to' field to your header, you can work around any
  448.      problems your `From' address may cause for replies.
  449.  
  450.      If you want to put the same `Reply-to' address into every outgoing
  451.      message, set the variable `mail-default-reply-to' to that address
  452.      (as a string).
  453.  
  454. `In-reply-to'
  455.      This field contains a piece of text describing a message you are
  456.      replying to.  Some mail systems can use this information to
  457.      correlate related pieces of mail.  Normally this field is filled
  458.      in by Rmail when you are replying to a message in Rmail, and you
  459.      never need to think about it (*note Rmail::.).
  460.  
  461. The `To', `CC', `BCC' and `FCC' fields can appear any number of times,
  462. to specify many places to send the message.
  463.  
  464. The `To', `CC', and `BCC' fields can have continuation lines.  All the
  465. lines starting with whitespace, following the line on which the field
  466. starts, are considered part of the field.  For example,
  467.  
  468.      To: foo@here.net, this@there.net,
  469.        me@gnu.cambridge.mass.usa.earth.spiral3281
  470.  
  471.    If the variable `mail-archive-file-name' is non-`nil', it should be
  472. a string naming a file; every time you start to edit a message to send,
  473. the message starts out with an `FCC' field specifying that file.
  474. Unless you remove the `FCC' field before sending, the message will be
  475. written into that file when it is sent.
  476.  
  477. 
  478. File: emacs,  Node: Mail Aliases,  Next: Mail Mode,  Prev: Mail Headers,  Up: Sending Mail
  479.  
  480. Mail Aliases
  481. ============
  482.  
  483.    You can define "mail aliases" in a file named `~/.mailrc'.  These
  484. are short mnemonic names stand for mail addresses or groups of mail
  485. addresses.  Like many other mail programs, Emacs expands aliases when
  486. they occur in the `To', `CC', and `BCC' fields.
  487.  
  488.    To define an alias in `~/.mailrc', write a line in the following
  489. format:
  490.  
  491.      alias SHORTADDRESS FULLADDRESS
  492.  
  493. For instance, if you send want to use `maingnu' as a short form of the
  494. address `gnu@prep.ai.mit.edu', put in the line:
  495.  
  496.      alias maingnu gnu@prep.ai.mit.edu
  497.  
  498. The file `~/.mailrc' is used primarily by other mail-reading programs;
  499. it can contain various other commands.  Emacs ignores everything in it
  500. except for alias definitions.
  501.  
  502.    Another way to define a mail alias, within Emacs alone, is with the
  503. `define-mail-alias' command.  It prompts for the alias and then the
  504. full address.  You can use it to define aliases in your `.emacs' file,
  505. like this:
  506.  
  507.      (define-mail-alias "maingnu" "gnu@prep.ai.mit.edu")
  508.  
  509.    `define-mail-alias' records aliases by adding them to a variable
  510. named `mail-aliases'.  If your are comfortable with manipulating Lisp
  511. lists, you can set `mail-aliases' directly.  The initial value of
  512. `mail-aliases' is `t', which means that Emacs should read `.mailrc' to
  513. get the proper value.
  514.  
  515.    Normally, Emacs expands aliases when you send the message.  If you
  516. like, you can have mail aliases expand as abbrevs, as soon as you type
  517. them in.  To enable this feature, execute the following:
  518.  
  519.      (add-hook 'mail-setup-hook 'mail-abbrevs-setup)
  520.  
  521. This can go in your `.emacs' file.  *Note Hooks::.
  522.  
  523.    Note that abbrevs expand only if you insert a word-separator
  524. character afterward.  However, any mail aliases that you didn't expand
  525. in the mail buffer are expanded subsequently when you send the message.
  526. *Note Abbrevs::.
  527.  
  528. 
  529. File: emacs,  Node: Mail Mode,  Next: Distracting NSA,  Prev: Mail Aliases,  Up: Sending Mail
  530.  
  531. Mail Mode
  532. =========
  533.  
  534.    The major mode used in the `*mail*' buffer is Mail mode, which is
  535. much like Text mode except that various special commands are provided on
  536. the `C-c' prefix.  These commands all have to do specifically with
  537. editing or sending the message.
  538.  
  539. `C-c C-s'
  540.      Send the message, and leave the `*mail*' buffer selected
  541.      (`mail-send').
  542.  
  543. `C-c C-c'
  544.      Send the message, and select some other buffer
  545.      (`mail-send-and-exit').
  546.  
  547. `C-c C-f C-t'
  548.      Move to the `To' header field, creating one if there is none
  549.      (`mail-to').
  550.  
  551. `C-c C-f C-s'
  552.      Move to the `Subject' header field, creating one if there is none
  553.      (`mail-subject').
  554.  
  555. `C-c C-f C-c'
  556.      Move to the `CC' header field, creating one if there is none
  557.      (`mail-cc').
  558.  
  559. `C-c C-w'
  560.      Insert the file `~/.signature' at the end of the message text
  561.      (`mail-signature').
  562.  
  563. `C-c C-y'
  564.      Yank the selected message from Rmail (`mail-yank-original').  This
  565.      command does nothing unless your command to start sending a
  566.      message was issued with Rmail.
  567.  
  568. `C-c C-q'
  569.      Fill all paragraphs of yanked old messages, each individually
  570.      (`mail-fill-yanked-message').
  571.  
  572.    There are two ways to send the message.  `C-c C-s' (`mail-send')
  573. sends the message and marks the `*mail*' buffer unmodified, but leaves
  574. that buffer selected so that you can modify the message (perhaps with
  575. new recipients) and send it again.  `C-c C-c' (`mail-send-and-exit')
  576. sends and then deletes the window or switches to another buffer.  It
  577. puts the `*mail*' buffer at the lowest priority for reselection by
  578. default, since you are finished with using it.  This is the usual way
  579. to send the message.
  580.  
  581.    Mail mode provides some other special commands that are useful for
  582. editing the headers and text of the message before you send it.  There
  583. are three commands defined to move point to particular header fields,
  584. all based on the prefix `C-c C-f' (`C-f' is for "field").  They are
  585. `C-c C-f C-t' (`mail-to') to move to the `To' field, `C-c C-f C-s'
  586. (`mail-subject') for the `Subject' field, and `C-c C-f C-c' (`mail-cc')
  587. for the `CC' field.  These fields have special motion commands because
  588. they are the most common fields for the user to want to edit.
  589.  
  590.    `C-c C-w' (`mail-signature') adds a standard piece text at the end
  591. of the message to say more about who you are.  The text comes from the
  592. file `.signature' in your home directory.
  593.  
  594.    To insert signatures automatically, set the variable
  595. `mail-signature' non-`nil'; then starting a mail message automatically
  596. inserts the contents of your `.signature' file.  If you want to omit
  597. your signature from a particular message, delete it from the buffer
  598. before you send the message.
  599.  
  600.    When mail sending is invoked from the Rmail mail reader using an
  601. Rmail command, `C-c C-y' can be used inside the `*mail*' buffer to
  602. insert the text of the message you are replying to.  Normally it
  603. indents each line of that message four spaces and eliminates most
  604. header fields.  A numeric argument specifies the number of spaces to
  605. indent.  An argument of just `C-u' says not to indent at all and not to
  606. eliminate anything.  `C-c C-y' always uses the current message from the
  607. `RMAIL' buffer, so you can insert several old messages by selecting one
  608. in `RMAIL', switching to `*mail*' and yanking it, then switching back to
  609. `RMAIL' to select another.
  610.  
  611.    You can specify the text for `C-c C-y' to insert at the beginning of
  612. each line: set `mail-yank-prefix' to the desired string.  (A value of
  613. `nil' means to use indentation; this is the default.) However, `C-u C-c
  614. C-y' never adds anything at the beginning of the inserted lines,
  615. regardless of the value of `mail-yank-prefix'.
  616.  
  617.    After using `C-c C-y', you can use the command `C-c C-q'
  618. (`mail-fill-yanked-message') to fill the paragraphs of the yanked old
  619. message or messages.  One use of `C-c C-q' fills all such paragraphs,
  620. each one individually.
  621.  
  622.    Mail mode defines the character `%' as part of a word; this is
  623. helpful for using the word commands to edit mail addresses.
  624.  
  625.    Turning on Mail mode (which `C-x m' does automatically) runs the
  626. normal hooks `text-mode-hook' and `mail-mode-hook'.  Initializing a new
  627. outgoing message runs the normal hook `mail-setup-hook'; if you want to
  628. add special fields to your mail header or make other changes to the
  629. appearance of the mail buffer, use that hook.  *Note Hooks::.
  630.  
  631.    The main difference between these hooks is just when they are
  632. invoked.  Whenever you type `M-x mail', `mail-mode-hook' runs as soon
  633. as the `*mail*' buffer is created.  Then the `mail-setup' function puts
  634. in the default contents of the buffer.  After these default contents
  635. are inserted, `mail-setup-hook' runs.
  636.  
  637. 
  638. File: emacs,  Node: Distracting NSA,  Prev: Mail Mode,  Up: Sending Mail
  639.  
  640. Distracting the NSA
  641. ===================
  642.  
  643.    `M-x spook' adds a line of randomly chosen keywords to an outgoing
  644. mail message.  The keywords are chosen from a list of words that suggest
  645. you are discussing something subversive.
  646.  
  647.    The idea behind this feature is that the suspicion that the NSA
  648. snoops on all electronic mail messages that contain keywords suggesting
  649. they might be interested.  (The NSA says they don't, but there is no
  650. way to be certain.)  The idea is that if lots of people add suspicious
  651. words to their messages, the NSA will get so busy with spurious input
  652. that they will have to give up reading it all.
  653.  
  654.    Whether or not this confuses the NSA, it at least amuses people.
  655.  
  656. 
  657. File: emacs,  Node: Rmail,  Next: Dired,  Prev: Sending Mail,  Up: Top
  658.  
  659. Reading Mail with Rmail
  660. ***********************
  661.  
  662.    Rmail is an Emacs subsystem for reading and disposing of mail that
  663. you receive.  Rmail stores mail messages in files called Rmail files.
  664. Reading the message in an Rmail file is done in a special major mode,
  665. Rmail mode, which redefines most letters to run commands for managing
  666. mail.  To enter Rmail, type `M-x rmail'.  This reads your primary mail
  667. file, merges new mail in from your inboxes, displays the first message
  668. you haven't read yet, and lets you begin reading.
  669.  
  670.    Using Rmail in the simplest fashion, you have one Rmail file
  671. `~/RMAIL' in which all of your mail is saved.  It is called your
  672. "primary mail file".  In more sophisticated usage, you can copy
  673. messages into other Rmail files and then edit those files with Rmail.
  674.  
  675.    Rmail uses narrowing to hide all but one message in the Rmail file.
  676. The message that is shown is called the "current message".  Rmail
  677. mode's special commands can do such things as delete the current
  678. message, copy into another file, send a reply, or move to another
  679. message.
  680.  
  681.    Within the Rmail file, messages are arranged sequentially in order
  682. of receipt.  They are also assigned consecutive integers as their
  683. "message numbers".  The number of the current message is displayed in
  684. Rmail's mode line, followed by the total number of messages in the
  685. file.  You can move to a message by specifying its message number using
  686. the `j' key (*note Rmail Motion::.).
  687.  
  688.    Following the usual conventions of Emacs, changes in an Rmail file
  689. become permanent only when the file is saved.  You can do this with `s'
  690. (`rmail-save'), which also expunges deleted messages from the file
  691. first (*note Rmail Deletion::.).  To save the file without expunging,
  692. use `C-x C-s'.  Rmail saves the Rmail file spontaneously when moving new
  693. mail from an inbox file (*note Rmail Inbox::.).
  694.  
  695.    You can exit Rmail with `q' (`rmail-quit'); this expunges and saves
  696. the Rmail file and then switches to another buffer.  But there is no
  697. need to `exit' formally.  If you switch from Rmail to editing in other
  698. buffers, and never happen to switch back, you have exited.  (The Rmail
  699. command `b', `rmail-bury', does this for you.)  Just make sure to save
  700. the Rmail file eventually (like any other file you have changed).  `C-x
  701. s' is a good enough way to do this (*note Saving::.).
  702.  
  703. * Menu:
  704.  
  705. * Scroll: Rmail Scrolling.   Scrolling through a message.
  706. * Motion: Rmail Motion.      Moving to another message.
  707. * Deletion: Rmail Deletion.  Deleting and expunging messages.
  708. * Inbox: Rmail Inbox.        How mail gets into the Rmail file.
  709. * Files: Rmail Files.        Using multiple Rmail files.
  710. * Output: Rmail Output.         Copying message out to files.
  711. * Labels: Rmail Labels.      Classifying messages by labeling them.
  712. * Reply: Rmail Reply.        Sending replies to messages you are viewing.
  713. * Summary: Rmail Summary.    Summaries show brief info on many messages.
  714. * Editing: Rmail Editing.    Editing message text and headers in Rmail.
  715. * Digest: Rmail Digest.      Extracting the messages from a digest message.
  716. * Out of Rmail::         Converting an Rmail file to mailbox format.
  717. * Rot13: Rmail Rot13.         Reading messages encoded in the rot13 code.
  718.  
  719. 
  720. File: emacs,  Node: Rmail Scrolling,  Next: Rmail Motion,  Up: Rmail
  721.  
  722. Scrolling Within a Message
  723. ==========================
  724.  
  725.    When Rmail displays a message that does not fit on the screen, it is
  726. necessary to scroll through it.  This could be done with `C-v', `M-v'
  727. and `M-<', but in Rmail scrolling is so frequent that it deserves to be
  728. easier to type.
  729.  
  730. `SPC'
  731.      Scroll forward (`scroll-up').
  732.  
  733. `DEL'
  734.      Scroll backward (`scroll-down').
  735.  
  736. `.'
  737.      Scroll to start of message (`rmail-beginning-of-message').
  738.  
  739.    Since the most common thing to do while reading a message is to
  740. scroll through it by screenfuls, Rmail makes SPC and DEL synonyms of
  741. `C-v' (`scroll-up') and `M-v' (`scroll-down')
  742.  
  743.    The command `.' (`rmail-beginning-of-message') scrolls back to the
  744. beginning of the selected message.  This is not quite the same as `M-<':
  745. for one thing, it does not set the mark; for another, it resets the
  746. buffer boundaries to the current message if you have changed them.
  747.  
  748. 
  749. File: emacs,  Node: Rmail Motion,  Next: Rmail Deletion,  Prev: Rmail Scrolling,  Up: Rmail
  750.  
  751. Moving Among Messages
  752. =====================
  753.  
  754.    The most basic thing to do with a message is to read it.  The way to
  755. do this in Rmail is to make the message current.  The usual practice is
  756. to move sequentially through the file, since this is the order of
  757. receipt of messages.  When you enter Rmail, you are positioned at the
  758. first message that you have not yet made current (that is, the first one
  759. that has the `unseen' attribute; *note Rmail Labels::.).  Move forward
  760. to see the other new messages; move backward to reexamine old messages.
  761.  
  762. `n'
  763.      Move to the next nondeleted message, skipping any intervening
  764.      deleted
  765.      messages (`rmail-next-undeleted-message').
  766.  
  767. `p'
  768.      Move to the previous nondeleted message
  769.      (`rmail-previous-undeleted-message').
  770.  
  771. `M-n'
  772.      Move to the next message, including deleted messages
  773.      (`rmail-next-message').
  774.  
  775. `M-p'
  776.      Move to the previous message, including deleted messages
  777.      (`rmail-previous-message').
  778.  
  779. `j'
  780.      Move to the first message.  With argument N, move to message
  781.      number N (`rmail-show-message').
  782.  
  783. `>'
  784.      Move to the last message (`rmail-last-message').
  785.  
  786. `<'
  787.      Move to the first message (`rmail-first-message').
  788.  
  789. `M-s REGEXP RET'
  790.      Move to the next message containing a match for REGEXP
  791.      (`rmail-search').
  792.  
  793. `- M-s REGEXP RET'
  794.      Move to the previous message containing a match for REGEXP.
  795.  
  796.    `n' and `p' are the usual way of moving among messages in Rmail.
  797. They move through the messages sequentially, but skip over deleted
  798. messages, which is usually what you want to do.  Their command
  799. definitions are named `rmail-next-undeleted-message' and
  800. `rmail-previous-undeleted-message'.  If you do not want to skip deleted
  801. messages--for example, if you want to move to a message to undelete
  802. it--use the variants `M-n' and `M-p' (`rmail-next-message' and
  803. `rmail-previous-message').  A numeric argument to any of these commands
  804. serves as a repeat count.
  805.  
  806.    In Rmail, you can specify a numeric argument by typing just the
  807. digits.  You don't need to type `C-u' first.
  808.  
  809.    The `M-s' (`rmail-search') command is Rmail's version of search.
  810. The usual incremental search command `C-s' works in Rmail, but it
  811. searches only within the current message.  The purpose of `M-s' is to
  812. search for another message.  It reads a regular expression (*note
  813. Regexps::.) nonincrementally, then searches starting at the beginning
  814. of the following message for a match.  The message containing the match
  815. is selected.
  816.  
  817.    If REGEXP is empty, `M-s' reuses the regexp used the previous time.
  818.  
  819.    To search backward in the file for another message, give `M-s' a
  820. negative argument.  In Rmail you can do this with `- M-s'.
  821.  
  822.    It is also possible to search for a message based on labels.  *Note
  823. Rmail Labels::.
  824.  
  825.    To move to a message specified by absolute message number, use `j'
  826. (`rmail-show-message') with the message number as argument.  With no
  827. argument, `j' selects the first message.  `>' (`rmail-last-message')
  828. selects the last message.  `<' (`rmail-first-message') selects the
  829. first message.
  830.  
  831. 
  832. File: emacs,  Node: Rmail Deletion,  Next: Rmail Inbox,  Prev: Rmail Motion,  Up: Rmail
  833.  
  834. Deleting Messages
  835. =================
  836.  
  837.    When you no longer need to keep a message, you can "delete" it.  This
  838. flags it as ignorable, and some Rmail commands pretend it is no longer
  839. present; but it still has its place in the Rmail file, and still has its
  840. message number.
  841.  
  842.    "Expunging" the Rmail file actually removes the deleted messages.
  843. The remaining messages are renumbered consecutively.  Expunging is the
  844. only action that changes the message number of any message, except for
  845. undigestifying (*note Rmail Digest::.).
  846.  
  847. `d'
  848.      Delete the current message, and move to the next nondeleted message
  849.      (`rmail-delete-forward').
  850.  
  851. `C-d'
  852.      Delete the current message, and move to the previous nondeleted
  853.      message (`rmail-delete-backward').
  854.  
  855. `u'
  856.      Undelete the current message, or move back to a deleted message and
  857.      undelete it (`rmail-undelete-previous-message').
  858.  
  859. `x'
  860.      Expunge the Rmail file (`rmail-expunge').
  861.  
  862.    There are two Rmail commands for deleting messages.  Both delete the
  863. current message and select another message.  `d'
  864. (`rmail-delete-forward') moves to the following message, skipping
  865. messages already deleted, while `C-d' (`rmail-delete-backward') moves
  866. to the previous nondeleted message.  If there is no nondeleted message
  867. to move to in the specified direction, the message that was just
  868. deleted remains current.
  869.  
  870.    To make all the deleted messages finally vanish from the Rmail file,
  871. type `x' (`rmail-expunge').  Until you do this, you can still
  872. "undelete" the deleted messages.
  873.  
  874.    To undelete, type `u' (`rmail-undelete-previous-message'), which is
  875. designed to cancel the effect of a `d' command (usually).  It undeletes
  876. the current message if the current message is deleted.  Otherwise it
  877. moves backward to previous messages until a deleted message is found,
  878. and undeletes that message.
  879.  
  880.    You can usually undo a `d' with a `u' because the `u' moves back to
  881. and undeletes the message that the `d' deleted.  But this does not work
  882. when the `d' skips a few already-deleted messages that follow the
  883. message being deleted; then the `u' command undeletes the last of the
  884. messages that were skipped.  There is no clean way to avoid this
  885. problem.  However, by repeating the `u' command, you can eventually get
  886. back to the message that you intend to undelete.  You can also select a
  887. particular deleted message with `M-p' command, then type `u' to
  888. undelete it.
  889.  
  890.    A deleted message has the `deleted' attribute, and as a result
  891. `deleted' appears in the mode line when the current message is deleted.
  892. In fact, deleting or undeleting a message is nothing more than adding
  893. or removing this attribute.  *Note Rmail Labels::.
  894.  
  895. 
  896. File: emacs,  Node: Rmail Inbox,  Next: Rmail Files,  Prev: Rmail Deletion,  Up: Rmail
  897.  
  898. Rmail Files and Inboxes
  899. =======================
  900.  
  901.    Unix places incoming mail for you in a file that we call your
  902. "inbox".  When you start up Rmail, it copies the new messages from your
  903. inbox into your primary mail file, an Rmail file, which also contains
  904. other messages saved from previous Rmail sessions.  It is in this file
  905. that you actually read the mail with Rmail.  This operation is called
  906. "getting new mail".  It can be repeated at any time using the `g' key
  907. in Rmail.  The inbox file name is `/usr/spool/mail/USERNAME' on some
  908. systems (typically Berkeley-derived ones) and `/usr/mail/USERNAME' on
  909. other systems.
  910.  
  911.    There are three reason for having separate Rmail files and inboxes.
  912.  
  913.   1. The inbox file format varies between operating systems and
  914.      according to the other mail software in use.  Only one part of
  915.      Rmail needs to know about the alternatives, and it need only
  916.      understand how to convert all of them to Rmail's own format.
  917.  
  918.   2. The inbox file format usually doesn't provide a place for all the
  919.      information that Rmail records.
  920.  
  921.   3. It is very cumbersome to access an inbox file without danger of
  922.      losing mail, because it is necessary to interlock with mail
  923.      delivery.  Moreover, different operating systems use different
  924.      interlocking techniques.  The strategy of moving mail out of the
  925.      inbox once and for all into a separate Rmail file avoids the need
  926.      for interlocking in all the rest of Rmail, since only Rmail
  927.      operates on the Rmail file.
  928.  
  929.    When getting new mail, Rmail first copies the new mail from the inbox
  930. file to the Rmail file; then it saves the Rmail file; then it truncates
  931. the inbox file.  This way, a system crash may cause duplication of mail
  932. between the inbox and the Rmail file, but cannot lose mail.
  933.  
  934.    Copying mail from an inbox in the system's mailer directory actually
  935. puts it in an intermediate file `~/.newmail'.  This is because the
  936. interlocking is done by a C program that copies to another file.
  937. `~/.newmail' is deleted after mail merging is successful.  If there is
  938. a crash at the wrong time, this file continues to exist and will be
  939. used as an inbox the next time you get new mail.
  940.  
  941. 
  942. File: emacs,  Node: Rmail Files,  Next: Rmail Output,  Prev: Rmail Inbox,  Up: Rmail
  943.  
  944. Multiple Mail Files
  945. ===================
  946.  
  947.    Rmail operates by default on your "primary mail file", which is named
  948. `~/RMAIL' and receives your incoming mail from your system inbox file.
  949. But you can also have other mail files and edit them with Rmail.  These
  950. files can receive mail through their own inboxes, or you can move
  951. messages into them with explicit Rmail commands (*note Rmail Output::.).
  952.  
  953. `i FILE RET'
  954.      Read FILE into Emacs and run Rmail on it (`rmail-input').
  955.  
  956. `M-x set-rmail-inbox-list RET FILES RET'
  957.      Specify inbox file names for current Rmail file to get mail from.
  958.  
  959. `g'
  960.      Merge new mail from current Rmail file's inboxes
  961.      (`rmail-get-new-mail').
  962.  
  963. `C-u g FILE RET'
  964.      Merge new mail from inbox file FILE.
  965.  
  966.    To run Rmail on a file other than your primary mail file, you may use
  967. the `i' (`rmail-input') command in Rmail.  This visits the file, puts
  968. it in Rmail mode, and then gets new mail from the file's inboxes if
  969. any.  The file should be in Rmail format.  You can use `M-x
  970. rmail-input' even when not in Rmail.
  971.  
  972.    The file you read with `i' should usually be a valid Rmail file.  If
  973. it is not, then Rmail tries to decompose it into a stream of messages
  974. in various known formats.  If it succeeds, it converts the whole file to
  975. an Rmail file.
  976.  
  977.    Each Rmail file can contain a list of inbox file names; you can
  978. specify this list with `M-x set-rmail-inbox-list RET FILES RET'.  The
  979. argument can contain any number of file names, separated by commas.  It
  980. can also be empty, which specifies that this file should have no
  981. inboxes.  Once a list of inboxes is specified, the Rmail file remembers
  982. it permanently until it is explicitly changed.
  983.  
  984.    If an Rmail file has inboxes, new mail is merged in from the inboxes
  985. when the Rmail file is brought into Rmail, and when you use the `g'
  986. (`rmail-get-new-mail') command.  If the Rmail file specifies no
  987. inboxes, then no new mail is merged in at these times.  As a special
  988. exception, if your primary mail file does not specify any inbox files,
  989. it uses the standard system inbox.
  990.  
  991.    To merge mail from a file that is not the usual inbox, give the `g'
  992. key a numeric argument, as in `C-u g'.  Then it reads a file name and
  993. merges mail from that file.  The inbox file is not deleted or changed
  994. in any way when `g' with an argument is used.  This is, therefore, a
  995. general way of merging one file of messages into another.
  996.  
  997. 
  998. File: emacs,  Node: Rmail Output,  Next: Rmail Labels,  Prev: Rmail Files,  Up: Rmail
  999.  
  1000. Copying Messages Out to Files
  1001. =============================
  1002.  
  1003. `o FILE RET'
  1004.      Append a copy of the current message to the file FILE, writing it
  1005.      in Rmail file format (`rmail-output-to-rmail-file').
  1006.  
  1007. `C-o FILE RET'
  1008.      Append a copy of the current message to the file FILE, writing it
  1009.      in Unix mail file format (`rmail-output').
  1010.  
  1011.    If an Rmail file has no inboxes, the only way messages get into it is
  1012. by means of explicit `o' commands.
  1013.  
  1014.    `o' (`rmail-output-to-rmail-file') appends the current message in
  1015. Rmail format to the end of the specified file.  This is the best command
  1016. to use to move messages between Rmail files.  If the other Rmail file is
  1017. currently visited, the copying is done into the other file's Emacs
  1018. buffer instead.  You should eventually save it on disk.
  1019.  
  1020.    The `C-o' (`rmail-output') command in Rmail appends a copy of the
  1021. current message to a specified file, in inbox file format.  This is
  1022. useful for moving messages into files to be read by other mail
  1023. processors that do not understand Rmail format.
  1024.  
  1025.    The `o' and `C-o' commands are actually equivalent when you specify
  1026. an existing file; both commands check the file's contents to determine
  1027. which format to use (Rmail or inbox).  Which command you use makes a
  1028. difference when you specify a nonexistent file.
  1029.  
  1030.    Copying a message with `o' or `C-o' gives the original copy of the
  1031. message the `filed' attribute, so that `filed' appears in the mode line
  1032. when such a message is current.  If you like to keep just a single copy
  1033. of every mail message, set the variable `rmail-delete-after-output' to
  1034. `t'; then the `o' and `C-o' commands delete the original message after
  1035. copying it.  (You can undelete the original afterward.)
  1036.  
  1037.    The variable `rmail-output-file-alist' lets you specify intelligent
  1038. defaults for the output file, based on the contents of the current
  1039. message.  The value should be a list whose elements have this form:
  1040.  
  1041.      (REGEXP . FILENAME)
  1042.  
  1043. If there's a match for REGEXP in the current message, then the default
  1044. file name for output is FILENAME.  If multiple elements match the
  1045. message, the first matching element decides the default file name.
  1046.  
  1047. 
  1048. File: emacs,  Node: Rmail Labels,  Next: Rmail Reply,  Prev: Rmail Output,  Up: Rmail
  1049.  
  1050. Labels
  1051. ======
  1052.  
  1053.    Each message can have various "labels" assigned to it as a means of
  1054. classification.  A label has a name; different names mean different
  1055. labels.  Any given label is either present or absent on a particular
  1056. message.  A few label names have standard meanings and are given to
  1057. messages automatically by Rmail when appropriate; these special labels
  1058. are called "attributes".  All other labels are assigned only by users.
  1059.  
  1060. `a LABEL RET'
  1061.      Assign the label LABEL to the current message (`rmail-add-label').
  1062.  
  1063. `k LABEL RET'
  1064.      Remove the label LABEL from the current message
  1065.      (`rmail-kill-label').
  1066.  
  1067. `C-M-n LABELS RET'
  1068.      Move to the next message that has one of the labels LABELS
  1069.      (`rmail-next-labeled-message').
  1070.  
  1071. `C-M-p LABELS RET'
  1072.      Move to the previous message that has one of the labels LABELS
  1073.      (`rmail-previous-labeled-message').
  1074.  
  1075. `C-M-l LABELS RET'
  1076.      Make a summary of all messages containing any of the labels LABELS
  1077.      (`rmail-summary-by-labels').
  1078.  
  1079. Specifying an empty string for one these commands means to use the last
  1080. label specified for any of these commands.
  1081.  
  1082.    The `a' (`rmail-add-label') and `k' (`rmail-kill-label') commands
  1083. allow you to assign or remove any label on the current message.  If the
  1084. LABEL argument is empty, it means to assign or remove the same label
  1085. most recently assigned or removed.
  1086.  
  1087.    Once you have given messages labels to classify them as you wish,
  1088. there are two ways to use the labels: in moving and in summaries.
  1089.  
  1090.    The command `C-M-n LABELS RET' (`rmail-next-labeled-message') moves
  1091. to the next message that has one of the labels LABELS.  The argument
  1092. LABELS specifies one or more label names, separated by commas.  `C-M-p'
  1093. (`rmail-previous-labeled-message') is similar, but moves backwards to
  1094. previous messages.  A preceding numeric argument to either one serves
  1095. as a repeat count.
  1096.  
  1097.    The command `C-M-l LABELS RET' (`rmail-summary-by-labels') displays
  1098. a summary containing only the messages that have at least one of a
  1099. specified set of messages.  The argument LABELS is one or more label
  1100. names, separated by commas.  *Note Rmail Summary::, for information on
  1101. summaries.
  1102.  
  1103.    If the LABELS argument to `C-M-n', `C-M-p' or `C-M-l' is empty, it
  1104. means to use the last set of labels specified for any of these commands.
  1105.  
  1106.    Some labels such as `deleted' and `filed' have built-in meanings and
  1107. are assigned to or removed from messages automatically at appropriate
  1108. times; these labels are called "attributes".  Here is a list of Rmail
  1109. attributes:
  1110.  
  1111. `unseen'
  1112.      Means the message has never been current.  Assigned to messages
  1113.      when they come from an inbox file, and removed when a message is
  1114.      made current.  When you start Rmail, it initially shows the first
  1115.      message that has this attribute.
  1116.  
  1117. `deleted'
  1118.      Means the message is deleted.  Assigned by deletion commands and
  1119.      removed by undeletion commands (*note Rmail Deletion::.).
  1120.  
  1121. `filed'
  1122.      Means the message has been copied to some other file.  Assigned by
  1123.      the file output commands (*note Rmail Files::.).
  1124.  
  1125. `answered'
  1126.      Means you have mailed an answer to the message.  Assigned by the
  1127.      `r' command (`rmail-reply').  *Note Rmail Reply::.
  1128.  
  1129. `forwarded'
  1130.      Means you have forwarded the message to other users.  Assigned by
  1131.      the `f' command (`rmail-forward').  *Note Rmail Reply::.
  1132.  
  1133. `edited'
  1134.      Means you have edited the text of the message within Rmail.  *Note
  1135.      Rmail Editing::.
  1136.  
  1137. `resent'
  1138.      Means you have resent the message to other users.  Assigned by the
  1139.      command `M-x rmail-resend'.  *Note Rmail Reply::.
  1140.  
  1141.    All other labels are assigned or removed only by the user, and have
  1142. no standard meaning.
  1143.  
  1144.