From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Tobias Gerdin <tgerdin@gmail.com>, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 455a236: New function 'xref-find-definitions-at-mouse'
Date: Mon, 09 Jul 2018 09:55:18 -0400 [thread overview]
Message-ID: <jwvy3ekecye.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <20180707090052.4B7F9204E8@vcs0.savannah.gnu.org> (Eli Zaretskii's message of "Sat, 7 Jul 2018 05:00:51 -0400 (EDT)")
> +(defun xref-find-definitions-at-mouse (event)
> + "Find the definition of identifier at or around mouse click.
> +This command is intended to be bound to a mouse event."
> + (interactive "e")
If we use
(defun xref-find-definitions-at-mouse (&optional event)
"Find the definition of identifier at or around mouse click.
This command is intended to be bound to a mouse event."
(interactive (list last-nonmenu-event))
then this command will also work with non-mouse events.
Stefan
PS: No, I don't know why we usually use last-nonmenu-event rather
than last-command-event or last-input-event for those commands.
next parent reply other threads:[~2018-07-09 13:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180707090050.359.98328@vcs0.savannah.gnu.org>
[not found] ` <20180707090052.4B7F9204E8@vcs0.savannah.gnu.org>
2018-07-09 13:55 ` Stefan Monnier [this message]
2018-07-09 19:52 ` [Emacs-diffs] master 455a236: New function 'xref-find-definitions-at-mouse' Tobias Gerdin
2018-07-09 20:25 ` Stefan Monnier
2018-07-09 20:53 ` Helmut Eller
2018-07-10 14:03 Tobias Gerdin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvy3ekecye.fsf-monnier+emacsdiffs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=tgerdin@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.