diff options
| author | Stefan Monnier | 2012-03-25 16:37:21 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-03-25 16:37:21 -0400 |
| commit | 699c782b7668c44d0fa4446331b0590a6d5dac82 (patch) | |
| tree | 5dcce364741d0761920a3d274b0fc8aba4103d45 /src/keymap.h | |
| parent | 98fb480ee31bf74cf554044f60f21df16566dd7f (diff) | |
| parent | e99a9b8bdccadded1f6fae88ee7a2a93dfd4eacf (diff) | |
| download | emacs-pending.tar.gz emacs-pending.zip | |
Merge from trunkpending
Diffstat (limited to 'src/keymap.h')
| -rw-r--r-- | src/keymap.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/keymap.h b/src/keymap.h index 2c826b64e1f..234ffce471d 100644 --- a/src/keymap.h +++ b/src/keymap.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Functions to manipulate keymaps. | 1 | /* Functions to manipulate keymaps. |
| 2 | Copyright (C) 2001-2011 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2012 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -19,6 +19,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | #ifndef KEYMAP_H | 19 | #ifndef KEYMAP_H |
| 20 | #define KEYMAP_H | 20 | #define KEYMAP_H |
| 21 | 21 | ||
| 22 | /* The maximum byte size consumed by push_key_description. | ||
| 23 | All callers should assure that at least this size of memory is | ||
| 24 | allocated at the place pointed by the second argument. | ||
| 25 | |||
| 26 | There are 6 modifiers, each consumes 2 chars. | ||
| 27 | The octal form of a character code consumes | ||
| 28 | (1 + CHARACTERBITS / 3 + 1) chars (including backslash at the head). | ||
| 29 | We need one more byte for string terminator `\0'. */ | ||
| 30 | #define KEY_DESCRIPTION_SIZE ((2 * 6) + 1 + (CHARACTERBITS / 3) + 1 + 1) | ||
| 31 | |||
| 22 | #define KEYMAPP(m) (!NILP (get_keymap (m, 0, 0))) | 32 | #define KEYMAPP(m) (!NILP (get_keymap (m, 0, 0))) |
| 23 | extern Lisp_Object Qkeymap, Qmenu_bar; | 33 | extern Lisp_Object Qkeymap, Qmenu_bar; |
| 24 | extern Lisp_Object Qremap; | 34 | extern Lisp_Object Qremap; |
| @@ -30,6 +40,7 @@ EXFUN (Fdefine_key, 3); | |||
| 30 | EXFUN (Fcommand_remapping, 3); | 40 | EXFUN (Fcommand_remapping, 3); |
| 31 | EXFUN (Fkey_binding, 4); | 41 | EXFUN (Fkey_binding, 4); |
| 32 | EXFUN (Fkey_description, 2); | 42 | EXFUN (Fkey_description, 2); |
| 43 | extern char *push_key_description (EMACS_INT, char *, int); | ||
| 33 | EXFUN (Fsingle_key_description, 2); | 44 | EXFUN (Fsingle_key_description, 2); |
| 34 | EXFUN (Fwhere_is_internal, 5); | 45 | EXFUN (Fwhere_is_internal, 5); |
| 35 | EXFUN (Fcurrent_active_maps, 2); | 46 | EXFUN (Fcurrent_active_maps, 2); |
| @@ -38,7 +49,7 @@ extern Lisp_Object get_keymap (Lisp_Object, int, int); | |||
| 38 | EXFUN (Fset_keymap_parent, 2); | 49 | EXFUN (Fset_keymap_parent, 2); |
| 39 | extern int describe_map_tree (Lisp_Object, int, Lisp_Object, Lisp_Object, | 50 | extern int describe_map_tree (Lisp_Object, int, Lisp_Object, Lisp_Object, |
| 40 | const char *, int, int, int, int); | 51 | const char *, int, int, int, int); |
| 41 | extern int current_minor_maps (Lisp_Object **, Lisp_Object **); | 52 | extern ptrdiff_t current_minor_maps (Lisp_Object **, Lisp_Object **); |
| 42 | extern void initial_define_key (Lisp_Object, int, const char *); | 53 | extern void initial_define_key (Lisp_Object, int, const char *); |
| 43 | extern void initial_define_lispy_key (Lisp_Object, const char *, const char *); | 54 | extern void initial_define_lispy_key (Lisp_Object, const char *, const char *); |
| 44 | extern void syms_of_keymap (void); | 55 | extern void syms_of_keymap (void); |