diff options
| author | Gerd Moellmann | 2000-05-02 20:09:21 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-05-02 20:09:21 +0000 |
| commit | 1d18bc3a67cfe076a2b32149f017e7860b12bc70 (patch) | |
| tree | ff249f630d4eb4aa201ba613b3c8b0de2668e3ee | |
| parent | 7c7ff7f5d18ebe74842db645eb6ff4b63e778f0b (diff) | |
| download | emacs-1d18bc3a67cfe076a2b32149f017e7860b12bc70.tar.gz emacs-1d18bc3a67cfe076a2b32149f017e7860b12bc70.zip | |
(recover-session): Make directories as necessary
if they don't exist yet.
| -rw-r--r-- | lisp/files.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el index 039f7fc5a22..f9fbc763097 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -3011,6 +3011,9 @@ Then you'll be asked about a number of files to recover." | |||
| 3011 | (interactive) | 3011 | (interactive) |
| 3012 | (if (null auto-save-list-file-prefix) | 3012 | (if (null auto-save-list-file-prefix) |
| 3013 | (error "You set `auto-save-list-file-prefix' to disable making session files")) | 3013 | (error "You set `auto-save-list-file-prefix' to disable making session files")) |
| 3014 | (let ((dir (file-name-directory auto-save-list-file-prefix))) | ||
| 3015 | (unless (file-directory-p dir) | ||
| 3016 | (make-directory dir t))) | ||
| 3014 | (let ((ls-lisp-support-shell-wildcards t)) | 3017 | (let ((ls-lisp-support-shell-wildcards t)) |
| 3015 | (dired (concat auto-save-list-file-prefix "*") | 3018 | (dired (concat auto-save-list-file-prefix "*") |
| 3016 | (concat dired-listing-switches "t"))) | 3019 | (concat dired-listing-switches "t"))) |