diff options
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/keymap.c b/src/keymap.c index b6243594beb..b5abb194e1f 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1280,9 +1280,9 @@ remapping in all currently active keymaps. */) | |||
| 1280 | { | 1280 | { |
| 1281 | Lisp_Object maps, binding; | 1281 | Lisp_Object maps, binding; |
| 1282 | 1282 | ||
| 1283 | for (maps = keymaps; !NILP (maps); maps = Fcdr (maps)) | 1283 | for (maps = keymaps; CONSP (maps); maps = XCDR (maps)) |
| 1284 | { | 1284 | { |
| 1285 | binding = Flookup_key (Fcar (maps), command_remapping_vector, Qnil); | 1285 | binding = Flookup_key (XCAR (maps), command_remapping_vector, Qnil); |
| 1286 | if (!NILP (binding) && !INTEGERP (binding)) | 1286 | if (!NILP (binding) && !INTEGERP (binding)) |
| 1287 | return binding; | 1287 | return binding; |
| 1288 | } | 1288 | } |
| @@ -2653,7 +2653,7 @@ where_is_internal (definition, keymaps, firstonly, noindirect, no_remap) | |||
| 2653 | && !NILP (Fcommand_remapping (definition, Qnil, keymaps))) | 2653 | && !NILP (Fcommand_remapping (definition, Qnil, keymaps))) |
| 2654 | RETURN_UNGCPRO (Qnil); | 2654 | RETURN_UNGCPRO (Qnil); |
| 2655 | 2655 | ||
| 2656 | for (; !NILP (maps); maps = Fcdr (maps)) | 2656 | for (; CONSP (maps); maps = XCDR (maps)) |
| 2657 | { | 2657 | { |
| 2658 | /* Key sequence to reach map, and the map that it reaches */ | 2658 | /* Key sequence to reach map, and the map that it reaches */ |
| 2659 | register Lisp_Object this, map, tem; | 2659 | register Lisp_Object this, map, tem; |
| @@ -2665,8 +2665,8 @@ where_is_internal (definition, keymaps, firstonly, noindirect, no_remap) | |||
| 2665 | Lisp_Object last; | 2665 | Lisp_Object last; |
| 2666 | int last_is_meta; | 2666 | int last_is_meta; |
| 2667 | 2667 | ||
| 2668 | this = Fcar (Fcar (maps)); | 2668 | this = Fcar (XCAR (maps)); |
| 2669 | map = Fcdr (Fcar (maps)); | 2669 | map = Fcdr (XCAR (maps)); |
| 2670 | last = make_number (XINT (Flength (this)) - 1); | 2670 | last = make_number (XINT (Flength (this)) - 1); |
| 2671 | last_is_meta = (XINT (last) >= 0 | 2671 | last_is_meta = (XINT (last) >= 0 |
| 2672 | && EQ (Faref (this, last), meta_prefix_char)); | 2672 | && EQ (Faref (this, last), meta_prefix_char)); |
| @@ -3155,11 +3155,11 @@ key binding\n\ | |||
| 3155 | Lisp_Object list; | 3155 | Lisp_Object list; |
| 3156 | 3156 | ||
| 3157 | /* Delete from MAPS each element that is for the menu bar. */ | 3157 | /* Delete from MAPS each element that is for the menu bar. */ |
| 3158 | for (list = maps; !NILP (list); list = XCDR (list)) | 3158 | for (list = maps; CONSP (list); list = XCDR (list)) |
| 3159 | { | 3159 | { |
| 3160 | Lisp_Object elt, prefix, tem; | 3160 | Lisp_Object elt, prefix, tem; |
| 3161 | 3161 | ||
| 3162 | elt = Fcar (list); | 3162 | elt = XCAR (list); |
| 3163 | prefix = Fcar (elt); | 3163 | prefix = Fcar (elt); |
| 3164 | if (XVECTOR (prefix)->size >= 1) | 3164 | if (XVECTOR (prefix)->size >= 1) |
| 3165 | { | 3165 | { |
| @@ -3186,11 +3186,11 @@ key binding\n\ | |||
| 3186 | something = 1; | 3186 | something = 1; |
| 3187 | } | 3187 | } |
| 3188 | 3188 | ||
| 3189 | for (; !NILP (maps); maps = Fcdr (maps)) | 3189 | for (; CONSP (maps); maps = XCDR (maps)) |
| 3190 | { | 3190 | { |
| 3191 | register Lisp_Object elt, prefix, tail; | 3191 | register Lisp_Object elt, prefix, tail; |
| 3192 | 3192 | ||
| 3193 | elt = Fcar (maps); | 3193 | elt = XCAR (maps); |
| 3194 | prefix = Fcar (elt); | 3194 | prefix = Fcar (elt); |
| 3195 | 3195 | ||
| 3196 | sub_shadows = Qnil; | 3196 | sub_shadows = Qnil; |