From: Simon Josefsson Date: Mon, 5 Jan 2004 18:21:12 +0000 (+0000) Subject: Mention before-save-hook. X-Git-Tag: ttn-vms-21-2-B4~7998 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=652dd27103b2b5acb074f2b7f4f82d2944b1230e;p=emacs.git Mention before-save-hook. --- diff --git a/etc/NEWS b/etc/NEWS index e904c06c699..43566ebea29 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1737,6 +1737,11 @@ configuration files. * 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