changeset 56207:b5f852992d97

(Saving Buffers): Correct description of `write-contents-functions'.
author Lars Hansen <larsh@soem.dk>
date Wed, 23 Jun 2004 14:37:27 +0000
parents 1305e0463707
children a6383cbb5b13
files lispref/files.texi
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/files.texi	Tue Jun 22 14:48:10 2004 +0000
+++ b/lispref/files.texi	Wed Jun 23 14:37:27 2004 +0000
@@ -416,11 +416,12 @@
 @c Emacs 19 feature
 @defvar write-contents-functions
 This works just like @code{write-file-functions}, but it is intended for
-hooks that pertain to the contents of the file, as opposed to hooks that
-pertain to where the file came from.  Such hooks are usually set up by
+hooks that pertain to the contents of the buffer, as opposed to hooks that
+pertain to the file the buffers visits.  Such hooks are usually set up by
 major modes, as buffer-local bindings for this variable.  If any of the
-functions in this hook returns non-@code{nil}, @code{write-file-functions}
-is not run.
+functions in this hook returns non-@code{nil}, the file is considered
+already written and the rest are not called and neither are the functions
+in @code{write-file-functions}.
 
 This variable automatically becomes buffer-local whenever it is set;
 switching to a new major mode always resets this variable, but