aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Hansen2004-06-23 14:37:27 +0000
committerLars Hansen2004-06-23 14:37:27 +0000
commita3468351f6f3ccbc2fb9f4baea11720a5818df27 (patch)
treef475fb8be1d293e31a33d55c60e77f47be76eecf
parent3ef1eeeef5a0b798f9933bb0035da7fcaaba0639 (diff)
downloademacs-a3468351f6f3ccbc2fb9f4baea11720a5818df27.tar.gz
emacs-a3468351f6f3ccbc2fb9f4baea11720a5818df27.zip
(Saving Buffers): Correct description of `write-contents-functions'.
-rw-r--r--lispref/files.texi9
1 files changed, 5 insertions, 4 deletions
diff --git a/lispref/files.texi b/lispref/files.texi
index aa5b0c397b1..63bc4b42673 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -416,11 +416,12 @@ Even though this is not a normal hook, you can use @code{add-hook} and
416@c Emacs 19 feature 416@c Emacs 19 feature
417@defvar write-contents-functions 417@defvar write-contents-functions
418This works just like @code{write-file-functions}, but it is intended for 418This works just like @code{write-file-functions}, but it is intended for
419hooks that pertain to the contents of the file, as opposed to hooks that 419hooks that pertain to the contents of the buffer, as opposed to hooks that
420pertain to where the file came from. Such hooks are usually set up by 420pertain to the file the buffers visits. Such hooks are usually set up by
421major modes, as buffer-local bindings for this variable. If any of the 421major modes, as buffer-local bindings for this variable. If any of the
422functions in this hook returns non-@code{nil}, @code{write-file-functions} 422functions in this hook returns non-@code{nil}, the file is considered
423is not run. 423already written and the rest are not called and neither are the functions
424in @code{write-file-functions}.
424 425
425This variable automatically becomes buffer-local whenever it is set; 426This variable automatically becomes buffer-local whenever it is set;
426switching to a new major mode always resets this variable, but 427switching to a new major mode always resets this variable, but