* term/x-win.el (x-menu-bar-open): Only call accelerate-menu if it

is defined (Bug#4405).
This commit is contained in:
Chong Yidong 2009-09-13 21:32:58 +00:00
parent 120812a0ba
commit e17ed9add8
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -1445,7 +1445,9 @@ The value nil is the same as this list:
(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)))