aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2003-02-11 14:35:24 +0000
committerKim F. Storm2003-02-11 14:35:24 +0000
commit078d0f38885619374c12e2ad7ada459e98d5913c (patch)
treecaaf3f8a2d1fe2bc9da44c883c523eb06467dee3 /src
parent60f3202d9b32265525d8de9208fd56e55452dd83 (diff)
downloademacs-078d0f38885619374c12e2ad7ada459e98d5913c.tar.gz
emacs-078d0f38885619374c12e2ad7ada459e98d5913c.zip
(Fremap_command): Return nil if arg is not a symbol.
Diffstat (limited to 'src')
-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. */)
1070 1070
1071DEFUN ("remap-command", Fremap_command, Sremap_command, 1, 1, 0, 1071DEFUN ("remap-command", Fremap_command, Sremap_command, 1, 1, 0,
1072 doc: /* Return the remapping for command COMMAND in current keymaps. 1072 doc: /* Return the remapping for command COMMAND in current keymaps.
1073Returns nil if COMMAND is not remapped. */) 1073Returns nil if COMMAND is not remapped (or not a symbol). */)
1074 (command) 1074 (command)
1075 Lisp_Object command; 1075 Lisp_Object command;
1076{ 1076{
1077 if (!SYMBOLP (command))
1078 return Qnil;
1079
1077 ASET (remap_command_vector, 1, command); 1080 ASET (remap_command_vector, 1, command);
1078 return Fkey_binding (remap_command_vector, Qnil, Qt); 1081 return Fkey_binding (remap_command_vector, Qnil, Qt);
1079} 1082}