From 42c0b8f3f27c8700f1f432649f2466aab9127061 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 7 Jul 2018 12:01:08 +0300 Subject: [PATCH] Documentation followup for bug#32029 * etc/NEWS: Mention 'xref-find-definitions-at-mouse' * doc/emacs/maintaining.texi (Looking Up Identifiers): Document 'xref-find-definitions-at-mouse'. --- doc/emacs/maintaining.texi | 7 +++++++ etc/NEWS | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index df8c4479000..024fd9728c5 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi @@ -1813,6 +1813,8 @@ Find definitions of identifier, but display it in another window @item C-x 5 .@: @key{RET} Find definition of identifier, and display it in a new frame (@code{xref-find-definitions-other-frame}). +@item M-x xref-find-definitions-at-mouse +Find definition of identifier at mouse click. @item M-, Go back to where you previously invoked @kbd{M-.} and friends (@code{xref-pop-marker-stack}). @@ -1853,6 +1855,11 @@ former is @w{@kbd{C-x 4 .}} (@code{xref-find-definitions-other-window}), and the latter is @w{@kbd{C-x 5 .}} (@code{xref-find-definitions-other-frame}). + The command @code{xref-find-definitions-at-mouse} works like +@code{xref-find-definitions}, but it looks for the identifier name at +or around the place of a mouse event. This command is intended to be +bound to a mouse event, such as @kbd{C-M-mouse-1}, for example. + @findex xref-find-apropos @kindex C-M-. The command @kbd{C-M-.} (@code{xref-find-apropos}) finds the diff --git a/etc/NEWS b/etc/NEWS index c92ee6e6804..375f0400541 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -265,6 +265,13 @@ them to the 'browse-url' function, like the other protocols: ftp, http, and https. This allows to have references to local HTML files, for example. +** Xref + ++++ +*** New command 'xref-find-definitions-at-mouse'. +This command finds definitions of the identifier at the place of a +mouse click event, and is intended to be bound to a mouse event. + ** Ecomplete *** The ecomplete sorting has changed to a decay-based algorithm. -- 2.39.2