summaryrefslogtreecommitdiff
path: root/lispref/files.texi
diff options
context:
space:
mode:
authorSimon Josefsson <jas@extundo.com>2004-01-05 18:20:27 +0000
committerSimon Josefsson <jas@extundo.com>2004-01-05 18:20:27 +0000
commita0465ec316f9e010bde40c743853f837868ee9fc (patch)
treefa744de8f634b25bb23a33a8e8ac826233d7822a /lispref/files.texi
parentbcbc6fd3d04dbbbba44e98b1a434e6e892059405 (diff)
downloademacs-a0465ec316f9e010bde40c743853f837868ee9fc.tar.gz
hooks.texi (Standard Hooks): Add before-save-hook.
files.texi (Saving Buffers): Likewise.
Diffstat (limited to 'lispref/files.texi')
-rw-r--r--lispref/files.texi9
1 files changed, 8 insertions, 1 deletions
diff --git a/lispref/files.texi b/lispref/files.texi
index 575a90ccf92..b461273b5fe 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -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.