unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Mouse Sel mode and mouse-1-click-follows-link
Date: Sun, 8 May 2005 11:55:58 -0500 (CDT)	[thread overview]
Message-ID: <200505081655.j48GtwS25966@raven.dms.auburn.edu> (raw)
In-Reply-To: <1446.220.255.40.146.1115564993.squirrel@220.255.40.146> (cyd@stupidchicken.com)

Chong Yidong wrote:

   The trouble is, I can't get it to work with *Customize* buffers.  This is
   probably due to some widget magic that I'm ignorant of.  Can someone help
   me figure it out?  (How does the normal mouse.el stuff deal with
   Customize?)  The current patch is below.

That is because Custom implements the mouse-1 behavior in a different
way from mouse-1-click-follows-link.

The relevant code for mouse-1 starts at line 4175 in cus-edit-el, in
particular:

     (define-key map [mouse-1] 'Custom-move-and-invoke)

The relevant code for mouse-2 starts is in wid-edit.el in particular:

    (define-key map [down-mouse-2] 'widget-button-click)

(All assuming I understood correctly.)

I believe that the best solution might be to get rid of the mouse-1
binding and use the follow-link property to implement the mouse-1
behavior in Custom, as is done elsewhere.

Sincerely,

Luc.

  reply	other threads:[~2005-05-08 16:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-08 15:09 Mouse Sel mode and mouse-1-click-follows-link Chong Yidong
2005-05-08 16:55 ` Luc Teirlinck [this message]
2005-05-10 15:43   ` Chong Yidong
2005-05-11 12:40     ` Kim F. Storm
2005-05-11 16:27     ` 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

  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=200505081655.j48GtwS25966@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --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).