diff options
| author | Kim F. Storm | 2002-02-24 00:24:37 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-02-24 00:24:37 +0000 |
| commit | 5f245371188ff7793c3d5a79a0d38efd2e04bc57 (patch) | |
| tree | f6854080641238dcb9b6fca4f0d883e8969d152f /src | |
| parent | a8959ac2a3b122f064c0aa575404c8a02b4ff74d (diff) | |
| download | emacs-5f245371188ff7793c3d5a79a0d38efd2e04bc57.tar.gz emacs-5f245371188ff7793c3d5a79a0d38efd2e04bc57.zip | |
(Flookup_key): Fixed problem in 2001-12-28 patch:
The validation of the event type was too strict as it didn't
allow string events; buffer names are used in bindings for
menu-bar-select-buffer (see `menu-bar-update-buffers').
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/keymap.c | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 99e4b445a3c..4157523f2e4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2002-02-24 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch: | ||
| 4 | The validation of the event type was too strict as it didn't | ||
| 5 | allow string events; buffer names are used in bindings for | ||
| 6 | menu-bar-select-buffer (see `menu-bar-update-buffers'). | ||
| 7 | |||
| 1 | 2002-02-23 Kim F. Storm <storm@cua.dk> | 8 | 2002-02-23 Kim F. Storm <storm@cua.dk> |
| 2 | 9 | ||
| 3 | The following changes rework my patch of 2002-02-06 which | 10 | The following changes rework my patch of 2002-02-06 which |
diff --git a/src/keymap.c b/src/keymap.c index fcb56bd44ae..e56a21a735a 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1142,7 +1142,9 @@ recognize the default bindings, just as `read-key-sequence' does. */) | |||
| 1142 | if (XINT (c) & 0x80 && STRINGP (key)) | 1142 | if (XINT (c) & 0x80 && STRINGP (key)) |
| 1143 | XSETINT (c, (XINT (c) | meta_modifier) & ~0x80); | 1143 | XSETINT (c, (XINT (c) | meta_modifier) & ~0x80); |
| 1144 | 1144 | ||
| 1145 | if (!INTEGERP (c) && !SYMBOLP (c) && !CONSP (c)) | 1145 | /* Allow string since binding for `menu-bar-select-buffer' |
| 1146 | includes the buffer name in the key sequence. */ | ||
| 1147 | if (!INTEGERP (c) && !SYMBOLP (c) && !CONSP (c) && !STRINGP (c)) | ||
| 1146 | error ("Key sequence contains invalid event"); | 1148 | error ("Key sequence contains invalid event"); |
| 1147 | 1149 | ||
| 1148 | cmd = access_keymap (keymap, c, t_ok, 0, 1); | 1150 | cmd = access_keymap (keymap, c, t_ok, 0, 1); |