Function: xref-find-references-at-mouse

xref-find-references-at-mouse is an autoloaded, interactive and byte-compiled function defined in xref.el.gz.

Signature

(xref-find-references-at-mouse EVENT)

Documentation

Find references to the identifier at or around mouse click.

This command is intended to be bound to a mouse event.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
;;;###autoload
(defun xref-find-references-at-mouse (event)
  "Find references to the identifier at or around mouse click.
This command is intended to be bound to a mouse event."
  (interactive "e")
  (let ((identifier
         (save-excursion
           (mouse-set-point event)
           (xref-backend-identifier-at-point (xref-find-backend)))))
    (if identifier
        (let ((xref-prompt-for-identifier nil))
          (mouse-set-point event)
          (xref-find-references identifier))
      (user-error "No identifier here"))))