comparison man/mule.texi @ 45451:99b053f1b7f6

(Recognize Coding): Note addition of `auto-coding-functions'.
author Colin Walters <walters@gnu.org>
date Tue, 21 May 2002 21:15:43 +0000
parents 79f4beb26480
children dfc0a989ae61
comparison
equal deleted inserted replaced
45450:3b83834d8f74 45451:99b053f1b7f6
791 explicitly in the file, that overrides 791 explicitly in the file, that overrides
792 @code{file-coding-system-alist}. 792 @code{file-coding-system-alist}.
793 793
794 @vindex auto-coding-alist 794 @vindex auto-coding-alist
795 @vindex auto-coding-regexp-alist 795 @vindex auto-coding-regexp-alist
796 The variables @code{auto-coding-alist} and 796 @vindex auto-coding-functions
797 @code{auto-coding-regexp-alist} are the strongest way to specify the 797 The variables @code{auto-coding-alist},
798 coding system for certain patterns of file names, or for files 798 @code{auto-coding-regexp-alist} and @code{auto-coding-functions} are
799 containing certain patterns; these variables even override 799 the strongest way to specify the coding system for certain patterns of
800 @samp{-*-coding:-*-} tags in the file itself. Emacs uses 800 file names, or for files containing certain patterns; these variables
801 @code{auto-coding-alist} for tar and archive files, to prevent it 801 even override @samp{-*-coding:-*-} tags in the file itself. Emacs
802 uses @code{auto-coding-alist} for tar and archive files, to prevent it
802 from being confused by a @samp{-*-coding:-*-} tag in a member of the 803 from being confused by a @samp{-*-coding:-*-} tag in a member of the
803 archive and thinking it applies to the archive file as a whole. 804 archive and thinking it applies to the archive file as a whole.
804 Likewise, Emacs uses @code{auto-coding-regexp-alist} to ensure that 805 Likewise, Emacs uses @code{auto-coding-regexp-alist} to ensure that
805 RMAIL files, whose names in general don't match any particular pattern, 806 RMAIL files, whose names in general don't match any particular
806 are decoded correctly. 807 pattern, are decoded correctly. One of the builtin
808 @code{auto-coding-functions} detects the encoding for XML files.
807 809
808 If Emacs recognizes the encoding of a file incorrectly, you can 810 If Emacs recognizes the encoding of a file incorrectly, you can
809 reread the file using the correct coding system by typing @kbd{C-x 811 reread the file using the correct coding system by typing @kbd{C-x
810 @key{RET} c @var{coding-system} @key{RET} M-x revert-buffer 812 @key{RET} c @var{coding-system} @key{RET} M-x revert-buffer
811 @key{RET}}. To see what coding system Emacs actually used to decode 813 @key{RET}}. To see what coding system Emacs actually used to decode