From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Getting the click position in a string Date: Wed, 26 Apr 2006 14:52:59 +0200 Message-ID: <85y7xspkgk.fsf@lola.goethe.zz> References: <85fyk2ugle.fsf@lola.goethe.zz> <85fyk0rbrk.fsf@lola.goethe.zz> <853bg0r1ms.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146056023 16830 80.91.229.2 (26 Apr 2006 12:53:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2006 12:53:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 26 14:53:38 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYjWI-0004Z4-4r for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 14:53:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYjWH-0001u9-OY for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 08:53:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYjW5-0001tf-W5 for emacs-devel@gnu.org; Wed, 26 Apr 2006 08:53:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYjW5-0001tM-BM for emacs-devel@gnu.org; Wed, 26 Apr 2006 08:53:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYjW5-0001tJ-98 for emacs-devel@gnu.org; Wed, 26 Apr 2006 08:53:13 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYjYl-00084o-Po for emacs-devel@gnu.org; Wed, 26 Apr 2006 08:55:59 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FYjW3-00028U-Qo; Wed, 26 Apr 2006 08:53:12 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 5DFE01D1FFCD; Wed, 26 Apr 2006 14:52:59 +0200 (CEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: <853bg0r1ms.fsf@lola.goethe.zz> (David Kastrup's message of "Wed, 26 Apr 2006 13:56:43 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:53470 Archived-At: David Kastrup writes: > storm@cua.dk (Kim F. Storm) writes: > >> David Kastrup writes: >>> >>> On another tangent, is this change ok? For implementing follow-link, >>> I need to take a look at the follow-link binding in the keymap of a >>> click, not the binding of the click itself. >> >> Looks ok to me. > >> -- but in any case, it should look for the keymap property before >> the local-map property. >> >> But it seems easy to fix it to DTRT. > > I will do a fix which looks in both keymaps. Maybe there should be > something like posn-key-binding which looks through _all_ relevant > keymaps at the point of a click (which would include the various > buffer-local and global maps)? Well, here is the current patch. But I increasingly feel that this is not the right way to go, the whole function should get dissed out, and instead we should have something like (posn-key-binding event &optional accept-default remap key) or something like that (maybe as a primitive C function), and the event loop and help functions and so should consistently use that. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum