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 05:33:42 +0300 Message-ID: <83fusfdvuh.fsf@gnu.org> References: <8337otw9m0.fsf@gnu.org> <83shwtusoj.fsf@gnu.org> <83porxuhfo.fsf@gnu.org> <83k2hrelwy.fsf@gnu.org> <83inxbeh1o.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465958010 14690 80.91.229.3 (15 Jun 2016 02:33:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2016 02:33:30 +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 04:33:19 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 1bD0dp-0007Cj-Kl for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2016 04:33:17 +0200 Original-Received: from localhost ([::1]:39219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD0do-0005XB-U2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jun 2016 22:33:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD0dg-0005Vu-Eq for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 22:33:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bD0da-0003qA-3B for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 22:33:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD0dZ-0003py-W7 for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 22:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bD0dZ-0001Oo-PU for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 22:33:01 -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 02:33: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.14659579785365 (code B ref 23689); Wed, 15 Jun 2016 02:33:01 +0000 Original-Received: (at 23689) by debbugs.gnu.org; 15 Jun 2016 02:32:58 +0000 Original-Received: from localhost ([127.0.0.1]:41028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bD0dW-0001OT-6v for submit@debbugs.gnu.org; Tue, 14 Jun 2016 22:32:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bD0dU-0001OG-NL for 23689@debbugs.gnu.org; Tue, 14 Jun 2016 22:32:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bD0dM-0003i8-Ix for 23689@debbugs.gnu.org; Tue, 14 Jun 2016 22:32:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD0dM-0003i2-Fe; Tue, 14 Jun 2016 22:32:48 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1253 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bD0dL-0003Ts-Lc; Tue, 14 Jun 2016 22:32:48 -0400 In-reply-to: (message from Paul Moore on Tue, 14 Jun 2016 20:55:57 +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:119570 Archived-At: > From: Paul Moore > Date: Tue, 14 Jun 2016 20:55:57 +0100 > Cc: 23689@debbugs.gnu.org > > > Sounds like a perfect use case for a fontset: create a fontset from > > all those fonts, and then use the name of that fontset as the value of > > the 'font' parameter in default-frame-alist. Emacs will look up the > > fonts in the font set one by one until it finds one it can use. > > Hmm. Are they cross-platform? Yes. > The "Defining fontsets" page in the Emacs manual talks about X > resouces. X resources are supported on Windows as well, but that's unrelated. Look in the ELisp manual, not in the user manual. There are many examples in fontset.el for you to use. > I'm on Windows, and I don't know how I'd set up an X resource there. You don't need X resources to create a fontset. Use create-fontset-from-fontset-spec to create a new fontset, and set-fontset-font to add fonts to the fontset. > To give a concrete example, how would I ask Emacs to choose the first > of "Source Code Pro-12", "DevaVu Sans Mono-12", "Consolas-12" or > "Courier New-12" that was present on the machine? Make a fontset that includes all these fonts, and then use the fontset name in the default-frame-alist's 'font' parameter.