From bf7970c5645ce057c15de09217cf8ae46a9271df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Sun, 6 Mar 2005 20:18:06 +0000 Subject: [PATCH] * menu-bar.el (menu-bar-file-menu): Add the same :enable to "Open Directory" as for "Open File". --- lisp/ChangeLog | 5 +++++ lisp/menu-bar.el | 2 ++ 2 files changed, 7 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f41aa23695c..a3826bf9a4b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2005-03-06 Jan Dj,Ad(Brv + + * menu-bar.el (menu-bar-file-menu): Add the same :enable to + "Open Directory" as for "Open File". + 2005-03-06 Chong Yidong * simple.el (activate-mark-hook, deactivate-mark-hook): Add defvars. diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 093969d5725..8dfb6a792df 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -184,6 +184,8 @@ A large number or nil slows down menu responsiveness." :help "Insert another file into current buffer")) (define-key menu-bar-file-menu [dired] '(menu-item "Open Directory..." dired + :enable (not (window-minibuffer-p + (frame-selected-window menu-updating-frame))) :help "Read a directory, operate on its files")) (define-key menu-bar-file-menu [open-file] '(menu-item "Open File..." find-file-existing -- 2.39.2