all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: RE: Dired enhancements for possible inclusion
Date: Thu, 5 Jul 2007 22:37:28 -0700	[thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACGEDMCAAA.drew.adams@oracle.com> (raw)
In-Reply-To: <E1I6faH-0006LU-OQ@fencepost.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2223 bytes --]

>     * The entire line is highlighted on mouse-over, regardless
>       of where on the line the mouse is. Click `mouse-2'
>       anywhere on the line to open its file or directory.
>
> I don't understand that one.

Screenshot attached.

I've mentioned this before, in the context also of grep (where I do the same
thing). The idea is to apply the `mouse-face' highlight to the entire line,
not just to the file name.

I prefer this because:

* You can scan lines by moving the mouse up and down, without needing to
hold it in a narrow vertical band at the right. Think of this as the effect
of holding a ruler horizontally when trying to scan a tabular list. It helps
you visually align everything in the same row - there's no risk of reading
the wrong file permissions for a given file, for instance. Similarly,
there's no risk of clicking mouse-2 on the left somewhere and opening the
wrong file.

* Without this, you can of course still click mouse-2 anywhere on the line
to open a file, but the visual feedback doesn't tell you that that is the
case - nothing indicates that the entire line is a hot zone (link) for
mouse-2.

IIRC, some others didn't like the idea when I described it previously
(perhaps in the context of grep; I don't remember).

A disadvantage I can think of, for people who use non-nil
`mouse-1-click-follows-link' (the default), is that they cannot then just
click mouse-1 somewhere to the left of the file name to set point (e.g. to
select a file size or time for subsequent yanking), without waiting for the
link-following behavior to time out. IOW, with this enhancement, mouse-1 and
mouse-2 are treated identically if you have non-nil
`mouse-1-click-follows-link': the entire line is a hot zone for both.

To me, not being able to set point as easily is not a big loss, and it is
wrong anyway, in UI terms, not to have visual feedback that the entire line
is a hot zone for mouse-2. I personally think it is also wrong to have
mouse-1 act like mouse-2 on only part of the line and reserve the mouse-over
feedback for only the mouse-2 hot zone. If mouse-1 is to act like mouse-2,
then it should do so generally, not over just part of the line, and the
visual feedback should reflect that.



[-- Attachment #2: drew-emacs-dired-line-highlight.png --]
[-- Type: image/png, Size: 72898 bytes --]

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2007-07-06  5:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05 16:19 Dired enhancements for possible inclusion Drew Adams
2007-07-06  4:38 ` Richard Stallman
2007-07-06  5:37   ` Drew Adams [this message]
2007-07-06  7:23     ` David Kastrup
2007-07-07 13:07     ` 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=BNELLINCGFJLDJIKDGACGEDMCAAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --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.