diff options
| -rw-r--r-- | doc/emacs/ChangeLog | 9 | ||||
| -rw-r--r-- | doc/emacs/mule.texi | 51 |
2 files changed, 40 insertions, 20 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 5b4ab363202..b8c96d83fa5 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2012-04-13 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mule.texi (Select Input Method, Coding Systems, Recognize Coding): | ||
| 4 | Copyedits. | ||
| 5 | (Coding Systems): Mac OS X apparently uses newlines for EOL. | ||
| 6 | (Recognize Coding): Remove old auto-coding-regexp-alist example. | ||
| 7 | auto-coding-functions does not override coding: tags. | ||
| 8 | Remove rmail-decode-mime-charset; it no longer has any effect. | ||
| 9 | |||
| 1 | 2012-04-12 Chong Yidong <cyd@gnu.org> | 10 | 2012-04-12 Chong Yidong <cyd@gnu.org> |
| 2 | 11 | ||
| 3 | * custom.texi (Creating Custom Themes): Add reference to Custom | 12 | * custom.texi (Creating Custom Themes): Add reference to Custom |
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi index 08d764ea85c..4cf66c14138 100644 --- a/doc/emacs/mule.texi +++ b/doc/emacs/mule.texi | |||
| @@ -614,7 +614,7 @@ turn off the input method temporarily. To do this, type @kbd{C-\} | |||
| 614 | @kbd{C-\} again. | 614 | @kbd{C-\} again. |
| 615 | 615 | ||
| 616 | If you type @kbd{C-\} and you have not yet selected an input method, | 616 | If you type @kbd{C-\} and you have not yet selected an input method, |
| 617 | it prompts for you to specify one. This has the same effect as using | 617 | it prompts you to specify one. This has the same effect as using |
| 618 | @kbd{C-x @key{RET} C-\} to specify an input method. | 618 | @kbd{C-x @key{RET} C-\} to specify an input method. |
| 619 | 619 | ||
| 620 | When invoked with a numeric argument, as in @kbd{C-u C-\}, | 620 | When invoked with a numeric argument, as in @kbd{C-u C-\}, |
| @@ -657,7 +657,7 @@ automatically. For example: | |||
| 657 | @end lisp | 657 | @end lisp |
| 658 | 658 | ||
| 659 | @noindent | 659 | @noindent |
| 660 | This activates the input method ``german-prefix'' automatically in the | 660 | This automatically activates the input method ``german-prefix'' in |
| 661 | Text mode. | 661 | Text mode. |
| 662 | 662 | ||
| 663 | @findex quail-set-keyboard-layout | 663 | @findex quail-set-keyboard-layout |
| @@ -671,7 +671,7 @@ the command @kbd{M-x quail-set-keyboard-layout}. | |||
| 671 | You can use the command @kbd{M-x quail-show-key} to show what key (or | 671 | You can use the command @kbd{M-x quail-show-key} to show what key (or |
| 672 | key sequence) to type in order to input the character following point, | 672 | key sequence) to type in order to input the character following point, |
| 673 | using the selected keyboard layout. The command @kbd{C-u C-x =} also | 673 | using the selected keyboard layout. The command @kbd{C-u C-x =} also |
| 674 | shows that information in addition to the other information about the | 674 | shows that information, in addition to other information about the |
| 675 | character. | 675 | character. |
| 676 | 676 | ||
| 677 | @findex list-input-methods | 677 | @findex list-input-methods |
| @@ -711,7 +711,8 @@ system; for example, to visit a file encoded in codepage 850, type | |||
| 711 | In addition to converting various representations of non-@acronym{ASCII} | 711 | In addition to converting various representations of non-@acronym{ASCII} |
| 712 | characters, a coding system can perform end-of-line conversion. Emacs | 712 | characters, a coding system can perform end-of-line conversion. Emacs |
| 713 | handles three different conventions for how to separate lines in a file: | 713 | handles three different conventions for how to separate lines in a file: |
| 714 | newline, carriage-return linefeed, and just carriage-return. | 714 | newline (``unix''), carriage-return linefeed (``dos''), and just |
| 715 | carriage-return (``mac''). | ||
| 715 | 716 | ||
| 716 | @table @kbd | 717 | @table @kbd |
| 717 | @item C-h C @var{coding} @key{RET} | 718 | @item C-h C @var{coding} @key{RET} |
| @@ -751,27 +752,27 @@ end-of-line conversion to be decided based on the contents of each file. | |||
| 751 | For example, if the file appears to use the sequence carriage-return | 752 | For example, if the file appears to use the sequence carriage-return |
| 752 | linefeed to separate lines, DOS end-of-line conversion will be used. | 753 | linefeed to separate lines, DOS end-of-line conversion will be used. |
| 753 | 754 | ||
| 754 | Each of the listed coding systems has three variants which specify | 755 | Each of the listed coding systems has three variants, which specify |
| 755 | exactly what to do for end-of-line conversion: | 756 | exactly what to do for end-of-line conversion: |
| 756 | 757 | ||
| 757 | @table @code | 758 | @table @code |
| 758 | @item @dots{}-unix | 759 | @item @dots{}-unix |
| 759 | Don't do any end-of-line conversion; assume the file uses | 760 | Don't do any end-of-line conversion; assume the file uses |
| 760 | newline to separate lines. (This is the convention normally used | 761 | newline to separate lines. (This is the convention normally used |
| 761 | on Unix and GNU systems.) | 762 | on Unix and GNU systems, and Mac OS X.) |
| 762 | 763 | ||
| 763 | @item @dots{}-dos | 764 | @item @dots{}-dos |
| 764 | Assume the file uses carriage-return linefeed to separate lines, and do | 765 | Assume the file uses carriage-return linefeed to separate lines, and do |
| 765 | the appropriate conversion. (This is the convention normally used on | 766 | the appropriate conversion. (This is the convention normally used on |
| 766 | Microsoft systems.@footnote{It is also specified for MIME @samp{text/*} | 767 | Microsoft systems.@footnote{It is also specified for MIME @samp{text/*} |
| 767 | bodies and in other network transport contexts. It is different | 768 | bodies and in other network transport contexts. It is different |
| 768 | from the SGML reference syntax record-start/record-end format which | 769 | from the SGML reference syntax record-start/record-end format, which |
| 769 | Emacs doesn't support directly.}) | 770 | Emacs doesn't support directly.}) |
| 770 | 771 | ||
| 771 | @item @dots{}-mac | 772 | @item @dots{}-mac |
| 772 | Assume the file uses carriage-return to separate lines, and do the | 773 | Assume the file uses carriage-return to separate lines, and do the |
| 773 | appropriate conversion. (This is the convention normally used on the | 774 | appropriate conversion. (This was the convention used on the |
| 774 | Macintosh system.) | 775 | Macintosh system prior to OS X.) |
| 775 | @end table | 776 | @end table |
| 776 | 777 | ||
| 777 | These variant coding systems are omitted from the | 778 | These variant coding systems are omitted from the |
| @@ -789,7 +790,7 @@ be deduced from the text itself. | |||
| 789 | 790 | ||
| 790 | @cindex @code{raw-text}, coding system | 791 | @cindex @code{raw-text}, coding system |
| 791 | The coding system @code{raw-text} is good for a file which is mainly | 792 | The coding system @code{raw-text} is good for a file which is mainly |
| 792 | @acronym{ASCII} text, but may contain byte values above 127 which are | 793 | @acronym{ASCII} text, but may contain byte values above 127 that are |
| 793 | not meant to encode non-@acronym{ASCII} characters. With | 794 | not meant to encode non-@acronym{ASCII} characters. With |
| 794 | @code{raw-text}, Emacs copies those byte values unchanged, and sets | 795 | @code{raw-text}, Emacs copies those byte values unchanged, and sets |
| 795 | @code{enable-multibyte-characters} to @code{nil} in the current buffer | 796 | @code{enable-multibyte-characters} to @code{nil} in the current buffer |
| @@ -906,37 +907,47 @@ the buffer. | |||
| 906 | 907 | ||
| 907 | The default value of @code{inhibit-iso-escape-detection} is | 908 | The default value of @code{inhibit-iso-escape-detection} is |
| 908 | @code{nil}. We recommend that you not change it permanently, only for | 909 | @code{nil}. We recommend that you not change it permanently, only for |
| 909 | one specific operation. That's because many Emacs Lisp source files | 910 | one specific operation. That's because some Emacs Lisp source files |
| 910 | in the Emacs distribution contain non-@acronym{ASCII} characters encoded in the | 911 | in the Emacs distribution contain non-@acronym{ASCII} characters encoded in the |
| 911 | coding system @code{iso-2022-7bit}, and they won't be | 912 | coding system @code{iso-2022-7bit}, and they won't be |
| 912 | decoded correctly when you visit those files if you suppress the | 913 | decoded correctly when you visit those files if you suppress the |
| 913 | escape sequence detection. | 914 | escape sequence detection. |
| 915 | @c I count a grand total of 3 such files, so is the above really true? | ||
| 914 | 916 | ||
| 915 | @vindex auto-coding-alist | 917 | @vindex auto-coding-alist |
| 916 | @vindex auto-coding-regexp-alist | 918 | @vindex auto-coding-regexp-alist |
| 917 | @vindex auto-coding-functions | 919 | The variables @code{auto-coding-alist} and |
| 918 | The variables @code{auto-coding-alist}, | 920 | @code{auto-coding-regexp-alist} are |
| 919 | @code{auto-coding-regexp-alist} and @code{auto-coding-functions} are | ||
| 920 | the strongest way to specify the coding system for certain patterns of | 921 | the strongest way to specify the coding system for certain patterns of |
| 921 | file names, or for files containing certain patterns; these variables | 922 | file names, or for files containing certain patterns, respectively. |
| 922 | even override @samp{-*-coding:-*-} tags in the file itself. Emacs | 923 | These variables even override @samp{-*-coding:-*-} tags in the file |
| 924 | itself. For example, Emacs | ||
| 923 | uses @code{auto-coding-alist} for tar and archive files, to prevent it | 925 | uses @code{auto-coding-alist} for tar and archive files, to prevent it |
| 924 | from being confused by a @samp{-*-coding:-*-} tag in a member of the | 926 | from being confused by a @samp{-*-coding:-*-} tag in a member of the |
| 925 | archive and thinking it applies to the archive file as a whole. | 927 | archive and thinking it applies to the archive file as a whole. |
| 928 | @ignore | ||
| 929 | @c This describes old-style BABYL files, which are no longer relevant. | ||
| 926 | Likewise, Emacs uses @code{auto-coding-regexp-alist} to ensure that | 930 | Likewise, Emacs uses @code{auto-coding-regexp-alist} to ensure that |
| 927 | RMAIL files, whose names in general don't match any particular | 931 | RMAIL files, whose names in general don't match any particular |
| 928 | pattern, are decoded correctly. One of the builtin | 932 | pattern, are decoded correctly. |
| 933 | @end ignore | ||
| 934 | |||
| 935 | @vindex auto-coding-functions | ||
| 936 | Another way to specify a coding system is with the variable | ||
| 937 | @code{auto-coding-functions}. For example, one of the builtin | ||
| 929 | @code{auto-coding-functions} detects the encoding for XML files. | 938 | @code{auto-coding-functions} detects the encoding for XML files. |
| 939 | Unlike the previous two, this variable does not override any | ||
| 940 | @samp{-*-coding:-*-} tag. | ||
| 930 | 941 | ||
| 942 | @c FIXME? This seems somewhat out of place. Move to the Rmail section? | ||
| 931 | @vindex rmail-decode-mime-charset | 943 | @vindex rmail-decode-mime-charset |
| 932 | @vindex rmail-file-coding-system | 944 | @vindex rmail-file-coding-system |
| 933 | When you get new mail in Rmail, each message is translated | 945 | When you get new mail in Rmail, each message is translated |
| 934 | automatically from the coding system it is written in, as if it were a | 946 | automatically from the coding system it is written in, as if it were a |
| 935 | separate file. This uses the priority list of coding systems that you | 947 | separate file. This uses the priority list of coding systems that you |
| 936 | have specified. If a MIME message specifies a character set, Rmail | 948 | have specified. If a MIME message specifies a character set, Rmail |
| 937 | obeys that specification, unless @code{rmail-decode-mime-charset} is | 949 | obeys that specification. For reading and saving Rmail files |
| 938 | @code{nil}. For reading and saving Rmail files themselves, Emacs uses | 950 | themselves, Emacs uses the coding system specified by the variable |
| 939 | the coding system specified by the variable | ||
| 940 | @code{rmail-file-coding-system}. The default value is @code{nil}, | 951 | @code{rmail-file-coding-system}. The default value is @code{nil}, |
| 941 | which means that Rmail files are not translated (they are read and | 952 | which means that Rmail files are not translated (they are read and |
| 942 | written in the Emacs internal character code). | 953 | written in the Emacs internal character code). |