[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Function for deleting a key binding in a sparse keymap
From: |
Richard M. Stallman |
Subject: |
Re: Function for deleting a key binding in a sparse keymap |
Date: |
Tue, 13 Dec 2005 12:50:03 -0500 |
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.
- Re: Function for deleting a key binding in a sparse keymap, (continued)
- Re: Function for deleting a key binding in a sparse keymap, Richard M. Stallman, 2005/12/11
- Re: Function for deleting a key binding in a sparse keymap, Lennart Borgman, 2005/12/11
- Re: Function for deleting a key binding in a sparse keymap, Stefan Monnier, 2005/12/12
- Re: Function for deleting a key binding in a sparse keymap, Lennart Borgman, 2005/12/12
- Re: Function for deleting a key binding in a sparse keymap, Stefan Monnier, 2005/12/13
- Re: Function for deleting a key binding in a sparse keymap, Richard M. Stallman, 2005/12/12
- Re: Function for deleting a key binding in a sparse keymap, Lennart Borgman, 2005/12/12
- Re: Function for deleting a key binding in a sparse keymap,
Richard M. Stallman <=
- Re: Function for deleting a key binding in a sparse keymap, Lennart Borgman, 2005/12/13
- Re: Function for deleting a key binding in a sparse keymap, Richard M. Stallman, 2005/12/14
- Re: Function for deleting a key binding in a sparse keymap, Kim F. Storm, 2005/12/10
- Re: Function for deleting a key binding in a sparse keymap, Lennart Borgman, 2005/12/10
- Re: Function for deleting a key binding in a sparse keymap, Lennart Borgman, 2005/12/10
- Re: Function for deleting a key binding in a sparse keymap, Richard M. Stallman, 2005/12/11
- Re: Function for deleting a key binding in a sparse keymap - bug in menus?, Lennart Borgman, 2005/12/08