aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2012-07-27 10:04:35 +0400
committerDmitry Antipov2012-07-27 10:04:35 +0400
commit694b6c97ebb8310bc18dd305c2f277bcc11cebca (patch)
treee8c401a50de10b8b14397a22c7e501f0291a17f5 /src
parentca1302a40a560521627fd6a2954a51a79d105a16 (diff)
downloademacs-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')
-rw-r--r--src/ChangeLog19
-rw-r--r--src/alloc.c57
-rw-r--r--src/buffer.c2
-rw-r--r--src/callint.c9
-rw-r--r--src/charset.c33
-rw-r--r--src/coding.c2
-rw-r--r--src/keymap.c33
-rw-r--r--src/lisp.h2
-rw-r--r--src/search.c4
-rw-r--r--src/syntax.c2
-rw-r--r--src/w32.c12
-rw-r--r--src/w32fns.c23
-rw-r--r--src/xdisp.c16
-rw-r--r--src/xfns.c2
14 files changed, 131 insertions, 85 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e78a0365288..e1d0ef8e90e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,24 @@
12012-07-27 Dmitry Antipov <dmantipov@yandex.ru> 12012-07-27 Dmitry Antipov <dmantipov@yandex.ru>
2 2
3 Utility function to make a list from specified amount of objects.
4 * lisp.h (enum constype): New datatype.
5 (listn): New prototype.
6 * alloc.c (listn): New function.
7 (Fmemory_use_count, syms_of_alloc): Use it.
8 * buffer.c (syms_of_buffer): Likewise.
9 * callint.c (syms_of_callint): Likewise.
10 * charset.c (define_charset_internal): Likewise.
11 * coding.c (syms_of_coding): Likewise.
12 * keymap.c (syms_of_keymap): Likewise.
13 * search.c (syms_of_search): Likewise.
14 * syntax.c (syms_of_syntax): Likewise.
15 * w32.c (init_environment): Likewise.
16 * w32fns.c (Fw32_battery_status, syms_of_w32fns): Likewise.
17 * xdisp.c (syms_of_xdisp): Likewise.
18 * xfns.c (syms_of_xfns): Likewise.
19
202012-07-27 Dmitry Antipov <dmantipov@yandex.ru>
21
3 Fast save_excursion_save and save_excursion_restore. 22 Fast save_excursion_save and save_excursion_restore.
4 * lisp.h (struct Lisp_Excursion): New data type. 23 * lisp.h (struct Lisp_Excursion): New data type.
5 (PVEC_EXCURSION): New pseudovector type. 24 (PVEC_EXCURSION): New pseudovector type.
diff --git a/src/alloc.c b/src/alloc.c
index 5377b27e329..3d8b7a54d06 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2811,6 +2811,38 @@ list5 (Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, Lisp_Object arg4, L
2811 Fcons (arg5, Qnil))))); 2811 Fcons (arg5, Qnil)))));
2812} 2812}
2813 2813
2814/* Make a list of COUNT Lisp_Objects, where ARG is the
2815 first one. Allocate conses from pure space if TYPE
2816 is PURE, or allocate as usual if type is HEAP. */
2817
2818Lisp_Object
2819listn (enum constype type, ptrdiff_t count, Lisp_Object arg, ...)
2820{
2821 va_list ap;
2822 ptrdiff_t i;
2823 Lisp_Object val, *objp;
2824
2825 /* Change to SAFE_ALLOCA if you hit this eassert. */
2826 eassert (count <= MAX_ALLOCA / sizeof (Lisp_Object));
2827
2828 objp = alloca (count * sizeof (Lisp_Object));
2829 objp[0] = arg;
2830 va_start (ap, arg);
2831 for (i = 1; i < count; i++)
2832 objp[i] = va_arg (ap, Lisp_Object);
2833 va_end (ap);
2834
2835 for (i = 0, val = Qnil; i < count; i++)
2836 {
2837 if (type == PURE)
2838 val = pure_cons (objp[i], val);
2839 else if (type == HEAP)
2840 val = Fcons (objp[i], val);
2841 else
2842 abort ();
2843 }
2844 return val;
2845}
2814 2846
2815DEFUN ("list", Flist, Slist, 0, MANY, 0, 2847DEFUN ("list", Flist, Slist, 0, MANY, 0,
2816 doc: /* Return a newly created list with specified arguments as elements. 2848 doc: /* Return a newly created list with specified arguments as elements.
@@ -6649,18 +6681,15 @@ Frames, windows, buffers, and subprocesses count as vectors
6649 (but the contents of a buffer's text do not count here). */) 6681 (but the contents of a buffer's text do not count here). */)
6650 (void) 6682 (void)
6651{ 6683{
6652 Lisp_Object consed[8]; 6684 return listn (HEAP, 8,
6653 6685 bounded_number (cons_cells_consed),
6654 consed[0] = bounded_number (cons_cells_consed); 6686 bounded_number (floats_consed),
6655 consed[1] = bounded_number (floats_consed); 6687 bounded_number (vector_cells_consed),
6656 consed[2] = bounded_number (vector_cells_consed); 6688 bounded_number (symbols_consed),
6657 consed[3] = bounded_number (symbols_consed); 6689 bounded_number (string_chars_consed),
6658 consed[4] = bounded_number (string_chars_consed); 6690 bounded_number (misc_objects_consed),
6659 consed[5] = bounded_number (misc_objects_consed); 6691 bounded_number (intervals_consed),
6660 consed[6] = bounded_number (intervals_consed); 6692 bounded_number (strings_consed));
6661 consed[7] = bounded_number (strings_consed);
6662
6663 return Flist (8, consed);
6664} 6693}
6665 6694
6666/* Find at most FIND_MAX symbols which have OBJ as their value or 6695/* Find at most FIND_MAX symbols which have OBJ as their value or
@@ -6841,8 +6870,8 @@ do hash-consing of the objects allocated to pure space. */);
6841 /* We build this in advance because if we wait until we need it, we might 6870 /* We build this in advance because if we wait until we need it, we might
6842 not be able to allocate the memory to hold it. */ 6871 not be able to allocate the memory to hold it. */
6843 Vmemory_signal_data 6872 Vmemory_signal_data
6844 = pure_cons (Qerror, 6873 = listn (PURE, 2, Qerror,
6845 pure_cons (build_pure_c_string ("Memory exhausted--use M-x save-some-buffers then exit and restart Emacs"), Qnil)); 6874 build_pure_c_string ("Memory exhausted--use M-x save-some-buffers then exit and restart Emacs"));
6846 6875
6847 DEFVAR_LISP ("memory-full", Vmemory_full, 6876 DEFVAR_LISP ("memory-full", Vmemory_full,
6848 doc: /* Non-nil means Emacs cannot get much more Lisp memory. */); 6877 doc: /* Non-nil means Emacs cannot get much more Lisp memory. */);
diff --git a/src/buffer.c b/src/buffer.c
index 06d385110c6..c2afd7f4a5e 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5212,7 +5212,7 @@ syms_of_buffer (void)
5212 DEFSYM (Qkill_buffer_query_functions, "kill-buffer-query-functions"); 5212 DEFSYM (Qkill_buffer_query_functions, "kill-buffer-query-functions");
5213 5213
5214 Fput (Qprotected_field, Qerror_conditions, 5214 Fput (Qprotected_field, Qerror_conditions,
5215 pure_cons (Qprotected_field, pure_cons (Qerror, Qnil))); 5215 listn (PURE, 2, Qprotected_field, Qerror));
5216 Fput (Qprotected_field, Qerror_message, 5216 Fput (Qprotected_field, Qerror_message,
5217 build_pure_c_string ("Attempt to modify a protected field")); 5217 build_pure_c_string ("Attempt to modify a protected field"));
5218 5218
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");
diff --git a/src/charset.c b/src/charset.c
index 4c47ba45fb6..ae822544006 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1257,7 +1257,6 @@ define_charset_internal (Lisp_Object name,
1257{ 1257{
1258 const unsigned char *code_space = (const unsigned char *) code_space_chars; 1258 const unsigned char *code_space = (const unsigned char *) code_space_chars;
1259 Lisp_Object args[charset_arg_max]; 1259 Lisp_Object args[charset_arg_max];
1260 Lisp_Object plist[14];
1261 Lisp_Object val; 1260 Lisp_Object val;
1262 int i; 1261 int i;
1263 1262
@@ -1283,22 +1282,22 @@ define_charset_internal (Lisp_Object name,
1283 args[charset_arg_superset] = Qnil; 1282 args[charset_arg_superset] = Qnil;
1284 args[charset_arg_unify_map] = Qnil; 1283 args[charset_arg_unify_map] = Qnil;
1285 1284
1286 plist[0] = intern_c_string (":name"); 1285 args[charset_arg_plist] =
1287 plist[1] = args[charset_arg_name]; 1286 listn (HEAP, 14,
1288 plist[2] = intern_c_string (":dimension"); 1287 intern_c_string (":name"),
1289 plist[3] = args[charset_arg_dimension]; 1288 args[charset_arg_name],
1290 plist[4] = intern_c_string (":code-space"); 1289 intern_c_string (":dimension"),
1291 plist[5] = args[charset_arg_code_space]; 1290 args[charset_arg_dimension],
1292 plist[6] = intern_c_string (":iso-final-char"); 1291 intern_c_string (":code-space"),
1293 plist[7] = args[charset_arg_iso_final]; 1292 args[charset_arg_code_space],
1294 plist[8] = intern_c_string (":emacs-mule-id"); 1293 intern_c_string (":iso-final-char"),
1295 plist[9] = args[charset_arg_emacs_mule_id]; 1294 args[charset_arg_iso_final],
1296 plist[10] = intern_c_string (":ascii-compatible-p"); 1295 intern_c_string (":emacs-mule-id"),
1297 plist[11] = args[charset_arg_ascii_compatible_p]; 1296 args[charset_arg_emacs_mule_id],
1298 plist[12] = intern_c_string (":code-offset"); 1297 intern_c_string (":ascii-compatible-p"),
1299 plist[13] = args[charset_arg_code_offset]; 1298 args[charset_arg_ascii_compatible_p],
1300 1299 intern_c_string (":code-offset"),
1301 args[charset_arg_plist] = Flist (14, plist); 1300 args[charset_arg_code_offset]);
1302 Fdefine_charset_internal (charset_arg_max, args); 1301 Fdefine_charset_internal (charset_arg_max, args);
1303 1302
1304 return XINT (CHARSET_SYMBOL_ID (name)); 1303 return XINT (CHARSET_SYMBOL_ID (name));
diff --git a/src/coding.c b/src/coding.c
index 212eb8275fe..8b858aa218e 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -10411,7 +10411,7 @@ syms_of_coding (void)
10411 10411
10412 DEFSYM (Qcoding_system_error, "coding-system-error"); 10412 DEFSYM (Qcoding_system_error, "coding-system-error");
10413 Fput (Qcoding_system_error, Qerror_conditions, 10413 Fput (Qcoding_system_error, Qerror_conditions,
10414 pure_cons (Qcoding_system_error, pure_cons (Qerror, Qnil))); 10414 listn (PURE, 2, Qcoding_system_error, Qerror));
10415 Fput (Qcoding_system_error, Qerror_message, 10415 Fput (Qcoding_system_error, Qerror_message,
10416 build_pure_c_string ("Invalid coding system")); 10416 build_pure_c_string ("Invalid coding system"));
10417 10417
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");
diff --git a/src/lisp.h b/src/lisp.h
index 55a4a297a39..c217b946e81 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2685,6 +2685,8 @@ extern Lisp_Object list3 (Lisp_Object, Lisp_Object, Lisp_Object);
2685extern Lisp_Object list4 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object); 2685extern Lisp_Object list4 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object);
2686extern Lisp_Object list5 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, 2686extern Lisp_Object list5 (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object,
2687 Lisp_Object); 2687 Lisp_Object);
2688enum constype {HEAP, PURE};
2689extern Lisp_Object listn (enum constype, ptrdiff_t, Lisp_Object, ...);
2688extern _Noreturn void string_overflow (void); 2690extern _Noreturn void string_overflow (void);
2689extern Lisp_Object make_string (const char *, ptrdiff_t); 2691extern Lisp_Object make_string (const char *, ptrdiff_t);
2690extern Lisp_Object make_formatted_string (char *, const char *, ...) 2692extern Lisp_Object make_formatted_string (char *, const char *, ...)
diff --git a/src/search.c b/src/search.c
index 118cec4af48..c4329dcdf3e 100644
--- a/src/search.c
+++ b/src/search.c
@@ -3054,12 +3054,12 @@ syms_of_search (void)
3054 DEFSYM (Qinvalid_regexp, "invalid-regexp"); 3054 DEFSYM (Qinvalid_regexp, "invalid-regexp");
3055 3055
3056 Fput (Qsearch_failed, Qerror_conditions, 3056 Fput (Qsearch_failed, Qerror_conditions,
3057 pure_cons (Qsearch_failed, pure_cons (Qerror, Qnil))); 3057 listn (PURE, 2, Qsearch_failed, Qerror));
3058 Fput (Qsearch_failed, Qerror_message, 3058 Fput (Qsearch_failed, Qerror_message,
3059 build_pure_c_string ("Search failed")); 3059 build_pure_c_string ("Search failed"));
3060 3060
3061 Fput (Qinvalid_regexp, Qerror_conditions, 3061 Fput (Qinvalid_regexp, Qerror_conditions,
3062 pure_cons (Qinvalid_regexp, pure_cons (Qerror, Qnil))); 3062 listn (PURE, 2, Qinvalid_regexp, Qerror));
3063 Fput (Qinvalid_regexp, Qerror_message, 3063 Fput (Qinvalid_regexp, Qerror_message,
3064 build_pure_c_string ("Invalid regexp")); 3064 build_pure_c_string ("Invalid regexp"));
3065 3065
diff --git a/src/syntax.c b/src/syntax.c
index 69c2789ed39..1e57c00e512 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -3473,7 +3473,7 @@ syms_of_syntax (void)
3473 3473
3474 DEFSYM (Qscan_error, "scan-error"); 3474 DEFSYM (Qscan_error, "scan-error");
3475 Fput (Qscan_error, Qerror_conditions, 3475 Fput (Qscan_error, Qerror_conditions,
3476 pure_cons (Qscan_error, pure_cons (Qerror, Qnil))); 3476 listn (PURE, 2, Qscan_error, Qerror));
3477 Fput (Qscan_error, Qerror_message, 3477 Fput (Qscan_error, Qerror_message,
3478 build_pure_c_string ("Scan error")); 3478 build_pure_c_string ("Scan error"));
3479 3479
diff --git a/src/w32.c b/src/w32.c
index e8c48a50a97..6f7cc9506ec 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -1722,13 +1722,11 @@ init_environment (char ** argv)
1722 dwType = REG_EXPAND_SZ; 1722 dwType = REG_EXPAND_SZ;
1723 dont_free = 1; 1723 dont_free = 1;
1724 if (!strcmp (env_vars[i].name, "HOME") && !appdata) 1724 if (!strcmp (env_vars[i].name, "HOME") && !appdata)
1725 { 1725 Vdelayed_warnings_list
1726 Lisp_Object warning[2]; 1726 = Fcons (listn (HEAP, 2,
1727 warning[0] = intern ("initialization"); 1727 intern ("initialization");
1728 warning[1] = build_string ("Setting HOME to C:\\ by default is deprecated"); 1728 build_string ("Setting HOME to C:\\ by default is deprecated")),
1729 Vdelayed_warnings_list = Fcons (Flist (2, warning), 1729 Vdelayed_warnings_list);
1730 Vdelayed_warnings_list);
1731 }
1732 } 1730 }
1733 1731
1734 if (lpval) 1732 if (lpval)
diff --git a/src/w32fns.c b/src/w32fns.c
index 06938e3124b..0dd5379cf01 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -6470,7 +6470,6 @@ The following %-sequences are provided:
6470 { 6470 {
6471 Lisp_Object line_status, battery_status, battery_status_symbol; 6471 Lisp_Object line_status, battery_status, battery_status_symbol;
6472 Lisp_Object load_percentage, seconds, minutes, hours, remain; 6472 Lisp_Object load_percentage, seconds, minutes, hours, remain;
6473 Lisp_Object sequences[8];
6474 6473
6475 long seconds_left = (long) system_status.BatteryLifeTime; 6474 long seconds_left = (long) system_status.BatteryLifeTime;
6476 6475
@@ -6544,16 +6543,16 @@ The following %-sequences are provided:
6544 _snprintf (buffer, 16, "%ld:%02ld", m / 60, m % 60); 6543 _snprintf (buffer, 16, "%ld:%02ld", m / 60, m % 60);
6545 remain = build_string (buffer); 6544 remain = build_string (buffer);
6546 } 6545 }
6547 sequences[0] = Fcons (make_number ('L'), line_status); 6546
6548 sequences[1] = Fcons (make_number ('B'), battery_status); 6547 status = listn (HEAP, 8,
6549 sequences[2] = Fcons (make_number ('b'), battery_status_symbol); 6548 Fcons (make_number ('L'), line_status),
6550 sequences[3] = Fcons (make_number ('p'), load_percentage); 6549 Fcons (make_number ('B'), battery_status),
6551 sequences[4] = Fcons (make_number ('s'), seconds); 6550 Fcons (make_number ('b'), battery_status_symbol),
6552 sequences[5] = Fcons (make_number ('m'), minutes); 6551 Fcons (make_number ('p'), load_percentage),
6553 sequences[6] = Fcons (make_number ('h'), hours); 6552 Fcons (make_number ('s'), seconds),
6554 sequences[7] = Fcons (make_number ('t'), remain); 6553 Fcons (make_number ('m'), minutes),
6555 6554 Fcons (make_number ('h'), hours),
6556 status = Flist (8, sequences); 6555 Fcons (make_number ('t'), remain));
6557 } 6556 }
6558 return status; 6557 return status;
6559} 6558}
@@ -6795,7 +6794,7 @@ syms_of_w32fns (void)
6795 6794
6796 6795
6797 Fput (Qundefined_color, Qerror_conditions, 6796 Fput (Qundefined_color, Qerror_conditions,
6798 pure_cons (Qundefined_color, pure_cons (Qerror, Qnil))); 6797 listn (PURE, 2, Qundefined_color, Qerror);
6799 Fput (Qundefined_color, Qerror_message, 6798 Fput (Qundefined_color, Qerror_message,
6800 build_pure_c_string ("Undefined color")); 6799 build_pure_c_string ("Undefined color"));
6801 6800
diff --git a/src/xdisp.c b/src/xdisp.c
index 1d3de61c5a3..aac34d35ef4 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -28932,14 +28932,14 @@ and is used only on frames for which no explicit name has been set
28932\(see `modify-frame-parameters'). */); 28932\(see `modify-frame-parameters'). */);
28933 Vicon_title_format 28933 Vicon_title_format
28934 = Vframe_title_format 28934 = Vframe_title_format
28935 = pure_cons (intern_c_string ("multiple-frames"), 28935 = listn (PURE, 3,
28936 pure_cons (build_pure_c_string ("%b"), 28936 intern_c_string ("multiple-frames"),
28937 pure_cons (pure_cons (empty_unibyte_string, 28937 build_pure_c_string ("%b"),
28938 pure_cons (intern_c_string ("invocation-name"), 28938 listn (PURE, 4,
28939 pure_cons (build_pure_c_string ("@"), 28939 empty_unibyte_string,
28940 pure_cons (intern_c_string ("system-name"), 28940 intern_c_string ("invocation-name"),
28941 Qnil)))), 28941 build_pure_c_string ("@"),
28942 Qnil))); 28942 intern_c_string ("system-name")));
28943 28943
28944 DEFVAR_LISP ("message-log-max", Vmessage_log_max, 28944 DEFVAR_LISP ("message-log-max", Vmessage_log_max,
28945 doc: /* Maximum number of lines to keep in the message log buffer. 28945 doc: /* Maximum number of lines to keep in the message log buffer.
diff --git a/src/xfns.c b/src/xfns.c
index e431651d93a..cd29dabc71a 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5822,7 +5822,7 @@ syms_of_xfns (void)
5822 /* This is the end of symbol initialization. */ 5822 /* This is the end of symbol initialization. */
5823 5823
5824 Fput (Qundefined_color, Qerror_conditions, 5824 Fput (Qundefined_color, Qerror_conditions,
5825 pure_cons (Qundefined_color, pure_cons (Qerror, Qnil))); 5825 listn (PURE, 2, Qundefined_color, Qerror));
5826 Fput (Qundefined_color, Qerror_message, 5826 Fput (Qundefined_color, Qerror_message,
5827 build_pure_c_string ("Undefined color")); 5827 build_pure_c_string ("Undefined color"));
5828 5828