summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2021-08-17 11:11:35 +0300
committerJuri Linkov <juri@linkov.net>2021-08-17 11:11:35 +0300
commitbf1ec4952e67b474bff813cd26e4d612a359baf1 (patch)
treeea94b1064734e54fefa909b42f27d301e119bdd0 /doc
parent9e2cc406d3bc1a1f2f6008059091b9c1b8f12acf (diff)
parentd9eac0b4263c10b2ab3a428cf8faa4b5e1d99a83 (diff)
downloademacs-bf1ec4952e67b474bff813cd26e4d612a359baf1.tar.gz
Merge branch 'feature/context-menu'
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/frames.texi25
1 files changed, 11 insertions, 14 deletions
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi
index 951e0902cb2..5b15e6290d0 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -366,20 +366,15 @@ This menu is for changing the default face within the window's buffer.
@xref{Text Scale}.
@end table
+@cindex context menu
+@findex context-menu-mode
+@vindex context-menu-functions
+@kindex Down-mouse-3
Some graphical applications use @kbd{mouse-3} for a mode-specific
-menu. If you prefer @kbd{mouse-3} in Emacs to bring up such a menu
-instead of running the @code{mouse-save-then-kill} command, rebind
-@kbd{mouse-3} by adding the following line to your init file
-(@pxref{Init Rebinding}):
-
-@smallexample
-(global-set-key [mouse-3]
- '(menu-item "Menu Bar" ignore
- :filter (lambda (_)
- (if (zerop (or (frame-parameter nil 'menu-bar-lines) 0))
- (mouse-menu-bar-map)
- (mouse-menu-major-mode-map)))))
-@end smallexample
+menu. If you prefer @kbd{mouse-3} in Emacs to bring up such a context
+menu instead of running the @code{mouse-save-then-kill} command,
+enable @code{context-menu-mode} and customize the variable
+@code{context-menu-functions}.
@node Mode Line Mouse
@section Mode Line Mouse Commands
@@ -1218,7 +1213,9 @@ the use of menu bars at startup, customize the variable
terminals, where this makes one additional line available for text.
If the menu bar is off, you can still pop up a menu of its contents
with @kbd{C-mouse-3} on a display which supports pop-up menus.
-@xref{Menu Mouse Clicks}.
+Or you can enable @code{context-menu-mode} and customize the variable
+@code{context-menu-functions} to pop up a context menu with
+@kbd{mouse-3}. @xref{Menu Mouse Clicks}.
@xref{Menu Bar}, for information on how to invoke commands with the
menu bar. @xref{X Resources}, for how to customize the menu bar