]> code.delx.au - gnu-emacs/commitdiff
Mention before-save-hook.
authorSimon Josefsson <jas@extundo.com>
Mon, 5 Jan 2004 18:21:12 +0000 (18:21 +0000)
committerSimon Josefsson <jas@extundo.com>
Mon, 5 Jan 2004 18:21:12 +0000 (18:21 +0000)
etc/NEWS

index e904c06c69906fbc20e72132e1ef48a75a17f649..43566ebea29f2363a06d630bf8ce661c13ea3e2b 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1737,6 +1737,11 @@ configuration files.
 \f
 * Lisp Changes in Emacs 21.4
 
+** The new hook `before-save-hook' is invoked by `basic-save-buffer'
+before saving buffers.  This allows packages to perform various final
+tasks, for example; it can be used by the copyright package to make
+sure saved files have the current year in any copyright headers.
+
 ** The function `insert-for-yank' now supports strings where the
 `yank-handler' property does not span the first character of the
 string.  The old behavior is available if you call