From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#18869: 25.0.50; Font-related problems when starting with --daemon Date: Wed, 29 Oct 2014 17:46:09 +0300 Message-ID: <5450FDB1.5020205@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090500050401030701080303" X-Trace: ger.gmane.org 1414594050 19165 80.91.229.3 (29 Oct 2014 14:47:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2014 14:47:30 +0000 (UTC) Cc: 18869@debbugs.gnu.org To: "Peder O. Klingenberg" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 29 15:47:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XjUWv-0002oJ-Pe for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Oct 2014 15:47:21 +0100 Original-Received: from localhost ([::1]:46608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjUWv-00088N-Fn for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Oct 2014 10:47:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjUWk-000866-Bl for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 10:47:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjUWd-0004PY-Az for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 10:47:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjUWd-0004Og-41 for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 10:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XjUWc-00027e-EB for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 10:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Oct 2014 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18869 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18869-submit@debbugs.gnu.org id=B18869.14145939828103 (code B ref 18869); Wed, 29 Oct 2014 14:47:02 +0000 Original-Received: (at 18869) by debbugs.gnu.org; 29 Oct 2014 14:46:22 +0000 Original-Received: from localhost ([127.0.0.1]:38906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjUVy-00026c-0L for submit@debbugs.gnu.org; Wed, 29 Oct 2014 10:46:22 -0400 Original-Received: from forward7l.mail.yandex.net ([84.201.143.140]:44079) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjUVu-00026K-5p for 18869@debbugs.gnu.org; Wed, 29 Oct 2014 10:46:19 -0400 Original-Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward7l.mail.yandex.net (Yandex) with ESMTP id CBF9DBC12AA; Wed, 29 Oct 2014 17:46:10 +0300 (MSK) Original-Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id 628941B6062F; Wed, 29 Oct 2014 17:46:10 +0300 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VCXazd1qZU-k96mouEE; Wed, 29 Oct 2014 17:46:09 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: b272f1f3-4188-4047-8ea3-56888ffc6af5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1414593969; bh=Uoq9tgE+GFoe1WnSnjbtFOOOXItJLq8tnJzuO4Mktj4=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=lBTgYxYOHScWBGQcRce5TeB+q3/Tw3+PkLEhLSLmobZTHAKeN/0h7h6DbCeXISpd3 aTDT1Om08AGWIQAl+H4HXKJk+xhBPfV/dbx8n0E+8DF17Dr4VgzzCPVtg8fzcbiGLw sKunPDIfpyL+yiprGOkgQmB+p2UP2ilYICsWR/dE= Authentication-Results: smtp14.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95247 This is a multi-part message in MIME format. --------------090500050401030701080303 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 10/28/2014 01:34 PM, Peder O. Klingenberg wrote: > I have recently switched my default font, and through experimentation, > found that I liked what I saw when I eval'ed (set-face-attribute > 'default nil :font "Monospace-11") in a running emacs. So I added that > to my init file. Starting emacs normally works fine. > > However, emacs --daemon now fails to start up. Please try this. Dmitry --------------090500050401030701080303 Content-Type: text/x-diff; name="bug18869.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug18869.patch" === modified file 'src/xfaces.c' --- src/xfaces.c 2014-10-12 22:56:45 +0000 +++ src/xfaces.c 2014-10-29 14:42:46 +0000 @@ -3116,9 +3116,10 @@ /* 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 (f->terminal->type != output_termcap + && f->terminal->type != output_initial) { if (! FONT_OBJECT_P (value)) { --------------090500050401030701080303--