1 |
@c This is part of the Emacs manual. |
@c This is part of the Emacs manual. |
2 |
@c Copyright (C) 1985,86,87,93,94,95,97,99, 2000, 2001 |
@c Copyright (C) 1985,86,87,93,94,95,97,99, 2000, 2001, 2004 |
3 |
@c Free Software Foundation, Inc. |
@c Free Software Foundation, Inc. |
4 |
@c See file emacs.texi for copying conditions. |
@c See file emacs.texi for copying conditions. |
5 |
@node Files, Buffers, Keyboard Macros, Top |
@node Files, Buffers, Keyboard Macros, Top |
625 |
default, both variables are 2. |
default, both variables are 2. |
626 |
|
|
627 |
@vindex delete-old-versions |
@vindex delete-old-versions |
628 |
If @code{delete-old-versions} is non-@code{nil}, Emacs deletes the |
If @code{delete-old-versions} is @code{t}, Emacs deletes the excess |
629 |
excess backup files silently. If it is @code{nil}, the default, Emacs |
backup files silently. If it is @code{nil}, the default, Emacs asks |
630 |
asks you whether it should delete the excess backup versions. |
you whether it should delete the excess backup versions. If it has |
631 |
|
any other value, then Emacs never automatically deletes backups. |
632 |
|
|
633 |
Dired's @kbd{.} (Period) command can also be used to delete old versions. |
Dired's @kbd{.} (Period) command can also be used to delete old versions. |
634 |
@xref{Dired Deletion}. |
@xref{Dired Deletion}. |
837 |
@end example |
@end example |
838 |
|
|
839 |
Then add the hook function @code{time-stamp} to the hook |
Then add the hook function @code{time-stamp} to the hook |
840 |
@code{write-file-functions}; that hook function will automatically update |
@code{before-save-hook}; that hook function will automatically update |
841 |
the time stamp, inserting the current date and time when you save the |
the time stamp, inserting the current date and time when you save the |
842 |
file. You can also use the command @kbd{M-x time-stamp} to update the |
file. You can also use the command @kbd{M-x time-stamp} to update the |
843 |
time stamp manually. For other customizations, see the Custom group |
time stamp manually. For other customizations, see the Custom group |
943 |
@samp{#} to the front and rear of buffer name, then |
@samp{#} to the front and rear of buffer name, then |
944 |
adding digits and letters at the end for uniqueness. For |
adding digits and letters at the end for uniqueness. For |
945 |
example, the @samp{*mail*} buffer in which you compose messages to be |
example, the @samp{*mail*} buffer in which you compose messages to be |
946 |
sent might auto-saved in a file named @file{#*mail*#704juu}. Auto-save file |
sent might be auto-saved in a file named @file{#*mail*#704juu}. Auto-save file |
947 |
names are made this way unless you reprogram parts of Emacs to do |
names are made this way unless you reprogram parts of Emacs to do |
948 |
something different (the functions @code{make-auto-save-file-name} and |
something different (the functions @code{make-auto-save-file-name} and |
949 |
@code{auto-save-file-name-p}). The file name to be used for auto-saving |
@code{auto-save-file-name-p}). The file name to be used for auto-saving |
963 |
deleted the text unintentionally, you might find the auto-save file more |
deleted the text unintentionally, you might find the auto-save file more |
964 |
useful if it contains the deleted text. To reenable auto-saving after |
useful if it contains the deleted text. To reenable auto-saving after |
965 |
this happens, save the buffer with @kbd{C-x C-s}, or use @kbd{C-u 1 M-x |
this happens, save the buffer with @kbd{C-x C-s}, or use @kbd{C-u 1 M-x |
966 |
auto-save}. |
auto-save-mode}. |
967 |
|
|
968 |
@vindex auto-save-visited-file-name |
@vindex auto-save-visited-file-name |
969 |
If you want auto-saving to be done in the visited file rather than |
If you want auto-saving to be done in the visited file rather than |
1568 |
|
|
1569 |
@item |
@item |
1570 |
Pressing @kbd{L} shows the log of the revision at line. This is |
Pressing @kbd{L} shows the log of the revision at line. This is |
1571 |
useful to see the author's description of the changes that occured |
useful to see the author's description of the changes that occurred |
1572 |
when the revision denoted on the current line was committed. |
when the revision denoted on the current line was committed. |
1573 |
|
|
1574 |
@item |
@item |
1586 |
@menu |
@menu |
1587 |
* Registering:: Putting a file under version control. |
* Registering:: Putting a file under version control. |
1588 |
* VC Status:: Viewing the VC status of files. |
* VC Status:: Viewing the VC status of files. |
1589 |
* VC Undo:: Cancelling changes before or after check-in. |
* VC Undo:: Canceling changes before or after check-in. |
1590 |
* VC Dired Mode:: Listing files managed by version control. |
* VC Dired Mode:: Listing files managed by version control. |
1591 |
* VC Dired Commands:: Commands to use in a VC Dired buffer. |
* VC Dired Commands:: Commands to use in a VC Dired buffer. |
1592 |
@end menu |
@end menu |