From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: When and how to register various font backends Date: Sun, 16 Jun 2019 23:03:28 -0400 Message-ID: <87pnnc52wv.fsf@md5i.com> References: <83tvd1p4jm.fsf@gnu.org> <83blz0xsu5.fsf@gnu.org> <835zp8xlzo.fsf@gnu.org> <83d0jfw528.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="167877"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: rpluim@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 17 05:04:06 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hchwC-000hVH-9F for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2019 05:04:04 +0200 Original-Received: from localhost ([::1]:43892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hchwA-0006Jd-N6 for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2019 23:04:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38171) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hchvl-0006Hl-Jp for emacs-devel@gnu.org; Sun, 16 Jun 2019 23:03:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hchvk-0005OL-Lp for emacs-devel@gnu.org; Sun, 16 Jun 2019 23:03:37 -0400 Original-Received: from md5i.com ([75.151.244.229]:52094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hchvi-0005HC-Bn; Sun, 16 Jun 2019 23:03:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SeHc/vpyCPV3XnG4DdNtlLwLfGK7L7KymJ8DMTzxK2A=; b=AlqaHPCWHfwG9PJXdFABvtCnpB FVgdvRk+pewBC1t1elI1oODnrcBN62tftYjHh4pBNs4PGVLOKLWb9MwojOFOJHxVVnc/Pp8N2ezbk g+rM8kzQtemIt7aFjBZurI4SF; Original-Received: from md5i by md5i.com with local (Exim 4.92) (envelope-from ) id 1hchvc-0001bM-1A; Sun, 16 Jun 2019 23:03:28 -0400 In-Reply-To: <83d0jfw528.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Jun 2019 12:50:23 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 75.151.244.229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237763 Archived-At: Eli Zaretskii writes: > But what about being able to specify the backend(s) via > default-frame-alist in the init file, and expecting that to affect all > the frames including the initial one? Mitsuharu's proposal allows > that, whereas mine doesn't. That's because in my implementation the > font backend is registered at frame creation time, and only the > backends known to be requested at that time are registered. So when > we call modify-frame-parameters later, after processing the init file, > to make default-frame-alist parameters take effect, you cannot request > a backend that wasn't registered. > > By contrast, Mitsuharu's method registers all the backends, but only > activates some of them. So modify-frame-parameters can work, because > it just needs to activate an already registered backend. > > I hope the difference is clearer now, and people can voice their > opinions. I find that I, at some point, specified a font-backend ordering by modifying the default-frame-alist in my init file. So, although my reasons for doing that are by now obscure and possibly defunct, I did, at least, assume that this would work at some time in the past. -- Michael Welsh Duggan (md5i@md5i.com)