summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMark Diekhans <markd@soe.ucsc.edu>2011-01-14 21:32:19 -0500
committerChong Yidong <cyd@stupidchicken.com>2011-01-14 21:32:19 -0500
commitb024d9f02d2758815069b2a0df3af72fcf0ee220 (patch)
treec804be069540cb3f8562a4d50c07ce6e0e8d7e6d /doc
parent66399c0a66e87c20edad6a7eb2474981d9bc7e4e (diff)
downloademacs-b024d9f02d2758815069b2a0df3af72fcf0ee220.tar.gz
Make last-resort backup file in .emacs.d (Bug#6953).
* lisp/files.el (backup-buffer): Make last-resort backup file in .emacs.d. * lisp/subr.el (locate-user-emacs-file): If .emacs.d does not exist, make it with permission 700. * doc/emacs/files.texi (Backup Names): Document the new location of the last-resort backup file.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/files.texi8
2 files changed, 9 insertions, 4 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 4825f08979f..d1e5beb7384 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-15 Chong Yidong <cyd@stupidchicken.com>
+
+ * files.texi (Backup Names): Document the new location of the
+ last-resort backup file.
+
2011-01-08 Chong Yidong <cyd@stupidchicken.com>
* files.texi (File Aliases): Move directory-abbrev-alist doc from Lisp
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 530c2bb94f7..b16549450e4 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -566,10 +566,10 @@ another from the newly saved contents if you save again.
appending @samp{~} to the file name being edited; thus, the backup
file for @file{eval.c} would be @file{eval.c~}.
- If access control stops Emacs from writing backup files under the usual
-names, it writes the backup file as @file{%backup%~} in your home
-directory. Only one such file can exist, so only the most recently
-made such backup is available.
+ If access control stops Emacs from writing backup files under the
+usual names, it writes the backup file as @file{~/.emacs.d/%backup%~}.
+Only one such file can exist, so only the most recently made such
+backup is available.
Emacs can also make @dfn{numbered backup files}. Numbered backup
file names contain @samp{.~}, the number, and another @samp{~} after