aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorJoakim Verona2013-07-02 22:46:17 +0200
committerJoakim Verona2013-07-02 22:46:17 +0200
commit3718127221fbbc31f8ebd027ab7c95403dbe9118 (patch)
treeef422898f3344c8f94f6ecf63eb583122bbf2bd8 /src/keymap.c
parent1ce45b902c67b8a0dda8d71bd2812de29a9988a6 (diff)
parenta3b49114c186d84404226af75ae7905bd1cd018f (diff)
downloademacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.tar.gz
emacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.zip
Merge branch 'trunk' into xwidget
Conflicts: src/window.c
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;