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#51465: [External] : Re: bug#51465: 27.2; `face-all-attributes' doc or behavior (?) Date: Thu, 28 Oct 2021 23:08:42 +0000 Message-ID: References: <83h7d1rlk6.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="14143"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "51465@debbugs.gnu.org" <51465@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 29 01:09:32 2021 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 1mgEWZ-0003Tg-3i for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Oct 2021 01:09:31 +0200 Original-Received: from localhost ([::1]:40030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgEWS-0005TW-LT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Oct 2021 19:09:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgEW8-0005Rt-Ll for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 19:09:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41948) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgEW6-00061f-G9 for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 19:09:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgEW6-0005Of-An for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 19:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Oct 2021 23:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51465 X-GNU-PR-Package: emacs Original-Received: via spool by 51465-submit@debbugs.gnu.org id=B51465.163546253020725 (code B ref 51465); Thu, 28 Oct 2021 23:09:02 +0000 Original-Received: (at 51465) by debbugs.gnu.org; 28 Oct 2021 23:08:50 +0000 Original-Received: from localhost ([127.0.0.1]:53494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgEVt-0005OB-Tj for submit@debbugs.gnu.org; Thu, 28 Oct 2021 19:08:50 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:55216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgEVq-0005O3-MS for 51465@debbugs.gnu.org; Thu, 28 Oct 2021 19:08:47 -0400 Original-Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19SM3Oma021610; Thu, 28 Oct 2021 23:08:46 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=kIKaM8TVWiE4NJE59hDJIsVLI4lC6ZA/yI4xFLHeKuw=; b=jA8cNtVHoRYgFw6PGSa/CVkN7eRvivaAmyj1ETMFBvU+kiSK88H1tdh7nOL5a5i2L5Sx m0U/pC+hWyCR0iSAHlh2kdyOtyg66Gl0KrwLrbagorR/oL5qCTYfiphPDlqjQzrTnkm/ OopDtOMdo43sogw/D0v6nXrV6G9TFmvNNlHQpEYF+nfcdngzIJfWql+zIj/2vh2fFXVQ ee6GxY02zCU5S1dDWjnTUbmM2AGy70Oq+n2c8TIaeXgjY5uQpS+/nRsfORNoAI1CpseJ 1TxQ/76seYKvEIy01CyBFWDKYQ0XEjqPNYjmN2iJoH0+mNrv7rJ/TD6lPJlwrrWus8Yk Cg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3byja2dep1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Oct 2021 23:08:46 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 19SN5Loo158441; Thu, 28 Oct 2021 23:08:45 GMT Original-Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by aserp3030.oracle.com with ESMTP id 3bx4gc9mf6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Oct 2021 23:08:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YXbkziSgwpg6diSzA4hLCF6pdX1x5j8iHOK74yB6zv0ZhmSppM2MjCcgsMmohzKVIblKncvqvxMujCctSRYjywjs5raKLR4MIh7+kzwSzJRMN8gy1qwn6OOhZZ6Wfbj4+90zSJvbBhHkEm9KiA6hagK+LWvdF2TFk+nNQnGdDdYAcGDqm6uMkgCbR/Lqc92ZH2Or1ZIcO05b0qgJdzVQ15YGlWzLjtHfUKJTcVF8xBZ3j1+B/Y1vBXnL4bx4nBPCWH7BTYxuHVWa/Os0nDPR4B3zK/OXYKI65u164s6WU76e309t2wrWMtyVAkhKiE18CoxrHifyt2mPADVDWmrKNw== 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=kIKaM8TVWiE4NJE59hDJIsVLI4lC6ZA/yI4xFLHeKuw=; b=J7UCvY0mBLRmnm+1l9/oNjNqT/e2kEUQW7u0oenRj7I7lkvZddX1wgPPvbsddkxWDlkPM9WnOF7gaYVDkJP17lQz5K9a5pTUbvfwTlK7Xu+/vGbcbUTJxjs5eLGuUgJcaiOY46IoHKJHXXykNdTEe5FyHnEKoMIYAsLLIxzJz+xZBJrtQ5i9VkpFTgiFhmr8kkRAxPm386b+aS2cZk33V0DDkb8K0/g/wmK6Iz1v4Qw6PJMITVS7XDwElIhX8bynfZrZ+Hhk4IQZ7d9W/2tWuE+N/zd6XpxCEFXiMg72uuLyD5+6BksiWv2U+yLTkvJ3QG0vs98ps1BTkqPkZAxfuw== 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=kIKaM8TVWiE4NJE59hDJIsVLI4lC6ZA/yI4xFLHeKuw=; b=ECwCbiJGqXZi7fSZv8lHTZn14Sk8Mf9k4lUbq4UcBbnqnUnTpHkVyaVRh5K2K/ejD7lGgXwoiJf+aVZR09CVHcRonJ+u3oSlTIE1aBtrU7gkY1LwfJKPIcr25jsGCUFG/FLwl8UwvBiCFrvMIm1L0Umk92N9z33bsnIlMbKnyKg= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BY5PR10MB3826.namprd10.prod.outlook.com (2603:10b6:a03:1ff::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Thu, 28 Oct 2021 23:08:42 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::c0bc:7c3a:292f:8a82]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::c0bc:7c3a:292f:8a82%8]) with mapi id 15.20.4628.020; Thu, 28 Oct 2021 23:08:42 +0000 Thread-Topic: [External] : Re: bug#51465: 27.2; `face-all-attributes' doc or behavior (?) Thread-Index: AdfMLrkaWtoQY1WgT8uuwqzGa4sQDgABAYfQAAGUM5A= In-Reply-To: <83h7d1rlk6.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US authentication-results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=oracle.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5c7b8446-0e58-4c61-834d-08d99a67e2e2 x-ms-traffictypediagnostic: BY5PR10MB3826: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FG9W8Kz9sNXb4QPLFhWXL//qtD/4cSjRWjgtQABdvA36SIJ/K5qMLkvo39XgHuMemS06tMV3P01+dze9kkuscnLRYwicQFb4fc6F/6TQ/2e3/u1wmLlOCf3CWdu9Y6+3r7NHII8+qtPg7J+IwGbNH3p9xugVsw6Ma+M2BT/yZo5MDsjMvHHUklNk7UhEhKTIhy/M9z+UAuBskNH/V7R49SMEKN69hhT6AmcLoSQ4tXDiFc2r1CycDFKqrjwySLz7IU9t/dsg4u6g6EXvFk8BpacX1j/elfZ9lQCU9Q5AF5p/CTbQB9zwiUvdd/qyQD7YaVliUC4nIQStdxRTVpJRPSL2r1uIAclPGNPL+Y9e7d5bf4qUXA/1low3CUNKKNz06l9cMSEZCwA56zctH5O2VsN8e7LC1BDA6hayDcMlx2DPVJjpM/dz9kp746wQISuVFXlAovSg4MiJkJWFWTc/Pnx4OJKglPP3A3N8UNRWhDcop9JHZj7pJCwzw/hx+lsDX/DQU0pEdulEFhLUd2tsqRjkleS0ZnQraBnAYBatyiYXnOc+/Un1ovdk7KHkbJ0Ijax/zHW4CvAuSWS1xxUzlGHJsWYBi7Bb8gDx0UAEdCwmzBupYPCWoEeiD3IYbWuS4TB26D06GPSyq2GkbIOC/EJSmC/7hk06eo6ryxsuK2tcSLyz/FQ9x/RlAhxNhOA4mKBgRBLZnuxPPI3FqAjjGW7qQG7O3a6oHQt3L7Azkv4= 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:(366004)(64756008)(186003)(38100700002)(38070700005)(66476007)(6506007)(66946007)(52536014)(71200400001)(9686003)(8936002)(26005)(6916009)(122000001)(55016002)(66446008)(66556008)(76116006)(86362001)(8676002)(33656002)(508600001)(4326008)(5660300002)(2906002)(7696005)(44832011)(316002)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: PR9RiA0E+5snFCn4LD8UT0CnEpESRpFdksuBRobghskNgajZFVqjJtHILPlMAliALRxn/a0YfgM23NeqMi3trDOWGlyTfR8LJ5qK/KAxAWE0y8tfdeXNllDmrxAZJ5rVMIFws0gO5NXjmeRA/nGW2ZJClkvN5/ofXPvj/79XmnS5ERQyo4lmJrYqlHioMhncO49nVQaRafqKFVPfXWs1JNY0lOblGAdtmEqKh62OOqceh5G4jO9llpR7FwQvcuG8ZIdXxCxXHUfNCQ7NWYf2FSJMjXMiue3gDuUm7iuXnS3yZzULg2EAnPwLeKPW++PlG6IvMtdp74wZh+50Xf+yy0xyNGkvjk7aWG8XAWzfrhwyg1DbFBNAlCi+gdT5dMVjeTZGbh8Mn5bcCBvcCps2BiUKYKitesJZnOeKPsZ5LGQPst8jUR+MM2n5BJ08YujgmMypytQB/Pny3nB9Usu8uunq4iFVEKpnreI6DwF1w4YvTFSE3a7VpdnfXUObvZ25cCAt0Zq7eqGKHOvhLSfGbnoeAzypS/OKIz4rf8DEH6OglOiyIMMDXcVeMY8mxWvdfQ0iyBcnTeS5PiXk1W3OGAZOSxxBYGJwj0gdQwcrLD5npEJl4i9wPicKDr4xWI7Jzms3KPEGVD4GDDKP/S8jZBF3Y22ACoExc3C+swowjZ/VCzTulbC8Wd3SzBWcxSzLvU/ZupUV5q22RgUH0FCaf521yLP5aVMMOgpj8u0ZukPRsStkxyOK7Dnt3L xAhzPHtr+l5bAPTo9pqFzDsukvKdPYNY0owXaxPEs/3rUjoAWNrldQakzR1oGwE2MehGPJa//4JgxQWUBVC6TE/Rn4zFyczvbI 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: 5c7b8446-0e58-4c61-834d-08d99a67e2e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2021 23:08:42.7066 (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: G5mOs2YW7RYC0Xww8e2zXs59TfQMtdVZLPysW0oG8BVyHne9K2yqnfmxnIHd3kB8fiUHyCFPoTaVsj2b1WQOLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB3826 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10151 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2110280122 X-Proofpoint-GUID: zkDQDzEolkFhxHS1g99pgDAE75V5oxAf X-Proofpoint-ORIG-GUID: zkDQDzEolkFhxHS1g99pgDAE75V5oxAf 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:218527 Archived-At: > > (elisp) `Attribute Functions' says "the default attributes of FACE > > for newly created frames". I would expect to see :background as > > "LightGoldenrod", not as `unspecified'. >=20 > Why? because that's what you actually see in a new frame? Those > aren't the default attributes, those are the attributes specified by > defface. The Elisp manual says it returns "the default attributes of FACE for newly created frames." Whenever I create a new frame (from emacs -Q) that face on that frame has a :background of "LightGoldenrod" - never `unspecified'. Is the manual wrong? Or are the manual and the doc string trying to say the same thing but ending up suggesting different things? To me, the manual's text suggests I'd expect to see "LightGoldenrod", with emacs -Q, based on a GUI Emacs. The defface for `region' and a light background with at least 88 colors specifies "lightgoldenrod2". > > Why would one want to get a list of the face's attributes > > with every attribute value as `unspecified'? >=20 > I don't know. I guess those defaults are not very interesting, > indeed. Unless otherwise specified (which could be by `default-frame-alist' or whatever) a newly created frame has, according to the manual, the attributes for that face that are given by `face-all-attributes' when that function is passed a nil FRAME arg: "the default attributes of FACE for newly created frames." IOW, it calls this "the default attributes" for "newly created frames", not the attributes for some existing frame (this is the FRAME=3Dnil case). And yet, with emacs -Q, every newly created frame has :background set to "LightGoldenrod" (AFAICT). At the very least, most, if not all, newly created frames have that attribute value. None have that attribute with a value of `unspecified'. The function returns `unspecified' as the default for newly created frames (for this FACE's background). But it seems that the actual default for newly created frames is "LightGoldenrod". Perhaps there are multiple, unexplained meanings of "default" involved here? I'd think that "default" would just mean what you get for a newly created frame unless there is something that overrides that somehow. I'd think that "default" is what the current customized value of the face has - that's what you get by default for a newly created frame (or if it's not customized then the value given by the original defface). I'm hoping you at least see a possibility for confusion in the doc. And maybe even a problematic behavior (what's the point of returning `unspecified' everywhere?). ____ You didn't address my question about the seeming impedance mismatch between what `set-face-attribute' accepts as a list of attributes and what `face-all-attributes' returns as a list of attributes. So I submitted a separate bug report for that: #51469.