Mercurial > emacs
diff lispref/backups.texi @ 22138:d4ac295a98b3
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 19 May 1998 03:45:57 +0000 |
parents | 90da2489c498 |
children | 40089afa2b1d |
line wrap: on
line diff
--- a/lispref/backups.texi Tue May 19 03:41:25 1998 +0000 +++ b/lispref/backups.texi Tue May 19 03:45:57 1998 +0000 @@ -289,7 +289,8 @@ non-numbered backup file for file @var{filename}. On Unix, this is just @var{filename} with a tilde appended. -The standard definition of this function is as follows: +The standard definition of this function, on most operating systems, is +as follows: @smallexample @group @@ -306,7 +307,9 @@ @smallexample @group (defun make-backup-file-name (filename) - (concat "." filename "~")) + (expand-file-name + (concat "." (file-name-nondirectory filename) "~") + (file-name-directory filename))) @end group @group @@ -314,6 +317,11 @@ @result{} ".backups.texi~" @end group @end smallexample + +Some parts of Emacs, including some Dired commands, assume that backup +file names end with @samp{~}. If you do not follow that convention, it +will not cause serious problems, but these commands may give +less-than-desirable results. @end defun @defun find-backup-file-name filename