summaryrefslogtreecommitdiff
path: root/src/keymap.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2003-02-11 14:35:24 +0000
committerKim F. Storm <storm@cua.dk>2003-02-11 14:35:24 +0000
commit078d0f38885619374c12e2ad7ada459e98d5913c (patch)
treecaaf3f8a2d1fe2bc9da44c883c523eb06467dee3 /src/keymap.c
parent60f3202d9b32265525d8de9208fd56e55452dd83 (diff)
downloademacs-078d0f38885619374c12e2ad7ada459e98d5913c.tar.gz
(Fremap_command): Return nil if arg is not a symbol.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 2f8a44cfb3d..3c8c7a3ce3f 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1070,10 +1070,13 @@ the front of KEYMAP. */)
DEFUN ("remap-command", Fremap_command, Sremap_command, 1, 1, 0,
doc: /* Return the remapping for command COMMAND in current keymaps.
-Returns nil if COMMAND is not remapped. */)
+Returns nil if COMMAND is not remapped (or not a symbol). */)
(command)
Lisp_Object command;
{
+ if (!SYMBOLP (command))
+ return Qnil;
+
ASET (remap_command_vector, 1, command);
return Fkey_binding (remap_command_vector, Qnil, Qt);
}