From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: A bug, I think, in key-binding Date: Wed, 09 Aug 2006 21:13:00 -0400 Message-ID: References: <858xly975r.fsf@lola.goethe.zz> <87y7tysd7e.fsf-monnier+emacs@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1155172399 22713 80.91.229.2 (10 Aug 2006 01:13:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2006 01:13:19 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 10 03:13:17 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 1GAz6p-0004Jg-52 for ged-emacs-devel@m.gmane.org; Thu, 10 Aug 2006 03:13:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAz6o-0004xT-9a for ged-emacs-devel@m.gmane.org; Wed, 09 Aug 2006 21:13:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GAz6d-0004xO-4l for emacs-devel@gnu.org; Wed, 09 Aug 2006 21:13:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GAz6b-0004xC-Qq for emacs-devel@gnu.org; Wed, 09 Aug 2006 21:13:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAz6b-0004x9-LG for emacs-devel@gnu.org; Wed, 09 Aug 2006 21:13:01 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GAzBP-0002xn-HM for emacs-devel@gnu.org; Wed, 09 Aug 2006 21:17:59 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GAz6a-0002h5-Q1; Wed, 09 Aug 2006 21:13:00 -0400 Original-To: Stefan Monnier In-reply-to: <87y7tysd7e.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Wed, 09 Aug 2006 01:18:11 -0400) 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:58240 Archived-At: I don't think the two are incompatible: currently, key-binding does not work if one of the keys in the sequence is an event (rather than just a char or a symbol), Yes, it does work in that case. (I just tested it.) > Perhaps we should have a function to do lookup on a key sequence > just the same way the command loop does. That can be written in Lisp; > it just has to see if the first event is a mouse even, and move point > there inside save-excursion. Moving point is not sufficient if the click is on an image-map, or on before-string. I'd rather reuse the C code if at all possible rather than try to mimick it in elisp (unless we can completely replace the C version with the elisp version). That is a valid point; this needs to be implemented at C level. Perhaps an optional argument to key-binding is the way to do it. Would you like to implement that?