all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: Nick Roberts <nickrob@snap.net.nz>,
	emacs-devel@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>,
	rms@gnu.org
Subject: Re: follow-link in grep buffer
Date: Fri, 25 Feb 2005 15:10:09 +0100	[thread overview]
Message-ID: <x5vf8g7mta.fsf@lola.goethe.zz> (raw)
In-Reply-To: <m3ll9cbw0b.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Fri, 25 Feb 2005 14:37:56 +0100")

storm@cua.dk (Kim F. Storm) writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>> I vote to change mouse-1-click-follows-link to `double'.
>
> The whole point of mouse-1-click-follows-link is to make emacs behave
> like most other (modern) applications. 
>
> Double click to follow a link is not modern!

This is a misstatement of the goal.  The problem we are addressing in
the first place is that mouse-2 to follow anything is neither modern
nor oldfashioned elsewhere, but completely uncustomary.

Now the "modern" way is to follow links/buttons with a single click,
and I say that we should provide for this in the manner you did: with
an explicit link property enabling this redirection of the otherwise
mouse-2 behavior.

However, for following "easter eggs", namely causing an action where
an action is not usual, like in editing buffers, double clicks are
still quite common.  For those, I would recommend _not_ to set a link
property, but _still_ redirect a double-click to the mouse-2 behavior,
in a similar manner to what your first proposal was.

I would recommend not making any behavior by default dependent on the
single-click length, nor on the focus situation: both approaches are
completely obfuscate and confusing.

So the change to 21.4 behavior would be the following:

a) a double-click on a location that has no double-click binding, but
   a local mouse-2 binding, will execute the mouse-2 binding.  This
   will make double-clicks, where not overriden, follow links without
   further code changes compared to 21.4
b) setting an explicit link property will _additionally_ remap mouse-1
   to mouse-2.  I would not by default make this dependent on anything
   else.

It is obvious from this description that making a larger text area
have an explicit link property would be a mistake, as you would then
get into difficulties positioning the cursor.  As long as only short
buttons and links are concerned, it is tolerably easy and logical to
click before or after the button/link, and then move into it.  The
possibility of a small drag remains for the experienced user.

So grep should not set the link property in my opinion in this scheme,
and gnus should set it sparingly: on MIME buttons it generates itself,
but not on header lines or things looking like a link in the article
text.

> If we have specific problems in certain modes, let's fix those modes
> (e.g. in grep that you have to click on the file:line part of a line
> to jump).

That again requires cleverness.  I don't mind if we have customization
options for this sort of thing, but it is a mistake for the default.

I have a demonstration and workshop for Emacs coming up in the next
two weeks, where I want to tell people to use Emacs for their serious
editing needs.

Telling them "use mouse-2" has always been sort of embarrassing.
Telling them "use mouse-1, but don't press it longer than 200
milliseconds if you want to follow the link, and it won't work if you
have not the focus" will kill the "Emacs is usable for common human"
proposition dead.  Telling people "double click to follow some
possible cross connection" will make them feel at home.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2005-02-25 14:10 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-21 21:08 follow-link in grep buffer Nick Roberts
2005-02-21 21:19 ` Stefan Monnier
2005-02-21 22:48   ` Nick Roberts
2005-02-22  0:08     ` Drew Adams
2005-02-22  9:48       ` Kim F. Storm
2005-02-22 13:41         ` Stefan Monnier
2005-02-22 14:24           ` Kim F. Storm
2005-02-22 14:25           ` Kim F. Storm
2005-02-22 17:33         ` Drew Adams
2005-02-22  0:48     ` Jason Rumney
2005-02-21 21:45 ` Drew Adams
2005-02-21 22:20   ` Luc Teirlinck
2005-02-21 22:36     ` Nick Roberts
2005-02-21 22:46     ` David Kastrup
2005-02-21 23:00       ` Luc Teirlinck
2005-02-21 23:05       ` Luc Teirlinck
2005-02-21 23:42         ` David Kastrup
2005-02-22  0:00           ` Drew Adams
2005-02-21 23:07       ` Luc Teirlinck
2005-02-22  0:44       ` Jason Rumney
2005-02-22  1:26         ` David Kastrup
2005-02-21 23:06     ` Drew Adams
2005-02-21 21:45 ` Lennart Borgman
2005-02-21 21:46 ` David Kastrup
2005-02-21 22:46   ` Kim F. Storm
2005-02-21 23:22     ` Luc Teirlinck
2005-02-22 18:11 ` Richard Stallman
2005-02-25  6:51   ` Nick Roberts
2005-02-25  9:46     ` David Kastrup
2005-02-25 11:12       ` Kim F. Storm
2005-02-25 12:55         ` Stefan Monnier
2005-02-25 13:25           ` Lennart Borgman
2005-02-25 13:40             ` Kim F. Storm
2005-02-25 14:20             ` Andreas Schwab
2005-02-25 13:37           ` Kim F. Storm
2005-02-25 14:10             ` David Kastrup [this message]
2005-02-26 13:53               ` Reiner Steib
2005-02-27  0:32               ` Richard Stallman
2005-02-25 16:33             ` Stefan Monnier
2005-02-25 16:47               ` David Kastrup
2005-02-25 16:59                 ` Stefan Monnier
2005-02-25 23:05                 ` Lennart Borgman
2005-02-25 16:37             ` Drew Adams
2005-02-25 18:09               ` David Kastrup
2005-02-25 19:44                 ` Drew Adams
2005-02-25 20:07                   ` Stefan Monnier
2005-02-25 20:32                     ` David Kastrup
2005-02-25 20:53                     ` Drew Adams
2005-02-25 20:27                   ` David Kastrup
2005-02-25 21:24                     ` Robert J. Chassell
2005-02-25 23:34                     ` Drew Adams
2005-02-26  0:44                       ` David Kastrup
2005-02-26  1:18                         ` Drew Adams
2005-02-25 23:35         ` Kim F. Storm
2005-02-26  2:28           ` Stefan Monnier
2005-02-26  2:50             ` David Kastrup
2005-02-26  3:32               ` Stefan Monnier
2005-02-26 22:24             ` Kim F. Storm
2005-02-27  2:00               ` Stefan Monnier
2005-02-27  8:26                 ` Lennart Borgman
2005-02-27 21:46                   ` Stefan Monnier
2005-02-27 22:09                     ` Kim F. Storm
2005-02-28  1:03                     ` Nick Roberts
2005-02-25 22:53       ` Richard Stallman
2005-02-26  0:16         ` David Kastrup
2005-02-26 22:44           ` Kim F. Storm
2005-02-25 22:52     ` Richard Stallman

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=x5vf8g7mta.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=nickrob@snap.net.nz \
    --cc=rms@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.