2008-06-20 Kenichi Handa <handa@m17n.org>
+ * fontset.c (fontset_from_font): Copy font_spec before changing
+ the elements.
+
* xfns.c (x_default_font_parameter): Try "monospace-12" too.
2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
Vfontset_alias_alist = Fcons (Fcons (name, alias), Vfontset_alias_alist);
auto_fontset_alist = Fcons (Fcons (font_spec, fontset), auto_fontset_alist);
FONTSET_ASCII (fontset) = font_name;
+ font_spec = Fcopy_font_spec (font_spec);
ASET (font_spec, FONT_FOUNDRY_INDEX, Qnil);
ASET (font_spec, FONT_ADSTYLE_INDEX, Qnil);
for (i = FONT_WEIGHT_INDEX; i < FONT_EXTRA_INDEX; i++)