From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Mouse Sel mode and mouse-1-click-follows-link Date: Sun, 8 May 2005 11:55:58 -0500 (CDT) Message-ID: <200505081655.j48GtwS25966@raven.dms.auburn.edu> References: <1446.220.255.40.146.1115564993.squirrel@220.255.40.146> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1115572337 22420 80.91.229.2 (8 May 2005 17:12:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 May 2005 17:12:17 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 08 19:12:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DUpJK-0005vO-J2 for ged-emacs-devel@m.gmane.org; Sun, 08 May 2005 19:11:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUpRT-0007Ti-1V for ged-emacs-devel@m.gmane.org; Sun, 08 May 2005 13:19:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DUpND-0005x6-Jv for emacs-devel@gnu.org; Sun, 08 May 2005 13:15:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DUpNC-0005wi-I0 for emacs-devel@gnu.org; Sun, 08 May 2005 13:15:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUpLr-00055T-9N for emacs-devel@gnu.org; Sun, 08 May 2005 13:13:59 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DUpAa-0001NP-Ko for emacs-devel@gnu.org; Sun, 08 May 2005 13:02:20 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j48GuMog007823; Sun, 8 May 2005 11:56:22 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j48GtwS25966; Sun, 8 May 2005 11:55:58 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: cyd@stupidchicken.com In-reply-to: <1446.220.255.40.146.1115564993.squirrel@220.255.40.146> (cyd@stupidchicken.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36869 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36869 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.