Mercurial > emacs
changeset 76889:e73fed8ffa74
(Remapping Commands): Document new arg to command-remapping.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sun, 01 Apr 2007 22:10:39 +0000 |
parents | 9cbf00eda493 |
children | 73b979e89254 |
files | lispref/keymaps.texi |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/keymaps.texi Sun Apr 01 22:10:31 2007 +0000 +++ b/lispref/keymaps.texi Sun Apr 01 22:10:39 2007 +0000 @@ -1489,13 +1489,17 @@ if an ordinary binding specifies @code{my-kill-line}, this keymap will remap it to @code{my-other-kill-line}. -@defun command-remapping command &optional position +@defun command-remapping command &optional position keymaps This function returns the remapping for @var{command} (a symbol), given the current active keymaps. If @var{command} is not remapped (which is the usual situation), or not a symbol, the function returns @code{nil}. @code{position} can optionally specify a buffer position or an event position to determine the keymaps to use, as in @code{key-binding}. + +If the optional argument @code{keymaps} is non-@code{nil}, it +specifies a list of keymaps to search in. This argument is ignored if +@code{position} is non-@code{nil}. @end defun @node Translation Keymaps