changeset 101050:ceb69a8a308a

(Reading from Files): Document that null bytes force no-conversion when visiting files.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 10 Jan 2009 12:42:58 +0000
parents bca8dc2b0c55
children 7df4a8db7fec
files doc/lispref/files.texi
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/lispref/files.texi	Sat Jan 10 12:34:20 2009 +0000
+++ b/doc/lispref/files.texi	Sat Jan 10 12:42:58 2009 +0000
@@ -500,7 +500,10 @@
 Normally, one of the functions in the
 @code{after-insert-file-functions} list determines the coding system
 (@pxref{Coding Systems}) used for decoding the file's contents,
-including end-of-line conversion.
+including end-of-line conversion.  However, if the file contains null
+bytes, it is by default visited without any code conversions; see
+@ref{Lisp and Coding Systems, inhibit-null-byte-detection}, for how to
+control this behavior.
 
 If @var{visit} is non-@code{nil}, this function additionally marks the
 buffer as unmodified and sets up various fields in the buffer so that it