diff options
| author | Richard M. Stallman | 1996-10-02 10:26:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-10-02 10:26:51 +0000 |
| commit | 363a5030a656d04cf6e3616a8d0397e6c3b15766 (patch) | |
| tree | fe996d60c64a1f0d6a778b32461be5a9d70a7388 | |
| parent | 7af7ef389ac8eb504d3f3fac33555e5d9d9f9d08 (diff) | |
| download | emacs-363a5030a656d04cf6e3616a8d0397e6c3b15766.tar.gz emacs-363a5030a656d04cf6e3616a8d0397e6c3b15766.zip | |
(recover-session): Error if session files turned off.
| -rw-r--r-- | lisp/files.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el index a013c91855b..d99b42476bd 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2304,6 +2304,8 @@ previous sessions that you could recover from. | |||
| 2304 | To choose one, move point to the proper line and then type C-c C-c. | 2304 | To choose one, move point to the proper line and then type C-c C-c. |
| 2305 | Then you'll be asked about a number of files to recover." | 2305 | Then you'll be asked about a number of files to recover." |
| 2306 | (interactive) | 2306 | (interactive) |
| 2307 | (if (null auto-save-list-file-prefix) | ||
| 2308 | (error "You set `auto-save-list-file-prefix' to disable making session files")) | ||
| 2307 | (let ((ls-lisp-support-shell-wildcards t)) | 2309 | (let ((ls-lisp-support-shell-wildcards t)) |
| 2308 | (dired (concat auto-save-list-file-prefix "*"))) | 2310 | (dired (concat auto-save-list-file-prefix "*"))) |
| 2309 | (goto-char (point-min)) | 2311 | (goto-char (point-min)) |