changeset 101044:6f865c33fded

(Lisp and Coding Systems): Document inhibit-null-byte-detection and inhibit-iso-escape-detection.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 10 Jan 2009 12:01:57 +0000
parents 5b62466eb65b
children ff594a59e2fd
files doc/lispref/nonascii.texi
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/lispref/nonascii.texi	Sat Jan 10 10:43:11 2009 +0000
+++ b/doc/lispref/nonascii.texi	Sat Jan 10 12:01:57 2009 +0000
@@ -1098,6 +1098,9 @@
 ISO-2022 control characters ISO-2022 as @code{ESC}, the value is
 @code{undecided} or @code{(undecided)}, or a variant specifying
 end-of-line conversion, if that can be deduced from the text.
+
+If the region contains null bytes, the value is @code{no-conversion},
+even if the region contains text encoded in some coding system.
 @end defun
 
 @defun detect-coding-string string &optional highest
@@ -1105,6 +1108,22 @@
 operates on the contents of @var{string} instead of bytes in the buffer.
 @end defun
 
+@defvar inhibit-null-byte-detection
+If this variable has a non-@code{nil} value, null bytes are ignored
+when detecting the encoding of a region or a string.  This allows to
+correctly detect the encoding of text that contains null bytes, such
+as Info files with Index nodes.
+@end defvar
+
+@defvar inhibit-iso-escape-detection
+If this variable has a non-@code{nil} value, ISO-2022 escape sequences
+are ignored when detecting the encoding of a region or a string.  The
+result is that no text is ever detected as encoded in some ISO-2022
+encoding, and all escape sequences become visible in a buffer.
+@strong{Warning:} @emph{Use this variable with extreme caution,
+because many files in the Emacs distribution use ISO-2022 encoding.}
+@end defvar
+
 @defun coding-system-charset-list coding-system
 This function returns the list of character sets (@pxref{Character
 Sets}) supported by @var{coding-system}.  Some coding systems that