aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 536db77f59b..d29d5636e1c 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -106,6 +106,12 @@ static void describe_vector (Lisp_Object, Lisp_Object, Lisp_Object,
106 Lisp_Object, Lisp_Object, bool, bool); 106 Lisp_Object, Lisp_Object, bool, bool);
107static void silly_event_symbol_error (Lisp_Object); 107static void silly_event_symbol_error (Lisp_Object);
108static Lisp_Object get_keyelt (Lisp_Object, bool); 108static Lisp_Object get_keyelt (Lisp_Object, bool);
109
110static void
111CHECK_VECTOR_OR_CHAR_TABLE (Lisp_Object x)
112{
113 CHECK_TYPE (VECTORP (x) || CHAR_TABLE_P (x), Qvector_or_char_table_p, x);
114}
109 115
110/* Keymap object support - constructors and predicates. */ 116/* Keymap object support - constructors and predicates. */
111 117
@@ -566,7 +572,7 @@ map_keymap_char_table_item (Lisp_Object args, Lisp_Object key, Lisp_Object val)
566 if (!NILP (val)) 572 if (!NILP (val))
567 { 573 {
568 map_keymap_function_t fun 574 map_keymap_function_t fun
569 = (map_keymap_function_t) XSAVE_POINTER (args, 0); 575 = (map_keymap_function_t) XSAVE_FUNCPOINTER (args, 0);
570 /* If the key is a range, make a copy since map_char_table modifies 576 /* If the key is a range, make a copy since map_char_table modifies
571 it in place. */ 577 it in place. */
572 if (CONSP (key)) 578 if (CONSP (key))
@@ -611,8 +617,8 @@ map_keymap_internal (Lisp_Object map,
611 } 617 }
612 else if (CHAR_TABLE_P (binding)) 618 else if (CHAR_TABLE_P (binding))
613 map_char_table (map_keymap_char_table_item, Qnil, binding, 619 map_char_table (map_keymap_char_table_item, Qnil, binding,
614 make_save_value (SAVE_TYPE_PTR_PTR_OBJ, 620 make_save_value (SAVE_TYPE_FUNCPTR_PTR_OBJ,
615 fun, data, args)); 621 (voidfuncptr) fun, data, args));
616 } 622 }
617 UNGCPRO; 623 UNGCPRO;
618 return tail; 624 return tail;