diff options
| author | Mark Diekhans | 2011-01-14 21:32:19 -0500 |
|---|---|---|
| committer | Chong Yidong | 2011-01-14 21:32:19 -0500 |
| commit | b024d9f02d2758815069b2a0df3af72fcf0ee220 (patch) | |
| tree | c804be069540cb3f8562a4d50c07ce6e0e8d7e6d /doc | |
| parent | 66399c0a66e87c20edad6a7eb2474981d9bc7e4e (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/emacs/files.texi | 8 |
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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-01-08 Chong Yidong <cyd@stupidchicken.com> | 6 | 2011-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. | |||
| 566 | appending @samp{~} to the file name being edited; thus, the backup | 566 | appending @samp{~} to the file name being edited; thus, the backup |
| 567 | file for @file{eval.c} would be @file{eval.c~}. | 567 | file 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 |
| 570 | names, it writes the backup file as @file{%backup%~} in your home | 570 | usual names, it writes the backup file as @file{~/.emacs.d/%backup%~}. |
| 571 | directory. Only one such file can exist, so only the most recently | 571 | Only one such file can exist, so only the most recently made such |
| 572 | made such backup is available. | 572 | backup 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 |
| 575 | file names contain @samp{.~}, the number, and another @samp{~} after | 575 | file names contain @samp{.~}, the number, and another @samp{~} after |