diff options
| author | Masatake YAMATO | 2013-10-10 19:47:11 +0900 |
|---|---|---|
| committer | Masatake YAMATO | 2013-10-10 19:47:11 +0900 |
| commit | 2f6e161e3e7d2b6dd6f3b96dc69207e607b11181 (patch) | |
| tree | 04739b7aba67ec3280f75e9b9bc86813bd524a7f | |
| parent | a18180b9993af6579c0347360fb053c50a8b4c04 (diff) | |
| download | emacs-2f6e161e3e7d2b6dd6f3b96dc69207e607b11181.tar.gz emacs-2f6e161e3e7d2b6dd6f3b96dc69207e607b11181.zip | |
* lisp/menu-bar.el (menu-bar-open): Don't use popup-menu if
menu-bar is hidden.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d219bade1d9..8f9450f0db8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-10 Masatake YAMATO <yamato@redhat.com> | ||
| 2 | |||
| 3 | * menu-bar.el (menu-bar-open): Don't use popup-menu if | ||
| 4 | menu-bar is hidden. | ||
| 5 | |||
| 1 | 2013-10-10 Martin Rudalics <rudalics@gmx.at> | 6 | 2013-10-10 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * window.el (pop-to-buffer-same-window): Fix doc-string. | 8 | * window.el (pop-to-buffer-same-window): Fix doc-string. |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 375de582f99..25e019f6c3c 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -2359,7 +2359,8 @@ If FRAME is nil or not given, use the selected frame." | |||
| 2359 | (cond | 2359 | (cond |
| 2360 | ((eq type 'x) (x-menu-bar-open frame)) | 2360 | ((eq type 'x) (x-menu-bar-open frame)) |
| 2361 | ((eq type 'w32) (w32-menu-bar-open frame)) | 2361 | ((eq type 'w32) (w32-menu-bar-open frame)) |
| 2362 | ((null tty-menu-open-use-tmm) | 2362 | ((and (null tty-menu-open-use-tmm) |
| 2363 | (not (zerop (or (frame-parameter nil 'menu-bar-lines) 0)))) | ||
| 2363 | (let* ((x tty-menu--initial-menu-x) | 2364 | (let* ((x tty-menu--initial-menu-x) |
| 2364 | (menu (menu-bar-menu-at-x-y x 0 frame))) | 2365 | (menu (menu-bar-menu-at-x-y x 0 frame))) |
| 2365 | (popup-menu (or | 2366 | (popup-menu (or |