aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c6
1 files changed, 6 insertions, 0 deletions
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
3217 } 3217 }
3218 else if (EQ (attr, QCforeground)) 3218 else if (EQ (attr, QCforeground))
3219 { 3219 {
3220 /* Compatibility with 20.x. */
3221 if (NILP (value))
3222 value = Qunspecified;
3220 if (!UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value)) 3223 if (!UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value))
3221 { 3224 {
3222 /* Don't check for valid color names here because it depends 3225 /* 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
3231 } 3234 }
3232 else if (EQ (attr, QCbackground)) 3235 else if (EQ (attr, QCbackground))
3233 { 3236 {
3237 /* Compatibility with 20.x. */
3238 if (NILP (value))
3239 value = Qunspecified;
3234 if (!UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value)) 3240 if (!UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value))
3235 { 3241 {
3236 /* Don't check for valid color names here because it depends 3242 /* Don't check for valid color names here because it depends