From: Eli Zaretskii <eliz@gnu.org>
To: "Evan Moses" <evan@emoses.org>
Cc: 65830@debbugs.gnu.org
Subject: bug#65830: 29.1; Mouse click on xref buffer doesn't go to reference
Date: Sat, 09 Sep 2023 09:11:41 +0300 [thread overview]
Message-ID: <83wmwzvpsy.fsf@gnu.org> (raw)
In-Reply-To: <8bb38fa4-612c-40ad-a9c1-1b4e8c3ba68a@app.fastmail.com> (evan@emoses.org)
merge 65830 658301
thanks
> Date: Fri, 08 Sep 2023 12:29:08 -0700
> From: "Evan Moses" <evan@emoses.org>
>
> I apologize, as written that function doesn't work, but this does:
This message created a new bug report, so I'm now merging them.
> (defun my:xref-goto-xref-mouse (event &optional quit)
> (interactive "eP")
> (let ((xref-buffer)
> (xref (save-excursion
> (mouse-set-point event)
> (setq xref-buffer (current-buffer))
> (xref--item-at-point))))
> (if (not xref)
> (user-error "Choose a reference to visit")
> (progn
> (xref--set-arrow)
> (xref--show-location (xref-item-location xref) (if quit 'quit t))
> (next-error-found-buffer xref-buffer)))))
>
> (bind-key [mouse-2] #'my:xref-goto-xref-mouse xref--button-map)
next prev parent reply other threads:[~2023-09-09 6:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-08 19:21 bug#65831: 29.1; Mouse click on xref buffer doesn't go to reference Evan Moses
2023-09-08 19:29 ` bug#65830: " Evan Moses
2023-09-09 6:11 ` Eli Zaretskii [this message]
2023-09-11 22:40 ` bug#65831: " Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83wmwzvpsy.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=65830@debbugs.gnu.org \
--cc=evan@emoses.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).