From 652dd27103b2b5acb074f2b7f4f82d2944b1230e Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Mon, 5 Jan 2004 18:21:12 +0000 Subject: [PATCH] Mention before-save-hook. --- etc/NEWS | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index e904c06c69..43566ebea2 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 -- 2.39.2