# HG changeset patch # User Simon Josefsson # Date 1073326872 0 # Node ID da21878fbce278d0bc2fb788c56cdcb372c28719 # Parent 780b9eb8b58e3b168bdc94f9ed64cbb77011f461 Mention before-save-hook. diff -r 780b9eb8b58e -r da21878fbce2 etc/NEWS --- a/etc/NEWS Mon Jan 05 18:20:27 2004 +0000 +++ b/etc/NEWS Mon Jan 05 18:21:12 2004 +0000 @@ -1737,6 +1737,11 @@ * 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