]> git.eshelyaron.com Git - emacs.git/commitdiff
(free_realized_fontsets): Call Fclear_face_cache instead
authorKenichi Handa <handa@m17n.org>
Mon, 13 May 2002 12:09:57 +0000 (12:09 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 13 May 2002 12:09:57 +0000 (12:09 +0000)
of calling free_reazlied_face.

src/fontset.c

index 842aad5d6cfe8381757ae92ef6da4480b2b55f75..2caa087c33b69a51d01c6c25f681bf1de05791c2 100644 (file)
@@ -756,6 +756,11 @@ free_realized_fontsets (base)
 {
   int id;
 
+#if 0
+  /* For the moment, this doesn't work because free_realized_face
+     doesn't remove FACE from a cache.  Until we find a solution, we
+     suppress this code, and simply use Fclear_face_cache even though
+     that is not efficient.  */
   BLOCK_INPUT;
   for (id = 0; id < ASIZE (Vfontset_table); id++)
     {
@@ -778,6 +783,9 @@ free_realized_fontsets (base)
        }
     }
   UNBLOCK_INPUT;
+#else  /* not 0 */
+  Fclear_face_cache (Qt);
+#endif /* not 0 */
 }