diff options
| author | Stefan Monnier | 2000-10-25 03:02:17 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-10-25 03:02:17 +0000 |
| commit | 320c9428b462841969d8b51463f3f963e776d190 (patch) | |
| tree | ae4d159838b7a2f9c21933d835aa18cc30d2d122 /src | |
| parent | 04145a653f84a4f11eac9cde81c256d8ebcd9e59 (diff) | |
| download | emacs-320c9428b462841969d8b51463f3f963e776d190.tar.gz emacs-320c9428b462841969d8b51463f3f963e776d190.zip | |
(fix_submap_inheritance): Use get_keymap_1 on parent_entry
rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
a symbol.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c index 869cc318252..e1fbb1b3ebc 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -415,13 +415,14 @@ fix_submap_inheritance (map, event, submap) | |||
| 415 | 415 | ||
| 416 | map_parent = Fkeymap_parent (map); | 416 | map_parent = Fkeymap_parent (map); |
| 417 | if (! NILP (map_parent)) | 417 | if (! NILP (map_parent)) |
| 418 | parent_entry = access_keymap (map_parent, event, 0, 0, 0); | 418 | parent_entry = |
| 419 | get_keymap_1 (access_keymap (map_parent, event, 0, 0, 0), 0, 0); | ||
| 419 | else | 420 | else |
| 420 | parent_entry = Qnil; | 421 | parent_entry = Qnil; |
| 421 | 422 | ||
| 422 | /* If MAP's parent has something other than a keymap, | 423 | /* If MAP's parent has something other than a keymap, |
| 423 | our own submap shadows it completely. */ | 424 | our own submap shadows it completely. */ |
| 424 | if (! KEYMAPP (parent_entry)) | 425 | if (NILP (parent_entry)) |
| 425 | return; | 426 | return; |
| 426 | 427 | ||
| 427 | if (! EQ (parent_entry, submap)) | 428 | if (! EQ (parent_entry, submap)) |