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: 27.2; `face-all-attributes' doc or behavior (?) Date: Thu, 28 Oct 2021 19:08:53 +0000 Message-ID: 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="27343"; mail-complaints-to="usenet@ciao.gmane.io" To: 51465@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 28 21:12:20 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 1mgAp1-0006vx-Fu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Oct 2021 21:12:19 +0200 Original-Received: from localhost ([::1]:54412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgAp0-0008Lu-Ia for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Oct 2021 15:12:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgAmo-0005tv-Mc for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 15:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgAmo-0001FR-6f for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 15:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgAmo-0001RL-0M for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 15:10: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 19:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51465 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.16354481485452 (code B ref -1); Thu, 28 Oct 2021 19:10:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Oct 2021 19:09:08 +0000 Original-Received: from localhost ([127.0.0.1]:53220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgAlw-0001Ps-88 for submit@debbugs.gnu.org; Thu, 28 Oct 2021 15:09:08 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgAlr-0001Pg-H1 for submit@debbugs.gnu.org; Thu, 28 Oct 2021 15:09:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgAlp-0004q1-KB for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 15:09:03 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:22732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgAln-00015p-7U for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 15:09:01 -0400 Original-Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19SIoSwB030823 for ; Thu, 28 Oct 2021 19:08:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=H6lRmrq9H27YZLUHSu1PTKiKyK5NwBHgcZxk3VPOXt0=; b=YS7KTsoZOJWdlY272L+V4BHtfdvihfWpj6smDXkatBbgHbeoQJg1lCSWM3vBZR5wwWkx 0pwpmiTrCSImn3rO5chqeQbsWUA4AaP3fVAoxMqmI4AzUkKzTHmC8iKJcGTAb/xjiv7E 9BOVGKorn+iyrBqAmx+1ZHmHWTnAf6bBv+SaNzsj4exLv3Ri4mx3CiWgoni/zd4IbrRG SFq6jIeWxmhgzncwfS4sVjoH/DtdkTGwPCZSdsXhDGqBswz485w7YgT8sdrxUm/u57Dk dK1aMplcm0D6e/FZI3zBovsLqAapQlCnuNaaR0H7SCloP5dyLSemuKTqbj4L2WkK75oV 1A== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3byhy9m81k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 28 Oct 2021 19:08:56 +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 19SJ7Lm4038328 for ; Thu, 28 Oct 2021 19:08:55 GMT Original-Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2172.outbound.protection.outlook.com [104.47.55.172]) by aserp3030.oracle.com with ESMTP id 3bx4gc0apm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 28 Oct 2021 19:08:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LM8RZkRkLwmWInE/TWzQy1Z2huzWdK22LMtnNo/r4swWpDXtrKQJNG0/+KuoW3yszyOW4t4Ynj60gvIs1NHz4+7GPqKmJ0PVF9NNkMkWDTceTybIS5sqMNhQR2iIua1xhBfwe95QjjhfyeUD5fZBnmAL0475ZWtcnEN1G6SCZ1kGAdhatBFB0mnJp7wF/wgqwlf0rejRY82KGPah/5hRtKwEWQCRhhwyTMW21DkDFIl423aD9z+k3g5Q/gQXqd5yjOZ14Eq/ZXmApEfb6a4/ZvTm4cHEIByAXJCjfxR/KQaCrvI0rwtMW7B/+Oj0FWdS5e01dlJKBhKF++C3n6iEWA== 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=H6lRmrq9H27YZLUHSu1PTKiKyK5NwBHgcZxk3VPOXt0=; b=G2xYXR40Iiyjd7fNmCl+b4aZTjlvwlC+NmEUinjgk1HTsvl37iSP3FVXi3G3WiCw7p3eWy4PZAZOOKCAdhUWDccZcD+K9SxcX7dtQqNhFh0EM+Xgbj3HwoQJYVoNDBa9+CZvLVbqlaVtyTmeG+0QBoLfy5liKinjt07DtBhpzIuGLPqjzGqIKDtCHLXXah4ak7M55EoLsdsb3ZJAMEdkORgTJZkexI0JrEN8xk0yDodSgfqDpKXfAsvyXWchV4xKLg+hmfnimqzHLnPYZCPzclQXPldPhGZGmoX2TdW1O8cecnlhf/Z1FDsyUSgIGqCR2GtF0Sg6iF1KPWOYGSKJRQ== 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=H6lRmrq9H27YZLUHSu1PTKiKyK5NwBHgcZxk3VPOXt0=; b=u8FvnbEmn1KiZy+Yb1TUrSsftaqh67c5rPdPEqbhT8lnxfrAkIlhITLArsQCyVafEM+5eqDPmcXvCUsvMEqRYAoZT3iZhP/LECjw4lQFa/LVo7pMv9FkDFmhQnX/UzTxwVPGxAVgPHXNOjQmacwzE230dqEzwuEFLCFB8uLoKEk= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB4087.namprd10.prod.outlook.com (2603:10b6:a03:120::20) 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 19:08:53 +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 19:08:53 +0000 Thread-Topic: 27.2; `face-all-attributes' doc or behavior (?) Thread-Index: AdfMLrkaWtoQY1WgT8uuwqzGa4sQDg== 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: 32aa2e48-20bd-40c3-a1d4-08d99a46620d x-ms-traffictypediagnostic: BYAPR10MB4087: 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: 1XQIAe36FvFVtSGXB2g38SDJKQtVTBxuaijp3Tk2y/i6CCu71JRgPLfwfcV3esJ87uKfOT7MBkOhMcp1v2oAU28kvM/lMUTMJyBI20lKTfur47FpI7zeGiAqZfVd00ctPz/Lee8T4jjTdZtFGmYf9D9KoE0vBtaI7CISvX3Z7NmY9IJxIC/EV3p5ohWzAab00j5PwsXdHDTx6O+6xmoITRGoE+OuxCxkvyeulZrhBsYmk/IMU76uAqrl+IK7VZkIuksWrrxU+jtamtD8+qi0aekPJrEh5fFBa/Qj9lINFd8Q/KgL41bVTPVC68wUDMU0dSJgkhxNBF8GOdwOKXPG5bxPsuvVZYOWs9hFqcZSR4jraCCqucoXFDr4+co8SZ6bsJ8o7EHBh0xbCb4CYSo6xkQ6VxNsP87yST47b5VR1OOYsSHRm45s2Q6tauqlGLL/DUgYwkVLhqLCESH7xjOUiDWIMAQ8vXqlzgnoaQ0a12s518FeLQ14R5E8qj28CnLWgJCRh7hdede7lKNTqiKJT/w/r/u9QZv2kvg5+7ForpeCi8i7RplB3JllFm3dEiHs9JpNhXCiFPdQJ+ZdzRudQe+LsoAvvNKqQ7wLqBJUrsR0UAdPZt47HTGEGDZUbqbkQaI8cIxktEayLRTx6XmPH2uyE7ST7XmUn15fJvIh5ESdcKjbSuVu+ixE2U0JOrHNmi1anuvpFE15sUfYBXK1/DAMGtPLBKMKwUxR10rBhmA= 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)(38070700005)(26005)(7696005)(9686003)(6916009)(66946007)(6506007)(71200400001)(316002)(44832011)(5660300002)(8676002)(64756008)(45080400002)(38100700002)(76116006)(186003)(122000001)(66446008)(508600001)(8936002)(2906002)(52536014)(33656002)(55016002)(86362001)(66476007)(66556008)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: Ms2x05rmSPBbpO/LuForVyXkR2408iOITfsVw/h6WaZKs+KPlz7GSBJ83M9vZYP6ckxqtT/r/OcWCK/r93OqrB2Zyhw0P0a40D9phhw++VxtS5BapK4aiCVL/RiIMg5/5KYeYM6GueKez5Vv+LWnFxqBgMwUT96rDuihL3N5S2vJZ3PvM9arfICtx/8gM2cSneA/VrOxYTgIEqftgy8/vUgf3Ud4R3jD2yP8tLchZJiYJ0Rc6jhIn5YrD1tDM7BHg58bh9uYcTB2UObn3MlPYxGyq+zai6zZQV3XX8rLh5AEUCr+fvJtVbmWWkZD/bCVc00KRNCFdD9si/2oAWKRWZh7C0sBxmtG67kTNAW8VhNNOsR6wd1QMHTpiycnNJ9mpakQzgO1nnaq8tN+DkT9nnzEoU9xDOQhXgiIRz0Y/ORpUpIWPapips3Q4WD5L53nZ0L1dXP1yl3XaS5cZqRmPEHDJ4yo1dD8zqd6UVaJjOFAvoxZTFe9Ue7ZMAz1CZIwOvDptxe7W2pXwRzbZXcr69bQW8SPV5tGkvolMNNaktL2diT2a+GQP4EkfxpQS194kVWs6SXbfmTkTJqElutkY6IwZvi0rRHNdXIYeexa9le0Obp5TAzNfTBJQU6GKuKRHwnJINTQ96wH4rxzZw2O56npdhvwMNNZuruPc7nLpn4MDay57ZRHHVDNHv+u0ojFBZytkCxkIQn77G86Jowqa8WpmyX4C9BH/s44pzf5Jkrq0YDCU3JBHKOuhh Ia8U0OL0N65E/JHiTS/sabCvroUAaMkCy3iWHZtbXfwG1gDnfnEy3B6YakIcEHrQ0hhXdbu1/QVJt3s6Af3yBjNbNodVgBmGfy 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: 32aa2e48-20bd-40c3-a1d4-08d99a46620d X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2021 19:08:53.1770 (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: i7sVjdQYv0keQfpDEEca0ks06KY6vlIi6HNJRbYpcx8jd638XHV/VzfGWvg3qHkNGJa+2PaRUjUasiKl2jwg8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB4087 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-2110280100 X-Proofpoint-ORIG-GUID: ekx3pnsibO7Livm2IZye10q8FMGK3lmH X-Proofpoint-GUID: ekx3pnsibO7Livm2IZye10q8FMGK3lmH Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:218514 Archived-At: emacs -Q Set eval-expression-print-length to nil for the session. (face-all-attributes 'region) ; C-x C-e Shows all attributes, including :background, with value `unspecified'. (face-all-attributes 'region (selected-frame)) ; C-x C-e Shows attribute :background with value "LightGoldenrod". The doc string of `face-all-attributes' says that a nil second arg means use "the default attributes". What does that mean - what are the default attributes? I was expecting that it meant the default settings for the face: default set of attributes with their default values for that face. (elisp) `Attribute Functions' says "the default attributes of FACE for newly created frames". I would expect to see :background as "LightGoldenrod", not as `unspecified'. If arg FRAME is specified (as a frame) then the function returns the attributes of FACE on FRAME. Not sure what that means either - faces have different attributes on different frames? If I do `M-x customize-face region' from emacs -Q I see :background set as "LightGoldenrod". That command customizes the face for all frames, no? So doesn't that mean that the face has that background for all frames (by default)? Why would one want to get a list of the face's attributes with every attribute value as `unspecified'? More importantly, how to get the actual (default) values "for all frames" - what you see when you use `customize-face'? I feel I must be missing something obvious, here. But the Elisp manual didn't make things any clearer. ___ You can let me know if the rest of this report should be posted as a separate bug report. But perhaps you could just let me know what I'm missing in this regard too, if that's simple to do. My question is why do we have the &rest argument ARGUMENTS of `set-face-attribute' be a plist, but what `face-all-attributes' returns is an alist? Just to do something like the following isn't possible: (apply #'set-face-attribute 'some-face nil (face-all-attributes 'other-face)) To accomplish that you need to convert the alist returned by `face-all-attributes' to a plist, and pass that to `set-face-attribute'. Why? What other uses of these two functions would suggest that they should use different ways to express the list of face attributes? In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 built on CIRROCUMULUS Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19042 System Description: Microsoft Windows 10 Pro (v10.0.2009.19042.1288)