Variable: mouse-prefer-closest-glyph

mouse-prefer-closest-glyph is a customizable variable defined in dispnew.c.

Value

nil

Documentation

Non-nil means mouse click position is taken from glyph closest to click.

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.

View in manual

Probably introduced at or before Emacs version 30.1.

Source Code

// Defined in /usr/src/emacs/src/dispnew.c
  DEFVAR_BOOL ("mouse-prefer-closest-glyph", mouse_prefer_closest_glyph,
	       doc: /* Non-nil means mouse click position is taken from glyph closest to click.

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.  */);