aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-03-19 17:18:47 +0200
committerEli Zaretskii2018-03-19 17:18:47 +0200
commitfb3dc0e8aa9ce8514cd6ee0e33a91a34ee0d5756 (patch)
treecd7d07271a97d081a1512748e1a7f5a6bbf59ecb
parenta776ce7be658679d776e0bd5a0f8ffe0cc1cb33a (diff)
downloademacs-fb3dc0e8aa9ce8514cd6ee0e33a91a34ee0d5756.tar.gz
emacs-fb3dc0e8aa9ce8514cd6ee0e33a91a34ee0d5756.zip
More proofreading of the Emacs manual
* doc/emacs/macos.texi (Mac / GNUstep Basics): Fix typos. Improve indexing. (Mac / GNUstep Basics, Mac / GNUstep Customization) (Mac / GNUstep Events): Improve indexing. * doc/emacs/rmail.texi (Rmail): Mention Gnus. (Rmail Basics, Rmail Scrolling): Improve cross-references and indexing. (Rmail Motion): Minor improvements. (Rmail Inbox): Remove outdated text about Babyl format. (Rmail Files): Formatting changes. Comment out set-rmail-inbox-list in the table of commands, as it is commented out in the text that follows. (Rmail Output, Rmail Labels, Rmail Reply, Rmail Make Summary): Minor copyedits. (Rmail Summary Edit): Document rmail-summary-scroll-between-messages. (Rmail Editing): Improve indexing. (Movemail): Fix typos. (Remote Mailboxes): Use "POP3" rather than "POP".
-rw-r--r--doc/emacs/macos.texi14
-rw-r--r--doc/emacs/rmail.texi173
2 files changed, 107 insertions, 80 deletions
diff --git a/doc/emacs/macos.texi b/doc/emacs/macos.texi
index 4982c78f2eb..e669eaa4cbd 100644
--- a/doc/emacs/macos.texi
+++ b/doc/emacs/macos.texi
@@ -21,7 +21,7 @@ begin with @samp{ns-}, which is short for @samp{Nextstep}. NeXTstep
21was an application interface released by NeXT Inc.@: during the 1980s, 21was an application interface released by NeXT Inc.@: during the 1980s,
22of which Cocoa is a direct descendant. Apart from Cocoa, there is 22of which Cocoa is a direct descendant. Apart from Cocoa, there is
23another NeXTstep-style system: GNUstep, which is free software. As of 23another NeXTstep-style system: GNUstep, which is free software. As of
24this writing, Emacs GNUstep support is alpha status (@pxref{GNUstep 24this writing, Emacs GNUstep support is in alpha status (@pxref{GNUstep
25Support}), but we hope to improve it in the future. 25Support}), but we hope to improve it in the future.
26 26
27@menu 27@menu
@@ -34,6 +34,7 @@ Support}), but we hope to improve it in the future.
34@node Mac / GNUstep Basics 34@node Mac / GNUstep Basics
35@section Basic Emacs usage under macOS and GNUstep 35@section Basic Emacs usage under macOS and GNUstep
36 36
37@cindex modifier keys (macOS)
37 By default, the @key{Alt} and @key{Option} keys are the same as 38 By default, the @key{Alt} and @key{Option} keys are the same as
38@key{Meta}. The Mac @key{Cmd} key is the same as @key{Super}, and 39@key{Meta}. The Mac @key{Cmd} key is the same as @key{Super}, and
39Emacs provides a set of key bindings using this modifier key that mimic 40Emacs provides a set of key bindings using this modifier key that mimic
@@ -47,7 +48,7 @@ behavior of the right @key{Alt} and @key{Option} keys. These keys
47behave like the left-hand keys if the value is @code{left} (the 48behave like the left-hand keys if the value is @code{left} (the
48default). A value of @code{control}, @code{meta}, @code{alt}, 49default). A value of @code{control}, @code{meta}, @code{alt},
49@code{super}, or @code{hyper} makes them behave like the corresponding 50@code{super}, or @code{hyper} makes them behave like the corresponding
50modifier keys; a value to @code{left} means be the same key as 51modifier keys; a value of @code{left} means be the same key as
51@code{ns-alternate-modifier}; a value of @code{none} tells Emacs to 52@code{ns-alternate-modifier}; a value of @code{none} tells Emacs to
52ignore them, in which case you get the default behavior of macOS 53ignore them, in which case you get the default behavior of macOS
53accentuation system from the right option key. 54accentuation system from the right option key.
@@ -64,6 +65,7 @@ dialogs to read file names. However, if you use the regular Emacs key
64sequences, such as @kbd{C-x C-f}, Emacs uses the minibuffer to read 65sequences, such as @kbd{C-x C-f}, Emacs uses the minibuffer to read
65file names. 66file names.
66 67
68@cindex copy/paste to/from primary selection (macOS)
67 On GNUstep, in an X-windows environment you need to use @kbd{Cmd-c} 69 On GNUstep, in an X-windows environment you need to use @kbd{Cmd-c}
68instead of one of the @kbd{C-w} or @kbd{M-w} commands to transfer text 70instead of one of the @kbd{C-w} or @kbd{M-w} commands to transfer text
69to the X primary selection; otherwise, Emacs will use the 71to the X primary selection; otherwise, Emacs will use the
@@ -76,6 +78,7 @@ clipboard.
76 78
77@c How is this any different to launching from a window manager menu 79@c How is this any different to launching from a window manager menu
78@c in GNU/Linux? These are sometimes not login shells either. 80@c in GNU/Linux? These are sometimes not login shells either.
81@cindex environment variables (macOS)
79Many programs which may run under Emacs, like latex or man, depend on the 82Many programs which may run under Emacs, like latex or man, depend on the
80settings of environment variables. If Emacs is launched from the shell, it 83settings of environment variables. If Emacs is launched from the shell, it
81will automatically inherit these environment variables and its subprocesses 84will automatically inherit these environment variables and its subprocesses
@@ -98,6 +101,7 @@ keys and the fullscreen behavior. To see all such options, use
98 101
99@subsection Font and Color Panels 102@subsection Font and Color Panels
100 103
104@findex ns-popup-font-panel
101The standard Mac / GNUstep font and color panels are accessible via 105The standard Mac / GNUstep font and color panels are accessible via
102Lisp commands. The Font Panel may be accessed with @kbd{M-x 106Lisp commands. The Font Panel may be accessed with @kbd{M-x
103ns-popup-font-panel}. It will set the default font in the frame most 107ns-popup-font-panel}. It will set the default font in the frame most
@@ -106,6 +110,7 @@ recently used or clicked on.
106@c To make the setting permanent, use @samp{Save Options} in the 110@c To make the setting permanent, use @samp{Save Options} in the
107@c Options menu, or run @code{menu-bar-options-save}. 111@c Options menu, or run @code{menu-bar-options-save}.
108 112
113@findex ns-popup-color-panel
109You can bring up a color panel with @kbd{M-x ns-popup-color-panel} and 114You can bring up a color panel with @kbd{M-x ns-popup-color-panel} and
110drag the color you want over the Emacs face you want to change. Normal 115drag the color you want over the Emacs face you want to change. Normal
111dragging will alter the foreground color. Shift dragging will alter the 116dragging will alter the foreground color. Shift dragging will alter the
@@ -119,6 +124,7 @@ Useful in this context is the listing of all faces obtained by
119@kbd{M-x list-faces-display}. 124@kbd{M-x list-faces-display}.
120 125
121@cindex Core Text, on macOS 126@cindex Core Text, on macOS
127@cindex font backend, on macOS
122In macOS, Emacs uses a Core Text based font backend 128In macOS, Emacs uses a Core Text based font backend
123by default. If you prefer the older font style, enter the following 129by default. If you prefer the older font style, enter the following
124at the command-line before starting Emacs: 130at the command-line before starting Emacs:
@@ -130,6 +136,7 @@ at the command-line before starting Emacs:
130 136
131@node Mac / GNUstep Events 137@node Mac / GNUstep Events
132@section Windowing System Events under macOS / GNUstep 138@section Windowing System Events under macOS / GNUstep
139@cindex events on macOS
133 140
134 Nextstep applications receive a number of special events which have 141 Nextstep applications receive a number of special events which have
135no X equivalent. These are sent as specially defined key events, which 142no X equivalent. These are sent as specially defined key events, which
@@ -152,7 +159,7 @@ You can change how Emacs responds to a @code{ns-open-file} event by
152changing the variable @code{ns-pop-up-frames}. Its default value, 159changing the variable @code{ns-pop-up-frames}. Its default value,
153@samp{fresh}, is what we have just described. A value of @code{t} 160@samp{fresh}, is what we have just described. A value of @code{t}
154means to always visit the file in a new frame. A value of @code{nil} 161means to always visit the file in a new frame. A value of @code{nil}
155means to always visit the file in an existing frame. 162means to always visit the file in the selected frame.
156 163
157@item ns-open-temp-file 164@item ns-open-temp-file
158This event occurs when another application requests that Emacs open a 165This event occurs when another application requests that Emacs open a
@@ -195,6 +202,7 @@ This event occurs when the user logs out and Emacs is still running, or when
195The default behavior is to save all file-visiting buffers. 202The default behavior is to save all file-visiting buffers.
196@end table 203@end table
197 204
205@cindex using Nextstep services (macOS)
198 Emacs also allows users to make use of Nextstep services, via a set 206 Emacs also allows users to make use of Nextstep services, via a set
199of commands whose names begin with @samp{ns-service-} and end with the 207of commands whose names begin with @samp{ns-service-} and end with the
200name of the service. Type @kbd{M-x ns-service-@key{TAB}} to 208name of the service. Type @kbd{M-x ns-service-@key{TAB}} to
diff --git a/doc/emacs/rmail.texi b/doc/emacs/rmail.texi
index cb62ce36526..a51ded1f1b6 100644
--- a/doc/emacs/rmail.texi
+++ b/doc/emacs/rmail.texi
@@ -14,6 +14,12 @@
14you receive. Rmail stores mail messages in files called Rmail files. 14you receive. Rmail stores mail messages in files called Rmail files.
15Reading the messages in an Rmail file is done in a special major mode, 15Reading the messages in an Rmail file is done in a special major mode,
16Rmail mode, which redefines most letters to run commands for managing mail. 16Rmail mode, which redefines most letters to run commands for managing mail.
17
18 Emacs also comes with a much more sophisticated and flexible
19subsystem for reading mail, called Gnus. Gnus is a very large
20package, and is therefore described in its own manual, see @ref{Top,,,
21gnus, The Gnus Newsreader}.
22
17@menu 23@menu
18* Basic: Rmail Basics. Basic concepts of Rmail, and simple use. 24* Basic: Rmail Basics. Basic concepts of Rmail, and simple use.
19* Scroll: Rmail Scrolling. Scrolling through a message. 25* Scroll: Rmail Scrolling. Scrolling through a message.
@@ -50,14 +56,15 @@ Rmail file, merges new mail in from your inboxes, displays the first
50message you haven't read yet, and lets you begin reading. The variable 56message you haven't read yet, and lets you begin reading. The variable
51@code{rmail-file-name} specifies the name of the primary Rmail file. 57@code{rmail-file-name} specifies the name of the primary Rmail file.
52 58
59@cindex current message (Rmail)
53 Rmail displays only one message in the Rmail file at a time. 60 Rmail displays only one message in the Rmail file at a time.
54The message that is shown is called the @dfn{current message}. Rmail 61The message that is shown is called the @dfn{current message}. Rmail
55mode's special commands can do such things as delete the current 62mode's special commands can do such things as delete the current
56message, copy it into another file, send a reply, or move to another 63message, copy it into another file, send a reply, or move to another
57message. You can also create multiple Rmail files and use Rmail to move 64message. You can also create multiple Rmail files (@pxref{Files}) and
58messages between them. 65use Rmail to move messages between them (@pxref{Output}).
59 66
60@cindex message number 67@cindex message number (Rmail)
61 Within the Rmail file, messages are normally arranged sequentially in 68 Within the Rmail file, messages are normally arranged sequentially in
62order of receipt; you can specify other ways to sort them (@pxref{Rmail 69order of receipt; you can specify other ways to sort them (@pxref{Rmail
63Sorting}). Messages are identified by consecutive integers which are 70Sorting}). Messages are identified by consecutive integers which are
@@ -72,8 +79,9 @@ with the @kbd{j} key (@pxref{Rmail Motion}).
72become permanent only when you save the file. You can save it with 79become permanent only when you save the file. You can save it with
73@kbd{s} (@code{rmail-expunge-and-save}), which also expunges deleted 80@kbd{s} (@code{rmail-expunge-and-save}), which also expunges deleted
74messages from the file first (@pxref{Rmail Deletion}). To save the 81messages from the file first (@pxref{Rmail Deletion}). To save the
75file without expunging, use @kbd{C-x C-s}. Rmail also saves the Rmail 82file without expunging, use @kbd{C-x C-s}. Rmail automatically saves
76file after merging new mail from an inbox file (@pxref{Rmail Inbox}). 83the Rmail file after merging new mail from an inbox file (@pxref{Rmail
84Inbox}).
77 85
78@kindex q @r{(Rmail)} 86@kindex q @r{(Rmail)}
79@findex rmail-quit 87@findex rmail-quit
@@ -93,9 +101,10 @@ Rmail buffer and its summary without expunging and saving the Rmail file.
93@section Scrolling Within a Message 101@section Scrolling Within a Message
94 102
95 When Rmail displays a message that does not fit on the screen, you 103 When Rmail displays a message that does not fit on the screen, you
96must scroll through it to read the rest. You could do this with 104must scroll through it to read the rest. You could do this with the
97@kbd{C-v}, @kbd{M-v} and @kbd{M-<}, but in Rmail scrolling is so 105usual scrolling commands: @kbd{C-v}, @kbd{M-v} and @kbd{M-<}
98frequent that it deserves to be easier. 106(@pxref{Scrolling}), but in Rmail scrolling is so frequent that it
107deserves to be easier.
99 108
100@table @kbd 109@table @kbd
101@item @key{SPC} 110@item @key{SPC}
@@ -124,9 +133,10 @@ and @kbd{M-v} (@code{scroll-down-command}) respectively.
124 The command @kbd{.} (@code{rmail-beginning-of-message}) scrolls back to the 133 The command @kbd{.} (@code{rmail-beginning-of-message}) scrolls back to the
125beginning of the selected message. This is not quite the same as @kbd{M-<}: 134beginning of the selected message. This is not quite the same as @kbd{M-<}:
126for one thing, it does not set the mark; for another, it resets the buffer 135for one thing, it does not set the mark; for another, it resets the buffer
127boundaries of the current message if you have changed them. Similarly, 136boundaries of the current message if you have changed them (e.g., by
128the command @kbd{/} (@code{rmail-end-of-message}) scrolls forward to the end 137editing, @pxref{Rmail Editing}). Similarly, the command @kbd{/}
129of the selected message. 138(@code{rmail-end-of-message}) scrolls forward to the end of the
139selected message.
130@c The comment about buffer boundaries is still true in mbox Rmail, if 140@c The comment about buffer boundaries is still true in mbox Rmail, if
131@c less likely to be relevant. 141@c less likely to be relevant.
132 142
@@ -168,11 +178,9 @@ message number @var{n} (@code{rmail-show-message}).
168Move to the last message (@code{rmail-last-message}). 178Move to the last message (@code{rmail-last-message}).
169@item < 179@item <
170Move to the first message (@code{rmail-first-message}). 180Move to the first message (@code{rmail-first-message}).
171
172@item M-s @var{regexp} @key{RET} 181@item M-s @var{regexp} @key{RET}
173Move to the next message containing a match for @var{regexp} 182Move to the next message containing a match for @var{regexp}
174(@code{rmail-search}). 183(@code{rmail-search}).
175
176@item - M-s @var{regexp} @key{RET} 184@item - M-s @var{regexp} @key{RET}
177Move to the previous message containing a match for @var{regexp}. 185Move to the previous message containing a match for @var{regexp}.
178(This is @kbd{M-s} with a negative argument.) 186(This is @kbd{M-s} with a negative argument.)
@@ -198,7 +206,8 @@ numeric argument to any of these commands serves as a repeat
198count. 206count.
199 207
200 In Rmail, you can specify a numeric argument by typing just the 208 In Rmail, you can specify a numeric argument by typing just the
201digits. You don't need to type @kbd{C-u} first. 209digits. You don't need to type @kbd{C-u} first. You can also specify
210a negative argument by typing just @kbd{-}.
202 211
203@kindex M-s @r{(Rmail)} 212@kindex M-s @r{(Rmail)}
204@findex rmail-search 213@findex rmail-search
@@ -228,7 +237,9 @@ the next message with the same subject as the current one. A prefix
228argument serves as a repeat count. With a negative argument, this 237argument serves as a repeat count. With a negative argument, this
229command moves backward, acting like @kbd{C-c C-p} 238command moves backward, acting like @kbd{C-c C-p}
230(@code{rmail-previous-same-subject}). When comparing subjects, these 239(@code{rmail-previous-same-subject}). When comparing subjects, these
231commands ignore the prefixes typically added to the subjects of replies. 240commands ignore the prefixes typically added to the subjects of
241replies. These commands are useful for reading all of the messages
242pertaining to the same subject, a.k.a.@: @dfn{thread}.
232 243
233@kindex j @r{(Rmail)} 244@kindex j @r{(Rmail)}
234@kindex > @r{(Rmail)} 245@kindex > @r{(Rmail)}
@@ -331,7 +342,7 @@ adding or removing this attribute. @xref{Rmail Attributes}.
331 When you receive mail locally, the operating system places incoming 342 When you receive mail locally, the operating system places incoming
332mail for you in a file that we call your @dfn{inbox}. When you start 343mail for you in a file that we call your @dfn{inbox}. When you start
333up Rmail, it runs a C program called @command{movemail} to copy the new 344up Rmail, it runs a C program called @command{movemail} to copy the new
334messages from your local inbox into your primary Rmail file, which 345messages from your inbox into your primary Rmail file, which
335also contains other messages saved from previous Rmail sessions. It 346also contains other messages saved from previous Rmail sessions. It
336is in this file that you actually read the mail with Rmail. This 347is in this file that you actually read the mail with Rmail. This
337operation is called @dfn{getting new mail}. You can get new mail at 348operation is called @dfn{getting new mail}. You can get new mail at
@@ -370,19 +381,12 @@ all into a separate Rmail file avoids the need for interlocking in all
370the rest of Rmail, since only Rmail operates on the Rmail file. 381the rest of Rmail, since only Rmail operates on the Rmail file.
371@end enumerate 382@end enumerate
372 383
373@c FIXME remove this in Emacs 25; won't be relevant any more.
374@cindex Babyl files
375@cindex mbox files 384@cindex mbox files
376 Rmail was originally written to use the Babyl format as its internal
377format. Since then, we have recognized that the usual inbox format
378(@samp{mbox}) on Unix and GNU systems is adequate for the job, and so
379since Emacs 23 Rmail uses that as its internal format. The Rmail file
380is still separate from the inbox file, even though their format is the
381same.
382@c But this bit should stay in some form.
383@vindex rmail-mbox-format 385@vindex rmail-mbox-format
384(In fact, there are a few slightly different mbox formats. 386 Rmail uses the standard @samp{mbox} format, introduced by Unix and
385The differences are not very important, but you can set the variable 387GNU systems for inbox files, as its internal format of Rmail files.
388(In fact, there are a few slightly different mbox formats. The
389differences are not very important, but you can set the variable
386@code{rmail-mbox-format} to tell Rmail which form your system uses. 390@code{rmail-mbox-format} to tell Rmail which form your system uses.
387See that variable's documentation for more details.) 391See that variable's documentation for more details.)
388 392
@@ -395,7 +399,8 @@ lose mail. If @code{rmail-preserve-inbox} is non-@code{nil}, then
395Rmail does not clear out the inbox file when it gets new mail. You 399Rmail does not clear out the inbox file when it gets new mail. You
396may wish to set this, for example, on a portable computer you use to 400may wish to set this, for example, on a portable computer you use to
397check your mail via POP while traveling, so that your mail will remain 401check your mail via POP while traveling, so that your mail will remain
398on the server and you can save it later on your workstation. 402on the server and you can save it later on your main desktop
403workstation.
399 404
400 In some cases, Rmail copies the new mail from the inbox file 405 In some cases, Rmail copies the new mail from the inbox file
401indirectly. First it runs the @command{movemail} program to move the mail 406indirectly. First it runs the @command{movemail} program to move the mail
@@ -427,14 +432,13 @@ into them with explicit Rmail commands (@pxref{Rmail Output}).
427@table @kbd 432@table @kbd
428@item i @var{file} @key{RET} 433@item i @var{file} @key{RET}
429Read @var{file} into Emacs and run Rmail on it (@code{rmail-input}). 434Read @var{file} into Emacs and run Rmail on it (@code{rmail-input}).
430 435@ignore
431@item M-x set-rmail-inbox-list @key{RET} @var{files} @key{RET} 436@item M-x set-rmail-inbox-list @key{RET} @var{files} @key{RET}
432Specify inbox file names for current Rmail file to get mail from. 437Specify inbox file names for current Rmail file to get mail from.
433 438@end ignore
434@item g 439@item g
435Merge new mail from current Rmail file's inboxes 440Merge new mail from current Rmail file's inboxes
436(@code{rmail-get-new-mail}). 441(@code{rmail-get-new-mail}).
437
438@item C-u g @var{file} @key{RET} 442@item C-u g @var{file} @key{RET}
439Merge new mail from inbox file @var{file}. 443Merge new mail from inbox file @var{file}.
440@end table 444@end table
@@ -468,6 +472,8 @@ item. These variables also apply to choosing a file for output
468(@pxref{Rmail Output}). 472(@pxref{Rmail Output}).
469@c FIXME matches only checked when Rmail file first visited? 473@c FIXME matches only checked when Rmail file first visited?
470 474
475@c This is commented out because we want to advertise rmail-inbox-list
476@c instead.
471@ignore 477@ignore
472@findex set-rmail-inbox-list 478@findex set-rmail-inbox-list
473 Each Rmail file can contain a list of inbox file names; you can specify 479 Each Rmail file can contain a list of inbox file names; you can specify
@@ -492,6 +498,7 @@ current Rmail file from its inboxes. If the Rmail file has no
492inboxes, @kbd{g} does nothing. The command @kbd{M-x rmail} also 498inboxes, @kbd{g} does nothing. The command @kbd{M-x rmail} also
493merges new mail into your primary Rmail file. 499merges new mail into your primary Rmail file.
494 500
501@cindex merge mail from file (Rmail)
495 To merge mail from a file that is not the usual inbox, give the 502 To merge mail from a file that is not the usual inbox, give the
496@kbd{g} key a numeric argument, as in @kbd{C-u g}. Then it reads a file 503@kbd{g} key a numeric argument, as in @kbd{C-u g}. Then it reads a file
497name and merges mail from that file. The inbox file is not deleted or 504name and merges mail from that file. The inbox file is not deleted or
@@ -518,9 +525,9 @@ file name from the message @samp{Subject} header.
518@end table 525@end table
519 526
520@kindex o @r{(Rmail)} 527@kindex o @r{(Rmail)}
521@findex rmail-output-as-seen
522@kindex C-o @r{(Rmail)}
523@findex rmail-output 528@findex rmail-output
529@kindex C-o @r{(Rmail)}
530@findex rmail-output-as-seen
524 The commands @kbd{o} and @kbd{C-o} copy the current message into a 531 The commands @kbd{o} and @kbd{C-o} copy the current message into a
525specified file, adding it at the end. The two commands differ mainly 532specified file, adding it at the end. The two commands differ mainly
526in how much to copy: @kbd{o} copies the full message headers, even if 533in how much to copy: @kbd{o} copies the full message headers, even if
@@ -529,7 +536,7 @@ currently displayed and no more. @xref{Rmail Display}. In addition,
529@kbd{o} converts the message to Babyl format (used by Rmail in Emacs 536@kbd{o} converts the message to Babyl format (used by Rmail in Emacs
530version 22 and before) if the file is in Babyl format; @kbd{C-o} 537version 22 and before) if the file is in Babyl format; @kbd{C-o}
531cannot output to Babyl files at all. 538cannot output to Babyl files at all.
532@c FIXME remove BABYL mention in Emacs 25? 539@c FIXME remove BABYL mention in some future version?
533 540
534 If the output file is currently visited in an Emacs buffer, the 541 If the output file is currently visited in an Emacs buffer, the
535output commands append the message to that buffer. It is up to you to 542output commands append the message to that buffer. It is up to you to
@@ -542,8 +549,10 @@ file. You can save the body to a file (excluding the message header)
542with the @kbd{w} command (@code{rmail-output-body-to-file}). Often 549with the @kbd{w} command (@code{rmail-output-body-to-file}). Often
543these messages contain the intended file name in the @samp{Subject} 550these messages contain the intended file name in the @samp{Subject}
544field, so the @kbd{w} command uses the @samp{Subject} field as the 551field, so the @kbd{w} command uses the @samp{Subject} field as the
545default for the output file name. However, the file name is read using 552default for the output file name (after replacing some characters that
546the minibuffer, so you can specify a different name if you wish. 553cannot be portably used in file names). However, the file name is
554read using the minibuffer, so you can specify a different name if you
555wish.
547 556
548 You can also output a message to an Rmail file chosen with a menu. 557 You can also output a message to an Rmail file chosen with a menu.
549In the Classify menu, choose the Output Rmail File menu item; then 558In the Classify menu, choose the Output Rmail File menu item; then
@@ -564,7 +573,8 @@ appears in the mode line when such a message is current.
564 If you like to keep just a single copy of every mail message, set 573 If you like to keep just a single copy of every mail message, set
565the variable @code{rmail-delete-after-output} to @code{t}; then the 574the variable @code{rmail-delete-after-output} to @code{t}; then the
566@kbd{o}, @kbd{C-o} and @kbd{w} commands delete the original message 575@kbd{o}, @kbd{C-o} and @kbd{w} commands delete the original message
567after copying it. (You can undelete it afterward if you wish.) 576after copying it. (You can undelete it afterward if you wish, see
577@ref{Rmail Deletion}.)
568 578
569@vindex rmail-output-file-alist 579@vindex rmail-output-file-alist
570 The variable @code{rmail-output-file-alist} lets you specify 580 The variable @code{rmail-output-file-alist} lets you specify
@@ -582,7 +592,7 @@ default file name for output is @var{name-exp}. If multiple elements
582match the message, the first matching element decides the default file 592match the message, the first matching element decides the default file
583name. The subexpression @var{name-exp} may be a string constant giving 593name. The subexpression @var{name-exp} may be a string constant giving
584the file name to use, or more generally it may be any Lisp expression 594the file name to use, or more generally it may be any Lisp expression
585that returns a file name as a string. @code{rmail-output-file-alist} 595that yields a file name as a string. @code{rmail-output-file-alist}
586applies to both @kbd{o} and @kbd{C-o}. 596applies to both @kbd{o} and @kbd{C-o}.
587 597
588@vindex rmail-automatic-folder-directives 598@vindex rmail-automatic-folder-directives
@@ -641,8 +651,7 @@ Make a summary of all messages containing any of the labels @var{labels}
641 The @kbd{a} (@code{rmail-add-label}) and @kbd{k} 651 The @kbd{a} (@code{rmail-add-label}) and @kbd{k}
642(@code{rmail-kill-label}) commands allow you to assign or remove any 652(@code{rmail-kill-label}) commands allow you to assign or remove any
643label on the current message. If the @var{label} argument is empty, it 653label on the current message. If the @var{label} argument is empty, it
644means to assign or remove the same label most recently assigned or 654means to assign or remove the label most recently assigned or removed.
645removed.
646 655
647 Once you have given messages labels to classify them as you wish, there 656 Once you have given messages labels to classify them as you wish, there
648are three ways to use the labels: in moving, in summaries, and in sorting. 657are three ways to use the labels: in moving, in summaries, and in sorting.
@@ -717,9 +726,10 @@ standard meaning.
717 Rmail has several commands to send outgoing mail. @xref{Sending 726 Rmail has several commands to send outgoing mail. @xref{Sending
718Mail}, for information on using Message mode, including certain 727Mail}, for information on using Message mode, including certain
719features meant to work with Rmail. What this section documents are 728features meant to work with Rmail. What this section documents are
720the special commands of Rmail for entering the mail buffer. Note that 729the special commands of Rmail for entering the mail buffer used to
721the usual keys for sending mail---@kbd{C-x m}, @kbd{C-x 4 m}, and 730compose the outgoing message. Note that the usual keys for sending
722@kbd{C-x 5 m}---also work normally in Rmail mode. 731mail---@kbd{C-x m}, @kbd{C-x 4 m}, and @kbd{C-x 5 m}---also work
732normally in Rmail mode.
723 733
724@table @kbd 734@table @kbd
725@item m 735@item m
@@ -758,9 +768,9 @@ excluded from the @samp{CC} field. They are also excluded from the
758variable is @code{nil}, then the first time you compose a reply it is 768variable is @code{nil}, then the first time you compose a reply it is
759initialized to a default value that matches your own address. 769initialized to a default value that matches your own address.
760 770
761 To omit the @samp{CC} field completely for a particular reply, enter 771 To reply only to the sender of the original message, enter
762the reply command with a numeric argument: @kbd{C-u r} or @kbd{1 r}. 772the reply command with a numeric argument: @kbd{C-u r} or @kbd{1 r}.
763This means to reply only to the sender of the original message. 773This omits the @samp{CC} field completely for a particular reply.
764 774
765 Once the mail composition buffer has been initialized, editing and 775 Once the mail composition buffer has been initialized, editing and
766sending the mail goes as usual (@pxref{Sending Mail}). You can edit 776sending the mail goes as usual (@pxref{Sending Mail}). You can edit
@@ -930,7 +940,7 @@ commas.
930makes a partial summary mentioning only the messages that have one or 940makes a partial summary mentioning only the messages that have one or
931more recipients matching the regular expression @var{rcpts}. This is matched 941more recipients matching the regular expression @var{rcpts}. This is matched
932against the @samp{To}, @samp{From}, and @samp{CC} headers (supply a prefix 942against the @samp{To}, @samp{From}, and @samp{CC} headers (supply a prefix
933argument to exclude this header). 943argument to exclude the @samp{CC} header).
934 944
935@kindex C-M-t @r{(Rmail)} 945@kindex C-M-t @r{(Rmail)}
936@findex rmail-summary-by-topic 946@findex rmail-summary-by-topic
@@ -976,6 +986,7 @@ different lines. It doesn't matter what Emacs command you use to move
976point; whichever line point is on at the end of the command, that 986point; whichever line point is on at the end of the command, that
977message is selected in the Rmail buffer. 987message is selected in the Rmail buffer.
978 988
989@vindex rmail-summary-scroll-between-messages
979 Almost all Rmail commands work in the summary buffer as well as in 990 Almost all Rmail commands work in the summary buffer as well as in
980the Rmail buffer. Thus, @kbd{d} in the summary buffer deletes the 991the Rmail buffer. Thus, @kbd{d} in the summary buffer deletes the
981current message, @kbd{u} undeletes, and @kbd{x} expunges. (However, 992current message, @kbd{u} undeletes, and @kbd{x} expunges. (However,
@@ -984,8 +995,12 @@ relevant direction, the delete commands go to the first or last
984message, rather than staying on the current message.) @kbd{o} and 995message, rather than staying on the current message.) @kbd{o} and
985@kbd{C-o} output the current message to a FILE; @kbd{r} starts a reply 996@kbd{C-o} output the current message to a FILE; @kbd{r} starts a reply
986to it; etc. You can scroll the current message while remaining in the 997to it; etc. You can scroll the current message while remaining in the
987summary buffer using @key{SPC} and @key{DEL}. 998summary buffer using @key{SPC} and @key{DEL}. However, in the summary
988@c rmail-summary-scroll-between-messages not mentioned. 999buffer scrolling past the end or the beginning of a message with
1000@key{SPC} or @key{DEL} goes, respectively, to the next or previous
1001undeleted message. Customize the
1002@code{rmail-summary-scroll-between-messages} option to nil to disable
1003scrolling to next/previous messages.
989 1004
990@findex rmail-summary-undelete-many 1005@findex rmail-summary-undelete-many
991@kbd{M-u} (@code{rmail-summary-undelete-many}) undeletes all deleted 1006@kbd{M-u} (@code{rmail-summary-undelete-many}) undeletes all deleted
@@ -1128,8 +1143,8 @@ biggest to smallest, or in reverse alphabetical order.
1128 1143
1129 The same keys in the summary buffer run similar functions; for 1144 The same keys in the summary buffer run similar functions; for
1130example, @kbd{C-c C-s C-l} runs @code{rmail-summary-sort-by-lines}. 1145example, @kbd{C-c C-s C-l} runs @code{rmail-summary-sort-by-lines}.
1131Note that these commands always sort the whole Rmail buffer, even if the 1146These commands always sort the whole Rmail buffer, even if the summary
1132summary is only showing a subset of messages. 1147is only showing a subset of messages.
1133 1148
1134 Note that you cannot undo a sort, so you may wish to save the Rmail 1149 Note that you cannot undo a sort, so you may wish to save the Rmail
1135buffer before sorting it. 1150buffer before sorting it.
@@ -1210,14 +1225,15 @@ Toggle between @acronym{MIME} display and raw message
1210@end table 1225@end table
1211 1226
1212 Each plain-text @acronym{MIME} part is initially displayed 1227 Each plain-text @acronym{MIME} part is initially displayed
1213immediately after its tagline, as part of the Rmail buffer, while 1228immediately after its tagline, as part of the Rmail buffer (unless the
1214@acronym{MIME} parts of other types are represented only by their 1229message has an @acronym{HTML} part, see below), while @acronym{MIME}
1215taglines, with their actual contents hidden. In either case, you can 1230parts of other types are represented only by their taglines, with
1216toggle a @acronym{MIME} part between its displayed and hidden 1231their actual contents hidden. In either case, you can toggle a
1217states by typing @key{RET} anywhere in the part---or anywhere in its 1232@acronym{MIME} part between its displayed and hidden states by typing
1218tagline (except for buttons for other actions, if there are any). Type 1233@key{RET} anywhere in the part---or anywhere in its tagline (except
1219@key{RET} (or click with the mouse) to activate a tagline button, and 1234for buttons for other actions, if there are any). Type @key{RET} (or
1220@key{TAB} to cycle point between tagline buttons. 1235click with the mouse) to activate a tagline button, and @key{TAB} to
1236cycle point between tagline buttons.
1221 1237
1222 The @kbd{v} (@code{rmail-mime}) command toggles between the default 1238 The @kbd{v} (@code{rmail-mime}) command toggles between the default
1223@acronym{MIME} display described above, and a raw display showing 1239@acronym{MIME} display described above, and a raw display showing
@@ -1322,17 +1338,20 @@ Edit the current message as ordinary text.
1322Rmail mode into Rmail Edit mode, another major mode which is nearly the 1338Rmail mode into Rmail Edit mode, another major mode which is nearly the
1323same as Text mode. The mode line indicates this change. 1339same as Text mode. The mode line indicates this change.
1324 1340
1341@findex rmail-cease-edit
1342@findex rmail-abort-edit
1325 In Rmail Edit mode, letters insert themselves as usual and the Rmail 1343 In Rmail Edit mode, letters insert themselves as usual and the Rmail
1326commands are not available. You can edit the message body and header 1344commands are not available. You can edit the message body and header
1327fields. When you are finished editing the message, type @kbd{C-c C-c} 1345fields. When you are finished editing the message, type @kbd{C-c C-c}
1328to switch back to Rmail mode. Alternatively, you can return to Rmail 1346(@code{rmail-cease-edit}) to switch back to Rmail mode.
1329mode but cancel any editing that you have done, by typing @kbd{C-c C-]}. 1347Alternatively, you can return to Rmail mode but cancel any editing
1348that you have done, by typing @kbd{C-c C-]} (@code{rmail-abort-edit}).
1330 1349
1331@vindex rmail-edit-mode-hook 1350@vindex rmail-edit-mode-hook
1332 Entering Rmail Edit mode runs the hook @code{text-mode-hook}; then 1351 Entering Rmail Edit mode runs the hook @code{text-mode-hook}; then
1333it runs the hook @code{rmail-edit-mode-hook} (@pxref{Hooks}). 1352it runs the hook @code{rmail-edit-mode-hook} (@pxref{Hooks}).
1334Returning to ordinary Rmail mode adds the attribute @samp{edited} to 1353Returning to ordinary Rmail mode adds the attribute @samp{edited} to
1335the message, if you have made any changes in it. 1354the message, if you have made any changes in it (@pxref{Rmail Attributes}).
1336 1355
1337@node Rmail Digest 1356@node Rmail Digest
1338@section Digest Messages 1357@section Digest Messages
@@ -1384,9 +1403,9 @@ version. There are two versions of the @command{movemail} program: the
1384GNU Mailutils version (@pxref{movemail,,,mailutils,GNU mailutils}), 1403GNU Mailutils version (@pxref{movemail,,,mailutils,GNU mailutils}),
1385and an Emacs-specific version that is built and installed unless Emacs 1404and an Emacs-specific version that is built and installed unless Emacs
1386was configured @option{--with-mailutils} in effect. 1405was configured @option{--with-mailutils} in effect.
1387The two @command{mailtool} versions support the same 1406The two @command{movemail} versions support the same
1388command line syntax and the same basic subset of options. However, the 1407command line syntax and the same basic subset of options. However, the
1389Mailutils version offers additional features. 1408Mailutils version offers additional features and is more secure.
1390 1409
1391 The Emacs version of @command{movemail} can retrieve mail from the 1410 The Emacs version of @command{movemail} can retrieve mail from the
1392usual Unix mailbox formats. @strong{Warning}: Although it can also use the POP3 1411usual Unix mailbox formats. @strong{Warning}: Although it can also use the POP3
@@ -1451,8 +1470,8 @@ denotes the name of @code{maildir} mailbox, e.g.,
1451@code{maildir:///mail/inbox}. 1470@code{maildir:///mail/inbox}.
1452 1471
1453@item file 1472@item file
1454Any local mailbox format. Its actual format is detected automatically 1473Any local file in mailbox format. Its actual format is detected
1455by @command{movemail}. 1474automatically by @command{movemail}.
1456 1475
1457@item pop 1476@item pop
1458@itemx pops 1477@itemx pops
@@ -1495,19 +1514,19 @@ listed in @code{rmail-movemail-search-path}, then in @code{exec-path}
1495@section Retrieving Mail from Remote Mailboxes 1514@section Retrieving Mail from Remote Mailboxes
1496@pindex movemail 1515@pindex movemail
1497 1516
1498 Some sites use a method called POP for accessing users' inbox data 1517 Some sites use a method called POP3 for accessing users' inbox data
1499instead of storing the data in inbox files. The Mailutils 1518instead of storing the data in inbox files. The Mailutils
1500@command{movemail} by default supports POP with TLS encryption. 1519@command{movemail} by default supports POP3 with TLS encryption.
1501@strong{Warning:} Although the @command{Emacs movemail} supports POP, 1520@strong{Warning:} Although the @command{Emacs movemail} supports POP3,
1502its use for this is not recommended since it does not support encrypted 1521its use for this is not recommended since it does not support encrypted
1503connections---the Mailutils version does. 1522connections---the Mailutils version does.
1504Both versions of @command{movemail} work only with POP3, not with 1523Both versions of @command{movemail} work only with POP3, not with
1505older versions of POP. 1524older versions of POP3.
1506 1525
1507@cindex @env{MAILHOST} environment variable 1526@cindex @env{MAILHOST} environment variable
1508@cindex POP mailboxes 1527@cindex POP3 mailboxes
1509 You can specify 1528 You can specify
1510a POP inbox by using a POP @dfn{URL} (@pxref{Movemail}). A POP 1529a POP3 inbox by using a POP3 @dfn{URL} (@pxref{Movemail}). A POP3
1511@acronym{URL} is of the form 1530@acronym{URL} is of the form
1512@samp{pop://@var{username}@@@var{hostname}:@var{port}}, where 1531@samp{pop://@var{username}@@@var{hostname}:@var{port}}, where
1513@var{hostname} and @var{port} are the host name (or IP address) 1532@var{hostname} and @var{port} are the host name (or IP address)
@@ -1522,11 +1541,11 @@ If using Mailutils @command{movemail}, you may wish to use
1522@samp{pops} in place of @samp{pop}. 1541@samp{pops} in place of @samp{pop}.
1523 1542
1524 For backward compatibility, Rmail also supports an alternative way of 1543 For backward compatibility, Rmail also supports an alternative way of
1525specifying remote POP mailboxes. Specifying an inbox name in the form 1544specifying remote POP3 mailboxes. Specifying an inbox name in the form
1526@samp{po:@var{username}:@var{hostname}:@var{port}} is equivalent to 1545@samp{po:@var{username}:@var{hostname}:@var{port}} is equivalent to
1527@samp{pop://@var{username}@@@var{hostname}:@var{port}}. If you omit the 1546@samp{pop://@var{username}@@@var{hostname}:@var{port}}. If you omit the
1528@var{:hostname} part, the @env{MAILHOST} environment variable specifies 1547@var{:hostname} part, the @env{MAILHOST} environment variable specifies
1529the machine on which to look for the POP server. 1548the machine on which to look for the POP3 server.
1530 1549
1531@cindex IMAP mailboxes 1550@cindex IMAP mailboxes
1532 Another method for accessing remote mailboxes is IMAP@. This method is 1551 Another method for accessing remote mailboxes is IMAP@. This method is
@@ -1561,15 +1580,15 @@ set the variable @code{rmail-movemail-flags} a list of the flags you
1561wish to use. Do not use this variable to pass the @samp{-p} flag to 1580wish to use. Do not use this variable to pass the @samp{-p} flag to
1562preserve your inbox contents; use @code{rmail-preserve-inbox} instead. 1581preserve your inbox contents; use @code{rmail-preserve-inbox} instead.
1563 1582
1564@cindex Kerberos POP authentication 1583@cindex Kerberos POP3 authentication
1565 The @command{movemail} program installed at your site may support 1584 The @command{movemail} program installed at your site may support
1566Kerberos authentication. If it is supported, it is used by default 1585Kerberos authentication. If it is supported, it is used by default
1567whenever you attempt to retrieve POP mail when 1586whenever you attempt to retrieve POP3 mail when
1568@code{rmail-remote-password} and @code{rmail-remote-password-required} 1587@code{rmail-remote-password} and @code{rmail-remote-password-required}
1569are unset. 1588are unset.
1570 1589
1571@cindex reverse order in POP inboxes 1590@cindex reverse order in POP3 inboxes
1572 Some POP servers store messages in reverse order. If your server does 1591 Some POP3 servers store messages in reverse order. If your server does
1573this, and you would rather read your mail in the order in which it was 1592this, and you would rather read your mail in the order in which it was
1574received, you can tell @command{movemail} to reverse the order of 1593received, you can tell @command{movemail} to reverse the order of
1575downloaded messages by adding the @samp{-r} flag to 1594downloaded messages by adding the @samp{-r} flag to