Mercurial > emacs
comparison man/mule.texi @ 30375:5c4951d58989
(Recognize Coding): Document the variable inhibit-iso-escape-detection.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 22 Jul 2000 10:12:00 +0000 |
parents | 05c0499d035a |
children | 5380bd6b450e |
comparison
equal
deleted
inserted
replaced
30374:b151dcb1bf9f | 30375:5c4951d58989 |
---|---|
574 The first argument should be @code{file}, the second argument should be | 574 The first argument should be @code{file}, the second argument should be |
575 a regular expression that determines which files this applies to, and | 575 a regular expression that determines which files this applies to, and |
576 the third argument says which coding system to use for these files. | 576 the third argument says which coding system to use for these files. |
577 | 577 |
578 @vindex inhibit-eol-conversion | 578 @vindex inhibit-eol-conversion |
579 @cindex DOS-style end-of-line display | |
579 Emacs recognizes which kind of end-of-line conversion to use based on | 580 Emacs recognizes which kind of end-of-line conversion to use based on |
580 the contents of the file: if it sees only carriage-returns, or only | 581 the contents of the file: if it sees only carriage-returns, or only |
581 carriage-return linefeed sequences, then it chooses the end-of-line | 582 carriage-return linefeed sequences, then it chooses the end-of-line |
582 conversion accordingly. You can inhibit the automatic use of | 583 conversion accordingly. You can inhibit the automatic use of |
583 end-of-line conversion by setting the variable @code{inhibit-eol-conversion} | 584 end-of-line conversion by setting the variable @code{inhibit-eol-conversion} |
584 to non-@code{nil}. | 585 to non-@code{nil}. |
586 | |
587 @vindex inhibit-iso-escape-detection | |
588 @cindex escape sequences in files | |
589 By default, the automatic detection of coding system is sensitive to | |
590 escape sequences. If Emacs sees a sequence of characters that begin | |
591 with an @key{ESC} character, and the sequence is valid as an ISO-2022 | |
592 code, the code is determined as one of ISO-2022 encoding, and the file | |
593 is decoded by the corresponding coding system | |
594 (e.g. @code{iso-2022-7bit}). | |
595 | |
596 However, there may be cases that you want to read escape sequences in | |
597 a file as is. In such a case, you can set th variable | |
598 @code{inhibit-iso-escape-detection} to non-@code{nil}. Then the code | |
599 detection will ignore any escape sequences, and so no file is detected | |
600 as being encoded in some of ISO-2022 encoding. The result is that all | |
601 escape sequences become visible in a buffer. | |
602 | |
603 The default value of @code{inhibit-iso-escape-detection} is | |
604 @code{nil}, and it is strongly recommended not to change it. That's | |
605 because many Emacs Lisp source files that contain non-ASCII characters | |
606 are encoded in the coding system @code{iso-2022-7bit} in the Emacs | |
607 distribution, and they won't be decoded correctly when you visit those | |
608 files if you suppress the escape sequence detection. | |
585 | 609 |
586 @vindex coding | 610 @vindex coding |
587 You can specify the coding system for a particular file using the | 611 You can specify the coding system for a particular file using the |
588 @samp{-*-@dots{}-*-} construct at the beginning of a file, or a local | 612 @samp{-*-@dots{}-*-} construct at the beginning of a file, or a local |
589 variables list at the end (@pxref{File Variables}). You do this by | 613 variables list at the end (@pxref{File Variables}). You do this by |