diff options
| author | Richard M. Stallman | 1994-08-07 06:40:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-08-07 06:40:55 +0000 |
| commit | 1ae2097f5083eaf491f5a2c1efd19b712b6c3c5a (patch) | |
| tree | 912d8907e40e26338f234d4f469ac30a98da2da5 /src | |
| parent | 2e16580f125edd2e7f63c8fc2a2489245eaf8c1c (diff) | |
| download | emacs-1ae2097f5083eaf491f5a2c1efd19b712b6c3c5a.tar.gz emacs-1ae2097f5083eaf491f5a2c1efd19b712b6c3c5a.zip | |
(Faccessible_keymaps): Fix previous change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c index 7ad4bacc255..bad22160a9c 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1173,10 +1173,12 @@ then the value includes only maps for prefixes that start with PREFIX.") | |||
| 1173 | that prefix, so we don't waste time considering other prefixes. */ | 1173 | that prefix, so we don't waste time considering other prefixes. */ |
| 1174 | Lisp_Object tem; | 1174 | Lisp_Object tem; |
| 1175 | tem = Flookup_key (startmap, prefix, Qt); | 1175 | tem = Flookup_key (startmap, prefix, Qt); |
| 1176 | /* If PREFIX is reasonable, Flookup_key should give a keymap or nil. | 1176 | /* Flookup_key may give us nil, or a number, |
| 1177 | For any other value it is ok to get an error here. */ | 1177 | if the prefix is not defined in this particular map. |
| 1178 | It might even give us a list that isn't a keymap. */ | ||
| 1179 | tem = get_keymap_1 (tem, 0, 0); | ||
| 1178 | if (!NILP (tem)) | 1180 | if (!NILP (tem)) |
| 1179 | maps = Fcons (Fcons (prefix, get_keymap (tem)), Qnil); | 1181 | maps = Fcons (Fcons (prefix, tem), Qnil); |
| 1180 | else | 1182 | else |
| 1181 | return Qnil; | 1183 | return Qnil; |
| 1182 | } | 1184 | } |