]> git.eshelyaron.com Git - emacs.git/commitdiff
(Finternal_set_lisp_face_attribute)
authorEli Zaretskii <eliz@gnu.org>
Fri, 2 Mar 2001 13:30:40 +0000 (13:30 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 2 Mar 2001 13:30:40 +0000 (13:30 +0000)
[!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
parameters alist.

src/xfaces.c

index 946d9024c9e3913ca0a968d9a0b9d0d7a6ecea59..b11a7d467ded86a34a9248910bbcbb25151aea27 100644 (file)
@@ -4064,8 +4064,6 @@ FRAME 0 means change the face on all frames, and change the default\n\
       ++windows_or_buffers_changed;
     }
 
-#ifdef HAVE_WINDOW_SYSTEM
-
   if (!UNSPECIFIEDP (value)
       && NILP (Fequal (old_value, value)))
     {
@@ -4075,16 +4073,21 @@ FRAME 0 means change the face on all frames, and change the default\n\
 
       if (EQ (face, Qdefault))
        {
+#ifdef HAVE_WINDOW_SYSTEM
          /* Changed font-related attributes of the `default' face are
             reflected in changed `font' frame parameters. */
          if ((font_related_attr_p || font_attr_p)
              && lface_fully_specified_p (XVECTOR (lface)->contents))
            set_font_frame_param (frame, lface);
-         else if (EQ (attr, QCforeground))
+         else
+#endif /* HAVE_WINDOW_SYSTEM */
+
+         if (EQ (attr, QCforeground))
            param = Qforeground_color;
          else if (EQ (attr, QCbackground))
            param = Qbackground_color;
        }
+#ifdef HAVE_WINDOW_SYSTEM
 #ifndef WINDOWSNT
       else if (EQ (face, Qscroll_bar))
        {
@@ -4117,6 +4120,7 @@ FRAME 0 means change the face on all frames, and change the default\n\
          if (EQ (attr, QCbackground))
            param = Qmouse_color;
        }
+#endif /* HAVE_WINDOW_SYSTEM */
       else if (EQ (face, Qmenu))
        ++menu_face_change_count;
 
@@ -4137,8 +4141,6 @@ FRAME 0 means change the face on all frames, and change the default\n\
          }
     }
 
-#endif /* HAVE_WINDOW_SYSTEM */
-
   return face;
 }