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 14:11:51 +0300 Message-ID: <831qswu0p4.fsf@gnu.org> References: <534c9018d2adffda3e53@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22001"; 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 13:12:16 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 1oTLdn-0005VF-M2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 13:12:15 +0200 Original-Received: from localhost ([::1]:48336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTLdm-00052x-Jy for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 07:12:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTLdb-000515-At for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 07:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48651) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTLda-0007ER-Jh for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 07:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTLda-0003Hq-FI for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 07:12:02 -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 11:12:02 +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.166194429312599 (code B ref 57499); Wed, 31 Aug 2022 11:12:02 +0000 Original-Received: (at 57499) by debbugs.gnu.org; 31 Aug 2022 11:11:33 +0000 Original-Received: from localhost ([127.0.0.1]:38400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTLd7-0003H9-9Q for submit@debbugs.gnu.org; Wed, 31 Aug 2022 07:11:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTLd4-0003Gv-UR for 57499@debbugs.gnu.org; Wed, 31 Aug 2022 07:11:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTLcz-000785-OF; Wed, 31 Aug 2022 07:11:25 -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=Wd92IRYrK6EmY4kD0gt0oTJwDL+FuP1hAlkHQ3/R6Jo=; b=dGFQQw8qyHmW SeGP/o2yGlusG8QdbMIxqKTdzEkWu7RRU8U6d4O7qPsmTfEoSD26eDb2CbQzKi2lYD596NjsvIdPe X4wLoQjf+6y0EKYOXMP3sDYpQu6A7U+LB1aq6UAv+tkYydB1A/JlYQm1K0y5C8p3dpnhpAP7bQTQ8 JiG8F9Z0k4DnLVp86o3cQg/FkgIsFDqLDJckqe+uZebtYs/ACYYx6qZAhOXdmjvVMTfM1HJjUpcT9 kcGaIEs1ESR805XkYLKvSRo6kEXTEqRIKHHBwnS+21uStSRHVCivcEXdOyRdL9pe6ejAmuJbBiQqp +XjhgNS6+oKAIt81E5hDag==; Original-Received: from [87.69.77.57] (port=1770 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 1oTLcz-0003MS-6O; Wed, 31 Aug 2022 07:11:25 -0400 In-Reply-To: <534c9018d2adffda3e53@heytings.org> (message from Gregory Heytings on Wed, 31 Aug 2022 08:14:00 +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:241181 Archived-At: > Date: Wed, 31 Aug 2022 08:14:00 +0000 > From: Gregory Heytings > > > The docstring of set-face-attribute says: > > "As an exception, 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." > > Not only is that sentence hard to parse, it also seems wrong. > > Can someone come up with a scenario in which a call > > (set-face-attribute 'some-face nil :some-attribute 'unspecified) > > only affects existing frames? In my testing it affects all frames > (existing and future ones), and that's also what the code seems to do: > set-face-attribute sets where to 0 when frame is nil, and calls > internal-set-face-attribute This was discussed in bug#54156. Are there any new findings or considerations that would require to reopen that discussion?