Mercurial > emacs
comparison lispref/files.texi @ 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 | d87f8236b6fd |
children | c9aa4127a482 |
comparison
equal
deleted
inserted
replaced
56206:1305e0463707 | 56207:b5f852992d97 |
---|---|
414 @end defvar | 414 @end defvar |
415 | 415 |
416 @c Emacs 19 feature | 416 @c Emacs 19 feature |
417 @defvar write-contents-functions | 417 @defvar write-contents-functions |
418 This works just like @code{write-file-functions}, but it is intended for | 418 This works just like @code{write-file-functions}, but it is intended for |
419 hooks that pertain to the contents of the file, as opposed to hooks that | 419 hooks that pertain to the contents of the buffer, as opposed to hooks that |
420 pertain to where the file came from. Such hooks are usually set up by | 420 pertain to the file the buffers visits. Such hooks are usually set up by |
421 major modes, as buffer-local bindings for this variable. If any of the | 421 major modes, as buffer-local bindings for this variable. If any of the |
422 functions in this hook returns non-@code{nil}, @code{write-file-functions} | 422 functions in this hook returns non-@code{nil}, the file is considered |
423 is not run. | 423 already written and the rest are not called and neither are the functions |
424 in @code{write-file-functions}. | |
424 | 425 |
425 This variable automatically becomes buffer-local whenever it is set; | 426 This variable automatically becomes buffer-local whenever it is set; |
426 switching to a new major mode always resets this variable, but | 427 switching to a new major mode always resets this variable, but |
427 calling @code{set-visited-file-name} does not. | 428 calling @code{set-visited-file-name} does not. |
428 @end defvar | 429 @end defvar |