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.bugs Subject: bug#57499: Documentation bug in the docstring of set-face-attribute? Date: Wed, 31 Aug 2022 15:39:10 +0300 Message-ID: <83tu5ssi35.fsf@gnu.org> References: <534c9018d2adffda3e53@heytings.org> <831qswu0p4.fsf@gnu.org> <534c9018d2f372cd7462@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22910"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57499@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 31 14:39:13 2022 Return-path: Envelope-to: geb-bug-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 1oTMzv-0005iR-KM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 14:39:11 +0200 Original-Received: from localhost ([::1]:60518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTMzt-0006p5-WA for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 08:39:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTMzm-0006nP-AA for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 08:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTMzm-000725-0p for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 08:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTMzl-0001KJ-Tb for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 08:39: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, 31 Aug 2022 12:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57499 X-GNU-PR-Package: emacs Original-Received: via spool by 57499-submit@debbugs.gnu.org id=B57499.16619495365087 (code B ref 57499); Wed, 31 Aug 2022 12:39:01 +0000 Original-Received: (at 57499) by debbugs.gnu.org; 31 Aug 2022 12:38:56 +0000 Original-Received: from localhost ([127.0.0.1]:38475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTMzf-0001Jy-M2 for submit@debbugs.gnu.org; Wed, 31 Aug 2022 08:38:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTMzc-0001Jl-9R for 57499@debbugs.gnu.org; Wed, 31 Aug 2022 08:38:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTMzW-00071F-A0; Wed, 31 Aug 2022 08:38:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=bm1PfTXxoDEp+WlnjV6J4BEqJbDWoj1n6bLXIa+aQEQ=; b=TIzlXI+/rLKd 42IUX1/QLfPsHwgoLjm6Die6iNr8BdJO4zO15CP9vfbL70peDFH0g8d/ed6cl/NvafpBSuJf//Uqk XhkSTbi20klF79a19DW8M37yaRgJV7590V8yyGCmj+fFJITJlrIWPnsSh60/nhIJvoRpoLs8R2Ufy mJcBJbbwbs7b599gBZ8kC00z6lwFUPU4/mF2bifZ9bOE7nyArXFCyHKkE8HfsD7fcBbgXiizDtBgW 85jOPRCgiXgWti2g7qRd5CPLrfepnAQlEksVQ0P5A11JNEstv4h7zgjMripUrtPeW0LlQ6ia8eFkw SPERIXYjwTgbVhBBFIs5kA==; Original-Received: from [87.69.77.57] (port=3332 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 1oTMzU-00043d-GT; Wed, 31 Aug 2022 08:38:46 -0400 In-Reply-To: <534c9018d2f372cd7462@heytings.org> (message from Gregory Heytings on Wed, 31 Aug 2022 12:04:03 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241191 Archived-At: > Date: Wed, 31 Aug 2022 12:04:03 +0000 > From: Gregory Heytings > cc: 57499@debbugs.gnu.org > > > This was discussed in bug#54156. Are there any new findings or > > considerations that would require to reopen that discussion? > > > > As far as I can tell, there are, but if you disagree, feel free to close > the bug. Bug#54156 starts with someone telling that > > (set-face-attribute 'some-face nil :background nil) > > did not have an effect in new frames. To which you replied: > > > > > The correct way to do [that] is this: > > > > (set-face-attribute 'some-face nil :background 'unspecified) > > (set-face-attribute 'some-face t :background 'unspecified) > > > > That is, one must explicitly call set-face-attribute with FRAME = t (as > > well as nil), and pass 'unspecified' (NOT nil!) as the value. > > > > and you later added that the call with frame = t is "a special trick to > override defface with 'unspecified'". > > It seems however that the call with frame = t is unnecessary, or at least, > I could not come up with a scenario in which the first call does not also > affect new frames. I still don't understand what is new here. All of that was said in that old discussion. no? Or let me turn the table and ask: what do you want to change in the current doc string? You want to tell that nil requires 2 calls, but unspecified doesn't?