entity even if the cache hits.
+2009-04-17 Kenichi Handa <handa@m17n.org>
+
+ * ftfont.c (ftfont_pattern_entity): Return a newly allocated
+ entity even if the cache hits.
+
2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
* search.c (boyer_moore): Use zero as marker value for a possible
cache = ftfont_lookup_cache (key, FTFONT_CACHE_FOR_ENTITY);
entity = XCAR (cache);
if (! NILP (entity))
- return entity;
+ {
+ Lisp_Object val = font_make_entity ();
+ int i;
+
+ for (i = 0; i < FONT_OBJLIST_INDEX; i++)
+ ASET (val, i, AREF (entity, i));
+ return val;
+ }
entity = font_make_entity ();
XSETCAR (cache, entity);