summaryrefslogtreecommitdiff
path: root/lisp/menu-bar.el
diff options
context:
space:
mode:
authorNoah Friedman <friedman@splode.com>2000-07-24 00:28:27 +0000
committerNoah Friedman <friedman@splode.com>2000-07-24 00:28:27 +0000
commitdb3ca487f6000241f1d303f255df5c6af684f786 (patch)
tree1629c766679018b2d49f27fb5ae875ca9fe3cc5b /lisp/menu-bar.el
parentf7ad18995636bd9df8ba71b96e63e553939b6603 (diff)
downloademacs-db3ca487f6000241f1d303f255df5c6af684f786.tar.gz
(menu-bar-files-menu [recover-session]): Make sure auto save directory
exists before calling directory-files.
Diffstat (limited to 'lisp/menu-bar.el')
-rw-r--r--lisp/menu-bar.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index b28b5ef4a37..9bde22e593c 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -124,7 +124,9 @@ A large number or nil slows down menu responsiveness."
(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 "\\`"