From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Question about customising faces Date: Mon, 29 Aug 2022 22:07:41 +0200 Message-ID: <878rn6u7gs.fsf@fastmail.fm> References: <871qszs2ku.fsf@fastmail.fm> <83wnarw61n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32147"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.3; emacs 28.1.91 Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 29 22:22:18 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1oSlGz-0008A7-8G for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 22:22:18 +0200 Original-Received: from localhost ([::1]:59442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSlGx-0000DA-Mj for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 16:22:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSlG0-0007n6-2Y for help-gnu-emacs@gnu.org; Mon, 29 Aug 2022 16:21:16 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:58593) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSlFx-0007D4-TO; Mon, 29 Aug 2022 16:21:15 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 357845C0167; Mon, 29 Aug 2022 16:21:11 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 29 Aug 2022 16:21:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1661804471; x= 1661890871; bh=cBi7SZnY0xVYaKtUYbpnxRiuEEgL9C7HSr8SXxJr14Y=; b=p 6Q9ZUGGteEeskGV34k+8h6J+wCB+nqG8VWYMSK1z2kQBIOOmBdogPkTOpXtMZGrK ExYVCbEwkmyW8lZ0gV72QyyebIY9Oa0ebUHnRpM20tproYMVHUkOF56GniAZyCtM lyn/eNeXKLxQ3jvUQdh7dSE6gNLSJdAgOjHIK8mkTAVi3r2GirWgwAZlHgFy5Cum JymMMizmAwzdwfRNa4CejLzzW8PfcfqWTXsv6vgjyjhBsOekfX15bc655H2dM/ry El/rA+0hiuZQB42xLL15ympACrzblKTFE9oDGLK4KTNPReeXPhMjrdxp9NkVGR6Y zw3sXqF92OcmZG9HWFJJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661804471; x= 1661890871; bh=cBi7SZnY0xVYaKtUYbpnxRiuEEgL9C7HSr8SXxJr14Y=; b=C Tb/zD2rHiXaiI7fiNobF1jVLlzo9S5BQRL6vAOphRlVhvc/l3xVkxZb6TlD6phNJ SUAqe+ZLZgFfnF1X6draNnZJ2+SRA0JQqFKbndYXKvrPtAx2vlq4tjaGGfUND0Qf w73TwKViA2i4C1zj9O10JGbR10XpzwdghYiKPajYySvbPXgpLOM4Se6A56LYjzDS UrZN9TvHZ0+lf0eMFNxzHxwcXMDR9m5IJ/5V9u7bSnbvWf/xp3nfwJjIyu+b8q+9 2yhNA1amaD6+tC7qeKn1MttUCNI05/QdR/1hzgQnIsFwO479bYlHnxUYUxPAUy0P dU4bhMHa/mRHt68fli/rQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekuddgudehtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvfevufffjgfkgggtgfesthhqredttderjeenucfhrhhomheplfho ohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrd hfmheqnecuggftrfgrthhtvghrnhepteelfeegveelgfekgeegheejhfeffeeuvefhiefh kefffeektdehtdevvdehtdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Aug 2022 16:21:10 -0400 (EDT) In-reply-to: <83wnarw61n.fsf@gnu.org> Received-SPF: pass client-ip=66.111.4.29; envelope-from=joostkremers@fastmail.fm; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139150 Archived-At: On Mon, Aug 29 2022, Eli Zaretskii wrote: > The call with FRAME nil should have been enough. And in my testing, > it is: it sets the attributes for both the first and the subsequent > frames. I just tried with emacs -Q, executing only those `set-face-attribute` calls= and the problem persists. I need to execute both sets in order to get it to wor= k.=20 Note that the distinction isn't really initial frame vs. subsequent frames. Rather, it's frames created before executing the calls to `set-face-attribu= tes` and after executing those calls. I'm assuming that this is the case mentioned in the doc string of set-face-attribute: "[...] to reset the value of some attribute to =E2=80=98unspecified=E2=80=99 in a way that overrides = the non-=E2=80=98unspecified=E2=80=99 value defined by the face=E2=80=99s spec = in =E2=80=98defface=E2=80=99, for new frames, you must explicitly call this function with FRAME set to t and the attribute=E2=80=99s value set to =E2=80=98unspecified=E2= =80=99; just using FRAME of nil will not affect new frames in this case.to reset the val= ue of some attribute to =E2=80=98unspecified=E2=80=99 in a way that overrides = the non-=E2=80=98unspecified=E2=80=99 value defined by the face=E2=80=99s spec = in =E2=80=98defface=E2=80=99, for new frames, you must explicitly call this function with FRAME set to t and the attribute=E2=80=99s value set to =E2=80=98unspecified=E2= =80=99; just using FRAME of nil will not affect new frames in this case." --=20 Joost Kremers Life has its moments