diff options
| author | Simon Josefsson | 2004-01-05 18:19:11 +0000 |
|---|---|---|
| committer | Simon Josefsson | 2004-01-05 18:19:11 +0000 |
| commit | bcbc6fd3d04dbbbba44e98b1a434e6e892059405 (patch) | |
| tree | 9c77dfde7b330ab2b1fc6673c473cddd163e5d95 | |
| parent | 3c3b81d190d9c1ada2dbc4926ec9a18e119463b2 (diff) | |
| download | emacs-bcbc6fd3d04dbbbba44e98b1a434e6e892059405.tar.gz emacs-bcbc6fd3d04dbbbba44e98b1a434e6e892059405.zip | |
Fix comment to recommend
before-save-hook instead of write-file-functions.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/copyright.el | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7276ccc1bf9..eab0fce6a58 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,9 @@ | |||
| 3 | * files.el (before-save-hook): Add. | 3 | * files.el (before-save-hook): Add. |
| 4 | (basic-save-buffer): Use before-save-hook. | 4 | (basic-save-buffer): Use before-save-hook. |
| 5 | 5 | ||
| 6 | * emacs-lisp/copyright.el: Fix comment to recommend | ||
| 7 | before-save-hook instead of write-file-functions. | ||
| 8 | |||
| 6 | 2004-01-05 Richard M. Stallman <rms@gnu.org> | 9 | 2004-01-05 Richard M. Stallman <rms@gnu.org> |
| 7 | 10 | ||
| 8 | * finder.el (finder-commentary): Call delete-other-windows. | 11 | * finder.el (finder-commentary): Call delete-other-windows. |
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index 4532f7e5b77..8d748291c00 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el | |||
| @@ -27,7 +27,8 @@ | |||
| 27 | 27 | ||
| 28 | ;; Allows updating the copyright year and above mentioned GPL version manually | 28 | ;; Allows updating the copyright year and above mentioned GPL version manually |
| 29 | ;; or when saving a file. | 29 | ;; or when saving a file. |
| 30 | ;; Do (add-hook 'write-file-functions 'copyright-update). | 30 | ;; Do (add-hook 'before-save-hook 'copyright-update), or use |
| 31 | ;; M-x customize-variable RET before-save-hook RET. | ||
| 31 | 32 | ||
| 32 | ;;; Code: | 33 | ;;; Code: |
| 33 | 34 | ||