]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix mode-line-inactive face
authorEli Zaretskii <eliz@gnu.org>
Fri, 1 Dec 2023 12:15:30 +0000 (14:15 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 1 Dec 2023 12:15:30 +0000 (14:15 +0200)
* src/xfaces.c (Finternal_set_lisp_face_attribute): Fix validation
of the :style attribute of :box.  Previously, nil for :style was not
accepted, which causes 'mode-line-inactive' face to be rejected.
(Bug#67567)

src/xfaces.c

index a23f4c302eda3e4bc1a58e7fbfddd5817a8320b3..7385c4c7dd22e3e4cb0242550c6c0ac4f663511e 100644 (file)
@@ -3388,8 +3388,10 @@ FRAME 0 means change the face on all frames, and change the default
                }
              else if (EQ (k, QCstyle))
                {
-                 if (!EQ (v, Qpressed_button) && !EQ (v, Qreleased_button)
-                     && !EQ(v, Qflat_button))
+                 if (!NILP (v)
+                     && !EQ (v, Qpressed_button)
+                     && !EQ (v, Qreleased_button)
+                     && !EQ (v, Qflat_button))
                    break;
                }
              else