diff options
| author | Eli Zaretskii | 2000-08-22 08:28:59 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-08-22 08:28:59 +0000 |
| commit | 2a8868924dba253c22a02915a33e06390bd2dcff (patch) | |
| tree | 32421dce7aab05767b96016979eb337859d4cfc6 | |
| parent | db7a3ede99dc0417686239892e7b73c167f06eb8 (diff) | |
| download | emacs-2a8868924dba253c22a02915a33e06390bd2dcff.tar.gz emacs-2a8868924dba253c22a02915a33e06390bd2dcff.zip | |
Document the way Emacs prompts for a safe coding system when the
buffer is saved.
| -rw-r--r-- | man/mule.texi | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/man/mule.texi b/man/mule.texi index 89d46cd1683..d8b9265d9c8 100644 --- a/man/mule.texi +++ b/man/mule.texi | |||
| @@ -636,6 +636,34 @@ a different coding system, you can specify a different coding system for | |||
| 636 | the buffer using @code{set-buffer-file-coding-system} (@pxref{Specify | 636 | the buffer using @code{set-buffer-file-coding-system} (@pxref{Specify |
| 637 | Coding}). | 637 | Coding}). |
| 638 | 638 | ||
| 639 | While editing a file, you will sometimes insert characters which | ||
| 640 | cannot be encoded with the coding system stored in | ||
| 641 | @code{buffer-file-coding-system}. For example, suppose you start with | ||
| 642 | an ASCII file and insert a few Latin-1 characters into it. Or you could | ||
| 643 | edit a text file in Polish encoded in @code{iso-8859-2} and add to it | ||
| 644 | translations of several Polish words into Russian. When you save the | ||
| 645 | buffer, Emacs can no longer use the previous value of the buffer's | ||
| 646 | coding system, because the characters you added cannot be encoded by | ||
| 647 | that coding system. | ||
| 648 | |||
| 649 | When that happens, Emacs tries the most-preferred coding system (set | ||
| 650 | by @kbd{M-x prefer-coding-system} or @kbd{M-x | ||
| 651 | set-language-environment}), and if that coding system can safely encode | ||
| 652 | all of the characters in the buffer, Emacs uses it, and stores its value | ||
| 653 | in @code{buffer-file-coding-system}. Otherwise, Emacs pops up a window | ||
| 654 | with a list of coding systems suitable for encoding the buffer, and | ||
| 655 | prompts you to choose one of those coding systems. | ||
| 656 | |||
| 657 | If you insert characters which cannot be encoded by the buffer's | ||
| 658 | coding system while editing a mail message, Emacs behaves a bit | ||
| 659 | differently. It additionally checks whether the most-preferred coding | ||
| 660 | system is recommended for use in MIME messages; if it isn't, Emacs tells | ||
| 661 | you that the most-preferred coding system is not recommended and prompts | ||
| 662 | you for another coding system. This is so you won't inadvertently send | ||
| 663 | a message encoded in a way that your recipient's mail software will have | ||
| 664 | difficulty decoding. (If you do want to use the most-preferred coding | ||
| 665 | system, you can type its name to Emacs prompt anyway.) | ||
| 666 | |||
| 639 | @vindex sendmail-coding-system | 667 | @vindex sendmail-coding-system |
| 640 | When you send a message with Mail mode (@pxref{Sending Mail}), Emacs has | 668 | When you send a message with Mail mode (@pxref{Sending Mail}), Emacs has |
| 641 | four different ways to determine the coding system to use for encoding | 669 | four different ways to determine the coding system to use for encoding |