From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Getting the click position in a string Date: Thu, 27 Apr 2006 17:24:30 -0400 Message-ID: <87irou4t8q.fsf-monnier+emacs@gnu.org> 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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146173112 10570 80.91.229.2 (27 Apr 2006 21:25:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Apr 2006 21:25:12 +0000 (UTC) Cc: emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 27 23:25:03 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 1FZDys-00037O-5l for ged-emacs-devel@m.gmane.org; Thu, 27 Apr 2006 23:24:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZDyr-0005KC-Kj for ged-emacs-devel@m.gmane.org; Thu, 27 Apr 2006 17:24:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FZDyf-0005I4-5n for emacs-devel@gnu.org; Thu, 27 Apr 2006 17:24:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FZDyd-0005FO-Ja for emacs-devel@gnu.org; Thu, 27 Apr 2006 17:24:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZDyd-0005F9-DY for emacs-devel@gnu.org; Thu, 27 Apr 2006 17:24:43 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FZE1R-0006w4-Da; Thu, 27 Apr 2006 17:27:37 -0400 Original-Received: from alfajor ([70.55.144.118]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060427212430.JCSV20622.tomts10-srv.bellnexxia.net@alfajor>; Thu, 27 Apr 2006 17:24:30 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 91203D91CF; Thu, 27 Apr 2006 17:24:30 -0400 (EDT) Original-To: David Kastrup In-Reply-To: <858xpqkgvy.fsf@lola.goethe.zz> (David Kastrup's message of "Thu, 27 Apr 2006 20:33:37 +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:53514 Archived-At: >> But in order not to make it appear like an "accessor function", maybe it'd >> be better to name it differently, e.g. "posn-lookup-key-binding". >> Of course, another way to do it is to change `key-binding' so that it >> accepts a `posn' argument (and/or an event argument). > If it accepted an event instead of a keymap, that would be reasonably > convenient. There is a certain danger that this extension would be > obscure: people might not know where to look for it in general. XEmacs does it, AFAIK, and I don't find it particularly obscure. Stefan