From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
Date: Sat, 20 Jul 2013 04:25:54 -0400 [thread overview]
Message-ID: <jwv38r97i5v.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1V0C7f-0002wo-8j@vcs.savannah.gnu.org> (Lars Ingebrigtsen's message of "Fri, 19 Jul 2013 14:57:31 +0000")
> +(defun shr-mouse-browse-url (ev)
> + "Browse the URL under the mouse cursor."
> + (interactive "e")
> + (mouse-set-point ev)
> + (shr-browse-url))
You can make that work for RET as well (by using (list
last-nonmenu-event) instead of "e", IIRC), so you don't need a separate
command for mouse events.
Stefan
next parent reply other threads:[~2013-07-20 8:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1V0C7f-0002wo-8j@vcs.savannah.gnu.org>
2013-07-20 8:25 ` Stefan Monnier [this message]
2013-07-30 14:16 ` [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke Lars Magne Ingebrigtsen
2013-07-30 14:20 ` Jambunathan K
2013-07-30 14:22 ` Lars Magne Ingebrigtsen
2013-07-30 16:00 ` Glenn Morris
2013-07-30 16:45 ` Jambunathan K
2013-07-30 16:59 ` Eli Zaretskii
2013-07-30 17:11 ` Jambunathan K
2013-07-30 17:36 ` Juanma Barranquero
2013-07-30 18:26 ` Jambunathan K
2013-07-30 17:40 ` Stephen J. Turnbull
2013-07-30 18:01 ` Jambunathan K
2013-07-30 20:03 ` Stefan Monnier
2013-07-30 20:16 ` Lars Magne Ingebrigtsen
2013-07-30 14:47 ` Stefan Monnier
2013-07-30 14:58 ` Lars Magne Ingebrigtsen
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=jwv38r97i5v.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.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 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.