From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Function for deleting a key binding in a sparse keymap Date: Tue, 13 Dec 2005 12:50:03 -0500 Message-ID: References: <3cc04a73cc1b1a.3cc1b1a3cc04a7@net.lu.se> <43987D21.4070200@student.lu.se> <4398C8F2.8060301@student.lu.se> <4399E538.2080909@student.lu.se> <439B688C.1090207@student.lu.se> <439CD53C.1070500@student.lu.se> <439DCAEA.5080204@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1134498965 29613 80.91.229.2 (13 Dec 2005 18:36:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2005 18:36:05 +0000 (UTC) Cc: storm@cua.dk, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 13 19:35:54 2005 Return-path: Original-Received: from [199.232.75.2] (helo=lists.gnu.org) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmEsm-0000Qd-Mt for ged-emacs-devel@m.gmane.org; Tue, 13 Dec 2005 19:28:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmEtK-0002Ar-GG for ged-emacs-devel@m.gmane.org; Tue, 13 Dec 2005 13:28:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EmEJd-0002Iy-Fo for emacs-devel@gnu.org; Tue, 13 Dec 2005 12:51:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EmEJc-0002HY-2d for emacs-devel@gnu.org; Tue, 13 Dec 2005 12:51:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmEJb-0002HO-M0 for emacs-devel@gnu.org; Tue, 13 Dec 2005 12:51:51 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EmELX-0007tF-AO for emacs-devel@gnu.org; Tue, 13 Dec 2005 12:53:51 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EmEHr-0000yu-2m; Tue, 13 Dec 2005 12:50:03 -0500 Original-To: Lennart Borgman In-reply-to: <439DCAEA.5080204@student.lu.se> (message from Lennart Borgman on Mon, 12 Dec 2005 20:09:30 +0100) 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 X-Broken-Reverse-DNS: no host name found for IP address 199.232.75.2 Xref: news.gmane.org gmane.emacs.devel:47628 Archived-At: First the keyboard input events must be translated (@pxref{Translating Input}). This is done in two steps, first character translation and then key sequence translation: I don't think that belongs in this node. These things should be documented elsewhere. What is needed here is a brief statement that key lookup is separate from key input, with mention of read-key-sequence, and an xref. The keymap entry could also be a keymap. In that case the next event is looked up in that keymap. (@strong{But what happens if there is no hit there, I can not find any documentation on this???}) The question is not clear. "No hit there"--where is "there"? @lisp (or (if overriding-terminal-local-map (FIND-IN overriding-terminal-local-map) (if overriding-local-map (FIND-IN overriding-local-map) (or (FIND-IN (get-text-property (point) 'keymap)) (FIND-IN-ANY emulation-mode-map-alists) (FIND-IN-ANY minor-mode-overriding-map-alist) (FIND-IN-ANY minor-mode-map-alist) (FIND-IN (get-text-property (point) 'local-map)) (FIND-IN (current-local-map))))) (FIND-IN (current-global-map))) Please use @var instead of capital letters. @noindent @strong{Remark 2:} Characters that are bound to @code{self-insert-command} are translated according to @code{translation-table-for-input} before insertion. How self-insert-command works is not part of this topic. It might be desirable to add this info somewhere else, but here it does not belong. @noindent @strong{Remark 3:} You may find the function @code{current-active-maps} useful when looking into this. Such vagueness is unhelpful. Please say what the function does. Then add an xref to it.