diff options
| author | Karl Heuer | 1994-03-22 23:36:28 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-03-22 23:36:28 +0000 |
| commit | 5907b8633f59de9a3ba1b1ba9f081ca49ed0646f (patch) | |
| tree | 43f6464ce8e0a814aded7013991e890dd3edd19b /src | |
| parent | 0abbff134f60720b4b4eb0a352b00fb6761eebd0 (diff) | |
| download | emacs-5907b8633f59de9a3ba1b1ba9f081ca49ed0646f.tar.gz emacs-5907b8633f59de9a3ba1b1ba9f081ca49ed0646f.zip | |
(Fdefine_key): Check for non-events in keyvector.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keymap.c b/src/keymap.c index ed84063bcd3..1b2336562f2 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -616,6 +616,9 @@ the front of KEYMAP.") | |||
| 616 | idx++; | 616 | idx++; |
| 617 | } | 617 | } |
| 618 | 618 | ||
| 619 | if (! INTEGERP (c) && ! SYMBOLP (c) && ! CONSP (c)) | ||
| 620 | error ("Key sequence contains illegal events"); | ||
| 621 | |||
| 619 | if (idx == length) | 622 | if (idx == length) |
| 620 | RETURN_UNGCPRO (store_in_keymap (keymap, c, def)); | 623 | RETURN_UNGCPRO (store_in_keymap (keymap, c, def)); |
| 621 | 624 | ||