aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2016-10-10 07:35:33 -0700
committerPaul Eggert2016-10-10 07:35:33 -0700
commitcf9bdf12da73bef67a6cc27a71ab76c67af24111 (patch)
tree6b98db09a0df03c66f2750e4e40afabfad1a8229
parent53d1b9dbbee97f674330cda191f889aa55db0e20 (diff)
parentc4a5e7e18d357c168900215165b0cb41bad06a83 (diff)
downloademacs-cf9bdf12da73bef67a6cc27a71ab76c67af24111.tar.gz
emacs-cf9bdf12da73bef67a6cc27a71ab76c67af24111.zip
Merge from origin/emacs-25
c4a5e7e Improve documentation of 'menu-bar-open'
-rw-r--r--doc/emacs/screen.texi5
-rw-r--r--lisp/term/w32-win.el7
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}).
304item by pressing @key{F10} (to run the command @code{menu-bar-open}). 304item by pressing @key{F10} (to run the command @code{menu-bar-open}).
305You can then navigate the menus with the arrow keys. To activate a 305You can then navigate the menus with the arrow keys. To activate a
306selected menu item, press @key{RET}; to cancel menu navigation, press 306selected 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
308when Emacs was built with a GUI toolkit, the menus are drawn and
309controlled by the toolkit, and the key sequences to cancel menu
310navigation 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
183This initially activates the first menu-bar item, and you can then navigate 183This initially activates the first menu-bar item, and you can then navigate
184with the arrow keys, select a menu entry with the Return key or cancel with 184with the arrow keys, select a menu entry with the Return key or cancel with
185the Escape key. If FRAME has no menu bar, this function does nothing. 185one or two Escape keypresses. (Two Escape keypresses are needed when a
186menu was already dropped down by pressing Return.)
187
188If FRAME has no menu bar, this function does nothing.
186 189
187If FRAME is nil or not given, use the selected frame. 190If FRAME is nil or not given, use the selected frame.
188If FRAME does not have the menu bar enabled, display a text menu using 191If FRAME does not have the menu bar enabled, display a text menu using