I want to move point
to where the mouse is pointing. This is easy to do interactively: just click and point
will move to where the mouse is pointing.
However, I need to do this inside elisp code. I tried to find a nice way by inspecting the source for mouse-drag-region and by reading the manual on Mouse Position but did not manage :-(
Anyone has an elegant solution?
(mouse-position)
does not provide actual values for line+column when character sizes change. I still wonder how mouse-drag-region does the trick... – phs Feb 19 '17 at 15:16