From 7951ad77ddb6351312bd5c88af082af80787612e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 10 Jan 2009 12:42:58 +0000 Subject: [PATCH] (Reading from Files): Document that null bytes force no-conversion when visiting files. --- doc/lispref/files.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index c6209c6b546..17d439725d5 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi @@ -500,7 +500,10 @@ the list @code{after-insert-file-functions}. @xref{Format Conversion}. 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 -- 2.39.2