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/callint.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/callint.c')
| -rw-r--r-- | src/callint.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/callint.c b/src/callint.c index 58e1a5be2f4..4454b1fdb16 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -888,10 +888,11 @@ syms_of_callint (void) | |||
| 888 | callint_message = Qnil; | 888 | callint_message = Qnil; |
| 889 | staticpro (&callint_message); | 889 | staticpro (&callint_message); |
| 890 | 890 | ||
| 891 | preserved_fns = pure_cons (intern_c_string ("region-beginning"), | 891 | preserved_fns = listn (PURE, 4, |
| 892 | pure_cons (intern_c_string ("region-end"), | 892 | intern_c_string ("region-beginning"), |
| 893 | pure_cons (intern_c_string ("point"), | 893 | intern_c_string ("region-end"), |
| 894 | pure_cons (intern_c_string ("mark"), Qnil)))); | 894 | intern_c_string ("point"), |
| 895 | intern_c_string ("mark")); | ||
| 895 | 896 | ||
| 896 | DEFSYM (Qlist, "list"); | 897 | DEFSYM (Qlist, "list"); |
| 897 | DEFSYM (Qlet, "let"); | 898 | DEFSYM (Qlet, "let"); |