summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorLuc Teirlinck <teirllm@auburn.edu>2004-06-13 23:08:05 +0000
committerLuc Teirlinck <teirllm@auburn.edu>2004-06-13 23:08:05 +0000
commitc217c9c83a6d2b9f39da0301c27a863529888ba2 (patch)
tree12b672a3e1a8723a0685a89755d8c52c4effaecc /man
parentc1136bda637a0dfd25c68a3113992780c62ff0b1 (diff)
downloademacs-c217c9c83a6d2b9f39da0301c27a863529888ba2.tar.gz
(Copyrights, Timestamps): Recommend `before-save-hook' instead of
`write-file-functions'.
Diffstat (limited to 'man')
-rw-r--r--man/ChangeLog5
-rw-r--r--man/autotype.texi19
2 files changed, 17 insertions, 7 deletions
diff --git a/man/ChangeLog b/man/ChangeLog
index 8969df73efb..8418bb43d13 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-13 Luc Teirlinck <teirllm@auburn.edu>
+
+ * autotype.texi (Copyrights, Timestamps): Recommend
+ `before-save-hook' instead of `write-file-functions'.
+
2004-06-13 Richard M. Stallman <rms@gnu.org>
* custom.texi (Init Syntax): Explain about vars that do special
diff --git a/man/autotype.texi b/man/autotype.texi
index 5b24f26f2f5..16e88851c4b 100644
--- a/man/autotype.texi
+++ b/man/autotype.texi
@@ -456,16 +456,19 @@ wrong version of the GNU General Public License (@pxref{(emacs)Copying}) is foun
that is updated too.
An interesting application for this function is to have it be called
-automatically every time a file is saved. This is accomplished by putting
-@code{(add-hook 'write-file-functions 'copyright-update)} into your @file{~/.emacs}
-file (@pxref{(emacs)Init File}).
+automatically every time a file is saved. This is accomplished by
+putting @code{(add-hook 'before-save-hook 'copyright-update)} into
+your @file{~/.emacs} file (@pxref{(emacs)Init File}). Alternative,
+you can do @kbd{M-x customize-variable @key{RET} before-save-hook
+@key{RET}}. @code{copyright-update} is conveniently listed as an
+option in the customization buffer.
@vindex copyright-query
The variable @code{copyright-query} controls whether to update the
copyright or whether to ask about it. When this is @code{nil} updating is
only done with @kbd{M-x copyright-update}. When this is @code{function}
you are queried whenever @code{copyright-update} is called as a function,
-such as in the @code{write-file-functions} feature mentioned above. Otherwise
+such as in the @code{before-save-hook} feature mentioned above. Otherwise
you are always queried.
@@ -522,11 +525,13 @@ The ``interpreter'' used is @code{executable-self-display} with argument
@cindex timestamps
@findex time-stamp
-@vindex write-file-functions
+@vindex before-save-hook
The @code{time-stamp} command can be used to update automatically a
template in a file with a new time stamp every time you save the file.
-Customize the hook @code{write-file-functions} to add the function
-@code{time-stamp} to arrange this.
+Customize the hook @code{before-save-hook} to add the function
+@code{time-stamp} to arrange this. It you use Custom to do this,
+then @code{time-stamp} is conveniently listed as an option in the
+customization buffer.
@vindex time-stamp-active
@vindex time-stamp-format