BTW, I'm testing compilation errors/warnings on xref context menu,
and it reposts this warning:
prog-mode.el:60:12: Warning: the function `xref-backend-identifier-at-point'
is not known to be defined.
on this code:
(defun prog-context-menu (menu)
(require 'xref)
(define-key-after menu [prog-separator] menu-bar-separator
'mark-whole-buffer)
(when (save-excursion
(mouse-set-point last-input-event)
(xref-backend-identifier-at-point
(xref-find-backend)))
(define-key-after menu [xref-find-def]
'(menu-item "Find Definition" xref-find-definitions-at-mouse
:help "Find definition of identifier")
'prog-separator))
Maybe `xref-backend-identifier-at-point' should be autoloaded?