From: David Kastrup <David.Kastrup@t-online.de>
Subject: Re: Binding mouse-3 to browse-url-at-point question
Date: 10 Sep 2002 18:26:58 +0200 [thread overview]
Message-ID: <x5n0qplsj1.fsf@tupik.goethe.zz> (raw)
In-Reply-To: zVnf9.236519$vg.40318794@twister.nyroc.rr.com
"Jeff Rancier" <jeff.rancier@softechnics.com> writes:
> Hello.
>
> I easily enough bound it, via the following in my .emacs:
>
> (global-set-key [(mouse-3)] 'browse-url-at-point)
>
> The problem is that the point doesn't change to the line I mouse-3 click on
> before I browse-url-at-point(). Of course I can click mouse-1, then
> mouse-3, to acheive this, but I'd rather have mouse-3 move the point then
> browse.
>
> I did C-h k on mouse-1 and got: mouse-drag-region (which first moves the
> point), so I naively tried:
>
> (global-set-key [(mouse-3)]
> (lambda()
> progn
> 'mouse-drag-region
> 'browse-url-at-point))
>
> But got:
>
> recursive-edit: Wrong type argument: commandp, (lambda nil progn (quote
> mouse-drag-region) (quote browse-url-at-point))
>
> Can anyone help me fix this up a bit?
Commands bound to keys have to start with an (interactive ...) form.
Take a look at C-h f interactive RET, a particular letter argument
tells the keybinding that it should first move the point to the
clicked position...
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de
next prev parent reply other threads:[~2002-09-10 16:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-10 15:08 Binding mouse-3 to browse-url-at-point question Jeff Rancier
2002-09-10 16:26 ` David Kastrup [this message]
2002-09-10 16:42 ` Kevin Rodgers
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=x5n0qplsj1.fsf@tupik.goethe.zz \
--to=david.kastrup@t-online.de \
/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.