]> git.eshelyaron.com Git - emacs.git/commit
Add "Find References" to context menu (bug#50067)
authorMattias Engdegård <mattiase@acm.org>
Fri, 20 Aug 2021 16:19:43 +0000 (18:19 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 21 Aug 2021 10:41:54 +0000 (12:41 +0200)
commit6993d45e519ad7504adcf5a00842114ce8b25110
tree202b9e5e962404058e8ac2288d1590b6ffb4dd53
parentb4830907edb7d499f7e81d53e22fe7793a0febcb
Add "Find References" to context menu (bug#50067)

The new entry appears next to "Find Definition" and like it only
appears when the context menu was invoked on an identifier.

* lisp/progmodes/prog-mode.el (prog-context-menu): New menu entry.
* lisp/progmodes/xref.el (xref-find-references-at-mouse): New
function, analogous to `xref-find-definitions-at-mouse`.
lisp/progmodes/prog-mode.el
lisp/progmodes/xref.el