diff options
| author | Kim F. Storm | 2003-02-11 14:35:24 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-02-11 14:35:24 +0000 |
| commit | 078d0f38885619374c12e2ad7ada459e98d5913c (patch) | |
| tree | caaf3f8a2d1fe2bc9da44c883c523eb06467dee3 /src | |
| parent | 60f3202d9b32265525d8de9208fd56e55452dd83 (diff) | |
| download | emacs-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.c | 5 |
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 | ||
| 1071 | DEFUN ("remap-command", Fremap_command, Sremap_command, 1, 1, 0, | 1071 | DEFUN ("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. |
| 1073 | Returns nil if COMMAND is not remapped. */) | 1073 | Returns 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 | } |