1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Fix mouse-posn-property

* doc/lispref/commands.texi (Click Events): Mention menu-bar.
* lisp/mouse.el (mouse-event-areas-with-no-buffer-positions):
New defvar including all areas mentioned in the Lisp reference.
(mouse-posn-property): Use it.
This commit is contained in:
Gerd Möllmann 2025-03-14 15:44:04 +01:00
parent 88e30e1ac5
commit b105089715
2 changed files with 20 additions and 9 deletions

View file

@ -1675,8 +1675,8 @@ The buffer position of the character clicked on in the text area; or,
if the event was outside the text area, the window area where it
occurred. It is one of the symbols @code{mode-line},
@code{header-line}, @code{tab-line}, @code{vertical-line},
@code{left-margin}, @code{right-margin}, @code{left-fringe}, or
@code{right-fringe}.
@code{left-margin}, @code{right-margin}, @code{left-fringe},
@code{right-fringe}, @code{tab-bar}, or @code{menu-bar}.
In one special case, @var{pos-or-area} is a list containing a symbol
(one of the symbols listed above) instead of just the symbol. This