Implement new option 'mouse-prefer-closest-glyph'
authorMoritz Maxeiner <mm@ucw.sh>
Sat, 22 Jul 2023 14:55:07 +0000 (16:55 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 22 Jul 2023 15:39:24 +0000 (18:39 +0300)
commit191aef4f618408c1be9f57459eaaa91b955fec18
treefa8eb8087b6142555354181bdff2a9f7010e509f
parentaf547c4bbe806bf011363d6a04d93aef27d94df9
Implement new option 'mouse-prefer-closest-glyph'

* src/dispnew.c (mouse_prefer_closest_glyph): New global
variable.
(buffer_posn_from_coords):
* src/xdisp.c (remember_mouse_glyph): Respect
'mouse_prefer_closest_glyph'.
(mouse_fine_grained_tracking): Update documentation to
include 'mouse_prefer_closest_glyph' effects.

* doc/lispref/commands.texi (Accessing Mouse): Update
documentation to say what the new option does when enabled.
* lisp/cus-start.el (standard): New user option
'mouse-prefer-closest-glyph'.
doc/lispref/commands.texi
lisp/cus-start.el
src/dispnew.c
src/xdisp.c