# HG changeset patch # User Simon Josefsson # Date 1073326827 0 # Node ID 780b9eb8b58e3b168bdc94f9ed64cbb77011f461 # Parent f657faa17ea190c9f7608d9da8c25378e92f62dd hooks.texi (Standard Hooks): Add before-save-hook. files.texi (Saving Buffers): Likewise. diff -r f657faa17ea1 -r 780b9eb8b58e lispref/ChangeLog --- a/lispref/ChangeLog Mon Jan 05 18:19:11 2004 +0000 +++ b/lispref/ChangeLog Mon Jan 05 18:20:27 2004 +0000 @@ -1,3 +1,8 @@ +2004-01-01 Simon Josefsson + + * hooks.texi (Standard Hooks): Add before-save-hook. + * files.texi (Saving Buffers): Likewise. + 2004-01-03 Richard M. Stallman * frames.texi (Frames and Windows): Delete frame-root-window. diff -r f657faa17ea1 -r 780b9eb8b58e lispref/files.texi --- a/lispref/files.texi Mon Jan 05 18:19:11 2004 +0000 +++ b/lispref/files.texi Mon Jan 05 18:20:27 2004 +0000 @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Emacs Lisp Reference Manual. -@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 +@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2004 @c Free Software Foundation, Inc. @c See the file elisp.texi for copying conditions. @setfilename ../info/files @@ -410,6 +410,13 @@ switching to a new major mode always resets this variable. @end defvar +@defvar before-save-hook +This normal hook runs before a buffer has been saved in its visited +file. One use of this hook is for the Copyright package; it uses this +hook to make sure the file has the current year in the copyright +header. +@end defvar + @c Emacs 19 feature @defvar after-save-hook This normal hook runs after a buffer has been saved in its visited file. diff -r f657faa17ea1 -r 780b9eb8b58e lispref/hooks.texi --- a/lispref/hooks.texi Mon Jan 05 18:19:11 2004 +0000 +++ b/lispref/hooks.texi Mon Jan 05 18:20:27 2004 +0000 @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Emacs Lisp Reference Manual. -@c Copyright (C) 1990, 1991, 1992, 1993, 1998 Free Software Foundation, Inc. +@c Copyright (C) 1990, 1991, 1992, 1993, 1998, 2004 Free Software Foundation, Inc. @c See the file elisp.texi for copying conditions. @setfilename ../info/hooks @node Standard Hooks, Index, Standard Keymaps, Top @@ -47,6 +47,7 @@ @item before-init-hook @item before-make-frame-hook @item before-revert-hook +@item before-save-hook @item blink-paren-function @item buffer-access-fontify-functions @item c-mode-hook