From: Eli Zaretskii Date: Thu, 17 Feb 2000 15:32:52 +0000 (+0000) Subject: (tty_defined_color): Don't return faulire indication X-Git-Tag: emacs-pretest-21.0.90~4985 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3b451f74120ac47b29c4966e7c30be51b71e57f3;p=emacs.git (tty_defined_color): Don't return faulire indication for unspecified-fg and unspecified-bg pseudo-colors. --- diff --git a/src/ChangeLog b/src/ChangeLog index a383d08cc1f..26f5f8869a7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-02-17 Eli Zaretskii + + * xfaces.c (tty_defined_color): Don't return faulire indication + for unspecified-fg and unspecified-bg pseudo-colors. + 2000-02-17 Gerd Moellmann * alloc.c (mark_object): Don't mark symbol names in pure space. diff --git a/src/xfaces.c b/src/xfaces.c index 30f122d8651..55799d183d1 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -1122,6 +1122,9 @@ tty_defined_color (f, color_name, color_def, alloc) color_idx = FACE_TTY_DEFAULT_BG_COLOR; } + if (color_idx != FACE_TTY_DEFAULT_COLOR) + status = 1; + color_def->pixel = color_idx; color_def->red = red; color_def->green = green;