aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMark Diekhans2011-01-14 21:32:19 -0500
committerChong Yidong2011-01-14 21:32:19 -0500
commitb024d9f02d2758815069b2a0df3af72fcf0ee220 (patch)
treec804be069540cb3f8562a4d50c07ce6e0e8d7e6d /doc
parent66399c0a66e87c20edad6a7eb2474981d9bc7e4e (diff)
downloademacs-b024d9f02d2758815069b2a0df3af72fcf0ee220.tar.gz
emacs-b024d9f02d2758815069b2a0df3af72fcf0ee220.zip
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 @@
12011-01-15 Chong Yidong <cyd@stupidchicken.com>
2
3 * files.texi (Backup Names): Document the new location of the
4 last-resort backup file.
5
12011-01-08 Chong Yidong <cyd@stupidchicken.com> 62011-01-08 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * files.texi (File Aliases): Move directory-abbrev-alist doc from Lisp 8 * 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.
566appending @samp{~} to the file name being edited; thus, the backup 566appending @samp{~} to the file name being edited; thus, the backup
567file for @file{eval.c} would be @file{eval.c~}. 567file for @file{eval.c} would be @file{eval.c~}.
568 568
569 If access control stops Emacs from writing backup files under the usual 569 If access control stops Emacs from writing backup files under the
570names, it writes the backup file as @file{%backup%~} in your home 570usual names, it writes the backup file as @file{~/.emacs.d/%backup%~}.
571directory. Only one such file can exist, so only the most recently 571Only one such file can exist, so only the most recently made such
572made such backup is available. 572backup is available.
573 573
574 Emacs can also make @dfn{numbered backup files}. Numbered backup 574 Emacs can also make @dfn{numbered backup files}. Numbered backup
575file names contain @samp{.~}, the number, and another @samp{~} after 575file names contain @samp{.~}, the number, and another @samp{~} after