Mercurial > emacs
comparison man/files.texi @ 89966:d8411455de48
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-32
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-486
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-487
Tweak permissions
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-488
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-489
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-490
Update from CVS: man/fixit.texi (Spelling): Fix typo.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-491
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-494
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-495
Update from CVS: Add missing lisp/mh-e files
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-496
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-499
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-500
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-513
Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 27 Aug 2004 07:00:34 +0000 |
parents | 4c90ffeb71c5 1252abee4a21 |
children | ff0e824afa37 |
comparison
equal
deleted
inserted
replaced
89965:5e9097d1ad99 | 89966:d8411455de48 |
---|---|
1 @c This is part of the Emacs manual. | 1 @c This is part of the Emacs manual. |
2 @c Copyright (C) 1985,86,87,93,94,95,97,99, 2000, 2001 | 2 @c Copyright (C) 1985,86,87,93,94,95,97,99, 2000, 2001, 2004 |
3 @c Free Software Foundation, Inc. | 3 @c Free Software Foundation, Inc. |
4 @c See file emacs.texi for copying conditions. | 4 @c See file emacs.texi for copying conditions. |
5 @node Files, Buffers, Keyboard Macros, Top | 5 @node Files, Buffers, Keyboard Macros, Top |
6 @chapter File Handling | 6 @chapter File Handling |
7 @cindex files | 7 @cindex files |
623 excess versions, just after a new backup version is made; the newly | 623 excess versions, just after a new backup version is made; the newly |
624 made backup is included in the count in @code{kept-new-versions}. By | 624 made backup is included in the count in @code{kept-new-versions}. By |
625 default, both variables are 2. | 625 default, both variables are 2. |
626 | 626 |
627 @vindex delete-old-versions | 627 @vindex delete-old-versions |
628 If @code{delete-old-versions} is non-@code{nil}, Emacs deletes the | 628 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 | 629 backup files silently. If it is @code{nil}, the default, Emacs asks |
630 asks you whether it should delete the excess backup versions. | 630 you whether it should delete the excess backup versions. If it has |
631 any other value, then Emacs never automatically deletes backups. | |
631 | 632 |
632 Dired's @kbd{.} (Period) command can also be used to delete old versions. | 633 Dired's @kbd{.} (Period) command can also be used to delete old versions. |
633 @xref{Dired Deletion}. | 634 @xref{Dired Deletion}. |
634 | 635 |
635 @node Backup Copying | 636 @node Backup Copying |
834 @example | 835 @example |
835 Time-stamp: " " | 836 Time-stamp: " " |
836 @end example | 837 @end example |
837 | 838 |
838 Then add the hook function @code{time-stamp} to the hook | 839 Then add the hook function @code{time-stamp} to the hook |
839 @code{write-file-functions}; that hook function will automatically update | 840 @code{before-save-hook}; that hook function will automatically update |
840 the time stamp, inserting the current date and time when you save the | 841 the time stamp, inserting the current date and time when you save the |
841 file. You can also use the command @kbd{M-x time-stamp} to update the | 842 file. You can also use the command @kbd{M-x time-stamp} to update the |
842 time stamp manually. For other customizations, see the Custom group | 843 time stamp manually. For other customizations, see the Custom group |
843 @code{time-stamp}. Note that non-numeric fields in the time stamp are | 844 @code{time-stamp}. Note that non-numeric fields in the time stamp are |
844 formatted according to your locale setting (@pxref{Environment}). | 845 formatted according to your locale setting (@pxref{Environment}). |
940 are not visiting files are auto-saved only if you request it explicitly; | 941 are not visiting files are auto-saved only if you request it explicitly; |
941 when they are auto-saved, the auto-save file name is made by appending | 942 when they are auto-saved, the auto-save file name is made by appending |
942 @samp{#} to the front and rear of buffer name, then | 943 @samp{#} to the front and rear of buffer name, then |
943 adding digits and letters at the end for uniqueness. For | 944 adding digits and letters at the end for uniqueness. For |
944 example, the @samp{*mail*} buffer in which you compose messages to be | 945 example, the @samp{*mail*} buffer in which you compose messages to be |
945 sent might auto-saved in a file named @file{#*mail*#704juu}. Auto-save file | 946 sent might be auto-saved in a file named @file{#*mail*#704juu}. Auto-save file |
946 names are made this way unless you reprogram parts of Emacs to do | 947 names are made this way unless you reprogram parts of Emacs to do |
947 something different (the functions @code{make-auto-save-file-name} and | 948 something different (the functions @code{make-auto-save-file-name} and |
948 @code{auto-save-file-name-p}). The file name to be used for auto-saving | 949 @code{auto-save-file-name-p}). The file name to be used for auto-saving |
949 in a buffer is calculated when auto-saving is turned on in that buffer. | 950 in a buffer is calculated when auto-saving is turned on in that buffer. |
950 | 951 |
960 When you delete a substantial part of the text in a large buffer, auto | 961 When you delete a substantial part of the text in a large buffer, auto |
961 save turns off temporarily in that buffer. This is because if you | 962 save turns off temporarily in that buffer. This is because if you |
962 deleted the text unintentionally, you might find the auto-save file more | 963 deleted the text unintentionally, you might find the auto-save file more |
963 useful if it contains the deleted text. To reenable auto-saving after | 964 useful if it contains the deleted text. To reenable auto-saving after |
964 this happens, save the buffer with @kbd{C-x C-s}, or use @kbd{C-u 1 M-x | 965 this happens, save the buffer with @kbd{C-x C-s}, or use @kbd{C-u 1 M-x |
965 auto-save}. | 966 auto-save-mode}. |
966 | 967 |
967 @vindex auto-save-visited-file-name | 968 @vindex auto-save-visited-file-name |
968 If you want auto-saving to be done in the visited file rather than | 969 If you want auto-saving to be done in the visited file rather than |
969 in a separate auto-save file, set the variable | 970 in a separate auto-save file, set the variable |
970 @code{auto-save-visited-file-name} to a non-@code{nil} value. In this | 971 @code{auto-save-visited-file-name} to a non-@code{nil} value. In this |
1565 previous revision. This is useful to see what actually changed when | 1566 previous revision. This is useful to see what actually changed when |
1566 the revision denoted on the current line was committed. | 1567 the revision denoted on the current line was committed. |
1567 | 1568 |
1568 @item | 1569 @item |
1569 Pressing @kbd{L} shows the log of the revision at line. This is | 1570 Pressing @kbd{L} shows the log of the revision at line. This is |
1570 useful to see the author's description of the changes that occured | 1571 useful to see the author's description of the changes that occurred |
1571 when the revision denoted on the current line was committed. | 1572 when the revision denoted on the current line was committed. |
1572 | 1573 |
1573 @item | 1574 @item |
1574 Pressing @kbd{W} annotates the workfile (most up to date) version. If | 1575 Pressing @kbd{W} annotates the workfile (most up to date) version. If |
1575 you used @kbd{P} and @kbd{N} to browse to other revisions, use this | 1576 you used @kbd{P} and @kbd{N} to browse to other revisions, use this |
1583 use once a day. | 1584 use once a day. |
1584 | 1585 |
1585 @menu | 1586 @menu |
1586 * Registering:: Putting a file under version control. | 1587 * Registering:: Putting a file under version control. |
1587 * VC Status:: Viewing the VC status of files. | 1588 * VC Status:: Viewing the VC status of files. |
1588 * VC Undo:: Cancelling changes before or after check-in. | 1589 * VC Undo:: Canceling changes before or after check-in. |
1589 * VC Dired Mode:: Listing files managed by version control. | 1590 * VC Dired Mode:: Listing files managed by version control. |
1590 * VC Dired Commands:: Commands to use in a VC Dired buffer. | 1591 * VC Dired Commands:: Commands to use in a VC Dired buffer. |
1591 @end menu | 1592 @end menu |
1592 | 1593 |
1593 @node Registering | 1594 @node Registering |