changeset 98780:96300bdd6164

(Finternal_set_lisp_face_attribute): Make null values of :foreground and :background equivalent to unspecified (20.x compatibility).
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 16 Oct 2008 16:32:58 +0000
parents fab6a6dd78f1
children 33743665b315
files src/xfaces.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Thu Oct 16 16:32:51 2008 +0000
+++ b/src/xfaces.c	Thu Oct 16 16:32:58 2008 +0000
@@ -3217,6 +3217,9 @@
     }
   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 @@
     }
   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