comparison lisp/files.el @ 28788:b4439d3505f3

(recover-session): Make directories as necessary if they don't exist yet.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 02 May 2000 20:09:21 +0000
parents 8ab223e4ce03
children 58f8c0da3eb3
comparison
equal deleted inserted replaced
28787:90e5b2abbd10 28788:b4439d3505f3
3009 To choose one, move point to the proper line and then type C-c C-c. 3009 To choose one, move point to the proper line and then type C-c C-c.
3010 Then you'll be asked about a number of files to recover." 3010 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")))
3017 (save-excursion 3020 (save-excursion
3018 (goto-char (point-min)) 3021 (goto-char (point-min))