From ca6888b6e5f027a87f9d1f3393552c9187cb9b16 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 16 Oct 2008 16:32:58 +0000 Subject: [PATCH] (Finternal_set_lisp_face_attribute): Make null values of :foreground and :background equivalent to unspecified (20.x compatibility). --- src/xfaces.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5