From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#55623: 29.0.50; Mention that (face-foreground 'default) can return "unspecified-fg" Date: Wed, 25 May 2022 13:23:09 +0530 Message-ID: <87czg2aw0q.fsf@gmail.com> References: <87ilpub287.fsf@gmail.com> <87o7zmjd2f.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32744"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: luangruo@yahoo.com To: 55623@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 25 09:54:32 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 1ntlqi-0008Nz-2P for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 09:54:32 +0200 Original-Received: from localhost ([::1]:49160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntlqg-0002qv-R2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 03:54:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntlqE-0002pg-Bz for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 03:54:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60347) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntlqD-0000jh-TF for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 03:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntlqD-0003my-SP for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 03:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 May 2022 07:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55623 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Po Lu , 55623@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165346521914528 (code B ref -1); Wed, 25 May 2022 07:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2022 07:53:39 +0000 Original-Received: from localhost ([127.0.0.1]:54242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntlpr-0003mF-23 for submit@debbugs.gnu.org; Wed, 25 May 2022 03:53:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntlpo-0003m1-Ua for submit@debbugs.gnu.org; Wed, 25 May 2022 03:53:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntlpn-0002aI-Ly for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 03:53:35 -0400 Original-Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]:46894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntlpk-0000gb-WF for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 03:53:35 -0400 Original-Received: by mail-pj1-x1043.google.com with SMTP id v5-20020a17090a7c0500b001df84fa82f8so4319718pjf.5 for ; Wed, 25 May 2022 00:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=3p99GETH1uyHMszuTgwFCMIPVLpW8f29Ucon5nzaCbQ=; b=kEoIXvJ6yOnJbX6Yj29sH3lueBKJZoA3aZo3zhZanb9lC9L1v2YOYHcJhjq+HQeNC+ eFZii6rRE0Uv77knbv7JyoIbRPawgPbMxsBClkrZ6iqBgEcAmDQhFixbbtnTxhJhv2xp xf3FNDy97eo4JMll0qLzFVZoCuy436LcOCc73cYOdijNhjntWc3ccSMpYRGa2Y6aM728 rB5VSWbSM6g7BvhKnZJvzfqPYzvEvanOktwFlVVLnYAVkRDdey54tsiEk2UXJ87mPClS 8ENR+c4U+mQykKN5YrGwMQEZP0Uo6XJoqr+Wv98mFLhP8E54LssZgF55aajdmG5cENgt Ir5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=3p99GETH1uyHMszuTgwFCMIPVLpW8f29Ucon5nzaCbQ=; b=bkjQ8kz1kjSA8NqpBtgrL0A6nisQf93NCctK09lKYsXIl8bGfZ+jM7KhEgCNptbmQ+ wPcBq/PgpByAd05U3AF8FFSFB36hH9d9ITvJACJ+I4XvRsBQoQlHcFyW47QWTM2tuNee JtkXt77sxOJdpxkUFjTWFWSAn5ZI7GQ7A2WjwfsEw+AiQDbxzL/jFhdWijWVyGLEE4Pv G0lBhQ4lT1HyQCvkUVfjJ7KqB1Qow8QL2UjmF618Pb7xC3NlX3qcKYNrWOnsTSwGyhiB nLkIwcSGtzr6KIS48MNq2D/vf/w6P8bkbphBIc3yCAARcQq/9Rbc0i53BRjRyiaf1ml2 fINQ== X-Gm-Message-State: AOAM530VJvGs86U4Z2f7qn8mNKDkkE1QWsQq3l73W8b2xHIXep4ZBVkG 3yFm+FPYvWf6jorokEzZQf2RFRZkUYo= X-Google-Smtp-Source: ABdhPJzVN2Fbj+8dLA54O8Y6Ybp3KTzBlOmNfoDRT14yj2gdwb5xppAS/4sQJ+pvLGtux9FyZQ6cIg== X-Received: by 2002:a17:902:ec92:b0:161:7e29:6f95 with SMTP id x18-20020a170902ec9200b001617e296f95mr31116296plg.12.1653465210894; Wed, 25 May 2022 00:53:30 -0700 (PDT) Original-Received: from localhost ([49.205.86.52]) by smtp.gmail.com with ESMTPSA id w2-20020a170902d70200b0015e8d4eb2aesm8590421ply.248.2022.05.25.00.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 00:53:30 -0700 (PDT) In-Reply-To: <87o7zmjd2f.fsf@yahoo.com> (Po Lu via's message of "Wed, 25 May 2022 15:17:44 +0800") Received-SPF: pass client-ip=2607:f8b0:4864:20::1043; envelope-from=visuweshm@gmail.com; helo=mail-pj1-x1043.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:233048 Archived-At: [=E0=AE=AA=E0=AF=81=E0=AE=A4=E0=AE=A9=E0=AF=8D =E0=AE=AE=E0=AF=87 25, 2022]= Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors= " wrote: > Visuwesh writes: > >> In a tty frame and when using a theme that does not explicitly set the >> default face's :foreground/:background [1], (face-attribute 'default :fo= reground) >> returns "unspecified-fg". This value is surprising when the docstring >> of `face-attribute' says, >> >> To ensure that the return value is always specified and absolute, us= e a >> value of =E2=80=98default=E2=80=99 for INHERIT; this will resolve an= y unspecified or >> relative values by merging with the =E2=80=98default=E2=80=99 face (= which is always >> completely specified). ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> ^^^^^^^^^^^^^^^^^^^^^ >> >> I opened the Elisp manual and tried to isearch for "unspecified-fg", but >> it got me no matches. It would be nice if this return value was >> documented somewhere. > > Isn't that a special color which means to use the terminal's default > foreground (and/or background, in the case of unspecified-bg) colors? > > If so, it should be documented as that instead. Indeed, "unspecified-fg/bg" means to use the terminal's default fg/bg. But AFAICT, it is not specified in the manual anywhere.