aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-09-13 21:32:58 +0000
committerChong Yidong2009-09-13 21:32:58 +0000
commite17ed9add8ab6405a812db34eaea6392f8017ed6 (patch)
tree64dc282543f11514952d26db086934a8c1787fa3
parent120812a0ba503879347d81d8ea367f90a394a7e7 (diff)
downloademacs-e17ed9add8ab6405a812db34eaea6392f8017ed6.tar.gz
emacs-e17ed9add8ab6405a812db34eaea6392f8017ed6.zip
* term/x-win.el (x-menu-bar-open): Only call accelerate-menu if it
is defined (Bug#4405).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/term/x-win.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0ad8e2f07cf..c10bd3a0cc4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-09-13 Chong Yidong <cyd@stupidchicken.com>
2
3 * term/x-win.el (x-menu-bar-open): Only call accelerate-menu if it
4 is defined (Bug#4405).
5
12009-09-13 Vincent Belaïche <vincent.belaiche@gmail.com> 62009-09-13 Vincent Belaïche <vincent.belaiche@gmail.com>
2 7
3 * recentf.el (recentf-cleanup): Use a hash table to find 8 * recentf.el (recentf-cleanup): Use a hash table to find
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 39eab12f2a7..2648865e0a0 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -1445,7 +1445,9 @@ The value nil is the same as this list:
1445(defun x-menu-bar-open (&optional frame) 1445(defun x-menu-bar-open (&optional frame)
1446 "Open the menu bar if `menu-bar-mode' is on. otherwise call `tmm-menubar'." 1446 "Open the menu bar if `menu-bar-mode' is on. otherwise call `tmm-menubar'."
1447 (interactive "i") 1447 (interactive "i")
1448 (if menu-bar-mode (accelerate-menu frame) 1448 (if (and menu-bar-mode
1449 (fboundp 'accelerate-menu))
1450 (accelerate-menu frame)
1449 (tmm-menubar))) 1451 (tmm-menubar)))
1450 1452
1451 1453