From: Eli Zaretskii Date: Sat, 17 Jan 2009 10:09:52 +0000 (+0000) Subject: (Coding System Basics): More accurate description of `raw-text'. X-Git-Tag: emacs-pretest-23.0.90~408 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=02eccf6bfb2babe6f4a71342450690bdfcb00899;p=emacs.git (Coding System Basics): More accurate description of `raw-text'. --- diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 740b829815c..e249c0dde76 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,8 @@ +2009-01-17 Eli Zaretskii + + * nonascii.texi (Coding System Basics): More accurate description + of `raw-text'. + 2009-01-12 Juanma Barranquero * display.texi (Low-Level Font): Fix typo. diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index f454835585d..2ac927d82c0 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi @@ -863,13 +863,23 @@ coding systems} such as @code{latin-1-unix}, @code{latin-1-dos} and well. Most base coding systems have three corresponding variants whose names are formed by adding @samp{-unix}, @samp{-dos} and @samp{-mac}. +@vindex raw-text@r{ coding system} The coding system @code{raw-text} is special in that it prevents -character code conversion, and causes the buffer visited with that -coding system to be a unibyte buffer. It does not specify the -end-of-line conversion, allowing that to be determined as usual by the -data, and has the usual three variants which specify the end-of-line -conversion. @code{no-conversion} is equivalent to @code{raw-text-unix}: -it specifies no conversion of either character codes or end-of-line. +character code conversion, and causes the buffer visited with this +coding system to be a unibyte buffer. For historical reasons, you can +save both unibyte and multibyte text with this coding system. When +you use @code{raw-text} to encode multibyte text, it does perform one +character code conversion: it converts eight-bit characters to their +single-byte external representation. @code{raw-text} does not specify +the end-of-line conversion, allowing that to be determined as usual by +the data, and has the usual three variants which specify the +end-of-line conversion. + +@vindex no-conversion@r{ coding system} +@vindex binary@r{ coding system} + @code{no-conversion} (and its alias @code{binary}) is equivalent to +@code{raw-text-unix}: it specifies no conversion of either character +codes or end-of-line. @vindex emacs-internal@r{ coding system} The coding system @code{emacs-internal} specifies that the data is