]> git.eshelyaron.com Git - emacs.git/commitdiff
* xfaces.c (check_lface_attrs, realize_default_face): Add
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 2 Nov 2013 07:58:54 +0000 (08:58 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 2 Nov 2013 07:58:54 +0000 (08:58 +0100)
LFACE_DISTANT_FOREGROUND_INDEX.

Fixes: debbugs:15788
src/ChangeLog
src/xfaces.c

index 2191cb5064e71e7ecdc1292b27532d9cc5396064..8209f47f6f84aac4d6ec1b9c940abaa02075dc1b 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-02  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfaces.c (check_lface_attrs, realize_default_face): Add
+       LFACE_DISTANT_FOREGROUND_INDEX (Bug#15788).
+
 2013-11-02  Paul Eggert  <eggert@cs.ucla.edu>
 
        * emacs.c (original_pwd): Remove global var by making it local.
index 72b62216abdcfd7073bb25ffd12e756ce987a1e3..717690a42e5433ae6eeb26be09423ec4a7fc1490 100644 (file)
@@ -1805,6 +1805,9 @@ check_lface_attrs (Lisp_Object attrs[LFACE_VECTOR_SIZE])
   eassert (UNSPECIFIEDP (attrs[LFACE_FOREGROUND_INDEX])
           || IGNORE_DEFFACE_P (attrs[LFACE_FOREGROUND_INDEX])
           || STRINGP (attrs[LFACE_FOREGROUND_INDEX]));
+  eassert (UNSPECIFIEDP (attrs[LFACE_DISTANT_FOREGROUND_INDEX])
+          || IGNORE_DEFFACE_P (attrs[LFACE_DISTANT_FOREGROUND_INDEX])
+          || STRINGP (attrs[LFACE_DISTANT_FOREGROUND_INDEX]));
   eassert (UNSPECIFIEDP (attrs[LFACE_BACKGROUND_INDEX])
           || IGNORE_DEFFACE_P (attrs[LFACE_BACKGROUND_INDEX])
           || STRINGP (attrs[LFACE_BACKGROUND_INDEX]));
@@ -5352,6 +5355,9 @@ realize_default_face (struct frame *f)
        emacs_abort ();
     }
 
+  if (UNSPECIFIEDP (LFACE_DISTANT_FOREGROUND (lface)))
+    ASET (lface, LFACE_DISTANT_FOREGROUND_INDEX, Qnil);
+
   if (UNSPECIFIEDP (LFACE_BACKGROUND (lface)))
     {
       /* This function is called so early that colors are not yet