From: Jan Djärv Date: Sun, 6 Mar 2005 20:18:06 +0000 (+0000) Subject: * menu-bar.el (menu-bar-file-menu): Add the same :enable to X-Git-Tag: ttn-vms-21-2-B4~1926 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bf7970c5645ce057c15de09217cf8ae46a9271df;p=emacs.git * menu-bar.el (menu-bar-file-menu): Add the same :enable to "Open Directory" as for "Open File". --- 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