emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 5c6517a115d: ; * lisp/menu-bar.el (popup-menu): Doc fix.


From: Eli Zaretskii
Subject: emacs-29 5c6517a115d: ; * lisp/menu-bar.el (popup-menu): Doc fix.
Date: Thu, 25 May 2023 01:58:06 -0400 (EDT)

branch: emacs-29
commit 5c6517a115d5523ddde43725b415da52ba6ee64c
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * lisp/menu-bar.el (popup-menu): Doc fix.
---
 lisp/menu-bar.el | 7 ++++---
 1 file 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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]