; Fix documentation of last change.

* src/xdisp.c (syms_of_xdisp):
* src/dispnew.c (syms_of_display):
* doc/lispref/commands.texi (Accessing Mouse): Fix documentation
of last change.
This commit is contained in:
Eli Zaretskii 2023-07-22 18:50:26 +03:00
parent 7a0c0b2ad8
commit cfdce1a19f
3 changed files with 11 additions and 11 deletions

View file

@ -2758,12 +2758,13 @@ to the entire window area including scroll bars, margins and fringes.
@defopt mouse-prefer-closest-glyph
If this variable is non-@code{nil}, the @code{posn-point} of a mouse
position list will be set to the position of the glyph whose left most
position is closest to the mouse pointer, as opposed to the position of
position list will be set to the position of the glyph whose leftmost
edge is the closest to the mouse click, as opposed to the position of
the glyph underneath the mouse pointer itself. For example, if
@code{posn-at-x-y} is called with @var{x} set to @code{9}, which is
contained within a character of width 10 positioned at column 0, the
point saved within the mouse position list will be after that character.
contained within a character of width 10 displayed at column 0, the
point saved within the mouse position list will be @emph{after} that
character, not @emph{before} it.
@end defopt
@node Accessing Scroll

View file

@ -6823,12 +6823,11 @@ predicates which report frame's specific UI-related capabilities. */);
doc: /* Non-nil means put cursor in minibuffer, at end of any message there. */);
DEFVAR_BOOL ("mouse-prefer-closest-glyph", mouse_prefer_closest_glyph,
doc: /* Non-nil means mouse position lists are reported relative
to the glyph closest to their coordinates.
doc: /* Non-nil means mouse click position is taken from glyph closest to click.
When non-nil, mouse position lists will be reported with their
`posn-point' set to the position of the glyph closest to the mouse
pointer, instead of the glyph immediately under. */);
When non-nil, mouse position lists will report buffer position set to
the position of the glyph that is the closest to the mouse pointer
at the time of the click, instead of the glyph immediately under it. */);
mouse_prefer_closest_glyph = false;
DEFVAR_LISP ("glyph-table", Vglyph_table,

View file

@ -37513,10 +37513,10 @@ may be more familiar to users. */);
display_raw_bytes_as_hex = false;
DEFVAR_BOOL ("mouse-fine-grained-tracking", mouse_fine_grained_tracking,
doc: /* Non-nil for pixel-wise mouse-movement.
doc: /* Non-nil for pixelwise mouse-movement.
When nil, mouse-movement events will not be generated as long as the
mouse stays within the extent of a single glyph (except for images).
When nil and mouse-prefer-closest-glyph is non-nil, mouse-movement
When nil and `mouse-prefer-closest-glyph' is non-nil, mouse-movement
events will instead not be generated as long as the mouse stays within
the extent of a single left/right half glyph (except for images). */);
mouse_fine_grained_tracking = false;