changeset 60465:f26879919f58

* menu-bar.el (menu-bar-file-menu): Add the same :enable to "Open Directory" as for "Open File".
author Jan Djärv <jan.h.d@swipnet.se>
date Sun, 06 Mar 2005 20:18:06 +0000
parents e87ceb26377f
children 53053dc21ae7
files lisp/ChangeLog lisp/menu-bar.el
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Mar 06 20:16:01 2005 +0000
+++ b/lisp/ChangeLog	Sun Mar 06 20:18:06 2005 +0000
@@ -1,3 +1,8 @@
+2005-03-06  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
+
+	* menu-bar.el (menu-bar-file-menu): Add the same :enable to
+	"Open Directory" as for "Open File".
+
 2005-03-06  Chong Yidong  <cyd@stupidchicken.com>
 
 	* simple.el (activate-mark-hook, deactivate-mark-hook): Add defvars.
--- a/lisp/menu-bar.el	Sun Mar 06 20:16:01 2005 +0000
+++ b/lisp/menu-bar.el	Sun Mar 06 20:18:06 2005 +0000
@@ -184,6 +184,8 @@
 	      :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