summaryrefslogtreecommitdiff
path: root/lispref/backups.texi
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-05-19 03:45:57 +0000
committerRichard M. Stallman <rms@gnu.org>1998-05-19 03:45:57 +0000
commita9f0a989a17f47f9d25b7a426b4e82a8ff684ee4 (patch)
treed62b5592064177c684f1509989b223623db3f24c /lispref/backups.texi
parentc6d6572475603083762cb0155ae966de7710bb9c (diff)
downloademacs-a9f0a989a17f47f9d25b7a426b4e82a8ff684ee4.tar.gz
*** empty log message ***
Diffstat (limited to 'lispref/backups.texi')
-rw-r--r--lispref/backups.texi12
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