diff options
| author | Dave Love | 2001-01-24 22:21:31 +0000 |
|---|---|---|
| committer | Dave Love | 2001-01-24 22:21:31 +0000 |
| commit | 9575b9aedb2df889d960705ffa21e282e18fbc2d (patch) | |
| tree | 448218c3f1333498c928916bbea9147e3e583b8b | |
| parent | 1453f1b998e84963c0aea3d602db1d8eaa96d6cc (diff) | |
| download | emacs-9575b9aedb2df889d960705ffa21e282e18fbc2d.tar.gz emacs-9575b9aedb2df889d960705ffa21e282e18fbc2d.zip | |
(Time Stamps): New.
| -rw-r--r-- | man/files.texi | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/man/files.texi b/man/files.texi index 9e86b3e336a..fc134885ca0 100644 --- a/man/files.texi +++ b/man/files.texi | |||
| @@ -434,6 +434,7 @@ every time a file is saved or written. The default is @code{nil}. | |||
| 434 | * Interlocking:: How Emacs protects against simultaneous editing | 434 | * Interlocking:: How Emacs protects against simultaneous editing |
| 435 | of one file by two users. | 435 | of one file by two users. |
| 436 | * Shadowing: File Shadowing. Copying files to `shadows' automatically. | 436 | * Shadowing: File Shadowing. Copying files to `shadows' automatically. |
| 437 | * Time Stamps:: Emacs can update time stamps on saved files. | ||
| 437 | @end menu | 438 | @end menu |
| 438 | 439 | ||
| 439 | @node Backup | 440 | @node Backup |
| @@ -762,6 +763,31 @@ asked again next time you hit @kbd{C-x 4 s} or exit Emacs. If you do | |||
| 762 | not want to be asked again, use @kbd{M-x shadow-cancel}, and you will | 763 | not want to be asked again, use @kbd{M-x shadow-cancel}, and you will |
| 763 | not be asked until you change the file and save it again. | 764 | not be asked until you change the file and save it again. |
| 764 | 765 | ||
| 766 | @node Time Stamps | ||
| 767 | @subsection Updating Time Stamps Automatically | ||
| 768 | @findex time-stamp | ||
| 769 | @cindex time stamps | ||
| 770 | @cindex modification dates | ||
| 771 | |||
| 772 | You can arrange to have time stamp text in a file updated | ||
| 773 | automatically to reflect the modification time when you save the | ||
| 774 | file. To do this, include in the first eight lines a template like | ||
| 775 | @example | ||
| 776 | Time-stamp: <> | ||
| 777 | @end example | ||
| 778 | @noindent | ||
| 779 | or | ||
| 780 | @example | ||
| 781 | Time-stamp: "" | ||
| 782 | @end example | ||
| 783 | @noindent | ||
| 784 | and customize the value of the hook @code{write-file-hooks} to add | ||
| 785 | @code{time-stamp}. Such a template is updated with the current time | ||
| 786 | and date when the file is written. | ||
| 787 | |||
| 788 | You can customize the form of the template and the time string used | ||
| 789 | along with other parameters in the Custom group @code{time-stamp}. | ||
| 790 | |||
| 765 | @node Reverting | 791 | @node Reverting |
| 766 | @section Reverting a Buffer | 792 | @section Reverting a Buffer |
| 767 | @findex revert-buffer | 793 | @findex revert-buffer |