changeset 16372:e311d5372d8c

(recover-session): Error if session files turned off.
author Richard M. Stallman <rms@gnu.org>
date Wed, 02 Oct 1996 10:26:51 +0000
parents 906cef1d36bd
children d50369f4bb41
files lisp/files.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Wed Oct 02 01:03:22 1996 +0000
+++ b/lisp/files.el	Wed Oct 02 10:26:51 1996 +0000
@@ -2304,6 +2304,8 @@
 To choose one, move point to the proper line and then type C-c C-c.
 Then you'll be asked about a number of files to recover."
   (interactive)
+  (if (null auto-save-list-file-prefix)
+      (error "You set `auto-save-list-file-prefix' to disable making session files"))
   (let ((ls-lisp-support-shell-wildcards t))
     (dired (concat auto-save-list-file-prefix "*")))
   (goto-char (point-min))