From: Eli Zaretskii Date: Sun, 8 Feb 2015 17:54:59 +0000 (+0200) Subject: Fix a thinko in frame-parameter (Bug#19802) X-Git-Tag: emacs-25.0.90~2008^2~66 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dd2aa937d68390755d0b042a81560211aa138406;p=emacs.git Fix a thinko in frame-parameter (Bug#19802) src/frame.c (Fframe_parameter): Don't replace a non-nil value of foreground-color or background-color parameters with a nil value. --- diff --git a/src/ChangeLog b/src/ChangeLog index f544f197a9b..66e7bfb9d0f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2015-02-08 Eli Zaretskii + + * frame.c (Fframe_parameter): Don't replace a non-nil value of + foreground-color or background-color parameters with a nil value. + (Bug#19802) + 2015-02-08 Stefan Monnier * data.c (Findirect_function): Like `symbol-function', don't signal an diff --git a/src/frame.c b/src/frame.c index 96fe3778dbc..9060f569154 100644 --- a/src/frame.c +++ b/src/frame.c @@ -2615,7 +2615,12 @@ If FRAME is nil, describe the currently selected frame. */) important when param_alist's notion of colors is "unspecified". We need to do the same here. */ if (STRINGP (value) && !FRAME_WINDOW_P (f)) - value = frame_unspecified_color (f, value); + { + Lisp_Object tem = frame_unspecified_color (f, value); + + if (!NILP (tem)) + value = tem; + } } else value = Fcdr (Fassq (parameter, Fframe_parameters (frame)));