From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Is this "save practice" (setting default font scale)? Date: Fri, 20 Nov 2020 17:14:51 +0200 Message-ID: <83mtzcys9g.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17908"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 20 16:16:23 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kg899-0004Yv-JI for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Nov 2020 16:16:23 +0100 Original-Received: from localhost ([::1]:56880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kg898-0002ci-6v for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Nov 2020 10:16:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kg87z-0001e7-IS for emacs-devel@gnu.org; Fri, 20 Nov 2020 10:15:11 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34996) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kg87y-0007js-I8; Fri, 20 Nov 2020 10:15:10 -0500 Original-Received: from [176.228.60.248] (port=2619 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kg87s-0001Xr-Jm; Fri, 20 Nov 2020 10:15:07 -0500 In-Reply-To: (message from Arthur Miller on Fri, 20 Nov 2020 15:51:04 +0100) 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259491 Archived-At: > From: Arthur Miller > Date: Fri, 20 Nov 2020 15:51:04 +0100 > > Furthre investigation discovered a giant list of faces in Emacs: > face-new-frame-alist. Setting corresponding value in face vector for > 'default seems to achieve exactly same, but without measurable > difference at startup: > > (aset (cdr (assoc 'default face-new-frame-defaults)) 4 160) > > So my question is, is this safe to do, any pitfals I am not aware of > (more then me poking into internals which may change in future)? The pitfall is that the change in the default face will not be propagated to other faces that depend on 'default' (inherit from him and don't specify their own size explicitly). By "startup" do you mean a one-time occurrence, or do you see this slowdown each time you create a new frame via emacslient? If the latter, you could make this face change only once, the first time Emacs creates its first frame.