diff lisp/files.el @ 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 5c4b76c66de2
children 8c72a338e436
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))