From: Chong Yidong <cyd@stupidchicken.com>
Date: Thu, 16 Oct 2008 16:32:58 +0000 (+0000)
Subject: (Finternal_set_lisp_face_attribute): Make null values of :foreground
X-Git-Tag: emacs-pretest-23.0.90~2439
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ca6888b6e5f027a87f9d1f3393552c9187cb9b16;p=emacs.git

(Finternal_set_lisp_face_attribute): Make null values of :foreground
and :background equivalent to unspecified (20.x compatibility).
---

diff --git a/src/xfaces.c b/src/xfaces.c
index 11e2c3c10b7..68d63d690d9 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -3217,6 +3217,9 @@ FRAME 0 means change the face on all frames, and change the default
     }
   else if (EQ (attr, QCforeground))
     {
+      /* Compatibility with 20.x.  */
+      if (NILP (value))
+	value = Qunspecified;
       if (!UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value))
 	{
 	  /* Don't check for valid color names here because it depends
@@ -3231,6 +3234,9 @@ FRAME 0 means change the face on all frames, and change the default
     }
   else if (EQ (attr, QCbackground))
     {
+      /* Compatibility with 20.x.  */
+      if (NILP (value))
+	value = Qunspecified;
       if (!UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value))
 	{
 	  /* Don't check for valid color names here because it depends