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: local keymap patch for key-binding Date: Mon, 11 Sep 2006 15:58:07 -0400 Message-ID: References: <87slj1hybl.fsf@stupidchicken.com> <85pse5cbqw.fsf@lola.goethe.zz> <87zmd7yjq4.fsf@furball.mit.edu> <85pse3n99c.fsf@lola.goethe.zz> <87r6yjxh7k.fsf@furball.mit.edu> <85venuc27c.fsf@lola.goethe.zz> <85r6yiivi7.fsf@lola.goethe.zz> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1158004937 10238 80.91.229.2 (11 Sep 2006 20:02:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2006 20:02:17 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 11 22:02:12 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 1GMryc-0007jT-V1 for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2006 22:01:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMryb-0000a0-Vr for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2006 16:01:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMruz-0005Rl-RI for emacs-devel@gnu.org; Mon, 11 Sep 2006 15:58:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMruy-0005Qo-V6 for emacs-devel@gnu.org; Mon, 11 Sep 2006 15:58:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMruy-0005Qc-Nx for emacs-devel@gnu.org; Mon, 11 Sep 2006 15:58:08 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GMrwJ-0006vS-I9 for emacs-devel@gnu.org; Mon, 11 Sep 2006 15:59:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GMrux-0007sl-E0; Mon, 11 Sep 2006 15:58:07 -0400 Original-To: David Kastrup In-reply-to: <85r6yiivi7.fsf@lola.goethe.zz> (message from David Kastrup on Mon, 11 Sep 2006 11:48:48 +0200) 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:59704 Archived-At: (`key-binding' can't be used to look up events, and I am less than certain that it should). Of course key-binding can be used to look up events. If you want to look them up in the current active keymaps, key-binding is the natural way. The recent change affects the lookup of events that specify positions. It has no effect on what happens if you pass a list of event-types without positions. Perhaps there is a misunderstanding here about what it means to "look up events". a) add an additional optional parameter BASE-KEY which, when non-NIL, will replace KEY for all purposes of lookup except determining the keymaps to use when KEY is a key-sequence based on an event. I don't follow this at all, sorry. b) have a function `event-replace-key' or something with a better name which will take a key sequence based on an event and swap out the basic event (but maybe _not_ its modifiers since they can play a part in which keymap to use) and swap out the `down-mouse-2' or similar with `follow-link'. What does "swap out" mean here?