X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/b7ad5db04ba068ac9cbcfb9a02291e957d093a32..9a834970e822db10bc887db343fd8561a3639a66:/doc/emacs/files.texi diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index bbb6070874..ec227e9c2c 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -522,6 +522,18 @@ a new backup file. @kbd{C-u C-u C-u C-x C-s} does both things: it makes a backup from the previous contents, and arranges to make another from the newly saved contents if you save again. +@vindex backup-directory-alist + You can customize the variable @code{backup-directory-alist} to +specify that files matching certain patterns should be backed up in +specific directories. A typical use is to add an element @code{("." +. @var{dir})} to make all backups in the directory with absolute name +@var{dir}. Emacs modifies the backup file names to avoid clashes +between files with the same names originating in different +directories. Alternatively, adding, @code{("." . ".~")} would make +backups in the invisible subdirectory @file{.~} of the original file's +directory. Emacs creates the directory, if necessary, to make the +backup. + @menu * Names: Backup Names. How backup files are named. * Deletion: Backup Deletion. Emacs deletes excess numbered backups. @@ -585,19 +597,6 @@ value is @samp{nil} or @samp{existing}, then @code{version-control} becomes @code{nil}; if it is @samp{never} or @samp{simple}, then @code{version-control} becomes @code{never}. -@vindex backup-directory-alist - You can customize the variable @code{backup-directory-alist} to -specify that files matching certain patterns should be backed up in -specific directories. This variable applies to both single and -numbered backups. A typical use is to add an element @code{("." -. @var{dir})} to make all backups in the directory with absolute name -@var{dir}; Emacs modifies the backup file names to avoid clashes -between files with the same names originating in different -directories. Alternatively, adding, @code{("." . ".~")} would make -backups in the invisible subdirectory @file{.~} of the original file's -directory. Emacs creates the directory, if necessary, to make the -backup. - @vindex make-backup-file-name-function If you set the variable @code{make-backup-file-name-function} to a suitable Lisp function, you can override the usual way Emacs @@ -1282,7 +1281,7 @@ The value of @code{diff-switches} should be a string; the default is @c Note that the actual name of the info file is diffutils.info, @c but it adds a dir entry for diff too. @c On older systems, only "info diff" works, not "info diffutils". -@xref{Top,, Diff, diff, Comparing and Merging Files}, for more +@xref{Top,, Diff, diffutils, Comparing and Merging Files}, for more information about the @command{diff} program. The output of the @code{diff} command is shown using a major mode