Mercurial > emacs
comparison lispref/files.texi @ 14152:9c9debb5950f
Clarify write-contents-hooks.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 12 Jan 1996 05:36:59 +0000 |
parents | 411fcd86eeeb |
children | 8cc15b664c4c |
comparison
equal
deleted
inserted
replaced
14151:1087acbd29d7 | 14152:9c9debb5950f |
---|---|
346 @c Emacs 19 feature | 346 @c Emacs 19 feature |
347 @defvar write-contents-hooks | 347 @defvar write-contents-hooks |
348 This works just like @code{write-file-hooks}, but it is intended for | 348 This works just like @code{write-file-hooks}, but it is intended for |
349 hooks that pertain to the contents of the file, as opposed to hooks that | 349 hooks that pertain to the contents of the file, as opposed to hooks that |
350 pertain to where the file came from. Such hooks are usually set up by | 350 pertain to where the file came from. Such hooks are usually set up by |
351 major modes, as buffer-local bindings for this variable. Switching to a | 351 major modes, as buffer-local bindings for this variable. |
352 new major mode always resets this variable. | 352 |
353 This variable automatically becomes buffer-local whenever it is set; | |
354 switching to a new major mode always resets this variable. When you use | |
355 @code{add-hooks} to add an element to this hook, you should @emph{not} | |
356 specify a non-@code{nil} @var{local} argument, since this variable is | |
357 used @emph{only} locally. | |
353 @end defvar | 358 @end defvar |
354 | 359 |
355 @c Emacs 19 feature | 360 @c Emacs 19 feature |
356 @defvar after-save-hook | 361 @defvar after-save-hook |
357 This normal hook runs after a buffer has been saved in its visited file. | 362 This normal hook runs after a buffer has been saved in its visited file. |