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: Sat, 29 Apr 2006 23:55:32 +0200 Message-ID: <85aca42giz.fsf@lola.goethe.zz> References: <85fyk2ugle.fsf@lola.goethe.zz> <85fyk0rbrk.fsf@lola.goethe.zz> <853bg0r1ms.fsf@lola.goethe.zz> <85y7xspkgk.fsf@lola.goethe.zz> <87ejzk8mmv.fsf-monnier+emacs@gnu.org> <85r73jkyqf.fsf@lola.goethe.zz> <87r73j6mav.fsf-monnier+emacs@gnu.org> <858xpqkgvy.fsf@lola.goethe.zz> <87irou4t8q.fsf-monnier+emacs@gnu.org> <854q0eitpo.fsf@lola.goethe.zz> <87d5f1k77c.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146347981 29161 80.91.229.2 (29 Apr 2006 21:59:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Apr 2006 21:59:41 +0000 (UTC) Cc: "Kim F. Storm" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 29 23:59: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 1FZxTU-0005mv-5s for ged-emacs-devel@m.gmane.org; Sat, 29 Apr 2006 23:59:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZxTT-00012j-RG for ged-emacs-devel@m.gmane.org; Sat, 29 Apr 2006 17:59:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FZxTI-00011w-Bk for emacs-devel@gnu.org; Sat, 29 Apr 2006 17:59:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FZxTH-00011c-GR for emacs-devel@gnu.org; Sat, 29 Apr 2006 17:59:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZxTH-00011Z-Aq for emacs-devel@gnu.org; Sat, 29 Apr 2006 17:59:23 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FZxWj-00013k-4N for emacs-devel@gnu.org; Sat, 29 Apr 2006 18:02:57 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FZxTE-0005Fk-EH; Sat, 29 Apr 2006 17:59:22 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id DDC2E1C4CD65; Sat, 29 Apr 2006 23:55:32 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: <87d5f1k77c.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 28 Apr 2006 12:16:00 -0400") 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:53618 Archived-At: Stefan Monnier writes: >> Well, XEmacs has opaque keymaps and/or events, I believe. For >> Emacs, both keymaps as well as events can be cons cells, so I am >> not sure eventp and keymapp will always be able to tell them apart. > > How's that relevant? key-binding would not need to distinguish > keymaps from events, but keys from events. key-binding already looks up events or keys, so I suppose you are confused about what I was proposing. The purpose is to look up a key such as [follow-link] in the chain of keymaps corresponding to a click event. So the event takes the place of the keymap, not of the key. If you set both key and keymap to the same event, you can look up the binding of an event in the chain of keymaps associated with the click position. If the key is [follow-link] and the keymap is the event, then [follow-link] will be searched for in all corresponding keymaps. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum