diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/keymap.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ee745778951..8043e118c64 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid. | ||
| 4 | |||
| 1 | 2010-07-31 Chong Yidong <cyd@stupidchicken.com> | 5 | 2010-07-31 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * xselect.c (x_own_selection): Use list4. | 7 | * xselect.c (x_own_selection): Use list4. |
diff --git a/src/keymap.c b/src/keymap.c index a92c085793f..5e884ae137e 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1226,7 +1226,7 @@ binding KEY to DEF is added at the front of KEYMAP. */) | |||
| 1226 | && (!CONSP (c) | 1226 | && (!CONSP (c) |
| 1227 | /* If C is a range, it must be a leaf. */ | 1227 | /* If C is a range, it must be a leaf. */ |
| 1228 | || (INTEGERP (XCAR (c)) && idx != length))) | 1228 | || (INTEGERP (XCAR (c)) && idx != length))) |
| 1229 | error ("Key sequence contains invalid event"); | 1229 | message_with_string ("Key sequence contains invalid event %s", c, 1); |
| 1230 | 1230 | ||
| 1231 | if (idx == length) | 1231 | if (idx == length) |
| 1232 | RETURN_UNGCPRO (store_in_keymap (keymap, c, def)); | 1232 | RETURN_UNGCPRO (store_in_keymap (keymap, c, def)); |
| @@ -1340,7 +1340,7 @@ recognize the default bindings, just as `read-key-sequence' does. */) | |||
| 1340 | /* Allow string since binding for `menu-bar-select-buffer' | 1340 | /* Allow string since binding for `menu-bar-select-buffer' |
| 1341 | includes the buffer name in the key sequence. */ | 1341 | includes the buffer name in the key sequence. */ |
| 1342 | if (!INTEGERP (c) && !SYMBOLP (c) && !CONSP (c) && !STRINGP (c)) | 1342 | if (!INTEGERP (c) && !SYMBOLP (c) && !CONSP (c) && !STRINGP (c)) |
| 1343 | error ("Key sequence contains invalid event"); | 1343 | message_with_string ("Key sequence contains invalid event %s", c, 1); |
| 1344 | 1344 | ||
| 1345 | cmd = access_keymap (keymap, c, t_ok, 0, 1); | 1345 | cmd = access_keymap (keymap, c, t_ok, 0, 1); |
| 1346 | if (idx == length) | 1346 | if (idx == length) |