aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/emacs/ChangeLog9
-rw-r--r--doc/emacs/mule.texi51
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 @@
12012-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
12012-04-12 Chong Yidong <cyd@gnu.org> 102012-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,
617it prompts for you to specify one. This has the same effect as using 617it 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
660This activates the input method ``german-prefix'' automatically in the 660This automatically activates the input method ``german-prefix'' in
661Text mode. 661Text 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
672key sequence) to type in order to input the character following point, 672key sequence) to type in order to input the character following point,
673using the selected keyboard layout. The command @kbd{C-u C-x =} also 673using the selected keyboard layout. The command @kbd{C-u C-x =} also
674shows that information in addition to the other information about the 674shows that information, in addition to other information about the
675character. 675character.
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}
712characters, a coding system can perform end-of-line conversion. Emacs 712characters, a coding system can perform end-of-line conversion. Emacs
713handles three different conventions for how to separate lines in a file: 713handles three different conventions for how to separate lines in a file:
714newline, carriage-return linefeed, and just carriage-return. 714newline (``unix''), carriage-return linefeed (``dos''), and just
715carriage-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.
751For example, if the file appears to use the sequence carriage-return 752For example, if the file appears to use the sequence carriage-return
752linefeed to separate lines, DOS end-of-line conversion will be used. 753linefeed 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
755exactly what to do for end-of-line conversion: 756exactly what to do for end-of-line conversion:
756 757
757@table @code 758@table @code
758@item @dots{}-unix 759@item @dots{}-unix
759Don't do any end-of-line conversion; assume the file uses 760Don't do any end-of-line conversion; assume the file uses
760newline to separate lines. (This is the convention normally used 761newline to separate lines. (This is the convention normally used
761on Unix and GNU systems.) 762on Unix and GNU systems, and Mac OS X.)
762 763
763@item @dots{}-dos 764@item @dots{}-dos
764Assume the file uses carriage-return linefeed to separate lines, and do 765Assume the file uses carriage-return linefeed to separate lines, and do
765the appropriate conversion. (This is the convention normally used on 766the appropriate conversion. (This is the convention normally used on
766Microsoft systems.@footnote{It is also specified for MIME @samp{text/*} 767Microsoft systems.@footnote{It is also specified for MIME @samp{text/*}
767bodies and in other network transport contexts. It is different 768bodies and in other network transport contexts. It is different
768from the SGML reference syntax record-start/record-end format which 769from the SGML reference syntax record-start/record-end format, which
769Emacs doesn't support directly.}) 770Emacs doesn't support directly.})
770 771
771@item @dots{}-mac 772@item @dots{}-mac
772Assume the file uses carriage-return to separate lines, and do the 773Assume the file uses carriage-return to separate lines, and do the
773appropriate conversion. (This is the convention normally used on the 774appropriate conversion. (This was the convention used on the
774Macintosh system.) 775Macintosh 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
793not meant to encode non-@acronym{ASCII} characters. With 794not 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
909one specific operation. That's because many Emacs Lisp source files 910one specific operation. That's because some Emacs Lisp source files
910in the Emacs distribution contain non-@acronym{ASCII} characters encoded in the 911in the Emacs distribution contain non-@acronym{ASCII} characters encoded in the
911coding system @code{iso-2022-7bit}, and they won't be 912coding system @code{iso-2022-7bit}, and they won't be
912decoded correctly when you visit those files if you suppress the 913decoded correctly when you visit those files if you suppress the
913escape sequence detection. 914escape 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
920the strongest way to specify the coding system for certain patterns of 921the strongest way to specify the coding system for certain patterns of
921file names, or for files containing certain patterns; these variables 922file names, or for files containing certain patterns, respectively.
922even override @samp{-*-coding:-*-} tags in the file itself. Emacs 923These variables even override @samp{-*-coding:-*-} tags in the file
924itself. For example, Emacs
923uses @code{auto-coding-alist} for tar and archive files, to prevent it 925uses @code{auto-coding-alist} for tar and archive files, to prevent it
924from being confused by a @samp{-*-coding:-*-} tag in a member of the 926from being confused by a @samp{-*-coding:-*-} tag in a member of the
925archive and thinking it applies to the archive file as a whole. 927archive 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.
926Likewise, Emacs uses @code{auto-coding-regexp-alist} to ensure that 930Likewise, Emacs uses @code{auto-coding-regexp-alist} to ensure that
927RMAIL files, whose names in general don't match any particular 931RMAIL files, whose names in general don't match any particular
928pattern, are decoded correctly. One of the builtin 932pattern, 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.
939Unlike 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
934automatically from the coding system it is written in, as if it were a 946automatically from the coding system it is written in, as if it were a
935separate file. This uses the priority list of coding systems that you 947separate file. This uses the priority list of coding systems that you
936have specified. If a MIME message specifies a character set, Rmail 948have specified. If a MIME message specifies a character set, Rmail
937obeys that specification, unless @code{rmail-decode-mime-charset} is 949obeys that specification. For reading and saving Rmail files
938@code{nil}. For reading and saving Rmail files themselves, Emacs uses 950themselves, Emacs uses the coding system specified by the variable
939the 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},
941which means that Rmail files are not translated (they are read and 952which means that Rmail files are not translated (they are read and
942written in the Emacs internal character code). 953written in the Emacs internal character code).