diff options
| author | Simon Josefsson | 2004-01-05 18:20:27 +0000 |
|---|---|---|
| committer | Simon Josefsson | 2004-01-05 18:20:27 +0000 |
| commit | a0465ec316f9e010bde40c743853f837868ee9fc (patch) | |
| tree | fa744de8f634b25bb23a33a8e8ac826233d7822a | |
| parent | bcbc6fd3d04dbbbba44e98b1a434e6e892059405 (diff) | |
| download | emacs-a0465ec316f9e010bde40c743853f837868ee9fc.tar.gz emacs-a0465ec316f9e010bde40c743853f837868ee9fc.zip | |
hooks.texi (Standard Hooks): Add before-save-hook.
files.texi (Saving Buffers): Likewise.
| -rw-r--r-- | lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | lispref/files.texi | 9 | ||||
| -rw-r--r-- | lispref/hooks.texi | 3 |
3 files changed, 15 insertions, 2 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index 1ef5bca1d46..d61b756401a 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-01-01 Simon Josefsson <jas@extundo.com> | ||
| 2 | |||
| 3 | * hooks.texi (Standard Hooks): Add before-save-hook. | ||
| 4 | * files.texi (Saving Buffers): Likewise. | ||
| 5 | |||
| 1 | 2004-01-03 Richard M. Stallman <rms@gnu.org> | 6 | 2004-01-03 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * frames.texi (Frames and Windows): Delete frame-root-window. | 8 | * frames.texi (Frames and Windows): Delete frame-root-window. |
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 @@ | |||
| 1 | @c -*-texinfo-*- | 1 | @c -*-texinfo-*- |
| 2 | @c This is part of the GNU Emacs Lisp Reference Manual. | 2 | @c This is part of the GNU Emacs Lisp Reference Manual. |
| 3 | @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 | 3 | @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2004 |
| 4 | @c Free Software Foundation, Inc. | 4 | @c Free Software Foundation, Inc. |
| 5 | @c See the file elisp.texi for copying conditions. | 5 | @c See the file elisp.texi for copying conditions. |
| 6 | @setfilename ../info/files | 6 | @setfilename ../info/files |
| @@ -410,6 +410,13 @@ This variable automatically becomes buffer-local whenever it is set; | |||
| 410 | switching to a new major mode always resets this variable. | 410 | switching to a new major mode always resets this variable. |
| 411 | @end defvar | 411 | @end defvar |
| 412 | 412 | ||
| 413 | @defvar before-save-hook | ||
| 414 | This normal hook runs before a buffer has been saved in its visited | ||
| 415 | file. One use of this hook is for the Copyright package; it uses this | ||
| 416 | hook to make sure the file has the current year in the copyright | ||
| 417 | header. | ||
| 418 | @end defvar | ||
| 419 | |||
| 413 | @c Emacs 19 feature | 420 | @c Emacs 19 feature |
| 414 | @defvar after-save-hook | 421 | @defvar after-save-hook |
| 415 | This normal hook runs after a buffer has been saved in its visited file. | 422 | This normal hook runs after a buffer has been saved in its visited file. |
diff --git a/lispref/hooks.texi b/lispref/hooks.texi index fde028a3d14..bc90c8773c2 100644 --- a/lispref/hooks.texi +++ b/lispref/hooks.texi | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | @c -*-texinfo-*- | 1 | @c -*-texinfo-*- |
| 2 | @c This is part of the GNU Emacs Lisp Reference Manual. | 2 | @c This is part of the GNU Emacs Lisp Reference Manual. |
| 3 | @c Copyright (C) 1990, 1991, 1992, 1993, 1998 Free Software Foundation, Inc. | 3 | @c Copyright (C) 1990, 1991, 1992, 1993, 1998, 2004 Free Software Foundation, Inc. |
| 4 | @c See the file elisp.texi for copying conditions. | 4 | @c See the file elisp.texi for copying conditions. |
| 5 | @setfilename ../info/hooks | 5 | @setfilename ../info/hooks |
| 6 | @node Standard Hooks, Index, Standard Keymaps, Top | 6 | @node Standard Hooks, Index, Standard Keymaps, Top |
| @@ -47,6 +47,7 @@ however, we have renamed all of those.) | |||
| 47 | @item before-init-hook | 47 | @item before-init-hook |
| 48 | @item before-make-frame-hook | 48 | @item before-make-frame-hook |
| 49 | @item before-revert-hook | 49 | @item before-revert-hook |
| 50 | @item before-save-hook | ||
| 50 | @item blink-paren-function | 51 | @item blink-paren-function |
| 51 | @item buffer-access-fontify-functions | 52 | @item buffer-access-fontify-functions |
| 52 | @item c-mode-hook | 53 | @item c-mode-hook |