> ?? This works for me:>
(global-set-key [C-down-mouse-1] 'xref-find-definitions-at-mouse)Ah, I remember the problem now: if the point is at position A and the mouse click occurs at some unrelated position B, plain old xref-find-definitions-at-mouse will use position A as the basis of the query, which is most surprising: it might be a non-identifier, in which case you get an error, or it might be an unrelated identifier, in which case you navigate to the wrong place.
So perhaps my request should instead have been expressed as a bug report: xref-find-definitions-at-mouse uses the point instead of the mouse event position.