diff options
| author | Eli Zaretskii | 2009-01-10 12:02:28 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2009-01-10 12:02:28 +0000 |
| commit | 0b4faef3a5cd5f87ea782d23e33a2610cfd0ff47 (patch) | |
| tree | d3f166866b6fdf8f1b49478424e67faa89bd8634 /doc/lispref | |
| parent | 8b5e8b42f7407a8c32bbfe6b2c503d6455de6389 (diff) | |
| download | emacs-0b4faef3a5cd5f87ea782d23e33a2610cfd0ff47.tar.gz emacs-0b4faef3a5cd5f87ea782d23e33a2610cfd0ff47.zip | |
(Lisp and Coding Systems): Document inhibit-null-byte-detection and
inhibit-iso-escape-detection.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/nonascii.texi | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index d89e71d5646..bf6d58f15db 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-01-10 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * nonascii.texi (Lisp and Coding Systems): Document | ||
| 4 | inhibit-null-byte-detection and inhibit-iso-escape-detection. | ||
| 5 | |||
| 1 | 2009-01-09 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-01-09 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * display.texi (Font Lookup): Remove obsolete function | 8 | * display.texi (Font Lookup): Remove obsolete function |
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 421c849f138..fceabcc3fc1 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi | |||
| @@ -1098,6 +1098,9 @@ If the region contains only @acronym{ASCII} characters except for such | |||
| 1098 | ISO-2022 control characters ISO-2022 as @code{ESC}, the value is | 1098 | ISO-2022 control characters ISO-2022 as @code{ESC}, the value is |
| 1099 | @code{undecided} or @code{(undecided)}, or a variant specifying | 1099 | @code{undecided} or @code{(undecided)}, or a variant specifying |
| 1100 | end-of-line conversion, if that can be deduced from the text. | 1100 | end-of-line conversion, if that can be deduced from the text. |
| 1101 | |||
| 1102 | If the region contains null bytes, the value is @code{no-conversion}, | ||
| 1103 | even if the region contains text encoded in some coding system. | ||
| 1101 | @end defun | 1104 | @end defun |
| 1102 | 1105 | ||
| 1103 | @defun detect-coding-string string &optional highest | 1106 | @defun detect-coding-string string &optional highest |
| @@ -1105,6 +1108,22 @@ This function is like @code{detect-coding-region} except that it | |||
| 1105 | operates on the contents of @var{string} instead of bytes in the buffer. | 1108 | operates on the contents of @var{string} instead of bytes in the buffer. |
| 1106 | @end defun | 1109 | @end defun |
| 1107 | 1110 | ||
| 1111 | @defvar inhibit-null-byte-detection | ||
| 1112 | If this variable has a non-@code{nil} value, null bytes are ignored | ||
| 1113 | when detecting the encoding of a region or a string. This allows to | ||
| 1114 | correctly detect the encoding of text that contains null bytes, such | ||
| 1115 | as Info files with Index nodes. | ||
| 1116 | @end defvar | ||
| 1117 | |||
| 1118 | @defvar inhibit-iso-escape-detection | ||
| 1119 | If this variable has a non-@code{nil} value, ISO-2022 escape sequences | ||
| 1120 | are ignored when detecting the encoding of a region or a string. The | ||
| 1121 | result is that no text is ever detected as encoded in some ISO-2022 | ||
| 1122 | encoding, and all escape sequences become visible in a buffer. | ||
| 1123 | @strong{Warning:} @emph{Use this variable with extreme caution, | ||
| 1124 | because many files in the Emacs distribution use ISO-2022 encoding.} | ||
| 1125 | @end defvar | ||
| 1126 | |||
| 1108 | @defun coding-system-charset-list coding-system | 1127 | @defun coding-system-charset-list coding-system |
| 1109 | This function returns the list of character sets (@pxref{Character | 1128 | This function returns the list of character sets (@pxref{Character |
| 1110 | Sets}) supported by @var{coding-system}. Some coding systems that | 1129 | Sets}) supported by @var{coding-system}. Some coding systems that |