diff options
| author | Gerd Moellmann | 2001-01-12 11:19:36 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-01-12 11:19:36 +0000 |
| commit | 4956d1efe2067a859d1df4c81eabeeab2a113cbd (patch) | |
| tree | a006c3c612d94f2a7e06e0a3b2e03fb514a3a380 /src/keymap.c | |
| parent | 95a7097d65ec4401ea682b821db00105f52d5ed3 (diff) | |
| download | emacs-4956d1efe2067a859d1df4c81eabeeab2a113cbd.tar.gz emacs-4956d1efe2067a859d1df4c81eabeeab2a113cbd.zip | |
Call get_local_map with new argument list.
(Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/keymap.c b/src/keymap.c index 094dac4d13c..f19b1e6146b 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1259,7 +1259,7 @@ recognize the default bindings, just as `read-key-sequence' does.") | |||
| 1259 | RETURN_UNGCPRO (value); | 1259 | RETURN_UNGCPRO (value); |
| 1260 | } | 1260 | } |
| 1261 | 1261 | ||
| 1262 | local = get_local_map (PT, current_buffer, keymap); | 1262 | local = get_local_map (PT, current_buffer, Qkeymap); |
| 1263 | if (! NILP (local)) | 1263 | if (! NILP (local)) |
| 1264 | { | 1264 | { |
| 1265 | value = Flookup_key (local, key, accept_default); | 1265 | value = Flookup_key (local, key, accept_default); |
| @@ -1267,7 +1267,7 @@ recognize the default bindings, just as `read-key-sequence' does.") | |||
| 1267 | RETURN_UNGCPRO (value); | 1267 | RETURN_UNGCPRO (value); |
| 1268 | } | 1268 | } |
| 1269 | 1269 | ||
| 1270 | local = get_local_map (PT, current_buffer, local_map); | 1270 | local = get_local_map (PT, current_buffer, Qlocal_map); |
| 1271 | 1271 | ||
| 1272 | if (! NILP (local)) | 1272 | if (! NILP (local)) |
| 1273 | { | 1273 | { |
| @@ -2239,8 +2239,8 @@ and entirely reject menu bindings.\n\ | |||
| 2239 | If optional 4th arg NOINDIRECT is non-nil, don't follow indirections\n\ | 2239 | If optional 4th arg NOINDIRECT is non-nil, don't follow indirections\n\ |
| 2240 | to other keymaps or slots. This makes it possible to search for an\n\ | 2240 | to other keymaps or slots. This makes it possible to search for an\n\ |
| 2241 | indirect definition itself.") | 2241 | indirect definition itself.") |
| 2242 | (definition, xkeymap, firstonly, noindirect) | 2242 | (definition, keymap, firstonly, noindirect) |
| 2243 | Lisp_Object definition, xkeymap; | 2243 | Lisp_Object definition, keymap; |
| 2244 | Lisp_Object firstonly, noindirect; | 2244 | Lisp_Object firstonly, noindirect; |
| 2245 | { | 2245 | { |
| 2246 | Lisp_Object sequences, keymaps; | 2246 | Lisp_Object sequences, keymaps; |
| @@ -2249,21 +2249,22 @@ indirect definition itself.") | |||
| 2249 | int nomenus = !NILP (firstonly) && !EQ (firstonly, Qnon_ascii); | 2249 | int nomenus = !NILP (firstonly) && !EQ (firstonly, Qnon_ascii); |
| 2250 | 2250 | ||
| 2251 | /* Find the relevant keymaps. */ | 2251 | /* Find the relevant keymaps. */ |
| 2252 | if (CONSP (xkeymap) && KEYMAPP (XCAR (xkeymap))) | 2252 | if (CONSP (keymap) && KEYMAPP (XCAR (keymap))) |
| 2253 | keymaps = xkeymap; | 2253 | keymaps = keymap; |
| 2254 | else if (! NILP (xkeymap)) | 2254 | else if (! NILP (keymap)) |
| 2255 | keymaps = Fcons (xkeymap, Fcons (current_global_map, Qnil)); | 2255 | keymaps = Fcons (keymap, Fcons (current_global_map, Qnil)); |
| 2256 | else | 2256 | else |
| 2257 | keymaps = | 2257 | keymaps = |
| 2258 | Fdelq (Qnil, | 2258 | Fdelq (Qnil, |
| 2259 | nconc2 (Fcurrent_minor_mode_maps (), | 2259 | nconc2 (Fcurrent_minor_mode_maps (), |
| 2260 | Fcons (get_local_map (PT, current_buffer, keymap), | 2260 | Fcons (get_local_map (PT, current_buffer, Qkeymap), |
| 2261 | Fcons (get_local_map (PT, current_buffer, local_map), | 2261 | Fcons (get_local_map (PT, current_buffer, |
| 2262 | Qlocal_map), | ||
| 2262 | Fcons (current_global_map, Qnil))))); | 2263 | Fcons (current_global_map, Qnil))))); |
| 2263 | 2264 | ||
| 2264 | /* Only use caching for the menubar (i.e. called with (def nil t nil). | 2265 | /* Only use caching for the menubar (i.e. called with (def nil t nil). |
| 2265 | We don't really need to check `xkeymap'. */ | 2266 | We don't really need to check `keymap'. */ |
| 2266 | if (nomenus && NILP (noindirect) && NILP (xkeymap)) | 2267 | if (nomenus && NILP (noindirect) && NILP (keymap)) |
| 2267 | { | 2268 | { |
| 2268 | /* Check heuristic-consistency of the cache. */ | 2269 | /* Check heuristic-consistency of the cache. */ |
| 2269 | if (NILP (Fequal (keymaps, where_is_cache_keymaps))) | 2270 | if (NILP (Fequal (keymaps, where_is_cache_keymaps))) |