From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#54156: [External] : bug#54156: 28.0.91; set-face-attribute with a nil FRAME doesn't change the default Date: Sat, 26 Feb 2022 17:23:22 +0000 Message-ID: References: <87ilt3456u.fsf@cassou.me> <87ee3rxhuj.fsf@gnus.org> <83ee3rqgia.fsf@gnu.org> <87y21zw2ll.fsf@gnus.org> <83bkyvqet5.fsf@gnu.org> <871qzrw0ni.fsf@gnus.org> <838rtzqdt4.fsf@gnu.org> <87bkytvfcz.fsf@gnus.org> <83h78lps6m.fsf@gnu.org> <83czj9povl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34115"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "damien@cassou.me" , "larsi@gnus.org" , "54156@debbugs.gnu.org" <54156@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 26 18:24:12 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 1nO0nj-0008gw-Qv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 18:24:11 +0100 Original-Received: from localhost ([::1]:42450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nO0ni-0002OM-PI for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 12:24:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nO0na-0002NS-DH for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 12:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nO0na-0004UM-4g for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 12:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nO0na-0002zM-1D for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 12:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Feb 2022 17:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 54156-submit@debbugs.gnu.org id=B54156.164589621611435 (code B ref 54156); Sat, 26 Feb 2022 17:24:01 +0000 Original-Received: (at 54156) by debbugs.gnu.org; 26 Feb 2022 17:23:36 +0000 Original-Received: from localhost ([127.0.0.1]:56278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO0n9-0002yN-J2 for submit@debbugs.gnu.org; Sat, 26 Feb 2022 12:23:35 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:14934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO0n4-0002yB-BH for 54156@debbugs.gnu.org; Sat, 26 Feb 2022 12:23:31 -0500 Original-Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21QAFDFR021515; Sat, 26 Feb 2022 17:23:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=0QvKEeBOvoBahTP9i4BPn1UUeE27LNobdCUMvvGybE4=; b=RWyNe3Fsp1IjFUyyUc71Gd5rHFD5kux0IFwNzgkuiLrLEWzgpoQjXyAbNdWE18QPz2dq Tvyq4ZOpNFtvn4mCSHaEaiT5ejUqw83todGVNvLqqNvg4yWBaDPNeeIDzGRgyLirh/6f 0Wqrb6HkOIYFBg6JtPK7xggTmgC7FjxX/+y57bj4pNRMFIUvz0vIb86xah5Cj7g8jNl0 Gj7ckKadJBd3LlciJKMyNfyPqhA13Q+yINkdKvFg92cleZzKq1GgiAFWrUKrB7EKb4cw 5MV8pG0NjNmA1gt+UbcWhIY1slTuxrjuXwbdjuMF81KZ8MVuBg/VmIxs33r6HS+LJp6T SA== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3efat1s5dg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 26 Feb 2022 17:23:26 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 21QHLlq2125754; Sat, 26 Feb 2022 17:23:25 GMT Original-Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2049.outbound.protection.outlook.com [104.47.66.49]) by userp3030.oracle.com with ESMTP id 3ef9aswe3y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 26 Feb 2022 17:23:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PS7i5dPpTGWlrdazO4PZTUijH9xPwOilMkuagS7t3A1pkpnJXy0hG2DEdFBAMfgu4U6cGEUvGdzA/XMaB1NJt2Ixpllg2YF2rXI+I59EWwxED6x4e0DAjTOClnKMcC51ZIwMjAXHwpj/LqvJ/hZC+1RNgQXWv9zTtCtnjz2ozmE7cs85F66HosiRofTwz7/LCujfbGUtZcUYYVkSNtOc6sbwkV0oX1RC0mVsjm9BkFKKXxMER5pTRJn7GxvpbnJah28o7WZ1NsgiwOlfioHDfj70QCUlFEWzjy/bO5ttnr9N4ShvxjScZ8RkgDizzi1azbA6pT2Bg7SnTWblazNxLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0QvKEeBOvoBahTP9i4BPn1UUeE27LNobdCUMvvGybE4=; b=GPyxDMgFTfuf+6VlI0haEajFZNkOI1xll/G4kvE2yvCZab1wTPCvOWPLPWox2ubYypBDKIb+aU66ec6E6fqVjVelokQjCpaf9+97VbtzzVEzx4ySmXQYF4zY46Skv6CscslT+CUJY9AEaNrxmWa5Hm+IyHgSD0yEN2jUTsyrXs/6imGuOVYBVh6wiA/ZPPJtMxQJX9kOSPHMdyOYnEjjq/C6JleIouexZpftYFvlPeNjwrwrNKz/xbZduLG+ARFvzpMACnCB2RWTrGq3gAC5tkX8N/8XWil2exZDJhwKFwBguEEQA7nablb+rxcwi3L3amgqdCEvEL4IZZWzytIdUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0QvKEeBOvoBahTP9i4BPn1UUeE27LNobdCUMvvGybE4=; b=VQyODtMHwxvyNtiXviZIm9u2evNEVoE1eO267A/+kBBAMp9wME1tiZlEflHkB3SHR2hSWnxQrvwVCjqUwBsGvi9ypwn9xkln67FXsXDAdRM2SLmN7DAdqNunm+92pQN8WTQ3uCzyhCeY4eDPh06zO/P+R8cUvHO3x/xspXf+eo8= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (13.101.73.147) by MWHPR10MB1821.namprd10.prod.outlook.com (10.175.49.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.26; Sat, 26 Feb 2022 17:23:23 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::f811:66c9:41ab:df79]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::f811:66c9:41ab:df79%7]) with mapi id 15.20.5017.026; Sat, 26 Feb 2022 17:23:22 +0000 Thread-Topic: [External] : bug#54156: 28.0.91; set-face-attribute with a nil FRAME doesn't change the default Thread-Index: AQHYKy7qlPQbTdWr60GH1v/XoCkgoKymElAg In-Reply-To: <83czj9povl.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3826053e-892b-4344-aecc-08d9f94cb0d9 x-ms-traffictypediagnostic: MWHPR10MB1821:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /R/YRL7uruXBTeSfDy5hPE/CvedfdeB1kaTo4EXhE25nKZKzBo8fMDFEuh7VLZSrTSkN7hX7BoH5XUP9V5WdLB/tLG1evnlrSAL4WJ8Q8/c9xjxpVOwyX4ZG+hKIb3zVjUmcb/BkljvDXukGAlbNFfEaFm1VEh9b/kxul9lZIGaE0taykSaYeM9pV3T7nQ8cQzp2EfbBqgIAFvj1RMQY1qonx6DZEOPpN8Hy7jo83rJZy5lURlFRLBtfvB589g4NiPrHR8ihnLazkyzH4qNY+vszhNHIisWip3olKlLbM9QX7oU0bkpIVyFUg/cnxWYsdfDsPOvTaa9RAWDH0p7EYyZ34b8+tQyjoejDLkXH4V7t9N/cP7N7DD6OB9E7BfEubnbO/mE4xzDP6gULzSNGh9lyuoUvIZ6mJQyCLr0BKtMNnUYFBdGVBs2YGB+FRkrYoFkXeUuuT9nsB/Vguw/JMrAZq+b/e02nUFEpdzMgnPa0CxLnVsiULzFPrLSBVgttMkrzAoL3egsoidzzhLNK43e80e6q98O761N4QrykxM1FP0AbFGyM2qPZQRGDE0lRWeJPl73/hd7Oh3wUAi0Es0PYs1F9gQsvSmuiI9i3Z1RzIXsxM9ihQeGXXaUU098nUqoXv9BrIfk6maGy1+8ouL2armMVdDjNxNySZohti9dqMkdRo2lCWlI2NMRmLZ08cFY9g45UyksOfeH9fKEMvA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(316002)(122000001)(55016003)(9686003)(44832011)(71200400001)(76116006)(66476007)(66556008)(64756008)(86362001)(8676002)(4326008)(66446008)(66946007)(5660300002)(6916009)(6506007)(7696005)(508600001)(33656002)(54906003)(38070700005)(52536014)(26005)(186003)(2906002)(83380400001)(8936002)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: oRjS/CI5hOdVF5ldniXYhcBXoSqlEx0jrj/Nt3EAnpm0diyPGpgicsyONxzJsh381Yc2dkIySevCcnCpOcCutIaWrY40w4C2b7CG5TDYZiIBy/ISN+NFnIFPrUd6mNandL1/lxeTnh95teMUX4RBnRCEcUGxk+S/Se3a72Dsfyd62XCpGdANyZbuIi2uTLncF+fyLU7vPNwuV8JCO16HYAVrgg/de5CfcwQpm9UGfv/mccI7ZvBPIoiqUV9rp04r3rYAzs/I1bwthIyP7oeB5w/YpIY+UAyU7btTEAUth5z47MrKBM2v36Q+Zi0JF41yYEpOTcy/mbBbF703JI+nK/Pw0qdv73kTc+D6cR/JjRK9f7+mCBvAZGe5k276tiRNnbTaf017b2NCumTXAw6ENGISQMUo2Qg5xFxiT+qw1b7ZmDMaTMpXJyqrM1cUaNbcsXa8dwQ9oXwhHaJmUx0yBqKAKA3TvgzLHAK89hYTHLkXtk0kJWy3+v4ZV4xMen+ezLi3LzD8GwSHc55rGAP66KSkNU620JZBedRl+YUljaTRmL6ZjV1jGIISCUqqMLHud9mdwr1xybpoTnOJdpee37GOzMGi26RLoBr3Rptdu4yG3nqRwf46pniF9MidIRW5bh3bB4CDB65VgAKNZ4sBPy8vKvhYYBvJMsFxPngXLGwl8zr2sOfR3BoZ8dhf4fAY+SvJ8fb1jzGkfH8GRRNrKSd9dlW/t4D4sMsCzWbTOiW4IijCXsXA1MjmHF s93EjnSbe15dPoO3r7nCapaodcih44XxhUGdifJTtZyes4TRz+lNV2bt2tOx1g3k1/0nhAoPf9RmxO07aLKYUAxRSTawtzX8mO X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3826053e-892b-4344-aecc-08d9f94cb0d9 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2022 17:23:22.8398 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: y3keLik3iZo1t6PAu99gFAsL8WwotfkDkXVx21puqupwqH+KIPqh42kTon9YgG3gNGqm3tUxpG0HozxwYxDICA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR10MB1821 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10270 signatures=684655 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 malwarescore=0 mlxscore=0 phishscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202260125 X-Proofpoint-GUID: vARji1kd8qzdlWViDpdBl6dxfET5g5qM X-Proofpoint-ORIG-GUID: vARji1kd8qzdlWViDpdBl6dxfET5g5qM 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:227687 Archived-At: > > I'm not sure I understand this from Eli, however: > > > > The correct way to do what Damien wants (AFAIU) is this: > > (set-face-attribute 'region nil :background 'unspecified) > > (set-face-attribute 'region t :background 'unspecified) > > That is, one must explicitly call set-face-attribute > > with FRAME =3D t (as well as nil), and pass 'unspecified' > > ^^^^^^^^^^^^^^^^^^ > > (NOT nil!) as the value. Maybe we should document that, > > although it is a obscure and unusual thing to do. > > > > My impression is that it's enough to do this: > > > > (set-face-attribute 'region nil :background 'unspecified) > > > > I'm probably not testing/checking this correctly, > > but it seems to me that both the selected frame > > and new (future) frames are affected by using > > nil for the frame (and `unspecified' for the > > face attribute value). >=20 > I'm not sure this isn't the result of the particular implementation we > have, so I prefer to tell people to call with FRAME =3D t explicitly. > After all, this is a rare use case. But is what I said correct, that just using nil as the frame makes both the existing frames and future ones use `unspecified' as the face value? That's what I think I see, and that was what OP was after, IIUC. IOW, is it really necessary to use two calls to `set-face-attribute', one with nil FRAME and one with `t' FRAME? And using _only_ `t' doesn't set the attribute to `unspecified' for the existing frames, right? > > Eli, you say "This is well-documented: a color > > must be a string or 'unspecified'." Still, it > > wouldn't hurt to add something to that effect in > > the doc of `set-face-attribute' - and say what > > the effect is of using nil (for the face color) > > - it's tolerated (no error) but it doesn't have > > the effect of `unspecified'. >=20 > We generally don't advertise compatibility shims for obsolete > features, because we want people to stop using them. Is it declared to be obsolete? We generally do let users know when something they use is obsolete, e.g. with a warning. Do we do that for this case?