diff options
| author | Chong Yidong | 2008-10-16 16:32:58 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-16 16:32:58 +0000 |
| commit | ca6888b6e5f027a87f9d1f3393552c9187cb9b16 (patch) | |
| tree | 1b69f2ac28970e42ab877b3eeab24d55f10ca642 /src | |
| parent | 8ca67af959b7286f7619ca5b68762dce7705c27c (diff) | |
| download | emacs-ca6888b6e5f027a87f9d1f3393552c9187cb9b16.tar.gz emacs-ca6888b6e5f027a87f9d1f3393552c9187cb9b16.zip | |
(Finternal_set_lisp_face_attribute): Make null values of :foreground
and :background equivalent to unspecified (20.x compatibility).
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 6 |
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 |