emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3cbe263b081: Fix mode-line-inactive face


From: Eli Zaretskii
Subject: master 3cbe263b081: Fix mode-line-inactive face
Date: Fri, 1 Dec 2023 07:16:49 -0500 (EST)

branch: master
commit 3cbe263b081eaa40753e122e5b98d74d9d9d0c9f
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix mode-line-inactive face
    
    * 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 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/xfaces.c b/src/xfaces.c
index a23f4c302ed..7385c4c7dd2 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]