]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a thinko in frame-parameter (Bug#19802)
authorEli Zaretskii <eliz@gnu.org>
Sun, 8 Feb 2015 17:54:59 +0000 (19:54 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 8 Feb 2015 17:54:59 +0000 (19:54 +0200)
 src/frame.c (Fframe_parameter): Don't replace a non-nil value of
 foreground-color or background-color parameters with a nil value.

src/ChangeLog
src/frame.c

index f544f197a9b002c0a033a74b8ddfccbb0bd3bf8b..66e7bfb9d0face4b04569e0b42a19c74d194691d 100644 (file)
@@ -1,3 +1,9 @@
+2015-02-08  Eli Zaretskii  <eliz@gnu.org>
+
+       * 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  <monnier@iro.umontreal.ca>
 
        * data.c (Findirect_function): Like `symbol-function', don't signal an
index 96fe3778dbce0149d56461ec7dd86ceafa564849..9060f569154b4df77884a723f4fa561cd38f37bb 100644 (file)
@@ -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)));