From: Piet van Oostrum <piet@cs.uu.nl>
To: emacs-devel@gnu.org
Subject: Re: mouse-1 click on widget button
Date: Tue, 22 Jan 2008 14:13:54 +0100 [thread overview]
Message-ID: <m2y7aiove5.fsf@cp453394-a.venlo1.lb.home.nl> (raw)
In-Reply-To: <b4m3asrtotm.fsf@jpl.org> (Katsumi Yamaoka's message of "Mon\, 21 Jan 2008 20\:12\:21 +0900")
>>>>> Katsumi Yamaoka <yamaoka@jpl.org> (KY) wrote:
>KY> Hi,
>KY> I use this:
>KY> (setq mouse-1-click-follows-link nil
>KY> mouse-1-click-in-non-selected-windows nil)
>KY> Even so, mouse-1 click on a url string in the Gnus article buffer
>KY> raises the web browser. It is because Gnus puts a widget button
>KY> on a text which looks like a url[1], and the button is sensitive
>KY> to mouse-1 as well as mouse-2 because of the default value of
>KY> `widget-keymap'[2] defined in wid-edit.el as follows:
[snip]
>KY> It annoyed me since I usually click mouse-1 on an Emacs frame in
>KY> order to move the point, to select the frame, to copy text, etc.
>KY> When I click a url string accidentally, the web browser launches
>KY> regardless of my will. I was often vexed by this and now I have:
>KY> (eval-after-load "wid-edit"
>KY> '(define-key widget-keymap [down-mouse-1] nil))
>KY> Because of the default value of `mouse-1-click-follows-link',
>KY> mouse-1 click behaves like moude-2 now even if there is no
>KY> mouse-1 binding in `widget-keymap'. Why don't we remove it from
>KY> `widget-keymap'?
You can easily avoid this by setting mouse-1-click-follows-link to nil.
--
Piet van Oostrum <piet@cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org
prev parent reply other threads:[~2008-01-22 13:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-21 11:12 mouse-1 click on widget button Katsumi Yamaoka
2008-01-22 13:13 ` Piet van Oostrum [this message]
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=m2y7aiove5.fsf@cp453394-a.venlo1.lb.home.nl \
--to=piet@cs.uu.nl \
--cc=emacs-devel@gnu.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.