From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23689: Daemon-mode on Windows - "w32-initialized" is set too early Date: Wed, 15 Jun 2016 17:55:52 +0300 Message-ID: <8360taec1z.fsf@gnu.org> References: <8337otw9m0.fsf@gnu.org> <83shwtusoj.fsf@gnu.org> <83porxuhfo.fsf@gnu.org> <83k2hrelwy.fsf@gnu.org> <83inxbeh1o.fsf@gnu.org> <83fusfdvuh.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1466002594 2753 80.91.229.3 (15 Jun 2016 14:56:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2016 14:56:34 +0000 (UTC) Cc: 23689@debbugs.gnu.org To: Paul Moore Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 15 16:56:21 2016 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 1bDCEo-0006KY-EO for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2016 16:56:14 +0200 Original-Received: from localhost ([::1]:42699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDCEn-0006aX-N4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2016 10:56:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDCEi-0006aG-6W for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 10:56:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDCEc-0005fB-9p for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 10:56:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDCEc-0005f7-6C for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 10:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bDCEc-00063i-1V for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 10:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jun 2016 14:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23689 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23689-submit@debbugs.gnu.org id=B23689.146600251223234 (code B ref 23689); Wed, 15 Jun 2016 14:56:01 +0000 Original-Received: (at 23689) by debbugs.gnu.org; 15 Jun 2016 14:55:12 +0000 Original-Received: from localhost ([127.0.0.1]:42402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDCDo-00062f-Ft for submit@debbugs.gnu.org; Wed, 15 Jun 2016 10:55:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDCDj-00062F-0X for 23689@debbugs.gnu.org; Wed, 15 Jun 2016 10:55:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDCDY-00051V-QX for 23689@debbugs.gnu.org; Wed, 15 Jun 2016 10:55:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDCDY-00051P-NJ; Wed, 15 Jun 2016 10:54:56 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1613 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bDCDX-0002sU-Q1; Wed, 15 Jun 2016 10:54:56 -0400 In-reply-to: (message from Paul Moore on Wed, 15 Jun 2016 12:11:45 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:119581 Archived-At: > From: Paul Moore > Date: Wed, 15 Jun 2016 12:11:45 +0100 > Cc: 23689@debbugs.gnu.org > > (create-fontset-from-fontset-spec > "-*-fixed-medium-r-normal-*-24-*-*-*-*-*-fontset-xxx") > (set-fontset-font "fontset-xxx" nil "Source Code Pro-14") > (set-fontset-font "fontset-xxx" nil "DejaVu Sans Mono-14" nil 'append) > (set-fontset-font "fontset-xxx" nil "Consolas-14" nil 'append) > (set-fontset-font "fontset-xxx" nil "Courier New-14" nil 'append) > (setq default-frame-alist '((font . "fontset-xxx") (vertical-scroll-bars))) > > If I then create a new frame, I get the error "Font 'fontset-xxx' is > not defined". You cannot define a fontset using the name of a font that doesn't exist on the system. The doc string of create-fontset-from-fontset-spec hints on this: When a frame uses the fontset as the ‘font’ parameter, the frame’s default font name is derived from FONTSET-NAME by substituting "iso8859-1" for the tail part "fontset-XXX". Since there's no fixed-medium font on Windows, Emacs barfs because the default font of the frame doesn't exist. You need instead to start with a name of a font that surely exists on Windows, like "-*-courier new-normal-r-*-*-13-*-*-*-c-*-fontset-xxx". Then the above will work as expected. On Unix, you should probably start with fixed-medium, as you did. If you want to do that in platform-independent way, you could look up "fontset-standard" in the list returned by fontset-list, and chop off the "fontset-standard" part. Hmm... which could mean it might be easier for you to just modify the standard fontset, by adding your fonts as covering the full range of the characters each one supports.