aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-15 00:48:51 -0700
committerPaul Eggert2011-04-15 00:48:51 -0700
commit4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9 (patch)
treee993b231bb5555c9c961f5d0b20d90ac76f77bbd /src/keymap.c
parent1963a2e0bb07cc8dee6d27f972f93d9cfd7c6b2d (diff)
parent49093f601b69d91126aefd328ee8f6bfeb797407 (diff)
downloademacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.tar.gz
emacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.zip
Merge from mainline.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 10000b935aa..8713bcf1279 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -56,8 +56,9 @@ Lisp_Object control_x_map; /* The keymap used for globally bound
56 56
57/* keymap used for minibuffers when doing completion */ 57/* keymap used for minibuffers when doing completion */
58/* keymap used for minibuffers when doing completion and require a match */ 58/* keymap used for minibuffers when doing completion and require a match */
59Lisp_Object Qkeymapp, Qkeymap, Qnon_ascii, Qmenu_item, Qremap; 59static Lisp_Object Qkeymapp, Qnon_ascii;
60Lisp_Object QCadvertised_binding; 60Lisp_Object Qkeymap, Qmenu_item, Qremap;
61static Lisp_Object QCadvertised_binding;
61 62
62/* Alist of elements like (DEL . "\d"). */ 63/* Alist of elements like (DEL . "\d"). */
63static Lisp_Object exclude_keys; 64static Lisp_Object exclude_keys;
@@ -70,6 +71,7 @@ static Lisp_Object where_is_cache;
70/* Which keymaps are reverse-stored in the cache. */ 71/* Which keymaps are reverse-stored in the cache. */
71static Lisp_Object where_is_cache_keymaps; 72static Lisp_Object where_is_cache_keymaps;
72 73
74static Lisp_Object Flookup_key (Lisp_Object, Lisp_Object, Lisp_Object);
73static Lisp_Object store_in_keymap (Lisp_Object, Lisp_Object, Lisp_Object); 75static Lisp_Object store_in_keymap (Lisp_Object, Lisp_Object, Lisp_Object);
74static void fix_submap_inheritance (Lisp_Object, Lisp_Object, Lisp_Object); 76static void fix_submap_inheritance (Lisp_Object, Lisp_Object, Lisp_Object);
75 77
@@ -658,7 +660,7 @@ map_keymap (Lisp_Object map, map_keymap_function_t fun, Lisp_Object args, void *
658 UNGCPRO; 660 UNGCPRO;
659} 661}
660 662
661Lisp_Object Qkeymap_canonicalize; 663static Lisp_Object Qkeymap_canonicalize;
662 664
663/* Same as map_keymap, but does it right, properly eliminating duplicate 665/* Same as map_keymap, but does it right, properly eliminating duplicate
664 bindings due to inheritance. */ 666 bindings due to inheritance. */
@@ -955,7 +957,7 @@ store_in_keymap (Lisp_Object keymap, register Lisp_Object idx, Lisp_Object def)
955 return def; 957 return def;
956} 958}
957 959
958EXFUN (Fcopy_keymap, 1); 960static Lisp_Object Fcopy_keymap (Lisp_Object);
959 961
960static Lisp_Object 962static Lisp_Object
961copy_keymap_item (Lisp_Object elt) 963copy_keymap_item (Lisp_Object elt)
@@ -2174,7 +2176,7 @@ then the value includes only maps for prefixes that start with PREFIX. */)
2174 } 2176 }
2175 return maps; 2177 return maps;
2176} 2178}
2177Lisp_Object Qsingle_key_description, Qkey_description; 2179static Lisp_Object Qsingle_key_description, Qkey_description;
2178 2180
2179/* This function cannot GC. */ 2181/* This function cannot GC. */
2180 2182