diff options
| author | Karoly Lorentey | 2006-07-29 20:57:26 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-07-29 20:57:26 +0000 |
| commit | 14ab3a40ec0cfdfa7f351e1202e0f873af553391 (patch) | |
| tree | 8e0369b9f5716ef4fac672fd816af559051396ff /src | |
| parent | e6aee454e682e137d5b04116716d308c1d5c3544 (diff) | |
| download | emacs-14ab3a40ec0cfdfa7f351e1202e0f873af553391.tar.gz emacs-14ab3a40ec0cfdfa7f351e1202e0f873af553391.zip | |
Fix F10 behaviour. (Reported by Bernard Adrian.)
* src/xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]:
Rename from Fmenu_bar_open.
(syms_of_xmenu): Update defsubr.
* lisp/menu-bar.el (menu-bar-open): New function.
Bind it to f10.
* lisp/term/x-win.el: Don't bind f10.
* lisp/tmm.el: Remove autoload binding for f10.
* lisp/ldefs-boot.el: Regenerate.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-577
Diffstat (limited to 'src')
| -rw-r--r-- | src/gtkutil.c | 2 | ||||
| -rw-r--r-- | src/xmenu.c | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index f4a2b4d3f52..4329ce236de 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -1970,7 +1970,7 @@ xg_create_one_menuitem (item, f, select_cb, highlight_cb, cl_data, group) | |||
| 1970 | return w; | 1970 | return w; |
| 1971 | } | 1971 | } |
| 1972 | 1972 | ||
| 1973 | /* Callback called when keyboard traversal (started by menu-bar-open) ends. | 1973 | /* Callback called when keyboard traversal (started by x-menu-bar-open) ends. |
| 1974 | WMENU is the menu for which traversal has been done. DATA points to the | 1974 | WMENU is the menu for which traversal has been done. DATA points to the |
| 1975 | frame for WMENU. We must release grabs, some bad interaction between GTK | 1975 | frame for WMENU. We must release grabs, some bad interaction between GTK |
| 1976 | and Emacs makes the menus keep the grabs. */ | 1976 | and Emacs makes the menus keep the grabs. */ |
diff --git a/src/xmenu.c b/src/xmenu.c index 48320479ad8..1650222ae84 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1310,7 +1310,7 @@ popup_get_selection (initial_event, dpyinfo, id, do_timers) | |||
| 1310 | } | 1310 | } |
| 1311 | } | 1311 | } |
| 1312 | 1312 | ||
| 1313 | DEFUN ("menu-bar-open", Fmenu_bar_open, Smenu_bar_open, 0, 1, "i", | 1313 | DEFUN ("x-menu-bar-open", Fx_menu_bar_open, Sx_menu_bar_open, 0, 1, "i", |
| 1314 | doc: /* Start key navigation of the menu bar in FRAME. | 1314 | doc: /* Start key navigation of the menu bar in FRAME. |
| 1315 | This initially opens the first menu bar item and you can then navigate with the | 1315 | This initially opens the first menu bar item and you can then navigate with the |
| 1316 | arrow keys, select a menu entry with the return key or cancel with the | 1316 | arrow keys, select a menu entry with the return key or cancel with the |
| @@ -1389,7 +1389,7 @@ If FRAME is nil or not given, use the selected frame. */) | |||
| 1389 | 1389 | ||
| 1390 | 1390 | ||
| 1391 | #ifdef USE_GTK | 1391 | #ifdef USE_GTK |
| 1392 | DEFUN ("menu-bar-open", Fmenu_bar_open, Smenu_bar_open, 0, 1, "i", | 1392 | DEFUN ("x-menu-bar-open", Fx_menu_bar_open, Sx_menu_bar_open, 0, 1, "i", |
| 1393 | doc: /* Start key navigation of the menu bar in FRAME. | 1393 | doc: /* Start key navigation of the menu bar in FRAME. |
| 1394 | This initially opens the first menu bar item and you can then navigate with the | 1394 | This initially opens the first menu bar item and you can then navigate with the |
| 1395 | arrow keys, select a menu entry with the return key or cancel with the | 1395 | arrow keys, select a menu entry with the return key or cancel with the |
| @@ -3816,9 +3816,10 @@ The enable predicate for a menu command should check this variable. */); | |||
| 3816 | defsubr (&Sx_popup_menu); | 3816 | defsubr (&Sx_popup_menu); |
| 3817 | 3817 | ||
| 3818 | #if defined (USE_GTK) || defined (USE_X_TOOLKIT) | 3818 | #if defined (USE_GTK) || defined (USE_X_TOOLKIT) |
| 3819 | defsubr (&Smenu_bar_open); | 3819 | defsubr (&Sx_menu_bar_open); |
| 3820 | Fdefalias (intern ("accelerate-menu"), intern (Smenu_bar_open.symbol_name), | 3820 | Fdefalias (intern ("accelerate-menu"), |
| 3821 | Qnil); | 3821 | intern (Sx_menu_bar_open.symbol_name), |
| 3822 | Qnil); | ||
| 3822 | #endif | 3823 | #endif |
| 3823 | 3824 | ||
| 3824 | #ifdef HAVE_MENUS | 3825 | #ifdef HAVE_MENUS |