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 19:33:47 -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 1099269259 9157 80.91.229.6 (1 Nov 2004 00:34:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Nov 2004 00:34:19 +0000 (UTC) Cc: Luc Teirlinck , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 01 01:34:08 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 1COQ9A-0003qE-00 for ; Mon, 01 Nov 2004 01:34:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1COQH9-0005RX-0A for ged-emacs-devel@m.gmane.org; Sun, 31 Oct 2004 19:42:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1COQGz-0005RS-4k for emacs-devel@gnu.org; Sun, 31 Oct 2004 19:42:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1COQGy-0005RG-Ly for emacs-devel@gnu.org; Sun, 31 Oct 2004 19:42:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1COQGy-0005RD-EM for emacs-devel@gnu.org; Sun, 31 Oct 2004 19:42:12 -0500 Original-Received: from [206.47.199.166] (helo=simmts8-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1COQ8r-0000HJ-WB; Sun, 31 Oct 2004 19:33:50 -0500 Original-Received: from empanada.home ([70.48.80.199]) by simmts8-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041101003348.ZWCU1692.simmts8-srv.bellnexxia.net@empanada.home>; Sun, 31 Oct 2004 19:33:48 -0500 Original-Received: by empanada.home (Postfix, from userid 502) id EFA6834F7B9; Sun, 31 Oct 2004 19:33:47 -0500 (EST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Mon, 01 Nov 2004 00:39:48 +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:29250 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29250 > And then a customizable variable follow-link-keymap which is > a choice between the above keymaps: > (defcustom follow-link-keymap 'browser-follow-link-keymap > ...) > The link keymaps will then set the parent keymap to the > symbol value of follow-link-keymap. I hope you mean what you wrote in the code (the custom selects between various symbols) and not what you wrote in the text (the custom selects between various keymaps). > This approach does not allow use to use double clicks on a link, > as the first click follows the link -- but that's ok I guess. > One question remains: How do you set point in a link ? Those two are pretty serious, tho. The beauty of your original patch is that by hooking into mouse-set-point it inherits all the code that distinguishes between drag and no-drag. Stefan