From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: follow-link in grep buffer
Date: Fri, 25 Feb 2005 19:09:57 +0100 [thread overview]
Message-ID: <x51xb47bpm.fsf@lola.goethe.zz> (raw)
In-Reply-To: <FDELKNEBLPKKDCEBEJCBGEINCMAA.drew.adams@oracle.com> (Drew Adams's message of "Fri, 25 Feb 2005 08:37:36 -0800")
"Drew Adams" <drew.adams@oracle.com> writes:
> 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).
>
> Just to add one more permutation to our list of contortions ;-) -
>
> I would like to see modes like Dired and Grep and Buffer List make
> the entire line, which is in fact the entire entry, clickable and
> mouse-highlightable, as I think I mentioned before.
For one thing, this is visually distracting. Our highlight color is
pretty brutal. For buttons, this is fine, for active lines, this is
too much.
Personally, I could imagine a two-fold system: decent highlighting for
non-mouse1-links (that need mouse-2 or a double click), brutal
highlighting for really active areas where mouse-1 already has an
effect.
> The reasons are:
>
> - It makes it much easier to "scan" with the mouse, seeing what
> lines up with what. This is like using a ruler to scan entries in a
> large table or phone book.
The mouse highlighting we have makes the line pretty unreadable. That
is ok for buttons: you usually are aware what they are for before you
move to their confined area. But it is too heavy for whole lines.
> - It makes it easier to click an entry - just click anywhere on the
> line.
Good grief. In a dired buffer, I most often need to to some directory
editing operation: renaming, moving, viewing with a special
application. If there is no place in the whole buffer where a simple
mouse-1 will be able to place point, this is a terrible nuisance. I
am not sure I'd want to have even just the file name
mouse-1-buttonized, let alone the whole line.
> Anyway, I mention this now because of Kim's suggestion, above, which
> moves a bit in the opposite direction. IOW, I don't want to see the
> hot zone _reduced_ or limited in buffers like grep, I instead want
> to see the entire entry (which is the entire line) become the hot
> zone.
That pretty much destroys the ability for simple editing without using
smartass tricks like long clicks or drags.
This is not an interface I want to have to explain to anybody.
> Assuming that I were able to convince others about this (;-)), what
> would that mean wrt mouse bindings? In buffers like these (Dired,
> grep, Buffer List), the main mouse action is not to set point, but
> setting point is still an important action (e.g. in Dired). I don't
> have a brilliant suggestion, but I wonder if it wouldn't be
> reasonable, in such buffers, to reverse one approach mentioned
> already:
>
> - mouse-1 follows the link (which, to me, should be the whole line)
>
> - double-click mouse-1 sets point
Terrible. If I tell that to any new Emacs users, they'll shake their
heads and leave Emacs alone. I don't mind if you configure your own
editor in such a backward way that makes the simple operations
difficult, but you won't see me applauding this choice even if you
managed to convinve a majority that this is not insane.
> I don't think this would be too bad.
I think it would be terrible. I can't explain such behavior to _any_
newbie. It is fine if you have the possibility to configure it this
way, and the possibility to tell people how convenient you find it and
they should try it as well, but I won't accept something so completely
backward from all customary defaults with no apparent advantage
without screaming all the while.
Please _don't_ think in the category "what would be most convenient
for me, even if by a hairline". Rather try thinking "what would be
most convenient to _explain_ for me".
If people ask you "Why for heaven's sake does it do that?", you should
have a very convincing answer, or you are doing something wrong.
Putting the scrollbar to the left in an Emacs window has a convincing
answer. Left is where the bulk of the text action is in a
left-to-right script. That is one example where Emacs differs from
the rest of the world for a _good_ reason. I can explain that. And
it is something that I would be proud to explain, showing people how
Emacs developers use their brain.
In contrast, with a scheme like your, I'd be ashamed to explain, and I
would not have anything close to a convincing answer to "Why for
heaven's sake does it do that?". And "That's just the way it does
it. Take it or leave it." is not what I like to offer as an
explanation.
> In such buffers we do need to set point sometimes, and we sometimes
> want to create a region, but we don't usually need to double-click
> to select a word.
Which is why double clicking anywhere on the line is perfect for
following a link.
> Of course, there is the argument that this won't be intuitive to
> users, but I think we'll be up against such an argument no matter
> what we choose.
So let us choose the worst?
> Another argument against this might be that a too-slow double-click
> would mess up the user, mistakenly following the link. I think users
> can deal with this.
Sure. They'll just switch to a different editor.
> In Windows, a simple GUI dialog lets you set the double-click
> interval (speed), and this setting applies to all
> applications. (BTW, Do we pick up this Windows setting in Emacs, to
> use as our double-click delay?)
If you read in the coding guidelines you'll find that a double-click
action should _add_ to a single click action so that the single click
action can be executed immediately, without delay or other
disturbances.
> - It should be at least as easy to follow a link as to set
> point.
For a button-like link. But not for whole lines.
> In buffers that are primarily "view" buffers, as opposed to "edit",
> it is tolerable if setting point is not quite as easy as following a
> link.
dired buffers are used for quite more than just selecting a file to
view.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2005-02-25 18:09 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
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 [this message]
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=x51xb47bpm.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--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.