From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] mouse-1 click follows link Date: Sun, 31 Oct 2004 16:40:27 -0500 Message-ID: References: <200410292354.i9TNsCq01994@raven.dms.auburn.edu> <200410310034.i9V0YX903876@raven.dms.auburn.edu> <200410311524.i9VFO6v05450@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1099258859 32026 80.91.229.6 (31 Oct 2004 21:40:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 31 Oct 2004 21:40:59 +0000 (UTC) Cc: storm@cua.dk, Luc Teirlinck , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 31 22:40:50 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CONRR-0004oB-00 for ; Sun, 31 Oct 2004 22:40:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CONZP-0004zj-MM for ged-emacs-devel@m.gmane.org; Sun, 31 Oct 2004 16:49:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CONZI-0004zT-Sh for emacs-devel@gnu.org; Sun, 31 Oct 2004 16:48:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CONZH-0004yp-ND for emacs-devel@gnu.org; Sun, 31 Oct 2004 16:48:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CONZH-0004yf-Kp for emacs-devel@gnu.org; Sun, 31 Oct 2004 16:48:55 -0500 Original-Received: from [206.47.199.163] (helo=simmts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CONR7-0005MC-MX; Sun, 31 Oct 2004 16:40:29 -0500 Original-Received: from empanada.home ([70.48.80.199]) by simmts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041031214028.VFVP1635.simmts5-srv.bellnexxia.net@empanada.home>; Sun, 31 Oct 2004 16:40:28 -0500 Original-Received: by empanada.home (Postfix, from userid 502) id 11C0B34D357; Sun, 31 Oct 2004 16:40:27 -0500 (EST) Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "Sun, 31 Oct 2004 19:37:38 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) 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: main.gmane.org gmane.emacs.devel:29244 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29244 > What would the keybinding in link-keymap be? It has to resolve to > something different for each link. Yes, that's a problem. Here are some ideas: 1 - (define-key link-parent-map [mouse-1] [mouse-2]) (define-key this-button-keymap [mouse-2] 'foobar) 2 - (define-key link-parent-map [mouse-1] [follow-link]) (define-key this-button-keymap [follow-link] 'foobar) 3 - (define-key link-parent-map [mouse-1] 'follow-link-command) (define-key this-button-keymap [remap follow-link-command] 'foobar) -- Stefan