unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
Cc: drew.adams@oracle.com, emacs-devel@gnu.org
Subject: Re: [drew.adams@oracle.com: mouse-1-click-follows-link doesn'tgovern behavior in Customize]
Date: Sun, 05 Nov 2006 13:05:03 -0500	[thread overview]
Message-ID: <87k629lqgg.fsf@stupidchicken.com> (raw)
In-Reply-To: <E1GgFB6-0003yO-Su@fencepost.gnu.org> (Richard Stallman's message of "Sat\, 04 Nov 2006 01\:38\:52 -0500")

Richard Stallman <rms@gnu.org> writes:

>     OTOH, it is not straightforward to implement the
>     mouse-1-click-follows-link behavior for widgets, including link
>     widgets: in particular, the part where holding the button down for a
>     certain time causes point to move.
>
> C-h v read-quoted-char-radix RET generates a buffer with a link.
> It obeys mouse-1-click-follows-link.
>
> M-x customize-option RET read-quoted-char-radix RET creates a buffer
> with a widget that looks just the same.  But it doesn't act the same.
> This is very bad UI design.
>
> Could we change cus-edit.el to make a link instead of a widget?
> But changing widget-documentation-link-add, say?

At the Lisp level, the custom-group-link widgets behave rather
differently from ordinary links used in, e.g., the *Help* buffer.
There's a lot amount of code in cus-edit.el that specifies an :action
for the custom-group-link widget when the widget is defined.  The
minimum required change is to (i) make these callers specify some
other widget property, say :link-action; (ii) somehow modify the
custom-group-link so that it is inserted along with text properties
that specify a mouse-2 local binding plus a `follow-link' property,
which automagically calls the :link-action of the widget.  It's a
pretty big project.

Recall that the link widgets were changed to look like links during
the Emacs 22 release process; previously they looked like buttons.
The change was made because they are conceptually links rather than
buttons, and people don't expect links to look like buttons.

I think the amount of inconsistency involved is negligible enough that
we can postphone it for after the release.

One compromise is to change the :pressed-face widget property of
custom-group-link widgets.  That way, they will change color when the
user holds down the mouse button, which is a visual cue that they
behave differently from other Emacs links.

  reply	other threads:[~2006-11-05 18:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-30 13:33 [drew.adams@oracle.com: mouse-1-click-follows-link doesn't govern behavior in Customize] Richard Stallman
2006-10-30 14:25 ` Chong Yidong
2006-10-30 15:16   ` [drew.adams@oracle.com: mouse-1-click-follows-link doesn'tgovern " Drew Adams
2006-10-30 19:53     ` Chong Yidong
2006-11-04  6:38       ` Richard Stallman
2006-11-05 18:05         ` Chong Yidong [this message]
2006-11-06  5:02           ` Richard Stallman
2006-11-06 14:42             ` Chong Yidong
2006-11-06 21:00               ` Richard Stallman
2006-11-06 22:06                 ` Chong Yidong
2006-11-08  4:17                   ` Richard Stallman
2006-10-30 17:15   ` [drew.adams@oracle.com: mouse-1-click-follows-link doesn't govern " Jason Rumney
2006-10-30 17:48     ` Drew Adams

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=87k629lqgg.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=drew.adams@oracle.com \
    --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 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).