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#51465: 27.2; `face-all-attributes' doc or behavior (?) Date: Thu, 28 Oct 2021 22:33:45 +0300 Message-ID: <83h7d1rlk6.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14406"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51465@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 28 21:34:18 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 1mgBAH-0003Qo-5z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Oct 2021 21:34:17 +0200 Original-Received: from localhost ([::1]:46522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgBAF-00061H-Dx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Oct 2021 15:34:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgBA2-000615-MA for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 15:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgBA2-0008UP-EN for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 15:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgBA2-00022s-0r for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 15:34: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: Thu, 28 Oct 2021 19:34:01 +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.16354496387853 (code B ref 51465); Thu, 28 Oct 2021 19:34:01 +0000 Original-Received: (at 51465) by debbugs.gnu.org; 28 Oct 2021 19:33:58 +0000 Original-Received: from localhost ([127.0.0.1]:53265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgB9y-00022b-IP for submit@debbugs.gnu.org; Thu, 28 Oct 2021 15:33:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgB9w-00022M-91 for 51465@debbugs.gnu.org; Thu, 28 Oct 2021 15:33:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgB9q-0008Sy-Cb; Thu, 28 Oct 2021 15:33:50 -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=hgHYVZuHYCt4A9pnyGQmdZkFanlowGc5Yyptd+HO81s=; b=PqkL5OBxyo92 guT4G6gb+ZbHwVaHMyawfG+HAYGpKKZCwusC+ccuzSmUXrmlDN1pa9qzLd3YoMAkuZU7MntQVFbV0 uZLcyYWh1JXL4Ypmnm3OHERU7XuNvbK7C6yCuaMOlHAGSnsgoTXby822u2trvbZNh0hPolmAw2y5/ LpTTuAOr0cHpvHGRCNsFRtBUCZt4wrnwTKJVR7AJpZXvywlILWsfNLw9mD0/fg9aSXjHMhFZU3LsR v+dNGE32lJZ1Df9pAn0BacD1PKGD9vwWDjkLlXq9u9XH6Ifv/d54jSO7fJBZAYGM37LamcEow+uXE zjeDz9r62juTzb4vDql9Sg==; Original-Received: from [87.69.77.57] (port=4626 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 1mgB9p-0005jY-TX; Thu, 28 Oct 2021 15:33:50 -0400 In-Reply-To: (message from Drew Adams on Thu, 28 Oct 2021 19:08:53 +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:218515 Archived-At: > From: Drew Adams > Date: Thu, 28 Oct 2021 19:08:53 +0000 > > 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. "Default attributes" and "default settings for the face" are one and the same. > (elisp) `Attribute Functions' says "the default attributes of FACE for > newly created frames". I would expect to see :background as > "LightGoldenrod", not as `unspecified'. 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. > 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? Of course. Faces are, and always were, specific to frames. You can change face attributes on one frame without affecting any other frames. > If I do `M-x customize-face region' from emacs -Q I see :background set > as "LightGoldenrod". Because that shows the face on the current frame. > That command customizes the face for all frames, > no? Yes. > So doesn't that mean that the face has that background for all > frames (by default)? No. > Why would one want to get a list of the face's attributes with every > attribute value as `unspecified'? I don't know. I guess those defaults are not very interesting, indeed. > More importantly, how to get the actual (default) values "for all > frames" There's no such thing. You must supply a frame to answer that question.