diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-05-25 08:57:28 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-05-25 08:57:28 +0300 |
commit | 5c6517a115d5523ddde43725b415da52ba6ee64c (patch) | |
tree | 15bb49047ffa615e6d420703a3957618128ad34c /lisp | |
parent | 212884f2bfed7f00e58aad183edd20ecc2a23e71 (diff) | |
download | emacs-5c6517a115d5523ddde43725b415da52ba6ee64c.tar.gz emacs-5c6517a115d5523ddde43725b415da52ba6ee64c.tar.bz2 emacs-5c6517a115d5523ddde43725b415da52ba6ee64c.zip |
; * lisp/menu-bar.el (popup-menu): Doc fix.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/menu-bar.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index d020cf6e90a..88873ce5e24 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -1,4 +1,4 @@ -;;; menu-bar.el --- define a default menu bar -*- lexical-binding: t; -*- +2070;;; menu-bar.el --- define a default menu bar -*- lexical-binding: t; -*- ;; Copyright (C) 1993-1995, 2000-2023 Free Software Foundation, Inc. @@ -2567,10 +2567,11 @@ See `menu-bar-mode' for more information." binding))) (defun popup-menu (menu &optional position prefix from-menu-bar) - "Popup the given menu and call the selected option. + "Popup MENU and call the selected option. MENU can be a keymap, an easymenu-style menu or a list of keymaps as for `x-popup-menu'. -The menu is shown at the place where POSITION specifies. +The menu is shown at the location specified by POSITION, which +defaults to the place of the mouse click that popped the menu. For the form of POSITION, see `popup-menu-normalize-position'. PREFIX is the prefix argument (if any) to pass to the command. FROM-MENU-BAR, if non-nil, means we are dropping one of menu-bar's menus." |