unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: Chong Yidong <cyd@stupidchicken.com>,
	romain@orebokech.com, emacs-devel@gnu.org
Subject: Re: mouse-1-click-follows-link and mime messages
Date: Fri, 10 Feb 2006 02:32:52 +0100	[thread overview]
Message-ID: <85fymsxakb.fsf@lola.goethe.zz> (raw)
In-Reply-To: <E1F7MpT-0000KS-Rr@fencepost.gnu.org> (Richard M. Stallman's message of "Thu, 09 Feb 2006 20:12:07 -0500")

"Richard M. Stallman" <rms@gnu.org> writes:

>     I figured out the problem.  We should only change the selected window
>     if we are translating to mouse-2.  The `follow-link' property can also
>     specify translation to, e.g., "\C-m" (in the case of the link widget);
>     in that case, we shouldn't change the window.
>
>     I've checked in a fix.
>
> Thanks.

While I think the fix reasonable, I'd suggest that follow-link should,
when feasible, try to map through a mouse event.  Link-like fields
sometimes have an interactive spec not containing "@" which means that
they will not switch the selected window while doing their action
through a mouse click.  A translation to a mouse event can keep those
semantics; a translation to a keyboard event does not seem to make
sense without changing the selected window.

So as a rule of thumb, follow-link should probably not revert to a
keyboard event when this can be avoided in favor of an interactive
form or event intended for the mouse.  In particular when mouse-2 does
not do "@" in its interactive spec.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2006-02-10  1:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-06 20:43 mouse-1-click-follows-link and mime messages Chong Yidong
2006-02-07  7:44 ` Romain Francoise
2006-02-07 17:26   ` Chong Yidong
2006-02-07 18:05     ` Romain Francoise
2006-02-07 19:43       ` Chong Yidong
2006-02-07 23:29   ` Chong Yidong
2006-02-08  0:42     ` Chong Yidong
2006-02-09 17:48       ` Richard M. Stallman
2006-02-08 19:05     ` Richard M. Stallman
2006-02-08 20:51       ` Chong Yidong
2006-02-10  1:12         ` Richard M. Stallman
2006-02-10  1:32           ` David Kastrup [this message]
2006-02-16 14:32         ` mouse-1 drag invokes follow-link (was: mouse-1-click-follows-link and mime messages) Reiner Steib
2006-02-16 16:04           ` mouse-1 drag invokes follow-link Chong Yidong
2006-02-16 21:12             ` Reiner Steib

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=85fymsxakb.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=romain@orebokech.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 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).