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.help Subject: Re: Question about customising faces Date: Tue, 30 Aug 2022 05:30:51 +0300 Message-ID: <83y1v6v4x0.fsf@gnu.org> References: <871qszs2ku.fsf@fastmail.fm> <83wnarw61n.fsf@gnu.org> <878rn6u7gs.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10001"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 30 04:31:33 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 1oSr2K-0002Qc-8s for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 30 Aug 2022 04:31:32 +0200 Original-Received: from localhost ([::1]:45742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSr2I-0005p4-LD for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 22:31:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSr1L-0005nY-Es for help-gnu-emacs@gnu.org; Mon, 29 Aug 2022 22:30:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSr1L-0000ul-5x for help-gnu-emacs@gnu.org; Mon, 29 Aug 2022 22:30:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=szfaSYgi88HJv1k/Gfkc0GbP5qHO2uXMw4g9m0AIe0k=; b=FvRU5BY7VqYIpqJ98w0h uwL1kJFN2XI0LT5pl4KOm6PsJINheyUi40nTpe5tSS/UgbNLA3+4oH+s0LlfYD8P7Us3N2VCQGbs1 KnxjFOpxaO6ONesEh5HWWh3OhzVwpkPxmo249Rxlz31vAQ/kG9ZUK4mP1h9KT9bRqR69YeBE9A891 2qTCkn4V92rrqQNPaQJz1iSdvVI2nT0ZFtJUUXd/hebiGdMoOfhU3FAhrOakj+cmvv/Zw8nzUaMJe v4mFDHjFvsGuhZzrSwqHxfFIbzyxcYAn576AnHDFbZf6AQ67iPY13NLX9SiV9GXhTnZ/eutf9nHZy GZVJmtMM4IZTkA==; Original-Received: from [87.69.77.57] (port=1178 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSr1K-0007TZ-I0 for help-gnu-emacs@gnu.org; Mon, 29 Aug 2022 22:30:30 -0400 In-Reply-To: <878rn6u7gs.fsf@fastmail.fm> (message from Joost Kremers on Mon, 29 Aug 2022 22:07:41 +0200) 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:139155 Archived-At: > From: Joost Kremers > Cc: help-gnu-emacs@gnu.org > Date: Mon, 29 Aug 2022 22:07:41 +0200 > > 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 work. Please show a recipe, starting from "emacs -Q", to reproduce the issue. > Note that the distinction isn't really initial frame vs. subsequent frames. > Rather, it's frames created before executing the calls to `set-face-attributes` > and after executing those calls. I don't think I understand what you are saying, but FRAME nil is documented as affecting both all the existing frames and the future frames. > 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 ‘unspecified’ in a way that overrides the > non-‘unspecified’ value defined by the face’s spec in ‘defface’, > for new frames, you must explicitly call this function with FRAME > set to t and the attribute’s value set to ‘unspecified’; just > using FRAME of nil will not affect new frames in this case.to reset the value > of some attribute to ‘unspecified’ in a way that overrides the > non-‘unspecified’ value defined by the face’s spec in ‘defface’, > for new frames, you must explicitly call this function with FRAME > set to t and the attribute’s value set to ‘unspecified’; just > using FRAME of nil will not affect new frames in this case." I don't think this is related: you only used 'unspecified' in the call with FRAME t, not in the calls with FRAME nil (which should have taken care of everything).