diff options
| author | Dmitry Antipov | 2012-07-27 10:04:35 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-07-27 10:04:35 +0400 |
| commit | 694b6c97ebb8310bc18dd305c2f277bcc11cebca (patch) | |
| tree | e8c401a50de10b8b14397a22c7e501f0291a17f5 /src/keymap.c | |
| parent | ca1302a40a560521627fd6a2954a51a79d105a16 (diff) | |
| download | emacs-694b6c97ebb8310bc18dd305c2f277bcc11cebca.tar.gz emacs-694b6c97ebb8310bc18dd305c2f277bcc11cebca.zip | |
Utility function to make a list from specified amount of objects.
* lisp.h (enum constype): New datatype.
(listn): New prototype.
* alloc.c (listn): New function.
(Fmemory_use_count, syms_of_alloc): Use it.
* buffer.c (syms_of_buffer): Likewise.
* callint.c (syms_of_callint): Likewise.
* charset.c (define_charset_internal): Likewise.
* coding.c (syms_of_coding): Likewise.
* keymap.c (syms_of_keymap): Likewise.
* search.c (syms_of_search): Likewise.
* syntax.c (syms_of_syntax): Likewise.
* w32.c (init_environment): Likewise.
* w32fns.c (Fw32_battery_status, syms_of_w32fns): Likewise.
* xdisp.c (syms_of_xdisp): Likewise.
* xfns.c (syms_of_xfns): Likewise.
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/src/keymap.c b/src/keymap.c index feaf0cfd961..d86a4cd74de 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -3702,13 +3702,12 @@ syms_of_keymap (void) | |||
| 3702 | Fset (intern_c_string ("ctl-x-map"), control_x_map); | 3702 | Fset (intern_c_string ("ctl-x-map"), control_x_map); |
| 3703 | Ffset (intern_c_string ("Control-X-prefix"), control_x_map); | 3703 | Ffset (intern_c_string ("Control-X-prefix"), control_x_map); |
| 3704 | 3704 | ||
| 3705 | exclude_keys | 3705 | exclude_keys = listn (PURE, 5, |
| 3706 | = pure_cons (pure_cons (build_pure_c_string ("DEL"), build_pure_c_string ("\\d")), | 3706 | pure_cons (build_pure_c_string ("DEL"), build_pure_c_string ("\\d")), |
| 3707 | pure_cons (pure_cons (build_pure_c_string ("TAB"), build_pure_c_string ("\\t")), | 3707 | pure_cons (build_pure_c_string ("TAB"), build_pure_c_string ("\\t")), |
| 3708 | pure_cons (pure_cons (build_pure_c_string ("RET"), build_pure_c_string ("\\r")), | 3708 | pure_cons (build_pure_c_string ("RET"), build_pure_c_string ("\\r")), |
| 3709 | pure_cons (pure_cons (build_pure_c_string ("ESC"), build_pure_c_string ("\\e")), | 3709 | pure_cons (build_pure_c_string ("ESC"), build_pure_c_string ("\\e")), |
| 3710 | pure_cons (pure_cons (build_pure_c_string ("SPC"), build_pure_c_string (" ")), | 3710 | pure_cons (build_pure_c_string ("SPC"), build_pure_c_string (" "))); |
| 3711 | Qnil))))); | ||
| 3712 | staticpro (&exclude_keys); | 3711 | staticpro (&exclude_keys); |
| 3713 | 3712 | ||
| 3714 | DEFVAR_LISP ("define-key-rebound-commands", Vdefine_key_rebound_commands, | 3713 | DEFVAR_LISP ("define-key-rebound-commands", Vdefine_key_rebound_commands, |
| @@ -3761,16 +3760,16 @@ be preferred. */); | |||
| 3761 | where_is_preferred_modifier = 0; | 3760 | where_is_preferred_modifier = 0; |
| 3762 | 3761 | ||
| 3763 | staticpro (&Vmouse_events); | 3762 | staticpro (&Vmouse_events); |
| 3764 | Vmouse_events = pure_cons (intern_c_string ("menu-bar"), | 3763 | Vmouse_events = listn (PURE, 9, |
| 3765 | pure_cons (intern_c_string ("tool-bar"), | 3764 | intern_c_string ("menu-bar"), |
| 3766 | pure_cons (intern_c_string ("header-line"), | 3765 | intern_c_string ("tool-bar"), |
| 3767 | pure_cons (intern_c_string ("mode-line"), | 3766 | intern_c_string ("header-line"), |
| 3768 | pure_cons (intern_c_string ("mouse-1"), | 3767 | intern_c_string ("mode-line"), |
| 3769 | pure_cons (intern_c_string ("mouse-2"), | 3768 | intern_c_string ("mouse-1"), |
| 3770 | pure_cons (intern_c_string ("mouse-3"), | 3769 | intern_c_string ("mouse-2"), |
| 3771 | pure_cons (intern_c_string ("mouse-4"), | 3770 | intern_c_string ("mouse-3"), |
| 3772 | pure_cons (intern_c_string ("mouse-5"), | 3771 | intern_c_string ("mouse-4"), |
| 3773 | Qnil))))))))); | 3772 | intern_c_string ("mouse-5")); |
| 3774 | 3773 | ||
| 3775 | DEFSYM (Qsingle_key_description, "single-key-description"); | 3774 | DEFSYM (Qsingle_key_description, "single-key-description"); |
| 3776 | DEFSYM (Qkey_description, "key-description"); | 3775 | DEFSYM (Qkey_description, "key-description"); |