+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
(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)))
\f