From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Function for deleting a key binding in a sparse keymap Date: Sun, 11 Dec 2005 00:40:48 +0100 Message-ID: References: <3cc04a73cc1b1a.3cc1b1a3cc04a7@net.lu.se> <43987D21.4070200@student.lu.se> <4398C8F2.8060301@student.lu.se> <4399E538.2080909@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134258182 8800 80.91.229.2 (10 Dec 2005 23:43:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Dec 2005 23:43:02 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 11 00:42:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ElELj-00066R-9P for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2005 00:41:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElEM8-0001hI-Qp for ged-emacs-devel@m.gmane.org; Sat, 10 Dec 2005 18:42:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ElELo-0001fG-28 for emacs-devel@gnu.org; Sat, 10 Dec 2005 18:42:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ElELk-0001bU-GM for emacs-devel@gnu.org; Sat, 10 Dec 2005 18:41:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElELk-0001bN-Ds for emacs-devel@gnu.org; Sat, 10 Dec 2005 18:41:56 -0500 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ElENA-0004P0-Hz; Sat, 10 Dec 2005 18:43:24 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 499F25EE030; Sun, 11 Dec 2005 00:41:22 +0100 (CET) Original-To: Lennart Borgman In-Reply-To: <4399E538.2080909@student.lu.se> (Lennart Borgman's message of "Fri, 09 Dec 2005 21:12:40 +0100") 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:47411 Archived-At: Lennart Borgman writes: > I am glad you appreciate it. However there was a bit more to add. I > got some tips from Kim and made a new version. There is a question in > this about when the keymap entry is a keymap. This seems to be quite accurate now... but there is one thing I don't understand... > *) Characters that are self-inserting are translated according to > `translation-table-for-input'. If a character is self-inserting then > you are ready. How do you know that a character is self-inserting at this stage? You only find that out by looking it up in the keymaps, and you haven't got to that yet at this stage (unless this somehow is the second pass?) May I suggest that you add an example of which part of emacs currently uses each of these methods, e.g. > > *) Translate meta characters according to `meta-prefix-char' to a two > character sequence. For example, this maps M-x into ESC x. > FIRST-MAP) Look in `special-event-map'. For example, this is where the delete-frame event is handled. > *) If overriding-terminal-local-map look in this. Then go to GLOBAL. For example, this is how the C-u prefix is handled. > *) Look for minor mode keymaps in `emulation-mode-map-alists'. For example, this is used by cua-mode and viper. etc. -- Kim F. Storm http://www.cua.dk