]> code.delx.au - gnu-emacs/commitdiff
hooks.texi (Standard Hooks): Add before-save-hook.
authorSimon Josefsson <jas@extundo.com>
Mon, 5 Jan 2004 18:20:27 +0000 (18:20 +0000)
committerSimon Josefsson <jas@extundo.com>
Mon, 5 Jan 2004 18:20:27 +0000 (18:20 +0000)
files.texi (Saving Buffers): Likewise.

lispref/ChangeLog
lispref/files.texi
lispref/hooks.texi

index 1ef5bca1d46b9c3ac8169c07defa8cf4dd88078a..d61b756401a8b4f297e5be3a0bccf1a8266f3477 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-01  Simon Josefsson  <jas@extundo.com>
+
+       * hooks.texi (Standard Hooks): Add before-save-hook.
+       * files.texi (Saving Buffers): Likewise.
+
 2004-01-03  Richard M. Stallman  <rms@gnu.org>
 
        * frames.texi (Frames and Windows): Delete frame-root-window.
index 575a90ccf923402cd28394948b8d44a04a5cb658..b461273b5fe97adf81d5fa59677a5664bf4688ba 100644 (file)
@@ -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 @@ This variable automatically becomes buffer-local whenever it is set;
 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.
index fde028a3d146a726e8a46f2922ef2fde445f46ac..bc90c8773c297f16a33c2acf5fae28d1e4ad906e 100644 (file)
@@ -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 @@ however, we have renamed all of those.)
 @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