(Fset_overriding_fontspec_internal): Check if we need
authorKenichi Handa <handa@m17n.org>
Tue, 4 Jul 2006 03:22:09 +0000 (03:22 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 4 Jul 2006 03:22:09 +0000 (03:22 +0000)
to update Voverriding_fontspec_alist.

src/fontset.c

index 62ff354..c8679a7 100644 (file)
@@ -1621,6 +1621,8 @@ It is intended that this function is called only from
       elt = Fcons (target, Fcons (Qnil, Fcons (Qnil, elt)));
       XSETCAR (tail, elt);
     }
+  if (! NILP (Fequal (fontlist, Voverriding_fontspec_alist)))
+    return Qnil;
   Voverriding_fontspec_alist = fontlist;
   clear_face_cache (0);
   ++windows_or_buffers_changed;