Mercurial > emacs
changeset 53506:da21878fbce2
Mention before-save-hook.
author | Simon Josefsson <jas@extundo.com> |
---|---|
date | Mon, 05 Jan 2004 18:21:12 +0000 |
parents | 780b9eb8b58e |
children | edbcb3c5d4e3 |
files | etc/NEWS |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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