]> git.eshelyaron.com Git - emacs.git/commitdiff
* xfaces.c (Finternal_set_lisp_face_attribute): Don't try to realize
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 30 Oct 2014 09:37:08 +0000 (12:37 +0300)
committerDmitry Antipov <dmantipov@yandex.ru>
Thu, 30 Oct 2014 09:37:08 +0000 (12:37 +0300)
font on an initial frame when running as a daemon (Bug#18869).

src/ChangeLog
src/xfaces.c

index 89c0bb8fd8ec9ac040d387705c1f7c82418a39ed..cb13ffa8dd8f02051884c6e0f5e88b473dbf2ed3 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-30  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * xfaces.c (Finternal_set_lisp_face_attribute): Don't try to realize
+       font on an initial frame when running as a daemon (Bug#18869).
+
 2014-10-30  Eli Zaretskii  <eliz@gnu.org>
 
        * fileio.c (Fexpand_file_name): Use make_unibyte_string, not
index 6afa0a2953d9bc39790c922965b700fe2f71c59b..446107ef3b7b64ead6c603bf774cc9467f221450 100644 (file)
@@ -3116,9 +3116,9 @@ FRAME 0 means change the face on all frames, and change the default
               /* FIXME:
                  If frame is t, and selected frame is a tty frame, the font
                  can't be realized.  An improvement would be to loop over frames
-                 for a non-tty frame and use that.  See discussion in
-                 bug#18573.  */
-              if (f->terminal->type != output_termcap)
+                 for a non-tty frame and use that.  See discussion in Bug#18573.
+                 For a daemon, frame may be an initial frame (Bug#18869).  */
+              if (FRAME_WINDOW_P (f))
                 {
                   if (! FONT_OBJECT_P (value))
                     {