changeset 30387:b3f8b3df8d4f

(menu-bar-files-menu [recover-session]): Make sure auto save directory exists before calling directory-files.
author Noah Friedman <friedman@splode.com>
date Mon, 24 Jul 2000 00:27:49 +0000
parents 528996bc83df
children 018e42425bee
files lisp/menu-bar.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/menu-bar.el	Sun Jul 23 16:05:53 2000 +0000
+++ b/lisp/menu-bar.el	Mon Jul 24 00:27:49 2000 +0000
@@ -124,7 +124,9 @@
 (define-key menu-bar-files-menu [recover-session]
   '(menu-item "Recover Crashed Session..." recover-session
 	      :enable (and auto-save-list-file-prefix
-			   (directory-files
+			   (file-directory-p
+                            (file-name-directory auto-save-list-file-prefix))
+                           (directory-files
 			    (file-name-directory auto-save-list-file-prefix)
 			    nil
 			    (concat "\\`"