changeset 105004:782f60a5e57a

* term/x-win.el (x-menu-bar-open): Only call accelerate-menu if it is defined (Bug#4405).
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 13 Sep 2009 21:32:58 +0000
parents 5b946f854966
children ce02e739e6e8
files lisp/ChangeLog lisp/term/x-win.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Sep 13 21:21:40 2009 +0000
+++ b/lisp/ChangeLog	Sun Sep 13 21:32:58 2009 +0000
@@ -1,3 +1,8 @@
+2009-09-13  Chong Yidong  <cyd@stupidchicken.com>
+
+	* term/x-win.el (x-menu-bar-open): Only call accelerate-menu if it
+	is defined (Bug#4405).
+
 2009-09-13  Vincent Belaïche  <vincent.belaiche@gmail.com>
 
 	* recentf.el (recentf-cleanup): Use a hash table to find
--- a/lisp/term/x-win.el	Sun Sep 13 21:21:40 2009 +0000
+++ b/lisp/term/x-win.el	Sun Sep 13 21:32:58 2009 +0000
@@ -1445,7 +1445,9 @@
 (defun x-menu-bar-open (&optional frame)
   "Open the menu bar if `menu-bar-mode' is on. otherwise call `tmm-menubar'."
   (interactive "i")
-  (if menu-bar-mode (accelerate-menu frame)
+  (if (and menu-bar-mode
+	   (fboundp 'accelerate-menu))
+      (accelerate-menu frame)
     (tmm-menubar)))