Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a3468351
Commit
a3468351
authored
Jun 23, 2004
by
Lars Hansen
Browse files
(Saving Buffers): Correct description of `write-contents-functions'.
parent
3ef1eeee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lispref/files.texi
lispref/files.texi
+5
-4
No files found.
lispref/files.texi
View file @
a3468351
...
...
@@ -416,11 +416,12 @@ Even though this is not a normal hook, you can use @code{add-hook} and
@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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment