(struct face) <colors_copied_bitwise_p>: New
authorGerd Moellmann <gerd@gnu.org>
Wed, 31 Oct 2001 11:12:09 +0000 (11:12 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 31 Oct 2001 11:12:09 +0000 (11:12 +0000)
member.

src/ChangeLog
src/dispextern.h

index 689de4c..ba97028 100644 (file)
@@ -1,3 +1,14 @@
+2001-10-31  Gerd Moellmann  <gerd@gnu.org>
+
+       * xfaces.c (realize_x_face): If C is not a single-byte character,
+       set the face's colors_copied_bitwise_p instead of the defaulted_p
+       members which have a different meaning.
+       (free_face_colors): Do nothing for a face whose colors have been
+       copied bitwise.
+
+       * dispextern.h (struct face) <colors_copied_bitwise_p>: New
+       member.
+
 2001-10-31  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
        * marker.c: Change doc-string comments to `new style' [w/`doc:'
index 820f986..892025e 100644 (file)
@@ -1313,6 +1313,11 @@ struct face
   unsigned tty_reverse_p : 1;
   unsigned tty_blinking_p : 1;
 
+  /* 1 means that colors of this face may not be freed because they
+     have been copied bitwise from a base face (see
+     realize_x_face).  */
+  unsigned colors_copied_bitwise_p : 1;
+
   /* Next and previous face in hash collision list of face cache.  */
   struct face *next, *prev;