aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorStefan Monnier2007-10-17 23:43:52 +0000
committerStefan Monnier2007-10-17 23:43:52 +0000
commit99784d6399c1f49ca5d98a3156a7c3262b5e7ee9 (patch)
treec7439e93bed59b50df298601b04e55ac90d68892 /src/keymap.c
parentb5307e9c2bd6222f9af6a6792ae69f3bb45fdf45 (diff)
downloademacs-99784d6399c1f49ca5d98a3156a7c3262b5e7ee9.tar.gz
emacs-99784d6399c1f49ca5d98a3156a7c3262b5e7ee9.zip
* xselect.c (x_own_selection, x_handle_selection_clear)
(x_clear_frame_selections): * w32menu.c (list_of_panes, list_of_items): * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list): * textprop.c (validate_plist, interval_has_all_properties) (interval_has_some_properties, interval_has_some_properties_list) (add_properties, text_property_list): * process.c (Fget_buffer_process, list_processes_1, status_notify): * minibuf.c (Fassoc_string): * macselect.c (x_own_selection, x_clear_frame_selections) (Fx_disown_selection_internal): * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree): Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/keymap.c b/src/keymap.c
index be23c20a3aa..2edad90b732 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1247,9 +1247,9 @@ remapping in all currently active keymaps. */)
1247 { 1247 {
1248 Lisp_Object maps, binding; 1248 Lisp_Object maps, binding;
1249 1249
1250 for (maps = keymaps; !NILP (maps); maps = Fcdr (maps)) 1250 for (maps = keymaps; CONSP (maps); maps = XCDR (maps))
1251 { 1251 {
1252 binding = Flookup_key (Fcar (maps), command_remapping_vector, Qnil); 1252 binding = Flookup_key (XCAR (maps), command_remapping_vector, Qnil);
1253 if (!NILP (binding) && !INTEGERP (binding)) 1253 if (!NILP (binding) && !INTEGERP (binding))
1254 return binding; 1254 return binding;
1255 } 1255 }
@@ -2681,7 +2681,7 @@ where_is_internal (definition, keymaps, firstonly, noindirect, no_remap)
2681 && !NILP (Fcommand_remapping (definition, Qnil, keymaps))) 2681 && !NILP (Fcommand_remapping (definition, Qnil, keymaps)))
2682 RETURN_UNGCPRO (Qnil); 2682 RETURN_UNGCPRO (Qnil);
2683 2683
2684 for (; !NILP (maps); maps = Fcdr (maps)) 2684 for (; CONSP (maps); maps = XCDR (maps))
2685 { 2685 {
2686 /* Key sequence to reach map, and the map that it reaches */ 2686 /* Key sequence to reach map, and the map that it reaches */
2687 register Lisp_Object this, map, tem; 2687 register Lisp_Object this, map, tem;
@@ -2693,8 +2693,8 @@ where_is_internal (definition, keymaps, firstonly, noindirect, no_remap)
2693 Lisp_Object last; 2693 Lisp_Object last;
2694 int last_is_meta; 2694 int last_is_meta;
2695 2695
2696 this = Fcar (Fcar (maps)); 2696 this = Fcar (XCAR (maps));
2697 map = Fcdr (Fcar (maps)); 2697 map = Fcdr (XCAR (maps));
2698 last = make_number (XINT (Flength (this)) - 1); 2698 last = make_number (XINT (Flength (this)) - 1);
2699 last_is_meta = (XINT (last) >= 0 2699 last_is_meta = (XINT (last) >= 0
2700 && EQ (Faref (this, last), meta_prefix_char)); 2700 && EQ (Faref (this, last), meta_prefix_char));
@@ -3179,11 +3179,11 @@ key binding\n\
3179 Lisp_Object list; 3179 Lisp_Object list;
3180 3180
3181 /* Delete from MAPS each element that is for the menu bar. */ 3181 /* Delete from MAPS each element that is for the menu bar. */
3182 for (list = maps; !NILP (list); list = XCDR (list)) 3182 for (list = maps; CONSP (list); list = XCDR (list))
3183 { 3183 {
3184 Lisp_Object elt, prefix, tem; 3184 Lisp_Object elt, prefix, tem;
3185 3185
3186 elt = Fcar (list); 3186 elt = XCAR (list);
3187 prefix = Fcar (elt); 3187 prefix = Fcar (elt);
3188 if (XVECTOR (prefix)->size >= 1) 3188 if (XVECTOR (prefix)->size >= 1)
3189 { 3189 {
@@ -3210,11 +3210,11 @@ key binding\n\
3210 something = 1; 3210 something = 1;
3211 } 3211 }
3212 3212
3213 for (; !NILP (maps); maps = Fcdr (maps)) 3213 for (; CONSP (maps); maps = XCDR (maps))
3214 { 3214 {
3215 register Lisp_Object elt, prefix, tail; 3215 register Lisp_Object elt, prefix, tail;
3216 3216
3217 elt = Fcar (maps); 3217 elt = XCAR (maps);
3218 prefix = Fcar (elt); 3218 prefix = Fcar (elt);
3219 3219
3220 sub_shadows = Qnil; 3220 sub_shadows = Qnil;