diff options
| author | Paul Eggert | 2016-10-10 07:35:33 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-10-10 07:35:33 -0700 |
| commit | cf9bdf12da73bef67a6cc27a71ab76c67af24111 (patch) | |
| tree | 6b98db09a0df03c66f2750e4e40afabfad1a8229 | |
| parent | 53d1b9dbbee97f674330cda191f889aa55db0e20 (diff) | |
| parent | c4a5e7e18d357c168900215165b0cb41bad06a83 (diff) | |
| download | emacs-cf9bdf12da73bef67a6cc27a71ab76c67af24111.tar.gz emacs-cf9bdf12da73bef67a6cc27a71ab76c67af24111.zip | |
Merge from origin/emacs-25
c4a5e7e Improve documentation of 'menu-bar-open'
| -rw-r--r-- | doc/emacs/screen.texi | 5 | ||||
| -rw-r--r-- | lisp/term/w32-win.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/doc/emacs/screen.texi b/doc/emacs/screen.texi index 580df5fe8ff..716575706cf 100644 --- a/doc/emacs/screen.texi +++ b/doc/emacs/screen.texi | |||
| @@ -304,7 +304,10 @@ the usual way (@pxref{Key Help}). | |||
| 304 | item by pressing @key{F10} (to run the command @code{menu-bar-open}). | 304 | item by pressing @key{F10} (to run the command @code{menu-bar-open}). |
| 305 | You can then navigate the menus with the arrow keys. To activate a | 305 | You can then navigate the menus with the arrow keys. To activate a |
| 306 | selected menu item, press @key{RET}; to cancel menu navigation, press | 306 | selected menu item, press @key{RET}; to cancel menu navigation, press |
| 307 | @kbd{C-g} or @kbd{@key{ESC} @key{ESC} @key{ESC}}. | 307 | @kbd{C-g} or @kbd{@key{ESC} @key{ESC} @key{ESC}}. (However, note that |
| 308 | when Emacs was built with a GUI toolkit, the menus are drawn and | ||
| 309 | controlled by the toolkit, and the key sequences to cancel menu | ||
| 310 | navigation might be different from the above description.) | ||
| 308 | 311 | ||
| 309 | @kindex M-` | 312 | @kindex M-` |
| 310 | @findex tmm-menubar | 313 | @findex tmm-menubar |
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 8f3eaa2c029..f705ec17a55 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el | |||
| @@ -177,12 +177,15 @@ the last file dropped is selected." | |||
| 177 | 177 | ||
| 178 | ;;; make f10 activate the real menubar rather than the mini-buffer menu | 178 | ;;; make f10 activate the real menubar rather than the mini-buffer menu |
| 179 | ;;; navigation feature. | 179 | ;;; navigation feature. |
| 180 | (defun w32-menu-bar-open (&optional frame) | 180 | (defun w32-menu-bar-open (&optional frame) |
| 181 | "Start key navigation of the menu bar in FRAME. | 181 | "Start key navigation of the menu bar in FRAME. |
| 182 | 182 | ||
| 183 | This initially activates the first menu-bar item, and you can then navigate | 183 | This initially activates the first menu-bar item, and you can then navigate |
| 184 | with the arrow keys, select a menu entry with the Return key or cancel with | 184 | with the arrow keys, select a menu entry with the Return key or cancel with |
| 185 | the Escape key. If FRAME has no menu bar, this function does nothing. | 185 | one or two Escape keypresses. (Two Escape keypresses are needed when a |
| 186 | menu was already dropped down by pressing Return.) | ||
| 187 | |||
| 188 | If FRAME has no menu bar, this function does nothing. | ||
| 186 | 189 | ||
| 187 | If FRAME is nil or not given, use the selected frame. | 190 | If FRAME is nil or not given, use the selected frame. |
| 188 | If FRAME does not have the menu bar enabled, display a text menu using | 191 | If FRAME does not have the menu bar enabled, display a text menu using |