emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/doc/lispref nonascii.texi


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs/doc/lispref nonascii.texi
Date: Sat, 10 Jan 2009 12:01:57 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Eli Zaretskii <eliz>    09/01/10 12:01:57

Modified files:
        doc/lispref    : nonascii.texi 

Log message:
        (Lisp and Coding Systems): Document inhibit-null-byte-detection and
        inhibit-iso-escape-detection.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/doc/lispref/nonascii.texi?cvsroot=emacs&r1=1.16&r2=1.17

Patches:
Index: nonascii.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/doc/lispref/nonascii.texi,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- nonascii.texi       8 Jan 2009 05:29:01 -0000       1.16
+++ nonascii.texi       10 Jan 2009 12:01:57 -0000      1.17
@@ -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
 
address@hidden inhibit-null-byte-detection
+If this variable has a address@hidden 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.
address@hidden defvar
+
address@hidden inhibit-iso-escape-detection
+If this variable has a address@hidden 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.
address@hidden:} @emph{Use this variable with extreme caution,
+because many files in the Emacs distribution use ISO-2022 encoding.}
address@hidden 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]