diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-05-19 03:45:57 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-05-19 03:45:57 +0000 |
commit | 9deac83199cdbd5d3231f35022f6129fb8a3edf5 (patch) | |
tree | d2f242286e0073005277ce19dd43d4b0bf300c4c /lispref/backups.texi | |
parent | 7a1297f918acdca3438f6393fac1928af2357c58 (diff) | |
download | emacs-9deac83199cdbd5d3231f35022f6129fb8a3edf5.tar.gz |
*** empty log message ***
Diffstat (limited to 'lispref/backups.texi')
-rw-r--r-- | lispref/backups.texi | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lispref/backups.texi b/lispref/backups.texi index 9707ade9eef..3cdd88d5c08 100644 --- a/lispref/backups.texi +++ b/lispref/backups.texi @@ -289,7 +289,8 @@ This function returns a string that is the name to use for a 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 @@ to prepend a @samp{.} in addition to appending a tilde: @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 @@ to prepend a @samp{.} in addition to appending a tilde: @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 |